[spglib] 01/01: Imported Upstream version 1.4.1
Yann Pouillon
pouillon-guest at alioth.debian.org
Tue Oct 15 17:47:58 UTC 2013
This is an automated email from the git hooks/post-receive script.
pouillon-guest pushed a commit to branch master
in repository spglib.
commit 0364242d1b9cebed0fa813c2fc5b4d3081a952a9
Author: Yann Pouillon <yann.pouillon at gmail.com>
Date: Tue Oct 15 19:46:26 2013 +0200
Imported Upstream version 1.4.1
---
COPYING | 25 +
INSTALL | 370 +
Makefile.am | 2 +
Makefile.in | 761 ++
aclocal.m4 | 1011 ++
compile | 343 +
config.guess | 1530 +++
config.h.in | 78 +
config.sub | 1782 +++
configure |14070 ++++++++++++++++++++
configure.ac | 47 +
depcomp | 708 +
example/Makefile_f08 | 17 +
example/README | 13 +
example/example.c | 398 +
example/example.f90 | 188 +
example/example_f08.f90 | 228 +
example/spglib_f08.f90 | 411 +
install-sh | 527 +
ltmain.sh | 9661 ++++++++++++++
m4/libtool.m4 | 8001 +++++++++++
m4/ltoptions.m4 | 384 +
m4/ltsugar.m4 | 123 +
m4/ltversion.m4 | 23 +
m4/lt~obsolete.m4 | 98 +
missing | 331 +
python/ase/ChangeLog | 9 +
python/ase/MANIFEST.in | 1 +
python/ase/_spglib.c | 847 ++
python/ase/doc/Makefile | 75 +
python/ase/doc/conf.py | 186 +
python/ase/doc/index.rst | 168 +
python/ase/examples/example_ase.py | 132 +
python/ase/examples/example_atoms.py | 164 +
python/ase/pyspglib/spglib.py | 327 +
python/ase/setup.py | 50 +
python/ase/test/atoms.py | 383 +
python/ase/test/test_ir_triplets.py | 38 +
python/ase/test/test_ir_triplets_at_q.py | 69 +
python/ase/test/test_stabilized_reciprocal_mesh.py | 46 +
python/ase/test/test_symmetry_with_spin.py | 26 +
python/ase/test/vasp.py | 155 +
src/ChangeLog | 809 ++
src/Makefile.am | 55 +
src/Makefile.in | 649 +
src/cell.c | 100 +
src/cell.h | 28 +
src/debug.c | 40 +
src/debug.h | 33 +
src/hall_symbol.c | 2897 ++++
src/hall_symbol.h | 16 +
src/kpoint.c | 1086 ++
src/kpoint.h | 57 +
src/lattice.c | 345 +
src/lattice.h | 41 +
src/mathfunc.c | 449 +
src/mathfunc.h | 86 +
src/pointgroup.c | 1256 ++
src/pointgroup.h | 36 +
src/primitive.c | 701 +
src/primitive.h | 24 +
src/refinement.c | 750 ++
src/refinement.h | 24 +
src/site_symmetry.c | 231 +
src/site_symmetry.h | 18 +
src/sitesym_database.c | 1152 ++
src/sitesym_database.h | 12 +
src/spacegroup.c | 372 +
src/spacegroup.h | 35 +
src/spg_database.c | 8511 ++++++++++++
src/spg_database.h | 26 +
src/spglib.c | 1136 ++
src/spglib.h | 340 +
src/spglib_f.c | 198 +
src/spin.c | 93 +
src/spin.h | 19 +
src/symmetry.c | 832 ++
src/symmetry.h | 38 +
test/README | 10 +
test/check_consistency.py | 68 +
test/data/cubic/POSCAR-195 | 95 +
test/data/cubic/POSCAR-195-2 | 27 +
test/data/cubic/POSCAR-196 | 247 +
test/data/cubic/POSCAR-196-2 | 439 +
test/data/cubic/POSCAR-197 | 73 +
test/data/cubic/POSCAR-197-2 | 73 +
test/data/cubic/POSCAR-198 | 31 +
test/data/cubic/POSCAR-198-2 | 71 +
test/data/cubic/POSCAR-199 | 87 +
test/data/cubic/POSCAR-199-2 | 35 +
test/data/cubic/POSCAR-200 | 45 +
test/data/cubic/POSCAR-200-2 | 18 +
test/data/cubic/POSCAR-205 | 19 +
test/data/cubic/POSCAR-205-3 | 19 +
test/data/cubic/POSCAR-206 | 87 +
test/data/cubic/POSCAR-206-2 | 87 +
test/data/cubic/POSCAR-207 | 40 +
test/data/cubic/POSCAR-208 | 23 +
test/data/cubic/POSCAR-208-2 | 71 +
test/data/cubic/POSCAR-209 | 515 +
test/data/cubic/POSCAR-210 | 343 +
test/data/cubic/POSCAR-210-2 | 615 +
test/data/cubic/POSCAR-211 | 79 +
test/data/cubic/POSCAR-212 | 19 +
test/data/cubic/POSCAR-212-2 | 19 +
test/data/cubic/POSCAR-213 | 79 +
test/data/cubic/POSCAR-213-2 | 39 +
test/data/cubic/POSCAR-214 | 839 ++
test/data/cubic/POSCAR-214-2 | 63 +
test/data/cubic/POSCAR-215 | 15 +
test/data/cubic/POSCAR-215-2 | 60 +
test/data/cubic/POSCAR-216 | 31 +
test/data/cubic/POSCAR-216-2 | 55 +
test/data/cubic/POSCAR-217 | 71 +
test/data/cubic/POSCAR-217-2 | 65 +
test/data/cubic/POSCAR-218 | 53 +
test/data/cubic/POSCAR-218-2 | 23 +
test/data/cubic/POSCAR-219 | 183 +
test/data/cubic/POSCAR-219-2 | 223 +
test/data/cubic/POSCAR-220 | 47 +
test/data/cubic/POSCAR-220-2 | 47 +
test/data/cubic/POSCAR-221 | 73 +
test/data/cubic/POSCAR-221-2 | 12 +
test/data/cubic/POSCAR-222 | 103 +
test/data/cubic/POSCAR-222-2 | 271 +
test/data/cubic/POSCAR-223 | 15 +
test/data/cubic/POSCAR-223-2 | 61 +
test/data/cubic/POSCAR-224 | 17 +
test/data/cubic/POSCAR-224-2 | 17 +
test/data/cubic/POSCAR-225 | 43 +
test/data/cubic/POSCAR-225-2 | 47 +
test/data/cubic/POSCAR-226 | 1607 +++
test/data/cubic/POSCAR-226-2 | 119 +
test/data/cubic/POSCAR-227 | 167 +
test/data/cubic/POSCAR-227-2 | 479 +
test/data/cubic/POSCAR-228 | 231 +
test/data/cubic/POSCAR-228-2 | 567 +
test/data/cubic/POSCAR-229 | 409 +
test/data/cubic/POSCAR-229-2 | 21 +
test/data/cubic/POSCAR-230 | 167 +
test/data/cubic/POSCAR-230-2 | 167 +
test/data/cubic/POSCAR-230-3 | 215 +
test/data/cubic/POSCAR-230-4 | 111 +
test/data/hexagonal/POSCAR-168 | 64 +
test/data/hexagonal/POSCAR-169 | 37 +
test/data/hexagonal/POSCAR-169-2 | 91 +
test/data/hexagonal/POSCAR-170 | 37 +
test/data/hexagonal/POSCAR-170-2 | 145 +
test/data/hexagonal/POSCAR-171 | 79 +
test/data/hexagonal/POSCAR-171-2 | 46 +
test/data/hexagonal/POSCAR-172 | 46 +
test/data/hexagonal/POSCAR-173 | 15 +
test/data/hexagonal/POSCAR-173-2 | 33 +
test/data/hexagonal/POSCAR-174 | 28 +
test/data/hexagonal/POSCAR-174-2 | 115 +
test/data/hexagonal/POSCAR-175 | 75 +
test/data/hexagonal/POSCAR-175-2 | 29 +
test/data/hexagonal/POSCAR-176 | 15 +
test/data/hexagonal/POSCAR-176-2 | 55 +
test/data/hexagonal/POSCAR-177 | 68 +
test/data/hexagonal/POSCAR-179 | 25 +
test/data/hexagonal/POSCAR-179-2 | 97 +
test/data/hexagonal/POSCAR-180 | 16 +
test/data/hexagonal/POSCAR-180-2 | 16 +
test/data/hexagonal/POSCAR-181 | 16 +
test/data/hexagonal/POSCAR-181-2 | 91 +
test/data/hexagonal/POSCAR-182 | 27 +
test/data/hexagonal/POSCAR-182-2 | 21 +
test/data/hexagonal/POSCAR-183 | 143 +
test/data/hexagonal/POSCAR-183-2 | 10 +
test/data/hexagonal/POSCAR-184 | 79 +
test/data/hexagonal/POSCAR-184-2 | 85 +
test/data/hexagonal/POSCAR-185 | 73 +
test/data/hexagonal/POSCAR-185-2 | 37 +
test/data/hexagonal/POSCAR-186 | 29 +
test/data/hexagonal/POSCAR-186-2 | 63 +
test/data/hexagonal/POSCAR-187 | 9 +
test/data/hexagonal/POSCAR-187-2 | 21 +
test/data/hexagonal/POSCAR-188 | 15 +
test/data/hexagonal/POSCAR-188-2 | 63 +
test/data/hexagonal/POSCAR-189 | 19 +
test/data/hexagonal/POSCAR-189-2 | 25 +
test/data/hexagonal/POSCAR-190 | 23 +
test/data/hexagonal/POSCAR-190-2 | 43 +
test/data/hexagonal/POSCAR-191 | 10 +
test/data/hexagonal/POSCAR-191-2 | 40 +
test/data/hexagonal/POSCAR-192 | 107 +
test/data/hexagonal/POSCAR-192-2 | 65 +
test/data/hexagonal/POSCAR-193 | 23 +
test/data/hexagonal/POSCAR-193-2 | 47 +
test/data/hexagonal/POSCAR-194 | 15 +
test/data/hexagonal/POSCAR-194-2 | 31 +
test/data/monoclinic/POSCAR-003 | 19 +
test/data/monoclinic/POSCAR-004 | 31 +
test/data/monoclinic/POSCAR-004-2 | 39 +
test/data/monoclinic/POSCAR-005 | 31 +
test/data/monoclinic/POSCAR-005-2 | 109 +
test/data/monoclinic/POSCAR-006 | 59 +
test/data/monoclinic/POSCAR-006-2 | 20 +
test/data/monoclinic/POSCAR-007 | 43 +
test/data/monoclinic/POSCAR-007-2 | 107 +
test/data/monoclinic/POSCAR-008 | 117 +
test/data/monoclinic/POSCAR-008-2 | 231 +
test/data/monoclinic/POSCAR-009 | 91 +
test/data/monoclinic/POSCAR-009-2 | 163 +
test/data/monoclinic/POSCAR-010 | 34 +
test/data/monoclinic/POSCAR-010-2 | 34 +
test/data/monoclinic/POSCAR-011 | 29 +
test/data/monoclinic/POSCAR-011-2 | 33 +
test/data/monoclinic/POSCAR-012 | 32 +
test/data/monoclinic/POSCAR-012-2 | 56 +
test/data/monoclinic/POSCAR-012-3 | 59 +
test/data/monoclinic/POSCAR-013 | 21 +
test/data/monoclinic/POSCAR-013-2 | 63 +
test/data/monoclinic/POSCAR-013-3 | 27 +
test/data/monoclinic/POSCAR-014 | 33 +
test/data/monoclinic/POSCAR-014-2 | 39 +
test/data/monoclinic/POSCAR-015 | 56 +
test/data/monoclinic/POSCAR-015-2 | 104 +
test/data/monoclinic/POSCAR-015-3 | 55 +
test/data/orthorhombic/POSCAR-016 | 211 +
test/data/orthorhombic/POSCAR-016-2 | 19 +
test/data/orthorhombic/POSCAR-017-2 | 19 +
test/data/orthorhombic/POSCAR-018 | 67 +
test/data/orthorhombic/POSCAR-018-2 | 39 +
test/data/orthorhombic/POSCAR-019 | 32 +
test/data/orthorhombic/POSCAR-019-2 | 31 +
test/data/orthorhombic/POSCAR-020 | 31 +
test/data/orthorhombic/POSCAR-021 | 29 +
test/data/orthorhombic/POSCAR-021-2 | 25 +
test/data/orthorhombic/POSCAR-022 | 103 +
test/data/orthorhombic/POSCAR-023 | 73 +
test/data/orthorhombic/POSCAR-023-2 | 51 +
test/data/orthorhombic/POSCAR-024 | 51 +
test/data/orthorhombic/POSCAR-024-2 | 111 +
test/data/orthorhombic/POSCAR-025 | 9 +
test/data/orthorhombic/POSCAR-025-2 | 27 +
test/data/orthorhombic/POSCAR-026 | 29 +
test/data/orthorhombic/POSCAR-026-2 | 41 +
test/data/orthorhombic/POSCAR-027 | 115 +
test/data/orthorhombic/POSCAR-027-2 | 151 +
test/data/orthorhombic/POSCAR-028 | 23 +
test/data/orthorhombic/POSCAR-028-2 | 15 +
test/data/orthorhombic/POSCAR-029 | 155 +
test/data/orthorhombic/POSCAR-029-2 | 43 +
test/data/orthorhombic/POSCAR-030 | 63 +
test/data/orthorhombic/POSCAR-030-2 | 27 +
test/data/orthorhombic/POSCAR-031 | 27 +
test/data/orthorhombic/POSCAR-031-2 | 33 +
test/data/orthorhombic/POSCAR-032 | 75 +
test/data/orthorhombic/POSCAR-032-2 | 47 +
test/data/orthorhombic/POSCAR-033 | 32 +
test/data/orthorhombic/POSCAR-033-2 | 31 +
test/data/orthorhombic/POSCAR-033-3 | 59 +
test/data/orthorhombic/POSCAR-034 | 63 +
test/data/orthorhombic/POSCAR-034-2 | 39 +
test/data/orthorhombic/POSCAR-035 | 29 +
test/data/orthorhombic/POSCAR-035-2 | 103 +
test/data/orthorhombic/POSCAR-036 | 375 +
test/data/orthorhombic/POSCAR-036-2 | 207 +
test/data/orthorhombic/POSCAR-037 | 99 +
test/data/orthorhombic/POSCAR-037-2 | 43 +
test/data/orthorhombic/POSCAR-038 | 31 +
test/data/orthorhombic/POSCAR-038-2 | 29 +
test/data/orthorhombic/POSCAR-039 | 95 +
test/data/orthorhombic/POSCAR-039-2 | 79 +
test/data/orthorhombic/POSCAR-040 | 35 +
test/data/orthorhombic/POSCAR-040-2 | 19 +
test/data/orthorhombic/POSCAR-041 | 111 +
test/data/orthorhombic/POSCAR-041-2 | 51 +
test/data/orthorhombic/POSCAR-042 | 43 +
test/data/orthorhombic/POSCAR-043 | 223 +
test/data/orthorhombic/POSCAR-043-2 | 263 +
test/data/orthorhombic/POSCAR-044 | 15 +
test/data/orthorhombic/POSCAR-044-2 | 29 +
test/data/orthorhombic/POSCAR-045 | 99 +
test/data/orthorhombic/POSCAR-045-2 | 47 +
test/data/orthorhombic/POSCAR-046 | 103 +
test/data/orthorhombic/POSCAR-046-2 | 39 +
test/data/orthorhombic/POSCAR-047 | 11 +
test/data/orthorhombic/POSCAR-047-2 | 19 +
test/data/orthorhombic/POSCAR-048 | 31 +
test/data/orthorhombic/POSCAR-048-2 | 31 +
test/data/orthorhombic/POSCAR-049 | 31 +
test/data/orthorhombic/POSCAR-049-2 | 21 +
test/data/orthorhombic/POSCAR-050 | 51 +
test/data/orthorhombic/POSCAR-050-2 | 63 +
test/data/orthorhombic/POSCAR-051 | 65 +
test/data/orthorhombic/POSCAR-051-2 | 23 +
test/data/orthorhombic/POSCAR-051-3 | 15 +
test/data/orthorhombic/POSCAR-052 | 43 +
test/data/orthorhombic/POSCAR-052-2 | 27 +
test/data/orthorhombic/POSCAR-053 | 87 +
test/data/orthorhombic/POSCAR-053-2 | 17 +
test/data/orthorhombic/POSCAR-054 | 47 +
test/data/orthorhombic/POSCAR-054-2 | 47 +
test/data/orthorhombic/POSCAR-055 | 31 +
test/data/orthorhombic/POSCAR-055-2 | 23 +
test/data/orthorhombic/POSCAR-056 | 27 +
test/data/orthorhombic/POSCAR-056-2 | 59 +
test/data/orthorhombic/POSCAR-057 | 27 +
test/data/orthorhombic/POSCAR-057-2 | 47 +
test/data/orthorhombic/POSCAR-058 | 207 +
test/data/orthorhombic/POSCAR-058-2 | 17 +
test/data/orthorhombic/POSCAR-058-3 | 20 +
test/data/orthorhombic/POSCAR-059 | 21 +
test/data/orthorhombic/POSCAR-059-2 | 13 +
test/data/orthorhombic/POSCAR-060 | 55 +
test/data/orthorhombic/POSCAR-060-2 | 83 +
test/data/orthorhombic/POSCAR-060-3 | 32 +
test/data/orthorhombic/POSCAR-061 | 127 +
test/data/orthorhombic/POSCAR-061-2 | 23 +
test/data/orthorhombic/POSCAR-062 | 27 +
test/data/orthorhombic/POSCAR-062-2 | 83 +
test/data/orthorhombic/POSCAR-063 | 39 +
test/data/orthorhombic/POSCAR-063-2 | 43 +
test/data/orthorhombic/POSCAR-063-3 | 63 +
test/data/orthorhombic/POSCAR-064 | 35 +
test/data/orthorhombic/POSCAR-064-2 | 35 +
test/data/orthorhombic/POSCAR-064-3 | 32 +
test/data/orthorhombic/POSCAR-065 | 23 +
test/data/orthorhombic/POSCAR-065-2 | 17 +
test/data/orthorhombic/POSCAR-065-3 | 12 +
test/data/orthorhombic/POSCAR-066 | 43 +
test/data/orthorhombic/POSCAR-066-2 | 55 +
test/data/orthorhombic/POSCAR-067 | 55 +
test/data/orthorhombic/POSCAR-067-2 | 75 +
test/data/orthorhombic/POSCAR-067-3 | 27 +
test/data/orthorhombic/POSCAR-068 | 115 +
test/data/orthorhombic/POSCAR-068-2 | 27 +
test/data/orthorhombic/POSCAR-069 | 43 +
test/data/orthorhombic/POSCAR-069-2 | 19 +
test/data/orthorhombic/POSCAR-070 | 55 +
test/data/orthorhombic/POSCAR-070-2 | 47 +
test/data/orthorhombic/POSCAR-071 | 29 +
test/data/orthorhombic/POSCAR-071-2 | 15 +
test/data/orthorhombic/POSCAR-072 | 51 +
test/data/orthorhombic/POSCAR-072-2 | 27 +
test/data/orthorhombic/POSCAR-073 | 103 +
test/data/orthorhombic/POSCAR-073-2 | 55 +
test/data/orthorhombic/POSCAR-074 | 63 +
test/data/orthorhombic/POSCAR-074-2 | 35 +
test/data/others/spg/CONTCAR_1 | 48 +
test/data/others/spg/CONTCAR_2 | 48 +
test/data/others/spg/CONTCAR_3 | 48 +
test/data/others/spg/CONTCAR_4 | 48 +
test/data/others/spg/CONTCAR_5 | 48 +
test/data/others/spg/CONTCAR_6 | 48 +
test/data/others/spg/CONTCAR_7 | 48 +
test/data/others/spg/CONTCAR_8 | 48 +
test/data/others/spg/README | 8 +
test/data/test-all.zsh | 22 +
test/data/test-cubic.zsh | 38 +
test/data/test-hexa.zsh | 39 +
test/data/test-monocli.zsh | 39 +
test/data/test-ortho.zsh | 39 +
test/data/test-refined_symmetry.zsh | 11 +
test/data/test-tetra.zsh | 38 +
test/data/test-tricli.zsh | 39 +
test/data/test-trigo.zsh | 39 +
test/data/tetragonal/POSCAR-075 | 101 +
test/data/tetragonal/POSCAR-075-2 | 67 +
test/data/tetragonal/POSCAR-076 | 23 +
test/data/tetragonal/POSCAR-076-2 | 43 +
test/data/tetragonal/POSCAR-077 | 119 +
test/data/tetragonal/POSCAR-077-2 | 79 +
test/data/tetragonal/POSCAR-077-3 | 119 +
test/data/tetragonal/POSCAR-078 | 115 +
test/data/tetragonal/POSCAR-078-2 | 119 +
test/data/tetragonal/POSCAR-079 | 35 +
test/data/tetragonal/POSCAR-079-2 | 119 +
test/data/tetragonal/POSCAR-080 | 143 +
test/data/tetragonal/POSCAR-080-2 | 55 +
test/data/tetragonal/POSCAR-081 | 29 +
test/data/tetragonal/POSCAR-081-2 | 37 +
test/data/tetragonal/POSCAR-082 | 21 +
test/data/tetragonal/POSCAR-082-2 | 21 +
test/data/tetragonal/POSCAR-083 | 27 +
test/data/tetragonal/POSCAR-083-2 | 47 +
test/data/tetragonal/POSCAR-083-3 | 47 +
test/data/tetragonal/POSCAR-084 | 23 +
test/data/tetragonal/POSCAR-084-2 | 27 +
test/data/tetragonal/POSCAR-085 | 21 +
test/data/tetragonal/POSCAR-085-2 | 41 +
test/data/tetragonal/POSCAR-086 | 39 +
test/data/tetragonal/POSCAR-086-2 | 25 +
test/data/tetragonal/POSCAR-087 | 65 +
test/data/tetragonal/POSCAR-087-2 | 33 +
test/data/tetragonal/POSCAR-088 | 103 +
test/data/tetragonal/POSCAR-088-2 | 47 +
test/data/tetragonal/POSCAR-090 | 61 +
test/data/tetragonal/POSCAR-090-2 | 43 +
test/data/tetragonal/POSCAR-091 | 39 +
test/data/tetragonal/POSCAR-091-2 | 199 +
test/data/tetragonal/POSCAR-092 | 87 +
test/data/tetragonal/POSCAR-092-2 | 59 +
test/data/tetragonal/POSCAR-092-3 | 32 +
test/data/tetragonal/POSCAR-094 | 25 +
test/data/tetragonal/POSCAR-094-2 | 191 +
test/data/tetragonal/POSCAR-094-3 | 51 +
test/data/tetragonal/POSCAR-095 | 35 +
test/data/tetragonal/POSCAR-095-2 | 35 +
test/data/tetragonal/POSCAR-096 | 91 +
test/data/tetragonal/POSCAR-096-2 | 71 +
test/data/tetragonal/POSCAR-097 | 69 +
test/data/tetragonal/POSCAR-097-2 | 51 +
test/data/tetragonal/POSCAR-098 | 19 +
test/data/tetragonal/POSCAR-098-2 | 191 +
test/data/tetragonal/POSCAR-099 | 12 +
test/data/tetragonal/POSCAR-099-2 | 12 +
test/data/tetragonal/POSCAR-100 | 33 +
test/data/tetragonal/POSCAR-100-2 | 37 +
test/data/tetragonal/POSCAR-102 | 27 +
test/data/tetragonal/POSCAR-102-2 | 37 +
test/data/tetragonal/POSCAR-103 | 17 +
test/data/tetragonal/POSCAR-103-2 | 17 +
test/data/tetragonal/POSCAR-104 | 29 +
test/data/tetragonal/POSCAR-104-2 | 35 +
test/data/tetragonal/POSCAR-105 | 27 +
test/data/tetragonal/POSCAR-105-2 | 19 +
test/data/tetragonal/POSCAR-106 | 71 +
test/data/tetragonal/POSCAR-107 | 47 +
test/data/tetragonal/POSCAR-107-2 | 17 +
test/data/tetragonal/POSCAR-107-3 | 35 +
test/data/tetragonal/POSCAR-108 | 35 +
test/data/tetragonal/POSCAR-108-2 | 39 +
test/data/tetragonal/POSCAR-109 | 15 +
test/data/tetragonal/POSCAR-109-2 | 95 +
test/data/tetragonal/POSCAR-110 | 183 +
test/data/tetragonal/POSCAR-110-2 | 167 +
test/data/tetragonal/POSCAR-111 | 27 +
test/data/tetragonal/POSCAR-111-2 | 14 +
test/data/tetragonal/POSCAR-112 | 19 +
test/data/tetragonal/POSCAR-112-2 | 19 +
test/data/tetragonal/POSCAR-113 | 23 +
test/data/tetragonal/POSCAR-113-2 | 17 +
test/data/tetragonal/POSCAR-114 | 45 +
test/data/tetragonal/POSCAR-114-2 | 71 +
test/data/tetragonal/POSCAR-115 | 12 +
test/data/tetragonal/POSCAR-115-2 | 21 +
test/data/tetragonal/POSCAR-115-3 | 20 +
test/data/tetragonal/POSCAR-115-4 | 22 +
test/data/tetragonal/POSCAR-115-5 | 15 +
test/data/tetragonal/POSCAR-116 | 51 +
test/data/tetragonal/POSCAR-116-2 | 227 +
test/data/tetragonal/POSCAR-117 | 47 +
test/data/tetragonal/POSCAR-117-2 | 43 +
test/data/tetragonal/POSCAR-118 | 13 +
test/data/tetragonal/POSCAR-118-2 | 33 +
test/data/tetragonal/POSCAR-119 | 31 +
test/data/tetragonal/POSCAR-119-2 | 15 +
test/data/tetragonal/POSCAR-120 | 63 +
test/data/tetragonal/POSCAR-120-2 | 127 +
test/data/tetragonal/POSCAR-121 | 19 +
test/data/tetragonal/POSCAR-121-2 | 23 +
test/data/tetragonal/POSCAR-122 | 91 +
test/data/tetragonal/POSCAR-122-2 | 135 +
test/data/tetragonal/POSCAR-122-3 | 32 +
test/data/tetragonal/POSCAR-123 | 9 +
test/data/tetragonal/POSCAR-123-2 | 163 +
test/data/tetragonal/POSCAR-123-3 | 12 +
test/data/tetragonal/POSCAR-124 | 19 +
test/data/tetragonal/POSCAR-124-2 | 29 +
test/data/tetragonal/POSCAR-125 | 21 +
test/data/tetragonal/POSCAR-125-2 | 27 +
test/data/tetragonal/POSCAR-126 | 37 +
test/data/tetragonal/POSCAR-126-2 | 31 +
test/data/tetragonal/POSCAR-127 | 27 +
test/data/tetragonal/POSCAR-127-2 | 17 +
test/data/tetragonal/POSCAR-128 | 25 +
test/data/tetragonal/POSCAR-128-2 | 41 +
test/data/tetragonal/POSCAR-129 | 11 +
test/data/tetragonal/POSCAR-129-2 | 11 +
test/data/tetragonal/POSCAR-129-3 | 11 +
test/data/tetragonal/POSCAR-130 | 43 +
test/data/tetragonal/POSCAR-130-2 | 71 +
test/data/tetragonal/POSCAR-131 | 11 +
test/data/tetragonal/POSCAR-131-2 | 15 +
test/data/tetragonal/POSCAR-132 | 19 +
test/data/tetragonal/POSCAR-132-2 | 25 +
test/data/tetragonal/POSCAR-133 | 39 +
test/data/tetragonal/POSCAR-133-2 | 167 +
test/data/tetragonal/POSCAR-134 | 57 +
test/data/tetragonal/POSCAR-134-2 | 23 +
test/data/tetragonal/POSCAR-135 | 35 +
test/data/tetragonal/POSCAR-135-2 | 35 +
test/data/tetragonal/POSCAR-136 | 13 +
test/data/tetragonal/POSCAR-136-2 | 13 +
test/data/tetragonal/POSCAR-136-3 | 20 +
test/data/tetragonal/POSCAR-136-4 | 19 +
test/data/tetragonal/POSCAR-136-5 | 11 +
test/data/tetragonal/POSCAR-137 | 23 +
test/data/tetragonal/POSCAR-137-2 | 13 +
test/data/tetragonal/POSCAR-137-3 | 20 +
test/data/tetragonal/POSCAR-138 | 55 +
test/data/tetragonal/POSCAR-138-2 | 15 +
test/data/tetragonal/POSCAR-139 | 91 +
test/data/tetragonal/POSCAR-139-2 | 17 +
test/data/tetragonal/POSCAR-140 | 211 +
test/data/tetragonal/POSCAR-140-2 | 39 +
test/data/tetragonal/POSCAR-141 | 31 +
test/data/tetragonal/POSCAR-141-2 | 71 +
test/data/tetragonal/POSCAR-142 | 239 +
test/data/tetragonal/POSCAR-142-2 | 103 +
test/data/tetragonal/POSCAR-142-3 | 95 +
test/data/triclinic/POSCAR-001 | 16 +
test/data/triclinic/POSCAR-002 | 51 +
test/data/trigonal/POSCAR-143 | 29 +
test/data/trigonal/POSCAR-143-2 | 43 +
test/data/trigonal/POSCAR-144 | 52 +
test/data/trigonal/POSCAR-144-2 | 22 +
test/data/trigonal/POSCAR-145 | 163 +
test/data/trigonal/POSCAR-145-2 | 52 +
test/data/trigonal/POSCAR-146 | 100 +
test/data/trigonal/POSCAR-146-2 | 28 +
test/data/trigonal/POSCAR-147 | 115 +
test/data/trigonal/POSCAR-147-2 | 45 +
test/data/trigonal/POSCAR-148 | 58 +
test/data/trigonal/POSCAR-148-2 | 319 +
test/data/trigonal/POSCAR-149 | 16 +
test/data/trigonal/POSCAR-149-2 | 24 +
test/data/trigonal/POSCAR-150 | 34 +
test/data/trigonal/POSCAR-150-2 | 34 +
test/data/trigonal/POSCAR-151 | 31 +
test/data/trigonal/POSCAR-151-2 | 43 +
test/data/trigonal/POSCAR-152 | 118 +
test/data/trigonal/POSCAR-152-2 | 25 +
test/data/trigonal/POSCAR-153 | 31 +
test/data/trigonal/POSCAR-154 | 16 +
test/data/trigonal/POSCAR-154-2 | 55 +
test/data/trigonal/POSCAR-154-3 | 26 +
test/data/trigonal/POSCAR-155 | 67 +
test/data/trigonal/POSCAR-155-2 | 88 +
test/data/trigonal/POSCAR-156 | 11 +
test/data/trigonal/POSCAR-156-2 | 14 +
test/data/trigonal/POSCAR-157 | 196 +
test/data/trigonal/POSCAR-157-2 | 27 +
test/data/trigonal/POSCAR-158 | 15 +
test/data/trigonal/POSCAR-158-2 | 91 +
test/data/trigonal/POSCAR-159 | 87 +
test/data/trigonal/POSCAR-159-2 | 43 +
test/data/trigonal/POSCAR-160 | 33 +
test/data/trigonal/POSCAR-160-2 | 22 +
test/data/trigonal/POSCAR-161 | 277 +
test/data/trigonal/POSCAR-161-2 | 37 +
test/data/trigonal/POSCAR-162 | 21 +
test/data/trigonal/POSCAR-162-2 | 16 +
test/data/trigonal/POSCAR-163 | 23 +
test/data/trigonal/POSCAR-163-2 | 27 +
test/data/trigonal/POSCAR-164 | 10 +
test/data/trigonal/POSCAR-164-2 | 17 +
test/data/trigonal/POSCAR-165 | 31 +
test/data/trigonal/POSCAR-165-2 | 97 +
test/data/trigonal/POSCAR-166 | 67 +
test/data/trigonal/POSCAR-166-2 | 31 +
test/data/trigonal/POSCAR-167 | 271 +
test/data/trigonal/POSCAR-167-2 | 133 +
test/data/trigonal/POSCAR-167-3 | 37 +
test/data/virtual_structure/poscar-221/POSCAR-01 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-02 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-03 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-04 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-05 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-06 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-07 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-08 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-09 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-10 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-11 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-12 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-13 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-14 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-15 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-16 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-17 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-18 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-19 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-20 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-21 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-22 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-23 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-24 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-25 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-26 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-27 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-28 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-29 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-30 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-31 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-32 | 55 +
test/data/virtual_structure/poscar-221/POSCAR-33 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-01 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-02 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-03 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-04 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-05 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-06 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-07 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-08 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-09 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-10 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-11 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-12 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-13 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-14 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-15 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-16 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-17 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-18 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-19 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-20 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-21 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-22 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-23 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-24 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-25 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-26 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-27 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-28 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-29 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-30 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-31 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-32 | 55 +
test/data/virtual_structure/poscar-222/POSCAR-33 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-01 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-02 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-03 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-04 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-05 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-06 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-07 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-08 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-09 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-10 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-11 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-12 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-13 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-14 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-15 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-16 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-17 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-18 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-19 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-20 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-21 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-22 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-23 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-24 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-25 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-26 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-27 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-28 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-29 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-30 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-31 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-32 | 55 +
test/data/virtual_structure/poscar-223/POSCAR-33 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-01 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-02 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-03 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-04 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-05 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-06 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-07 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-08 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-09 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-10 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-11 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-12 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-13 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-14 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-15 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-16 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-17 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-18 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-19 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-20 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-21 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-22 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-23 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-24 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-25 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-26 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-27 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-28 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-29 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-30 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-31 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-32 | 55 +
test/data/virtual_structure/poscar-224/POSCAR-33 | 55 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-01 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-03 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-06 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-09 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-13 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-16 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-18 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-19 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-21 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-24 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-28 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-29 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-31 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-32 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-33 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-35 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-36 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-38 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-40 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-41 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-43 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-44 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-45 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-47 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-48 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-49 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-50 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-51 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-53 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-54 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-58 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-59 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-60 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-61 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-62 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-63 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-64 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-65 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-66 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-67 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-68 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-69 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-70 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-71 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-72 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-73 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-74 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-75 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-77 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-78 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-79 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-80 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-81 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-82 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-83 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-84 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-85 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-86 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-87 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-88 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-89 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-90 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-91 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-92 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-93 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-94 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-95 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-96 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-97 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-98 | 63 +
.../virtual_structure/poscar_Fd-3m_unit/POSCAR-99 | 63 +
.../poscar_Ia-3d_primitive/POSCAR-01 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-02 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-03 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-04 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-05 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-06 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-07 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-08 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-09 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-10 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-11 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-12 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-13 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-14 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-15 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-16 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-17 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-18 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-19 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-20 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-21 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-22 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-23 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-24 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-25 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-26 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-27 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-28 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-29 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-30 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-31 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-32 | 111 +
.../poscar_Ia-3d_primitive/POSCAR-33 | 111 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-01 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-02 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-03 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-04 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-05 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-06 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-07 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-08 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-09 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-10 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-11 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-12 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-13 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-14 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-15 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-16 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-17 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-18 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-19 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-20 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-21 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-22 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-23 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-24 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-25 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-26 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-27 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-28 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-29 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-30 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-31 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-32 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-33 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-34 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-35 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-36 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-37 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-38 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-39 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-40 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-41 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-42 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-43 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-44 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-45 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-46 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-47 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-48 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-49 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-50 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-51 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-52 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-53 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-54 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-55 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-56 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-57 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-58 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-59 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-60 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-61 | 215 +
.../virtual_structure/poscar_Ia-3d_unit/POSCAR-62 | 215 +
test/data/virtual_structure/poscars-1/POSCAR-15 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-16 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-17 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-18 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-19 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-27 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-28 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-29 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-30 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-31 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-32 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-33 | 111 +
test/data/virtual_structure/poscars-1/POSCAR-6 | 111 +
test/data/virtual_structure/poscars-2/POSCAR-22 | 111 +
test/data/virtual_structure/poscars-2/POSCAR-26 | 111 +
test/data/virtual_structure/poscars-2/POSCAR-9 | 111 +
test/data/virtual_structure/rhombohedral/POSCAR-1 | 9 +
.../virtual_structure/rhombohedral/findsym.log | 37 +
test/data/virtual_structure/test-virtual.zsh | 27 +
test/extconf.rb | 9 +
test/getspg.c | 336 +
test/poscar.rb | 329 +
test/poscar2findsym.rb | 354 +
test/symPoscar.rb | 137 +
880 files changed, 130738 insertions(+)
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..e69de29
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..161ccc0
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,25 @@
+The "New" BSD License:
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer. Redistributions
+in binary form must reproduce the above copyright notice, this list of
+conditions and the following disclaimer in the documentation and/or
+other materials provided with the distribution. Neither the name of
+the Dom Derrien nor the names of other contributors may be used to
+endorse or promote products derived from this software without
+specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE
+COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..a1e89e1
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,370 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation,
+Inc.
+
+ Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved. This file is offered as-is,
+without warranty of any kind.
+
+Basic Installation
+==================
+
+ Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package. The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package. Some packages provide this
+`INSTALL' file but do not implement all of the features documented
+below. The lack of an optional feature in a given package is not
+necessarily a bug. More recommendations for GNU packages can be found
+in *note Makefile Conventions: (standards)Makefile Conventions.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
+
+ The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system.
+
+ Running `configure' might take a while. While running, it prints
+ some messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package, generally using the just-built uninstalled binaries.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation. When installing into a prefix owned by root, it is
+ recommended that the package be configured and built as a regular
+ user, and only the `make install' phase executed with root
+ privileges.
+
+ 5. Optionally, type `make installcheck' to repeat any self-tests, but
+ this time using the binaries in their final installed location.
+ This target does not install anything. Running this target as a
+ regular user, particularly if the prior `make install' required
+ root privileges, verifies that the installation completed
+ correctly.
+
+ 6. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+ 7. Often, you can also type `make uninstall' to remove the installed
+ files again. In practice, not all packages have tested that
+ uninstallation works correctly, even though it is required by the
+ GNU Coding Standards.
+
+ 8. Some packages, particularly those that use Automake, provide `make
+ distcheck', which can by used by developers to test that all other
+ targets like `make install' and `make uninstall' work correctly.
+ This target is generally not run by end users.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you can use GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'. This
+is known as a "VPATH" build.
+
+ With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory. After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+ On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types--known as "fat" or
+"universal" binaries--by specifying multiple `-arch' options to the
+compiler but only a single `-arch' option to the preprocessor. Like
+this:
+
+ ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CPP="gcc -E" CXXCPP="g++ -E"
+
+ This is not guaranteed to produce working output in all cases, you
+may have to build one architecture at a time and combine the results
+using the `lipo' tool if you have problems.
+
+Installation Names
+==================
+
+ By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc. You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX', where PREFIX must be an
+absolute file name.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them. In general, the
+default for these options is expressed in terms of `${prefix}', so that
+specifying just `--prefix' will affect all of the other directory
+specifications that were not explicitly provided.
+
+ The most portable way to affect installation locations is to pass the
+correct locations to `configure'; however, many packages provide one or
+both of the following shortcuts of passing variable assignments to the
+`make install' command line to change installation locations without
+having to reconfigure or recompile.
+
+ The first method involves providing an override variable for each
+affected directory. For example, `make install
+prefix=/alternate/directory' will choose an alternate location for all
+directory configuration variables that were expressed in terms of
+`${prefix}'. Any directories that were specified during `configure',
+but not in terms of `${prefix}', must each be overridden at install
+time for the entire installation to be relocated. The approach of
+makefile variable overrides for each directory variable is required by
+the GNU Coding Standards, and ideally causes no recompilation.
+However, some platforms have known limitations with the semantics of
+shared libraries that end up requiring recompilation when using this
+method, particularly noticeable in packages that use GNU Libtool.
+
+ The second method involves providing the `DESTDIR' variable. For
+example, `make install DESTDIR=/alternate/directory' will prepend
+`/alternate/directory' before all installation names. The approach of
+`DESTDIR' overrides is not required by the GNU Coding Standards, and
+does not work on platforms that have drive letters. On the other hand,
+it does better at avoiding recompilation issues, and works well even
+when some directory options were not specified in terms of `${prefix}'
+at `configure' time.
+
+Optional Features
+=================
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+ Some packages offer the ability to configure how verbose the
+execution of `make' will be. For these packages, running `./configure
+--enable-silent-rules' sets the default to minimal output, which can be
+overridden with `make V=1'; while running `./configure
+--disable-silent-rules' sets the default to verbose, which can be
+overridden with `make V=0'.
+
+Particular systems
+==================
+
+ On HP-UX, the default C compiler is not ANSI C compatible. If GNU
+CC is not installed, it is recommended to use the following options in
+order to use an ANSI C compiler:
+
+ ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
+
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+ HP-UX `make' updates targets which have the same time stamps as
+their prerequisites, which makes it generally unusable when shipped
+generated files such as `configure' are involved. Use GNU `make'
+instead.
+
+ On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
+parse its `<wchar.h>' header file. The option `-nodtk' can be used as
+a workaround. If GNU CC is not installed, it is therefore recommended
+to try
+
+ ./configure CC="cc"
+
+and if that doesn't work, try
+
+ ./configure CC="cc -nodtk"
+
+ On Solaris, don't put `/usr/ucb' early in your `PATH'. This
+directory contains several dysfunctional programs; working variants of
+these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
+in your `PATH', put it _after_ `/usr/bin'.
+
+ On Haiku, software installed for all users goes in `/boot/common',
+not `/usr/local'. It is recommended to use the following options:
+
+ ./configure --prefix=/boot/common
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on. Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS
+ KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+ Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf bug. Until the bug is fixed you can use this workaround:
+
+ CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+ Print a summary of all of the options to `configure', and exit.
+
+`--help=short'
+`--help=recursive'
+ Print a summary of the options unique to this package's
+ `configure', and exit. The `short' variant lists options used
+ only in the top level, while the `recursive' variant lists options
+ also present in any nested packages.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`--prefix=DIR'
+ Use DIR as the installation prefix. *note Installation Names::
+ for more details, including other options available for fine-tuning
+ the installation locations.
+
+`--no-create'
+`-n'
+ Run the configure checks, but stop before creating any output
+ files.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..0182df2
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = src
+ACLOCAL_AMFLAGS = -I m4
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..471be63
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,761 @@
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
+ compile config.guess config.sub depcomp install-sh ltmain.sh \
+ missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir dist dist-all distcheck
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ if test -d "$(distdir)"; then \
+ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -rf "$(distdir)" \
+ || { sleep 5 && rm -rf "$(distdir)"; }; \
+ else :; fi
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = src
+ACLOCAL_AMFLAGS = -I m4
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh: Makefile
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
+
+config.h: stamp-h1
+ @if test ! -f $@; then rm -f stamp-h1; else :; fi
+ @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.h.in: $(am__configure_deps)
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool config.lt
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d "$(distdir)" || mkdir "$(distdir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -test -n "$(am__skip_mode_fix)" \
+ || find "$(distdir)" -type d ! -perm -755 \
+ -exec chmod u+rwx,go+rx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r "$(distdir)"
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-lzip: distdir
+ tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
+ $(am__remove_distdir)
+
+dist-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-xz: distdir
+ tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lzma*) \
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.lz*) \
+ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
+ *.tar.xz*) \
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod u+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && am__cwd=`pwd` \
+ && $(am__cd) $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+ && cd "$$am__cwd" \
+ || exit 1
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @test -n '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: trying to run $@ with an empty' \
+ '$$(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ $(am__cd) '$(distuninstallcheck_dir)' || { \
+ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
+ exit 1; \
+ }; \
+ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
+ ctags-recursive install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
+ dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
+ dist-zip distcheck distclean distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags distcleancheck distdir \
+ distuninstallcheck dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags tags-recursive uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 0000000..d19f831
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,1011 @@
+# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
+# Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
+[m4_warning([this file was generated for autoconf 2.69.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
+
+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
+# Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.11'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.11.6], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.11.6])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory. The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run. This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+# fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+# fails if $ac_aux_dir is absolute,
+# fails when called from a subdirectory in a VPATH build with
+# a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir. In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+# MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH. The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 9
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+m4_define([_AM_COND_VALUE_$1], [$2])dnl
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+ AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
+# 2010, 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 12
+
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery. Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "GCJ", or "OBJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
+ [depcc="$$1" am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+ [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_$1_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+ fi
+ am__universal=false
+ m4_case([$1], [CC],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac],
+ [CXX],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac])
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+ # This compiler won't grok `-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_$1_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE(dependency-tracking,
+[ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors])
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+ am__nodep='_no'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+AC_SUBST([am__nodep])dnl
+_AM_SUBST_NOTMAKE([am__nodep])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+#serial 5
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[{
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`AS_DIRNAME(["$file"])`
+ AS_MKDIR_P([$dirpart/$fdir])
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+ done
+}
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled. FIXME. This creates each `.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 16
+
+# This macro actually does too much. Some checks are only needed if
+# your package does certain things. But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition. After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.62])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+ [_AM_DEPENDENCIES(CC)],
+ [define([AC_PROG_CC],
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [_AM_DEPENDENCIES(CXX)],
+ [define([AC_PROG_CXX],
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+])
+_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
+dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
+dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
+dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
+AC_CONFIG_COMMANDS_PRE(dnl
+[m4_provide_if([_AM_COMPILER_EXEEXT],
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
+])
+
+dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
+dnl mangled by Autoconf and run in a shell conditional statement.
+m4_define([_AC_COMPILER_EXEEXT],
+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated. The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
+# Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot. For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+ am__include=include
+ am__quote=
+ _am_result=GNU
+ ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ case `$am_make -s -f confmf 2> /dev/null` in #(
+ *the\ am__doit\ target*)
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ ;;
+ esac
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 6
+
+# AM_PROG_CC_C_O
+# --------------
+# Like AC_PROG_CC_C_O, but changed for automake.
+AC_DEFUN([AM_PROG_CC_C_O],
+[AC_REQUIRE([AC_PROG_CC_C_O])dnl
+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([compile])dnl
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
+if test "$am_t" != yes; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+dnl Make sure AC_PROG_CC is never called again, or it will override our
+dnl setting of CC.
+m4_define([AC_PROG_CC],
+ [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
+])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 6
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
+# Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
+# Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# --------------------
+# Set option NAME. Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+case $srcdir in
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
+esac
+
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$[*]" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+alias in your environment])
+ fi
+
+ test "$[2]" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries. This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test "$cross_compiling" != no; then
+ AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# AM_SUBST_NOTMAKE(VARIABLE)
+# --------------------------
+# Public sister of _AM_SUBST_NOTMAKE.
+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AC_SUBST([AMTAR], ['$${TAR-tar}'])
+m4_if([$1], [v7],
+ [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
+ [m4_case([$1], [ustar],, [pax],,
+ [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([m4/libtool.m4])
+m4_include([m4/ltoptions.m4])
+m4_include([m4/ltsugar.m4])
+m4_include([m4/ltversion.m4])
+m4_include([m4/lt~obsolete.m4])
diff --git a/compile b/compile
new file mode 100755
index 0000000..862a14e
--- /dev/null
+++ b/compile
@@ -0,0 +1,343 @@
+#! /bin/sh
+# Wrapper for compilers which do not understand '-c -o'.
+
+scriptversion=2012-03-05.13; # UTC
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
+# Software Foundation, Inc.
+# Written by Tom Tromey <tromey at cygnus.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake at gnu.org> or send patches to
+# <automake-patches at gnu.org>.
+
+nl='
+'
+
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent tools from complaining about whitespace usage.
+IFS=" "" $nl"
+
+file_conv=
+
+# func_file_conv build_file lazy
+# Convert a $build file to $host form and store it in $file
+# Currently only supports Windows hosts. If the determined conversion
+# type is listed in (the comma separated) LAZY, no conversion will
+# take place.
+func_file_conv ()
+{
+ file=$1
+ case $file in
+ / | /[!/]*) # absolute file, and not a UNC file
+ if test -z "$file_conv"; then
+ # lazily determine how to convert abs files
+ case `uname -s` in
+ MINGW*)
+ file_conv=mingw
+ ;;
+ CYGWIN*)
+ file_conv=cygwin
+ ;;
+ *)
+ file_conv=wine
+ ;;
+ esac
+ fi
+ case $file_conv/,$2, in
+ *,$file_conv,*)
+ ;;
+ mingw/*)
+ file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
+ ;;
+ cygwin/*)
+ file=`cygpath -m "$file" || echo "$file"`
+ ;;
+ wine/*)
+ file=`winepath -w "$file" || echo "$file"`
+ ;;
+ esac
+ ;;
+ esac
+}
+
+# func_cl_dashL linkdir
+# Make cl look for libraries in LINKDIR
+func_cl_dashL ()
+{
+ func_file_conv "$1"
+ if test -z "$lib_path"; then
+ lib_path=$file
+ else
+ lib_path="$lib_path;$file"
+ fi
+ linker_opts="$linker_opts -LIBPATH:$file"
+}
+
+# func_cl_dashl library
+# Do a library search-path lookup for cl
+func_cl_dashl ()
+{
+ lib=$1
+ found=no
+ save_IFS=$IFS
+ IFS=';'
+ for dir in $lib_path $LIB
+ do
+ IFS=$save_IFS
+ if $shared && test -f "$dir/$lib.dll.lib"; then
+ found=yes
+ lib=$dir/$lib.dll.lib
+ break
+ fi
+ if test -f "$dir/$lib.lib"; then
+ found=yes
+ lib=$dir/$lib.lib
+ break
+ fi
+ done
+ IFS=$save_IFS
+
+ if test "$found" != yes; then
+ lib=$lib.lib
+ fi
+}
+
+# func_cl_wrapper cl arg...
+# Adjust compile command to suit cl
+func_cl_wrapper ()
+{
+ # Assume a capable shell
+ lib_path=
+ shared=:
+ linker_opts=
+ for arg
+ do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
+ eat=1
+ case $2 in
+ *.o | *.[oO][bB][jJ])
+ func_file_conv "$2"
+ set x "$@" -Fo"$file"
+ shift
+ ;;
+ *)
+ func_file_conv "$2"
+ set x "$@" -Fe"$file"
+ shift
+ ;;
+ esac
+ ;;
+ -I)
+ eat=1
+ func_file_conv "$2" mingw
+ set x "$@" -I"$file"
+ shift
+ ;;
+ -I*)
+ func_file_conv "${1#-I}" mingw
+ set x "$@" -I"$file"
+ shift
+ ;;
+ -l)
+ eat=1
+ func_cl_dashl "$2"
+ set x "$@" "$lib"
+ shift
+ ;;
+ -l*)
+ func_cl_dashl "${1#-l}"
+ set x "$@" "$lib"
+ shift
+ ;;
+ -L)
+ eat=1
+ func_cl_dashL "$2"
+ ;;
+ -L*)
+ func_cl_dashL "${1#-L}"
+ ;;
+ -static)
+ shared=false
+ ;;
+ -Wl,*)
+ arg=${1#-Wl,}
+ save_ifs="$IFS"; IFS=','
+ for flag in $arg; do
+ IFS="$save_ifs"
+ linker_opts="$linker_opts $flag"
+ done
+ IFS="$save_ifs"
+ ;;
+ -Xlinker)
+ eat=1
+ linker_opts="$linker_opts $2"
+ ;;
+ -*)
+ set x "$@" "$1"
+ shift
+ ;;
+ *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
+ func_file_conv "$1"
+ set x "$@" -Tp"$file"
+ shift
+ ;;
+ *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
+ func_file_conv "$1" mingw
+ set x "$@" "$file"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+ done
+ if test -n "$linker_opts"; then
+ linker_opts="-link$linker_opts"
+ fi
+ exec "$@" $linker_opts
+ exit 1
+}
+
+eat=
+
+case $1 in
+ '')
+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand '-c -o'.
+Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file 'INSTALL'.
+
+Report bugs to <bug-automake at gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "compile $scriptversion"
+ exit $?
+ ;;
+ cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
+ func_cl_wrapper "$@" # Doesn't return...
+ ;;
+esac
+
+ofile=
+cfile=
+
+for arg
+do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as 'compile cc -o foo foo.c'.
+ # So we strip '-o arg' only if arg is an object.
+ eat=1
+ case $2 in
+ *.o | *.obj)
+ ofile=$2
+ ;;
+ *)
+ set x "$@" -o "$2"
+ shift
+ ;;
+ esac
+ ;;
+ *.c)
+ cfile=$1
+ set x "$@" "$1"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+ # If no '-o' option was seen then we might have been invoked from a
+ # pattern rule where we don't need one. That is ok -- this is a
+ # normal compilation that the losing compiler can handle. If no
+ # '.c' file was seen then we are probably linking. That is also
+ # ok.
+ exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use '[/\\:.-]' here to ensure that we don't use the same name
+# that we are using for the .o file. Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
+while true; do
+ if mkdir "$lockdir" >/dev/null 2>&1; then
+ break
+ fi
+ sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+ test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/config.guess b/config.guess
new file mode 100755
index 0000000..d622a44
--- /dev/null
+++ b/config.guess
@@ -0,0 +1,1530 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011, 2012 Free Software Foundation, Inc.
+
+timestamp='2012-02-10'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner. Please send patches (context
+# diff format) to <config-patches at gnu.org> and include a ChangeLog
+# entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches at gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi at noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ELF__
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee at wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[4567])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep -q __LP64__
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case ${UNAME_PROCESSOR} in
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:MSYS*:*)
+ echo ${UNAME_MACHINE}-pc-msys
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ authenticamd | genuineintel | EM64T)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ aarch64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ aarch64_be:Linux:*:*)
+ UNAME_MACHINE=aarch64_be
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+ fi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo ${UNAME_MACHINE}-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo ${UNAME_MACHINE}-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ hexagon:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ LIBC=gnu
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:* | mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=${UNAME_MACHINE}el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=${UNAME_MACHINE}
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-gnu
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ tile*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel at ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes at openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf at swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green at stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green at stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ i386)
+ eval $set_cc_for_build
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ UNAME_PROCESSOR="x86_64"
+ fi
+ fi ;;
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NEO-?:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
+ exit ;;
+ x86_64:VMkernel:*:*)
+ echo ${UNAME_MACHINE}-unknown-esx
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches at gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 0000000..5212d6e
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,78 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
+ to 0 otherwise. */
+#undef HAVE_MALLOC
+
+/* Define to 1 if you have the <math.h> header file. */
+#undef HAVE_MATH_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#undef LT_OBJDIR
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+#undef NO_MINUS_C_MINUS_O
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to rpl_malloc if the replacement function should be used. */
+#undef malloc
diff --git a/config.sub b/config.sub
new file mode 100755
index 0000000..6205f84
--- /dev/null
+++ b/config.sub
@@ -0,0 +1,1782 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
+# 2011, 2012 Free Software Foundation, Inc.
+
+timestamp='2012-04-18'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to <config-patches at gnu.org>. Submit a context
+# diff and a properly formatted GNU ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches at gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
+Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ android-linux)
+ os=-linux-android
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray | -microblaze)
+ os=
+ basic_machine=$1
+ ;;
+ -bluegene*)
+ os=-cnk
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*178)
+ os=-lynxos178
+ ;;
+ -lynx*5)
+ os=-lynxos5
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | aarch64 | aarch64_be \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | be32 | be64 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | epiphany \
+ | fido | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | hexagon \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | le32 | le64 \
+ | lm32 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | moxie \
+ | mt \
+ | msp430 \
+ | nds32 | nds32le | nds32be \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | open8 \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
+ | pyramid \
+ | rl78 | rx \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+ | ubicom32 \
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | we32k \
+ | x86 | xc16x | xstormy16 | xtensa \
+ | z8k | z80)
+ basic_machine=$basic_machine-unknown
+ ;;
+ c54x)
+ basic_machine=tic54x-unknown
+ ;;
+ c55x)
+ basic_machine=tic55x-unknown
+ ;;
+ c6x)
+ basic_machine=tic6x-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+ xgate)
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ xscaleeb)
+ basic_machine=armeb-unknown
+ ;;
+
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | aarch64-* | aarch64_be-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | be32-* | be64-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | hexagon-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | le32-* | le64-* \
+ | lm32-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nds32-* | nds32le-* | nds32be-* \
+ | nios-* | nios2-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | open8-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+ | pyramid-* \
+ | rl78-* | romp-* | rs6000-* | rx-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
+ | tahoe-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tile*-* \
+ | tron-* \
+ | ubicom32-* \
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+ | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c54x-*)
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c55x-*)
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c6x-*)
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16 | cr16-*)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ microblaze)
+ basic_machine=microblaze-xilinx
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ msys)
+ basic_machine=i386-pc
+ os=-msys
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc | ppcbe) basic_machine=powerpc-unknown
+ ;;
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ strongarm-* | thumb-*)
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tile*)
+ basic_machine=$basic_machine-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ xscale-* | xscalee[bl]-*)
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -auroraux)
+ os=-auroraux
+ ;;
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* | -aros* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -nacl*)
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ hexagon-*)
+ os=-elf
+ ;;
+ tic54x-*)
+ os=-coff
+ ;;
+ tic55x-*)
+ os=-coff
+ ;;
+ tic6x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -cnk*|-aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/configure b/configure
new file mode 100755
index 0000000..d7dfd1a
--- /dev/null
+++ b/configure
@@ -0,0 +1,14070 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.69 for spglib 1.4.1.
+#
+# Report bugs to <atz.togo at gmail.com>.
+#
+#
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# Use a proper internal environment variable to ensure we don't fall
+ # into an infinite loop, continuously re-executing ourselves.
+ if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
+ _as_can_reexec=no; export _as_can_reexec;
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+as_fn_exit 255
+ fi
+ # We don't want this to propagate to other subprocesses.
+ { _as_can_reexec=; unset _as_can_reexec;}
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1
+test -x / || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+
+ test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+ ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+ PATH=/empty FPATH=/empty; export PATH FPATH
+ test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
+ || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null; then :
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir/$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
+ export CONFIG_SHELL
+ # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+fi
+
+ if test x$as_have_required = xno; then :
+ $as_echo "$0: This script requires a shell more modern than all"
+ $as_echo "$0: the shells that I found on your system."
+ if test x${ZSH_VERSION+set} = xset ; then
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ $as_echo "$0: Please tell bug-autoconf at gnu.org and atz.togo at gmail.com
+$0: about your system, including any error possibly output
+$0: before this message. Then install a modern shell, or
+$0: manually run the script under such a shell if you do
+$0: have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+ # already done that, so ensure we don't try to do so again and fall
+ # in an infinite loop. This has already happened in practice.
+ _as_can_reexec=no; export _as_can_reexec
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='spglib'
+PACKAGE_TARNAME='spglib'
+PACKAGE_VERSION='1.4.1'
+PACKAGE_STRING='spglib 1.4.1'
+PACKAGE_BUGREPORT='atz.togo at gmail.com'
+PACKAGE_URL=''
+
+ac_unique_file="src/spglib.c"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='am__EXEEXT_FALSE
+am__EXEEXT_TRUE
+LTLIBOBJS
+LIBOBJS
+CPP
+OTOOL64
+OTOOL
+LIPO
+NMEDIT
+DSYMUTIL
+MANIFEST_TOOL
+RANLIB
+ac_ct_AR
+AR
+DLLTOOL
+OBJDUMP
+LN_S
+NM
+ac_ct_DUMPBIN
+DUMPBIN
+LD
+FGREP
+EGREP
+GREP
+SED
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+LIBTOOL
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+am__nodep
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__quote
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_dependency_tracking
+enable_shared
+enable_static
+with_pic
+enable_fast_install
+with_gnu_ld
+with_sysroot
+enable_libtool_lock
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures spglib 1.4.1 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking ...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/spglib]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of spglib 1.4.1:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors
+ --enable-shared[=PKGS] build shared libraries [default=yes]
+ --enable-static[=PKGS] build static libraries [default=yes]
+ --enable-fast-install[=PKGS]
+ optimize for fast installation [default=yes]
+ --disable-libtool-lock avoid locking (might break parallel builds)
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-sysroot=DIR Search for dependent libraries within DIR
+ (or the compiler's sysroot if not specified).
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CPP C preprocessor
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <atz.togo at gmail.com>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+spglib configure 1.4.1
+generated by GNU Autoconf 2.69
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ test -x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } > conftest.i && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main ()
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_func
+
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
+# the include files in INCLUDES and setting the cache variable VAR
+# accordingly.
+ac_fn_c_check_header_mongrel ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if eval \${$3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
+$as_echo_n "checking $2 usability... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_header_compiler=yes
+else
+ ac_header_compiler=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
+$as_echo_n "checking $2 presence... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <$2>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ ac_header_preproc=yes
+else
+ ac_header_preproc=no
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
+ yes:no: )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+( $as_echo "## --------------------------------- ##
+## Report this to atz.togo at gmail.com ##
+## --------------------------------- ##"
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=\$ac_header_compiler"
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_mongrel
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by spglib $as_me 1.4.1, which was
+generated by GNU Autoconf 2.69. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+$as_echo "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ # We do not want a PATH search for config.site.
+ case $CONFIG_SITE in #((
+ -*) ac_site_file1=./$CONFIG_SITE;;
+ */*) ac_site_file1=$CONFIG_SITE;;
+ *) ac_site_file1=./$CONFIG_SITE;;
+ esac
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+am__api_version='1.11'
+
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if ${ac_cv_path_install+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in #((
+ ./ | .// | /[cC]/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[\\\"\#\$\&\'\`$am_lf]*)
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
+esac
+case $srcdir in
+ *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
+ as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
+esac
+
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
+alias in your environment" "$LINENO" 5
+ fi
+
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ as_fn_error $? "newly created file is older than distributed files!
+Check your system clock" "$LINENO" 5
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+test "$program_prefix" != NONE &&
+ program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
+fi
+
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if ${ac_cv_path_mkdir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+ done
+IFS=$as_save_IFS
+
+fi
+
+ test -d ./--version && rmdir ./--version
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AWK+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE=spglib
+ VERSION=1.4.1
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility. Yes, it's still used
+# in the wild :-( We should find a proper way to deprecate it ...
+AMTAR='$${TAR-tar}'
+
+am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
+
+
+
+
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+
+
+# Checks for programs.
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+if test -z "$ac_file"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest conftest$ac_cv_exeext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if ${ac_cv_objext+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if ${ac_cv_c_compiler_gnu+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_compiler_gnu=yes
+else
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if ${ac_cv_prog_cc_g+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+else
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if ${ac_cv_prog_cc_c89+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+struct stat;
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+ am__include=include
+ am__quote=
+ _am_result=GNU
+ ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ case `$am_make -s -f confmf 2> /dev/null` in #(
+ *the\ am__doit\ target*)
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ ;;
+ esac
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then :
+ enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+ am__nodep='_no'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+fi
+
+
+
+depcc="$CC" am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if ${am_cv_CC_dependencies_compiler_type+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ am__universal=false
+ case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+ # This compiler won't grok `-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CC_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+ am__fastdepCC_TRUE=
+ am__fastdepCC_FALSE='#'
+else
+ am__fastdepCC_TRUE='#'
+ am__fastdepCC_FALSE=
+fi
+
+
+# AC_PROG_RANLIB
+if test "x$CC" != xcc; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
+$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
+$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
+fi
+set dummy $CC; ac_cc=`$as_echo "$2" |
+ sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
+if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+# Make sure it works both with $CC and with simple cc.
+# We do the test twice because some compilers refuse to overwrite an
+# existing .o file with -o, though they will create one.
+ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
+rm -f conftest2.*
+if { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } &&
+ test -f conftest2.$ac_objext && { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; };
+then
+ eval ac_cv_prog_cc_${ac_cc}_c_o=yes
+ if test "x$CC" != xcc; then
+ # Test first that cc exists at all.
+ if { ac_try='cc -c conftest.$ac_ext >&5'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
+ rm -f conftest2.*
+ if { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } &&
+ test -f conftest2.$ac_objext && { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; };
+ then
+ # cc works too.
+ :
+ else
+ # cc exists but doesn't like -o.
+ eval ac_cv_prog_cc_${ac_cc}_c_o=no
+ fi
+ fi
+ fi
+else
+ eval ac_cv_prog_cc_${ac_cc}_c_o=no
+fi
+rm -f core conftest*
+
+fi
+if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
+
+fi
+
+# FIXME: we rely on the cache variable name because
+# there is no other way.
+set dummy $CC
+am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
+if test "$am_t" != yes; then
+ # Losing compiler, so override with the script.
+ # FIXME: It is wrong to rewrite CC.
+ # But if we don't then we get into trouble of one sort or another.
+ # A longer-term fix would be to have automake use am__CC in this case,
+ # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+ CC="$am_aux_dir/compile $CC"
+fi
+
+
+case `pwd` in
+ *\ * | *\ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
+esac
+
+
+
+macro_version='2.4.2'
+macro_revision='1.3337'
+
+
+
+
+
+
+
+
+
+
+
+
+
+ltmain="$ac_aux_dir/ltmain.sh"
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if ${ac_cv_build+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if ${ac_cv_host+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+# Backslashify metacharacters that are still active within
+# double-quoted strings.
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
+$as_echo_n "checking how to print strings... " >&6; }
+# Test print first, because it will be a builtin if present.
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='print -r --'
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='printf %s\n'
+else
+ # Use this function as a fallback that always works.
+ func_fallback_echo ()
+ {
+ eval 'cat <<_LTECHO_EOF
+$1
+_LTECHO_EOF'
+ }
+ ECHO='func_fallback_echo'
+fi
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+ $ECHO ""
+}
+
+case "$ECHO" in
+ printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
+$as_echo "printf" >&6; } ;;
+ print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
+$as_echo "print -r" >&6; } ;;
+ *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
+$as_echo "cat" >&6; } ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
+if ${ac_cv_path_SED+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
+ for ac_i in 1 2 3 4 5 6 7; do
+ ac_script="$ac_script$as_nl$ac_script"
+ done
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
+ { ac_script=; unset ac_script;}
+ if test -z "$SED"; then
+ ac_path_SED_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_SED" || continue
+# Check for GNU ac_path_SED and select it if it is found.
+ # Check for GNU $ac_path_SED
+case `"$ac_path_SED" --version 2>&1` in
+*GNU*)
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo '' >> "conftest.nl"
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_SED="$ac_path_SED"
+ ac_path_SED_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_SED_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_SED"; then
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
+ fi
+else
+ ac_cv_path_SED=$SED
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
+$as_echo "$ac_cv_path_SED" >&6; }
+ SED="$ac_cv_path_SED"
+ rm -f conftest.sed
+
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if ${ac_cv_path_GREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_GREP" || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if ${ac_cv_path_EGREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_EGREP" || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
+$as_echo_n "checking for fgrep... " >&6; }
+if ${ac_cv_path_FGREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
+ then ac_cv_path_FGREP="$GREP -F"
+ else
+ if test -z "$FGREP"; then
+ ac_path_FGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in fgrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
+ as_fn_executable_p "$ac_path_FGREP" || continue
+# Check for GNU ac_path_FGREP and select it if it is found.
+ # Check for GNU $ac_path_FGREP
+case `"$ac_path_FGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'FGREP' >> "conftest.nl"
+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_FGREP="$ac_path_FGREP"
+ ac_path_FGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_FGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_FGREP"; then
+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_FGREP=$FGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
+$as_echo "$ac_cv_path_FGREP" >&6; }
+ FGREP="$ac_cv_path_FGREP"
+
+
+test -z "$GREP" && GREP=grep
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then :
+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | ?:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if ${lt_cv_path_LD+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if ${lt_cv_prog_gnu_ld+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
+$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
+if ${lt_cv_path_NM+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
+$as_echo "$lt_cv_path_NM" >&6; }
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ if test -n "$DUMPBIN"; then :
+ # Let the user override the test.
+ else
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in dumpbin "link -dump"
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_DUMPBIN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DUMPBIN"; then
+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DUMPBIN=$ac_cv_prog_DUMPBIN
+if test -n "$DUMPBIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
+$as_echo "$DUMPBIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$DUMPBIN" && break
+ done
+fi
+if test -z "$DUMPBIN"; then
+ ac_ct_DUMPBIN=$DUMPBIN
+ for ac_prog in dumpbin "link -dump"
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DUMPBIN"; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
+if test -n "$ac_ct_DUMPBIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
+$as_echo "$ac_ct_DUMPBIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_DUMPBIN" && break
+done
+
+ if test "x$ac_ct_DUMPBIN" = x; then
+ DUMPBIN=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DUMPBIN=$ac_ct_DUMPBIN
+ fi
+fi
+
+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
+ *COFF*)
+ DUMPBIN="$DUMPBIN -symbols"
+ ;;
+ *)
+ DUMPBIN=:
+ ;;
+ esac
+ fi
+
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
+$as_echo_n "checking the name lister ($NM) interface... " >&6; }
+if ${lt_cv_nm_interface+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:$LINENO: output\"" >&5)
+ cat conftest.out >&5
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
+$as_echo "$lt_cv_nm_interface" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+# find the maximum length of command line arguments
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
+if ${lt_cv_sys_max_cmd_len+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ mint*)
+ # On MiNT this can take a long time and run out of memory.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ os2*)
+ # The test takes a long time on OS/2.
+ lt_cv_sys_max_cmd_len=8192
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+
+fi
+
+if test -n $lt_cv_sys_max_cmd_len ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+
+
+
+
+
+: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
+$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,b/c, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
+$as_echo "$xsi_shell" >&6; }
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
+$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
+$as_echo "$lt_shell_append" >&6; }
+
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+
+
+
+
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
+if ${lt_cv_to_host_file_cmd+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $host in
+ *-*-mingw* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
+ ;;
+ *-*-cygwin* )
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
+ ;;
+ * ) # otherwise, assume *nix
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
+ ;;
+ esac
+ ;;
+ *-*-cygwin* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
+ ;;
+ *-*-cygwin* )
+ lt_cv_to_host_file_cmd=func_convert_file_noop
+ ;;
+ * ) # otherwise, assume *nix
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
+ ;;
+ esac
+ ;;
+ * ) # unhandled hosts (and "normal" native builds)
+ lt_cv_to_host_file_cmd=func_convert_file_noop
+ ;;
+esac
+
+fi
+
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
+if ${lt_cv_to_tool_file_cmd+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ #assume ordinary cross tools, or native build.
+lt_cv_to_tool_file_cmd=func_convert_file_noop
+case $host in
+ *-*-mingw* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
+ ;;
+ esac
+ ;;
+esac
+
+fi
+
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
+$as_echo_n "checking for $LD option to reload object files... " >&6; }
+if ${lt_cv_ld_reload_flag+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_reload_flag='-r'
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
+$as_echo "$lt_cv_ld_reload_flag" >&6; }
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ if test "$GCC" != yes; then
+ reload_cmds=false
+ fi
+ ;;
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OBJDUMP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OBJDUMP"; then
+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
+$as_echo "$OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+ ac_ct_OBJDUMP=$OBJDUMP
+ # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OBJDUMP"; then
+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
+$as_echo "$ac_ct_OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
+if ${lt_cv_deplibs_check_method+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[4-9]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[45]*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ # Keep this pattern in sync with the one in func_win32_libid.
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc*)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+haiku*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[3-9]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
+$as_echo "$lt_cv_deplibs_check_method" >&6; }
+
+file_magic_glob=
+want_nocaseglob=no
+if test "$build" = "$host"; then
+ case $host_os in
+ mingw* | pw32*)
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
+ want_nocaseglob=yes
+ else
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
+ fi
+ ;;
+ esac
+fi
+
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_DLLTOOL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DLLTOOL"; then
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DLLTOOL=$ac_cv_prog_DLLTOOL
+if test -n "$DLLTOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
+$as_echo "$DLLTOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DLLTOOL"; then
+ ac_ct_DLLTOOL=$DLLTOOL
+ # Extract the first word of "dlltool", so it can be a program name with args.
+set dummy dlltool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DLLTOOL"; then
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
+if test -n "$ac_ct_DLLTOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
+$as_echo "$ac_ct_DLLTOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_DLLTOOL" = x; then
+ DLLTOOL="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DLLTOOL=$ac_ct_DLLTOOL
+ fi
+else
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
+fi
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_sharedlib_from_linklib_cmd='unknown'
+
+case $host_os in
+cygwin* | mingw* | pw32* | cegcc*)
+ # two different shell functions defined in ltmain.sh
+ # decide which to use based on capabilities of $DLLTOOL
+ case `$DLLTOOL --help 2>&1` in
+ *--identify-strict*)
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
+ ;;
+ *)
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
+ ;;
+ esac
+ ;;
+*)
+ # fallback: assume linklib IS sharedlib
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
+ ;;
+esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ for ac_prog in ar
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AR" && break
+ done
+fi
+if test -z "$AR"; then
+ ac_ct_AR=$AR
+ for ac_prog in ar
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_AR+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_AR="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_AR" && break
+done
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+fi
+
+: ${AR=ar}
+: ${AR_FLAGS=cru}
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
+$as_echo_n "checking for archiver @FILE support... " >&6; }
+if ${lt_cv_ar_at_file+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ar_at_file=no
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ echo conftest.$ac_objext > conftest.lst
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
+ (eval $lt_ar_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if test "$ac_status" -eq 0; then
+ # Ensure the archiver fails upon bogus file names.
+ rm -f conftest.$ac_objext libconftest.a
+ { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
+ (eval $lt_ar_try) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if test "$ac_status" -ne 0; then
+ lt_cv_ar_at_file=@
+ fi
+ fi
+ rm -f conftest.* libconftest.a
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
+$as_echo "$lt_cv_ar_at_file" >&6; }
+
+if test "x$lt_cv_ar_at_file" = xno; then
+ archiver_list_spec=
+else
+ archiver_list_spec=$lt_cv_ar_at_file
+fi
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+test -z "$STRIP" && STRIP=:
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_RANLIB+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+test -z "$RANLIB" && RANLIB=:
+
+
+
+
+
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
+fi
+
+case $host_os in
+ darwin*)
+ lock_old_archive_extraction=yes ;;
+ *)
+ lock_old_archive_extraction=no ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
+if ${lt_cv_sys_global_symbol_pipe+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[BCDT]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[ABCDGISTW]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[ABCDEGRST]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[BCDEGRST]'
+ ;;
+osf*)
+ symcode='[BCDEGQRST]'
+ ;;
+solaris*)
+ symcode='[BDRT]'
+ ;;
+sco3.2v5*)
+ symcode='[DT]'
+ ;;
+sysv4.2uw2*)
+ symcode='[DT]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[ABDT]'
+ ;;
+sysv4)
+ symcode='[DFNSTU]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[ABCDGIRSTW]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK '"\
+" {last_section=section; section=\$ 3};"\
+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
+ (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
+# define LT_DLSYM_CONST
+#elif defined(__osf__)
+/* This system does not cope well with relocations in const data. */
+# define LT_DLSYM_CONST
+#else
+# define LT_DLSYM_CONST const
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+LT_DLSYM_CONST struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_globsym_save_LIBS=$LIBS
+ lt_globsym_save_CFLAGS=$CFLAGS
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS=$lt_globsym_save_LIBS
+ CFLAGS=$lt_globsym_save_CFLAGS
+ else
+ echo "cannot find nm_test_func in $nlist" >&5
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&5
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
+ fi
+ else
+ echo "$progname: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+
+fi
+
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
+$as_echo "failed" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+fi
+
+# Response file support.
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ nm_file_list_spec='@'
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
+ nm_file_list_spec='@'
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
+$as_echo_n "checking for sysroot... " >&6; }
+
+# Check whether --with-sysroot was given.
+if test "${with_sysroot+set}" = set; then :
+ withval=$with_sysroot;
+else
+ with_sysroot=no
+fi
+
+
+lt_sysroot=
+case ${with_sysroot} in #(
+ yes)
+ if test "$GCC" = yes; then
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
+ fi
+ ;; #(
+ /*)
+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
+ ;; #(
+ no|'')
+ ;; #(
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
+$as_echo "${with_sysroot}" >&6; }
+ as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
+ ;;
+esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
+$as_echo "${lt_sysroot:-no}" >&6; }
+
+
+
+
+
+# Check whether --enable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then :
+ enableval=$enable_libtool_lock;
+fi
+
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '#line '$LINENO' "configure"' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
+if ${lt_cv_cc_needs_belf+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ lt_cv_cc_needs_belf=yes
+else
+ lt_cv_cc_needs_belf=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
+$as_echo "$lt_cv_cc_needs_belf" >&6; }
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*)
+ case $host in
+ i?86-*-solaris*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ sparc*-*-solaris*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
+ LD="${LD-ld}_sol2"
+ fi
+ ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
+set dummy ${ac_tool_prefix}mt; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$MANIFEST_TOOL"; then
+ ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
+if test -n "$MANIFEST_TOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
+$as_echo "$MANIFEST_TOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
+ ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
+ # Extract the first word of "mt", so it can be a program name with args.
+set dummy mt; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_MANIFEST_TOOL"; then
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
+if test -n "$ac_ct_MANIFEST_TOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_MANIFEST_TOOL" = x; then
+ MANIFEST_TOOL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
+ fi
+else
+ MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
+fi
+
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
+if ${lt_cv_path_mainfest_tool+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_path_mainfest_tool=no
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
+ cat conftest.err >&5
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
+ lt_cv_path_mainfest_tool=yes
+ fi
+ rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
+ MANIFEST_TOOL=:
+fi
+
+
+
+
+
+
+ case $host_os in
+ rhapsody* | darwin*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_DSYMUTIL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DSYMUTIL"; then
+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DSYMUTIL=$ac_cv_prog_DSYMUTIL
+if test -n "$DSYMUTIL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
+$as_echo "$DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DSYMUTIL"; then
+ ac_ct_DSYMUTIL=$DSYMUTIL
+ # Extract the first word of "dsymutil", so it can be a program name with args.
+set dummy dsymutil; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DSYMUTIL"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
+if test -n "$ac_ct_DSYMUTIL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
+$as_echo "$ac_ct_DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_DSYMUTIL" = x; then
+ DSYMUTIL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DSYMUTIL=$ac_ct_DSYMUTIL
+ fi
+else
+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_NMEDIT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NMEDIT"; then
+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+NMEDIT=$ac_cv_prog_NMEDIT
+if test -n "$NMEDIT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
+$as_echo "$NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NMEDIT"; then
+ ac_ct_NMEDIT=$NMEDIT
+ # Extract the first word of "nmedit", so it can be a program name with args.
+set dummy nmedit; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NMEDIT"; then
+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
+if test -n "$ac_ct_NMEDIT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
+$as_echo "$ac_ct_NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NMEDIT" = x; then
+ NMEDIT=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NMEDIT=$ac_ct_NMEDIT
+ fi
+else
+ NMEDIT="$ac_cv_prog_NMEDIT"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
+set dummy ${ac_tool_prefix}lipo; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_LIPO+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$LIPO"; then
+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+LIPO=$ac_cv_prog_LIPO
+if test -n "$LIPO"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
+$as_echo "$LIPO" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_LIPO"; then
+ ac_ct_LIPO=$LIPO
+ # Extract the first word of "lipo", so it can be a program name with args.
+set dummy lipo; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_LIPO"; then
+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_LIPO="lipo"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
+if test -n "$ac_ct_LIPO"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
+$as_echo "$ac_ct_LIPO" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_LIPO" = x; then
+ LIPO=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ LIPO=$ac_ct_LIPO
+ fi
+else
+ LIPO="$ac_cv_prog_LIPO"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OTOOL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OTOOL"; then
+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL=$ac_cv_prog_OTOOL
+if test -n "$OTOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
+$as_echo "$OTOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL"; then
+ ac_ct_OTOOL=$OTOOL
+ # Extract the first word of "otool", so it can be a program name with args.
+set dummy otool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OTOOL"; then
+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OTOOL="otool"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
+if test -n "$ac_ct_OTOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
+$as_echo "$ac_ct_OTOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL" = x; then
+ OTOOL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL=$ac_ct_OTOOL
+ fi
+else
+ OTOOL="$ac_cv_prog_OTOOL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OTOOL64+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OTOOL64"; then
+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL64=$ac_cv_prog_OTOOL64
+if test -n "$OTOOL64"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
+$as_echo "$OTOOL64" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL64"; then
+ ac_ct_OTOOL64=$OTOOL64
+ # Extract the first word of "otool64", so it can be a program name with args.
+set dummy otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OTOOL64"; then
+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ ac_cv_prog_ac_ct_OTOOL64="otool64"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
+if test -n "$ac_ct_OTOOL64"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
+$as_echo "$ac_ct_OTOOL64" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL64" = x; then
+ OTOOL64=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL64=$ac_ct_OTOOL64
+ fi
+else
+ OTOOL64="$ac_cv_prog_OTOOL64"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
+$as_echo_n "checking for -single_module linker flag... " >&6; }
+if ${lt_cv_apple_cc_single_mod+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&5
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ # If there is a non-empty error log, and "single_module"
+ # appears in it, assume the flag caused a linker warning
+ if test -s conftest.err && $GREP single_module conftest.err; then
+ cat conftest.err >&5
+ # Otherwise, if the output was created with a 0 exit code from
+ # the compiler, it worked.
+ elif test -f libconftest.dylib && test $_lt_result -eq 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&5
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
+if ${lt_cv_ld_exported_symbols_list+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ lt_cv_ld_exported_symbols_list=yes
+else
+ lt_cv_ld_exported_symbols_list=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
+$as_echo_n "checking for -force_load linker flag... " >&6; }
+if ${lt_cv_ld_force_load+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_force_load=no
+ cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
+ echo "$AR cru libconftest.a conftest.o" >&5
+ $AR cru libconftest.a conftest.o 2>&5
+ echo "$RANLIB libconftest.a" >&5
+ $RANLIB libconftest.a 2>&5
+ cat > conftest.c << _LT_EOF
+int main() { return 0;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
+ _lt_result=$?
+ if test -s conftest.err && $GREP force_load conftest.err; then
+ cat conftest.err >&5
+ elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
+ lt_cv_ld_force_load=yes
+ else
+ cat conftest.err >&5
+ fi
+ rm -f conftest.err libconftest.a conftest conftest.c
+ rm -rf conftest.dSYM
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
+$as_echo "$lt_cv_ld_force_load" >&6; }
+ case $host_os in
+ rhapsody* | darwin1.[012])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[012]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if ${ac_cv_prog_CPP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if ${ac_cv_header_stdc+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdc=yes
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then :
+ :
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+for ac_header in dlfcn.h
+do :
+ ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
+"
+if test "x$ac_cv_header_dlfcn_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_DLFCN_H 1
+_ACEOF
+
+fi
+
+done
+
+
+
+
+
+# Set options
+
+
+
+ enable_dlopen=no
+
+
+ enable_win32_dll=no
+
+
+ # Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then :
+ enableval=$enable_shared; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_shared=yes
+fi
+
+
+
+
+
+
+
+
+
+ # Check whether --enable-static was given.
+if test "${enable_static+set}" = set; then :
+ enableval=$enable_static; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_static=yes
+fi
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-pic was given.
+if test "${with_pic+set}" = set; then :
+ withval=$with_pic; lt_p=${PACKAGE-default}
+ case $withval in
+ yes|no) pic_mode=$withval ;;
+ *)
+ pic_mode=default
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for lt_pkg in $withval; do
+ IFS="$lt_save_ifs"
+ if test "X$lt_pkg" = "X$lt_p"; then
+ pic_mode=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ pic_mode=default
+fi
+
+
+test -z "$pic_mode" && pic_mode=default
+
+
+
+
+
+
+
+ # Check whether --enable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then :
+ enableval=$enable_fast_install; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_fast_install=yes
+fi
+
+
+
+
+
+
+
+
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+test -z "$LN_S" && LN_S="ln -s"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
+$as_echo_n "checking for objdir... " >&6; }
+if ${lt_cv_objdir+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
+$as_echo "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define LT_OBJDIR "$lt_cv_objdir/"
+_ACEOF
+
+
+
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+for cc_temp in $compiler""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
+if ${lt_cv_path_MAGIC_CMD+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/${ac_tool_prefix}file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool at gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
+$as_echo_n "checking for file... " >&6; }
+if ${lt_cv_path_MAGIC_CMD+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool at gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+
+lt_save_CC="$CC"
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+
+lt_prog_compiler_no_builtin_flag=
+
+if test "$GCC" = yes; then
+ case $cc_basename in
+ nvcc*)
+ lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
+ *)
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
+ esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
+if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
+
+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+ :
+fi
+
+fi
+
+
+
+
+
+
+ lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+
+ if test "$GCC" = yes; then
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_static='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic='-fno-common'
+ ;;
+
+ haiku*)
+ # PIC is the default for Haiku.
+ # The "-static" flag exists, but is broken.
+ lt_prog_compiler_static=
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[3-9]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+
+ case $cc_basename in
+ nvcc*) # Cuda Compiler Driver 2.2
+ lt_prog_compiler_wl='-Xlinker '
+ if test -n "$lt_prog_compiler_pic"; then
+ lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
+ fi
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ else
+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='--shared'
+ lt_prog_compiler_static='--static'
+ ;;
+ nagfor*)
+ # NAG Fortran compiler
+ lt_prog_compiler_wl='-Wl,-Wl,,'
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+ xl* | bgxl* | bgf* | mpixl*)
+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-qpic'
+ lt_prog_compiler_static='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl=''
+ ;;
+ *Sun\ F* | *Sun*Fortran*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Qoption ld '
+ ;;
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ *Intel*\ [CF]*Compiler*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ *Portland\ Group*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ rdos*)
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
+ lt_prog_compiler_wl='-Qoption ld ';;
+ *)
+ lt_prog_compiler_wl='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl='-Qoption ld '
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ lt_prog_compiler_pic='-Kconform_pic'
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ unicos*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_can_build_shared=no
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic='-pic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared=no
+ ;;
+ esac
+ fi
+
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic=
+ ;;
+ *)
+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+ ;;
+esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
+if ${lt_cv_prog_compiler_pic+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
+if ${lt_cv_prog_compiler_pic_works+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_pic_works=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_pic_works=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
+ case $lt_prog_compiler_pic in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+ esac
+else
+ lt_prog_compiler_pic=
+ lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+
+
+
+
+
+
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if ${lt_cv_prog_compiler_static_works+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_static_works=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&5
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ else
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_static_works" = xyes; then
+ :
+else
+ lt_prog_compiler_static=
+fi
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if ${lt_cv_prog_compiler_c_o+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if ${lt_cv_prog_compiler_c_o+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
+$as_echo_n "checking if we can lock with hard links... " >&6; }
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
+$as_echo "$hard_links" >&6; }
+ if test "$hard_links" = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+ runpath_var=
+ allow_undefined_flag=
+ always_export_symbols=no
+ archive_cmds=
+ archive_expsym_cmds=
+ compiler_needs_object=no
+ enable_shared_with_static_runtimes=no
+ export_dynamic_flag_spec=
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ hardcode_automatic=no
+ hardcode_direct=no
+ hardcode_direct_absolute=no
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_separator=
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ inherit_rpath=no
+ link_all_deplibs=unknown
+ module_cmds=
+ module_expsym_cmds=
+ old_archive_from_new_cmds=
+ old_archive_from_expsyms_cmds=
+ thread_safe_flag_spec=
+ whole_archive_flag_spec=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ linux* | k*bsd*-gnu | gnu*)
+ link_all_deplibs=no
+ ;;
+ esac
+
+ ld_shlibs=yes
+
+ # On some targets, GNU ld is compatible enough with the native linker
+ # that we're better off using the native interface for both.
+ lt_use_gnu_ld_interface=no
+ if test "$with_gnu_ld" = yes; then
+ case $host_os in
+ aix*)
+ # The AIX port of GNU ld has always aspired to compatibility
+ # with the native linker. However, as the warning in the GNU ld
+ # block says, versions before 2.19.5* couldn't really create working
+ # shared libraries, regardless of the interface used.
+ case `$LD -v 2>&1` in
+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
+ *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
+ *\ \(GNU\ Binutils\)\ [3-9]*) ;;
+ *)
+ lt_use_gnu_ld_interface=yes
+ ;;
+ esac
+ ;;
+ *)
+ lt_use_gnu_ld_interface=yes
+ ;;
+ esac
+ fi
+
+ if test "$lt_use_gnu_ld_interface" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ export_dynamic_flag_spec='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *GNU\ gold*) supports_anon_versioning=yes ;;
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[3-9]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.19, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to install binutils
+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
+*** You will then need to restart the configuration process.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag=unsupported
+ # Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ export_dynamic_flag_spec='${wl}--export-all-symbols'
+ allow_undefined_flag=unsupported
+ always_export_symbols=no
+ enable_shared_with_static_runtimes=yes
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
+ exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ haiku*)
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ link_all_deplibs=yes
+ ;;
+
+ interix[3-9]*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=' $pic_flag'
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95* | pgfortran*)
+ # Portland Group f77 and f90 compilers
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ whole_archive_flag_spec=
+ tmp_sharedflag='--shared' ;;
+ xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ nvcc*) # Cuda Compiler Driver 2.2
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ compiler_needs_object=yes
+ ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ compiler_needs_object=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf* | bgf* | bgxlf* | mpixlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+
+ if test "$ld_shlibs" = no; then
+ runpath_var=
+ hardcode_libdir_flag_spec=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ # Also, AIX nm treats weak defined symbols like other global
+ # defined symbols, whereas GNU nm marks them as "W".
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds=''
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ file_list_spec='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[012]|aix4.[012].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ hardcode_direct=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L=yes
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_libdir_separator=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ link_all_deplibs=no
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ export_dynamic_flag_spec='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ if test "${lt_cv_aix_libpath+set}" = set; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ if ${lt_cv_aix_libpath_+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+ lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }'
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_="/usr/lib:/lib"
+ fi
+
+fi
+
+ aix_libpath=$lt_cv_aix_libpath_
+fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag="-z nodefs"
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ if test "${lt_cv_aix_libpath+set}" = set; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ if ${lt_cv_aix_libpath_+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+ lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }'
+ lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ if test -z "$lt_cv_aix_libpath_"; then
+ lt_cv_aix_libpath_="/usr/lib:/lib"
+ fi
+
+fi
+
+ aix_libpath=$lt_cv_aix_libpath_
+fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag=' ${wl}-bernotok'
+ allow_undefined_flag=' ${wl}-berok'
+ if test "$with_gnu_ld" = yes; then
+ # We only use this code for GNU lds that support --whole-archive.
+ whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ else
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec='$convenience'
+ fi
+ archive_cmds_need_lc=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ case $cc_basename in
+ cl*)
+ # Native MSVC
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ file_list_spec='@'
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
+ else
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
+ fi~
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+ linknames='
+ # The linker will not automatically build a static lib if we build a DLL.
+ # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
+ enable_shared_with_static_runtimes=yes
+ exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
+ # Don't use ranlib
+ old_postinstall_cmds='chmod 644 $oldlib'
+ postlink_cmds='lt_outputfile="@OUTPUT@"~
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
+ case $lt_outputfile in
+ *.exe|*.EXE) ;;
+ *)
+ lt_outputfile="$lt_outputfile.exe"
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
+ ;;
+ esac~
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+ $RM "$lt_outputfile.manifest";
+ fi'
+ ;;
+ *)
+ # Assume MSVC wrapper
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_from_new_cmds='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ enable_shared_with_static_runtimes=yes
+ ;;
+ esac
+ ;;
+
+ darwin* | rhapsody*)
+
+
+ archive_cmds_need_lc=no
+ hardcode_direct=no
+ hardcode_automatic=yes
+ hardcode_shlibpath_var=unsupported
+ if test "$lt_cv_ld_force_load" = "yes"; then
+ whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+
+ else
+ whole_archive_flag_spec=''
+ fi
+ link_all_deplibs=yes
+ allow_undefined_flag="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=func_echo_all
+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+
+ else
+ ld_shlibs=no
+ fi
+
+ ;;
+
+ dgux*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2.*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ export_dynamic_flag_spec='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ export_dynamic_flag_spec='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+
+ # Older versions of the 11.00 compiler do not understand -b yet
+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
+$as_echo_n "checking if $CC understands -b... " >&6; }
+if ${lt_cv_prog_compiler__b+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler__b=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -b"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&5
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler__b=yes
+ fi
+ else
+ lt_cv_prog_compiler__b=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
+$as_echo "$lt_cv_prog_compiler__b" >&6; }
+
+if test x"$lt_cv_prog_compiler__b" = xyes; then
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+fi
+
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ ;;
+ *)
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ export_dynamic_flag_spec='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ # This should be the same for all languages, so no per-tag cache variable.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
+if ${lt_cv_irix_exported_symbol+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int foo (void) { return 0; }
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ lt_cv_irix_exported_symbol=yes
+else
+ lt_cv_irix_exported_symbol=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
+ if test "$lt_cv_irix_exported_symbol" = yes; then
+ archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+ fi
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ inherit_rpath=yes
+ link_all_deplibs=yes
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ newsos6)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_shlibpath_var=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ hardcode_direct_absolute=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_separator=:
+ ;;
+
+ solaris*)
+ no_undefined_flag=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_shlibpath_var=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ link_all_deplibs=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds='$CC -r -o $output$reload_objs'
+ hardcode_direct=no
+ ;;
+ motorola)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4.3*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ export_dynamic_flag_spec='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+ no_undefined_flag='${wl}-z,text'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ no_undefined_flag='${wl}-z,text'
+ allow_undefined_flag='${wl}-z,nodefs'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-R,$libdir'
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ export_dynamic_flag_spec='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
+$as_echo "$ld_shlibs" >&6; }
+test "$ld_shlibs" = no && can_build_shared=no
+
+with_gnu_ld=$with_gnu_ld
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
+if ${lt_cv_archive_cmds_need_lc+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl
+ pic_flag=$lt_prog_compiler_pic
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag
+ allow_undefined_flag=
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
+ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ then
+ lt_cv_archive_cmds_need_lc=no
+ else
+ lt_cv_archive_cmds_need_lc=yes
+ fi
+ allow_undefined_flag=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
+$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
+ archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
+$as_echo_n "checking dynamic linker characteristics... " >&6; }
+
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ case $host_os in
+ mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
+ *) lt_sed_strip_eq="s,=/,/,g" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
+ case $lt_search_path_spec in
+ *\;*)
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
+ ;;
+ *)
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ esac
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+ # AWK program above erroneously prepends '/' to C:/dos/paths
+ # for these hosts.
+ case $host_os in
+ mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
+ $SED 's,/\([A-Za-z]:\),\1,g'` ;;
+ esac
+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[4-9]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$cc_basename in
+ yes,*)
+ # gcc
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ ;;
+
+ *,cl*)
+ # Native MSVC
+ libname_spec='$name'
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ library_names_spec='${libname}.dll.lib'
+
+ case $build_os in
+ mingw*)
+ sys_lib_search_path_spec=
+ lt_save_ifs=$IFS
+ IFS=';'
+ for lt_path in $LIB
+ do
+ IFS=$lt_save_ifs
+ # Let DOS variable expansion print the short 8.3 style file name.
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+ done
+ IFS=$lt_save_ifs
+ # Convert to MSYS style.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
+ ;;
+ cygwin*)
+ # Convert to unix form, then to dos form, then back to unix form
+ # but this time dos style (no spaces!) so that the unix form looks
+ # like /cygdrive/c/PROGRA~1:/cygdr...
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ *)
+ sys_lib_search_path_spec="$LIB"
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # FIXME: find the short name or the path components, as spaces are
+ # common. (e.g. "Program Files" -> "PROGRA~1")
+ ;;
+ esac
+
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+ dynamic_linker='Win32 link.exe'
+ ;;
+
+ *)
+ # Assume MSVC wrapper
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ dynamic_linker='Win32 ld.exe'
+ ;;
+ esac
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[23].*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2.*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+haiku*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ dynamic_linker="$host_os runtime_loader"
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
+ postinstall_cmds='chmod 555 $lib'
+ # or fails outright, so override atomically:
+ install_override_mode=555
+ ;;
+
+interix[3-9]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux # correct to gnu/linux during the next big refactor
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+
+ # Some binutils ld are patched to set DT_RUNPATH
+ if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_shlibpath_overrides_runpath=no
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
+ lt_cv_shlibpath_overrides_runpath=yes
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+fi
+
+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsdelf*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='NetBSD ld.elf_so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
+$as_echo "$dynamic_linker" >&6; }
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" ||
+ test -n "$runpath_var" ||
+ test "X$hardcode_automatic" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$hardcode_direct" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
+ test "$hardcode_minus_L" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action=unsupported
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
+$as_echo "$hardcode_action" >&6; }
+
+if test "$hardcode_action" = relink ||
+ test "$inherit_rpath" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+
+
+
+
+
+ if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if ${ac_cv_lib_dl_dlopen+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dl_dlopen=yes
+else
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
+if test "x$ac_cv_func_shl_load" = xyes; then :
+ lt_cv_dlopen="shl_load"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
+$as_echo_n "checking for shl_load in -ldld... " >&6; }
+if ${ac_cv_lib_dld_shl_load+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dld_shl_load=yes
+else
+ ac_cv_lib_dld_shl_load=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
+if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
+else
+ ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
+if test "x$ac_cv_func_dlopen" = xyes; then :
+ lt_cv_dlopen="dlopen"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if ${ac_cv_lib_dl_dlopen+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dl_dlopen=yes
+else
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
+$as_echo_n "checking for dlopen in -lsvld... " >&6; }
+if ${ac_cv_lib_svld_dlopen+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_svld_dlopen=yes
+else
+ ac_cv_lib_svld_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
+$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
+if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
+$as_echo_n "checking for dld_link in -ldld... " >&6; }
+if ${ac_cv_lib_dld_dld_link+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dld_dld_link=yes
+else
+ ac_cv_lib_dld_dld_link=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
+$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
+if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
+$as_echo_n "checking whether a program can dlopen itself... " >&6; }
+if ${lt_cv_dlopen_self+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+/* When -fvisbility=hidden is used, assume the code has been annotated
+ correspondingly for the symbols needed. */
+#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 42; }
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else
+ {
+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ else puts (dlerror ());
+ }
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
+$as_echo "$lt_cv_dlopen_self" >&6; }
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
+if ${lt_cv_dlopen_self_static+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self_static=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+/* When -fvisbility=hidden is used, assume the code has been annotated
+ correspondingly for the symbols needed. */
+#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 42; }
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else
+ {
+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ else puts (dlerror ());
+ }
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
+$as_echo "$lt_cv_dlopen_self_static" >&6; }
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+striplib=
+old_striplib=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
+$as_echo_n "checking whether stripping libraries is possible... " >&6; }
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+ # Report which library types will actually be built
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
+$as_echo_n "checking if libtool supports shared libraries... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
+$as_echo "$can_build_shared" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
+$as_echo_n "checking whether to build shared libraries... " >&6; }
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
+$as_echo "$enable_shared" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
+$as_echo_n "checking whether to build static libraries... " >&6; }
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
+$as_echo "$enable_static" >&6; }
+
+
+
+
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ac_config_commands="$ac_config_commands libtool"
+
+
+
+
+# Only expand once:
+
+
+
+# Checks for libraries.
+
+# Checks for header files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if ${ac_cv_header_stdc+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdc=yes
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then :
+ :
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+for ac_header in stdlib.h string.h math.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+#
+# For Python module
+#
+# if test -z $PYTHON; then
+# PYTHON="python"
+# fi
+# PYTHON_INCDIR=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_inc()" 2>/dev/null`
+# NUMPY_INCDIR=`$PYTHON -c "import numpy; print numpy.get_include()" 2>/dev/null`
+# CPPFLAGS="$CPPFLAGS -I$PYTHON_INCDIR -I$NUMPY_INCDIR"
+# AC_CHECK_HEADERS([Python.h])
+# AC_CHECK_HEADERS([numpy/arrayobject.h])
+# AC_CHECK_HEADERS([spglib.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
+if ${ac_cv_c_const+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this sort of thing. */
+ typedef int charset[2];
+ const charset cs = { 0, 0 };
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* AIX XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ pcpcc = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+ { /* SCO 3.2v4 cc rejects this sort of thing. */
+ char tx;
+ char *t = &tx;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ if (s) return 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; } bx;
+ struct s *b = &bx; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ if (!foo) return 0;
+ }
+ return !cs[0] && !zero.x;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_const=yes
+else
+ ac_cv_c_const=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
+$as_echo "$ac_cv_c_const" >&6; }
+if test $ac_cv_c_const = no; then
+
+$as_echo "#define const /**/" >>confdefs.h
+
+fi
+
+
+# Checks for library functions.
+for ac_header in stdlib.h
+do :
+ ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
+if test "x$ac_cv_header_stdlib_h" = xyes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_STDLIB_H 1
+_ACEOF
+
+fi
+
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
+$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
+if ${ac_cv_func_malloc_0_nonnull+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ ac_cv_func_malloc_0_nonnull=no
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#if defined STDC_HEADERS || defined HAVE_STDLIB_H
+# include <stdlib.h>
+#else
+char *malloc ();
+#endif
+
+int
+main ()
+{
+return ! malloc (0);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ ac_cv_func_malloc_0_nonnull=yes
+else
+ ac_cv_func_malloc_0_nonnull=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
+$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
+if test $ac_cv_func_malloc_0_nonnull = yes; then :
+
+$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
+
+else
+ $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
+
+ case " $LIBOBJS " in
+ *" malloc.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
+ ;;
+esac
+
+
+$as_echo "#define malloc rpl_malloc" >>confdefs.h
+
+fi
+
+
+
+ac_config_files="$ac_config_files Makefile src/Makefile"
+
+# AC_CONFIG_FILES([Makefile
+# python/Makefile
+# src/Makefile])
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+ if test -n "$EXEEXT"; then
+ am__EXEEXT_TRUE=
+ am__EXEEXT_FALSE='#'
+else
+ am__EXEEXT_TRUE='#'
+ am__EXEEXT_FALSE=
+fi
+
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+ as_fn_error $? "conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -pR'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -pR'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -pR'
+ fi
+else
+ as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+ test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by spglib $as_me 1.4.1, which was
+generated by GNU Autoconf 2.69. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <atz.togo at gmail.com>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ac_cs_version="\\
+spglib config.status 1.4.1
+configured by $0, generated by GNU Autoconf 2.69,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
+macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
+enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
+enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
+pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
+enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
+SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
+ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
+PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
+host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
+host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
+host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
+build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
+build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
+build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
+SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
+Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
+GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
+EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
+FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
+LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
+NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
+LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
+max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
+ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
+exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
+lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
+lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
+lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
+reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
+reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
+OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
+deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
+file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
+AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
+AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
+STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
+RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
+old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
+lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
+CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
+CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
+compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
+GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
+objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
+MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
+need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
+DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
+NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
+LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
+OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
+OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
+libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
+shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
+extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
+hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
+inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
+always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
+include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
+prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
+file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
+variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
+need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
+need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
+version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
+runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
+libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
+library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
+soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
+install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
+postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
+finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
+hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
+sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
+sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
+hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
+enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
+old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
+striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
+
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+ eval 'cat <<_LTECHO_EOF
+\$1
+_LTECHO_EOF'
+}
+
+# Quote evaled strings.
+for var in SHELL \
+ECHO \
+PATH_SEPARATOR \
+SED \
+GREP \
+EGREP \
+FGREP \
+LD \
+NM \
+LN_S \
+lt_SP2NL \
+lt_NL2SP \
+reload_flag \
+OBJDUMP \
+deplibs_check_method \
+file_magic_cmd \
+file_magic_glob \
+want_nocaseglob \
+DLLTOOL \
+sharedlib_from_linklib_cmd \
+AR \
+AR_FLAGS \
+archiver_list_spec \
+STRIP \
+RANLIB \
+CC \
+CFLAGS \
+compiler \
+lt_cv_sys_global_symbol_pipe \
+lt_cv_sys_global_symbol_to_cdecl \
+lt_cv_sys_global_symbol_to_c_name_address \
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
+nm_file_list_spec \
+lt_prog_compiler_no_builtin_flag \
+lt_prog_compiler_pic \
+lt_prog_compiler_wl \
+lt_prog_compiler_static \
+lt_cv_prog_compiler_c_o \
+need_locks \
+MANIFEST_TOOL \
+DSYMUTIL \
+NMEDIT \
+LIPO \
+OTOOL \
+OTOOL64 \
+shrext_cmds \
+export_dynamic_flag_spec \
+whole_archive_flag_spec \
+compiler_needs_object \
+with_gnu_ld \
+allow_undefined_flag \
+no_undefined_flag \
+hardcode_libdir_flag_spec \
+hardcode_libdir_separator \
+exclude_expsyms \
+include_expsyms \
+file_list_spec \
+variables_saved_for_relink \
+libname_spec \
+library_names_spec \
+soname_spec \
+install_override_mode \
+finish_eval \
+old_striplib \
+striplib; do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in reload_cmds \
+old_postinstall_cmds \
+old_postuninstall_cmds \
+old_archive_cmds \
+extract_expsyms_cmds \
+old_archive_from_new_cmds \
+old_archive_from_expsyms_cmds \
+archive_cmds \
+archive_expsym_cmds \
+module_cmds \
+module_expsym_cmds \
+export_symbols_cmds \
+prelink_cmds \
+postlink_cmds \
+postinstall_cmds \
+postuninstall_cmds \
+finish_cmds \
+sys_lib_search_path_spec \
+sys_lib_dlsearch_path_spec; do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+ac_aux_dir='$ac_aux_dir'
+xsi_shell='$xsi_shell'
+lt_shell_append='$lt_shell_append'
+
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'
+
+
+
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_tt"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$ac_tmp/stdin"
+ case $ac_file in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+ } >"$ac_tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$ac_tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
+ fi
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
+ X"$_am_arg" : 'X\(//\)$' \| \
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$_am_arg" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
+
+ :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
+$as_echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$mf" : 'X\(//\)[^/]' \| \
+ X"$mf" : 'X\(//\)$' \| \
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$mf" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$file" : 'X\(//\)[^/]' \| \
+ X"$file" : 'X\(//\)$' \| \
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir=$dirpart/$fdir; as_fn_mkdir_p
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+ done
+}
+ ;;
+ "libtool":C)
+
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+# The names of the tagged configurations supported by this script.
+available_tags=""
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Which release of libtool.m4 was used?
+macro_version=$macro_version
+macro_revision=$macro_revision
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# What type of objects to build.
+pic_mode=$pic_mode
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# An echo program that protects backslashes.
+ECHO=$lt_ECHO
+
+# The PATH separator for the build system.
+PATH_SEPARATOR=$lt_PATH_SEPARATOR
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="\$SED -e 1s/^X//"
+
+# A grep program that handles long lines.
+GREP=$lt_GREP
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# A literal string matcher.
+FGREP=$lt_FGREP
+
+# A BSD- or MS-compatible name lister.
+NM=$lt_NM
+
+# Whether we need soft or hard links.
+LN_S=$lt_LN_S
+
+# What is the maximum length of a command?
+max_cmd_len=$max_cmd_len
+
+# Object file suffix (normally "o").
+objext=$ac_objext
+
+# Executable file suffix (normally "").
+exeext=$exeext
+
+# whether the shell understands "unset".
+lt_unset=$lt_unset
+
+# turn spaces into newlines.
+SP2NL=$lt_lt_SP2NL
+
+# turn newlines into spaces.
+NL2SP=$lt_lt_NL2SP
+
+# convert \$build file names to \$host format.
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+
+# convert \$build files to toolchain format.
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+
+# An object symbol dumper.
+OBJDUMP=$lt_OBJDUMP
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method = "file_magic".
+file_magic_cmd=$lt_file_magic_cmd
+
+# How to find potential files when deplibs_check_method = "file_magic".
+file_magic_glob=$lt_file_magic_glob
+
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
+want_nocaseglob=$lt_want_nocaseglob
+
+# DLL creation program.
+DLLTOOL=$lt_DLLTOOL
+
+# Command to associate shared and link libraries.
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
+
+# The archiver.
+AR=$lt_AR
+
+# Flags to create an archive.
+AR_FLAGS=$lt_AR_FLAGS
+
+# How to feed a file listing to the archiver.
+archiver_list_spec=$lt_archiver_list_spec
+
+# A symbol stripping program.
+STRIP=$lt_STRIP
+
+# Commands used to install an old-style archive.
+RANLIB=$lt_RANLIB
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Whether to use a lock for old archive extraction.
+lock_old_archive_extraction=$lock_old_archive_extraction
+
+# A C compiler.
+LTCC=$lt_CC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_CFLAGS
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration.
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair.
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# Transform the output of nm in a C name address pair when lib prefix is needed.
+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
+
+# Specify filename containing input files for \$NM.
+nm_file_list_spec=$lt_nm_file_list_spec
+
+# The root where to search for dependent libraries,and in which our libraries should be installed.
+lt_sysroot=$lt_sysroot
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# Used to examine libraries when file_magic_cmd begins with "file".
+MAGIC_CMD=$MAGIC_CMD
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Manifest tool.
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
+
+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
+DSYMUTIL=$lt_DSYMUTIL
+
+# Tool to change global to local symbols on Mac OS X.
+NMEDIT=$lt_NMEDIT
+
+# Tool to manipulate fat objects and archives on Mac OS X.
+LIPO=$lt_LIPO
+
+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
+OTOOL=$lt_OTOOL
+
+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
+OTOOL64=$lt_OTOOL64
+
+# Old archive suffix (normally "a").
+libext=$libext
+
+# Shared library suffix (normally ".so").
+shrext_cmds=$lt_shrext_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at link time.
+variables_saved_for_relink=$lt_variables_saved_for_relink
+
+# Do we need the "lib" prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Library versioning type.
+version_type=$version_type
+
+# Shared library runtime path variable.
+runpath_var=$runpath_var
+
+# Shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Permission mode override for installation of shared libraries.
+install_override_mode=$lt_install_override_mode
+
+# Command to use after installation of a shared archive.
+postinstall_cmds=$lt_postinstall_cmds
+
+# Command to use after uninstallation of a shared archive.
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# As "finish_cmds", except a single script fragment to be evaled but
+# not shown.
+finish_eval=$lt_finish_eval
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Compile-time system search path for libraries.
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries.
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds
+
+# A language specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static.
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# Whether we need a single "-rpath" flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
+# DIR into the resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute
+
+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+# into the resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+# into the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to "yes" if building a shared library automatically hardcodes DIR
+# into the library and all subsequent libraries and executables linked
+# against it.
+hardcode_automatic=$hardcode_automatic
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Set to "yes" if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+
+ltmain="$ac_aux_dir/ltmain.sh"
+
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '$q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ if test x"$xsi_shell" = xyes; then
+ sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
+func_dirname ()\
+{\
+\ case ${1} in\
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
+\ * ) func_dirname_result="${3}" ;;\
+\ esac\
+} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_basename ()$/,/^} # func_basename /c\
+func_basename ()\
+{\
+\ func_basename_result="${1##*/}"\
+} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
+func_dirname_and_basename ()\
+{\
+\ case ${1} in\
+\ */*) func_dirname_result="${1%/*}${2}" ;;\
+\ * ) func_dirname_result="${3}" ;;\
+\ esac\
+\ func_basename_result="${1##*/}"\
+} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
+func_stripname ()\
+{\
+\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
+\ # positional parameters, so assign one to ordinary parameter first.\
+\ func_stripname_result=${3}\
+\ func_stripname_result=${func_stripname_result#"${1}"}\
+\ func_stripname_result=${func_stripname_result%"${2}"}\
+} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
+func_split_long_opt ()\
+{\
+\ func_split_long_opt_name=${1%%=*}\
+\ func_split_long_opt_arg=${1#*=}\
+} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
+func_split_short_opt ()\
+{\
+\ func_split_short_opt_arg=${1#??}\
+\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
+} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
+func_lo2o ()\
+{\
+\ case ${1} in\
+\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
+\ *) func_lo2o_result=${1} ;;\
+\ esac\
+} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_xform ()$/,/^} # func_xform /c\
+func_xform ()\
+{\
+ func_xform_result=${1%.*}.lo\
+} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_arith ()$/,/^} # func_arith /c\
+func_arith ()\
+{\
+ func_arith_result=$(( $* ))\
+} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_len ()$/,/^} # func_len /c\
+func_len ()\
+{\
+ func_len_result=${#1}\
+} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+fi
+
+if test x"$lt_shell_append" = xyes; then
+ sed -e '/^func_append ()$/,/^} # func_append /c\
+func_append ()\
+{\
+ eval "${1}+=\\${2}"\
+} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
+func_append_quoted ()\
+{\
+\ func_quote_for_eval "${2}"\
+\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
+} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+
+
+ # Save a `func_append' function call where possible by direct use of '+='
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+ test 0 -eq $? || _lt_function_replace_fail=:
+else
+ # Save a `func_append' function call even when '+=' is not available
+ sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+ test 0 -eq $? || _lt_function_replace_fail=:
+fi
+
+if test x"$_lt_function_replace_fail" = x":"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
+$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
+fi
+
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+
+ ;;
+
+ esac
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..ccc3bb7
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,47 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.61)
+AC_INIT([spglib], 1.4.1, [atz.togo at gmail.com])
+AM_INIT_AUTOMAKE([spglib], 1.4.1)
+AC_CONFIG_SRCDIR([src/spglib.c])
+AC_CONFIG_HEADER([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+
+# Checks for programs.
+AC_PROG_CC
+# AC_PROG_RANLIB
+AM_PROG_CC_C_O
+AM_PROG_LIBTOOL
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdlib.h string.h math.h])
+
+#
+# For Python module
+#
+# if test -z $PYTHON; then
+# PYTHON="python"
+# fi
+# PYTHON_INCDIR=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_inc()" 2>/dev/null`
+# NUMPY_INCDIR=`$PYTHON -c "import numpy; print numpy.get_include()" 2>/dev/null`
+# CPPFLAGS="$CPPFLAGS -I$PYTHON_INCDIR -I$NUMPY_INCDIR"
+# AC_CHECK_HEADERS([Python.h])
+# AC_CHECK_HEADERS([numpy/arrayobject.h])
+# AC_CHECK_HEADERS([spglib.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile])
+# AC_CONFIG_FILES([Makefile
+# python/Makefile
+# src/Makefile])
+AC_OUTPUT
diff --git a/depcomp b/depcomp
new file mode 100755
index 0000000..25a39e6
--- /dev/null
+++ b/depcomp
@@ -0,0 +1,708 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2012-03-27.16; # UTC
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
+# 2011, 2012 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva <oliva at dcc.unicamp.br>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by 'PROGRAMS ARGS'.
+ object Object file output by 'PROGRAMS ARGS'.
+ DEPDIR directory where to store dependencies.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputting dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake at gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit $?
+ ;;
+esac
+
+# A tabulation character.
+tab=' '
+# A newline character.
+nl='
+'
+
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
+ exit 1
+fi
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+ sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f "$tmpdepfile"
+
+# Some modes work just like other modes, but use different flags. We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write. Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test "$depmode" = hp; then
+ # HP compiler uses -M and no extra arg.
+ gccflag=-M
+ depmode=gcc
+fi
+
+if test "$depmode" = dashXmstdout; then
+ # This is just like dashmstdout with a different argument.
+ dashmflag=-xM
+ depmode=dashmstdout
+fi
+
+cygpath_u="cygpath -u -f -"
+if test "$depmode" = msvcmsys; then
+ # This is just like msvisualcpp but w/o cygpath translation.
+ # Just convert the backslash-escaped backslashes to single forward
+ # slashes to satisfy depend.m4
+ cygpath_u='sed s,\\\\,/,g'
+ depmode=msvisualcpp
+fi
+
+if test "$depmode" = msvc7msys; then
+ # This is just like msvc7 but w/o cygpath translation.
+ # Just convert the backslash-escaped backslashes to single forward
+ # slashes to satisfy depend.m4
+ cygpath_u='sed s,\\\\,/,g'
+ depmode=msvc7
+fi
+
+if test "$depmode" = xlc; then
+ # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
+ gccflag=-qmakedep=gcc,-MF
+ depmode=gcc
+fi
+
+case "$depmode" in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff. Hmm.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am. Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+ for arg
+ do
+ case $arg in
+ -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+ *) set fnord "$@" "$arg" ;;
+ esac
+ shift # fnord
+ shift # $arg
+ done
+ "$@"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ mv "$tmpdepfile" "$depfile"
+ ;;
+
+gcc)
+## There are various ways to get dependency output from gcc. Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+## up in a subdir. Having to rename by hand is ugly.
+## (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+## -MM, not -M (despite what the docs say).
+## - Using -M directly means running the compiler twice (even worse
+## than renaming).
+ if test -z "$gccflag"; then
+ gccflag=-MD,
+ fi
+ "$@" -Wp,"$gccflag$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+## The second -e expression handles DOS-style file names with drive letters.
+ sed -e 's/^[^:]*: / /' \
+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+## This next piece of magic avoids the "deleted header file" problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header). We avoid this by adding
+## dummy dependencies for each header file. Too bad gcc doesn't do
+## this for us directly.
+ tr ' ' "$nl" < "$tmpdepfile" |
+## Some versions of gcc put a space before the ':'. On the theory
+## that the space means something, we add a space to the output as
+## well. hp depmode also adds that space, but also prefixes the VPATH
+## to the object. Take care to not repeat it in the output.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
+ | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like '#:fec' to the end of the
+ # dependency line.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+ tr "$nl" ' ' >> "$depfile"
+ echo >> "$depfile"
+
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' "$nl" < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+xlc)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file. In older versions, this file always lives in the
+ # current directory. Also, the AIX compiler puts '$object:' at the
+ # start of each line; $object doesn't have directory information.
+ # Version 6 uses the directory in both cases.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$base.u
+ tmpdepfile3=$dir.libs/$base.u
+ "$@" -Wc,-M
+ else
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$dir$base.u
+ tmpdepfile3=$dir$base.u
+ "$@" -M
+ fi
+ stat=$?
+
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ # Each line is of the form 'foo.o: dependent.h'.
+ # Do two passes, one to just change these to
+ # '$object: dependent.h' and one to simply 'dependent.h:'.
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+icc)
+ # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
+ # However on
+ # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+ # ICC 7.0 will fill foo.d with something like
+ # foo.o: sub/foo.c
+ # foo.o: sub/foo.h
+ # which is wrong. We want
+ # sub/foo.o: sub/foo.c
+ # sub/foo.o: sub/foo.h
+ # sub/foo.c:
+ # sub/foo.h:
+ # ICC 7.1 will output
+ # foo.o: sub/foo.c sub/foo.h
+ # and will wrap long lines using '\':
+ # foo.o: sub/foo.c ... \
+ # sub/foo.h ... \
+ # ...
+ # tcc 0.9.26 (FIXME still under development at the moment of writing)
+ # will emit a similar output, but also prepend the continuation lines
+ # with horizontal tabulation characters.
+ "$@" -MD -MF "$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ # Each line is of the form 'foo.o: dependent.h',
+ # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
+ # Do two passes, one to just change these to
+ # '$object: dependent.h' and one to simply 'dependent.h:'.
+ sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
+ < "$tmpdepfile" > "$depfile"
+ sed '
+ s/[ '"$tab"'][ '"$tab"']*/ /g
+ s/^ *//
+ s/ *\\*$//
+ s/^[^:]*: *//
+ /^$/d
+ /:$/d
+ s/$/ :/
+ ' < "$tmpdepfile" >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp2)
+ # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+ # compilers, which have integrated preprocessors. The correct option
+ # to use with these is +Maked; it writes dependencies to a file named
+ # 'foo.d', which lands next to the object file, wherever that
+ # happens to be.
+ # Much of this is similar to the tru64 case; see comments there.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir.libs/$base.d
+ "$@" -Wc,+Maked
+ else
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir$base.d
+ "$@" +Maked
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+ # Add 'dependent.h:' lines.
+ sed -ne '2,${
+ s/^ *//
+ s/ \\*$//
+ s/$/:/
+ p
+ }' "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile" "$tmpdepfile2"
+ ;;
+
+tru64)
+ # The Tru64 compiler uses -MD to generate dependencies as a side
+ # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+ # dependencies in 'foo.d' instead, so we check for that too.
+ # Subdirectories are respected.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+
+ if test "$libtool" = yes; then
+ # With Tru64 cc, shared objects can also be used to make a
+ # static library. This mechanism is used in libtool 1.4 series to
+ # handle both shared and static libraries in a single compilation.
+ # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
+ #
+ # With libtool 1.5 this exception was removed, and libtool now
+ # generates 2 separate objects for the 2 libraries. These two
+ # compilations output dependencies in $dir.libs/$base.o.d and
+ # in $dir$base.o.d. We have to check for both files, because
+ # one of the two compilations can be disabled. We should prefer
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+ # automatically cleaned when .libs/ is deleted, while ignoring
+ # the former would cause a distcleancheck panic.
+ tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
+ tmpdepfile2=$dir$base.o.d # libtool 1.5
+ tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
+ tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
+ "$@" -Wc,-MD
+ else
+ tmpdepfile1=$dir$base.o.d
+ tmpdepfile2=$dir$base.d
+ tmpdepfile3=$dir$base.d
+ tmpdepfile4=$dir$base.d
+ "$@" -MD
+ fi
+
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+msvc7)
+ if test "$libtool" = yes; then
+ showIncludes=-Wc,-showIncludes
+ else
+ showIncludes=-showIncludes
+ fi
+ "$@" $showIncludes > "$tmpdepfile"
+ stat=$?
+ grep -v '^Note: including file: ' "$tmpdepfile"
+ if test "$stat" = 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ # The first sed program below extracts the file names and escapes
+ # backslashes for cygpath. The second sed program outputs the file
+ # name when reading, but also accumulates all include files in the
+ # hold buffer in order to output them again at the end. This only
+ # works with sed implementations that can handle large buffers.
+ sed < "$tmpdepfile" -n '
+/^Note: including file: *\(.*\)/ {
+ s//\1/
+ s/\\/\\\\/g
+ p
+}' | $cygpath_u | sort -u | sed -n '
+s/ /\\ /g
+s/\(.*\)/'"$tab"'\1 \\/p
+s/.\(.*\) \\/\1:/
+H
+$ {
+ s/.*/'"$tab"'/
+ G
+ p
+}' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvc7msys)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+#nosideeffect)
+ # This comment above is used by automake to tell side-effect
+ # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove '-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ test -z "$dashmflag" && dashmflag=-M
+ # Require at least two characters before searching for ':'
+ # in the target name. This is to cope with DOS-style filenames:
+ # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
+ "$@" $dashmflag |
+ sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ tr ' ' "$nl" < "$tmpdepfile" | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+dashXmstdout)
+ # This case only exists to satisfy depend.m4. It is never actually
+ # run, as this mode is specially recognized in the preamble.
+ exit 1
+ ;;
+
+makedepend)
+ "$@" || exit $?
+ # Remove any Libtool call
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+ # X makedepend
+ shift
+ cleared=no eat=no
+ for arg
+ do
+ case $cleared in
+ no)
+ set ""; shift
+ cleared=yes ;;
+ esac
+ if test $eat = yes; then
+ eat=no
+ continue
+ fi
+ case "$arg" in
+ -D*|-I*)
+ set fnord "$@" "$arg"; shift ;;
+ # Strip any option that makedepend may not understand. Remove
+ # the object too, otherwise makedepend will parse it as a source file.
+ -arch)
+ eat=yes ;;
+ -*|$object)
+ ;;
+ *)
+ set fnord "$@" "$arg"; shift ;;
+ esac
+ done
+ obj_suffix=`echo "$object" | sed 's/^.*\././'`
+ touch "$tmpdepfile"
+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+ rm -f "$depfile"
+ # makedepend may prepend the VPATH from the source file name to the object.
+ # No need to regex-escape $object, excess matching of '.' is harmless.
+ sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
+ sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile" "$tmpdepfile".bak
+ ;;
+
+cpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove '-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ "$@" -E |
+ sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+ sed '$ s: \\$::' > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ cat < "$tmpdepfile" >> "$depfile"
+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvisualcpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ IFS=" "
+ for arg
+ do
+ case "$arg" in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ set fnord "$@"
+ shift
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift
+ shift
+ ;;
+ esac
+ done
+ "$@" -E 2>/dev/null |
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
+ echo "$tab" >> "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvcmsys)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+none)
+ exec "$@"
+ ;;
+
+*)
+ echo "Unknown depmode $depmode" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/example/Makefile_f08 b/example/Makefile_f08
new file mode 100644
index 0000000..a6e62c1
--- /dev/null
+++ b/example/Makefile_f08
@@ -0,0 +1,17 @@
+
+fc = gfortran -g -fcheck=all -fbacktrace
+# fc = ifort -g -check all -traceback
+lib = ../src/.libs/libsymspg.a
+
+test: example
+ ./example
+
+
+example: example_f08.f90 spglib_f08.o
+ $(fc) $^ $(lib) -o $@
+
+spglib_f08.o: spglib_f08.f90
+ $(fc) -c $^
+
+clean:
+ rm -f example{,.o} defs_basis.mod spglib_f08.{o,mod}
diff --git a/example/README b/example/README
new file mode 100644
index 0000000..3f38fb4
--- /dev/null
+++ b/example/README
@@ -0,0 +1,13 @@
+This is the README file for examples.
+
+To compile example.c
+% gcc example.c -I[include directory] -L[library directory] -lsymspg -lm
+
+To complie example_f08.f90, please follow Makefile_f08.
+% make -f Makefile_f08
+
+To compile obsolete example.f90
+% gcc -c spglib_f.c
+% gfortran example.f90 spglib_f.o -L[library directory] -lsymspg -lm
+
+Togo <atz.togo at gmail.com>
diff --git a/example/example.c b/example/example.c
new file mode 100644
index 0000000..6d35470
--- /dev/null
+++ b/example/example.c
@@ -0,0 +1,398 @@
+#include "spglib.h"
+#include <stdio.h>
+#include <math.h>
+
+void test_spg_get_symmetry();
+void test_spg_get_symmetry_with_collinear_spin();
+void test_spg_get_multiplicity();
+void test_spg_find_primitive();
+void test_spg_get_international();
+void test_spg_get_schoenflies();
+void test_spg_refine_cell();
+void test_spg_get_dataset();
+void test_spg_get_ir_reciprocal_mesh();
+
+int main()
+{
+ test_spg_find_primitive();
+ test_spg_get_multiplicity();
+ test_spg_get_symmetry();
+ test_spg_get_symmetry_with_collinear_spin();
+ test_spg_get_international();
+ test_spg_get_schoenflies();
+ test_spg_refine_cell();
+ test_spg_get_dataset();
+ test_spg_get_ir_reciprocal_mesh();
+
+ return 0;
+}
+
+void test_spg_find_primitive()
+{
+ double lattice[3][3] = { {4, 0, 0}, {0, 4, 0}, {0, 0, 4} };
+ double position[][3] = {
+ {0, 0, 0},
+ {0.5, 0.5, 0.5}
+ };
+ int types[] = { 1, 1 };
+ int i, num_atom = 2, num_primitive_atom;
+ double symprec = 1e-5;
+
+ /* lattice, position, and types are overwirtten. */
+ printf("*** Example of spg_find_primitive (BCC unitcell --> primitive) ***:\n");
+ num_primitive_atom = spg_find_primitive(lattice, position, types, num_atom, symprec);
+ if ( num_primitive_atom == 0 ) {
+ printf("Primitive cell was not found.\n");
+ } else {
+ printf("Lattice parameter:\n");
+ for (i = 0; i < 3; i++) {
+ printf("%f %f %f\n", lattice[0][i], lattice[1][i], lattice[2][i]);
+ }
+ printf("Atomic positions:\n");
+ for (i=0; i<num_primitive_atom; i++) {
+ printf("%d: %f %f %f\n", types[i], position[i][0], position[i][1],
+ position[i][2]);
+ }
+ }
+}
+
+void test_spg_refine_cell()
+{
+ double lattice[3][3] = { {0, 2, 2}, {2, 0, 2}, {2, 2, 0} };
+
+ /* 4 times larger memory space must be prepared. */
+ double position[4][3];
+ int types[4];
+
+ int i, num_atom_bravais, num_atom = 1;
+ double symprec = 1e-5;
+
+ position[0][0] = 0;
+ position[0][1] = 0;
+ position[0][2] = 0;
+ types[0] = 1;
+
+ /* lattice, position, and types are overwirtten. */
+ printf("*** Example of spg_refine_cell ***:\n");
+ num_atom_bravais = spg_refine_cell( lattice,
+ position,
+ types,
+ num_atom,
+ symprec );
+ printf("Lattice parameter:\n");
+ for ( i = 0; i < 3; i++ ) {
+ printf("%f %f %f\n", lattice[0][i], lattice[1][i], lattice[2][i]);
+ }
+ printf("Atomic positions:\n");
+ for ( i = 0; i<num_atom_bravais; i++ ) {
+ printf("%d: %f %f %f\n", types[i], position[i][0], position[i][1],
+ position[i][2]);
+ }
+}
+
+void test_spg_get_international()
+{
+ double lattice[3][3] = {{4,0,0},{0,4,0},{0,0,3}};
+ double position[][3] =
+ {
+ {0,0,0},
+ {0.5,0.5,0.5},
+ {0.3,0.3,0},
+ {0.7,0.7,0},
+ {0.2,0.8,0.5},
+ {0.8,0.2,0.5},
+ };
+ int types[] = {1,1,2,2,2,2};
+ int num_spg, num_atom = 6;
+ char symbol[21];
+
+ num_spg = spg_get_international(symbol, lattice, position, types, num_atom, 1e-5);
+ printf("*** Example of spg_get_international ***:\n");
+ if ( num_spg > 0 ) {
+ printf("%s (%d)\n", symbol, num_spg);
+ } else {
+ printf("Space group could not be found.\n");
+ }
+}
+
+void test_spg_get_schoenflies()
+{
+ double lattice[3][3] = {{4,0,0},{0,4,0},{0,0,3}};
+ double position[][3] =
+ {
+ {0,0,0},
+ {0.5,0.5,0.5},
+ {0.3,0.3,0},
+ {0.7,0.7,0},
+ {0.2,0.8,0.5},
+ {0.8,0.2,0.5},
+ };
+ int types[] = {1,1,2,2,2,2};
+ int num_atom = 6;
+ char symbol[7];
+
+ spg_get_schoenflies(symbol, lattice, position, types, num_atom, 1e-5);
+ printf("*** Example of spg_get_schoenflies ***:\n");
+ printf("Schoenflies: %s\n", symbol);
+}
+
+void test_spg_get_multiplicity()
+{
+ double lattice[3][3] = { {4, 0, 0}, {0, 4, 0}, {0, 0, 4} };
+ double position[][3] = {
+ {0, 0, 0},
+ {0.5, 0.5, 0.5}
+ };
+ int types[] = { 1, 2 };
+ int num_atom = 2;
+ int size;
+
+ size = spg_get_multiplicity(lattice, position, types, num_atom, 1e-5);
+
+ printf("*** Example of spg_get_multiplicity ***:\n");
+ printf("Number of symmetry operations: %d\n", size);
+}
+
+
+void test_spg_get_symmetry()
+{
+ double lattice[3][3] = {{4,0,0},{0,4,0},{0,0,3}};
+ double position[][3] =
+ {
+ {0,0,0},
+ {0.5,0.5,0.25},
+ {0.3,0.3,0},
+ {0.7,0.7,0},
+ {0.2,0.8,0.25},
+ {0.8,0.2,0.25},
+ {0,0,0.5},
+ {0.5,0.5,0.75},
+ {0.3,0.3,0.5},
+ {0.7,0.7,0.5},
+ {0.2,0.8,0.75},
+ {0.8,0.2,0.75}
+ };
+ int types[] = {1,1,2,2,2,2,1,1,2,2,2,2};
+ int num_atom = 12;
+ int max_size = 50;
+ int i, j, size;
+ int rotation[max_size][3][3];
+ double translation[max_size][3];
+
+ double origin_shift[3] = { 0.1, 0.1, 0 };
+ for ( i = 0; i < num_atom; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ position[i][j] += origin_shift[j];
+ }
+ }
+
+ printf("*** Example of spg_get_symmetry (Rutile two unit cells) ***:\n");
+ size = spg_get_symmetry( rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ num_atom,
+ 1e-5 );
+ for (i = 0; i < size; i++) {
+ printf("--- %d ---\n", i + 1);
+ for (j = 0; j < 3; j++)
+ printf("%2d %2d %2d\n", rotation[i][j][0], rotation[i][j][1], rotation[i][j][2]);
+ printf("%f %f %f\n", translation[i][0], translation[i][1],
+ translation[i][2]);
+ }
+
+}
+
+void test_spg_get_symmetry_with_collinear_spin() {
+ double lattice[3][3] = {{4,0,0},{0,4,0},{0,0,4}};
+ double position[][3] =
+ {
+ {0,0,0},
+ {0.5,0.5,0.5}
+ };
+ int types[] = { 1, 1 };
+ double spins[2];
+ int num_atom = 2;
+ int max_size = 300;
+ int i, j, size;
+ int rotation[max_size][3][3];
+ double translation[max_size][3];
+
+ printf("*** Example of spg_get_symmetry_with_spin (BCC ferro) ***:\n");
+ spins[0] = 1;
+ spins[1] = 1;
+ size = spg_get_symmetry_with_collinear_spin( rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ spins,
+ num_atom,
+ 1e-5 );
+ for (i = 0; i < size; i++) {
+ printf("--- %d ---\n", i + 1);
+ for (j = 0; j < 3; j++)
+ printf("%2d %2d %2d\n", rotation[i][j][0], rotation[i][j][1], rotation[i][j][2]);
+ printf("%f %f %f\n", translation[i][0], translation[i][1],
+ translation[i][2]);
+ }
+
+ printf("*** Example of spg_get_symmetry_with_spin (BCC antiferro) ***:\n");
+ spins[0] = 1;
+ spins[1] = -1;
+ size = spg_get_symmetry_with_collinear_spin( rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ spins,
+ num_atom,
+ 1e-5 );
+ for (i = 0; i < size; i++) {
+ printf("--- %d ---\n", i + 1);
+ for (j = 0; j < 3; j++)
+ printf("%2d %2d %2d\n", rotation[i][j][0], rotation[i][j][1], rotation[i][j][2]);
+ printf("%f %f %f\n", translation[i][0], translation[i][1],
+ translation[i][2]);
+ }
+
+ printf("*** Example of spg_get_symmetry_with_spin (BCC broken spin) ***:\n");
+ spins[0] = 1;
+ spins[1] = 2;
+ size = spg_get_symmetry_with_collinear_spin( rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ spins,
+ num_atom,
+ 1e-5 );
+ for (i = 0; i < size; i++) {
+ printf("--- %d ---\n", i + 1);
+ for (j = 0; j < 3; j++)
+ printf("%2d %2d %2d\n", rotation[i][j][0], rotation[i][j][1], rotation[i][j][2]);
+ printf("%f %f %f\n", translation[i][0], translation[i][1],
+ translation[i][2]);
+ }
+}
+
+
+void test_spg_get_dataset()
+{
+ SpglibDataset *dataset;
+ double lattice[3][3] = {{4,0,0},{0,4,0},{0,0,3}};
+ double origin_shift[3] = { 0.1, 0.1, 0 };
+ double position[][3] =
+ {
+ {0,0,0},
+ {0.5,0.5,0.25},
+ {0.3,0.3,0},
+ {0.7,0.7,0},
+ {0.2,0.8,0.25},
+ {0.8,0.2,0.25},
+ {0,0,0.5},
+ {0.5,0.5,0.75},
+ {0.3,0.3,0.5},
+ {0.7,0.7,0.5},
+ {0.2,0.8,0.75},
+ {0.8,0.2,0.75}
+ };
+ int types[] = {1,1,2,2,2,2,1,1,2,2,2,2};
+ int num_atom = 12;
+ int i, j, size;
+ const char *wl = "abcdefghijklmnopqrstuvwxyz";
+
+ for ( i = 0; i < num_atom; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ position[i][j] += origin_shift[j];
+ }
+ }
+
+ printf("*** Example of spg_get_dataset (Rutile two unit cells) ***:\n");
+ dataset = spg_get_dataset( lattice,
+ position,
+ types,
+ num_atom,
+ 1e-5 );
+
+ printf("International: %s (%d)\n", dataset->international_symbol, dataset->spacegroup_number );
+ printf("Hall symbol: %s\n", dataset->hall_symbol );
+ printf("Transformation matrix:\n");
+ for ( i = 0; i < 3; i++ ) {
+ printf("%f %f %f\n",
+ dataset->transformation_matrix[i][0],
+ dataset->transformation_matrix[i][1],
+ dataset->transformation_matrix[i][2]);
+ }
+ printf("Wyckoff letters:\n");
+ for ( i = 0; i < dataset->n_atoms; i++ ) {
+ printf("%c ", wl[dataset->wyckoffs[i]]);
+ }
+ printf("\n");
+ printf("Equivalent atoms:\n");
+ for ( i = 0; i < dataset->n_atoms; i++ ) {
+ printf("%d ", dataset->equivalent_atoms[i]);
+ }
+ printf("\n");
+
+ for ( i = 0; i < dataset->n_operations; i++ ) {
+ printf("--- %d ---\n", i + 1);
+ for ( j = 0; j < 3; j++ ) {
+ printf("%2d %2d %2d\n",
+ dataset->rotations[i][j][0],
+ dataset->rotations[i][j][1],
+ dataset->rotations[i][j][2]);
+ }
+ printf("%f %f %f\n",
+ dataset->translations[i][0],
+ dataset->translations[i][1],
+ dataset->translations[i][2]);
+ }
+
+ spg_free_dataset( dataset );
+
+}
+
+void test_spg_get_ir_reciprocal_mesh()
+{
+ double lattice[3][3] = {{4,0,0},{0,4,0},{0,0,3}};
+ double position[][3] =
+ {
+ {0,0,0},
+ {0.5,0.5,0.5},
+ {0.3,0.3,0},
+ {0.7,0.7,0},
+ {0.2,0.8,0.5},
+ {0.8,0.2,0.5},
+ };
+ int types[] = {1,1,2,2,2,2};
+ int num_atom = 6;
+ int m = 100;
+ int mesh[] = { m, m, m };
+ int is_shift[] = { 1, 1, 1 };
+ int grid_point[m*m*m][3];
+ int map[m*m*m];
+
+ printf("*** Example of spg_get_ir_reciprocal_mesh of Rutile structure ***:\n");
+
+ int num_ir =
+ spg_get_ir_reciprocal_mesh( grid_point,
+ map,
+ mesh,
+ is_shift,
+ 1,
+ lattice,
+ position,
+ types,
+ num_atom,
+ 1e-5 );
+
+ printf("Number of irreducible k-points of Rutile with\n");
+ printf("100x100x100 Monkhorst-Pack mesh is %d.\n", num_ir);
+}
+
diff --git a/example/example.f90 b/example/example.f90
new file mode 100644
index 0000000..7c4fcc5
--- /dev/null
+++ b/example/example.f90
@@ -0,0 +1,188 @@
+! How to make
+!
+! gcc -c spglib_f.c
+! gfortran -c spglib_f_test.f90
+! gfortran -o spglib_test spglib_f_test.o spglib_f.o ~/code/spglib/trunk/src/.libs/libsymspg.a
+
+module defs_basis
+ implicit none
+ integer, parameter :: dp=kind(1.0d0)
+end module defs_basis
+
+subroutine write_syminfo( max_num_sym, num_atom, &
+ lattice, symprec, atom_types, positions, &
+ mesh, is_shift, is_time_reversal )
+
+ use defs_basis
+
+ implicit none
+
+ ! Arguments ------------------------------------
+ ! scalars
+ integer, intent(in) :: num_atom, max_num_sym, is_time_reversal
+ real(dp), intent(in) :: symprec
+ ! arrays
+ integer, intent(in), dimension(num_atom) :: atom_types
+ integer, intent(in), dimension(3) :: mesh, is_shift
+ real(dp), intent(in), dimension(3, 3) :: lattice
+ real(dp), intent(in), dimension(3, num_atom) :: positions
+ ! Local variables-------------------------------
+ ! scalars
+ integer :: i, j, counter, weight, sum_weight, space_group, num_sym, indent
+ integer :: num_ir_grid
+ character(len=11) :: international
+ character(len=7) :: schoenflies
+ character(len=30) :: space
+ ! arrays
+ integer, dimension(3, 3, max_num_sym) :: rotations
+ integer, dimension(3, mesh(1)*mesh(2)*mesh(3)) :: grid_point
+ integer, dimension(mesh(1)*mesh(2)*mesh(3)) :: map
+ real(dp), dimension(3, max_num_sym) :: translations
+ real(dp), dimension(3, 3) :: lattice_t
+ !**************************************************************************
+
+ space = " "
+
+
+ ! transpose due to array order difference between C and fortran
+ lattice_t = transpose( lattice )
+
+ call spg_get_symmetry( num_sym, rotations, translations, max_num_sym, &
+ & lattice_t, positions, atom_types, num_atom, symprec)
+
+ ! transpose due to array order difference between C and fortran
+ do i = 1, num_sym
+ rotations(:,:,i) = transpose(rotations(:,:,i))
+ end do
+
+
+ indent = 1
+ call spg_get_international( space_group, international, &
+ & lattice_t, positions, atom_types, num_atom, symprec );
+
+ if (space_group /= 0) then
+ call spg_get_schoenflies( space_group, schoenflies, &
+ & lattice_t, positions, atom_types, num_atom, symprec );
+
+ print('(a, "space_group: ", i3)'), space(1:indent*2), space_group
+ print('(a, "international: ", a, a)' ), space(1:indent*2), trim(international)
+ print('(a, "schoenflies: ", a)'), space(1:indent*2), trim(schoenflies)
+ else
+ print '("Space group could not be found,")'
+ end if
+
+ print ('(a, "atom-type:")'), space(1:indent*2)
+ do i = 1, num_atom
+ print('(a, "- { type: ", i3, " }")'), space(1:indent*2), atom_types(i)
+ end do
+ print('(a, "real-basis:")'), space(1:indent*2)
+ do i = 1, 3
+ print('(a, "- [", f19.14, ", ", f19.14, ", ", f19.14, " ]")'), space(1:indent*2), lattice(:, i)
+ end do
+ print('(a, "position:")'), space(1:indent*2)
+ do i = 1, num_atom
+ print('(a, "- [", f17.14, ", ", f17.14, ", ", f17.14, " ]")'), space(1:indent*2), positions(:, i)
+ end do
+ print('(a, "operation:")'), space(1:indent*2)
+ do i = 1, num_sym
+ print('(a, "- rotation: #", i4)'), space(1:indent*2), i
+ do j = 1, 3
+ print('(a, " - [", i3,",", i3,",", i3," ]")'), space(1:indent*2), rotations(j,:, i)
+ end do
+ print('(a, " translation: [ ", f10.7,", ", f10.7,", ", f10.7," ]")'), space(1:indent*2), translations(:,i)
+ end do
+
+ print('(a, "reciprocal-mesh: [", i3, ", ", i3, ", ", i3, " ]")'), space(1:indent*2), mesh(:)
+ print('(a, "- is_shift: [", i3, ", ", i3, ", ", i3, " ]")'), space(1:indent*2), is_shift(:)
+ print('(a, "- is_time_reversal: ", i3)'), space(1:indent*2), is_time_reversal
+ call spg_get_ir_reciprocal_mesh( num_ir_grid, grid_point, map, &
+ mesh, is_shift, is_time_reversal, lattice, positions, &
+ atom_types, num_atom, symprec )
+
+ print('(a, "- num-ir-grid-point:", i4)'), space(1:indent*2), num_ir_grid
+ print('(a, "- ir-grid-point:")'), space(1:indent*2)
+ counter = 0
+ sum_weight = 0
+ do i = 1, mesh(1)*mesh(2)*mesh(3)
+ if ( i == map(i) ) then
+ ! Ad-hoc and intuitive implementation of weight
+ weight = 0
+ do j = 1, mesh(1)*mesh(2)*mesh(3)
+ if ( i == map(j) ) then
+ weight = weight + 1
+ end if
+ end do
+
+ counter = counter + 1
+ sum_weight = sum_weight + weight
+
+ print('(a, " - #", i4)'), space(1:indent*2), counter
+ print('(a, " address: [", i3, ", ", i3, ", ", i3, " ]")'), space(1:indent*2), grid_point(:, map(i))
+ print('(a, " weight: ", i4)'), space(1:indent*2), weight
+ end if
+ end do
+ ! print('(a, " sum_weight: ", i4)'), space(1:indent*2), sum_weight
+
+end subroutine write_syminfo
+
+program spglib_test
+
+ use defs_basis
+
+ implicit none
+
+ ! max_sym is the expected maximum number of symmetry operations.
+ ! This can be very big if it is supercell.
+ integer :: max_num_sym=192
+
+ integer :: num_atom
+ real(dp) :: symprec
+ integer, dimension(3, 3, 192) :: rotations
+ real(dp), dimension(3, 192) :: translations
+ real(dp), dimension(3, 3) :: lattice
+ real(dp), dimension(3, 1000) :: positions
+ integer, dimension(1000) :: atom_types
+
+ integer, dimension(3) :: mesh=(/ 20, 20, 20 /)
+ integer, dimension(3) :: is_shift=(/ 0, 0, 0/)
+ integer, dimension(3, 8000) :: grid_point
+ integer, dimension(8000) :: map
+ integer :: is_time_reversal=1
+
+ symprec = 1e-5
+
+ ! Rutile
+
+ print '("Rutile:")'
+ num_atom = 6
+ lattice(1:3, 1) = (/ 4.0, 0.0, 0.0 /)
+ lattice(1:3, 2) = (/ 0.0, 4.0, 0.0 /)
+ lattice(1:3, 3) = (/ 0.0, 0.0, 2.6 /)
+ positions(1:3, 1) = (/ 0.0, 0.0, 0.0 /)
+ positions(1:3, 2) = (/ 0.5, 0.5, 0.5 /)
+ positions(1:3, 3) = (/ 0.3, 0.3, 0.0 /)
+ positions(1:3, 4) = (/ 0.7, 0.7, 0.0 /)
+ positions(1:3, 5) = (/ 0.2, 0.8, 0.5 /)
+ positions(1:3, 6) = (/ 0.8, 0.2, 0.5 /)
+ atom_types(1:6) = (/ 1, 1, 2, 2, 2, 2 /)
+
+ call write_syminfo( max_num_sym, num_atom, &
+ lattice, symprec, atom_types, positions, &
+ mesh, is_shift, is_time_reversal )
+
+ ! FCC
+ print '("")'
+ print '("FCC:")'
+ num_atom = 1
+ lattice(1:3, 1) = (/ 0.0, 2.0, 2.0 /)
+ lattice(1:3, 2) = (/ 2.0, 0.0, 2.0 /)
+ lattice(1:3, 3) = (/ 2.0, 2.0, 0.0 /)
+ positions(1:3, 1) = (/ 0.0, 0.0, 0.0 /)
+ atom_types(1) = 1
+
+ call write_syminfo( max_num_sym, num_atom, &
+ lattice, symprec, atom_types, positions, &
+ mesh, is_shift, is_time_reversal )
+
+end program spglib_test
+
diff --git a/example/example_f08.f90 b/example/example_f08.f90
new file mode 100644
index 0000000..e580ef0
--- /dev/null
+++ b/example/example_f08.f90
@@ -0,0 +1,228 @@
+! How to make
+!
+! gcc -c spglib_f.c
+! gfortran -c spglib_f_test.f90
+! gfortran -o spglib_test spglib_f_test.o spglib_f.o ~/code/spglib/trunk/src/.libs/libsymspg.a
+
+module defs_basis
+ implicit none
+ integer, parameter :: dp=kind(1.0d0)
+end module defs_basis
+
+subroutine write_syminfo( max_num_sym, num_atom, &
+ & lattice, symprec, atom_types, positions, &
+ & mesh, is_shift, is_time_reversal )
+
+ use defs_basis
+
+ use spglib_f08
+
+ implicit none
+
+ ! Arguments ------------------------------------
+ ! scalars
+ integer, intent(in) :: num_atom, max_num_sym, is_time_reversal
+ real(dp), intent(in) :: symprec
+ ! arrays
+ integer, intent(in), dimension(num_atom) :: atom_types
+ integer, intent(in), dimension(3) :: mesh, is_shift
+ real(dp), intent(in), dimension(3, 3) :: lattice
+ real(dp), intent(in), dimension(3, num_atom) :: positions
+ ! Local variables-------------------------------
+ ! scalars
+ integer :: i, j, counter, weight, space_group, num_sym, indent
+ integer :: num_ir_grid
+ character(len=21) :: international
+ character(len=10) :: schoenflies
+ character(len=30) :: space
+ character(len=128) :: fmt
+ ! arrays
+ integer, dimension(3, 3, max_num_sym) :: rotations
+ integer, dimension(3, mesh(1)*mesh(2)*mesh(3)) :: grid_point
+ integer, dimension(mesh(1)*mesh(2)*mesh(3)) :: map
+ real(dp), dimension(3, max_num_sym) :: translations
+
+ type(SpglibDataset) :: dset
+
+ !**************************************************************************
+
+ space = " "
+
+! The allocatable components of dset get deallocated on scope exit
+ dset = spg_get_dataset(lattice, positions, atom_types, num_atom, symprec)
+
+ num_sym = dset % n_operations
+
+ indent = 1
+ if (dset % spacegroup_number /= 0) then
+ schoenflies = ' '
+ space_group = spg_get_schoenflies( schoenflies, &
+ & lattice, positions, atom_types, num_atom, symprec );
+
+ print('(a, "space_group: ", i3)'), space(1:indent*2), dset % spacegroup_number
+ print('(a, "international: ", a, a)' ), space(1:indent*2), trim(dset % international_symbol)
+ print('(a, "schoenflies: ", a)'), space(1:indent*2), trim(schoenflies)
+ else
+ print '("Space group could not be found,")'
+ end if
+
+ print ('(a, "atom-type:")'), space(1:indent*2)
+ do i = 1, num_atom
+ print('(a, "- { type: ", i3, "}")'), space(1:indent*2), atom_types(i)
+ end do
+ print('(a, "real-basis:")'), space(1:indent*2)
+ do i = 1, 3
+ print('(a, "- [", f19.14, ", ", f19.14, ", ", f19.14, "]")'), space(1:indent*2), lattice(i, :)
+ end do
+ print('(a, "position:")'), space(1:indent*2)
+ do i = 1, num_atom
+ print('(a, "- [", f17.14, ", ", f17.14, ", ", f17.14, "]")'), space(1:indent*2), positions(:, i)
+ end do
+ print('(a, "operation:")'), space(1:indent*2)
+ do i = 1, num_sym
+ print('(a, "- rotation: #", i4)'), space(1:indent*2), i
+ do j = 1, 3
+ print('(a, " - [", i3,",", i3,",", i3,"]")'), space(1:indent*2), dset % rotations(:,j, i)
+ end do
+ print('(a, " translation: [ ", f10.7,", ", f10.7,", ", f10.7,"]")'), space(1:indent*2), dset % translations(:,i)
+ end do
+
+
+ write(fmt, '(i0,a)') num_atom, "(x,i0,':',i0))"
+ print "(a,'wyckoffs: ', "//fmt,space(1:indent*2),(i, dset % wyckoffs(i), i = 1, dset % n_atoms)
+ print "(a,'equivalent_atoms: ', "//fmt,space(1:indent*2),(i, dset % equivalent_atoms(i) + 1, i = 1, dset % n_atoms)
+
+ print('(a, "reciprocal-mesh: [", i3, ", ", i3, ", ", i3, "]")'), space(1:indent*2), mesh(:)
+ print('(a, "- is_shift: [", i3, ", ", i3, ", ", i3, "]")'), space(1:indent*2), is_shift(:)
+ print('(a, "- is_time_reversal: ", i3)'), space(1:indent*2), is_time_reversal
+
+ num_ir_grid = spg_get_ir_reciprocal_mesh( grid_point, map, &
+ & mesh, is_shift, is_time_reversal, lattice, positions, &
+ & atom_types, num_atom, symprec )
+
+ print('(a, "- num-ir-grid-point:", i4)'), space(1:indent*2), num_ir_grid
+ print('(a, "- ir-grid-point:")'), space(1:indent*2)
+ counter = 0
+
+ do i = 1, product(mesh)
+ if ( i-1 == map(i) ) then
+ ! Ad-hoc and intuitive implementation of weight. Not optimal for very large size
+ weight = count(map == i-1)
+ counter = counter + 1
+
+ print '(i5, 3(x,f9.6), 2x,i4,2x, f9.6, 3(x,i4))', counter, &
+ & real(is_shift + 2*grid_point(:, i))/real(2*mesh), map(i)+1, &
+ & real(weight)/real(product(mesh)), grid_point(:, i)
+ end if
+ end do
+
+end subroutine write_syminfo
+
+program spglib_test
+
+ use defs_basis
+
+ implicit none
+
+ ! max_sym is the expected maximum number of symmetry operations.
+ ! This can be very big if it is supercell.
+ integer :: max_num_sym=192
+
+ integer :: num_atom
+ real(dp) :: symprec
+ integer, dimension(3, 3, 192) :: rotations
+ real(dp), dimension(3, 192) :: translations
+ real(dp), dimension(3, 3) :: lattice
+ real(dp), dimension(3, 1000) :: positions
+ integer, dimension(1000) :: atom_types
+
+ integer, dimension(3) :: mesh = [20,20,20]
+ integer, dimension(3) :: is_shift
+ integer, dimension(3, 8000) :: grid_point
+ integer, dimension(8000) :: map
+ integer :: is_time_reversal = 1
+
+ real(dp) :: a
+
+! All numbers are improperly given in default (single) precision to avoid clutter. It should be fine as long as symprec > the error of sp
+
+ symprec = 1e-6
+
+
+ ! Rutile
+
+ print '("Rutile:")'
+ num_atom = 6
+ lattice(1,:) = (/ 4.0, 0.0, 0.0 /)
+ lattice(2,:) = (/ 0.0, 4.0, 0.0 /)
+ lattice(3,:) = (/ 0.0, 0.0, 2.6 /)
+ positions(1:3, 1) = (/ 0.0, 0.0, 0.0 /)
+ positions(1:3, 2) = (/ 0.5, 0.5, 0.5 /)
+ positions(1:3, 3) = (/ 0.3, 0.3, 0.0 /)
+ positions(1:3, 4) = (/ 0.7, 0.7, 0.0 /)
+ positions(1:3, 5) = (/ 0.2, 0.8, 0.5 /)
+ positions(1:3, 6) = (/ 0.8, 0.2, 0.5 /)
+ atom_types(1:6) = (/ 1, 1, 2, 2, 2, 2 /)
+
+ call write_syminfo( max_num_sym, num_atom, &
+ lattice, symprec, atom_types, positions, &
+ mesh, is_shift, is_time_reversal )
+
+ ! FCC
+ print '("")'
+ print '("FCC:")'
+ num_atom = 1
+ lattice(1,:) = (/ 0.0, 2.0, 2.0 /)
+ lattice(2,:) = (/ 2.0, 0.0, 2.0 /)
+ lattice(3,:) = (/ 2.0, 2.0, 0.0 /)
+ positions(1:3, 1) = (/ 0.0, 0.0, 0.0 /)
+ atom_types(1) = 1
+
+ call write_syminfo( max_num_sym, num_atom, &
+ lattice, symprec, atom_types, positions, &
+ mesh, is_shift, is_time_reversal )
+
+
+
+
+
+ print '(/,"D0_{24}:")'
+ a = 2.89
+
+ lattice(1,:) = [ sqrt(3.0), -1.0, 0.0]
+ lattice(2,:) = [ sqrt(3.0), 1.0, 0.0]
+ lattice(3,:) = [ 0.0 , 0.0, sqrt(32.0/3.0)]
+
+
+ num_atom = 16
+ positions(:, 1) = [ 0.0, 0.0, 0.0]
+ positions(:, 2) = [ 3.0, 0.0, 0.0]
+ positions(:, 3) = [ 0.0, 3.0, 0.0]
+ positions(:, 4) = [ 3.0, 3.0, 0.0]
+ positions(:, 5) = [ 2.0, 2.0, 1.0]
+ positions(:, 6) = [ 5.0, 2.0, 1.0]
+ positions(:, 7) = [ 2.0, 5.0, 1.0]
+ positions(:, 8) = [ 5.0, 5.0, 1.0]
+ positions(:, 9) = [ 0.0, 0.0, 2.0]
+ positions(:,10) = [ 3.0, 0.0, 2.0]
+ positions(:,11) = [ 0.0, 3.0, 2.0]
+ positions(:,12) = [ 3.0, 3.0, 2.0]
+ positions(:,13) = [ 1.0, 1.0, 3.0]
+ positions(:,14) = [ 4.0, 1.0, 3.0]
+ positions(:,15) = [ 1.0, 4.0, 3.0]
+ positions(:,16) = [ 4.0, 4.0, 3.0]
+
+ positions(1:2,:num_atom) = positions(1:2,:num_atom)/6.0
+ positions(3,:num_atom) = positions(3,:num_atom)/4.0
+
+
+ atom_types(:num_atom) = [ 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1]
+ mesh = [ 12, 12, 6]
+ is_shift = [1,1,1]
+
+ call write_syminfo( max_num_sym, num_atom, &
+ & lattice, symprec, atom_types, positions, &
+ & mesh, is_shift, is_time_reversal )
+
+end program spglib_test
+
diff --git a/example/spglib_f08.f90 b/example/spglib_f08.f90
new file mode 100644
index 0000000..b901734
--- /dev/null
+++ b/example/spglib_f08.f90
@@ -0,0 +1,411 @@
+
+ module spglib_f08
+
+ use iso_c_binding, only: c_char, c_int, c_double, c_ptr, c_f_pointer
+
+ implicit none
+
+ private
+
+ type :: SpglibDataset
+ integer :: spacegroup_number
+ integer :: hall_number
+ character(len=11) :: international_symbol
+ character(len=17) :: hall_symbol
+ real(c_double) :: transformation_matrix(3,3)
+ real(c_double) :: origin_shift(3)
+ integer :: n_operations
+ integer, allocatable :: rotations(:,:,:)
+ real(c_double), allocatable :: translations(:,:)
+ integer :: n_atoms
+ integer, allocatable :: wyckoffs(:)
+ integer, allocatable :: equivalent_atoms(:) !Beware mapping refers to positions starting at 0
+ end type
+
+
+
+ interface
+
+ function spg_get_symmetry( rotation, translation, max_size, lattice, &
+ & position, types, num_atom, symprec) bind(c)
+ import c_int, c_double
+ integer(c_int), intent(inout) :: rotation(3,3,*)
+ real(c_double), intent(inout) :: translation(3,*)
+ integer(c_int), intent(in), value :: max_size
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_symmetry
+ end function spg_get_symmetry
+
+
+ function spgat_get_symmetry( rotation, translation, max_size, lattice, &
+ & position, types, num_atom, symprec, angle_tolerance) bind(c)
+ import c_int, c_double
+ integer(c_int), intent(inout) :: rotation(3,3,*)
+ real(c_double), intent(inout) :: translation(3,*)
+ integer(c_int), intent(in), value :: max_size
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_get_symmetry
+ end function spgat_get_symmetry
+
+
+ function spg_get_symmetry_with_collinear_spin( rotation, translation, &
+ & max_size, lattice, position, types, spins, num_atom, symprec) bind(c)
+ import c_int, c_double
+ integer(c_int), intent(inout) :: rotation(3,3,*)
+ real(c_double), intent(inout) :: translation(3,*)
+ integer(c_int), intent(in), value :: max_size
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ real(c_double), intent(in) :: spins(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_symmetry_with_collinear_spin
+ end function spg_get_symmetry_with_collinear_spin
+
+
+ function spgat_get_symmetry_with_collinear_spin( rotation, translation, &
+ & max_size, lattice, position, types, spins, num_atom, symprec, angle_tolerance) bind(c)
+ import c_int, c_double
+ integer(c_int), intent(inout) :: rotation(3,3,*)
+ real(c_double), intent(inout) :: translation(3,*)
+ integer(c_int), intent(in), value :: max_size
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ real(c_double), intent(in) :: spins(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_get_symmetry_with_collinear_spin
+ end function spgat_get_symmetry_with_collinear_spin
+
+
+
+ function spg_get_multiplicity( lattice, position, types, num_atom, symprec) bind(c)
+ import c_int, c_double
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_multiplicity
+ end function spg_get_multiplicity
+
+
+ function spgat_get_multiplicity( lattice, position, types, num_atom, symprec, angle_tolerance) bind(c)
+ import c_int, c_double
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_get_multiplicity
+ end function spgat_get_multiplicity
+
+
+ function spg_get_smallest_lattice( smallest_lattice, lattice, symprec) bind(c)
+ import c_int, c_double
+ real(c_double), intent(inout) :: smallest_lattice(3,3)
+ real(c_double), intent(in) :: lattice(3,3)
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_smallest_lattice
+ end function spg_get_smallest_lattice
+
+
+ function spg_find_primitive(lattice, position, types, num_atom, symprec) bind(c)
+ import c_int, c_double
+ real(c_double), intent(inout) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(inout) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_find_primitive
+ end function spg_find_primitive
+
+
+ function spgat_find_primitive(lattice, position, types, num_atom, symprec, angle_tolerance) bind(c)
+ import c_int, c_double
+ real(c_double), intent(inout) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(inout) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_find_primitive
+ end function spgat_find_primitive
+
+
+
+ function spg_get_international( symbol, lattice, position, types, num_atom, symprec) bind(c)
+ import c_char, c_int, c_double
+ character(kind=c_char), intent(out) :: symbol(11)
+ real(c_double), intent(in) :: lattice(3,3), position(3, *)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_international ! the number corresponding to 'symbol'. 0 on failure
+ end function spg_get_international
+
+
+ function spgat_get_international( symbol, lattice, position, types, num_atom, symprec, angle_tolerance) bind(c)
+ import c_char, c_int, c_double
+ character(kind=c_char), intent(out) :: symbol(11)
+ real(c_double), intent(in) :: lattice(3,3), position(3, *)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_get_international ! the number corresponding to 'symbol'. 0 on failure
+ end function spgat_get_international
+
+
+
+
+ function spg_get_schoenflies( symbol, lattice, position, types, num_atom, symprec) bind(c)
+ import c_char, c_int, c_double
+ character(kind=c_char), intent(out) :: symbol(10)
+ real(c_double), intent(in) :: lattice(3,3), position(3, *)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_schoenflies ! the number corresponding to 'symbol'. 0 on failure
+ end function spg_get_schoenflies
+
+ function spgat_get_schoenflies( symbol, lattice, position, types, num_atom, symprec, angle_tolerance) bind(c)
+ import c_char, c_int, c_double
+ character(kind=c_char), intent(out) :: symbol(10)
+ real(c_double), intent(in) :: lattice(3,3), position(3, *)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_get_schoenflies ! the number corresponding to 'symbol'. 0 on failure
+ end function spgat_get_schoenflies
+
+
+
+ function spg_get_pointgroup( symbol, trans_mat, rotations, num_rotations) bind(c)
+ import c_char, c_int, c_double
+ character(kind=c_char) :: symbol(6)
+ integer(c_int), intent(inout) :: trans_mat(3,3)
+ integer(c_int), intent(in) :: rotations(3,3,*)
+ integer(c_int), intent(in), value :: num_rotations
+ integer(c_int) :: spg_get_pointgroup
+ end function spg_get_pointgroup
+
+
+ function spg_refine_cell( lattice, position, types, num_atom, symprec) bind(c)
+ import c_int, c_double
+ real(c_double), intent(inout) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(inout) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_refine_cell
+ end function spg_refine_cell
+
+ function spgat_refine_cell( lattice, position, types, num_atom, symprec, angle_tolerance) bind(c)
+ import c_int, c_double
+ real(c_double), intent(inout) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(inout) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec, angle_tolerance
+ integer(c_int) :: spgat_refine_cell
+ end function spgat_refine_cell
+
+
+ function spg_get_ir_kpoints( map, kpoints, num_kpoints, lattice, position, &
+ & types, num_atom, is_time_reversal, symprec) bind(c)
+! Beware the map refers to positions starting at 0
+ import c_int, c_double
+ integer(c_int), intent(inout) :: map(*)
+ real(c_double), intent(in) :: kpoints(3,*)
+ integer(c_int), intent(in), value :: num_kpoints
+ real(c_double), intent(in) :: lattice(3,3), position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ integer(c_int), intent(in), value :: is_time_reversal
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_ir_kpoints
+ end function spg_get_ir_kpoints
+
+
+ function spg_get_ir_reciprocal_mesh(grid_point, map, mesh, &
+ & is_shift, is_time_reversal, lattice, position, types, num_atom, symprec) bind(c)
+ import c_int, c_double
+! Beware the map refers to positions starting at 0
+ integer(c_int), intent(out) :: grid_point(3, *), map(*) ! size is product(mesh)
+ integer(c_int), intent(in) :: mesh(3), is_shift(3)
+ integer(c_int), intent(in), value :: is_time_reversal
+ real(c_double), intent(in) :: lattice(3,3), position(3, *)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ integer(c_int) :: spg_get_ir_reciprocal_mesh ! the number of points in the reduced mesh
+ end function spg_get_ir_reciprocal_mesh
+
+
+ function spg_get_stabilized_reciprocal_mesh(grid_point, map, mesh, is_shift, &
+ & is_time_reversal, lattice, num_rot, rotations, num_q, qpoints) bind(c)
+ import c_int, c_double
+! Beware the map refers to positions starting at 0
+ integer(c_int), intent(inout) :: grid_point(3,*), map(*)
+ integer(c_int), intent(in) :: mesh(3)
+ integer(c_int), intent(in) :: is_shift(3)
+ integer(c_int), intent(in), value :: is_time_reversal
+ real(c_double), intent(in) :: lattice(3,3)
+ integer(c_int), intent(in), value :: num_rot
+ integer(c_int), intent(in) :: rotations(3,3,*)
+ integer(c_int), intent(in), value :: num_q
+ real(c_double), intent(in) :: qpoints(3,*)
+ integer(c_int) :: spg_get_stabilized_reciprocal_mesh
+ end function spg_get_stabilized_reciprocal_mesh
+
+
+ function spg_get_triplets_reciprocal_mesh_at_q(weights, grid_points, third_q, &
+ & grid_point, mesh, is_time_reversal, lattice, num_rot, rotations) bind(c)
+ import c_int, c_double
+ integer(c_int), intent(inout) :: weights(*)
+ integer(c_int), intent(inout) :: grid_points(3,*)
+ integer(c_int), intent(inout) :: third_q(*)
+ integer(c_int), intent(in), value :: grid_point
+ integer(c_int), intent(in) :: mesh(3)
+ integer(c_int), intent(in), value :: is_time_reversal
+ real(c_double), intent(in) :: lattice(3,3)
+ integer(c_int), intent(in), value :: num_rot
+ integer(c_int), intent(in) :: rotations(3,3,*)
+ integer(c_int) :: spg_get_triplets_reciprocal_mesh_at_q
+ end function spg_get_triplets_reciprocal_mesh_at_q
+
+
+
+ function spg_extract_triplets_reciprocal_mesh_at_q(triplets_at_q, &
+ & weight_triplets_at_q, fixed_grid_number, num_triplets, triplets, &
+ & mesh, is_time_reversal, lattice, num_rot, rotations) bind(c)
+ import c_int, c_double
+ integer(c_int), intent(inout) :: triplets_at_q(3,*)
+ integer(c_int), intent(inout) :: weight_triplets_at_q(*)
+ integer(c_int), intent(in), value :: fixed_grid_number
+ integer(c_int), intent(in), value :: num_triplets
+ integer(c_int), intent(in) :: triplets(3,*)
+ integer(c_int), intent(in) :: mesh(3)
+ integer(c_int), intent(in), value :: is_time_reversal
+ real(c_double), intent(in) :: lattice(3,3)
+ integer(c_int), intent(in), value :: num_rot
+ integer(c_int), intent(in) :: rotations(3,3,*)
+ integer(c_int) :: spg_extract_triplets_reciprocal_mesh_at_q
+ end function spg_extract_triplets_reciprocal_mesh_at_q
+
+
+ end interface
+
+
+
+ public :: SpglibDataset, spg_get_dataset, &
+ & spg_get_symmetry, spgat_get_symmetry, &
+ & spg_get_symmetry_with_collinear_spin, spgat_get_symmetry_with_collinear_spin, &
+ & spg_get_multiplicity, spgat_get_multiplicity, spg_get_smallest_lattice, &
+ & spg_find_primitive, spgat_find_primitive, &
+ & spg_get_international, spgat_get_international, &
+ & spg_get_schoenflies, spgat_get_schoenflies, &
+ & spg_get_pointgroup, spg_refine_cell, spgat_refine_cell, &
+ & spg_get_ir_kpoints, spg_get_ir_reciprocal_mesh, spg_get_stabilized_reciprocal_mesh, &
+ & spg_get_triplets_reciprocal_mesh_at_q, spg_extract_triplets_reciprocal_mesh_at_q
+
+
+ contains
+
+
+
+
+ function spg_get_dataset(lattice, position, types, num_atom, symprec) result(dset)
+
+ real(c_double), intent(in) :: lattice(3,3)
+ real(c_double), intent(in) :: position(3,*)
+ integer, intent(in) :: types(*)
+ integer, intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ type(SpglibDataset) :: dset
+
+
+
+ type, bind(c) :: SpglibDataset_c
+ integer(c_int) :: spacegroup_number
+ integer(c_int) :: hall_number
+ character(kind=c_char) :: international_symbol(11)
+ character(kind=c_char) :: hall_symbol(17)
+ real(c_double) :: transformation_matrix(3,3)
+ real(c_double) :: origin_shift(3)
+ integer(c_int) :: n_operations
+ ! integer(c_int), pointer :: rotations(3,3,:)
+ type(c_ptr) :: rotations
+ ! real(c_double), pointer :: translations(3,:)
+ type(c_ptr) :: translations
+ integer(c_int) :: n_atoms
+ ! integer(c_int), pointer :: wyckoffs(:)
+ type(c_ptr) :: wyckoffs
+ ! integer(c_int), pointer :: equivalent_atoms(:)
+ type(c_ptr) :: equivalent_atoms
+ end type
+
+
+ interface
+ function spg_get_dataset_c(lattice, position, types, num_atom, symprec) bind(c, name='spg_get_dataset')
+ import c_int, c_double, c_ptr
+ real(c_double), intent(in) :: lattice(3,3)
+ real(c_double), intent(in) :: position(3,*)
+ integer(c_int), intent(in) :: types(*)
+ integer(c_int), intent(in), value :: num_atom
+ real(c_double), intent(in), value :: symprec
+ type(c_ptr) :: spg_get_dataset_c
+ end function spg_get_dataset_c
+
+ subroutine spg_free_dataset_c(dataset) bind(c, name = 'spg_free_dataset')
+ import SpglibDataset_c
+ type(SpglibDataset_c), intent(inout) :: dataset
+ end subroutine spg_free_dataset_c
+ end interface
+
+ type(SpglibDataset_c), pointer :: dset_c
+ integer :: n_operations, n_atoms, i
+
+ real(c_double), pointer :: translations(:,:)
+ integer(c_int), pointer :: rotations(:,:,:), wyckoffs(:), equivalent_atoms(:)
+
+ call c_f_pointer( spg_get_dataset_c(lattice, position, types, num_atom, symprec), dset_c)
+
+ dset % spacegroup_number = dset_c % spacegroup_number
+ dset % hall_number = dset_c % hall_number
+ dset % transformation_matrix = dset_c % transformation_matrix
+ dset % origin_shift = dset_c % origin_shift
+ dset % n_operations = dset_c % n_operations
+ dset % n_atoms = dset_c % n_atoms
+
+ do i = 1, size(dset_c % international_symbol)
+ dset % international_symbol(i:i) = dset_c % international_symbol(i)
+ end do
+
+ do i = 1, size(dset_c % hall_symbol)
+ dset % hall_symbol(i:i) = dset_c % hall_symbol(i)
+ end do
+
+ n_operations = dset_c % n_operations
+ n_atoms = dset_c % n_atoms
+
+ call c_f_pointer (dset_c % rotations , rotations , shape = [3, 3, n_operations])
+ call c_f_pointer (dset_c % translations , translations , shape = [3, n_operations])
+ call c_f_pointer (dset_c % wyckoffs , wyckoffs , shape = [n_atoms])
+ call c_f_pointer (dset_c % equivalent_atoms, equivalent_atoms, shape = [n_atoms])
+
+ allocate( dset % rotations (3, 3, n_operations))
+ allocate( dset % translations (3, n_operations))
+ allocate( dset % wyckoffs (n_atoms))
+ allocate( dset % equivalent_atoms(n_atoms))
+
+ dset % rotations = rotations
+ dset % translations = translations
+ dset % wyckoffs = wyckoffs
+ dset % equivalent_atoms = equivalent_atoms
+
+ call spg_free_dataset_c(dset_c)
+
+ end function spg_get_dataset
+
+
+ end module spglib_f08
diff --git a/install-sh b/install-sh
new file mode 100755
index 0000000..a9244eb
--- /dev/null
+++ b/install-sh
@@ -0,0 +1,527 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2011-01-19.21; # UTC
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ # Protect names problematic for `test' and other utilities.
+ case $dst_arg in
+ -* | [=\(\)!]) dst_arg=./$dst_arg;;
+ esac
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ # Protect names problematic for `test' and other utilities.
+ case $dst_arg in
+ -* | [=\(\)!]) dst_arg=./$dst_arg;;
+ esac
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ do_exit='(exit $ret); exit $ret'
+ trap "ret=129; $do_exit" 1
+ trap "ret=130; $do_exit" 2
+ trap "ret=141; $do_exit" 13
+ trap "ret=143; $do_exit" 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names problematic for `test' and other utilities.
+ case $src in
+ -* | [=\(\)!]) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+ dst=$dst_arg
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix='/';;
+ [-=\(\)!]*) prefix='./';;
+ *) prefix='';;
+ esac
+
+ eval "$initialize_posix_glob"
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob set -f
+ set fnord $dstdir
+ shift
+ $posix_glob set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test X"$d" = X && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/ltmain.sh b/ltmain.sh
new file mode 100644
index 0000000..0096fe6
--- /dev/null
+++ b/ltmain.sh
@@ -0,0 +1,9661 @@
+
+# libtool (GNU libtool) 2.4.2
+# Written by Gordon Matzigkeit <gord at gnu.ai.mit.edu>, 1996
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
+# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Usage: $progname [OPTION]... [MODE-ARG]...
+#
+# Provide generalized library-building support services.
+#
+# --config show all configuration variables
+# --debug enable verbose shell tracing
+# -n, --dry-run display commands without modifying any files
+# --features display basic configuration information and exit
+# --mode=MODE use operation mode MODE
+# --preserve-dup-deps don't remove duplicate dependency libraries
+# --quiet, --silent don't print informational messages
+# --no-quiet, --no-silent
+# print informational messages (default)
+# --no-warn don't display warning messages
+# --tag=TAG use configuration variables from tag TAG
+# -v, --verbose print more informational messages than default
+# --no-verbose don't print the extra informational messages
+# --version print version information
+# -h, --help, --help-all print short, long, or detailed help message
+#
+# MODE must be one of the following:
+#
+# clean remove files from the build directory
+# compile compile a source file into a libtool object
+# execute automatically set library path, then run a program
+# finish complete the installation of libtool libraries
+# install install libraries or executables
+# link create a library or an executable
+# uninstall remove libraries from an installed directory
+#
+# MODE-ARGS vary depending on the MODE. When passed as first option,
+# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
+# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
+#
+# When reporting a bug, please describe a test case to reproduce it and
+# include the following information:
+#
+# host-triplet: $host
+# shell: $SHELL
+# compiler: $LTCC
+# compiler flags: $LTCFLAGS
+# linker: $LD (gnu? $with_gnu_ld)
+# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu2
+# automake: $automake_version
+# autoconf: $autoconf_version
+#
+# Report bugs to <bug-libtool at gnu.org>.
+# GNU libtool home page: <http://www.gnu.org/software/libtool/>.
+# General help using GNU software: <http://www.gnu.org/gethelp/>.
+
+PROGRAM=libtool
+PACKAGE=libtool
+VERSION="2.4.2 Debian-2.4.2-1ubuntu2"
+TIMESTAMP=""
+package_revision=1.3337
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+ eval 'cat <<_LTECHO_EOF
+$1
+_LTECHO_EOF'
+}
+
+# NLS nuisances: We save the old values to restore during execute mode.
+lt_user_locale=
+lt_safe_locale=
+for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
+ fi"
+done
+LC_ALL=C
+LANGUAGE=C
+export LANGUAGE LC_ALL
+
+$lt_unset CDPATH
+
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+
+
+: ${CP="cp -f"}
+test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
+: ${MAKE="make"}
+: ${MKDIR="mkdir"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+: ${Xsed="$SED -e 1s/^X//"}
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
+EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
+
+exit_status=$EXIT_SUCCESS
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+dirname="s,/[^/]*$,,"
+basename="s,^.*/,,"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+} # func_dirname may be replaced by extended shell implementation
+
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result=`$ECHO "${1}" | $SED "$basename"`
+} # func_basename may be replaced by extended shell implementation
+
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+ func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
+} # func_dirname_and_basename may be replaced by extended shell implementation
+
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+# func_strip_suffix prefix name
+func_stripname ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
+ esac
+} # func_stripname may be replaced by extended shell implementation
+
+
+# These SED scripts presuppose an absolute path with a trailing slash.
+pathcar='s,^/\([^/]*\).*$,\1,'
+pathcdr='s,^/[^/]*,,'
+removedotparts=':dotsl
+ s@/\./@/@g
+ t dotsl
+ s,/\.$,/,'
+collapseslashes='s@/\{1,\}@/@g'
+finalslash='s,/*$,/,'
+
+# func_normal_abspath PATH
+# Remove doubled-up and trailing slashes, "." path components,
+# and cancel out any ".." path components in PATH after making
+# it an absolute path.
+# value returned in "$func_normal_abspath_result"
+func_normal_abspath ()
+{
+ # Start from root dir and reassemble the path.
+ func_normal_abspath_result=
+ func_normal_abspath_tpath=$1
+ func_normal_abspath_altnamespace=
+ case $func_normal_abspath_tpath in
+ "")
+ # Empty path, that just means $cwd.
+ func_stripname '' '/' "`pwd`"
+ func_normal_abspath_result=$func_stripname_result
+ return
+ ;;
+ # The next three entries are used to spot a run of precisely
+ # two leading slashes without using negated character classes;
+ # we take advantage of case's first-match behaviour.
+ ///*)
+ # Unusual form of absolute path, do nothing.
+ ;;
+ //*)
+ # Not necessarily an ordinary path; POSIX reserves leading '//'
+ # and for example Cygwin uses it to access remote file shares
+ # over CIFS/SMB, so we conserve a leading double slash if found.
+ func_normal_abspath_altnamespace=/
+ ;;
+ /*)
+ # Absolute path, do nothing.
+ ;;
+ *)
+ # Relative path, prepend $cwd.
+ func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
+ ;;
+ esac
+ # Cancel out all the simple stuff to save iterations. We also want
+ # the path to end with a slash for ease of parsing, so make sure
+ # there is one (and only one) here.
+ func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
+ -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
+ while :; do
+ # Processed it all yet?
+ if test "$func_normal_abspath_tpath" = / ; then
+ # If we ascended to the root using ".." the result may be empty now.
+ if test -z "$func_normal_abspath_result" ; then
+ func_normal_abspath_result=/
+ fi
+ break
+ fi
+ func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
+ -e "$pathcar"`
+ func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
+ -e "$pathcdr"`
+ # Figure out what to do with it
+ case $func_normal_abspath_tcomponent in
+ "")
+ # Trailing empty path component, ignore it.
+ ;;
+ ..)
+ # Parent dir; strip last assembled component from result.
+ func_dirname "$func_normal_abspath_result"
+ func_normal_abspath_result=$func_dirname_result
+ ;;
+ *)
+ # Actual path component, append it.
+ func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
+ ;;
+ esac
+ done
+ # Restore leading double-slash if one was found on entry.
+ func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
+}
+
+# func_relative_path SRCDIR DSTDIR
+# generates a relative path from SRCDIR to DSTDIR, with a trailing
+# slash if non-empty, suitable for immediately appending a filename
+# without needing to append a separator.
+# value returned in "$func_relative_path_result"
+func_relative_path ()
+{
+ func_relative_path_result=
+ func_normal_abspath "$1"
+ func_relative_path_tlibdir=$func_normal_abspath_result
+ func_normal_abspath "$2"
+ func_relative_path_tbindir=$func_normal_abspath_result
+
+ # Ascend the tree starting from libdir
+ while :; do
+ # check if we have found a prefix of bindir
+ case $func_relative_path_tbindir in
+ $func_relative_path_tlibdir)
+ # found an exact match
+ func_relative_path_tcancelled=
+ break
+ ;;
+ $func_relative_path_tlibdir*)
+ # found a matching prefix
+ func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
+ func_relative_path_tcancelled=$func_stripname_result
+ if test -z "$func_relative_path_result"; then
+ func_relative_path_result=.
+ fi
+ break
+ ;;
+ *)
+ func_dirname $func_relative_path_tlibdir
+ func_relative_path_tlibdir=${func_dirname_result}
+ if test "x$func_relative_path_tlibdir" = x ; then
+ # Have to descend all the way to the root!
+ func_relative_path_result=../$func_relative_path_result
+ func_relative_path_tcancelled=$func_relative_path_tbindir
+ break
+ fi
+ func_relative_path_result=../$func_relative_path_result
+ ;;
+ esac
+ done
+
+ # Now calculate path; take care to avoid doubling-up slashes.
+ func_stripname '' '/' "$func_relative_path_result"
+ func_relative_path_result=$func_stripname_result
+ func_stripname '/' '/' "$func_relative_path_tcancelled"
+ if test "x$func_stripname_result" != x ; then
+ func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
+ fi
+
+ # Normalisation. If bindir is libdir, return empty string,
+ # else relative path ending with a slash; either way, target
+ # file name can be directly appended.
+ if test ! -z "$func_relative_path_result"; then
+ func_stripname './' '' "$func_relative_path_result/"
+ func_relative_path_result=$func_stripname_result
+ fi
+}
+
+# The name of this program:
+func_dirname_and_basename "$progpath"
+progname=$func_basename_result
+
+# Make sure we have an absolute path for reexecution:
+case $progpath in
+ [\\/]*|[A-Za-z]:\\*) ;;
+ *[\\/]*)
+ progdir=$func_dirname_result
+ progdir=`cd "$progdir" && pwd`
+ progpath="$progdir/$progname"
+ ;;
+ *)
+ save_IFS="$IFS"
+ IFS=${PATH_SEPARATOR-:}
+ for progdir in $PATH; do
+ IFS="$save_IFS"
+ test -x "$progdir/$progname" && break
+ done
+ IFS="$save_IFS"
+ test -n "$progdir" || progdir=`pwd`
+ progpath="$progdir/$progname"
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution that turns a string into a regex matching for the
+# string literally.
+sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
+
+# Sed substitution that converts a w32 file name or path
+# which contains forward slashes, into one that contains
+# (escaped) backslashes. A very naive implementation.
+lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+
+# Re-`\' parameter expansions in output of double_quote_subst that were
+# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
+# in input to double_quote_subst, that '$' was protected from expansion.
+# Since each input `\' is now two `\'s, look for any number of runs of
+# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
+bs='\\'
+bs2='\\\\'
+bs4='\\\\\\\\'
+dollar='\$'
+sed_double_backslash="\
+ s/$bs4/&\\
+/g
+ s/^$bs2$dollar/$bs&/
+ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+ s/\n//g"
+
+# Standard options:
+opt_dry_run=false
+opt_help=false
+opt_quiet=false
+opt_verbose=false
+opt_warning=:
+
+# func_echo arg...
+# Echo program name prefixed message, along with the current mode
+# name if it has been set yet.
+func_echo ()
+{
+ $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
+}
+
+# func_verbose arg...
+# Echo program name prefixed message in verbose mode only.
+func_verbose ()
+{
+ $opt_verbose && func_echo ${1+"$@"}
+
+ # A bug in bash halts the script if the last line of a function
+ # fails when set -e is in force, so we need another command to
+ # work around that:
+ :
+}
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+ $ECHO "$*"
+}
+
+# func_error arg...
+# Echo program name prefixed message to standard error.
+func_error ()
+{
+ $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
+}
+
+# func_warning arg...
+# Echo program name prefixed warning message to standard error.
+func_warning ()
+{
+ $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
+
+ # bash bug again:
+ :
+}
+
+# func_fatal_error arg...
+# Echo program name prefixed message to standard error, and exit.
+func_fatal_error ()
+{
+ func_error ${1+"$@"}
+ exit $EXIT_FAILURE
+}
+
+# func_fatal_help arg...
+# Echo program name prefixed message to standard error, followed by
+# a help hint, and exit.
+func_fatal_help ()
+{
+ func_error ${1+"$@"}
+ func_fatal_error "$help"
+}
+help="Try \`$progname --help' for more information." ## default
+
+
+# func_grep expression filename
+# Check whether EXPRESSION matches any line of FILENAME, without output.
+func_grep ()
+{
+ $GREP "$1" "$2" >/dev/null 2>&1
+}
+
+
+# func_mkdir_p directory-path
+# Make sure the entire path to DIRECTORY-PATH is available.
+func_mkdir_p ()
+{
+ my_directory_path="$1"
+ my_dir_list=
+
+ if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
+
+ # Protect directory names starting with `-'
+ case $my_directory_path in
+ -*) my_directory_path="./$my_directory_path" ;;
+ esac
+
+ # While some portion of DIR does not yet exist...
+ while test ! -d "$my_directory_path"; do
+ # ...make a list in topmost first order. Use a colon delimited
+ # list incase some portion of path contains whitespace.
+ my_dir_list="$my_directory_path:$my_dir_list"
+
+ # If the last portion added has no slash in it, the list is done
+ case $my_directory_path in */*) ;; *) break ;; esac
+
+ # ...otherwise throw away the child directory and loop
+ my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
+ done
+ my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
+
+ save_mkdir_p_IFS="$IFS"; IFS=':'
+ for my_dir in $my_dir_list; do
+ IFS="$save_mkdir_p_IFS"
+ # mkdir can fail with a `File exist' error if two processes
+ # try to create one of the directories concurrently. Don't
+ # stop in that case!
+ $MKDIR "$my_dir" 2>/dev/null || :
+ done
+ IFS="$save_mkdir_p_IFS"
+
+ # Bail out if we (or some other process) failed to create a directory.
+ test -d "$my_directory_path" || \
+ func_fatal_error "Failed to create \`$1'"
+ fi
+}
+
+
+# func_mktempdir [string]
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible. If
+# given, STRING is the basename for that directory.
+func_mktempdir ()
+{
+ my_template="${TMPDIR-/tmp}/${1-$progname}"
+
+ if test "$opt_dry_run" = ":"; then
+ # Return a directory name, but don't create it in dry-run mode
+ my_tmpdir="${my_template}-$$"
+ else
+
+ # If mktemp works, use that first and foremost
+ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
+
+ if test ! -d "$my_tmpdir"; then
+ # Failing that, at least try and use $RANDOM to avoid a race
+ my_tmpdir="${my_template}-${RANDOM-0}$$"
+
+ save_mktempdir_umask=`umask`
+ umask 0077
+ $MKDIR "$my_tmpdir"
+ umask $save_mktempdir_umask
+ fi
+
+ # If we're not in dry-run mode, bomb out on failure
+ test -d "$my_tmpdir" || \
+ func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
+ fi
+
+ $ECHO "$my_tmpdir"
+}
+
+
+# func_quote_for_eval arg
+# Aesthetically quote ARG to be evaled later.
+# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
+# is double-quoted, suitable for a subsequent eval, whereas
+# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
+# which are still active within double quotes backslashified.
+func_quote_for_eval ()
+{
+ case $1 in
+ *[\\\`\"\$]*)
+ func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
+ *)
+ func_quote_for_eval_unquoted_result="$1" ;;
+ esac
+
+ case $func_quote_for_eval_unquoted_result in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting, command substitution and and variable
+ # expansion for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
+ ;;
+ *)
+ func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
+ esac
+}
+
+
+# func_quote_for_expand arg
+# Aesthetically quote ARG to be evaled later; same as above,
+# but do not quote variable references.
+func_quote_for_expand ()
+{
+ case $1 in
+ *[\\\`\"]*)
+ my_arg=`$ECHO "$1" | $SED \
+ -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
+ *)
+ my_arg="$1" ;;
+ esac
+
+ case $my_arg in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting and command substitution for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ my_arg="\"$my_arg\""
+ ;;
+ esac
+
+ func_quote_for_expand_result="$my_arg"
+}
+
+
+# func_show_eval cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.
+func_show_eval ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$my_cmd"
+ my_status=$?
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+# func_show_eval_locale cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it. Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$lt_user_locale
+ $my_cmd"
+ my_status=$?
+ eval "$lt_safe_locale"
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+# func_tr_sh
+# Turn $1 into a string suitable for a shell variable name.
+# Result is stored in $func_tr_sh_result. All characters
+# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
+# if $1 begins with a digit, a '_' is prepended as well.
+func_tr_sh ()
+{
+ case $1 in
+ [0-9]* | *[!a-zA-Z0-9_]*)
+ func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
+ ;;
+ * )
+ func_tr_sh_result=$1
+ ;;
+ esac
+}
+
+
+# func_version
+# Echo version message to standard output and exit.
+func_version ()
+{
+ $opt_debug
+
+ $SED -n '/(C)/!b go
+ :more
+ /\./!{
+ N
+ s/\n# / /
+ b more
+ }
+ :go
+ /^# '$PROGRAM' (GNU /,/# warranty; / {
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_usage
+# Echo short help message to standard output and exit.
+func_usage ()
+{
+ $opt_debug
+
+ $SED -n '/^# Usage:/,/^# *.*--help/ {
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
+ }' < "$progpath"
+ echo
+ $ECHO "run \`$progname --help | more' for full usage"
+ exit $?
+}
+
+# func_help [NOEXIT]
+# Echo long help message to standard output and exit,
+# unless 'noexit' is passed as argument.
+func_help ()
+{
+ $opt_debug
+
+ $SED -n '/^# Usage:/,/# Report bugs to/ {
+ :print
+ s/^# //
+ s/^# *$//
+ s*\$progname*'$progname'*
+ s*\$host*'"$host"'*
+ s*\$SHELL*'"$SHELL"'*
+ s*\$LTCC*'"$LTCC"'*
+ s*\$LTCFLAGS*'"$LTCFLAGS"'*
+ s*\$LD*'"$LD"'*
+ s/\$with_gnu_ld/'"$with_gnu_ld"'/
+ s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
+ s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
+ p
+ d
+ }
+ /^# .* home page:/b print
+ /^# General help using/b print
+ ' < "$progpath"
+ ret=$?
+ if test -z "$1"; then
+ exit $ret
+ fi
+}
+
+# func_missing_arg argname
+# Echo program name prefixed message to standard error and set global
+# exit_cmd.
+func_missing_arg ()
+{
+ $opt_debug
+
+ func_error "missing argument for $1."
+ exit_cmd=exit
+}
+
+
+# func_split_short_opt shortopt
+# Set func_split_short_opt_name and func_split_short_opt_arg shell
+# variables after splitting SHORTOPT after the 2nd character.
+func_split_short_opt ()
+{
+ my_sed_short_opt='1s/^\(..\).*$/\1/;q'
+ my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
+
+ func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
+ func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
+} # func_split_short_opt may be replaced by extended shell implementation
+
+
+# func_split_long_opt longopt
+# Set func_split_long_opt_name and func_split_long_opt_arg shell
+# variables after splitting LONGOPT at the `=' sign.
+func_split_long_opt ()
+{
+ my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
+ my_sed_long_arg='1s/^--[^=]*=//'
+
+ func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
+ func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
+} # func_split_long_opt may be replaced by extended shell implementation
+
+exit_cmd=:
+
+
+
+
+
+magic="%%%MAGIC variable%%%"
+magic_exe="%%%MAGIC EXE variable%%%"
+
+# Global variables.
+nonopt=
+preserve_args=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+extracted_archives=
+extracted_serial=0
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end. This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "${1}=\$${1}\${2}"
+} # func_append may be replaced by extended shell implementation
+
+# func_append_quoted var value
+# Quote VALUE and append to the end of shell variable VAR, separated
+# by a space.
+func_append_quoted ()
+{
+ func_quote_for_eval "${2}"
+ eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
+} # func_append_quoted may be replaced by extended shell implementation
+
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=`expr "${@}"`
+} # func_arith may be replaced by extended shell implementation
+
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
+} # func_len may be replaced by extended shell implementation
+
+
+# func_lo2o object
+func_lo2o ()
+{
+ func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
+} # func_lo2o may be replaced by extended shell implementation
+
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
+} # func_xform may be replaced by extended shell implementation
+
+
+# func_fatal_configuration arg...
+# Echo program name prefixed message to standard error, followed by
+# a configuration failure hint, and exit.
+func_fatal_configuration ()
+{
+ func_error ${1+"$@"}
+ func_error "See the $PACKAGE documentation for more information."
+ func_fatal_error "Fatal configuration error."
+}
+
+
+# func_config
+# Display the configuration for all the tags in this script.
+func_config ()
+{
+ re_begincf='^# ### BEGIN LIBTOOL'
+ re_endcf='^# ### END LIBTOOL'
+
+ # Default configuration.
+ $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
+
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
+ done
+
+ exit $?
+}
+
+# func_features
+# Display the features supported by this script.
+func_features ()
+{
+ echo "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ echo "enable shared libraries"
+ else
+ echo "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ echo "enable static libraries"
+ else
+ echo "disable static libraries"
+ fi
+
+ exit $?
+}
+
+# func_enable_tag tagname
+# Verify that TAGNAME is valid, and either flag an error and exit, or
+# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
+# variable here.
+func_enable_tag ()
+{
+ # Global variable:
+ tagname="$1"
+
+ re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
+ re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
+ sed_extractcf="/$re_begincf/,/$re_endcf/p"
+
+ # Validate tagname.
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ func_fatal_error "invalid tag name: $tagname"
+ ;;
+ esac
+
+ # Don't test for the "default" C tag, as we know it's
+ # there but not specially marked.
+ case $tagname in
+ CC) ;;
+ *)
+ if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
+ taglist="$taglist $tagname"
+
+ # Evaluate the configuration. Be careful to quote the path
+ # and the sed script, to avoid splitting on whitespace, but
+ # also don't use non-portable quotes within backquotes within
+ # quotes we have to do it in 2 steps:
+ extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
+ eval "$extractedcf"
+ else
+ func_error "ignoring unknown tag $tagname"
+ fi
+ ;;
+ esac
+}
+
+# func_check_version_match
+# Ensure that we are using m4 macros, and libtool script from the same
+# release of libtool.
+func_check_version_match ()
+{
+ if test "$package_revision" != "$macro_revision"; then
+ if test "$VERSION" != "$macro_version"; then
+ if test -z "$macro_version"; then
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from an older release.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ fi
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
+$progname: of $PACKAGE $VERSION and run autoconf again.
+_LT_EOF
+ fi
+
+ exit $EXIT_MISMATCH
+ fi
+}
+
+
+# Shorthand for --mode=foo, only valid as the first argument
+case $1 in
+clean|clea|cle|cl)
+ shift; set dummy --mode clean ${1+"$@"}; shift
+ ;;
+compile|compil|compi|comp|com|co|c)
+ shift; set dummy --mode compile ${1+"$@"}; shift
+ ;;
+execute|execut|execu|exec|exe|ex|e)
+ shift; set dummy --mode execute ${1+"$@"}; shift
+ ;;
+finish|finis|fini|fin|fi|f)
+ shift; set dummy --mode finish ${1+"$@"}; shift
+ ;;
+install|instal|insta|inst|ins|in|i)
+ shift; set dummy --mode install ${1+"$@"}; shift
+ ;;
+link|lin|li|l)
+ shift; set dummy --mode link ${1+"$@"}; shift
+ ;;
+uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
+ shift; set dummy --mode uninstall ${1+"$@"}; shift
+ ;;
+esac
+
+
+
+# Option defaults:
+opt_debug=:
+opt_dry_run=false
+opt_config=false
+opt_preserve_dup_deps=false
+opt_features=false
+opt_finish=false
+opt_help=false
+opt_help_all=false
+opt_silent=:
+opt_warning=:
+opt_verbose=:
+opt_silent=false
+opt_verbose=false
+
+
+# Parse options once, thoroughly. This comes as soon as possible in the
+# script to make things like `--version' happen as quickly as we can.
+{
+ # this just eases exit handling
+ while test $# -gt 0; do
+ opt="$1"
+ shift
+ case $opt in
+ --debug|-x) opt_debug='set -x'
+ func_echo "enabling shell trace mode"
+ $opt_debug
+ ;;
+ --dry-run|--dryrun|-n)
+ opt_dry_run=:
+ ;;
+ --config)
+ opt_config=:
+func_config
+ ;;
+ --dlopen|-dlopen)
+ optarg="$1"
+ opt_dlopen="${opt_dlopen+$opt_dlopen
+}$optarg"
+ shift
+ ;;
+ --preserve-dup-deps)
+ opt_preserve_dup_deps=:
+ ;;
+ --features)
+ opt_features=:
+func_features
+ ;;
+ --finish)
+ opt_finish=:
+set dummy --mode finish ${1+"$@"}; shift
+ ;;
+ --help)
+ opt_help=:
+ ;;
+ --help-all)
+ opt_help_all=:
+opt_help=': help-all'
+ ;;
+ --mode)
+ test $# = 0 && func_missing_arg $opt && break
+ optarg="$1"
+ opt_mode="$optarg"
+case $optarg in
+ # Valid mode arguments:
+ clean|compile|execute|finish|install|link|relink|uninstall) ;;
+
+ # Catch anything else as an error
+ *) func_error "invalid argument for $opt"
+ exit_cmd=exit
+ break
+ ;;
+esac
+ shift
+ ;;
+ --no-silent|--no-quiet)
+ opt_silent=false
+func_append preserve_args " $opt"
+ ;;
+ --no-warning|--no-warn)
+ opt_warning=false
+func_append preserve_args " $opt"
+ ;;
+ --no-verbose)
+ opt_verbose=false
+func_append preserve_args " $opt"
+ ;;
+ --silent|--quiet)
+ opt_silent=:
+func_append preserve_args " $opt"
+ opt_verbose=false
+ ;;
+ --verbose|-v)
+ opt_verbose=:
+func_append preserve_args " $opt"
+opt_silent=false
+ ;;
+ --tag)
+ test $# = 0 && func_missing_arg $opt && break
+ optarg="$1"
+ opt_tag="$optarg"
+func_append preserve_args " $opt $optarg"
+func_enable_tag "$optarg"
+ shift
+ ;;
+
+ -\?|-h) func_usage ;;
+ --help) func_help ;;
+ --version) func_version ;;
+
+ # Separate optargs to long options:
+ --*=*)
+ func_split_long_opt "$opt"
+ set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
+ shift
+ ;;
+
+ # Separate non-argument short options:
+ -\?*|-h*|-n*|-v*)
+ func_split_short_opt "$opt"
+ set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
+ shift
+ ;;
+
+ --) break ;;
+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
+ *) set dummy "$opt" ${1+"$@"}; shift; break ;;
+ esac
+ done
+
+ # Validate options:
+
+ # save first non-option argument
+ if test "$#" -gt 0; then
+ nonopt="$opt"
+ shift
+ fi
+
+ # preserve --debug
+ test "$opt_debug" = : || func_append preserve_args " --debug"
+
+ case $host in
+ *cygwin* | *mingw* | *pw32* | *cegcc*)
+ # don't eliminate duplications in $postdeps and $predeps
+ opt_duplicate_compiler_generated_deps=:
+ ;;
+ *)
+ opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
+ ;;
+ esac
+
+ $opt_help || {
+ # Sanity checks first:
+ func_check_version_match
+
+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ func_fatal_configuration "not configured to build any kind of library"
+ fi
+
+ # Darwin sucks
+ eval std_shrext=\"$shrext_cmds\"
+
+ # Only execute mode is allowed to have -dlopen flags.
+ if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
+ func_error "unrecognized option \`-dlopen'"
+ $ECHO "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Change the help message to a mode-specific one.
+ generic_help="$help"
+ help="Try \`$progname --help --mode=$opt_mode' for more information."
+ }
+
+
+ # Bail if the options were screwed
+ $exit_cmd $EXIT_FAILURE
+}
+
+
+
+
+## ----------- ##
+## Main. ##
+## ----------- ##
+
+# func_lalib_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_lalib_p ()
+{
+ test -f "$1" &&
+ $SED -e 4q "$1" 2>/dev/null \
+ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+}
+
+# func_lalib_unsafe_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function implements the same check as func_lalib_p without
+# resorting to external programs. To this end, it redirects stdin and
+# closes it afterwards, without saving the original file descriptor.
+# As a safety measure, use it only where a negative result would be
+# fatal anyway. Works if `file' does not exist.
+func_lalib_unsafe_p ()
+{
+ lalib_p=no
+ if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
+ for lalib_p_l in 1 2 3 4
+ do
+ read lalib_p_line
+ case "$lalib_p_line" in
+ \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+ esac
+ done
+ exec 0<&5 5<&-
+ fi
+ test "$lalib_p" = yes
+}
+
+# func_ltwrapper_script_p file
+# True iff FILE is a libtool wrapper script
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_script_p ()
+{
+ func_lalib_p "$1"
+}
+
+# func_ltwrapper_executable_p file
+# True iff FILE is a libtool wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_executable_p ()
+{
+ func_ltwrapper_exec_suffix=
+ case $1 in
+ *.exe) ;;
+ *) func_ltwrapper_exec_suffix=.exe ;;
+ esac
+ $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
+}
+
+# func_ltwrapper_scriptname file
+# Assumes file is an ltwrapper_executable
+# uses $file to determine the appropriate filename for a
+# temporary ltwrapper_script.
+func_ltwrapper_scriptname ()
+{
+ func_dirname_and_basename "$1" "" "."
+ func_stripname '' '.exe' "$func_basename_result"
+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
+}
+
+# func_ltwrapper_p file
+# True iff FILE is a libtool wrapper script or wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_p ()
+{
+ func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
+}
+
+
+# func_execute_cmds commands fail_cmd
+# Execute tilde-delimited COMMANDS.
+# If FAIL_CMD is given, eval that upon failure.
+# FAIL_CMD may read-access the current command in variable CMD!
+func_execute_cmds ()
+{
+ $opt_debug
+ save_ifs=$IFS; IFS='~'
+ for cmd in $1; do
+ IFS=$save_ifs
+ eval cmd=\"$cmd\"
+ func_show_eval "$cmd" "${2-:}"
+ done
+ IFS=$save_ifs
+}
+
+
+# func_source file
+# Source FILE, adding directory component if necessary.
+# Note that it is not necessary on cygwin/mingw to append a dot to
+# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
+# behavior happens only for exec(3), not for open(2)! Also, sourcing
+# `FILE.' does not work on cygwin managed mounts.
+func_source ()
+{
+ $opt_debug
+ case $1 in
+ */* | *\\*) . "$1" ;;
+ *) . "./$1" ;;
+ esac
+}
+
+
+# func_resolve_sysroot PATH
+# Replace a leading = in PATH with a sysroot. Store the result into
+# func_resolve_sysroot_result
+func_resolve_sysroot ()
+{
+ func_resolve_sysroot_result=$1
+ case $func_resolve_sysroot_result in
+ =*)
+ func_stripname '=' '' "$func_resolve_sysroot_result"
+ func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
+ ;;
+ esac
+}
+
+# func_replace_sysroot PATH
+# If PATH begins with the sysroot, replace it with = and
+# store the result into func_replace_sysroot_result.
+func_replace_sysroot ()
+{
+ case "$lt_sysroot:$1" in
+ ?*:"$lt_sysroot"*)
+ func_stripname "$lt_sysroot" '' "$1"
+ func_replace_sysroot_result="=$func_stripname_result"
+ ;;
+ *)
+ # Including no sysroot.
+ func_replace_sysroot_result=$1
+ ;;
+ esac
+}
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+ $opt_debug
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ func_append_quoted CC_quoted "$arg"
+ done
+ CC_expanded=`func_echo_all $CC`
+ CC_quoted_expanded=`func_echo_all $CC_quoted`
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
+ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ func_append_quoted CC_quoted "$arg"
+ done
+ CC_expanded=`func_echo_all $CC`
+ CC_quoted_expanded=`func_echo_all $CC_quoted`
+ case "$@ " in
+ " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
+ " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ func_echo "unable to infer tagged configuration"
+ func_fatal_error "specify a tag with \`--tag'"
+# else
+# func_verbose "using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+
+# func_write_libtool_object output_name pic_name nonpic_name
+# Create a libtool object file (analogous to a ".la" file),
+# but don't create it if we're doing a dry run.
+func_write_libtool_object ()
+{
+ write_libobj=${1}
+ if test "$build_libtool_libs" = yes; then
+ write_lobj=\'${2}\'
+ else
+ write_lobj=none
+ fi
+
+ if test "$build_old_libs" = yes; then
+ write_oldobj=\'${3}\'
+ else
+ write_oldobj=none
+ fi
+
+ $opt_dry_run || {
+ cat >${write_libobj}T <<EOF
+# $write_libobj - a libtool object file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object=$write_lobj
+
+# Name of the non-PIC object
+non_pic_object=$write_oldobj
+
+EOF
+ $MV "${write_libobj}T" "${write_libobj}"
+ }
+}
+
+
+##################################################
+# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
+##################################################
+
+# func_convert_core_file_wine_to_w32 ARG
+# Helper function used by file name conversion functions when $build is *nix,
+# and $host is mingw, cygwin, or some other w32 environment. Relies on a
+# correctly configured wine environment available, with the winepath program
+# in $build's $PATH.
+#
+# ARG is the $build file name to be converted to w32 format.
+# Result is available in $func_convert_core_file_wine_to_w32_result, and will
+# be empty on error (or when ARG is empty)
+func_convert_core_file_wine_to_w32 ()
+{
+ $opt_debug
+ func_convert_core_file_wine_to_w32_result="$1"
+ if test -n "$1"; then
+ # Unfortunately, winepath does not exit with a non-zero error code, so we
+ # are forced to check the contents of stdout. On the other hand, if the
+ # command is not found, the shell will set an exit code of 127 and print
+ # *an error message* to stdout. So we must check for both error code of
+ # zero AND non-empty stdout, which explains the odd construction:
+ func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
+ if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
+ func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
+ $SED -e "$lt_sed_naive_backslashify"`
+ else
+ func_convert_core_file_wine_to_w32_result=
+ fi
+ fi
+}
+# end: func_convert_core_file_wine_to_w32
+
+
+# func_convert_core_path_wine_to_w32 ARG
+# Helper function used by path conversion functions when $build is *nix, and
+# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
+# configured wine environment available, with the winepath program in $build's
+# $PATH. Assumes ARG has no leading or trailing path separator characters.
+#
+# ARG is path to be converted from $build format to win32.
+# Result is available in $func_convert_core_path_wine_to_w32_result.
+# Unconvertible file (directory) names in ARG are skipped; if no directory names
+# are convertible, then the result may be empty.
+func_convert_core_path_wine_to_w32 ()
+{
+ $opt_debug
+ # unfortunately, winepath doesn't convert paths, only file names
+ func_convert_core_path_wine_to_w32_result=""
+ if test -n "$1"; then
+ oldIFS=$IFS
+ IFS=:
+ for func_convert_core_path_wine_to_w32_f in $1; do
+ IFS=$oldIFS
+ func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
+ if test -n "$func_convert_core_file_wine_to_w32_result" ; then
+ if test -z "$func_convert_core_path_wine_to_w32_result"; then
+ func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
+ else
+ func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
+ fi
+ fi
+ done
+ IFS=$oldIFS
+ fi
+}
+# end: func_convert_core_path_wine_to_w32
+
+
+# func_cygpath ARGS...
+# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
+# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
+# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
+# (2), returns the Cygwin file name or path in func_cygpath_result (input
+# file name or path is assumed to be in w32 format, as previously converted
+# from $build's *nix or MSYS format). In case (3), returns the w32 file name
+# or path in func_cygpath_result (input file name or path is assumed to be in
+# Cygwin format). Returns an empty string on error.
+#
+# ARGS are passed to cygpath, with the last one being the file name or path to
+# be converted.
+#
+# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
+# environment variable; do not put it in $PATH.
+func_cygpath ()
+{
+ $opt_debug
+ if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
+ func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
+ if test "$?" -ne 0; then
+ # on failure, ensure result is empty
+ func_cygpath_result=
+ fi
+ else
+ func_cygpath_result=
+ func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
+ fi
+}
+#end: func_cygpath
+
+
+# func_convert_core_msys_to_w32 ARG
+# Convert file name or path ARG from MSYS format to w32 format. Return
+# result in func_convert_core_msys_to_w32_result.
+func_convert_core_msys_to_w32 ()
+{
+ $opt_debug
+ # awkward: cmd appends spaces to result
+ func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
+ $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
+}
+#end: func_convert_core_msys_to_w32
+
+
+# func_convert_file_check ARG1 ARG2
+# Verify that ARG1 (a file name in $build format) was converted to $host
+# format in ARG2. Otherwise, emit an error message, but continue (resetting
+# func_to_host_file_result to ARG1).
+func_convert_file_check ()
+{
+ $opt_debug
+ if test -z "$2" && test -n "$1" ; then
+ func_error "Could not determine host file name corresponding to"
+ func_error " \`$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback:
+ func_to_host_file_result="$1"
+ fi
+}
+# end func_convert_file_check
+
+
+# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
+# Verify that FROM_PATH (a path in $build format) was converted to $host
+# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
+# func_to_host_file_result to a simplistic fallback value (see below).
+func_convert_path_check ()
+{
+ $opt_debug
+ if test -z "$4" && test -n "$3"; then
+ func_error "Could not determine the host path corresponding to"
+ func_error " \`$3'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback. This is a deliberately simplistic "conversion" and
+ # should not be "improved". See libtool.info.
+ if test "x$1" != "x$2"; then
+ lt_replace_pathsep_chars="s|$1|$2|g"
+ func_to_host_path_result=`echo "$3" |
+ $SED -e "$lt_replace_pathsep_chars"`
+ else
+ func_to_host_path_result="$3"
+ fi
+ fi
+}
+# end func_convert_path_check
+
+
+# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
+# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
+# and appending REPL if ORIG matches BACKPAT.
+func_convert_path_front_back_pathsep ()
+{
+ $opt_debug
+ case $4 in
+ $1 ) func_to_host_path_result="$3$func_to_host_path_result"
+ ;;
+ esac
+ case $4 in
+ $2 ) func_append func_to_host_path_result "$3"
+ ;;
+ esac
+}
+# end func_convert_path_front_back_pathsep
+
+
+##################################################
+# $build to $host FILE NAME CONVERSION FUNCTIONS #
+##################################################
+# invoked via `$to_host_file_cmd ARG'
+#
+# In each case, ARG is the path to be converted from $build to $host format.
+# Result will be available in $func_to_host_file_result.
+
+
+# func_to_host_file ARG
+# Converts the file name ARG from $build format to $host format. Return result
+# in func_to_host_file_result.
+func_to_host_file ()
+{
+ $opt_debug
+ $to_host_file_cmd "$1"
+}
+# end func_to_host_file
+
+
+# func_to_tool_file ARG LAZY
+# converts the file name ARG from $build format to toolchain format. Return
+# result in func_to_tool_file_result. If the conversion in use is listed
+# in (the comma separated) LAZY, no conversion takes place.
+func_to_tool_file ()
+{
+ $opt_debug
+ case ,$2, in
+ *,"$to_tool_file_cmd",*)
+ func_to_tool_file_result=$1
+ ;;
+ *)
+ $to_tool_file_cmd "$1"
+ func_to_tool_file_result=$func_to_host_file_result
+ ;;
+ esac
+}
+# end func_to_tool_file
+
+
+# func_convert_file_noop ARG
+# Copy ARG to func_to_host_file_result.
+func_convert_file_noop ()
+{
+ func_to_host_file_result="$1"
+}
+# end func_convert_file_noop
+
+
+# func_convert_file_msys_to_w32 ARG
+# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
+# conversion to w32 is not available inside the cwrapper. Returns result in
+# func_to_host_file_result.
+func_convert_file_msys_to_w32 ()
+{
+ $opt_debug
+ func_to_host_file_result="$1"
+ if test -n "$1"; then
+ func_convert_core_msys_to_w32 "$1"
+ func_to_host_file_result="$func_convert_core_msys_to_w32_result"
+ fi
+ func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_msys_to_w32
+
+
+# func_convert_file_cygwin_to_w32 ARG
+# Convert file name ARG from Cygwin to w32 format. Returns result in
+# func_to_host_file_result.
+func_convert_file_cygwin_to_w32 ()
+{
+ $opt_debug
+ func_to_host_file_result="$1"
+ if test -n "$1"; then
+ # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
+ # LT_CYGPATH in this case.
+ func_to_host_file_result=`cygpath -m "$1"`
+ fi
+ func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_cygwin_to_w32
+
+
+# func_convert_file_nix_to_w32 ARG
+# Convert file name ARG from *nix to w32 format. Requires a wine environment
+# and a working winepath. Returns result in func_to_host_file_result.
+func_convert_file_nix_to_w32 ()
+{
+ $opt_debug
+ func_to_host_file_result="$1"
+ if test -n "$1"; then
+ func_convert_core_file_wine_to_w32 "$1"
+ func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
+ fi
+ func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_nix_to_w32
+
+
+# func_convert_file_msys_to_cygwin ARG
+# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
+# Returns result in func_to_host_file_result.
+func_convert_file_msys_to_cygwin ()
+{
+ $opt_debug
+ func_to_host_file_result="$1"
+ if test -n "$1"; then
+ func_convert_core_msys_to_w32 "$1"
+ func_cygpath -u "$func_convert_core_msys_to_w32_result"
+ func_to_host_file_result="$func_cygpath_result"
+ fi
+ func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_msys_to_cygwin
+
+
+# func_convert_file_nix_to_cygwin ARG
+# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
+# in a wine environment, working winepath, and LT_CYGPATH set. Returns result
+# in func_to_host_file_result.
+func_convert_file_nix_to_cygwin ()
+{
+ $opt_debug
+ func_to_host_file_result="$1"
+ if test -n "$1"; then
+ # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
+ func_convert_core_file_wine_to_w32 "$1"
+ func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
+ func_to_host_file_result="$func_cygpath_result"
+ fi
+ func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_nix_to_cygwin
+
+
+#############################################
+# $build to $host PATH CONVERSION FUNCTIONS #
+#############################################
+# invoked via `$to_host_path_cmd ARG'
+#
+# In each case, ARG is the path to be converted from $build to $host format.
+# The result will be available in $func_to_host_path_result.
+#
+# Path separators are also converted from $build format to $host format. If
+# ARG begins or ends with a path separator character, it is preserved (but
+# converted to $host format) on output.
+#
+# All path conversion functions are named using the following convention:
+# file name conversion function : func_convert_file_X_to_Y ()
+# path conversion function : func_convert_path_X_to_Y ()
+# where, for any given $build/$host combination the 'X_to_Y' value is the
+# same. If conversion functions are added for new $build/$host combinations,
+# the two new functions must follow this pattern, or func_init_to_host_path_cmd
+# will break.
+
+
+# func_init_to_host_path_cmd
+# Ensures that function "pointer" variable $to_host_path_cmd is set to the
+# appropriate value, based on the value of $to_host_file_cmd.
+to_host_path_cmd=
+func_init_to_host_path_cmd ()
+{
+ $opt_debug
+ if test -z "$to_host_path_cmd"; then
+ func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
+ to_host_path_cmd="func_convert_path_${func_stripname_result}"
+ fi
+}
+
+
+# func_to_host_path ARG
+# Converts the path ARG from $build format to $host format. Return result
+# in func_to_host_path_result.
+func_to_host_path ()
+{
+ $opt_debug
+ func_init_to_host_path_cmd
+ $to_host_path_cmd "$1"
+}
+# end func_to_host_path
+
+
+# func_convert_path_noop ARG
+# Copy ARG to func_to_host_path_result.
+func_convert_path_noop ()
+{
+ func_to_host_path_result="$1"
+}
+# end func_convert_path_noop
+
+
+# func_convert_path_msys_to_w32 ARG
+# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
+# conversion to w32 is not available inside the cwrapper. Returns result in
+# func_to_host_path_result.
+func_convert_path_msys_to_w32 ()
+{
+ $opt_debug
+ func_to_host_path_result="$1"
+ if test -n "$1"; then
+ # Remove leading and trailing path separator characters from ARG. MSYS
+ # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
+ # and winepath ignores them completely.
+ func_stripname : : "$1"
+ func_to_host_path_tmp1=$func_stripname_result
+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
+ func_to_host_path_result="$func_convert_core_msys_to_w32_result"
+ func_convert_path_check : ";" \
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
+ fi
+}
+# end func_convert_path_msys_to_w32
+
+
+# func_convert_path_cygwin_to_w32 ARG
+# Convert path ARG from Cygwin to w32 format. Returns result in
+# func_to_host_file_result.
+func_convert_path_cygwin_to_w32 ()
+{
+ $opt_debug
+ func_to_host_path_result="$1"
+ if test -n "$1"; then
+ # See func_convert_path_msys_to_w32:
+ func_stripname : : "$1"
+ func_to_host_path_tmp1=$func_stripname_result
+ func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
+ func_convert_path_check : ";" \
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
+ fi
+}
+# end func_convert_path_cygwin_to_w32
+
+
+# func_convert_path_nix_to_w32 ARG
+# Convert path ARG from *nix to w32 format. Requires a wine environment and
+# a working winepath. Returns result in func_to_host_file_result.
+func_convert_path_nix_to_w32 ()
+{
+ $opt_debug
+ func_to_host_path_result="$1"
+ if test -n "$1"; then
+ # See func_convert_path_msys_to_w32:
+ func_stripname : : "$1"
+ func_to_host_path_tmp1=$func_stripname_result
+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
+ func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
+ func_convert_path_check : ";" \
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
+ func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
+ fi
+}
+# end func_convert_path_nix_to_w32
+
+
+# func_convert_path_msys_to_cygwin ARG
+# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
+# Returns result in func_to_host_file_result.
+func_convert_path_msys_to_cygwin ()
+{
+ $opt_debug
+ func_to_host_path_result="$1"
+ if test -n "$1"; then
+ # See func_convert_path_msys_to_w32:
+ func_stripname : : "$1"
+ func_to_host_path_tmp1=$func_stripname_result
+ func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
+ func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
+ func_to_host_path_result="$func_cygpath_result"
+ func_convert_path_check : : \
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
+ fi
+}
+# end func_convert_path_msys_to_cygwin
+
+
+# func_convert_path_nix_to_cygwin ARG
+# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
+# a wine environment, working winepath, and LT_CYGPATH set. Returns result in
+# func_to_host_file_result.
+func_convert_path_nix_to_cygwin ()
+{
+ $opt_debug
+ func_to_host_path_result="$1"
+ if test -n "$1"; then
+ # Remove leading and trailing path separator characters from
+ # ARG. msys behavior is inconsistent here, cygpath turns them
+ # into '.;' and ';.', and winepath ignores them completely.
+ func_stripname : : "$1"
+ func_to_host_path_tmp1=$func_stripname_result
+ func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
+ func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
+ func_to_host_path_result="$func_cygpath_result"
+ func_convert_path_check : : \
+ "$func_to_host_path_tmp1" "$func_to_host_path_result"
+ func_convert_path_front_back_pathsep ":*" "*:" : "$1"
+ fi
+}
+# end func_convert_path_nix_to_cygwin
+
+
+# func_mode_compile arg...
+func_mode_compile ()
+{
+ $opt_debug
+ # Get the compilation command and the source file.
+ base_compile=
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
+ suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
+ pie_flag=
+
+ for arg
+ do
+ case $arg_mode in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
+
+ target )
+ libobj="$arg"
+ arg_mode=normal
+ continue
+ ;;
+
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ test -n "$libobj" && \
+ func_fatal_error "you cannot specify \`-o' more than once"
+ arg_mode=target
+ continue
+ ;;
+
+ -pie | -fpie | -fPIE)
+ func_append pie_flag " $arg"
+ continue
+ ;;
+
+ -shared | -static | -prefer-pic | -prefer-non-pic)
+ func_append later " $arg"
+ continue
+ ;;
+
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
+
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
+ func_append_quoted lastarg "$arg"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$lastarg"
+ lastarg=$func_stripname_result
+
+ # Add the arguments to base_compile.
+ func_append base_compile " $lastarg"
+ continue
+ ;;
+
+ *)
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
+ ;;
+ esac # case $arg_mode
+
+ # Aesthetically quote the previous argument.
+ func_append_quoted base_compile "$lastarg"
+ done # for arg
+
+ case $arg_mode in
+ arg)
+ func_fatal_error "you must specify an argument for -Xcompile"
+ ;;
+ target)
+ func_fatal_error "you must specify a target with \`-o'"
+ ;;
+ *)
+ # Get the name of the library object.
+ test -z "$libobj" && {
+ func_basename "$srcfile"
+ libobj="$func_basename_result"
+ }
+ ;;
+ esac
+
+ # Recognize several different file suffixes.
+ # If the user specifies -o file.o, it is replaced with file.lo
+ case $libobj in
+ *.[cCFSifmso] | \
+ *.ada | *.adb | *.ads | *.asm | \
+ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
+ *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
+ func_xform "$libobj"
+ libobj=$func_xform_result
+ ;;
+ esac
+
+ case $libobj in
+ *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
+ *)
+ func_fatal_error "cannot determine name of library object from \`$libobj'"
+ ;;
+ esac
+
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ continue
+ ;;
+
+ -static)
+ build_libtool_libs=no
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ func_quote_for_eval "$libobj"
+ test "X$libobj" != "X$func_quote_for_eval_result" \
+ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
+ && func_warning "libobj name \`$libobj' may not contain shell special characters."
+ func_dirname_and_basename "$obj" "/" ""
+ objname="$func_basename_result"
+ xdir="$func_dirname_result"
+ lobj=${xdir}$objdir/$objname
+
+ test -z "$base_compile" && \
+ func_fatal_help "you must specify a compilation command"
+
+ # Delete any leftover library objects.
+ if test "$build_old_libs" = yes; then
+ removelist="$obj $lobj $libobj ${libobj}T"
+ else
+ removelist="$lobj $libobj ${libobj}T"
+ fi
+
+ # On Cygwin there's no "real" PIC flag so we must build both object types
+ case $host_os in
+ cygwin* | mingw* | pw32* | os2* | cegcc*)
+ pic_mode=default
+ ;;
+ esac
+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+ # non-PIC code in shared libraries is not supported
+ pic_mode=default
+ fi
+
+ # Calculate the filename of the output object if compiler does
+ # not support -o with -c
+ if test "$compiler_c_o" = no; then
+ output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
+ lockfile="$output_obj.lock"
+ else
+ output_obj=
+ need_locks=no
+ lockfile=
+ fi
+
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+ until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+ func_echo "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ elif test "$need_locks" = warn; then
+ if test -f "$lockfile"; then
+ $ECHO "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+ func_append removelist " $output_obj"
+ $ECHO "$srcfile" > "$lockfile"
+ fi
+
+ $opt_dry_run || $RM $removelist
+ func_append removelist " $lockfile"
+ trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
+
+ func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
+ srcfile=$func_to_tool_file_result
+ func_quote_for_eval "$srcfile"
+ qsrcfile=$func_quote_for_eval_result
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ func_mkdir_p "$xdir$objdir"
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ func_append command " -o $lobj"
+ fi
+
+ func_show_eval_locale "$command" \
+ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed, then go on to compile the next one
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ func_show_eval '$MV "$output_obj" "$lobj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile$pie_flag"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ func_append command " -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ func_append command "$suppress_output"
+ func_show_eval_locale "$command" \
+ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+ func_show_eval '$MV "$output_obj" "$obj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+ fi
+
+ $opt_dry_run || {
+ func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ removelist=$lockfile
+ $RM "$lockfile"
+ fi
+ }
+
+ exit $EXIT_SUCCESS
+}
+
+$opt_help || {
+ test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
+}
+
+func_mode_help ()
+{
+ # We need to display help for each of the modes.
+ case $opt_mode in
+ "")
+ # Generic help is extracted from the usage comments
+ # at the start of this file.
+ func_help
+ ;;
+
+ clean)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ compile)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
+ -no-suppress do not suppress compiler output for multiple passes
+ -prefer-pic try to build PIC objects only
+ -prefer-non-pic try to build non-PIC objects only
+ -shared do not build a \`.o' file suitable for static linking
+ -static only build a \`.o' file suitable for static linking
+ -Wc,FLAG pass FLAG directly to the compiler
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+ ;;
+
+ execute)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+ -dlopen FILE add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+ ;;
+
+ finish)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges. Use
+the \`--dry-run' option if you just want to see what would be executed."
+ ;;
+
+ install)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command. The first component should be
+either the \`install' or \`cp' program.
+
+The following components of INSTALL-COMMAND are treated specially:
+
+ -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+ ;;
+
+ link)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+ -all-static do not do any dynamic linking at all
+ -avoid-version do not add a version suffix if possible
+ -bindir BINDIR specify path to binaries directory (for systems where
+ libraries must be found in the PATH setting at runtime)
+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+ -export-symbols SYMFILE
+ try to export only the symbols listed in SYMFILE
+ -export-symbols-regex REGEX
+ try to export only the symbols matching REGEX
+ -LLIBDIR search LIBDIR for required installed libraries
+ -lNAME OUTPUT-FILE requires the installed library libNAME
+ -module build a library that can dlopened
+ -no-fast-install disable the fast-install mode
+ -no-install link a not-installable executable
+ -no-undefined declare that a library does not refer to external symbols
+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
+ -release RELEASE specify package release information
+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -shared only do dynamic linking of libtool libraries
+ -shrext SUFFIX override the standard shared library file extension
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+ -version-info CURRENT[:REVISION[:AGE]]
+ specify library version info [each variable defaults to 0]
+ -weak LIBNAME declare that the target provides the LIBNAME interface
+ -Wc,FLAG
+ -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
+ -Wl,FLAG
+ -Xlinker FLAG pass linker-specific FLAG directly to the linker
+ -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename. Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+ ;;
+
+ uninstall)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ *)
+ func_fatal_help "invalid operation mode \`$opt_mode'"
+ ;;
+ esac
+
+ echo
+ $ECHO "Try \`$progname --help' for more information about other modes."
+}
+
+# Now that we've collected a possible --mode arg, show help if necessary
+if $opt_help; then
+ if test "$opt_help" = :; then
+ func_mode_help
+ else
+ {
+ func_help noexit
+ for opt_mode in compile link execute install finish uninstall clean; do
+ func_mode_help
+ done
+ } | sed -n '1p; 2,$s/^Usage:/ or: /p'
+ {
+ func_help noexit
+ for opt_mode in compile link execute install finish uninstall clean; do
+ echo
+ func_mode_help
+ done
+ } |
+ sed '1d
+ /^When reporting/,/^Report/{
+ H
+ d
+ }
+ $x
+ /information about other modes/d
+ /more detailed .*MODE/d
+ s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
+ fi
+ exit $?
+fi
+
+
+# func_mode_execute arg...
+func_mode_execute ()
+{
+ $opt_debug
+ # The first argument is the command name.
+ cmd="$nonopt"
+ test -z "$cmd" && \
+ func_fatal_help "you must specify a COMMAND"
+
+ # Handle -dlopen flags immediately.
+ for file in $opt_dlopen; do
+ test -f "$file" \
+ || func_fatal_help "\`$file' is not a file"
+
+ dir=
+ case $file in
+ *.la)
+ func_resolve_sysroot "$file"
+ file=$func_resolve_sysroot_result
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$lib' is not a valid libtool archive"
+
+ # Read the libtool library.
+ dlname=
+ library_names=
+ func_source "$file"
+
+ # Skip this library if it cannot be dlopened.
+ if test -z "$dlname"; then
+ # Warn if it was a shared library.
+ test -n "$library_names" && \
+ func_warning "\`$file' was not linked with \`-export-dynamic'"
+ continue
+ fi
+
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+
+ if test -f "$dir/$objdir/$dlname"; then
+ func_append dir "/$objdir"
+ else
+ if test ! -f "$dir/$dlname"; then
+ func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
+ fi
+ fi
+ ;;
+
+ *.lo)
+ # Just add the directory containing the .lo file.
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ ;;
+
+ *)
+ func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
+ continue
+ ;;
+ esac
+
+ # Get the absolute pathname.
+ absdir=`cd "$dir" && pwd`
+ test -n "$absdir" && dir="$absdir"
+
+ # Now add the directory to shlibpath_var.
+ if eval "test -z \"\$$shlibpath_var\""; then
+ eval "$shlibpath_var=\"\$dir\""
+ else
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+ fi
+ done
+
+ # This variable tells wrapper scripts just to set shlibpath_var
+ # rather than running their programs.
+ libtool_execute_magic="$magic"
+
+ # Check if any of the arguments is a wrapper script.
+ args=
+ for file
+ do
+ case $file in
+ -* | *.la | *.lo ) ;;
+ *)
+ # Do a test to see if this is really a libtool program.
+ if func_ltwrapper_script_p "$file"; then
+ func_source "$file"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ elif func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ func_source "$func_ltwrapper_scriptname_result"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ fi
+ ;;
+ esac
+ # Quote arguments (to preserve shell metacharacters).
+ func_append_quoted args "$file"
+ done
+
+ if test "X$opt_dry_run" = Xfalse; then
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
+
+ # Restore saved environment variables
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ else
+ $lt_unset $lt_var
+ fi"
+ done
+
+ # Now prepare to actually exec the command.
+ exec_cmd="\$cmd$args"
+ else
+ # Display what would be done.
+ if test -n "$shlibpath_var"; then
+ eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
+ echo "export $shlibpath_var"
+ fi
+ $ECHO "$cmd$args"
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
+
+
+# func_mode_finish arg...
+func_mode_finish ()
+{
+ $opt_debug
+ libs=
+ libdirs=
+ admincmds=
+
+ for opt in "$nonopt" ${1+"$@"}
+ do
+ if test -d "$opt"; then
+ func_append libdirs " $opt"
+
+ elif test -f "$opt"; then
+ if func_lalib_unsafe_p "$opt"; then
+ func_append libs " $opt"
+ else
+ func_warning "\`$opt' is not a valid libtool archive"
+ fi
+
+ else
+ func_fatal_error "invalid argument \`$opt'"
+ fi
+ done
+
+ if test -n "$libs"; then
+ if test -n "$lt_sysroot"; then
+ sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
+ sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
+ else
+ sysroot_cmd=
+ fi
+
+ # Remove sysroot references
+ if $opt_dry_run; then
+ for lib in $libs; do
+ echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
+ done
+ else
+ tmpdir=`func_mktempdir`
+ for lib in $libs; do
+ sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
+ > $tmpdir/tmp-la
+ mv -f $tmpdir/tmp-la $lib
+ done
+ ${RM}r "$tmpdir"
+ fi
+ fi
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ for libdir in $libdirs; do
+ if test -n "$finish_cmds"; then
+ # Do each command in the finish commands.
+ func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
+'"$cmd"'"'
+ fi
+ if test -n "$finish_eval"; then
+ # Do the single finish_eval.
+ eval cmds=\"$finish_eval\"
+ $opt_dry_run || eval "$cmds" || func_append admincmds "
+ $cmds"
+ fi
+ done
+ fi
+
+ # Exit here if they wanted silent mode.
+ $opt_silent && exit $EXIT_SUCCESS
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ echo "----------------------------------------------------------------------"
+ echo "Libraries have been installed in:"
+ for libdir in $libdirs; do
+ $ECHO " $libdir"
+ done
+ echo
+ echo "If you ever happen to want to link against installed libraries"
+ echo "in a given directory, LIBDIR, you must either use libtool, and"
+ echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ echo "flag during linking and do at least one of the following:"
+ if test -n "$shlibpath_var"; then
+ echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ echo " during execution"
+ fi
+ if test -n "$runpath_var"; then
+ echo " - add LIBDIR to the \`$runpath_var' environment variable"
+ echo " during linking"
+ fi
+ if test -n "$hardcode_libdir_flag_spec"; then
+ libdir=LIBDIR
+ eval flag=\"$hardcode_libdir_flag_spec\"
+
+ $ECHO " - use the \`$flag' linker flag"
+ fi
+ if test -n "$admincmds"; then
+ $ECHO " - have your system administrator run these commands:$admincmds"
+ fi
+ if test -f /etc/ld.so.conf; then
+ echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ fi
+ echo
+
+ echo "See any operating system documentation about shared libraries for"
+ case $host in
+ solaris2.[6789]|solaris2.1[0-9])
+ echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
+ echo "pages."
+ ;;
+ *)
+ echo "more information, such as the ld(1) and ld.so(8) manual pages."
+ ;;
+ esac
+ echo "----------------------------------------------------------------------"
+ fi
+ exit $EXIT_SUCCESS
+}
+
+test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
+
+
+# func_mode_install arg...
+func_mode_install ()
+{
+ $opt_debug
+ # There may be an optional sh(1) argument at the beginning of
+ # install_prog (especially on Windows NT).
+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+ # Allow the use of GNU shtool's install command.
+ case $nonopt in *shtool*) :;; *) false;; esac; then
+ # Aesthetically quote it.
+ func_quote_for_eval "$nonopt"
+ install_prog="$func_quote_for_eval_result "
+ arg=$1
+ shift
+ else
+ install_prog=
+ arg=$nonopt
+ fi
+
+ # The real first argument should be the name of the installation program.
+ # Aesthetically quote it.
+ func_quote_for_eval "$arg"
+ func_append install_prog "$func_quote_for_eval_result"
+ install_shared_prog=$install_prog
+ case " $install_prog " in
+ *[\\\ /]cp\ *) install_cp=: ;;
+ *) install_cp=false ;;
+ esac
+
+ # We need to accept at least all the BSD install flags.
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ no_mode=:
+ for arg
+ do
+ arg2=
+ if test -n "$dest"; then
+ func_append files " $dest"
+ dest=$arg
+ continue
+ fi
+
+ case $arg in
+ -d) isdir=yes ;;
+ -f)
+ if $install_cp; then :; else
+ prev=$arg
+ fi
+ ;;
+ -g | -m | -o)
+ prev=$arg
+ ;;
+ -s)
+ stripme=" -s"
+ continue
+ ;;
+ -*)
+ ;;
+ *)
+ # If the previous option needed an argument, then skip it.
+ if test -n "$prev"; then
+ if test "x$prev" = x-m && test -n "$install_override_mode"; then
+ arg2=$install_override_mode
+ no_mode=false
+ fi
+ prev=
+ else
+ dest=$arg
+ continue
+ fi
+ ;;
+ esac
+
+ # Aesthetically quote the argument.
+ func_quote_for_eval "$arg"
+ func_append install_prog " $func_quote_for_eval_result"
+ if test -n "$arg2"; then
+ func_quote_for_eval "$arg2"
+ fi
+ func_append install_shared_prog " $func_quote_for_eval_result"
+ done
+
+ test -z "$install_prog" && \
+ func_fatal_help "you must specify an install program"
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prev' option requires an argument"
+
+ if test -n "$install_override_mode" && $no_mode; then
+ if $install_cp; then :; else
+ func_quote_for_eval "$install_override_mode"
+ func_append install_shared_prog " -m $func_quote_for_eval_result"
+ fi
+ fi
+
+ if test -z "$files"; then
+ if test -z "$dest"; then
+ func_fatal_help "no file or destination specified"
+ else
+ func_fatal_help "you must specify a destination"
+ fi
+ fi
+
+ # Strip any trailing slash from the destination.
+ func_stripname '' '/' "$dest"
+ dest=$func_stripname_result
+
+ # Check to see that the destination is a directory.
+ test -d "$dest" && isdir=yes
+ if test "$isdir" = yes; then
+ destdir="$dest"
+ destname=
+ else
+ func_dirname_and_basename "$dest" "" "."
+ destdir="$func_dirname_result"
+ destname="$func_basename_result"
+
+ # Not a directory, so check to see that there is only one file specified.
+ set dummy $files; shift
+ test "$#" -gt 1 && \
+ func_fatal_help "\`$dest' is not a directory"
+ fi
+ case $destdir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ for file in $files; do
+ case $file in
+ *.lo) ;;
+ *)
+ func_fatal_help "\`$destdir' must be an absolute directory name"
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in $files; do
+
+ # Do each installation.
+ case $file in
+ *.$libext)
+ # Do the static libraries later.
+ func_append staticlibs " $file"
+ ;;
+
+ *.la)
+ func_resolve_sysroot "$file"
+ file=$func_resolve_sysroot_result
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$file' is not a valid libtool archive"
+
+ library_names=
+ old_library=
+ relink_command=
+ func_source "$file"
+
+ # Add the libdir to current_libdirs if it is the destination.
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) func_append current_libdirs " $libdir" ;;
+ esac
+ else
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+ *) func_append future_libdirs " $libdir" ;;
+ esac
+ fi
+
+ func_dirname "$file" "/" ""
+ dir="$func_dirname_result"
+ func_append dir "$objdir"
+
+ if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ test "$inst_prefix_dir" = "$destdir" && \
+ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+ else
+ relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
+ fi
+
+ func_warning "relinking \`$file'"
+ func_show_eval "$relink_command" \
+ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
+ fi
+
+ # See the names of the shared library.
+ set dummy $library_names; shift
+ if test -n "$1"; then
+ realname="$1"
+ shift
+
+ srcname="$realname"
+ test -n "$relink_command" && srcname="$realname"T
+
+ # Install the shared library and build the symlinks.
+ func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
+ 'exit $?'
+ tstripme="$stripme"
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $realname in
+ *.dll.a)
+ tstripme=""
+ ;;
+ esac
+ ;;
+ esac
+ if test -n "$tstripme" && test -n "$striplib"; then
+ func_show_eval "$striplib $destdir/$realname" 'exit $?'
+ fi
+
+ if test "$#" -gt 0; then
+ # Delete the old symlinks, and create new ones.
+ # Try `ln -sf' first, because the `ln' binary might depend on
+ # the symlink we replace! Solaris /bin/ln does not understand -f,
+ # so we also need to try rm && ln -s.
+ for linkname
+ do
+ test "$linkname" != "$realname" \
+ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ done
+ fi
+
+ # Do each command in the postinstall commands.
+ lib="$destdir/$realname"
+ func_execute_cmds "$postinstall_cmds" 'exit $?'
+ fi
+
+ # Install the pseudo-library for information purposes.
+ func_basename "$file"
+ name="$func_basename_result"
+ instname="$dir/$name"i
+ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && func_append staticlibs " $dir/$old_library"
+ ;;
+
+ *.lo)
+ # Install (i.e. copy) a libtool object.
+
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # Deduce the name of the destination old-style object file.
+ case $destfile in
+ *.lo)
+ func_lo2o "$destfile"
+ staticdest=$func_lo2o_result
+ ;;
+ *.$objext)
+ staticdest="$destfile"
+ destfile=
+ ;;
+ *)
+ func_fatal_help "cannot copy a libtool object to \`$destfile'"
+ ;;
+ esac
+
+ # Install the libtool object if requested.
+ test -n "$destfile" && \
+ func_show_eval "$install_prog $file $destfile" 'exit $?'
+
+ # Install the old object if enabled.
+ if test "$build_old_libs" = yes; then
+ # Deduce the name of the old-style object file.
+ func_lo2o "$file"
+ staticobj=$func_lo2o_result
+ func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+
+ *)
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
+ # Do a test to see if this is really a libtool program.
+ case $host in
+ *cygwin* | *mingw*)
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ wrapper=$func_ltwrapper_scriptname_result
+ else
+ func_stripname '' '.exe' "$file"
+ wrapper=$func_stripname_result
+ fi
+ ;;
+ *)
+ wrapper=$file
+ ;;
+ esac
+ if func_ltwrapper_script_p "$wrapper"; then
+ notinst_deplibs=
+ relink_command=
+
+ func_source "$wrapper"
+
+ # Check the variables that should have been set.
+ test -z "$generated_by_libtool_version" && \
+ func_fatal_error "invalid libtool wrapper script \`$wrapper'"
+
+ finalize=yes
+ for lib in $notinst_deplibs; do
+ # Check to see that each library is installed.
+ libdir=
+ if test -f "$lib"; then
+ func_source "$lib"
+ fi
+ libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
+ if test -n "$libdir" && test ! -f "$libfile"; then
+ func_warning "\`$lib' has not been installed in \`$libdir'"
+ finalize=no
+ fi
+ done
+
+ relink_command=
+ func_source "$wrapper"
+
+ outputname=
+ if test "$fast_install" = no && test -n "$relink_command"; then
+ $opt_dry_run || {
+ if test "$finalize" = yes; then
+ tmpdir=`func_mktempdir`
+ func_basename "$file$stripped_ext"
+ file="$func_basename_result"
+ outputname="$tmpdir/$file"
+ # Replace the output file specification.
+ relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
+
+ $opt_silent || {
+ func_quote_for_expand "$relink_command"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ if eval "$relink_command"; then :
+ else
+ func_error "error: relink \`$file' with the above command before installing it"
+ $opt_dry_run || ${RM}r "$tmpdir"
+ continue
+ fi
+ file="$outputname"
+ else
+ func_warning "cannot relink \`$file'"
+ fi
+ }
+ else
+ # Install the binary that we compiled earlier.
+ file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
+ fi
+ fi
+
+ # remove .exe since cygwin /usr/bin/install will append another
+ # one anyway
+ case $install_prog,$host in
+ */usr/bin/install*,*cygwin*)
+ case $file:$destfile in
+ *.exe:*.exe)
+ # this is ok
+ ;;
+ *.exe:*)
+ destfile=$destfile.exe
+ ;;
+ *:*.exe)
+ func_stripname '' '.exe' "$destfile"
+ destfile=$func_stripname_result
+ ;;
+ esac
+ ;;
+ esac
+ func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
+ $opt_dry_run || if test -n "$outputname"; then
+ ${RM}r "$tmpdir"
+ fi
+ ;;
+ esac
+ done
+
+ for file in $staticlibs; do
+ func_basename "$file"
+ name="$func_basename_result"
+
+ # Set up the ranlib parameters.
+ oldlib="$destdir/$name"
+ func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
+ tool_oldlib=$func_to_tool_file_result
+
+ func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
+
+ if test -n "$stripme" && test -n "$old_striplib"; then
+ func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
+ fi
+
+ # Do each command in the postinstall commands.
+ func_execute_cmds "$old_postinstall_cmds" 'exit $?'
+ done
+
+ test -n "$future_libdirs" && \
+ func_warning "remember to run \`$progname --finish$future_libdirs'"
+
+ if test -n "$current_libdirs"; then
+ # Maybe just do a dry run.
+ $opt_dry_run && current_libdirs=" -n$current_libdirs"
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+ else
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$opt_mode" = install && func_mode_install ${1+"$@"}
+
+
+# func_generate_dlsyms outputname originator pic_p
+# Extract symbols from dlprefiles and create ${outputname}S.o with
+# a dlpreopen symbol table.
+func_generate_dlsyms ()
+{
+ $opt_debug
+ my_outputname="$1"
+ my_originator="$2"
+ my_pic_p="${3-no}"
+ my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
+ my_dlsyms=
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
+ my_dlsyms="${my_outputname}S.c"
+ else
+ func_error "not configured to extract global symbols from dlpreopened files"
+ fi
+ fi
+
+ if test -n "$my_dlsyms"; then
+ case $my_dlsyms in
+ "") ;;
+ *.c)
+ # Discover the nlist of each of the dlfiles.
+ nlist="$output_objdir/${my_outputname}.nm"
+
+ func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
+
+ # Parse the name list into a source file.
+ func_verbose "creating $output_objdir/$my_dlsyms"
+
+ $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
+/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
+/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
+#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
+#endif
+
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
+# define LT_DLSYM_CONST
+#elif defined(__osf__)
+/* This system does not cope well with relocations in const data. */
+# define LT_DLSYM_CONST
+#else
+# define LT_DLSYM_CONST const
+#endif
+
+/* External symbol declarations for the compiler. */\
+"
+
+ if test "$dlself" = yes; then
+ func_verbose "generating symbol list for \`$output'"
+
+ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
+
+ # Add our own program objects to the symbol list.
+ progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
+ for progfile in $progfiles; do
+ func_to_tool_file "$progfile" func_convert_file_msys_to_w32
+ func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
+ $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -n "$exclude_expsyms"; then
+ $opt_dry_run || {
+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ if test -n "$export_symbols_regex"; then
+ $opt_dry_run || {
+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ export_symbols="$output_objdir/$outputname.exp"
+ $opt_dry_run || {
+ $RM $export_symbols
+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ else
+ $opt_dry_run || {
+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ fi
+ fi
+
+ for dlprefile in $dlprefiles; do
+ func_verbose "extracting global C symbols from \`$dlprefile'"
+ func_basename "$dlprefile"
+ name="$func_basename_result"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ # if an import library, we need to obtain dlname
+ if func_win32_import_lib_p "$dlprefile"; then
+ func_tr_sh "$dlprefile"
+ eval "curr_lafile=\$libfile_$func_tr_sh_result"
+ dlprefile_dlbasename=""
+ if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
+ # Use subshell, to avoid clobbering current variable values
+ dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
+ if test -n "$dlprefile_dlname" ; then
+ func_basename "$dlprefile_dlname"
+ dlprefile_dlbasename="$func_basename_result"
+ else
+ # no lafile. user explicitly requested -dlpreopen <import library>.
+ $sharedlib_from_linklib_cmd "$dlprefile"
+ dlprefile_dlbasename=$sharedlib_from_linklib_result
+ fi
+ fi
+ $opt_dry_run || {
+ if test -n "$dlprefile_dlbasename" ; then
+ eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
+ else
+ func_warning "Could not compute DLL name from $name"
+ eval '$ECHO ": $name " >> "$nlist"'
+ fi
+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
+ $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
+ }
+ else # not an import lib
+ $opt_dry_run || {
+ eval '$ECHO ": $name " >> "$nlist"'
+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+ }
+ fi
+ ;;
+ *)
+ $opt_dry_run || {
+ eval '$ECHO ": $name " >> "$nlist"'
+ func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
+ eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+ }
+ ;;
+ esac
+ done
+
+ $opt_dry_run || {
+ # Make sure we have at least an empty file.
+ test -f "$nlist" || : > "$nlist"
+
+ if test -n "$exclude_expsyms"; then
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $MV "$nlist"T "$nlist"
+ fi
+
+ # Try sorting and uniquifying the output.
+ if $GREP -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
+ :
+ else
+ $GREP -v "^: " < "$nlist" > "$nlist"S
+ fi
+
+ if test -f "$nlist"S; then
+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
+ else
+ echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
+ fi
+
+ echo >> "$output_objdir/$my_dlsyms" "\
+
+/* The mapping between symbol names and symbols. */
+typedef struct {
+ const char *name;
+ void *address;
+} lt_dlsymlist;
+extern LT_DLSYM_CONST lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[];
+LT_DLSYM_CONST lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[] =
+{\
+ { \"$my_originator\", (void *) 0 },"
+
+ case $need_lib_prefix in
+ no)
+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ *)
+ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ esac
+ echo >> "$output_objdir/$my_dlsyms" "\
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt_${my_prefix}_LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+ } # !$opt_dry_run
+
+ pic_flag_for_symtable=
+ case "$compile_command " in
+ *" -static "*) ;;
+ *)
+ case $host in
+ # compiling the symbol table file with pic_flag works around
+ # a FreeBSD bug that causes programs to crash when -lm is
+ # linked before any other PIC object. But we must not use
+ # pic_flag when linking with -static. The problem exists in
+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+ *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
+ *-*-hpux*)
+ pic_flag_for_symtable=" $pic_flag" ;;
+ *)
+ if test "X$my_pic_p" != Xno; then
+ pic_flag_for_symtable=" $pic_flag"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ symtab_cflags=
+ for arg in $LTCFLAGS; do
+ case $arg in
+ -pie | -fpie | -fPIE) ;;
+ *) func_append symtab_cflags " $arg" ;;
+ esac
+ done
+
+ # Now compile the dynamic symbol file.
+ func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
+
+ # Clean up the generated files.
+ func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
+
+ # Transform the symbol file into the correct name.
+ symfileobj="$output_objdir/${my_outputname}S.$objext"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ if test -f "$output_objdir/$my_outputname.def"; then
+ compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ else
+ compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+ fi
+ ;;
+ *)
+ compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+ ;;
+ esac
+ ;;
+ *)
+ func_fatal_error "unknown suffix for \`$my_dlsyms'"
+ ;;
+ esac
+ else
+ # We keep going just in case the user didn't refer to
+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
+ # really was required.
+
+ # Nullify the symbol file.
+ compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
+ finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
+ fi
+}
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+# Despite the name, also deal with 64 bit binaries.
+func_win32_libid ()
+{
+ $opt_debug
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
+ $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
+ func_to_tool_file "$1" func_convert_file_msys_to_w32
+ win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
+ $SED -n -e '
+ 1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
+ case $win32_nmres in
+ import*) win32_libid_type="x86 archive import";;
+ *) win32_libid_type="x86 archive static";;
+ esac
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $ECHO "$win32_libid_type"
+}
+
+# func_cygming_dll_for_implib ARG
+#
+# Platform-specific function to extract the
+# name of the DLL associated with the specified
+# import library ARG.
+# Invoked by eval'ing the libtool variable
+# $sharedlib_from_linklib_cmd
+# Result is available in the variable
+# $sharedlib_from_linklib_result
+func_cygming_dll_for_implib ()
+{
+ $opt_debug
+ sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
+}
+
+# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
+#
+# The is the core of a fallback implementation of a
+# platform-specific function to extract the name of the
+# DLL associated with the specified import library LIBNAME.
+#
+# SECTION_NAME is either .idata$6 or .idata$7, depending
+# on the platform and compiler that created the implib.
+#
+# Echos the name of the DLL associated with the
+# specified import library.
+func_cygming_dll_for_implib_fallback_core ()
+{
+ $opt_debug
+ match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
+ $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
+ $SED '/^Contents of section '"$match_literal"':/{
+ # Place marker at beginning of archive member dllname section
+ s/.*/====MARK====/
+ p
+ d
+ }
+ # These lines can sometimes be longer than 43 characters, but
+ # are always uninteresting
+ /:[ ]*file format pe[i]\{,1\}-/d
+ /^In archive [^:]*:/d
+ # Ensure marker is printed
+ /^====MARK====/p
+ # Remove all lines with less than 43 characters
+ /^.\{43\}/!d
+ # From remaining lines, remove first 43 characters
+ s/^.\{43\}//' |
+ $SED -n '
+ # Join marker and all lines until next marker into a single line
+ /^====MARK====/ b para
+ H
+ $ b para
+ b
+ :para
+ x
+ s/\n//g
+ # Remove the marker
+ s/^====MARK====//
+ # Remove trailing dots and whitespace
+ s/[\. \t]*$//
+ # Print
+ /./p' |
+ # we now have a list, one entry per line, of the stringified
+ # contents of the appropriate section of all members of the
+ # archive which possess that section. Heuristic: eliminate
+ # all those which have a first or second character that is
+ # a '.' (that is, objdump's representation of an unprintable
+ # character.) This should work for all archives with less than
+ # 0x302f exports -- but will fail for DLLs whose name actually
+ # begins with a literal '.' or a single character followed by
+ # a '.'.
+ #
+ # Of those that remain, print the first one.
+ $SED -e '/^\./d;/^.\./d;q'
+}
+
+# func_cygming_gnu_implib_p ARG
+# This predicate returns with zero status (TRUE) if
+# ARG is a GNU/binutils-style import library. Returns
+# with nonzero status (FALSE) otherwise.
+func_cygming_gnu_implib_p ()
+{
+ $opt_debug
+ func_to_tool_file "$1" func_convert_file_msys_to_w32
+ func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
+ test -n "$func_cygming_gnu_implib_tmp"
+}
+
+# func_cygming_ms_implib_p ARG
+# This predicate returns with zero status (TRUE) if
+# ARG is an MS-style import library. Returns
+# with nonzero status (FALSE) otherwise.
+func_cygming_ms_implib_p ()
+{
+ $opt_debug
+ func_to_tool_file "$1" func_convert_file_msys_to_w32
+ func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
+ test -n "$func_cygming_ms_implib_tmp"
+}
+
+# func_cygming_dll_for_implib_fallback ARG
+# Platform-specific function to extract the
+# name of the DLL associated with the specified
+# import library ARG.
+#
+# This fallback implementation is for use when $DLLTOOL
+# does not support the --identify-strict option.
+# Invoked by eval'ing the libtool variable
+# $sharedlib_from_linklib_cmd
+# Result is available in the variable
+# $sharedlib_from_linklib_result
+func_cygming_dll_for_implib_fallback ()
+{
+ $opt_debug
+ if func_cygming_gnu_implib_p "$1" ; then
+ # binutils import library
+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
+ elif func_cygming_ms_implib_p "$1" ; then
+ # ms-generated import library
+ sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
+ else
+ # unknown
+ sharedlib_from_linklib_result=""
+ fi
+}
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+ $opt_debug
+ f_ex_an_ar_dir="$1"; shift
+ f_ex_an_ar_oldlib="$1"
+ if test "$lock_old_archive_extraction" = yes; then
+ lockfile=$f_ex_an_ar_oldlib.lock
+ until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+ func_echo "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ fi
+ func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
+ 'stat=$?; rm -f "$lockfile"; exit $stat'
+ if test "$lock_old_archive_extraction" = yes; then
+ $opt_dry_run || rm -f "$lockfile"
+ fi
+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
+ fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+ $opt_debug
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ func_basename "$my_xlib"
+ my_xlib="$func_basename_result"
+ my_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ func_arith $extracted_serial + 1
+ extracted_serial=$func_arith_result
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ func_mkdir_p "$my_xdir"
+
+ case $host in
+ *-darwin*)
+ func_verbose "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ $opt_dry_run || {
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`basename "$darwin_archive"`
+ darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ func_extract_an_archive "`pwd`" "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
+ done # $darwin_arches
+ ## Okay now we've a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
+ $LIPO -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ $RM -rf unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd $darwin_orig_dir
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ fi # $darwin_arches
+ } # !$opt_dry_run
+ ;;
+ *)
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
+}
+
+
+# func_emit_wrapper [arg=no]
+#
+# Emit a libtool wrapper script on stdout.
+# Don't directly open a file because we may want to
+# incorporate the script contents within a cygwin/mingw
+# wrapper executable. Must ONLY be called from within
+# func_mode_link because it depends on a number of variables
+# set therein.
+#
+# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
+# variable will take. If 'yes', then the emitted script
+# will assume that the directory in which it is stored is
+# the $objdir directory. This is a cygwin/mingw-specific
+# behavior.
+func_emit_wrapper ()
+{
+ func_emit_wrapper_arg1=${1-no}
+
+ $ECHO "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+ # install mode needs the following variables:
+ generated_by_libtool_version='$macro_version'
+ notinst_deplibs='$notinst_deplibs'
+else
+ # When we are sourced in execute mode, \$file and \$ECHO are already set.
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ file=\"\$0\""
+
+ qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
+ $ECHO "\
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+ eval 'cat <<_LTECHO_EOF
+\$1
+_LTECHO_EOF'
+}
+ ECHO=\"$qECHO\"
+ fi
+
+# Very basic option parsing. These options are (a) specific to
+# the libtool wrapper, (b) are identical between the wrapper
+# /script/ and the wrapper /executable/ which is used only on
+# windows platforms, and (c) all begin with the string "--lt-"
+# (application programs are unlikely to have options which match
+# this pattern).
+#
+# There are only two supported options: --lt-debug and
+# --lt-dump-script. There is, deliberately, no --lt-help.
+#
+# The first argument to this parsing function should be the
+# script's $0 value, followed by "$@".
+lt_option_debug=
+func_parse_lt_options ()
+{
+ lt_script_arg0=\$0
+ shift
+ for lt_opt
+ do
+ case \"\$lt_opt\" in
+ --lt-debug) lt_option_debug=1 ;;
+ --lt-dump-script)
+ lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
+ test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
+ lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
+ cat \"\$lt_dump_D/\$lt_dump_F\"
+ exit 0
+ ;;
+ --lt-*)
+ \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
+ exit 1
+ ;;
+ esac
+ done
+
+ # Print the debug banner immediately:
+ if test -n \"\$lt_option_debug\"; then
+ echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
+ fi
+}
+
+# Used when --lt-debug. Prints its arguments to stdout
+# (redirection is the responsibility of the caller)
+func_lt_dump_args ()
+{
+ lt_dump_args_N=1;
+ for lt_arg
+ do
+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
+ lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
+ done
+}
+
+# Core function for launching the target application
+func_exec_program_core ()
+{
+"
+ case $host in
+ # Backslashes separate directories on plain windows
+ *-*-mingw | *-*-os2* | *-cegcc*)
+ $ECHO "\
+ if test -n \"\$lt_option_debug\"; then
+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
+ func_lt_dump_args \${1+\"\$@\"} 1>&2
+ fi
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+ ;;
+
+ *)
+ $ECHO "\
+ if test -n \"\$lt_option_debug\"; then
+ \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
+ func_lt_dump_args \${1+\"\$@\"} 1>&2
+ fi
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+ ;;
+ esac
+ $ECHO "\
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+ exit 1
+}
+
+# A function to encapsulate launching the target application
+# Strips options in the --lt-* namespace from \$@ and
+# launches target application with the remaining arguments.
+func_exec_program ()
+{
+ case \" \$* \" in
+ *\\ --lt-*)
+ for lt_wr_arg
+ do
+ case \$lt_wr_arg in
+ --lt-*) ;;
+ *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
+ esac
+ shift
+ done ;;
+ esac
+ func_exec_program_core \${1+\"\$@\"}
+}
+
+ # Parse options
+ func_parse_lt_options \"\$0\" \${1+\"\$@\"}
+
+ # Find the directory that this script lives in.
+ thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+ # Follow symbolic links until we get to the real thisdir.
+ file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
+ while test -n \"\$file\"; do
+ destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
+
+ # If there was a directory component, then change thisdir.
+ if test \"x\$destdir\" != \"x\$file\"; then
+ case \"\$destdir\" in
+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+ *) thisdir=\"\$thisdir/\$destdir\" ;;
+ esac
+ fi
+
+ file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
+ file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
+ done
+
+ # Usually 'no', except on cygwin/mingw when embedded into
+ # the cwrapper.
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
+ if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
+ # special case for '.'
+ if test \"\$thisdir\" = \".\"; then
+ thisdir=\`pwd\`
+ fi
+ # remove .libs from thisdir
+ case \"\$thisdir\" in
+ *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
+ $objdir ) thisdir=. ;;
+ esac
+ fi
+
+ # Try to get the absolute directory name.
+ absdir=\`cd \"\$thisdir\" && pwd\`
+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+ if test "$fast_install" = yes; then
+ $ECHO "\
+ program=lt-'$outputname'$exeext
+ progdir=\"\$thisdir/$objdir\"
+
+ if test ! -f \"\$progdir/\$program\" ||
+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+ file=\"\$\$-\$program\"
+
+ if test ! -d \"\$progdir\"; then
+ $MKDIR \"\$progdir\"
+ else
+ $RM \"\$progdir/\$file\"
+ fi"
+
+ $ECHO "\
+
+ # relink executable if necessary
+ if test -n \"\$relink_command\"; then
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+ else
+ $ECHO \"\$relink_command_output\" >&2
+ $RM \"\$progdir/\$file\"
+ exit 1
+ fi
+ fi
+
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+ { $RM \"\$progdir/\$program\";
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+ $RM \"\$progdir/\$file\"
+ fi"
+ else
+ $ECHO "\
+ program='$outputname'
+ progdir=\"\$thisdir/$objdir\"
+"
+ fi
+
+ $ECHO "\
+
+ if test -f \"\$progdir/\$program\"; then"
+
+ # fixup the dll searchpath if we need to.
+ #
+ # Fix the DLL searchpath if we need to. Do this before prepending
+ # to shlibpath, because on Windows, both are PATH and uninstalled
+ # libraries must come first.
+ if test -n "$dllsearchpath"; then
+ $ECHO "\
+ # Add the dll search path components to the executable PATH
+ PATH=$dllsearchpath:\$PATH
+"
+ fi
+
+ # Export our shlibpath_var if we have one.
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ $ECHO "\
+ # Add our own library path to $shlibpath_var
+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+ # Some systems cannot cope with colon-terminated $shlibpath_var
+ # The second colon is a workaround for a bug in BeOS R4 sed
+ $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
+
+ export $shlibpath_var
+"
+ fi
+
+ $ECHO "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+ func_exec_program \${1+\"\$@\"}
+ fi
+ else
+ # The program doesn't exist.
+ \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
+ \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
+ \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit 1
+ fi
+fi\
+"
+}
+
+
+# func_emit_cwrapperexe_src
+# emit the source code for a wrapper executable on stdout
+# Must ONLY be called from within func_mode_link because
+# it depends on a number of variable set therein.
+func_emit_cwrapperexe_src ()
+{
+ cat <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+*/
+EOF
+ cat <<"EOF"
+#ifdef _MSC_VER
+# define _CRT_SECURE_NO_DEPRECATE 1
+#endif
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+# include <io.h>
+#else
+# include <unistd.h>
+# include <stdint.h>
+# ifdef __CYGWIN__
+# include <io.h>
+# endif
+#endif
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+/* declarations of non-ANSI functions */
+#if defined(__MINGW32__)
+# ifdef __STRICT_ANSI__
+int _putenv (const char *);
+# endif
+#elif defined(__CYGWIN__)
+# ifdef __STRICT_ANSI__
+char *realpath (const char *, char *);
+int putenv (char *);
+int setenv (const char *, const char *, int);
+# endif
+/* #elif defined (other platforms) ... */
+#endif
+
+/* portability defines, excluding path handling macros */
+#if defined(_MSC_VER)
+# define setmode _setmode
+# define stat _stat
+# define chmod _chmod
+# define getcwd _getcwd
+# define putenv _putenv
+# define S_IXUSR _S_IEXEC
+# ifndef _INTPTR_T_DEFINED
+# define _INTPTR_T_DEFINED
+# define intptr_t int
+# endif
+#elif defined(__MINGW32__)
+# define setmode _setmode
+# define stat _stat
+# define chmod _chmod
+# define getcwd _getcwd
+# define putenv _putenv
+#elif defined(__CYGWIN__)
+# define HAVE_SETENV
+# define FOPEN_WB "wb"
+/* #elif defined (other platforms) ... */
+#endif
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef S_IXOTH
+# define S_IXOTH 0
+#endif
+#ifndef S_IXGRP
+# define S_IXGRP 0
+#endif
+
+/* path handling portability macros */
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
+# ifndef DIR_SEPARATOR_2
+# define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+# define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+#if defined(LT_DEBUGWRAPPER)
+static int lt_debug = 1;
+#else
+static int lt_debug = 0;
+#endif
+
+const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
+
+void *xmalloc (size_t num);
+char *xstrdup (const char *string);
+const char *base_name (const char *name);
+char *find_executable (const char *wrapper);
+char *chase_symlinks (const char *pathspec);
+int make_executable (const char *path);
+int check_executable (const char *path);
+char *strendzap (char *str, const char *pat);
+void lt_debugprintf (const char *file, int line, const char *fmt, ...);
+void lt_fatal (const char *file, int line, const char *message, ...);
+static const char *nonnull (const char *s);
+static const char *nonempty (const char *s);
+void lt_setenv (const char *name, const char *value);
+char *lt_extend_str (const char *orig_value, const char *add, int to_end);
+void lt_update_exe_path (const char *name, const char *value);
+void lt_update_lib_path (const char *name, const char *value);
+char **prepare_spawn (char **argv);
+void lt_dump_script (FILE *f);
+EOF
+
+ cat <<EOF
+volatile const char * MAGIC_EXE = "$magic_exe";
+const char * LIB_PATH_VARNAME = "$shlibpath_var";
+EOF
+
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ func_to_host_path "$temp_rpath"
+ cat <<EOF
+const char * LIB_PATH_VALUE = "$func_to_host_path_result";
+EOF
+ else
+ cat <<"EOF"
+const char * LIB_PATH_VALUE = "";
+EOF
+ fi
+
+ if test -n "$dllsearchpath"; then
+ func_to_host_path "$dllsearchpath:"
+ cat <<EOF
+const char * EXE_PATH_VARNAME = "PATH";
+const char * EXE_PATH_VALUE = "$func_to_host_path_result";
+EOF
+ else
+ cat <<"EOF"
+const char * EXE_PATH_VARNAME = "";
+const char * EXE_PATH_VALUE = "";
+EOF
+ fi
+
+ if test "$fast_install" = yes; then
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
+EOF
+ else
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
+EOF
+ fi
+
+
+ cat <<"EOF"
+
+#define LTWRAPPER_OPTION_PREFIX "--lt-"
+
+static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
+static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
+static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int newargc;
+ char *tmp_pathspec;
+ char *actual_cwrapper_path;
+ char *actual_cwrapper_name;
+ char *target_name;
+ char *lt_argv_zero;
+ intptr_t rval = 127;
+
+ int i;
+
+ program_name = (char *) xstrdup (base_name (argv[0]));
+ newargz = XMALLOC (char *, argc + 1);
+
+ /* very simple arg parsing; don't want to rely on getopt
+ * also, copy all non cwrapper options to newargz, except
+ * argz[0], which is handled differently
+ */
+ newargc=0;
+ for (i = 1; i < argc; i++)
+ {
+ if (strcmp (argv[i], dumpscript_opt) == 0)
+ {
+EOF
+ case "$host" in
+ *mingw* | *cygwin* )
+ # make stdout use "unix" line endings
+ echo " setmode(1,_O_BINARY);"
+ ;;
+ esac
+
+ cat <<"EOF"
+ lt_dump_script (stdout);
+ return 0;
+ }
+ if (strcmp (argv[i], debug_opt) == 0)
+ {
+ lt_debug = 1;
+ continue;
+ }
+ if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
+ {
+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
+ namespace, but it is not one of the ones we know about and
+ have already dealt with, above (inluding dump-script), then
+ report an error. Otherwise, targets might begin to believe
+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
+ namespace. The first time any user complains about this, we'll
+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
+ or a configure.ac-settable value.
+ */
+ lt_fatal (__FILE__, __LINE__,
+ "unrecognized %s option: '%s'",
+ ltwrapper_option_prefix, argv[i]);
+ }
+ /* otherwise ... */
+ newargz[++newargc] = xstrdup (argv[i]);
+ }
+ newargz[++newargc] = NULL;
+
+EOF
+ cat <<EOF
+ /* The GNU banner must be the first non-error debug message */
+ lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
+EOF
+ cat <<"EOF"
+ lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
+ lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
+
+ tmp_pathspec = find_executable (argv[0]);
+ if (tmp_pathspec == NULL)
+ lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
+ lt_debugprintf (__FILE__, __LINE__,
+ "(main) found exe (before symlink chase) at: %s\n",
+ tmp_pathspec);
+
+ actual_cwrapper_path = chase_symlinks (tmp_pathspec);
+ lt_debugprintf (__FILE__, __LINE__,
+ "(main) found exe (after symlink chase) at: %s\n",
+ actual_cwrapper_path);
+ XFREE (tmp_pathspec);
+
+ actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
+ strendzap (actual_cwrapper_path, actual_cwrapper_name);
+
+ /* wrapper name transforms */
+ strendzap (actual_cwrapper_name, ".exe");
+ tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
+ XFREE (actual_cwrapper_name);
+ actual_cwrapper_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ /* target_name transforms -- use actual target program name; might have lt- prefix */
+ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
+ strendzap (target_name, ".exe");
+ tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
+ XFREE (target_name);
+ target_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ lt_debugprintf (__FILE__, __LINE__,
+ "(main) libtool target name: %s\n",
+ target_name);
+EOF
+
+ cat <<EOF
+ newargz[0] =
+ XMALLOC (char, (strlen (actual_cwrapper_path) +
+ strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
+ strcpy (newargz[0], actual_cwrapper_path);
+ strcat (newargz[0], "$objdir");
+ strcat (newargz[0], "/");
+EOF
+
+ cat <<"EOF"
+ /* stop here, and copy so we don't have to do this twice */
+ tmp_pathspec = xstrdup (newargz[0]);
+
+ /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
+ strcat (newargz[0], actual_cwrapper_name);
+
+ /* DO want the lt- prefix here if it exists, so use target_name */
+ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
+ XFREE (tmp_pathspec);
+ tmp_pathspec = NULL;
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ {
+ char* p;
+ while ((p = strchr (newargz[0], '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ while ((p = strchr (lt_argv_zero, '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ }
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+ XFREE (target_name);
+ XFREE (actual_cwrapper_path);
+ XFREE (actual_cwrapper_name);
+
+ lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
+ lt_setenv ("DUALCASE", "1"); /* for MSK sh */
+ /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
+ be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
+ because on Windows, both *_VARNAMEs are PATH but uninstalled
+ libraries must come first. */
+ lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
+
+ lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
+ nonnull (lt_argv_zero));
+ for (i = 0; i < newargc; i++)
+ {
+ lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
+ i, nonnull (newargz[i]));
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ /* execv doesn't actually work on mingw as expected on unix */
+ newargz = prepare_spawn (newargz);
+ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
+ if (rval == -1)
+ {
+ /* failed to start process */
+ lt_debugprintf (__FILE__, __LINE__,
+ "(main) failed to launch target \"%s\": %s\n",
+ lt_argv_zero, nonnull (strerror (errno)));
+ return 127;
+ }
+ return rval;
+EOF
+ ;;
+ *)
+ cat <<"EOF"
+ execv (lt_argv_zero, newargz);
+ return rval; /* =127, but avoids unused variable warning */
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+ void *p = (void *) malloc (num);
+ if (!p)
+ lt_fatal (__FILE__, __LINE__, "memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
+ string) : NULL;
+}
+
+const char *
+base_name (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha ((unsigned char) name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return base;
+}
+
+int
+check_executable (const char *path)
+{
+ struct stat st;
+
+ lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
+ nonempty (path));
+ if ((!path) || (!*path))
+ return 0;
+
+ if ((stat (path, &st) >= 0)
+ && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+ return 1;
+ else
+ return 0;
+}
+
+int
+make_executable (const char *path)
+{
+ int rval = 0;
+ struct stat st;
+
+ lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
+ nonempty (path));
+ if ((!path) || (!*path))
+ return 0;
+
+ if (stat (path, &st) >= 0)
+ {
+ rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
+ }
+ return rval;
+}
+
+/* Searches for the full path of the wrapper. Returns
+ newly allocated full path name if found, NULL otherwise
+ Does not chase symlinks, even on platforms that support them.
+*/
+char *
+find_executable (const char *wrapper)
+{
+ int has_slash = 0;
+ const char *p;
+ const char *p_next;
+ /* static buffer for getcwd */
+ char tmp[LT_PATHMAX + 1];
+ int tmp_len;
+ char *concat_name;
+
+ lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
+ nonempty (wrapper));
+
+ if ((wrapper == NULL) || (*wrapper == '\0'))
+ return NULL;
+
+ /* Absolute path? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ else
+ {
+#endif
+ if (IS_DIR_SEPARATOR (wrapper[0]))
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ }
+#endif
+
+ for (p = wrapper; *p; p++)
+ if (*p == '/')
+ {
+ has_slash = 1;
+ break;
+ }
+ if (!has_slash)
+ {
+ /* no slashes; search PATH */
+ const char *path = getenv ("PATH");
+ if (path != NULL)
+ {
+ for (p = path; *p; p = p_next)
+ {
+ const char *q;
+ size_t p_len;
+ for (q = p; *q; q++)
+ if (IS_PATH_SEPARATOR (*q))
+ break;
+ p_len = q - p;
+ p_next = (*q == '\0' ? q : q + 1);
+ if (p_len == 0)
+ {
+ /* empty path: current directory */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
+ nonnull (strerror (errno)));
+ tmp_len = strlen (tmp);
+ concat_name =
+ XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+ }
+ else
+ {
+ concat_name =
+ XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, p, p_len);
+ concat_name[p_len] = '/';
+ strcpy (concat_name + p_len + 1, wrapper);
+ }
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ }
+ /* not found in PATH; assume curdir */
+ }
+ /* Relative path | not found in path: prepend cwd */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
+ nonnull (strerror (errno)));
+ tmp_len = strlen (tmp);
+ concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ return NULL;
+}
+
+char *
+chase_symlinks (const char *pathspec)
+{
+#ifndef S_ISLNK
+ return xstrdup (pathspec);
+#else
+ char buf[LT_PATHMAX];
+ struct stat s;
+ char *tmp_pathspec = xstrdup (pathspec);
+ char *p;
+ int has_symlinks = 0;
+ while (strlen (tmp_pathspec) && !has_symlinks)
+ {
+ lt_debugprintf (__FILE__, __LINE__,
+ "checking path component for symlinks: %s\n",
+ tmp_pathspec);
+ if (lstat (tmp_pathspec, &s) == 0)
+ {
+ if (S_ISLNK (s.st_mode) != 0)
+ {
+ has_symlinks = 1;
+ break;
+ }
+
+ /* search backwards for last DIR_SEPARATOR */
+ p = tmp_pathspec + strlen (tmp_pathspec) - 1;
+ while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ p--;
+ if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ {
+ /* no more DIR_SEPARATORS left */
+ break;
+ }
+ *p = '\0';
+ }
+ else
+ {
+ lt_fatal (__FILE__, __LINE__,
+ "error accessing file \"%s\": %s",
+ tmp_pathspec, nonnull (strerror (errno)));
+ }
+ }
+ XFREE (tmp_pathspec);
+
+ if (!has_symlinks)
+ {
+ return xstrdup (pathspec);
+ }
+
+ tmp_pathspec = realpath (pathspec, buf);
+ if (tmp_pathspec == 0)
+ {
+ lt_fatal (__FILE__, __LINE__,
+ "could not follow symlinks for %s", pathspec);
+ }
+ return xstrdup (tmp_pathspec);
+#endif
+}
+
+char *
+strendzap (char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert (str != NULL);
+ assert (pat != NULL);
+
+ len = strlen (str);
+ patlen = strlen (pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp (str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+void
+lt_debugprintf (const char *file, int line, const char *fmt, ...)
+{
+ va_list args;
+ if (lt_debug)
+ {
+ (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
+ va_start (args, fmt);
+ (void) vfprintf (stderr, fmt, args);
+ va_end (args);
+ }
+}
+
+static void
+lt_error_core (int exit_status, const char *file,
+ int line, const char *mode,
+ const char *message, va_list ap)
+{
+ fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *file, int line, const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
+ va_end (ap);
+}
+
+static const char *
+nonnull (const char *s)
+{
+ return s ? s : "(null)";
+}
+
+static const char *
+nonempty (const char *s)
+{
+ return (s && !*s) ? "(empty)" : nonnull (s);
+}
+
+void
+lt_setenv (const char *name, const char *value)
+{
+ lt_debugprintf (__FILE__, __LINE__,
+ "(lt_setenv) setting '%s' to '%s'\n",
+ nonnull (name), nonnull (value));
+ {
+#ifdef HAVE_SETENV
+ /* always make a copy, for consistency with !HAVE_SETENV */
+ char *str = xstrdup (value);
+ setenv (name, str, 1);
+#else
+ int len = strlen (name) + 1 + strlen (value) + 1;
+ char *str = XMALLOC (char, len);
+ sprintf (str, "%s=%s", name, value);
+ if (putenv (str) != EXIT_SUCCESS)
+ {
+ XFREE (str);
+ }
+#endif
+ }
+}
+
+char *
+lt_extend_str (const char *orig_value, const char *add, int to_end)
+{
+ char *new_value;
+ if (orig_value && *orig_value)
+ {
+ int orig_value_len = strlen (orig_value);
+ int add_len = strlen (add);
+ new_value = XMALLOC (char, add_len + orig_value_len + 1);
+ if (to_end)
+ {
+ strcpy (new_value, orig_value);
+ strcpy (new_value + orig_value_len, add);
+ }
+ else
+ {
+ strcpy (new_value, add);
+ strcpy (new_value + add_len, orig_value);
+ }
+ }
+ else
+ {
+ new_value = xstrdup (add);
+ }
+ return new_value;
+}
+
+void
+lt_update_exe_path (const char *name, const char *value)
+{
+ lt_debugprintf (__FILE__, __LINE__,
+ "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
+ nonnull (name), nonnull (value));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ /* some systems can't cope with a ':'-terminated path #' */
+ int len = strlen (new_value);
+ while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
+ {
+ new_value[len-1] = '\0';
+ }
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+void
+lt_update_lib_path (const char *name, const char *value)
+{
+ lt_debugprintf (__FILE__, __LINE__,
+ "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
+ nonnull (name), nonnull (value));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+EOF
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+
+/* Prepares an argument vector before calling spawn().
+ Note that spawn() does not by itself call the command interpreter
+ (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
+ ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+ GetVersionEx(&v);
+ v.dwPlatformId == VER_PLATFORM_WIN32_NT;
+ }) ? "cmd.exe" : "command.com").
+ Instead it simply concatenates the arguments, separated by ' ', and calls
+ CreateProcess(). We must quote the arguments since Win32 CreateProcess()
+ interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
+ special way:
+ - Space and tab are interpreted as delimiters. They are not treated as
+ delimiters if they are surrounded by double quotes: "...".
+ - Unescaped double quotes are removed from the input. Their only effect is
+ that within double quotes, space and tab are treated like normal
+ characters.
+ - Backslashes not followed by double quotes are not special.
+ - But 2*n+1 backslashes followed by a double quote become
+ n backslashes followed by a double quote (n >= 0):
+ \" -> "
+ \\\" -> \"
+ \\\\\" -> \\"
+ */
+#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+char **
+prepare_spawn (char **argv)
+{
+ size_t argc;
+ char **new_argv;
+ size_t i;
+
+ /* Count number of arguments. */
+ for (argc = 0; argv[argc] != NULL; argc++)
+ ;
+
+ /* Allocate new argument vector. */
+ new_argv = XMALLOC (char *, argc + 1);
+
+ /* Put quoted arguments into the new argument vector. */
+ for (i = 0; i < argc; i++)
+ {
+ const char *string = argv[i];
+
+ if (string[0] == '\0')
+ new_argv[i] = xstrdup ("\"\"");
+ else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
+ {
+ int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
+ size_t length;
+ unsigned int backslashes;
+ const char *s;
+ char *quoted_string;
+ char *p;
+
+ length = 0;
+ backslashes = 0;
+ if (quote_around)
+ length++;
+ for (s = string; *s != '\0'; s++)
+ {
+ char c = *s;
+ if (c == '"')
+ length += backslashes + 1;
+ length++;
+ if (c == '\\')
+ backslashes++;
+ else
+ backslashes = 0;
+ }
+ if (quote_around)
+ length += backslashes + 1;
+
+ quoted_string = XMALLOC (char, length + 1);
+
+ p = quoted_string;
+ backslashes = 0;
+ if (quote_around)
+ *p++ = '"';
+ for (s = string; *s != '\0'; s++)
+ {
+ char c = *s;
+ if (c == '"')
+ {
+ unsigned int j;
+ for (j = backslashes + 1; j > 0; j--)
+ *p++ = '\\';
+ }
+ *p++ = c;
+ if (c == '\\')
+ backslashes++;
+ else
+ backslashes = 0;
+ }
+ if (quote_around)
+ {
+ unsigned int j;
+ for (j = backslashes; j > 0; j--)
+ *p++ = '\\';
+ *p++ = '"';
+ }
+ *p = '\0';
+
+ new_argv[i] = quoted_string;
+ }
+ else
+ new_argv[i] = (char *) string;
+ }
+ new_argv[argc] = NULL;
+
+ return new_argv;
+}
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+void lt_dump_script (FILE* f)
+{
+EOF
+ func_emit_wrapper yes |
+ $SED -n -e '
+s/^\(.\{79\}\)\(..*\)/\1\
+\2/
+h
+s/\([\\"]\)/\\\1/g
+s/$/\\n/
+s/\([^\n]*\).*/ fputs ("\1", f);/p
+g
+D'
+ cat <<"EOF"
+}
+EOF
+}
+# end: func_emit_cwrapperexe_src
+
+# func_win32_import_lib_p ARG
+# True if ARG is an import lib, as indicated by $file_magic_cmd
+func_win32_import_lib_p ()
+{
+ $opt_debug
+ case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
+ *import*) : ;;
+ *) false ;;
+ esac
+}
+
+# func_mode_link arg...
+func_mode_link ()
+{
+ $opt_debug
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args=$nonopt
+ base_compile="$nonopt $@"
+ compile_command=$nonopt
+ finalize_command=$nonopt
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+ new_inherited_linker_flags=
+
+ avoid_version=no
+ bindir=
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ weak_libs=
+ single_module="${wl}-single_module"
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ break
+ ;;
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ func_warning "complete static linking is impossible in this configuration"
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
+
+ # See if our shared archives depend on static archives.
+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+ # Go through the arguments, transforming them on the way.
+ while test "$#" -gt 0; do
+ arg="$1"
+ shift
+ func_quote_for_eval "$arg"
+ qarg=$func_quote_for_eval_unquoted_result
+ func_append libtool_args " $func_quote_for_eval_result"
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ output)
+ func_append compile_command " @OUTPUT@"
+ func_append finalize_command " @OUTPUT@"
+ ;;
+ esac
+
+ case $prev in
+ bindir)
+ bindir="$arg"
+ prev=
+ continue
+ ;;
+ dlfiles|dlprefiles)
+ if test "$preload" = no; then
+ # Add the symbol object into the linking commands.
+ func_append compile_command " @SYMFILE@"
+ func_append finalize_command " @SYMFILE@"
+ preload=yes
+ fi
+ case $arg in
+ *.la | *.lo) ;; # We handle these cases below.
+ force)
+ if test "$dlself" = no; then
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ self)
+ if test "$prev" = dlprefiles; then
+ dlself=yes
+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+ dlself=yes
+ else
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ *)
+ if test "$prev" = dlfiles; then
+ func_append dlfiles " $arg"
+ else
+ func_append dlprefiles " $arg"
+ fi
+ prev=
+ continue
+ ;;
+ esac
+ ;;
+ expsyms)
+ export_symbols="$arg"
+ test -f "$arg" \
+ || func_fatal_error "symbol file \`$arg' does not exist"
+ prev=
+ continue
+ ;;
+ expsyms_regex)
+ export_symbols_regex="$arg"
+ prev=
+ continue
+ ;;
+ framework)
+ case $host in
+ *-*-darwin*)
+ case "$deplibs " in
+ *" $qarg.ltframework "*) ;;
+ *) func_append deplibs " $qarg.ltframework" # this is fixed later
+ ;;
+ esac
+ ;;
+ esac
+ prev=
+ continue
+ ;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat "$save_arg"`
+ do
+# func_append moreargs " $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ func_append dlfiles " $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ func_append dlprefiles " $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ done
+ else
+ func_fatal_error "link input file \`$arg' does not exist"
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
+ release)
+ release="-$arg"
+ prev=
+ continue
+ ;;
+ rpath | xrpath)
+ # We need an absolute path.
+ case $arg in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+ *) func_append rpath " $arg" ;;
+ esac
+ else
+ case "$xrpath " in
+ *" $arg "*) ;;
+ *) func_append xrpath " $arg" ;;
+ esac
+ fi
+ prev=
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
+ weak)
+ func_append weak_libs " $arg"
+ prev=
+ continue
+ ;;
+ xcclinker)
+ func_append linker_flags " $qarg"
+ func_append compiler_flags " $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xcompiler)
+ func_append compiler_flags " $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xlinker)
+ func_append linker_flags " $qarg"
+ func_append compiler_flags " $wl$qarg"
+ prev=
+ func_append compile_command " $wl$qarg"
+ func_append finalize_command " $wl$qarg"
+ continue
+ ;;
+ *)
+ eval "$prev=\"\$arg\""
+ prev=
+ continue
+ ;;
+ esac
+ fi # test -n "$prev"
+
+ prevarg="$arg"
+
+ case $arg in
+ -all-static)
+ if test -n "$link_static_flag"; then
+ # See comment for -static flag below, for more details.
+ func_append compile_command " $link_static_flag"
+ func_append finalize_command " $link_static_flag"
+ fi
+ continue
+ ;;
+
+ -allow-undefined)
+ # FIXME: remove this flag sometime in the future.
+ func_fatal_error "\`-allow-undefined' must not be used because it is the default"
+ ;;
+
+ -avoid-version)
+ avoid_version=yes
+ continue
+ ;;
+
+ -bindir)
+ prev=bindir
+ continue
+ ;;
+
+ -dlopen)
+ prev=dlfiles
+ continue
+ ;;
+
+ -dlpreopen)
+ prev=dlprefiles
+ continue
+ ;;
+
+ -export-dynamic)
+ export_dynamic=yes
+ continue
+ ;;
+
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ func_fatal_error "more than one -exported-symbols argument is not allowed"
+ fi
+ if test "X$arg" = "X-export-symbols"; then
+ prev=expsyms
+ else
+ prev=expsyms_regex
+ fi
+ continue
+ ;;
+
+ -framework)
+ prev=framework
+ continue
+ ;;
+
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+ # so, if we see these flags be careful not to treat them like -L
+ -L[A-Z][A-Z]*:*)
+ case $with_gcc/$host in
+ no/*-*-irix* | /*-*-irix*)
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ ;;
+ esac
+ continue
+ ;;
+
+ -L*)
+ func_stripname "-L" '' "$arg"
+ if test -z "$func_stripname_result"; then
+ if test "$#" -gt 0; then
+ func_fatal_error "require no space between \`-L' and \`$1'"
+ else
+ func_fatal_error "need path for \`-L' option"
+ fi
+ fi
+ func_resolve_sysroot "$func_stripname_result"
+ dir=$func_resolve_sysroot_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ test -z "$absdir" && \
+ func_fatal_error "cannot determine absolute directory name of \`$dir'"
+ dir="$absdir"
+ ;;
+ esac
+ case "$deplibs " in
+ *" -L$dir "* | *" $arg "*)
+ # Will only happen for absolute or sysroot arguments
+ ;;
+ *)
+ # Preserve sysroot, but never include relative directories
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
+ *) func_append deplibs " -L$dir" ;;
+ esac
+ func_append lib_search_path " $dir"
+ ;;
+ esac
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$dir:"*) ;;
+ ::) dllsearchpath=$dir;;
+ *) func_append dllsearchpath ":$dir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) func_append dllsearchpath ":$testbindir";;
+ esac
+ ;;
+ esac
+ continue
+ ;;
+
+ -l*)
+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
+ # These systems don't actually have a C or math library (as such)
+ continue
+ ;;
+ *-*-os2*)
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ func_append deplibs " System.ltframework"
+ continue
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
+ fi
+ func_append deplibs " $arg"
+ continue
+ ;;
+
+ -module)
+ module=yes
+ continue
+ ;;
+
+ # Tru64 UNIX uses -model [arg] to determine the layout of C++
+ # classes, name mangling, and exception handling.
+ # Darwin uses the -arch flag to determine output architecture.
+ -model|-arch|-isysroot|--sysroot)
+ func_append compiler_flags " $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ prev=xcompiler
+ continue
+ ;;
+
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
+ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+ func_append compiler_flags " $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ case "$new_inherited_linker_flags " in
+ *" $arg "*) ;;
+ * ) func_append new_inherited_linker_flags " $arg" ;;
+ esac
+ continue
+ ;;
+
+ -multi_module)
+ single_module="${wl}-multi_module"
+ continue
+ ;;
+
+ -no-fast-install)
+ fast_install=no
+ continue
+ ;;
+
+ -no-install)
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin in order for the loader to find any dlls it needs.
+ func_warning "\`-no-install' is ignored for $host"
+ func_warning "assuming \`-no-fast-install' instead"
+ fast_install=no
+ ;;
+ *) no_install=yes ;;
+ esac
+ continue
+ ;;
+
+ -no-undefined)
+ allow_undefined=no
+ continue
+ ;;
+
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
+ -o) prev=output ;;
+
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
+ -release)
+ prev=release
+ continue
+ ;;
+
+ -rpath)
+ prev=rpath
+ continue
+ ;;
+
+ -R)
+ prev=xrpath
+ continue
+ ;;
+
+ -R*)
+ func_stripname '-R' '' "$arg"
+ dir=$func_stripname_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ =*)
+ func_stripname '=' '' "$dir"
+ dir=$lt_sysroot$func_stripname_result
+ ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) func_append xrpath " $dir" ;;
+ esac
+ continue
+ ;;
+
+ -shared)
+ # The effects of -shared are defined in a previous loop.
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+ # didn't have a PIC flag, but the assumption that the effects
+ # would be equivalent was wrong. It would break on at least
+ # Digital Unix and AIX.
+ continue
+ ;;
+
+ -thread-safe)
+ thread_safe=yes
+ continue
+ ;;
+
+ -version-info)
+ prev=vinfo
+ continue
+ ;;
+
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
+
+ -weak)
+ prev=weak
+ continue
+ ;;
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ func_append arg " $func_quote_for_eval_result"
+ func_append compiler_flags " $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ func_append arg " $wl$func_quote_for_eval_result"
+ func_append compiler_flags " $wl$func_quote_for_eval_result"
+ func_append linker_flags " $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Xcompiler)
+ prev=xcompiler
+ continue
+ ;;
+
+ -Xlinker)
+ prev=xlinker
+ continue
+ ;;
+
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
+ # -msg_* for osf cc
+ -msg_*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ # Flags to be passed through unchanged, with rationale:
+ # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
+ # -r[0-9][0-9]* specify processor for the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
+ # +DA*, +DD* enable 64-bit mode for the HP compiler
+ # -q* compiler args for the IBM compiler
+ # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
+ # -F/path path to uninstalled frameworks, gcc on darwin
+ # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
+ # @file GCC response files
+ # -tp=* Portland pgcc target processor selection
+ # --sysroot=* for sysroot support
+ # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+ -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ func_append compiler_flags " $arg"
+ continue
+ ;;
+
+ # Some other compiler flag.
+ -* | +*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ *.$objext)
+ # A standard object.
+ func_append objs " $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ func_append dlfiles " $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ func_append dlprefiles " $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ ;;
+
+ *.$libext)
+ # An archive.
+ func_append deplibs " $arg"
+ func_append old_deplibs " $arg"
+ continue
+ ;;
+
+ *.la)
+ # A libtool-controlled library.
+
+ func_resolve_sysroot "$arg"
+ if test "$prev" = dlfiles; then
+ # This library was specified with -dlopen.
+ func_append dlfiles " $func_resolve_sysroot_result"
+ prev=
+ elif test "$prev" = dlprefiles; then
+ # The library was specified with -dlpreopen.
+ func_append dlprefiles " $func_resolve_sysroot_result"
+ prev=
+ else
+ func_append deplibs " $func_resolve_sysroot_result"
+ fi
+ continue
+ ;;
+
+ # Some other compiler argument.
+ *)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+ esac # arg
+
+ # Now actually substitute the argument into the commands.
+ if test -n "$arg"; then
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+ done # argument parsing loop
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prevarg' option requires an argument"
+
+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+ eval arg=\"$export_dynamic_flag_spec\"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+
+ oldlibs=
+ # calculate the name of the file, without its directory
+ func_basename "$output"
+ outputname="$func_basename_result"
+ libobjs_save="$libobjs"
+
+ if test -n "$shlibpath_var"; then
+ # get the directories listed in $shlibpath_var
+ eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
+ else
+ shlib_search_path=
+ fi
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+ func_dirname "$output" "/" ""
+ output_objdir="$func_dirname_result$objdir"
+ func_to_tool_file "$output_objdir/"
+ tool_output_objdir=$func_to_tool_file_result
+ # Create the object directory.
+ func_mkdir_p "$output_objdir"
+
+ # Determine the type of output
+ case $output in
+ "")
+ func_fatal_help "you must specify an output file"
+ ;;
+ *.$libext) linkmode=oldlib ;;
+ *.lo | *.$objext) linkmode=obj ;;
+ *.la) linkmode=lib ;;
+ *) linkmode=prog ;; # Anything else should be a program.
+ esac
+
+ specialdeplibs=
+
+ libs=
+ # Find all interdependent deplibs by searching for libraries
+ # that are linked more than once (e.g. -la -lb -la)
+ for deplib in $deplibs; do
+ if $opt_preserve_dup_deps ; then
+ case "$libs " in
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+ esac
+ fi
+ func_append libs " $deplib"
+ done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if $opt_duplicate_compiler_generated_deps; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
+ esac
+ func_append pre_post_deps " $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no # whether we're linking any uninstalled libtool libraries
+ notinst_deplibs= # not-installed libtool libraries
+ notinst_path= # paths that contain not-installed libtool libraries
+
+ case $linkmode in
+ lib)
+ passes="conv dlpreopen link"
+ for file in $dlfiles $dlprefiles; do
+ case $file in
+ *.la) ;;
+ *)
+ func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
+ ;;
+ esac
+ done
+ ;;
+ prog)
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes="conv scan dlopen dlpreopen link"
+ ;;
+ *) passes="conv"
+ ;;
+ esac
+
+ for pass in $passes; do
+ # The preopen pass in lib mode reverses $deplibs; put it back here
+ # so that -L comes before libs that need it for instance...
+ if test "$linkmode,$pass" = "lib,link"; then
+ ## FIXME: Find the place where the list is rebuilt in the wrong
+ ## order, and fix it there properly
+ tmp_deplibs=
+ for deplib in $deplibs; do
+ tmp_deplibs="$deplib $tmp_deplibs"
+ done
+ deplibs="$tmp_deplibs"
+ fi
+
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+ link)
+ libs="$deplibs %DEPLIBS%"
+ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
+ ;;
+ esac
+ fi
+ if test "$linkmode,$pass" = "lib,dlpreopen"; then
+ # Collect and forward deplibs of preopened libtool libs
+ for lib in $dlprefiles; do
+ # Ignore non-libtool-libs
+ dependency_libs=
+ func_resolve_sysroot "$lib"
+ case $lib in
+ *.la) func_source "$func_resolve_sysroot_result" ;;
+ esac
+
+ # Collect preopened libtool deplibs, except any this library
+ # has declared as weak libs
+ for deplib in $dependency_libs; do
+ func_basename "$deplib"
+ deplib_base=$func_basename_result
+ case " $weak_libs " in
+ *" $deplib_base "*) ;;
+ *) func_append deplibs " $deplib" ;;
+ esac
+ done
+ done
+ libs="$dlprefiles"
+ fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
+
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
+ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ func_append compiler_flags " $deplib"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) func_append new_inherited_linker_flags " $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -l*)
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ func_warning "\`-l' is ignored for archives/objects"
+ continue
+ fi
+ func_stripname '-l' '' "$deplib"
+ name=$func_stripname_result
+ if test "$linkmode" = lib; then
+ searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+ else
+ searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+ fi
+ for searchdir in $searchdirs; do
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
+ done
+ if test "$found" != yes; then
+ # deplib doesn't seem to be a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if func_lalib_p "$lib"; then
+ library_names=
+ old_library=
+ func_source "$lib"
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
+ fi
+ ;; # -l
+ *.ltframework)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) func_append new_inherited_linker_flags " $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -L*)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ func_stripname '-L' '' "$deplib"
+ func_resolve_sysroot "$func_stripname_result"
+ func_append newlib_search_path " $func_resolve_sysroot_result"
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ func_stripname '-L' '' "$deplib"
+ func_resolve_sysroot "$func_stripname_result"
+ func_append newlib_search_path " $func_resolve_sysroot_result"
+ ;;
+ *)
+ func_warning "\`-L' is ignored for archives/objects"
+ ;;
+ esac # linkmode
+ continue
+ ;; # -L
+ -R*)
+ if test "$pass" = link; then
+ func_stripname '-R' '' "$deplib"
+ func_resolve_sysroot "$func_stripname_result"
+ dir=$func_resolve_sysroot_result
+ # Make sure the xrpath contains only unique directories.
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) func_append xrpath " $dir" ;;
+ esac
+ fi
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ *.la)
+ func_resolve_sysroot "$deplib"
+ lib=$func_resolve_sysroot_result
+ ;;
+ *.$libext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ case $linkmode in
+ lib)
+ # Linking convenience modules into shared libraries is allowed,
+ # but linking other static libraries is non-portable.
+ case " $dlpreconveniencelibs " in
+ *" $deplib "*) ;;
+ *)
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ echo
+ $ECHO "*** Warning: Trying to link with static lib archive $deplib."
+ echo "*** I have the capability to make that library automatically link in when"
+ echo "*** you link to this library. But I can only do this if you have a"
+ echo "*** shared version of the library, which you do not appear to have"
+ echo "*** because the file extensions .$libext of this argument makes me believe"
+ echo "*** that it is just a static archive that I should not use here."
+ else
+ echo
+ $ECHO "*** Warning: Linking the shared library $output against the"
+ $ECHO "*** static library $deplib is not portable!"
+ deplibs="$deplib $deplibs"
+ fi
+ ;;
+ esac
+ continue
+ ;;
+ prog)
+ if test "$pass" != link; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ continue
+ ;;
+ esac # linkmode
+ ;; # *.$libext
+ *.lo | *.$objext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ func_append newdlprefiles " $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ func_append newdlfiles " $deplib"
+ fi
+ fi
+ continue
+ ;;
+ %DEPLIBS%)
+ alldeplibs=yes
+ continue
+ ;;
+ esac # case $deplib
+
+ if test "$found" = yes || test -f "$lib"; then :
+ else
+ func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
+ fi
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$lib" \
+ || func_fatal_error "\`$lib' is not a valid libtool archive"
+
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ inherited_linker_flags=
+ # If the library was installed with an old release of libtool,
+ # it will not redefine variables installed, or shouldnotlink
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+
+
+ # Read the .la file
+ func_source "$lib"
+
+ # Convert "-framework foo" to "foo.ltframework"
+ if test -n "$inherited_linker_flags"; then
+ tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
+ for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
+ case " $new_inherited_linker_flags " in
+ *" $tmp_inherited_linker_flag "*) ;;
+ *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
+ esac
+ done
+ fi
+ dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan" ||
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+ test -n "$dlopen" && func_append dlfiles " $dlopen"
+ test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
+ fi
+
+ if test "$pass" = conv; then
+ # Only check for convenience libraries
+ deplibs="$lib $deplibs"
+ if test -z "$libdir"; then
+ if test -z "$old_library"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+ # It is a libtool convenience library, so add in its objects.
+ func_append convenience " $ladir/$objdir/$old_library"
+ func_append old_convenience " $ladir/$objdir/$old_library"
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if $opt_preserve_dup_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+ esac
+ fi
+ func_append tmp_libs " $deplib"
+ done
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ func_fatal_error "\`$lib' is not a convenience library"
+ fi
+ continue
+ fi # $pass = conv
+
+
+ # Get the name of the library we link against.
+ linklib=
+ if test -n "$old_library" &&
+ { test "$prefer_static_libs" = yes ||
+ test "$prefer_static_libs,$installed" = "built,no"; }; then
+ linklib=$old_library
+ else
+ for l in $old_library $library_names; do
+ linklib="$l"
+ done
+ fi
+ if test -z "$linklib"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+
+ # This library was specified with -dlopen.
+ if test "$pass" = dlopen; then
+ if test -z "$libdir"; then
+ func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
+ fi
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
+ # If there is no dlname, no dlopen support or we're linking
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ func_append dlprefiles " $lib $dependency_libs"
+ else
+ func_append newdlfiles " $lib"
+ fi
+ continue
+ fi # $pass = dlopen
+
+ # We need an absolute path.
+ case $ladir in
+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+ *)
+ abs_ladir=`cd "$ladir" && pwd`
+ if test -z "$abs_ladir"; then
+ func_warning "cannot determine absolute directory name of \`$ladir'"
+ func_warning "passing it literally to the linker, although it might fail"
+ abs_ladir="$ladir"
+ fi
+ ;;
+ esac
+ func_basename "$lib"
+ laname="$func_basename_result"
+
+ # Find the relevant object directory and library name.
+ if test "X$installed" = Xyes; then
+ if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ func_warning "library \`$lib' was moved."
+ dir="$ladir"
+ absdir="$abs_ladir"
+ libdir="$abs_ladir"
+ else
+ dir="$lt_sysroot$libdir"
+ absdir="$lt_sysroot$libdir"
+ fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ else
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ func_append notinst_path " $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ func_append notinst_path " $abs_ladir"
+ fi
+ fi # $installed = yes
+ func_stripname 'lib' '.la' "$laname"
+ name=$func_stripname_result
+
+ # This library was specified with -dlpreopen.
+ if test "$pass" = dlpreopen; then
+ if test -z "$libdir" && test "$linkmode" = prog; then
+ func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
+ fi
+ case "$host" in
+ # special handling for platforms with PE-DLLs.
+ *cygwin* | *mingw* | *cegcc* )
+ # Linker will automatically link against shared library if both
+ # static and shared are present. Therefore, ensure we extract
+ # symbols from the import library if a shared library is present
+ # (otherwise, the dlopen module name will be incorrect). We do
+ # this by putting the import library name into $newdlprefiles.
+ # We recover the dlopen module name by 'saving' the la file
+ # name in a special purpose variable, and (later) extracting the
+ # dlname from the la file.
+ if test -n "$dlname"; then
+ func_tr_sh "$dir/$linklib"
+ eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
+ func_append newdlprefiles " $dir/$linklib"
+ else
+ func_append newdlprefiles " $dir/$old_library"
+ # Keep a list of preopened convenience libraries to check
+ # that they are being used correctly in the link pass.
+ test -z "$libdir" && \
+ func_append dlpreconveniencelibs " $dir/$old_library"
+ fi
+ ;;
+ * )
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
+ # are required to link).
+ if test -n "$old_library"; then
+ func_append newdlprefiles " $dir/$old_library"
+ # Keep a list of preopened convenience libraries to check
+ # that they are being used correctly in the link pass.
+ test -z "$libdir" && \
+ func_append dlpreconveniencelibs " $dir/$old_library"
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
+ elif test -n "$dlname"; then
+ func_append newdlprefiles " $dir/$dlname"
+ else
+ func_append newdlprefiles " $dir/$linklib"
+ fi
+ ;;
+ esac
+ fi # $pass = dlpreopen
+
+ if test -z "$libdir"; then
+ # Link the convenience library
+ if test "$linkmode" = lib; then
+ deplibs="$dir/$old_library $deplibs"
+ elif test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$dir/$old_library $compile_deplibs"
+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
+ else
+ deplibs="$lib $deplibs" # used for prog,scan pass
+ fi
+ continue
+ fi
+
+
+ if test "$linkmode" = prog && test "$pass" != link; then
+ func_append newlib_search_path " $ladir"
+ deplibs="$lib $deplibs"
+
+ linkalldeplibs=no
+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
+ test "$build_libtool_libs" = no; then
+ linkalldeplibs=yes
+ fi
+
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) func_stripname '-L' '' "$deplib"
+ func_resolve_sysroot "$func_stripname_result"
+ func_append newlib_search_path " $func_resolve_sysroot_result"
+ ;;
+ esac
+ # Need to link against all dependency_libs?
+ if test "$linkalldeplibs" = yes; then
+ deplibs="$deplib $deplibs"
+ else
+ # Need to hardcode shared library paths
+ # or/and link against static libraries
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ if $opt_preserve_dup_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+ esac
+ fi
+ func_append tmp_libs " $deplib"
+ done # for deplib
+ continue
+ fi # $linkmode = prog...
+
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath:" in
+ *"$absdir:"*) ;;
+ *) func_append temp_rpath "$absdir:" ;;
+ esac
+ fi
+
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) func_append compile_rpath " $absdir" ;;
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) func_append finalize_rpath " $libdir" ;;
+ esac
+ ;;
+ esac
+ fi # $linkmode,$pass = prog,link...
+
+ if test "$alldeplibs" = yes &&
+ { test "$deplibs_check_method" = pass_all ||
+ { test "$build_libtool_libs" = yes &&
+ test -n "$library_names"; }; }; then
+ # We only need to search for static libraries
+ continue
+ fi
+ fi
+
+ link_static=no # Whether the deplib will be linked statically
+ use_static_libs=$prefer_static_libs
+ if test "$use_static_libs" = built && test "$installed" = yes; then
+ use_static_libs=no
+ fi
+ if test -n "$library_names" &&
+ { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ case $host in
+ *cygwin* | *mingw* | *cegcc*)
+ # No point in relinking DLLs because paths are not encoded
+ func_append notinst_deplibs " $lib"
+ need_relink=no
+ ;;
+ *)
+ if test "$installed" = no; then
+ func_append notinst_deplibs " $lib"
+ need_relink=yes
+ fi
+ ;;
+ esac
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on some
+ # systems (darwin). Don't bleat about dlopened modules though!
+ dlopenmodule=""
+ for dlpremoduletest in $dlprefiles; do
+ if test "X$dlpremoduletest" = "X$lib"; then
+ dlopenmodule="$dlpremoduletest"
+ break
+ fi
+ done
+ if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
+ echo
+ if test "$linkmode" = prog; then
+ $ECHO "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $ECHO "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) func_append compile_rpath " $absdir" ;;
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) func_append finalize_rpath " $libdir" ;;
+ esac
+ ;;
+ esac
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+ # figure out the soname
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ # use dlname if we got it. it's perfectly good, no?
+ if test -n "$dlname"; then
+ soname="$dlname"
+ elif test -n "$soname_spec"; then
+ # bleh windows
+ case $host in
+ *cygwin* | mingw* | *cegcc*)
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+ esac
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+
+ # Make a new name for the extract_expsyms_cmds to use
+ soroot="$soname"
+ func_basename "$soroot"
+ soname="$func_basename_result"
+ func_stripname 'lib' '.dll' "$soname"
+ newlib=libimp-$func_stripname_result.a
+
+ # If the library has no export list, then create one now
+ if test -f "$output_objdir/$soname-def"; then :
+ else
+ func_verbose "extracting exported symbol list from \`$soname'"
+ func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
+ fi
+
+ # Create $newlib
+ if test -f "$output_objdir/$newlib"; then :; else
+ func_verbose "generating import library for \`$soname'"
+ func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
+ fi
+ # make sure the library variables are pointing to the new library
+ dir=$output_objdir
+ linklib=$newlib
+ fi # test -n "$old_archive_from_expsyms_cmds"
+
+ if test "$linkmode" = prog || test "$opt_mode" != relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ case $hardcode_action in
+ immediate | unsupported)
+ if test "$hardcode_direct" = no; then
+ add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
+ *-*-sysv4*uw2*) add_dir="-L$dir" ;;
+ *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+ *-*-unixware7*) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a (non-dlopened) module then we can not
+ # link against it, someone is ignoring the earlier warnings
+ if /usr/bin/file -L $add 2> /dev/null |
+ $GREP ": [^:]* bundle" >/dev/null ; then
+ if test "X$dlopenmodule" != "X$lib"; then
+ $ECHO "*** Warning: lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ echo
+ echo "*** And there doesn't seem to be a static archive available"
+ echo "*** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ elif test -n "$old_library"; then
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
+ elif test "$hardcode_minus_L" = no; then
+ case $host in
+ *-*-sunos*) add_shlibpath="$dir" ;;
+ esac
+ add_dir="-L$dir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = no; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ relink)
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$dir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$absdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ func_append add_dir " -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ *) lib_linked=no ;;
+ esac
+
+ if test "$lib_linked" != yes; then
+ func_fatal_configuration "unsupported hardcode properties"
+ fi
+
+ if test -n "$add_shlibpath"; then
+ case :$compile_shlibpath: in
+ *":$add_shlibpath:"*) ;;
+ *) func_append compile_shlibpath "$add_shlibpath:" ;;
+ esac
+ fi
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ if test "$hardcode_direct" != yes &&
+ test "$hardcode_minus_L" != yes &&
+ test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) func_append finalize_shlibpath "$libdir:" ;;
+ esac
+ fi
+ fi
+ fi
+
+ if test "$linkmode" = prog || test "$opt_mode" = relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ # Finalize command for both is simple: just hardcode it.
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) func_append finalize_shlibpath "$libdir:" ;;
+ esac
+ add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+ add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ func_append add_dir " -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ fi
+
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ fi
+ fi
+ elif test "$linkmode" = prog; then
+ # Here we assume that one of hardcode_direct or hardcode_minus_L
+ # is not unsupported. This is valid on all known static and
+ # shared platforms.
+ if test "$hardcode_direct" != unsupported; then
+ test -n "$old_library" && linklib="$old_library"
+ compile_deplibs="$dir/$linklib $compile_deplibs"
+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
+ else
+ compile_deplibs="-l$name -L$dir $compile_deplibs"
+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+ fi
+ elif test "$build_libtool_libs" = yes; then
+ # Not a shared library
+ if test "$deplibs_check_method" != pass_all; then
+ # We're trying link a shared library against a static one
+ # but the system doesn't support it.
+
+ # Just print a warning and add the library to dependency_libs so
+ # that the program can be linked against the static library.
+ echo
+ $ECHO "*** Warning: This system can not link to static lib archive $lib."
+ echo "*** I have the capability to make that library automatically link in when"
+ echo "*** you link to this library. But I can only do this if you have a"
+ echo "*** shared version of the library, which you do not appear to have."
+ if test "$module" = yes; then
+ echo "*** But as you try to build a module library, libtool will still create "
+ echo "*** a static module, that should work as long as the dlopening application"
+ echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ if test -z "$global_symbol_pipe"; then
+ echo
+ echo "*** However, this would only work if libtool was able to extract symbol"
+ echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ echo "*** not find such a program. So, this module is probably useless."
+ echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ else
+ deplibs="$dir/$old_library $deplibs"
+ link_static=yes
+ fi
+ fi # link shared/static library?
+
+ if test "$linkmode" = lib; then
+ if test -n "$dependency_libs" &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
+ # Extract -R from dependency_libs
+ temp_deplibs=
+ for libdir in $dependency_libs; do
+ case $libdir in
+ -R*) func_stripname '-R' '' "$libdir"
+ temp_xrpath=$func_stripname_result
+ case " $xrpath " in
+ *" $temp_xrpath "*) ;;
+ *) func_append xrpath " $temp_xrpath";;
+ esac;;
+ *) func_append temp_deplibs " $libdir";;
+ esac
+ done
+ dependency_libs="$temp_deplibs"
+ fi
+
+ func_append newlib_search_path " $absdir"
+ # Link against this library
+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+ # ... and its dependency_libs
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ newdependency_libs="$deplib $newdependency_libs"
+ case $deplib in
+ -L*) func_stripname '-L' '' "$deplib"
+ func_resolve_sysroot "$func_stripname_result";;
+ *) func_resolve_sysroot "$deplib" ;;
+ esac
+ if $opt_preserve_dup_deps ; then
+ case "$tmp_libs " in
+ *" $func_resolve_sysroot_result "*)
+ func_append specialdeplibs " $func_resolve_sysroot_result" ;;
+ esac
+ fi
+ func_append tmp_libs " $func_resolve_sysroot_result"
+ done
+
+ if test "$link_all_deplibs" != no; then
+ # Add the search paths of all dependency libraries
+ for deplib in $dependency_libs; do
+ path=
+ case $deplib in
+ -L*) path="$deplib" ;;
+ *.la)
+ func_resolve_sysroot "$deplib"
+ deplib=$func_resolve_sysroot_result
+ func_dirname "$deplib" "" "."
+ dir=$func_dirname_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ func_warning "cannot determine absolute directory name of \`$dir'"
+ absdir="$dir"
+ fi
+ ;;
+ esac
+ if $GREP "^installed=no" $deplib > /dev/null; then
+ case $host in
+ *-*-darwin*)
+ depdepl=
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$absdir/$objdir/$depdepl" ; then
+ depdepl="$absdir/$objdir/$depdepl"
+ darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ if test -z "$darwin_install_name"; then
+ darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ fi
+ func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
+ func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
+ path=
+ fi
+ fi
+ ;;
+ *)
+ path="-L$absdir/$objdir"
+ ;;
+ esac
+ else
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ test "$absdir" != "$libdir" && \
+ func_warning "\`$deplib' seems to be moved"
+
+ path="-L$absdir"
+ fi
+ ;;
+ esac
+ case " $deplibs " in
+ *" $path "*) ;;
+ *) deplibs="$path $deplibs" ;;
+ esac
+ done
+ fi # link_all_deplibs != no
+ fi # linkmode = lib
+ done # for deplib in $libs
+ if test "$pass" = link; then
+ if test "$linkmode" = "prog"; then
+ compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
+ finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ fi
+ fi
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
+ # Link the dlpreopened libraries before other libraries
+ for deplib in $save_deplibs; do
+ deplibs="$deplib $deplibs"
+ done
+ fi
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
+ # Make sure lib_search_path contains only unique directories.
+ lib_search_path=
+ for dir in $newlib_search_path; do
+ case "$lib_search_path " in
+ *" $dir "*) ;;
+ *) func_append lib_search_path " $dir" ;;
+ esac
+ done
+ newlib_search_path=
+ fi
+
+ if test "$linkmode,$pass" != "prog,link"; then
+ vars="deplibs"
+ else
+ vars="compile_deplibs finalize_deplibs"
+ fi
+ for var in $vars dependency_libs; do
+ # Add libraries to $var in reverse order
+ eval tmp_libs=\"\$$var\"
+ new_libs=
+ for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
+ case $deplib in
+ -L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
+ *)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
+ case " $specialdeplibs " in
+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
+ *)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$deplib $new_libs" ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
+ done
+ tmp_libs=
+ for deplib in $new_libs; do
+ case $deplib in
+ -L*)
+ case " $tmp_libs " in
+ *" $deplib "*) ;;
+ *) func_append tmp_libs " $deplib" ;;
+ esac
+ ;;
+ *) func_append tmp_libs " $deplib" ;;
+ esac
+ done
+ eval $var=\"$tmp_libs\"
+ done # for var
+ fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ func_append tmp_libs " $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
+ done # for pass
+ if test "$linkmode" = prog; then
+ dlfiles="$newdlfiles"
+ fi
+ if test "$linkmode" = prog || test "$linkmode" = lib; then
+ dlprefiles="$newdlprefiles"
+ fi
+
+ case $linkmode in
+ oldlib)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for archives"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for archives" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for archives"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for archives"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for archives"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for archives"
+
+ test -n "$export_symbols$export_symbols_regex" && \
+ func_warning "\`-export-symbols' is ignored for archives"
+
+ # Now set the variables for building old libraries.
+ build_libtool_libs=no
+ oldlibs="$output"
+ func_append objs "$old_deplibs"
+ ;;
+
+ lib)
+ # Make sure we only generate libraries of the form `libNAME.la'.
+ case $outputname in
+ lib*)
+ func_stripname 'lib' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ ;;
+ *)
+ test "$module" = no && \
+ func_fatal_help "libtool library \`$output' must begin with \`lib'"
+
+ if test "$need_lib_prefix" != no; then
+ # Add the "lib" prefix for modules if required
+ func_stripname '' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ else
+ func_stripname '' '.la' "$outputname"
+ libname=$func_stripname_result
+ fi
+ ;;
+ esac
+
+ if test -n "$objs"; then
+ if test "$deplibs_check_method" != pass_all; then
+ func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
+ else
+ echo
+ $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
+ $ECHO "*** objects $objs is not portable!"
+ func_append libobjs " $objs"
+ fi
+ fi
+
+ test "$dlself" != no && \
+ func_warning "\`-dlopen self' is ignored for libtool libraries"
+
+ set dummy $rpath
+ shift
+ test "$#" -gt 1 && \
+ func_warning "ignoring multiple \`-rpath's for a libtool library"
+
+ install_libdir="$1"
+
+ oldlibs=
+ if test -z "$rpath"; then
+ if test "$build_libtool_libs" = yes; then
+ # Building a libtool convenience library.
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ fi
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for convenience libraries"
+ else
+
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0
+ shift
+ IFS="$save_ifs"
+
+ test -n "$7" && \
+ func_fatal_help "too many parameters to \`-version-info'"
+
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$1"
+ number_minor="$2"
+ number_revision="$3"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ # correct linux to gnu/linux during the next big refactor
+ darwin|linux|osf|windows|none)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|qnx|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ *)
+ func_fatal_configuration "$modename: unknown library version type \`$version_type'"
+ ;;
+ esac
+ ;;
+ no)
+ current="$1"
+ revision="$2"
+ age="$3"
+ ;;
+ esac
+
+ # Check that each of the things are valid numbers.
+ case $current in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "CURRENT \`$current' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $revision in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "REVISION \`$revision' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $age in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "AGE \`$age' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ if test "$age" -gt "$current"; then
+ func_error "AGE \`$age' is greater than the current interface number \`$current'"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ fi
+
+ # Calculate the version variables.
+ major=
+ versuffix=
+ verstring=
+ case $version_type in
+ none) ;;
+
+ darwin)
+ # Like Linux, but with the current version available in
+ # verstring for coding it into the library header
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ func_arith $current + 1
+ minor_current=$func_arith_result
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ func_arith $current - $age
+ else
+ func_arith $current - $age + 1
+ fi
+ major=$func_arith_result
+
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+ esac
+ verstring="$verstring_prefix$major.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$revision
+ while test "$loop" -ne 0; do
+ func_arith $revision - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring_prefix$major.$iface:$verstring"
+ done
+
+ # Before this point, $major must not contain `.'.
+ major=.$major
+ versuffix="$major.$revision"
+ ;;
+
+ linux) # correct to gnu/linux during the next big refactor
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ ;;
+
+ osf)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=".$current.$age.$revision"
+ verstring="$current.$age.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$age
+ while test "$loop" -ne 0; do
+ func_arith $current - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring:${iface}.0"
+ done
+
+ # Make executables depend on our current version.
+ func_append verstring ":${current}.0"
+ ;;
+
+ qnx)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ sunos)
+ major=".$current"
+ versuffix=".$current.$revision"
+ ;;
+
+ windows)
+ # Use '-' rather than '.', since we only want one
+ # extension on DOS 8.3 filesystems.
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+
+ *)
+ func_fatal_configuration "unknown library version type \`$version_type'"
+ ;;
+ esac
+
+ # Clear the version info if we defaulted, and they specified a release.
+ if test -z "$vinfo" && test -n "$release"; then
+ major=
+ case $version_type in
+ darwin)
+ # we can't check for "0.0" in archive_cmds due to quoting
+ # problems, so we reset it completely
+ verstring=
+ ;;
+ *)
+ verstring="0.0"
+ ;;
+ esac
+ if test "$need_version" = no; then
+ versuffix=
+ else
+ versuffix=".0.0"
+ fi
+ fi
+
+ # Remove version info from name if versioning should be avoided
+ if test "$avoid_version" = yes && test "$need_version" = no; then
+ major=
+ versuffix=
+ verstring=""
+ fi
+
+ # Check to see if the archive will have undefined symbols.
+ if test "$allow_undefined" = yes; then
+ if test "$allow_undefined_flag" = unsupported; then
+ func_warning "undefined symbols not allowed in $host shared libraries"
+ build_libtool_libs=no
+ build_old_libs=yes
+ fi
+ else
+ # Don't allow undefined symbols.
+ allow_undefined_flag="$no_undefined_flag"
+ fi
+
+ fi
+
+ func_generate_dlsyms "$libname" "$libname" "yes"
+ func_append libobjs " $symfileobj"
+ test "X$libobjs" = "X " && libobjs=
+
+ if test "$opt_mode" != relink; then
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$ECHO "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext | *.gcno)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ func_append removelist " $p"
+ ;;
+ *) ;;
+ esac
+ done
+ test -n "$removelist" && \
+ func_show_eval "${RM}r \$removelist"
+ fi
+
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ func_append oldlibs " $output_objdir/$libname.$libext"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
+ fi
+
+ # Eliminate all temporary directories.
+ #for path in $notinst_path; do
+ # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
+ # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
+ # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
+ #done
+
+ if test -n "$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ temp_xrpath=
+ for libdir in $xrpath; do
+ func_replace_sysroot "$libdir"
+ func_append temp_xrpath " -R$func_replace_sysroot_result"
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) func_append finalize_rpath " $libdir" ;;
+ esac
+ done
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+ dependency_libs="$temp_xrpath $dependency_libs"
+ fi
+ fi
+
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
+ old_dlfiles="$dlfiles"
+ dlfiles=
+ for lib in $old_dlfiles; do
+ case " $dlprefiles $dlfiles " in
+ *" $lib "*) ;;
+ *) func_append dlfiles " $lib" ;;
+ esac
+ done
+
+ # Make sure dlprefiles contains only unique files
+ old_dlprefiles="$dlprefiles"
+ dlprefiles=
+ for lib in $old_dlprefiles; do
+ case "$dlprefiles " in
+ *" $lib "*) ;;
+ *) func_append dlprefiles " $lib" ;;
+ esac
+ done
+
+ if test "$build_libtool_libs" = yes; then
+ if test -n "$rpath"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
+ # these systems don't actually have a c library (as such)!
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C library is in the System framework
+ func_append deplibs " System.ltframework"
+ ;;
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+ func_append deplibs " -lc"
+ fi
+ ;;
+ esac
+ fi
+
+ # Transform deplibs into only deplibs that can be linked in shared.
+ name_save=$name
+ libname_save=$libname
+ release_save=$release
+ versuffix_save=$versuffix
+ major_save=$major
+ # I'm not sure if I'm treating the release correctly. I think
+ # release should show up in the -l (ie -lgmp5) so we don't want to
+ # add it in twice. Is that correct?
+ release=""
+ versuffix=""
+ major=""
+ newdeplibs=
+ droppeddeps=no
+ case $deplibs_check_method in
+ pass_all)
+ # Don't check for shared/static. Everything works.
+ # This might be a little naive. We might want to check
+ # whether the library exists or not. But this is on
+ # osf3 & osf4 and I'm not really sure... Just
+ # implementing what was already the behavior.
+ newdeplibs=$deplibs
+ ;;
+ test_compile)
+ # This code stresses the "libraries are programs" paradigm to its
+ # limits. Maybe even breaks it. We compile a program, linking it
+ # against the deplibs as a proxy for the library. Then we can check
+ # whether they linked in statically or dynamically with ldd.
+ $opt_dry_run || $RM conftest.c
+ cat > conftest.c <<EOF
+ int main() { return 0; }
+EOF
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ func_append newdeplibs " $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ func_append newdeplibs " $i"
+ else
+ droppeddeps=yes
+ echo
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ echo "*** I have the capability to make that library automatically link in when"
+ echo "*** you link to this library. But I can only do this if you have a"
+ echo "*** shared version of the library, which I believe you do not have"
+ echo "*** because a test_compile did reveal that the linker did not use it for"
+ echo "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ ;;
+ *)
+ func_append newdeplibs " $i"
+ ;;
+ esac
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ func_append newdeplibs " $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ func_append newdeplibs " $i"
+ else
+ droppeddeps=yes
+ echo
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ echo "*** I have the capability to make that library automatically link in when"
+ echo "*** you link to this library. But I can only do this if you have a"
+ echo "*** shared version of the library, which you do not appear to have"
+ echo "*** because a test_compile did reveal that the linker did not use this one"
+ echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ echo
+ $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
+ echo "*** make it link in! You will probably need to install it or some"
+ echo "*** library that it depends on before this library will be fully"
+ echo "*** functional. Installing it before continuing would be even better."
+ fi
+ ;;
+ *)
+ func_append newdeplibs " $i"
+ ;;
+ esac
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method; shift
+ file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ func_append newdeplibs " $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ if test -n "$file_magic_glob"; then
+ libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
+ else
+ libnameglob=$libname
+ fi
+ test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ if test "$want_nocaseglob" = yes; then
+ shopt -s nocaseglob
+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
+ $nocaseglob
+ else
+ potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
+ fi
+ for potent_lib in $potential_libs; do
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null |
+ $GREP " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
+ $SED -e 10q |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ func_append newdeplibs " $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ echo
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ echo "*** I have the capability to make that library automatically link in when"
+ echo "*** you link to this library. But I can only do this if you have a"
+ echo "*** shared version of the library, which you do not appear to have"
+ echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ func_append newdeplibs " $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ func_append newdeplibs " $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
+ $EGREP "$match_pattern_regex" > /dev/null; then
+ func_append newdeplibs " $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ echo
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ echo "*** I have the capability to make that library automatically link in when"
+ echo "*** you link to this library. But I can only do this if you have a"
+ echo "*** shared version of the library, which you do not appear to have"
+ echo "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ func_append newdeplibs " $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
+ done
+ fi
+ case $tmp_deplibs in
+ *[!\ \ ]*)
+ echo
+ if test "X$deplibs_check_method" = "Xnone"; then
+ echo "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ echo "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ echo "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ ;;
+ esac
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library with the System framework
+ newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ echo
+ echo "*** Warning: libtool could not satisfy all declared inter-library"
+ $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
+ echo "*** a static module, that should work as long as the dlopening"
+ echo "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ echo
+ echo "*** However, this would only work if libtool was able to extract symbol"
+ echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ echo "*** not find such a program. So, this module is probably useless."
+ echo "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ echo "*** The inter-library dependencies that have been dropped here will be"
+ echo "*** automatically added whenever a program is linked with this library"
+ echo "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ echo
+ echo "*** Since this library must not contain undefined symbols,"
+ echo "*** because either the platform does not support them or"
+ echo "*** it was explicitly requested with -no-undefined,"
+ echo "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ case $host in
+ *-*-darwin*)
+ newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $deplibs " in
+ *" -L$path/$objdir "*)
+ func_append new_libs " -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) func_append new_libs " $deplib" ;;
+ esac
+ ;;
+ *) func_append new_libs " $deplib" ;;
+ esac
+ done
+ deplibs="$new_libs"
+
+ # All the library-specific variables (install_libdir is set above).
+ library_names=
+ old_library=
+ dlname=
+
+ # Test again, we may have decided not to build it any more
+ if test "$build_libtool_libs" = yes; then
+ # Remove ${wl} instances when linking with ld.
+ # FIXME: should test the right _cmds variable.
+ case $archive_cmds in
+ *\$LD\ *) wl= ;;
+ esac
+ if test "$hardcode_into_libs" = yes; then
+ # Hardcode the library paths
+ hardcode_libdirs=
+ dep_rpath=
+ rpath="$finalize_rpath"
+ test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ func_replace_sysroot "$libdir"
+ libdir=$func_replace_sysroot_result
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ func_append dep_rpath " $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) func_append perm_rpath " $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
+ fi
+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ func_append rpath "$dir:"
+ done
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+ fi
+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+ fi
+
+ shlibpath="$finalize_shlibpath"
+ test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+ if test -n "$shlibpath"; then
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+ fi
+
+ # Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
+ eval library_names=\"$library_names_spec\"
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+
+ if test -n "$soname_spec"; then
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
+
+ lib="$output_objdir/$realname"
+ linknames=
+ for link
+ do
+ func_append linknames " $link"
+ done
+
+ # Use standard objects if they are pic
+ test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
+ test "X$libobjs" = "X " && libobjs=
+
+ delfiles=
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
+ export_symbols="$output_objdir/$libname.uexp"
+ func_append delfiles " $export_symbols"
+ fi
+
+ orig_export_symbols=
+ case $host_os in
+ cygwin* | mingw* | cegcc*)
+ if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
+ # exporting using user supplied symfile
+ if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
+ # and it's NOT already a .def file. Must figure out
+ # which of the given symbols are data symbols and tag
+ # them as such. So, trigger use of export_symbols_cmds.
+ # export_symbols gets reassigned inside the "prepare
+ # the list of exported symbols" if statement, so the
+ # include_expsyms logic still works.
+ orig_export_symbols="$export_symbols"
+ export_symbols=
+ always_export_symbols=yes
+ fi
+ fi
+ ;;
+ esac
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ cmds=$export_symbols_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd1 in $cmds; do
+ IFS="$save_ifs"
+ # Take the normal branch if the nm_file_list_spec branch
+ # doesn't work or if tool conversion is not needed.
+ case $nm_file_list_spec~$to_tool_file_cmd in
+ *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
+ try_normal_branch=yes
+ eval cmd=\"$cmd1\"
+ func_len " $cmd"
+ len=$func_len_result
+ ;;
+ *)
+ try_normal_branch=no
+ ;;
+ esac
+ if test "$try_normal_branch" = yes \
+ && { test "$len" -lt "$max_cmd_len" \
+ || test "$max_cmd_len" -le -1; }
+ then
+ func_show_eval "$cmd" 'exit $?'
+ skipped_export=false
+ elif test -n "$nm_file_list_spec"; then
+ func_basename "$output"
+ output_la=$func_basename_result
+ save_libobjs=$libobjs
+ save_output=$output
+ output=${output_objdir}/${output_la}.nm
+ func_to_tool_file "$output"
+ libobjs=$nm_file_list_spec$func_to_tool_file_result
+ func_append delfiles " $output"
+ func_verbose "creating $NM input file list: $output"
+ for obj in $save_libobjs; do
+ func_to_tool_file "$obj"
+ $ECHO "$func_to_tool_file_result"
+ done > "$output"
+ eval cmd=\"$cmd1\"
+ func_show_eval "$cmd" 'exit $?'
+ output=$save_output
+ libobjs=$save_libobjs
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ func_verbose "using reloadable object file for export list..."
+ skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+ fi
+
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ func_append tmp_deplibs " $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec" &&
+ test "$compiler_needs_object" = yes &&
+ test -z "$libobjs"; then
+ # extract the archives, so we have objects to list.
+ # TODO: could optimize this to just extract one archive.
+ whole_archive_flag_spec=
+ fi
+ if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ else
+ gentop="$output_objdir/${outputname}x"
+ func_append generated " $gentop"
+
+ func_extract_archives $gentop $convenience
+ func_append libobjs " $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ fi
+
+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+ eval flag=\"$thread_safe_flag_spec\"
+ func_append linker_flags " $flag"
+ fi
+
+ # Make a backup of the uninstalled library when relinking
+ if test "$opt_mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
+ fi
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
+ else
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" &&
+ func_len " $test_cmds" &&
+ len=$func_len_result &&
+ test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise
+ # or, if using GNU ld and skipped_export is not :, use a linker
+ # script.
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+ func_basename "$output"
+ output_la=$func_basename_result
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ last_robj=
+ k=1
+
+ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
+ output=${output_objdir}/${output_la}.lnkscript
+ func_verbose "creating GNU ld script: $output"
+ echo 'INPUT (' > $output
+ for obj in $save_libobjs
+ do
+ func_to_tool_file "$obj"
+ $ECHO "$func_to_tool_file_result" >> $output
+ done
+ echo ')' >> $output
+ func_append delfiles " $output"
+ func_to_tool_file "$output"
+ output=$func_to_tool_file_result
+ elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
+ output=${output_objdir}/${output_la}.lnk
+ func_verbose "creating linker input file list: $output"
+ : > $output
+ set x $save_libobjs
+ shift
+ firstobj=
+ if test "$compiler_needs_object" = yes; then
+ firstobj="$1 "
+ shift
+ fi
+ for obj
+ do
+ func_to_tool_file "$obj"
+ $ECHO "$func_to_tool_file_result" >> $output
+ done
+ func_append delfiles " $output"
+ func_to_tool_file "$output"
+ output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
+ else
+ if test -n "$save_libobjs"; then
+ func_verbose "creating reloadable object files..."
+ output=$output_objdir/$output_la-${k}.$objext
+ eval test_cmds=\"$reload_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ if test "X$objlist" = X ||
+ test "$len" -lt "$max_cmd_len"; then
+ func_append objlist " $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ reload_objs=$objlist
+ eval concat_cmds=\"$reload_cmds\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ reload_objs="$objlist $last_robj"
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
+ fi
+ last_robj=$output_objdir/$output_la-${k}.$objext
+ func_arith $k + 1
+ k=$func_arith_result
+ output=$output_objdir/$output_la-${k}.$objext
+ objlist=" $obj"
+ func_len " $last_robj"
+ func_arith $len0 + $func_len_result
+ len=$func_arith_result
+ fi
+ done
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ reload_objs="$objlist $last_robj"
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
+ fi
+ func_append delfiles " $output"
+
+ else
+ output=
+ fi
+
+ if ${skipped_export-false}; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+ fi
+ fi
+
+ test -n "$save_libobjs" &&
+ func_verbose "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$opt_mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ if test -n "$export_symbols_regex" && ${skipped_export-false}; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+
+ if ${skipped_export-false}; then
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ func_append delfiles " $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+ fi
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+ fi
+
+ if test -n "$delfiles"; then
+ # Append the command to remove temporary files to $cmds.
+ eval cmds=\"\$cmds~\$RM $delfiles\"
+ fi
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ func_append generated " $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ func_append libobjs " $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$opt_mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ # Restore the uninstalled library and exit
+ if test "$opt_mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
+
+ if test -n "$convenience"; then
+ if test -z "$whole_archive_flag_spec"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ # Create links to the real library.
+ for linkname in $linknames; do
+ if test "$realname" != "$linkname"; then
+ func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
+ fi
+ done
+
+ # If -module or -export-dynamic was specified, set the dlname.
+ if test "$module" = yes || test "$export_dynamic" = yes; then
+ # On all known operating systems, these are identical.
+ dlname="$soname"
+ fi
+ fi
+ ;;
+
+ obj)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for objects"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for objects" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for objects"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for objects"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for objects"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for objects"
+
+ case $output in
+ *.lo)
+ test -n "$objs$old_deplibs" && \
+ func_fatal_error "cannot build library object \`$output' from non-libtool objects"
+
+ libobj=$output
+ func_lo2o "$libobj"
+ obj=$func_lo2o_result
+ ;;
+ *)
+ libobj=
+ obj="$output"
+ ;;
+ esac
+
+ # Delete the old objects.
+ $opt_dry_run || $RM $obj $libobj
+
+ # Objects from convenience libraries. This assumes
+ # single-version convenience libraries. Whenever we create
+ # different ones for PIC/non-PIC, this we'll have to duplicate
+ # the extraction.
+ reload_conv_objs=
+ gentop=
+ # reload_cmds runs $LD directly, so let us get rid of
+ # -Wl from whole_archive_flag_spec and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
+ else
+ gentop="$output_objdir/${obj}x"
+ func_append generated " $gentop"
+
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
+ fi
+ fi
+
+ # If we're not building shared, we need to use non_pic_objs
+ test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
+
+ # Create the old-style object.
+ reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+ output="$obj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+
+ # Exit if we aren't doing a library object file.
+ if test -z "$libobj"; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$build_libtool_libs" != yes; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ # Create an invalid libtool object if no PIC, so that we don't
+ # accidentally link it into a program.
+ # $show "echo timestamp > $libobj"
+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test -n "$pic_flag" || test "$pic_mode" != default; then
+ # Only do commands if we really have different PIC objects.
+ reload_objs="$libobjs $reload_conv_objs"
+ output="$libobj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+ fi
+
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ prog)
+ case $host in
+ *cygwin*) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result.exe;;
+ esac
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for programs"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for programs"
+
+ test "$preload" = yes \
+ && test "$dlopen_support" = unknown \
+ && test "$dlopen_self" = unknown \
+ && test "$dlopen_self_static" = unknown && \
+ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
+ finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ case $host in
+ *-*-darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ # But is supposedly fixed on 10.4 or later (yay!).
+ if test "$tagname" = CXX ; then
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
+ 10.[0123])
+ func_append compile_command " ${wl}-bind_at_load"
+ func_append finalize_command " ${wl}-bind_at_load"
+ ;;
+ esac
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $compile_deplibs " in
+ *" -L$path/$objdir "*)
+ func_append new_libs " -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $compile_deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) func_append new_libs " $deplib" ;;
+ esac
+ ;;
+ *) func_append new_libs " $deplib" ;;
+ esac
+ done
+ compile_deplibs="$new_libs"
+
+
+ func_append compile_command " $compile_deplibs"
+ func_append finalize_command " $finalize_deplibs"
+
+ if test -n "$rpath$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ for libdir in $rpath $xrpath; do
+ # This is the magic to use -rpath.
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) func_append finalize_rpath " $libdir" ;;
+ esac
+ done
+ fi
+
+ # Now hardcode the library paths
+ rpath=
+ hardcode_libdirs=
+ for libdir in $compile_rpath $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ func_append rpath " $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) func_append perm_rpath " $libdir" ;;
+ esac
+ fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$libdir:"*) ;;
+ ::) dllsearchpath=$libdir;;
+ *) func_append dllsearchpath ":$libdir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) func_append dllsearchpath ":$testbindir";;
+ esac
+ ;;
+ esac
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ compile_rpath="$rpath"
+
+ rpath=
+ hardcode_libdirs=
+ for libdir in $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ func_append rpath " $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$finalize_perm_rpath " in
+ *" $libdir "*) ;;
+ *) func_append finalize_perm_rpath " $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ finalize_rpath="$rpath"
+
+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
+ # Transform all the library objects into standard objects.
+ compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
+ finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
+ fi
+
+ func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
+
+ # template prelinking step
+ if test -n "$prelink_cmds"; then
+ func_execute_cmds "$prelink_cmds" 'exit $?'
+ fi
+
+ wrappers_required=yes
+ case $host in
+ *cegcc* | *mingw32ce*)
+ # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
+ wrappers_required=no
+ ;;
+ *cygwin* | *mingw* )
+ if test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ *)
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ esac
+ if test "$wrappers_required" = no; then
+ # Replace the output file specification.
+ compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
+ link_command="$compile_command$compile_rpath"
+
+ # We have no uninstalled library dependencies, so finalize right now.
+ exit_status=0
+ func_show_eval "$link_command" 'exit_status=$?'
+
+ if test -n "$postlink_cmds"; then
+ func_to_tool_file "$output"
+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
+ func_execute_cmds "$postlink_cmds" 'exit $?'
+ fi
+
+ # Delete the generated files.
+ if test -f "$output_objdir/${outputname}S.${objext}"; then
+ func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
+ fi
+
+ exit $exit_status
+ fi
+
+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+ fi
+ if test -n "$finalize_shlibpath"; then
+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+ fi
+
+ compile_var=
+ finalize_var=
+ if test -n "$runpath_var"; then
+ if test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ func_append rpath "$dir:"
+ done
+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ if test -n "$finalize_perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $finalize_perm_rpath; do
+ func_append rpath "$dir:"
+ done
+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ fi
+
+ if test "$no_install" = yes; then
+ # We don't need to create a wrapper script.
+ link_command="$compile_var$compile_command$compile_rpath"
+ # Replace the output file specification.
+ link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
+ # Delete the old output file.
+ $opt_dry_run || $RM $output
+ # Link the executable and exit
+ func_show_eval "$link_command" 'exit $?'
+
+ if test -n "$postlink_cmds"; then
+ func_to_tool_file "$output"
+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
+ func_execute_cmds "$postlink_cmds" 'exit $?'
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+ func_warning "this platform does not like uninstalled shared libraries"
+ func_warning "\`$output' will be relinked during installation"
+ else
+ if test "$fast_install" != no; then
+ link_command="$finalize_var$compile_command$finalize_rpath"
+ if test "$fast_install" = yes; then
+ relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
+ else
+ # fast_install is set to needless
+ relink_command=
+ fi
+ else
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+ fi
+ fi
+
+ # Replace the output file specification.
+ link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+ # Delete the old output files.
+ $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+ func_show_eval "$link_command" 'exit $?'
+
+ if test -n "$postlink_cmds"; then
+ func_to_tool_file "$output_objdir/$outputname"
+ postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
+ func_execute_cmds "$postlink_cmds" 'exit $?'
+ fi
+
+ # Now create the wrapper script.
+ func_verbose "creating $output"
+
+ # Quote the relink command for shipping.
+ if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ relink_command="(cd `pwd`; $relink_command)"
+ relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
+ fi
+
+ # Only actually do things if not in dry run mode.
+ $opt_dry_run || {
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result ;;
+ esac
+ # test for cygwin because mv fails w/o .exe extensions
+ case $host in
+ *cygwin*)
+ exeext=.exe
+ func_stripname '' '.exe' "$outputname"
+ outputname=$func_stripname_result ;;
+ *) exeext= ;;
+ esac
+ case $host in
+ *cygwin* | *mingw* )
+ func_dirname_and_basename "$output" "" "."
+ output_name=$func_basename_result
+ output_path=$func_dirname_result
+ cwrappersource="$output_path/$objdir/lt-$output_name.c"
+ cwrapper="$output_path/$output_name.exe"
+ $RM $cwrappersource $cwrapper
+ trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_cwrapperexe_src > $cwrappersource
+
+ # The wrapper executable is built using the $host compiler,
+ # because it contains $host paths and files. If cross-
+ # compiling, it, like the target executable, must be
+ # executed on the $host or under an emulation environment.
+ $opt_dry_run || {
+ $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+ $STRIP $cwrapper
+ }
+
+ # Now, create the wrapper script for func_source use:
+ func_ltwrapper_scriptname $cwrapper
+ $RM $func_ltwrapper_scriptname_result
+ trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
+ $opt_dry_run || {
+ # note: this script will not be executed, so do not chmod.
+ if test "x$build" = "x$host" ; then
+ $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ else
+ func_emit_wrapper no > $func_ltwrapper_scriptname_result
+ fi
+ }
+ ;;
+ * )
+ $RM $output
+ trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_wrapper no > $output
+ chmod +x $output
+ ;;
+ esac
+ }
+ exit $EXIT_SUCCESS
+ ;;
+ esac
+
+ # See if we need to build an old-fashioned archive.
+ for oldlib in $oldlibs; do
+
+ if test "$build_libtool_libs" = convenience; then
+ oldobjs="$libobjs_save $symfileobj"
+ addlibs="$convenience"
+ build_libtool_libs=no
+ else
+ if test "$build_libtool_libs" = module; then
+ oldobjs="$libobjs_save"
+ build_libtool_libs=no
+ else
+ oldobjs="$old_deplibs $non_pic_objects"
+ if test "$preload" = yes && test -f "$symfileobj"; then
+ func_append oldobjs " $symfileobj"
+ fi
+ fi
+ addlibs="$old_convenience"
+ fi
+
+ if test -n "$addlibs"; then
+ gentop="$output_objdir/${outputname}x"
+ func_append generated " $gentop"
+
+ func_extract_archives $gentop $addlibs
+ func_append oldobjs " $func_extract_archives_result"
+ fi
+
+ # Do each command in the archive commands.
+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+ cmds=$old_archive_from_new_cmds
+ else
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ func_append generated " $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ func_append oldobjs " $func_extract_archives_result"
+ fi
+
+ # POSIX demands no paths to be encoded in archives. We have
+ # to avoid creating archives with duplicate basenames if we
+ # might have to extract them afterwards, e.g., when creating a
+ # static archive out of a convenience library, or when linking
+ # the entirety of a libtool archive into another (currently
+ # not supported by libtool).
+ if (for obj in $oldobjs
+ do
+ func_basename "$obj"
+ $ECHO "$func_basename_result"
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ echo "copying selected object files to avoid basename conflicts..."
+ gentop="$output_objdir/${outputname}x"
+ func_append generated " $gentop"
+ func_mkdir_p "$gentop"
+ save_oldobjs=$oldobjs
+ oldobjs=
+ counter=1
+ for obj in $save_oldobjs
+ do
+ func_basename "$obj"
+ objbase="$func_basename_result"
+ case " $oldobjs " in
+ " ") oldobjs=$obj ;;
+ *[\ /]"$objbase "*)
+ while :; do
+ # Make sure we don't pick an alternate name that also
+ # overlaps.
+ newobj=lt$counter-$objbase
+ func_arith $counter + 1
+ counter=$func_arith_result
+ case " $oldobjs " in
+ *[\ /]"$newobj "*) ;;
+ *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+ esac
+ done
+ func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+ func_append oldobjs " $gentop/$newobj"
+ ;;
+ *) func_append oldobjs " $obj" ;;
+ esac
+ done
+ fi
+ func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
+ tool_oldlib=$func_to_tool_file_result
+ eval cmds=\"$old_archive_cmds\"
+
+ func_len " $cmds"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ elif test -n "$archiver_list_spec"; then
+ func_verbose "using command file archive linking..."
+ for obj in $oldobjs
+ do
+ func_to_tool_file "$obj"
+ $ECHO "$func_to_tool_file_result"
+ done > $output_objdir/$libname.libcmd
+ func_to_tool_file "$output_objdir/$libname.libcmd"
+ oldobjs=" $archiver_list_spec$func_to_tool_file_result"
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ func_verbose "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+ oldobjs=
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ eval test_cmds=\"$old_archive_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+ for obj in $save_oldobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ func_append objlist " $obj"
+ if test "$len" -lt "$max_cmd_len"; then
+ :
+ else
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
+ len=$len0
+ fi
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+ fi
+ fi
+ fi
+ func_execute_cmds "$cmds" 'exit $?'
+ done
+
+ test -n "$generated" && \
+ func_show_eval "${RM}r$generated"
+
+ # Now create the libtool archive.
+ case $output in
+ *.la)
+ old_library=
+ test "$build_old_libs" = yes && old_library="$libname.$libext"
+ func_verbose "creating $output"
+
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ # Quote the link command for shipping.
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+ relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
+ # Only create the output if not a dry run.
+ $opt_dry_run || {
+ for installed in no yes; do
+ if test "$installed" = yes; then
+ if test -z "$install_libdir"; then
+ break
+ fi
+ output="$output_objdir/$outputname"i
+ # Replace all uninstalled libtool libraries with the installed ones
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ *.la)
+ func_basename "$deplib"
+ name="$func_basename_result"
+ func_resolve_sysroot "$deplib"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
+ ;;
+ -L*)
+ func_stripname -L '' "$deplib"
+ func_replace_sysroot "$func_stripname_result"
+ func_append newdependency_libs " -L$func_replace_sysroot_result"
+ ;;
+ -R*)
+ func_stripname -R '' "$deplib"
+ func_replace_sysroot "$func_stripname_result"
+ func_append newdependency_libs " -R$func_replace_sysroot_result"
+ ;;
+ *) func_append newdependency_libs " $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+
+ for lib in $dlfiles; do
+ case $lib in
+ *.la)
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
+ ;;
+ *) func_append newdlfiles " $lib" ;;
+ esac
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ *.la)
+ # Only pass preopened files to the pseudo-archive (for
+ # eventual linking with the app. that links it) if we
+ # didn't already link the preopened objects directly into
+ # the library:
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
+ ;;
+ esac
+ done
+ dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ func_append newdlfiles " $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ func_append newdlprefiles " $abs"
+ done
+ dlprefiles="$newdlprefiles"
+ fi
+ $RM $output
+ # place dlname in correct position for cygwin
+ # In fact, it would be nice if we could use this code for all target
+ # systems that can't hard-code library paths into their executables
+ # and that have no shared library path variable independent of PATH,
+ # but it turns out we can't easily determine that from inspecting
+ # libtool variables, so we have to hard-code the OSs to which it
+ # applies here; at the moment, that means platforms that use the PE
+ # object format with DLL files. See the long comment at the top of
+ # tests/bindir.at for full details.
+ tdlname=$dlname
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
+ # If a -bindir argument was supplied, place the dll there.
+ if test "x$bindir" != x ;
+ then
+ func_relative_path "$install_libdir" "$bindir"
+ tdlname=$func_relative_path_result$dlname
+ else
+ # Otherwise fall back on heuristic.
+ tdlname=../bin/$dlname
+ fi
+ ;;
+ esac
+ $ECHO > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags='$new_inherited_linker_flags'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Names of additional weak libraries provided by this library
+weak_library_names='$weak_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+ if test "$installed" = no && test "$need_relink" = yes; then
+ $ECHO >> $output "\
+relink_command=\"$relink_command\""
+ fi
+ done
+ }
+
+ # Do a symbolic link so that the libtool archive can be found in
+ # LD_LIBRARY_PATH before the program is installed.
+ func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+ ;;
+ esac
+ exit $EXIT_SUCCESS
+}
+
+{ test "$opt_mode" = link || test "$opt_mode" = relink; } &&
+ func_mode_link ${1+"$@"}
+
+
+# func_mode_uninstall arg...
+func_mode_uninstall ()
+{
+ $opt_debug
+ RM="$nonopt"
+ files=
+ rmforce=
+ exit_status=0
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ for arg
+ do
+ case $arg in
+ -f) func_append RM " $arg"; rmforce=yes ;;
+ -*) func_append RM " $arg" ;;
+ *) func_append files " $arg" ;;
+ esac
+ done
+
+ test -z "$RM" && \
+ func_fatal_help "you must specify an RM program"
+
+ rmdirs=
+
+ for file in $files; do
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ if test "X$dir" = X.; then
+ odir="$objdir"
+ else
+ odir="$dir/$objdir"
+ fi
+ func_basename "$file"
+ name="$func_basename_result"
+ test "$opt_mode" = uninstall && odir="$dir"
+
+ # Remember odir for removal later, being careful to avoid duplicates
+ if test "$opt_mode" = clean; then
+ case " $rmdirs " in
+ *" $odir "*) ;;
+ *) func_append rmdirs " $odir" ;;
+ esac
+ fi
+
+ # Don't error if the file doesn't exist and rm -f was used.
+ if { test -L "$file"; } >/dev/null 2>&1 ||
+ { test -h "$file"; } >/dev/null 2>&1 ||
+ test -f "$file"; then
+ :
+ elif test -d "$file"; then
+ exit_status=1
+ continue
+ elif test "$rmforce" = yes; then
+ continue
+ fi
+
+ rmfiles="$file"
+
+ case $name in
+ *.la)
+ # Possibly a libtool archive, so verify it.
+ if func_lalib_p "$file"; then
+ func_source $dir/$name
+
+ # Delete the libtool libraries and symlinks.
+ for n in $library_names; do
+ func_append rmfiles " $odir/$n"
+ done
+ test -n "$old_library" && func_append rmfiles " $odir/$old_library"
+
+ case "$opt_mode" in
+ clean)
+ case " $library_names " in
+ *" $dlname "*) ;;
+ *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
+ esac
+ test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
+ ;;
+ uninstall)
+ if test -n "$library_names"; then
+ # Do each command in the postuninstall commands.
+ func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+
+ if test -n "$old_library"; then
+ # Do each command in the old_postuninstall commands.
+ func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+ # FIXME: should reinstall the best remaining shared library.
+ ;;
+ esac
+ fi
+ ;;
+
+ *.lo)
+ # Possibly a libtool object, so verify it.
+ if func_lalib_p "$file"; then
+
+ # Read the .lo file
+ func_source $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" &&
+ test "$pic_object" != none; then
+ func_append rmfiles " $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" &&
+ test "$non_pic_object" != none; then
+ func_append rmfiles " $dir/$non_pic_object"
+ fi
+ fi
+ ;;
+
+ *)
+ if test "$opt_mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ func_stripname '' '.exe' "$name"
+ noexename=$func_stripname_result
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ func_append rmfiles " $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if func_ltwrapper_p "$file"; then
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ relink_command=
+ func_source $func_ltwrapper_scriptname_result
+ func_append rmfiles " $func_ltwrapper_scriptname_result"
+ else
+ relink_command=
+ func_source $dir/$noexename
+ fi
+
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ func_append rmfiles " $odir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ func_append rmfiles " $odir/lt-${noexename}.c"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ func_show_eval "$RM $rmfiles" 'exit_status=1'
+ done
+
+ # Try to remove the ${objdir}s in the directories where we deleted files
+ for dir in $rmdirs; do
+ if test -d "$dir"; then
+ func_show_eval "rmdir $dir >/dev/null 2>&1"
+ fi
+ done
+
+ exit $exit_status
+}
+
+{ test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
+ func_mode_uninstall ${1+"$@"}
+
+test -z "$opt_mode" && {
+ help="$generic_help"
+ func_fatal_help "you must specify a MODE"
+}
+
+test -z "$exec_cmd" && \
+ func_fatal_help "invalid operation mode \`$opt_mode'"
+
+if test -n "$exec_cmd"; then
+ eval exec "$exec_cmd"
+ exit $EXIT_FAILURE
+fi
+
+exit $exit_status
+
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
+# vi:sw=2
+
diff --git a/m4/libtool.m4 b/m4/libtool.m4
new file mode 100644
index 0000000..828104c
--- /dev/null
+++ b/m4/libtool.m4
@@ -0,0 +1,8001 @@
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+m4_define([_LT_COPYING], [dnl
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+])
+
+# serial 57 LT_INIT
+
+
+# LT_PREREQ(VERSION)
+# ------------------
+# Complain and exit if this libtool version is less that VERSION.
+m4_defun([LT_PREREQ],
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
+ [m4_default([$3],
+ [m4_fatal([Libtool version $1 or higher is required],
+ 63)])],
+ [$2])])
+
+
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+ *\ * | *\ *)
+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
+esac
+])
+
+
+# LT_INIT([OPTIONS])
+# ------------------
+AC_DEFUN([LT_INIT],
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
+AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_BEFORE([$0], [LTDL_INIT])dnl
+m4_require([_LT_CHECK_BUILDDIR])dnl
+
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
+dnl unless we require an AC_DEFUNed macro:
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
+AC_REQUIRE([LTSUGAR_VERSION])dnl
+AC_REQUIRE([LTVERSION_VERSION])dnl
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
+m4_require([_LT_PROG_LTMAIN])dnl
+
+_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
+
+dnl Parse OPTIONS
+_LT_SET_OPTIONS([$0], [$1])
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
+])# LT_INIT
+
+# Old names:
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+m4_defun([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+ case $cc_temp in
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+])
+
+
+# _LT_FILEUTILS_DEFAULTS
+# ----------------------
+# It is okay to use these file commands and assume they have been set
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
+m4_defun([_LT_FILEUTILS_DEFAULTS],
+[: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+])# _LT_FILEUTILS_DEFAULTS
+
+
+# _LT_SETUP
+# ---------
+m4_defun([_LT_SETUP],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
+
+_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
+dnl
+_LT_DECL([], [host_alias], [0], [The host system])dnl
+_LT_DECL([], [host], [0])dnl
+_LT_DECL([], [host_os], [0])dnl
+dnl
+_LT_DECL([], [build_alias], [0], [The build system])dnl
+_LT_DECL([], [build], [0])dnl
+_LT_DECL([], [build_os], [0])dnl
+dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+dnl
+AC_REQUIRE([AC_PROG_LN_S])dnl
+test -z "$LN_S" && LN_S="ln -s"
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
+dnl
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
+dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
+m4_require([_LT_CMD_RELOAD])dnl
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_WITH_SYSROOT])dnl
+
+_LT_CONFIG_LIBTOOL_INIT([
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+])
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+_LT_CHECK_OBJDIR
+
+m4_require([_LT_TAG_COMPILER])dnl
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ _LT_PATH_MAGIC
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+LT_SUPPORTED_TAG([CC])
+_LT_LANG_C_CONFIG
+_LT_LANG_DEFAULT_CONFIG
+_LT_CONFIG_COMMANDS
+])# _LT_SETUP
+
+
+# _LT_PREPARE_SED_QUOTE_VARS
+# --------------------------
+# Define a few sed substitution that help us do robust quoting.
+m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
+[# Backslashify metacharacters that are still active within
+# double-quoted strings.
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+])
+
+# _LT_PROG_LTMAIN
+# ---------------
+# Note that this code is called both from `configure', and `config.status'
+# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
+# so we pass a copy along to make sure it has a sensible value anyway.
+m4_defun([_LT_PROG_LTMAIN],
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
+ltmain="$ac_aux_dir/ltmain.sh"
+])# _LT_PROG_LTMAIN
+
+
+## ------------------------------------- ##
+## Accumulate code for creating libtool. ##
+## ------------------------------------- ##
+
+# So that we can recreate a full libtool script including additional
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
+# in macros and then make a single call at the end using the `libtool'
+# label.
+
+
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
+# ----------------------------------------
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
+
+
+# _LT_CONFIG_LIBTOOL([COMMANDS])
+# ------------------------------
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
+
+
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
+# -----------------------------------------------------
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
+[_LT_CONFIG_LIBTOOL([$1])
+_LT_CONFIG_LIBTOOL_INIT([$2])
+])
+
+
+# _LT_FORMAT_COMMENT([COMMENT])
+# -----------------------------
+# Add leading comment marks to the start of each line, and a trailing
+# full-stop to the whole comment if one is not present already.
+m4_define([_LT_FORMAT_COMMENT],
+[m4_ifval([$1], [
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
+ [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
+)])
+
+
+
+## ------------------------ ##
+## FIXME: Eliminate VARNAME ##
+## ------------------------ ##
+
+
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
+# -------------------------------------------------------------------
+# CONFIGNAME is the name given to the value in the libtool script.
+# VARNAME is the (base) name used in the configure script.
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
+# VARNAME. Any other value will be used directly.
+m4_define([_LT_DECL],
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
+ [m4_ifval([$1], [$1], [$2])])
+ lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
+ m4_ifval([$4],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
+ lt_dict_add_subkey([lt_decl_dict], [$2],
+ [tagged?], [m4_ifval([$5], [yes], [no])])])
+])
+
+
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
+# --------------------------------------------------------
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
+
+
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_tag_varnames],
+[_lt_decl_filter([tagged?], [yes], $@)])
+
+
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
+# ---------------------------------------------------------
+m4_define([_lt_decl_filter],
+[m4_case([$#],
+ [0], [m4_fatal([$0: too few arguments: $#])],
+ [1], [m4_fatal([$0: too few arguments: $#: $1])],
+ [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
+ [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
+])
+
+
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
+# --------------------------------------------------
+m4_define([lt_decl_quote_varnames],
+[_lt_decl_filter([value], [1], $@)])
+
+
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_dquote_varnames],
+[_lt_decl_filter([value], [2], $@)])
+
+
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_varnames_tagged],
+[m4_assert([$# <= 2])dnl
+_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
+ m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
+m4_define([_lt_decl_varnames_tagged],
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
+
+
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_all_varnames],
+[_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_if([$2], [],
+ m4_quote(lt_decl_varnames),
+ m4_quote(m4_shift($@))))[]dnl
+])
+m4_define([_lt_decl_all_varnames],
+[lt_join($@, lt_decl_varnames_tagged([$1],
+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
+])
+
+
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
+# ------------------------------------
+# Quote a variable value, and forward it to `config.status' so that its
+# declaration there will have the same value as in `configure'. VARNAME
+# must have a single quote delimited value for this to work.
+m4_define([_LT_CONFIG_STATUS_DECLARE],
+[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
+
+
+# _LT_CONFIG_STATUS_DECLARATIONS
+# ------------------------------
+# We delimit libtool config variables with single quotes, so when
+# we write them to config.status, we have to be sure to quote all
+# embedded single quotes properly. In configure, this macro expands
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
+#
+# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAGS
+# ----------------
+# Output comment and list of tags supported by the script
+m4_defun([_LT_LIBTOOL_TAGS],
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
+available_tags="_LT_TAGS"dnl
+])
+
+
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
+# -----------------------------------
+# Extract the dictionary values for VARNAME (optionally with TAG) and
+# expand to a commented shell variable setting:
+#
+# # Some comment about what VAR is for.
+# visible_name=$lt_internal_name
+m4_define([_LT_LIBTOOL_DECLARE],
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
+ [description])))[]dnl
+m4_pushdef([_libtool_name],
+ m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
+ [0], [_libtool_name=[$]$1],
+ [1], [_libtool_name=$lt_[]$1],
+ [2], [_libtool_name=$lt_[]$1],
+ [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
+])
+
+
+# _LT_LIBTOOL_CONFIG_VARS
+# -----------------------
+# Produce commented declarations of non-tagged libtool config variables
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
+# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
+[m4_foreach([_lt_var],
+ m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAG_VARS(TAG)
+# -------------------------
+m4_define([_LT_LIBTOOL_TAG_VARS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
+
+
+# _LT_TAGVAR(VARNAME, [TAGNAME])
+# ------------------------------
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
+
+
+# _LT_CONFIG_COMMANDS
+# -------------------
+# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
+# variables for single and double quote escaping we saved from calls
+# to _LT_DECL, we can put quote escaped variables declarations
+# into `config.status', and then the shell code to quote escape them in
+# for loops in `config.status'. Finally, any additional code accumulated
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
+m4_defun([_LT_CONFIG_COMMANDS],
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
+ dnl If the libtool generation code has been placed in $CONFIG_LT,
+ dnl instead of duplicating it all over again into config.status,
+ dnl then we will have config.status run $CONFIG_LT later, so it
+ dnl needs to know what name is stored there:
+ [AC_CONFIG_COMMANDS([libtool],
+ [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
+ dnl If the libtool generation code is destined for config.status,
+ dnl expand the accumulated commands and init code now:
+ [AC_CONFIG_COMMANDS([libtool],
+ [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
+])#_LT_CONFIG_COMMANDS
+
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
+[
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+_LT_CONFIG_STATUS_DECLARATIONS
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+ eval 'cat <<_LTECHO_EOF
+\$[]1
+_LTECHO_EOF'
+}
+
+# Quote evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_quote_varnames); do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_dquote_varnames); do
+ case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+_LT_OUTPUT_LIBTOOL_INIT
+])
+
+# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
+# ------------------------------------
+# Generate a child script FILE with all initialization necessary to
+# reuse the environment learned by the parent script, and make the
+# file executable. If COMMENT is supplied, it is inserted after the
+# `#!' sequence but before initialization text begins. After this
+# macro, additional text can be appended to FILE to form the body of
+# the child script. The macro ends with non-zero status if the
+# file could not be fully written (such as if the disk is full).
+m4_ifdef([AS_INIT_GENERATED],
+[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
+[m4_defun([_LT_GENERATED_FILE_INIT],
+[m4_require([AS_PREPARE])]dnl
+[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
+[lt_write_fail=0
+cat >$1 <<_ASEOF || lt_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+$2
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$1 <<\_ASEOF || lt_write_fail=1
+AS_SHELL_SANITIZE
+_AS_PREPARE
+exec AS_MESSAGE_FD>&1
+_ASEOF
+test $lt_write_fail = 0 && chmod +x $1[]dnl
+m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
+
+# LT_OUTPUT
+# ---------
+# This macro allows early generation of the libtool script (before
+# AC_OUTPUT is called), incase it is used in configure for compilation
+# tests.
+AC_DEFUN([LT_OUTPUT],
+[: ${CONFIG_LT=./config.lt}
+AC_MSG_NOTICE([creating $CONFIG_LT])
+_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
+[# Run this file to recreate a libtool stub with the current configuration.])
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+lt_cl_silent=false
+exec AS_MESSAGE_LOG_FD>>config.log
+{
+ echo
+ AS_BOX([Running $as_me.])
+} >&AS_MESSAGE_LOG_FD
+
+lt_cl_help="\
+\`$as_me' creates a local libtool stub from the current configuration,
+for use in further configure time tests before the real libtool is
+generated.
+
+Usage: $[0] [[OPTIONS]]
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+
+Report bugs to <bug-libtool at gnu.org>."
+
+lt_cl_version="\
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
+configured by $[0], generated by m4_PACKAGE_STRING.
+
+Copyright (C) 2011 Free Software Foundation, Inc.
+This config.lt script is free software; the Free Software Foundation
+gives unlimited permision to copy, distribute and modify it."
+
+while test $[#] != 0
+do
+ case $[1] in
+ --version | --v* | -V )
+ echo "$lt_cl_version"; exit 0 ;;
+ --help | --h* | -h )
+ echo "$lt_cl_help"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --quiet | --q* | --silent | --s* | -q )
+ lt_cl_silent=: ;;
+
+ -*) AC_MSG_ERROR([unrecognized option: $[1]
+Try \`$[0] --help' for more information.]) ;;
+
+ *) AC_MSG_ERROR([unrecognized argument: $[1]
+Try \`$[0] --help' for more information.]) ;;
+ esac
+ shift
+done
+
+if $lt_cl_silent; then
+ exec AS_MESSAGE_FD>/dev/null
+fi
+_LTEOF
+
+cat >>"$CONFIG_LT" <<_LTEOF
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AC_MSG_NOTICE([creating $ofile])
+_LT_OUTPUT_LIBTOOL_COMMANDS
+AS_EXIT(0)
+_LTEOF
+chmod +x "$CONFIG_LT"
+
+# configure is writing to config.log, but config.lt does its own redirection,
+# appending to config.log, which fails on DOS, as config.log is still kept
+# open by configure. Here we exec the FD to /dev/null, effectively closing
+# config.log, so it can be properly (re)opened and appended to by config.lt.
+lt_cl_success=:
+test "$silent" = yes &&
+ lt_config_lt_args="$lt_config_lt_args --quiet"
+exec AS_MESSAGE_LOG_FD>/dev/null
+$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+exec AS_MESSAGE_LOG_FD>>config.log
+$lt_cl_success || AS_EXIT(1)
+])# LT_OUTPUT
+
+
+# _LT_CONFIG(TAG)
+# ---------------
+# If TAG is the built-in tag, create an initial libtool script with a
+# default configuration from the untagged config vars. Otherwise add code
+# to config.status for appending the configuration named by TAG from the
+# matching tagged config vars.
+m4_defun([_LT_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_CONFIG_SAVE_COMMANDS([
+ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
+ m4_if(_LT_TAG, [C], [
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+_LT_COPYING
+_LT_LIBTOOL_TAGS
+
+# ### BEGIN LIBTOOL CONFIG
+_LT_LIBTOOL_CONFIG_VARS
+_LT_LIBTOOL_TAG_VARS
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+ _LT_PROG_LTMAIN
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '$q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ _LT_PROG_REPLACE_SHELLFNS
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+],
+[cat <<_LT_EOF >> "$ofile"
+
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
+dnl in a comment (ie after a #).
+# ### BEGIN LIBTOOL TAG CONFIG: $1
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
+# ### END LIBTOOL TAG CONFIG: $1
+_LT_EOF
+])dnl /m4_if
+],
+[m4_if([$1], [], [
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'], [])
+])dnl /_LT_CONFIG_SAVE_COMMANDS
+])# _LT_CONFIG
+
+
+# LT_SUPPORTED_TAG(TAG)
+# ---------------------
+# Trace this macro to discover what tags are supported by the libtool
+# --tag option, using:
+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
+AC_DEFUN([LT_SUPPORTED_TAG], [])
+
+
+# C support is built-in for now
+m4_define([_LT_LANG_C_enabled], [])
+m4_define([_LT_TAGS], [])
+
+
+# LT_LANG(LANG)
+# -------------
+# Enable libtool support for the given language if not already enabled.
+AC_DEFUN([LT_LANG],
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
+m4_case([$1],
+ [C], [_LT_LANG(C)],
+ [C++], [_LT_LANG(CXX)],
+ [Go], [_LT_LANG(GO)],
+ [Java], [_LT_LANG(GCJ)],
+ [Fortran 77], [_LT_LANG(F77)],
+ [Fortran], [_LT_LANG(FC)],
+ [Windows Resource], [_LT_LANG(RC)],
+ [m4_ifdef([_LT_LANG_]$1[_CONFIG],
+ [_LT_LANG($1)],
+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
+])# LT_LANG
+
+
+# _LT_LANG(LANGNAME)
+# ------------------
+m4_defun([_LT_LANG],
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
+ [LT_SUPPORTED_TAG([$1])dnl
+ m4_append([_LT_TAGS], [$1 ])dnl
+ m4_define([_LT_LANG_]$1[_enabled], [])dnl
+ _LT_LANG_$1_CONFIG($1)])dnl
+])# _LT_LANG
+
+
+m4_ifndef([AC_PROG_GO], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into #
+# GNU Autoconf as AC_PROG_GO. When it is available in #
+# a released version of Autoconf we should remove this #
+# macro and use it instead. #
+############################################################
+m4_defun([AC_PROG_GO],
+[AC_LANG_PUSH(Go)dnl
+AC_ARG_VAR([GOC], [Go compiler command])dnl
+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
+_AC_ARG_VAR_LDFLAGS()dnl
+AC_CHECK_TOOL(GOC, gccgo)
+if test -z "$GOC"; then
+ if test -n "$ac_tool_prefix"; then
+ AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
+ fi
+fi
+if test -z "$GOC"; then
+ AC_CHECK_PROG(GOC, gccgo, gccgo, false)
+fi
+])#m4_defun
+])#m4_ifndef
+
+
+# _LT_LANG_DEFAULT_CONFIG
+# -----------------------
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [LT_LANG(CXX)],
+ [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_F77],
+ [LT_LANG(F77)],
+ [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_FC],
+ [LT_LANG(FC)],
+ [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
+
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
+dnl pulling things in needlessly.
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [m4_ifdef([AC_PROG_GCJ],
+ [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([A][M_PROG_GCJ],
+ [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([LT_PROG_GCJ],
+ [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
+
+AC_PROVIDE_IFELSE([AC_PROG_GO],
+ [LT_LANG(GO)],
+ [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
+
+AC_PROVIDE_IFELSE([LT_PROG_RC],
+ [LT_LANG(RC)],
+ [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
+])# _LT_LANG_DEFAULT_CONFIG
+
+# Obsolete macros:
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
+AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
+dnl AC_DEFUN([AC_LIBTOOL_RC], [])
+
+
+# _LT_TAG_COMPILER
+# ----------------
+m4_defun([_LT_TAG_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_TAG_COMPILER
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+m4_defun([_LT_COMPILER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+m4_defun([_LT_LINKER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+])# _LT_LINKER_BOILERPLATE
+
+# _LT_REQUIRED_DARWIN_CHECKS
+# -------------------------
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
+ case $host_os in
+ rhapsody* | darwin*)
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
+ AC_CHECK_TOOL([LIPO], [lipo], [:])
+ AC_CHECK_TOOL([OTOOL], [otool], [:])
+ AC_CHECK_TOOL([OTOOL64], [otool64], [:])
+ _LT_DECL([], [DSYMUTIL], [1],
+ [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
+ _LT_DECL([], [NMEDIT], [1],
+ [Tool to change global to local symbols on Mac OS X])
+ _LT_DECL([], [LIPO], [1],
+ [Tool to manipulate fat objects and archives on Mac OS X])
+ _LT_DECL([], [OTOOL], [1],
+ [ldd/readelf like tool for Mach-O binaries on Mac OS X])
+ _LT_DECL([], [OTOOL64], [1],
+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
+
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
+ [lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ # If there is a non-empty error log, and "single_module"
+ # appears in it, assume the flag caused a linker warning
+ if test -s conftest.err && $GREP single_module conftest.err; then
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ # Otherwise, if the output was created with a 0 exit code from
+ # the compiler, it worked.
+ elif test -f libconftest.dylib && test $_lt_result -eq 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi])
+
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
+ [lt_cv_ld_exported_symbols_list],
+ [lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [lt_cv_ld_exported_symbols_list=yes],
+ [lt_cv_ld_exported_symbols_list=no])
+ LDFLAGS="$save_LDFLAGS"
+ ])
+
+ AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
+ [lt_cv_ld_force_load=no
+ cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
+ $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
+ echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
+ $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
+ echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
+ $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
+ cat > conftest.c << _LT_EOF
+int main() { return 0;}
+_LT_EOF
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
+ $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
+ _lt_result=$?
+ if test -s conftest.err && $GREP force_load conftest.err; then
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
+ lt_cv_ld_force_load=yes
+ else
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ fi
+ rm -f conftest.err libconftest.a conftest conftest.c
+ rm -rf conftest.dSYM
+ ])
+ case $host_os in
+ rhapsody* | darwin1.[[012]])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[[012]]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+])
+
+
+# _LT_DARWIN_LINKER_FEATURES([TAG])
+# ---------------------------------
+# Checks for linker and compiler features on darwin
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
+[
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ if test "$lt_cv_ld_force_load" = "yes"; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+ m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
+ [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=func_echo_all
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ m4_if([$1], [CXX],
+[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
+ fi
+],[])
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+])
+
+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
+# ----------------------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+# Store the results from the different compilers for each TAGNAME.
+# Allow to override them for all tags through lt_cv_aix_libpath.
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
+[m4_require([_LT_DECL_SED])dnl
+if test "${lt_cv_aix_libpath+set}" = set; then
+ aix_libpath=$lt_cv_aix_libpath
+else
+ AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
+ lt_aix_libpath_sed='[
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\([^ ]*\) *$/\1/
+ p
+ }
+ }]'
+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ # Check for a 64-bit object if we didn't find anything.
+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+ fi],[])
+ if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
+ _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
+ fi
+ ])
+ aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
+fi
+])# _LT_SYS_MODULE_PATH_AIX
+
+
+# _LT_SHELL_INIT(ARG)
+# -------------------
+m4_define([_LT_SHELL_INIT],
+[m4_divert_text([M4SH-INIT], [$1
+])])# _LT_SHELL_INIT
+
+
+
+# _LT_PROG_ECHO_BACKSLASH
+# -----------------------
+# Find how we can fake an echo command that does not interpret backslash.
+# In particular, with Autoconf 2.60 or later we add some code to the start
+# of the generated configure script which will find a shell with a builtin
+# printf (which we can use as an echo command).
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
+[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+
+AC_MSG_CHECKING([how to print strings])
+# Test print first, because it will be a builtin if present.
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
+ test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='print -r --'
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
+ ECHO='printf %s\n'
+else
+ # Use this function as a fallback that always works.
+ func_fallback_echo ()
+ {
+ eval 'cat <<_LTECHO_EOF
+$[]1
+_LTECHO_EOF'
+ }
+ ECHO='func_fallback_echo'
+fi
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+ $ECHO "$*"
+}
+
+case "$ECHO" in
+ printf*) AC_MSG_RESULT([printf]) ;;
+ print*) AC_MSG_RESULT([print -r]) ;;
+ *) AC_MSG_RESULT([cat]) ;;
+esac
+
+m4_ifdef([_AS_DETECT_SUGGESTED],
+[_AS_DETECT_SUGGESTED([
+ test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
+ ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+ PATH=/empty FPATH=/empty; export PATH FPATH
+ test "X`printf %s $ECHO`" = "X$ECHO" \
+ || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
+
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
+_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
+])# _LT_PROG_ECHO_BACKSLASH
+
+
+# _LT_WITH_SYSROOT
+# ----------------
+AC_DEFUN([_LT_WITH_SYSROOT],
+[AC_MSG_CHECKING([for sysroot])
+AC_ARG_WITH([sysroot],
+[ --with-sysroot[=DIR] Search for dependent libraries within DIR
+ (or the compiler's sysroot if not specified).],
+[], [with_sysroot=no])
+
+dnl lt_sysroot will always be passed unquoted. We quote it here
+dnl in case the user passed a directory name.
+lt_sysroot=
+case ${with_sysroot} in #(
+ yes)
+ if test "$GCC" = yes; then
+ lt_sysroot=`$CC --print-sysroot 2>/dev/null`
+ fi
+ ;; #(
+ /*)
+ lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
+ ;; #(
+ no|'')
+ ;; #(
+ *)
+ AC_MSG_RESULT([${with_sysroot}])
+ AC_MSG_ERROR([The sysroot must be an absolute path.])
+ ;;
+esac
+
+ AC_MSG_RESULT([${lt_sysroot:-no}])
+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
+[dependent libraries, and in which our libraries should be installed.])])
+
+# _LT_ENABLE_LOCK
+# ---------------
+m4_defun([_LT_ENABLE_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+ [AS_HELP_STRING([--disable-libtool-lock],
+ [avoid locking (might break parallel builds)])])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+ [AC_LANG_PUSH(C)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+ AC_LANG_POP])
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*)
+ case $host in
+ i?86-*-solaris*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ sparc*-*-solaris*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
+ if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
+ LD="${LD-ld}_sol2"
+ fi
+ ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+])# _LT_ENABLE_LOCK
+
+
+# _LT_PROG_AR
+# -----------
+m4_defun([_LT_PROG_AR],
+[AC_CHECK_TOOLS(AR, [ar], false)
+: ${AR=ar}
+: ${AR_FLAGS=cru}
+_LT_DECL([], [AR], [1], [The archiver])
+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
+
+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
+ [lt_cv_ar_at_file=no
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
+ [echo conftest.$ac_objext > conftest.lst
+ lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
+ AC_TRY_EVAL([lt_ar_try])
+ if test "$ac_status" -eq 0; then
+ # Ensure the archiver fails upon bogus file names.
+ rm -f conftest.$ac_objext libconftest.a
+ AC_TRY_EVAL([lt_ar_try])
+ if test "$ac_status" -ne 0; then
+ lt_cv_ar_at_file=@
+ fi
+ fi
+ rm -f conftest.* libconftest.a
+ ])
+ ])
+
+if test "x$lt_cv_ar_at_file" = xno; then
+ archiver_list_spec=
+else
+ archiver_list_spec=$lt_cv_ar_at_file
+fi
+_LT_DECL([], [archiver_list_spec], [1],
+ [How to feed a file listing to the archiver])
+])# _LT_PROG_AR
+
+
+# _LT_CMD_OLD_ARCHIVE
+# -------------------
+m4_defun([_LT_CMD_OLD_ARCHIVE],
+[_LT_PROG_AR
+
+AC_CHECK_TOOL(STRIP, strip, :)
+test -z "$STRIP" && STRIP=:
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
+
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+test -z "$RANLIB" && RANLIB=:
+_LT_DECL([], [RANLIB], [1],
+ [Commands used to install an old-style archive])
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
+fi
+
+case $host_os in
+ darwin*)
+ lock_old_archive_extraction=yes ;;
+ *)
+ lock_old_archive_extraction=no ;;
+esac
+_LT_DECL([], [old_postinstall_cmds], [2])
+_LT_DECL([], [old_postuninstall_cmds], [2])
+_LT_TAGDECL([], [old_archive_cmds], [2],
+ [Commands used to build an old-style archive])
+_LT_DECL([], [lock_old_archive_extraction], [0],
+ [Whether to use a lock for old archive extraction])
+])# _LT_CMD_OLD_ARCHIVE
+
+
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([_LT_COMPILER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$3"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ fi
+ $RM conftest*
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$5], , :, [$5])
+else
+ m4_if([$6], , :, [$6])
+fi
+])# _LT_COMPILER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
+
+
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------
+# Check whether the given linker option works
+AC_DEFUN([_LT_LINKER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $3"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
+ $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ else
+ $2=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$4], , :, [$4])
+else
+ m4_if([$5], , :, [$5])
+fi
+])# _LT_LINKER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
+
+
+# LT_CMD_MAX_LEN
+#---------------
+AC_DEFUN([LT_CMD_MAX_LEN],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ mint*)
+ # On MiNT this can take a long time and run out of memory.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ os2*)
+ # The test takes a long time on OS/2.
+ lt_cv_sys_max_cmd_len=8192
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
+ = "X$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+])
+if test -n $lt_cv_sys_max_cmd_len ; then
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+ AC_MSG_RESULT(none)
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+_LT_DECL([], [max_cmd_len], [0],
+ [What is the maximum length of a command?])
+])# LT_CMD_MAX_LEN
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
+
+
+# _LT_HEADER_DLFCN
+# ----------------
+m4_defun([_LT_HEADER_DLFCN],
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
+])# _LT_HEADER_DLFCN
+
+
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ----------------------------------------------------------------
+m4_defun([_LT_TRY_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "$cross_compiling" = yes; then :
+ [$4]
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+[#line $LINENO "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+/* When -fvisbility=hidden is used, assume the code has been annotated
+ correspondingly for the symbols needed. */
+#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 42; }
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else
+ {
+ if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ else puts (dlerror ());
+ }
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}]
+_LT_EOF
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) $1 ;;
+ x$lt_dlneed_uscore) $2 ;;
+ x$lt_dlunknown|x*) $3 ;;
+ esac
+ else :
+ # compilation failed
+ $3
+ fi
+fi
+rm -fr conftest*
+])# _LT_TRY_DLOPEN_SELF
+
+
+# LT_SYS_DLOPEN_SELF
+# ------------------
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ])
+ ;;
+
+ *)
+ AC_CHECK_FUNC([shl_load],
+ [lt_cv_dlopen="shl_load"],
+ [AC_CHECK_LIB([dld], [shl_load],
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
+ [AC_CHECK_FUNC([dlopen],
+ [lt_cv_dlopen="dlopen"],
+ [AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
+ [AC_CHECK_LIB([svld], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
+ [AC_CHECK_LIB([dld], [dld_link],
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
+ ])
+ ])
+ ])
+ ])
+ ])
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ AC_CACHE_CHECK([whether a program can dlopen itself],
+ lt_cv_dlopen_self, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+ ])
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+ lt_cv_dlopen_self_static, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
+ ])
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
+ [Whether dlopen is supported])
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
+ [Whether dlopen of programs is supported])
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
+ [Whether dlopen of statically linked programs is supported])
+])# LT_SYS_DLOPEN_SELF
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
+
+
+# _LT_COMPILER_C_O([TAGNAME])
+# ---------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler.
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
+m4_defun([_LT_COMPILER_C_O],
+[m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+ fi
+ fi
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+])
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
+ [Does compiler simultaneously support -c and -o options?])
+])# _LT_COMPILER_C_O
+
+
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
+# ----------------------------------
+# Check to see if we can do hard links to lock some files if needed
+m4_defun([_LT_COMPILER_FILE_LOCKS],
+[m4_require([_LT_ENABLE_LOCK])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_COMPILER_C_O([$1])
+
+hard_links="nottested"
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ AC_MSG_CHECKING([if we can lock with hard links])
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ AC_MSG_RESULT([$hard_links])
+ if test "$hard_links" = no; then
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
+])# _LT_COMPILER_FILE_LOCKS
+
+
+# _LT_CHECK_OBJDIR
+# ----------------
+m4_defun([_LT_CHECK_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null])
+objdir=$lt_cv_objdir
+_LT_DECL([], [objdir], [0],
+ [The name of the directory that contains temporary libtool files])dnl
+m4_pattern_allow([LT_OBJDIR])dnl
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
+])# _LT_CHECK_OBJDIR
+
+
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
+# --------------------------------------
+# Check hardcoding attributes.
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_TAGVAR(hardcode_action, $1)=
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
+ # Linking always hardcodes the temporary library directory.
+ _LT_TAGVAR(hardcode_action, $1)=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ _LT_TAGVAR(hardcode_action, $1)=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ _LT_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
+
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+_LT_TAGDECL([], [hardcode_action], [0],
+ [How to hardcode a shared library path into an executable])
+])# _LT_LINKER_HARDCODE_LIBPATH
+
+
+# _LT_CMD_STRIPLIB
+# ----------------
+m4_defun([_LT_CMD_STRIPLIB],
+[m4_require([_LT_DECL_EGREP])
+striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+fi
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
+_LT_DECL([], [striplib], [1])
+])# _LT_CMD_STRIPLIB
+
+
+# _LT_SYS_DYNAMIC_LINKER([TAG])
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_OBJDUMP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+AC_MSG_CHECKING([dynamic linker characteristics])
+m4_if([$1],
+ [], [
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ case $host_os in
+ mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
+ *) lt_sed_strip_eq="s,=/,/,g" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
+ case $lt_search_path_spec in
+ *\;*)
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
+ ;;
+ *)
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ esac
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+ # AWK program above erroneously prepends '/' to C:/dos/paths
+ # for these hosts.
+ case $host_os in
+ mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
+ $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
+ esac
+ sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[[4-9]]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[[45]]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$cc_basename in
+ yes,*)
+ # gcc
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ ;;
+
+ *,cl*)
+ # Native MSVC
+ libname_spec='$name'
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ library_names_spec='${libname}.dll.lib'
+
+ case $build_os in
+ mingw*)
+ sys_lib_search_path_spec=
+ lt_save_ifs=$IFS
+ IFS=';'
+ for lt_path in $LIB
+ do
+ IFS=$lt_save_ifs
+ # Let DOS variable expansion print the short 8.3 style file name.
+ lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+ sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+ done
+ IFS=$lt_save_ifs
+ # Convert to MSYS style.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
+ ;;
+ cygwin*)
+ # Convert to unix form, then to dos form, then back to unix form
+ # but this time dos style (no spaces!) so that the unix form looks
+ # like /cygdrive/c/PROGRA~1:/cygdr...
+ sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+ sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+ sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ ;;
+ *)
+ sys_lib_search_path_spec="$LIB"
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
+ # It is most probably a Windows format PATH.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # FIXME: find the short name or the path components, as spaces are
+ # common. (e.g. "Program Files" -> "PROGRA~1")
+ ;;
+ esac
+
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+ dynamic_linker='Win32 link.exe'
+ ;;
+
+ *)
+ # Assume MSVC wrapper
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ dynamic_linker='Win32 ld.exe'
+ ;;
+ esac
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[[23]].*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2.*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+haiku*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ dynamic_linker="$host_os runtime_loader"
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
+ postinstall_cmds='chmod 555 $lib'
+ # or fails outright, so override atomically:
+ install_override_mode=555
+ ;;
+
+interix[[3-9]]*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux # correct to gnu/linux during the next big refactor
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+
+ # Some binutils ld are patched to set DT_RUNPATH
+ AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
+ [lt_cv_shlibpath_overrides_runpath=no
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
+ [lt_cv_shlibpath_overrides_runpath=yes])])
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+ ])
+ shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsdelf*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='NetBSD ld.elf_so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[[89]] | openbsd2.[[89]].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux # correct to gnu/linux during the next big refactor
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux # correct to gnu/linux during the next big refactor
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+_LT_DECL([], [variables_saved_for_relink], [1],
+ [Variables whose values should be saved in libtool wrapper scripts and
+ restored at link time])
+_LT_DECL([], [need_lib_prefix], [0],
+ [Do we need the "lib" prefix for modules?])
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
+_LT_DECL([], [version_type], [0], [Library versioning type])
+_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
+ [Is shlibpath searched before the hard-coded library search path?])
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
+_LT_DECL([], [library_names_spec], [1],
+ [[List of archive names. First name is the real one, the rest are links.
+ The last name is the one that the linker finds with -lNAME]])
+_LT_DECL([], [soname_spec], [1],
+ [[The coded name of the library, if different from the real name]])
+_LT_DECL([], [install_override_mode], [1],
+ [Permission mode override for installation of shared libraries])
+_LT_DECL([], [postinstall_cmds], [2],
+ [Command to use after installation of a shared archive])
+_LT_DECL([], [postuninstall_cmds], [2],
+ [Command to use after uninstallation of a shared archive])
+_LT_DECL([], [finish_cmds], [2],
+ [Commands used to finish a libtool library installation in a directory])
+_LT_DECL([], [finish_eval], [1],
+ [[As "finish_cmds", except a single script fragment to be evaled but
+ not shown]])
+_LT_DECL([], [hardcode_into_libs], [0],
+ [Whether we should hardcode library paths into libraries])
+_LT_DECL([], [sys_lib_search_path_spec], [2],
+ [Compile-time system search path for libraries])
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
+ [Run-time system search path for libraries])
+])# _LT_SYS_DYNAMIC_LINKER
+
+
+# _LT_PATH_TOOL_PREFIX(TOOL)
+# --------------------------
+# find a file program which can recognize shared library
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
+[m4_require([_LT_DECL_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] | ?:[\\/]*])
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word. This closes a longstanding sh security hole.
+ ac_dummy="m4_if([$2], , $PATH, [$2])"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$1; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool at gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac])
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ AC_MSG_RESULT($MAGIC_CMD)
+else
+ AC_MSG_RESULT(no)
+fi
+_LT_DECL([], [MAGIC_CMD], [0],
+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
+])# _LT_PATH_TOOL_PREFIX
+
+# Old name:
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
+
+
+# _LT_PATH_MAGIC
+# --------------
+# find a file program which can recognize a shared library
+m4_defun([_LT_PATH_MAGIC],
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+ else
+ MAGIC_CMD=:
+ fi
+fi
+])# _LT_PATH_MAGIC
+
+
+# LT_PATH_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([LT_PATH_LD],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
+
+AC_ARG_WITH([gnu-ld],
+ [AS_HELP_STRING([--with-gnu-ld],
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+ [test "$withval" = no || with_gnu_ld=yes],
+ [with_gnu_ld=no])dnl
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by $CC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]]* | ?:[[\\/]]*)
+ re_direlt='/[[^/]][[^/]]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+_LT_PATH_LD_GNU
+AC_SUBST([LD])
+
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
+])# LT_PATH_LD
+
+# Old names:
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_LD], [])
+dnl AC_DEFUN([AC_PROG_LD], [])
+
+
+# _LT_PATH_LD_GNU
+#- --------------
+m4_defun([_LT_PATH_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# _LT_PATH_LD_GNU
+
+
+# _LT_CMD_RELOAD
+# --------------
+# find reload flag for linker
+# -- PORTME Some linkers may need a different reload flag.
+m4_defun([_LT_CMD_RELOAD],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+ lt_cv_ld_reload_flag,
+ [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ if test "$GCC" != yes; then
+ reload_cmds=false
+ fi
+ ;;
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
+_LT_TAGDECL([], [reload_cmds], [2])dnl
+])# _LT_CMD_RELOAD
+
+
+# _LT_CHECK_MAGIC_METHOD
+# ----------------------
+# how to check for library dependencies
+# -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_MAGIC_METHOD],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[[4-9]]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[[45]]*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
+ if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ # Keep this pattern in sync with the one in func_win32_libid.
+ lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc*)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+haiku*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[[3-9]]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+])
+
+file_magic_glob=
+want_nocaseglob=no
+if test "$build" = "$host"; then
+ case $host_os in
+ mingw* | pw32*)
+ if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
+ want_nocaseglob=yes
+ else
+ file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
+ fi
+ ;;
+ esac
+fi
+
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+_LT_DECL([], [deplibs_check_method], [1],
+ [Method to check whether dependent libraries are shared objects])
+_LT_DECL([], [file_magic_cmd], [1],
+ [Command to use when deplibs_check_method = "file_magic"])
+_LT_DECL([], [file_magic_glob], [1],
+ [How to find potential files when deplibs_check_method = "file_magic"])
+_LT_DECL([], [want_nocaseglob], [1],
+ [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
+])# _LT_CHECK_MAGIC_METHOD
+
+
+# LT_PATH_NM
+# ----------
+# find the pathname to a BSD- or MS-compatible name lister
+AC_DEFUN([LT_PATH_NM],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
+[if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi])
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ if test -n "$DUMPBIN"; then :
+ # Let the user override the test.
+ else
+ AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
+ case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
+ *COFF*)
+ DUMPBIN="$DUMPBIN -symbols"
+ ;;
+ *)
+ DUMPBIN=:
+ ;;
+ esac
+ fi
+ AC_SUBST([DUMPBIN])
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+AC_SUBST([NM])
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
+
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
+ [lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
+ cat conftest.out >&AS_MESSAGE_LOG_FD
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*])
+])# LT_PATH_NM
+
+# Old names:
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_NM], [])
+dnl AC_DEFUN([AC_PROG_NM], [])
+
+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
+# --------------------------------
+# how to determine the name of the shared library
+# associated with a specific link library.
+# -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+m4_require([_LT_DECL_DLLTOOL])
+AC_CACHE_CHECK([how to associate runtime and link libraries],
+lt_cv_sharedlib_from_linklib_cmd,
+[lt_cv_sharedlib_from_linklib_cmd='unknown'
+
+case $host_os in
+cygwin* | mingw* | pw32* | cegcc*)
+ # two different shell functions defined in ltmain.sh
+ # decide which to use based on capabilities of $DLLTOOL
+ case `$DLLTOOL --help 2>&1` in
+ *--identify-strict*)
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
+ ;;
+ *)
+ lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
+ ;;
+ esac
+ ;;
+*)
+ # fallback: assume linklib IS sharedlib
+ lt_cv_sharedlib_from_linklib_cmd="$ECHO"
+ ;;
+esac
+])
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
+
+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
+ [Command to associate shared and link libraries])
+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
+
+
+# _LT_PATH_MANIFEST_TOOL
+# ----------------------
+# locate the manifest tool
+m4_defun([_LT_PATH_MANIFEST_TOOL],
+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
+ [lt_cv_path_mainfest_tool=no
+ echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
+ $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ if $GREP 'Manifest Tool' conftest.out > /dev/null; then
+ lt_cv_path_mainfest_tool=yes
+ fi
+ rm -f conftest*])
+if test "x$lt_cv_path_mainfest_tool" != xyes; then
+ MANIFEST_TOOL=:
+fi
+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
+])# _LT_PATH_MANIFEST_TOOL
+
+
+# LT_LIB_M
+# --------
+# check for math library
+AC_DEFUN([LT_LIB_M],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
+ # These system don't have libm, or don't need it
+ ;;
+*-ncr-sysv4.3*)
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
+ ;;
+*)
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
+ ;;
+esac
+AC_SUBST([LIBM])
+])# LT_LIB_M
+
+# Old name:
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
+
+
+# _LT_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------
+m4_defun([_LT_COMPILER_NO_RTTI],
+[m4_require([_LT_TAG_COMPILER])dnl
+
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test "$GCC" = yes; then
+ case $cc_basename in
+ nvcc*)
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
+ esac
+
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+ lt_cv_prog_compiler_rtti_exceptions,
+ [-fno-rtti -fno-exceptions], [],
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
+fi
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
+ [Compiler flag to turn off builtin functions])
+])# _LT_COMPILER_NO_RTTI
+
+
+# _LT_CMD_GLOBAL_SYMBOLS
+# ----------------------
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[[BCDT]]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[[ABCDGISTW]]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[[ABCDEGRST]]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[[BCDEGRST]]'
+ ;;
+osf*)
+ symcode='[[BCDEGQRST]]'
+ ;;
+solaris*)
+ symcode='[[BDRT]]'
+ ;;
+sco3.2v5*)
+ symcode='[[DT]]'
+ ;;
+sysv4.2uw2*)
+ symcode='[[DT]]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[[ABDT]]'
+ ;;
+sysv4)
+ symcode='[[DFNSTU]]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
+" {last_section=section; section=\$ 3};"\
+" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx]"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+ lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if AC_TRY_EVAL(ac_compile); then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
+#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
+/* DATA imports from DLLs on WIN32 con't be const, because runtime
+ relocations are performed -- see ld's documentation on pseudo-relocs. */
+# define LT@&t at _DLSYM_CONST
+#elif defined(__osf__)
+/* This system does not cope well with relocations in const data. */
+# define LT@&t at _DLSYM_CONST
+#else
+# define LT@&t at _DLSYM_CONST const
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+LT@&t at _DLSYM_CONST struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_globsym_save_LIBS=$LIBS
+ lt_globsym_save_CFLAGS=$CFLAGS
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS=$lt_globsym_save_LIBS
+ CFLAGS=$lt_globsym_save_CFLAGS
+ else
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+])
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ AC_MSG_RESULT(failed)
+else
+ AC_MSG_RESULT(ok)
+fi
+
+# Response file support.
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ nm_file_list_spec='@'
+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
+ nm_file_list_spec='@'
+fi
+
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
+ [Take the output of nm and produce a listing of raw symbols and C names])
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
+ [Transform the output of nm in a proper C declaration])
+_LT_DECL([global_symbol_to_c_name_address],
+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
+ [Transform the output of nm in a C name address pair])
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
+ [Transform the output of nm in a C name address pair when lib prefix is needed])
+_LT_DECL([], [nm_file_list_spec], [1],
+ [Specify filename containing input files for $NM])
+]) # _LT_CMD_GLOBAL_SYMBOLS
+
+
+# _LT_COMPILER_PIC([TAGNAME])
+# ---------------------------
+m4_defun([_LT_COMPILER_PIC],
+[m4_require([_LT_TAG_COMPILER])dnl
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
+
+m4_if([$1], [CXX], [
+ # C++ specific cases for pic, static, wl, etc.
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+ *djgpp*)
+ # DJGPP does not support shared libraries at all
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ haiku*)
+ # PIC is the default for Haiku.
+ # The "-static" flag exists, but is broken.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)=
+ ;;
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix[[4-9]]*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ cxch68*)
+ # Green Hills C++ Compiler
+ # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+ ;;
+ esac
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ freebsd* | dragonfly*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ fi
+ ;;
+ aCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ interix*)
+ # This is c89, which is MS Visual C++ (no shared libs)
+ # Anyone wants to do a port?
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ # CC pic flag -KPIC is the default.
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ KCC*)
+ # KAI C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ ecpc* )
+ # old Intel C++ for x86_64 which still supported -KPIC.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ icpc* )
+ # Intel C++, used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ cxx*)
+ # Compaq C++
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
+ # IBM XL 8.0, 9.0 on PPC and BlueGene
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd* | netbsdelf*-gnu)
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ cxx*)
+ # Digital/Compaq C++
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ psos*)
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC* | sunCC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ lcc*)
+ # Lucid
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ vxworks*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+],
+[
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+
+ haiku*)
+ # PIC is the default for Haiku.
+ # The "-static" flag exists, but is broken.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)=
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+
+ case $cc_basename in
+ nvcc*) # Cuda Compiler Driver 2.2
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
+ if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
+ fi
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC (with -KPIC) is the default.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
+ ;;
+ nagfor*)
+ # NAG Fortran compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ ccc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All Alpha code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xl* | bgxl* | bgf* | mpixl*)
+ # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
+ ;;
+ *Sun\ F* | *Sun*Fortran*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ *Sun\ C*)
+ # Sun C 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ *Intel*\ [[CF]]*Compiler*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ *Portland\ Group*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All OSF/1 code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ rdos*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ unicos*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+])
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t at m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
+ ;;
+esac
+
+AC_CACHE_CHECK([for $compiler option to produce PIC],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
+ [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t at m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
+ [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
+ "" | " "*) ;;
+ *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
+ esac],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
+ [Additional compiler flags for building library objects])
+
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
+ [How to pass a linker flag through the compiler])
+#
+# Check to make sure the static flag actually works.
+#
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
+ _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
+ $lt_tmp_static_flag,
+ [],
+ [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
+ [Compiler flag to prevent dynamic linking])
+])# _LT_COMPILER_PIC
+
+
+# _LT_LINKER_SHLIBS([TAGNAME])
+# ----------------------------
+# See if the linker supports building shared libraries.
+m4_defun([_LT_LINKER_SHLIBS],
+[AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+m4_if([$1], [CXX], [
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+ case $host_os in
+ aix[[4-9]]*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ # Also, AIX nm treats weak defined symbols like other global defined
+ # symbols, whereas GNU nm marks them as "W".
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
+ ;;
+ cygwin* | mingw* | cegcc*)
+ case $cc_basename in
+ cl*)
+ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+ ;;
+ *)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
+ ;;
+ esac
+ ;;
+ linux* | k*bsd*-gnu | gnu*)
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+], [
+ runpath_var=
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_cmds, $1)=
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(compiler_needs_object, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(hardcode_automatic, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(inherit_rpath, $1)=no
+ _LT_TAGVAR(link_all_deplibs, $1)=unknown
+ _LT_TAGVAR(module_cmds, $1)=
+ _LT_TAGVAR(module_expsym_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+ _LT_TAGVAR(thread_safe_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ _LT_TAGVAR(include_expsyms, $1)=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+dnl Note also adjust exclude_expsyms for C++ above.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ linux* | k*bsd*-gnu | gnu*)
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ ;;
+ esac
+
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+
+ # On some targets, GNU ld is compatible enough with the native linker
+ # that we're better off using the native interface for both.
+ lt_use_gnu_ld_interface=no
+ if test "$with_gnu_ld" = yes; then
+ case $host_os in
+ aix*)
+ # The AIX port of GNU ld has always aspired to compatibility
+ # with the native linker. However, as the warning in the GNU ld
+ # block says, versions before 2.19.5* couldn't really create working
+ # shared libraries, regardless of the interface used.
+ case `$LD -v 2>&1` in
+ *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
+ *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
+ *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
+ *)
+ lt_use_gnu_ld_interface=yes
+ ;;
+ esac
+ ;;
+ *)
+ lt_use_gnu_ld_interface=yes
+ ;;
+ esac
+ fi
+
+ if test "$lt_use_gnu_ld_interface" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *GNU\ gold*) supports_anon_versioning=yes ;;
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[[3-9]]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.19, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to install binutils
+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
+*** You will then need to restart the configuration process.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ haiku*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=' $pic_flag'
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95* | pgfortran*)
+ # Portland Group f77 and f90 compilers
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ tmp_sharedflag='--shared' ;;
+ xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ nvcc*) # Cuda Compiler Driver 2.2
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+ ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf* | bgf* | bgxlf* | mpixlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+
+ if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
+ runpath_var=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ # Also, AIX nm treats weak defined symbols like other global
+ # defined symbols, whereas GNU nm marks them as "W".
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX([$1])
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX([$1])
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ if test "$with_gnu_ld" = yes; then
+ # We only use this code for GNU lds that support --whole-archive.
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ else
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[[45]]*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ case $cc_basename in
+ cl*)
+ # Native MSVC
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='@'
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
+ else
+ sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
+ fi~
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+ linknames='
+ # The linker will not automatically build a static lib if we build a DLL.
+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+ # Don't use ranlib
+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
+ case $lt_outputfile in
+ *.exe|*.EXE) ;;
+ *)
+ lt_outputfile="$lt_outputfile.exe"
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
+ ;;
+ esac~
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+ $RM "$lt_outputfile.manifest";
+ fi'
+ ;;
+ *)
+ # Assume MSVC wrapper
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+ # FIXME: Should let the user specify the lib program.
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ ;;
+ esac
+ ;;
+
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2.*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes && test "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ m4_if($1, [], [
+ # Older versions of the 11.00 compiler do not understand -b yet
+ # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
+ _LT_LINKER_OPTION([if $CC understands -b],
+ _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
+ [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
+ [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
+ [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ # This should be the same for all languages, so no per-tag cache variable.
+ AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
+ [lt_cv_irix_exported_symbol],
+ [save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ AC_LINK_IFELSE(
+ [AC_LANG_SOURCE(
+ [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
+ [C++], [[int foo (void) { return 0; }]],
+ [Fortran 77], [[
+ subroutine foo
+ end]],
+ [Fortran], [[
+ subroutine foo
+ end]])])],
+ [lt_cv_irix_exported_symbol=yes],
+ [lt_cv_irix_exported_symbol=no])
+ LDFLAGS="$save_LDFLAGS"])
+ if test "$lt_cv_irix_exported_symbol" = yes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+ fi
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ else
+ case $host_os in
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ os2*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ ;;
+ motorola)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4.3*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+])
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
+
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
+_LT_DECL([], [extract_expsyms_cmds], [2],
+ [The commands to extract the exported symbol list from a shared archive])
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
+x|xyes)
+ # Assume -lc should be added
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $_LT_TAGVAR(archive_cmds, $1) in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ AC_CACHE_CHECK([whether -lc should be explicitly linked in],
+ [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
+ [$RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
+ then
+ lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ else
+ lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ fi
+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+ ])
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
+ [Whether or not to add -lc for building shared libraries])
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
+ [enable_shared_with_static_runtimes], [0],
+ [Whether or not to disallow shared libs when runtime libs are static])
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
+ [Compiler flag to allow reflexive dlopens])
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
+ [Compiler flag to generate shared objects directly from archives])
+_LT_TAGDECL([], [compiler_needs_object], [1],
+ [Whether the compiler copes with passing no objects directly])
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
+ [Create an old-style archive from a shared archive])
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
+ [Create a temporary old-style archive to link instead of a shared archive])
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
+_LT_TAGDECL([], [module_cmds], [2],
+ [Commands used to build a loadable module if different from building
+ a shared archive.])
+_LT_TAGDECL([], [module_expsym_cmds], [2])
+_LT_TAGDECL([], [with_gnu_ld], [1],
+ [Whether we are building with GNU ld or not])
+_LT_TAGDECL([], [allow_undefined_flag], [1],
+ [Flag that allows shared libraries with undefined symbols to be built])
+_LT_TAGDECL([], [no_undefined_flag], [1],
+ [Flag that enforces no undefined symbols])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
+ [Flag to hardcode $libdir into a binary during linking.
+ This must work even if $libdir does not exist])
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
+ [Whether we need a single "-rpath" flag with a separated argument])
+_LT_TAGDECL([], [hardcode_direct], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary])
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary and the resulting library dependency is
+ "absolute", i.e impossible to change by setting ${shlibpath_var} if the
+ library is relocated])
+_LT_TAGDECL([], [hardcode_minus_L], [0],
+ [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
+ [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_automatic], [0],
+ [Set to "yes" if building a shared library automatically hardcodes DIR
+ into the library and all subsequent libraries and executables linked
+ against it])
+_LT_TAGDECL([], [inherit_rpath], [0],
+ [Set to yes if linker adds runtime paths of dependent libraries
+ to runtime path list])
+_LT_TAGDECL([], [link_all_deplibs], [0],
+ [Whether libtool must link a program against all its dependency libraries])
+_LT_TAGDECL([], [always_export_symbols], [0],
+ [Set to "yes" if exported symbols are required])
+_LT_TAGDECL([], [export_symbols_cmds], [2],
+ [The commands to list exported symbols])
+_LT_TAGDECL([], [exclude_expsyms], [1],
+ [Symbols that should not be listed in the preloaded symbols])
+_LT_TAGDECL([], [include_expsyms], [1],
+ [Symbols that must always be exported])
+_LT_TAGDECL([], [prelink_cmds], [2],
+ [Commands necessary for linking programs (against libraries) with templates])
+_LT_TAGDECL([], [postlink_cmds], [2],
+ [Commands necessary for finishing linking programs])
+_LT_TAGDECL([], [file_list_spec], [1],
+ [Specify filename containing input files])
+dnl FIXME: Not yet implemented
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
+dnl [Compiler flag to generate thread safe objects])
+])# _LT_LINKER_SHLIBS
+
+
+# _LT_LANG_C_CONFIG([TAG])
+# ------------------------
+# Ensure that the configuration variables for a C compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_C_CONFIG],
+[m4_require([_LT_DECL_EGREP])dnl
+lt_save_CC="$CC"
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_LT_TAG_COMPILER
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+ LT_SYS_DLOPEN_SELF
+ _LT_CMD_STRIPLIB
+
+ # Report which library types will actually be built
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_CONFIG($1)
+fi
+AC_LANG_POP
+CC="$lt_save_CC"
+])# _LT_LANG_C_CONFIG
+
+
+# _LT_LANG_CXX_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a C++ compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_CXX_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ AC_PROG_CXXCPP
+else
+ _lt_caught_CXX_error=yes
+fi
+
+AC_LANG_PUSH(C++)
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(compiler_needs_object, $1)=no
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_caught_CXX_error" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="int some_variable = 0;"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC=$CC
+ lt_save_CFLAGS=$CFLAGS
+ lt_save_LD=$LD
+ lt_save_GCC=$GCC
+ GCC=$GXX
+ lt_save_with_gnu_ld=$with_gnu_ld
+ lt_save_path_LD=$lt_cv_path_LD
+ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+ else
+ $as_unset lt_cv_prog_gnu_ld
+ fi
+ if test -n "${lt_cv_path_LDCXX+set}"; then
+ lt_cv_path_LD=$lt_cv_path_LDCXX
+ else
+ $as_unset lt_cv_path_LD
+ fi
+ test -z "${LDCXX+set}" || LD=$LDCXX
+ CC=${CXX-"c++"}
+ CFLAGS=$CXXFLAGS
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ # We don't want -fno-exception when compiling C++ code, so set the
+ # no_builtin_flag separately
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+ else
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+ fi
+
+ if test "$GXX" = yes; then
+ # Set up default GNU C++ configuration
+
+ LT_PATH_LD
+
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
+ # archiving commands below assume that GNU ld is being used.
+ if test "$with_gnu_ld" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+ # investigate it a little bit more. (MM)
+ wlarc='${wl}'
+
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" |
+ $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ with_gnu_ld=no
+ wlarc=
+
+ # A generic and very simple default shared library creation
+ # command for GNU C++ for the case where it uses the native
+ # linker, instead of GNU ld. If possible, this setting should
+ # overridden to take advantage of the native linker features on
+ # the platform it is being used on.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ fi
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+
+ else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+ fi
+
+ # PORTME: fill in a description of your system's C++ link characteristics
+ AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GXX" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to
+ # export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an empty
+ # executable.
+ _LT_SYS_MODULE_PATH_AIX([$1])
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX([$1])
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ if test "$with_gnu_ld" = yes; then
+ # We only use this code for GNU lds that support --whole-archive.
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ else
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared
+ # libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3 at best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $GXX,$cc_basename in
+ ,cl* | no,cl*)
+ # Native MSVC
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='@'
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
+ else
+ $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
+ fi~
+ $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+ linknames='
+ # The linker will not automatically build a static lib if we build a DLL.
+ # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ # Don't use ranlib
+ _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
+ _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
+ lt_tool_outputfile="@TOOL_OUTPUT@"~
+ case $lt_outputfile in
+ *.exe|*.EXE) ;;
+ *)
+ lt_outputfile="$lt_outputfile.exe"
+ lt_tool_outputfile="$lt_tool_outputfile.exe"
+ ;;
+ esac~
+ func_to_tool_file "$lt_outputfile"~
+ if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
+ $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+ $RM "$lt_outputfile.manifest";
+ fi'
+ ;;
+ *)
+ # g++
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ freebsd2.*)
+ # C++ shared libraries reported to be fairly broken before
+ # switch to ELF
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ freebsd-elf*)
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ ;;
+
+ freebsd* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ gnu*)
+ ;;
+
+ haiku*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ hpux9*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ hpux10*|hpux11*)
+ if test $with_gnu_ld = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+ esac
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ esac
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test $with_gnu_ld = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ fi
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+ irix5* | irix6*)
+ case $cc_basename in
+ CC*)
+ # SGI C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+
+ # Archives containing C++ object files must be created using
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
+ fi
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+ esac
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+ ;;
+ icpc* | ecpc* )
+ # Intel C++
+ with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves.
+ case `$CC -V 2>&1` in
+ *"Version 7."*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 8.0 or newer
+ tmp_idyn=
+ case $host_cpu in
+ ia64*) tmp_idyn=' -i_dynamic';;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ case `$CC -V` in
+ *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
+ _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+ compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
+ _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
+ $RANLIB $oldlib'
+ _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ *) # Version 6 and above use weak symbols
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ ;;
+ cxx*)
+ # Compaq C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
+ ;;
+ xl* | mpixl* | bgxl*)
+ # IBM XL 8.0 on PPC, with GNU ld
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ output_verbose_link_cmd='func_echo_all'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ lynxos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ m88k*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ fi
+ # Workaround some broken pre-1.5 toolchains
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+ ;;
+
+ *nto* | *qnx*)
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ openbsd2*)
+ # C++ shared libraries are fairly broken
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ fi
+ output_verbose_link_cmd=func_echo_all
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Archives containing C++ object files must be created using
+ # the KAI C++ compiler.
+ case $host in
+ osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
+ *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
+ esac
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ cxx*)
+ case $host in
+ osf3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+ echo "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
+ $RM $lib.exp'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ case $host in
+ osf3*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ psos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ lcc*)
+ # Lucid
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ solaris*)
+ case $cc_basename in
+ CC* | sunCC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+
+ output_verbose_link_cmd='func_echo_all'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+ # The C++ compiler must be used to create the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+ ;;
+ *)
+ # GNU C++ compiler with Solaris linker
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+ else
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
+ # platform.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+ fi
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
+ '"$_LT_TAGVAR(old_archive_cmds, $1)"
+ _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
+ '"$_LT_TAGVAR(reload_cmds, $1)"
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ vxworks*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+ test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+ _LT_TAGVAR(GCC, $1)="$GXX"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ CC=$lt_save_CC
+ CFLAGS=$lt_save_CFLAGS
+ LDCXX=$LD
+ LD=$lt_save_LD
+ GCC=$lt_save_GCC
+ with_gnu_ld=$lt_save_with_gnu_ld
+ lt_cv_path_LDCXX=$lt_cv_path_LD
+ lt_cv_path_LD=$lt_save_path_LD
+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+fi # test "$_lt_caught_CXX_error" != yes
+
+AC_LANG_POP
+])# _LT_LANG_CXX_CONFIG
+
+
+# _LT_FUNC_STRIPNAME_CNF
+# ----------------------
+# func_stripname_cnf prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+#
+# This function is identical to the (non-XSI) version of func_stripname,
+# except this one can be used by m4 code that may be executed by configure,
+# rather than the libtool script.
+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
+AC_REQUIRE([_LT_DECL_SED])
+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
+func_stripname_cnf ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
+ esac
+} # func_stripname_cnf
+])# _LT_FUNC_STRIPNAME_CNF
+
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
+# ---------------------------------
+# Figure out "hidden" library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
+# Dependencies to place before and after the object being linked:
+_LT_TAGVAR(predep_objects, $1)=
+_LT_TAGVAR(postdep_objects, $1)=
+_LT_TAGVAR(predeps, $1)=
+_LT_TAGVAR(postdeps, $1)=
+_LT_TAGVAR(compiler_lib_search_path, $1)=
+
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library. It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
+int a;
+void foo (void) { a = 0; }
+_LT_EOF
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+_LT_EOF
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer*4 a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
+public class foo {
+ private int a;
+ public void bar (void) {
+ a = 0;
+ }
+};
+_LT_EOF
+], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
+package foo
+func foo() {
+}
+_LT_EOF
+])
+
+_lt_libdeps_save_CFLAGS=$CFLAGS
+case "$CC $CFLAGS " in #(
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
+esac
+
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+ # Parse the compiler output and extract the necessary
+ # objects, libraries and library flags.
+
+ # Sentinel used to keep track of whether or not we are before
+ # the conftest object file.
+ pre_test_object_deps_done=no
+
+ for p in `eval "$output_verbose_link_cmd"`; do
+ case ${prev}${p} in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test $p = "-L" ||
+ test $p = "-R"; then
+ prev=$p
+ continue
+ fi
+
+ # Expand the sysroot to ease extracting the directories later.
+ if test -z "$prev"; then
+ case $p in
+ -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
+ -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
+ -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
+ esac
+ fi
+ case $p in
+ =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
+ esac
+ if test "$pre_test_object_deps_done" = no; then
+ case ${prev} in
+ -L | -R)
+ # Internal compiler library paths should come after those
+ # provided the user. The postdeps already come after the
+ # user supplied libs so there is no need to process them.
+ if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
+ fi
+ ;;
+ # The "-l" case would never come before the object being
+ # linked, so don't bother handling this case.
+ esac
+ else
+ if test -z "$_LT_TAGVAR(postdeps, $1)"; then
+ _LT_TAGVAR(postdeps, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
+ fi
+ fi
+ prev=
+ ;;
+
+ *.lto.$objext) ;; # Ignore GCC LTO objects
+ *.$objext)
+ # This assumes that the test object file only shows up
+ # once in the compiler output.
+ if test "$p" = "conftest.$objext"; then
+ pre_test_object_deps_done=yes
+ continue
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
+ _LT_TAGVAR(predep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
+ fi
+ else
+ if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
+ _LT_TAGVAR(postdep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
+else
+ echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$RM -f confest.$objext
+CFLAGS=$_lt_libdeps_save_CFLAGS
+
+# PORTME: override above test on systems where it is broken
+m4_if([$1], [CXX],
+[case $host_os in
+interix[[3-9]]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ _LT_TAGVAR(predep_objects,$1)=
+ _LT_TAGVAR(postdep_objects,$1)=
+ _LT_TAGVAR(postdeps,$1)=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC* | sunCC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # Adding this requires a known-good setup of shared libraries for
+ # Sun compiler versions before 5.6, else PIC objects from an old
+ # archive will be linked into the output, leading to subtle bugs.
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+esac
+])
+
+case " $_LT_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
+fi
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
+ [The directories searched by this compiler when creating a shared library])
+_LT_TAGDECL([], [predep_objects], [1],
+ [Dependencies to place before and after the objects being linked to
+ create a shared library])
+_LT_TAGDECL([], [postdep_objects], [1])
+_LT_TAGDECL([], [predeps], [1])
+_LT_TAGDECL([], [postdeps], [1])
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
+ [The library search path used internally by the compiler when linking
+ a shared library])
+])# _LT_SYS_HIDDEN_LIBDEPS
+
+
+# _LT_LANG_F77_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a Fortran 77 compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_F77_CONFIG],
+[AC_LANG_PUSH(Fortran 77)
+if test -z "$F77" || test "X$F77" = "Xno"; then
+ _lt_disable_F77=yes
+fi
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the F77 compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_F77" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ lt_save_CFLAGS=$CFLAGS
+ CC=${F77-"f77"}
+ CFLAGS=$FFLAGS
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+ GCC=$G77
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$G77"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+ CFLAGS="$lt_save_CFLAGS"
+fi # test "$_lt_disable_F77" != yes
+
+AC_LANG_POP
+])# _LT_LANG_F77_CONFIG
+
+
+# _LT_LANG_FC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for a Fortran compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_FC_CONFIG],
+[AC_LANG_PUSH(Fortran)
+
+if test -z "$FC" || test "X$FC" = "Xno"; then
+ _lt_disable_FC=yes
+fi
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for fc test sources.
+ac_ext=${ac_fc_srcext-f}
+
+# Object file extension for compiled fc test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the FC compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_FC" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ lt_save_CFLAGS=$CFLAGS
+ CC=${FC-"f95"}
+ CFLAGS=$FCFLAGS
+ compiler=$CC
+ GCC=$ac_cv_fc_compiler_gnu
+
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC=$lt_save_CC
+ CFLAGS=$lt_save_CFLAGS
+fi # test "$_lt_disable_FC" != yes
+
+AC_LANG_POP
+])# _LT_LANG_FC_CONFIG
+
+
+# _LT_LANG_GCJ_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Java Compiler compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_GCJ_CONFIG],
+[AC_REQUIRE([LT_PROG_GCJ])dnl
+AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GCJ-"gcj"}
+CFLAGS=$GCJFLAGS
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)="$LD"
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_GCJ_CONFIG
+
+
+# _LT_LANG_GO_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Go compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_GO_CONFIG],
+[AC_REQUIRE([LT_PROG_GO])dnl
+AC_LANG_SAVE
+
+# Source file extension for Go test sources.
+ac_ext=go
+
+# Object file extension for compiled Go test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="package main; func main() { }"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='package main; func main() { }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GOC-"gccgo"}
+CFLAGS=$GOFLAGS
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)="$LD"
+_LT_CC_BASENAME([$compiler])
+
+# Go did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_GO_CONFIG
+
+
+# _LT_LANG_RC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for the Windows resource compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_RC_CONFIG],
+[AC_REQUIRE([LT_PROG_RC])dnl
+AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=
+CC=${RC-"windres"}
+CFLAGS=
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+if test -n "$compiler"; then
+ :
+ _LT_CONFIG($1)
+fi
+
+GCC=$lt_save_GCC
+AC_LANG_RESTORE
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_RC_CONFIG
+
+
+# LT_PROG_GCJ
+# -----------
+AC_DEFUN([LT_PROG_GCJ],
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
+ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
+ [AC_CHECK_TOOL(GCJ, gcj,)
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
+ AC_SUBST(GCJFLAGS)])])[]dnl
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
+
+
+# LT_PROG_GO
+# ----------
+AC_DEFUN([LT_PROG_GO],
+[AC_CHECK_TOOL(GOC, gccgo,)
+])
+
+
+# LT_PROG_RC
+# ----------
+AC_DEFUN([LT_PROG_RC],
+[AC_CHECK_TOOL(RC, windres,)
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
+
+
+# _LT_DECL_EGREP
+# --------------
+# If we don't have a new enough Autoconf to choose the best grep
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_EGREP],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_REQUIRE([AC_PROG_FGREP])dnl
+test -z "$GREP" && GREP=grep
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
+AC_SUBST([GREP])
+])
+
+
+# _LT_DECL_OBJDUMP
+# --------------
+# If we don't have a new enough Autoconf to choose the best objdump
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_OBJDUMP],
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
+AC_SUBST([OBJDUMP])
+])
+
+# _LT_DECL_DLLTOOL
+# ----------------
+# Ensure DLLTOOL variable is set.
+m4_defun([_LT_DECL_DLLTOOL],
+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
+AC_SUBST([DLLTOOL])
+])
+
+# _LT_DECL_SED
+# ------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible. Prefer GNU sed if found.
+m4_defun([_LT_DECL_SED],
+[AC_PROG_SED
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
+ [Sed that helps us avoid accidentally triggering echo(1) options like -n])
+])# _LT_DECL_SED
+
+m4_ifndef([AC_PROG_SED], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into #
+# GNU Autoconf as AC_PROG_SED. When it is available in #
+# a released version of Autoconf we should remove this #
+# macro and use it instead. #
+############################################################
+
+m4_defun([AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && continue
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+])
+SED=$lt_cv_path_SED
+AC_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])#AC_PROG_SED
+])#m4_ifndef
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
+
+
+# _LT_CHECK_SHELL_FEATURES
+# ------------------------
+# Find out whether the shell is Bourne or XSI compatible,
+# or has some other useful features.
+m4_defun([_LT_CHECK_SHELL_FEATURES],
+[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,b/c, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+AC_MSG_RESULT([$xsi_shell])
+_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
+
+AC_MSG_CHECKING([whether the shell understands "+="])
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+AC_MSG_RESULT([$lt_shell_append])
+_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
+])# _LT_CHECK_SHELL_FEATURES
+
+
+# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
+# ------------------------------------------------------
+# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
+# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
+m4_defun([_LT_PROG_FUNCTION_REPLACE],
+[dnl {
+sed -e '/^$1 ()$/,/^} # $1 /c\
+$1 ()\
+{\
+m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
+} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+test 0 -eq $? || _lt_function_replace_fail=:
+])
+
+
+# _LT_PROG_REPLACE_SHELLFNS
+# -------------------------
+# Replace existing portable implementations of several shell functions with
+# equivalent extended shell implementations where those features are available..
+m4_defun([_LT_PROG_REPLACE_SHELLFNS],
+[if test x"$xsi_shell" = xyes; then
+ _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac])
+
+ _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
+ func_basename_result="${1##*/}"])
+
+ _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+ func_basename_result="${1##*/}"])
+
+ _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+ # positional parameters, so assign one to ordinary parameter first.
+ func_stripname_result=${3}
+ func_stripname_result=${func_stripname_result#"${1}"}
+ func_stripname_result=${func_stripname_result%"${2}"}])
+
+ _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
+ func_split_long_opt_name=${1%%=*}
+ func_split_long_opt_arg=${1#*=}])
+
+ _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
+ func_split_short_opt_arg=${1#??}
+ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
+
+ _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
+ case ${1} in
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
+ *) func_lo2o_result=${1} ;;
+ esac])
+
+ _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
+
+ _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
+
+ _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
+fi
+
+if test x"$lt_shell_append" = xyes; then
+ _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
+
+ _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
+ func_quote_for_eval "${2}"
+dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
+ eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
+
+ # Save a `func_append' function call where possible by direct use of '+='
+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+ test 0 -eq $? || _lt_function_replace_fail=:
+else
+ # Save a `func_append' function call even when '+=' is not available
+ sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
+ && mv -f "$cfgfile.tmp" "$cfgfile" \
+ || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
+ test 0 -eq $? || _lt_function_replace_fail=:
+fi
+
+if test x"$_lt_function_replace_fail" = x":"; then
+ AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
+fi
+])
+
+# _LT_PATH_CONVERSION_FUNCTIONS
+# -----------------------------
+# Determine which file name conversion functions should be used by
+# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
+# for certain cross-compile configurations and native mingw.
+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_MSG_CHECKING([how to convert $build file names to $host format])
+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
+[case $host in
+ *-*-mingw* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
+ ;;
+ *-*-cygwin* )
+ lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
+ ;;
+ * ) # otherwise, assume *nix
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
+ ;;
+ esac
+ ;;
+ *-*-cygwin* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
+ ;;
+ *-*-cygwin* )
+ lt_cv_to_host_file_cmd=func_convert_file_noop
+ ;;
+ * ) # otherwise, assume *nix
+ lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
+ ;;
+ esac
+ ;;
+ * ) # unhandled hosts (and "normal" native builds)
+ lt_cv_to_host_file_cmd=func_convert_file_noop
+ ;;
+esac
+])
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
+ [0], [convert $build file names to $host format])dnl
+
+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
+[#assume ordinary cross tools, or native build.
+lt_cv_to_tool_file_cmd=func_convert_file_noop
+case $host in
+ *-*-mingw* )
+ case $build in
+ *-*-mingw* ) # actually msys
+ lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
+ ;;
+ esac
+ ;;
+esac
+])
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
+ [0], [convert $build files to toolchain format])dnl
+])# _LT_PATH_CONVERSION_FUNCTIONS
diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4
new file mode 100644
index 0000000..5d9acd8
--- /dev/null
+++ b/m4/ltoptions.m4
@@ -0,0 +1,384 @@
+# Helper functions for option handling. -*- Autoconf -*-
+#
+# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 7 ltoptions.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
+
+
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
+# ------------------------------------------
+m4_define([_LT_MANGLE_OPTION],
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
+
+
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
+# ---------------------------------------
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
+# matching handler defined, dispatch to it. Other OPTION-NAMEs are
+# saved as a flag.
+m4_define([_LT_SET_OPTION],
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
+ _LT_MANGLE_DEFUN([$1], [$2]),
+ [m4_warning([Unknown $1 option `$2'])])[]dnl
+])
+
+
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
+# ------------------------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+m4_define([_LT_IF_OPTION],
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
+
+
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
+# -------------------------------------------------------
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
+# are set.
+m4_define([_LT_UNLESS_OPTIONS],
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+ [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
+ [m4_define([$0_found])])])[]dnl
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
+])[]dnl
+])
+
+
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
+# ----------------------------------------
+# OPTION-LIST is a space-separated list of Libtool options associated
+# with MACRO-NAME. If any OPTION has a matching handler declared with
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
+# the unknown option and exit.
+m4_defun([_LT_SET_OPTIONS],
+[# Set options
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+ [_LT_SET_OPTION([$1], _LT_Option)])
+
+m4_if([$1],[LT_INIT],[
+ dnl
+ dnl Simply set some default values (i.e off) if boolean options were not
+ dnl specified:
+ _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
+ ])
+ _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
+ ])
+ dnl
+ dnl If no reference was made to various pairs of opposing options, then
+ dnl we run the default mode handler for the pair. For example, if neither
+ dnl `shared' nor `disable-shared' was passed, we enable building of shared
+ dnl archives by default:
+ _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
+ _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
+ _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
+ _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
+ [_LT_ENABLE_FAST_INSTALL])
+ ])
+])# _LT_SET_OPTIONS
+
+
+## --------------------------------- ##
+## Macros to handle LT_INIT options. ##
+## --------------------------------- ##
+
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
+# -----------------------------------------
+m4_define([_LT_MANGLE_DEFUN],
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
+
+
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
+# -----------------------------------------------
+m4_define([LT_OPTION_DEFINE],
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
+])# LT_OPTION_DEFINE
+
+
+# dlopen
+# ------
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
+])
+
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
+[_LT_SET_OPTION([LT_INIT], [dlopen])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `dlopen' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
+
+
+# win32-dll
+# ---------
+# Declare package support for building win32 dll's.
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
+[enable_win32_dll=yes
+
+case $host in
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
+ AC_CHECK_TOOL(AS, as, false)
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
+ ;;
+esac
+
+test -z "$AS" && AS=as
+_LT_DECL([], [AS], [1], [Assembler program])dnl
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
+])# win32-dll
+
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+_LT_SET_OPTION([LT_INIT], [win32-dll])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `win32-dll' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
+
+
+# _LT_ENABLE_SHARED([DEFAULT])
+# ----------------------------
+# implement the --enable-shared flag, and supports the `shared' and
+# `disable-shared' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_SHARED],
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([shared],
+ [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
+ [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
+
+ _LT_DECL([build_libtool_libs], [enable_shared], [0],
+ [Whether or not to build shared libraries])
+])# _LT_ENABLE_SHARED
+
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
+])
+
+AC_DEFUN([AC_DISABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
+])
+
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
+
+
+
+# _LT_ENABLE_STATIC([DEFAULT])
+# ----------------------------
+# implement the --enable-static flag, and support the `static' and
+# `disable-static' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_STATIC],
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([static],
+ [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
+ [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
+
+ _LT_DECL([build_old_libs], [enable_static], [0],
+ [Whether or not to build static libraries])
+])# _LT_ENABLE_STATIC
+
+LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
+])
+
+AC_DEFUN([AC_DISABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], [disable-static])
+])
+
+AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
+AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_STATIC], [])
+dnl AC_DEFUN([AM_DISABLE_STATIC], [])
+
+
+
+# _LT_ENABLE_FAST_INSTALL([DEFAULT])
+# ----------------------------------
+# implement the --enable-fast-install flag, and support the `fast-install'
+# and `disable-fast-install' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_FAST_INSTALL],
+[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([fast-install],
+ [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
+ [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
+
+_LT_DECL([fast_install], [enable_fast_install], [0],
+ [Whether or not to optimize for fast installation])dnl
+])# _LT_ENABLE_FAST_INSTALL
+
+LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
+
+# Old names:
+AU_DEFUN([AC_ENABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the `fast-install' option into LT_INIT's first parameter.])
+])
+
+AU_DEFUN([AC_DISABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the `disable-fast-install' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
+dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
+
+
+# _LT_WITH_PIC([MODE])
+# --------------------
+# implement the --with-pic flag, and support the `pic-only' and `no-pic'
+# LT_INIT options.
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
+m4_define([_LT_WITH_PIC],
+[AC_ARG_WITH([pic],
+ [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
+ [lt_p=${PACKAGE-default}
+ case $withval in
+ yes|no) pic_mode=$withval ;;
+ *)
+ pic_mode=default
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for lt_pkg in $withval; do
+ IFS="$lt_save_ifs"
+ if test "X$lt_pkg" = "X$lt_p"; then
+ pic_mode=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [pic_mode=default])
+
+test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
+
+_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
+])# _LT_WITH_PIC
+
+LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
+
+# Old name:
+AU_DEFUN([AC_LIBTOOL_PICMODE],
+[_LT_SET_OPTION([LT_INIT], [pic-only])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `pic-only' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
+
+## ----------------- ##
+## LTDL_INIT Options ##
+## ----------------- ##
+
+m4_define([_LTDL_MODE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
+ [m4_define([_LTDL_MODE], [nonrecursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [recursive],
+ [m4_define([_LTDL_MODE], [recursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [subproject],
+ [m4_define([_LTDL_MODE], [subproject])])
+
+m4_define([_LTDL_TYPE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [installable],
+ [m4_define([_LTDL_TYPE], [installable])])
+LT_OPTION_DEFINE([LTDL_INIT], [convenience],
+ [m4_define([_LTDL_TYPE], [convenience])])
diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4
new file mode 100644
index 0000000..9000a05
--- /dev/null
+++ b/m4/ltsugar.m4
@@ -0,0 +1,123 @@
+# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
+#
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 6 ltsugar.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
+
+
+# lt_join(SEP, ARG1, [ARG2...])
+# -----------------------------
+# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
+# associated separator.
+# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
+# versions in m4sugar had bugs.
+m4_define([lt_join],
+[m4_if([$#], [1], [],
+ [$#], [2], [[$2]],
+ [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
+m4_define([_lt_join],
+[m4_if([$#$2], [2], [],
+ [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
+
+
+# lt_car(LIST)
+# lt_cdr(LIST)
+# ------------
+# Manipulate m4 lists.
+# These macros are necessary as long as will still need to support
+# Autoconf-2.59 which quotes differently.
+m4_define([lt_car], [[$1]])
+m4_define([lt_cdr],
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
+ [$#], 1, [],
+ [m4_dquote(m4_shift($@))])])
+m4_define([lt_unquote], $1)
+
+
+# lt_append(MACRO-NAME, STRING, [SEPARATOR])
+# ------------------------------------------
+# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
+# Note that neither SEPARATOR nor STRING are expanded; they are appended
+# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
+# No SEPARATOR is output if MACRO-NAME was previously undefined (different
+# than defined and empty).
+#
+# This macro is needed until we can rely on Autoconf 2.62, since earlier
+# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
+m4_define([lt_append],
+[m4_define([$1],
+ m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
+
+
+
+# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
+# ----------------------------------------------------------
+# Produce a SEP delimited list of all paired combinations of elements of
+# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
+# has the form PREFIXmINFIXSUFFIXn.
+# Needed until we can rely on m4_combine added in Autoconf 2.62.
+m4_define([lt_combine],
+[m4_if(m4_eval([$# > 3]), [1],
+ [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
+[[m4_foreach([_Lt_prefix], [$2],
+ [m4_foreach([_Lt_suffix],
+ ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
+ [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
+
+
+# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
+# -----------------------------------------------------------------------
+# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
+# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
+m4_define([lt_if_append_uniq],
+[m4_ifdef([$1],
+ [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
+ [lt_append([$1], [$2], [$3])$4],
+ [$5])],
+ [lt_append([$1], [$2], [$3])$4])])
+
+
+# lt_dict_add(DICT, KEY, VALUE)
+# -----------------------------
+m4_define([lt_dict_add],
+[m4_define([$1($2)], [$3])])
+
+
+# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
+# --------------------------------------------
+m4_define([lt_dict_add_subkey],
+[m4_define([$1($2:$3)], [$4])])
+
+
+# lt_dict_fetch(DICT, KEY, [SUBKEY])
+# ----------------------------------
+m4_define([lt_dict_fetch],
+[m4_ifval([$3],
+ m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
+ m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
+
+
+# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
+# -----------------------------------------------------------------
+m4_define([lt_if_dict_fetch],
+[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
+ [$5],
+ [$6])])
+
+
+# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
+# --------------------------------------------------------------
+m4_define([lt_dict_filter],
+[m4_if([$5], [], [],
+ [lt_join(m4_quote(m4_default([$4], [[, ]])),
+ lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
+ [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
+])
diff --git a/m4/ltversion.m4 b/m4/ltversion.m4
new file mode 100644
index 0000000..07a8602
--- /dev/null
+++ b/m4/ltversion.m4
@@ -0,0 +1,23 @@
+# ltversion.m4 -- version numbers -*- Autoconf -*-
+#
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# Written by Scott James Remnant, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# @configure_input@
+
+# serial 3337 ltversion.m4
+# This file is part of GNU Libtool
+
+m4_define([LT_PACKAGE_VERSION], [2.4.2])
+m4_define([LT_PACKAGE_REVISION], [1.3337])
+
+AC_DEFUN([LTVERSION_VERSION],
+[macro_version='2.4.2'
+macro_revision='1.3337'
+_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
+_LT_DECL(, macro_revision, 0)
+])
diff --git a/m4/lt~obsolete.m4 b/m4/lt~obsolete.m4
new file mode 100644
index 0000000..c573da9
--- /dev/null
+++ b/m4/lt~obsolete.m4
@@ -0,0 +1,98 @@
+# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
+#
+# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
+# Written by Scott James Remnant, 2004.
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 5 lt~obsolete.m4
+
+# These exist entirely to fool aclocal when bootstrapping libtool.
+#
+# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
+# which have later been changed to m4_define as they aren't part of the
+# exported API, or moved to Autoconf or Automake where they belong.
+#
+# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
+# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
+# using a macro with the same name in our local m4/libtool.m4 it'll
+# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
+# and doesn't know about Autoconf macros at all.)
+#
+# So we provide this file, which has a silly filename so it's always
+# included after everything else. This provides aclocal with the
+# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
+# because those macros already exist, or will be overwritten later.
+# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
+#
+# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
+# Yes, that means every name once taken will need to remain here until
+# we give up compatibility with versions before 1.7, at which point
+# we need to keep only those names which we still refer to.
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
+
+m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
+m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
+m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
+m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
+m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
+m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
+m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
+m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
+m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
+m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
+m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
+m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
+m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
+m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
+m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
+m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
+m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
+m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
+m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
+m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
+m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
+m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
+m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
+m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
+m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
+m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
+m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
+m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
+m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
+m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
+m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
+m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
+m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
+m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
+m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
+m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
+m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
+m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
+m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
+m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
+m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
+m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
+m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
+m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
+m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
+m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
+m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
+m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
+m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
+m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
+m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
+m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
diff --git a/missing b/missing
new file mode 100755
index 0000000..86a8fc3
--- /dev/null
+++ b/missing
@@ -0,0 +1,331 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2012-01-06.13; # UTC
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
+# 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard at iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
+\`g' are ignored when checking the name.
+
+Send bug reports to <bug-automake at gnu.org>."
+ exit $?
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# normalize program name to check for.
+program=`echo "$1" | sed '
+ s/^gnu-//; t
+ s/^gnu//; t
+ s/^g//; t'`
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program). This is about non-GNU programs, so use $1 not
+# $program.
+case $1 in
+ lex*|yacc*)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $program in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case $f in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te*)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison*|yacc*)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if test $# -ne 1; then
+ eval LASTARG=\${$#}
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex*|flex*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if test $# -ne 1; then
+ eval LASTARG=\${$#}
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit $?
+ fi
+ ;;
+
+ makeinfo*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/python/ase/ChangeLog b/python/ase/ChangeLog
new file mode 100644
index 0000000..bec6290
--- /dev/null
+++ b/python/ase/ChangeLog
@@ -0,0 +1,9 @@
+2012-05-28 Atsushi Togo <atz.togo at gmail.com>
+
+ * _spglib.c:
+
+ Memoery space of python list object created by pyspglib was not
+ released because of wrongly handled call of PyList_Append. Now
+ they are replaced by PyList_SetItem and hopefully this problem is
+ fixed.
+
diff --git a/python/ase/MANIFEST.in b/python/ase/MANIFEST.in
new file mode 100644
index 0000000..3a04f5a
--- /dev/null
+++ b/python/ase/MANIFEST.in
@@ -0,0 +1 @@
+include src/*.h
diff --git a/python/ase/_spglib.c b/python/ase/_spglib.c
new file mode 100644
index 0000000..bfc98b7
--- /dev/null
+++ b/python/ase/_spglib.c
@@ -0,0 +1,847 @@
+#include <Python.h>
+#include <stdio.h>
+#include <numpy/arrayobject.h>
+#include <spglib.h>
+
+static PyObject * get_dataset(PyObject *self, PyObject *args);
+static PyObject * get_spacegroup(PyObject *self, PyObject *args);
+static PyObject * get_pointgroup(PyObject *self, PyObject *args);
+static PyObject * refine_cell(PyObject *self, PyObject *args);
+static PyObject * get_symmetry(PyObject *self, PyObject *args);
+static PyObject * get_symmetry_with_collinear_spin(PyObject *self, PyObject *args);
+static PyObject * find_primitive(PyObject *self, PyObject *args);
+static PyObject * get_ir_kpoints(PyObject *self, PyObject *args);
+static PyObject * get_ir_reciprocal_mesh(PyObject *self, PyObject *args);
+static PyObject * get_stabilized_reciprocal_mesh(PyObject *self, PyObject *args);
+static PyObject * get_triplets_reciprocal_mesh(PyObject *self, PyObject *args);
+static PyObject * get_triplets_reciprocal_mesh_at_q(PyObject *self, PyObject *args);
+static PyObject * extract_triplets_reciprocal_mesh_at_q(PyObject *self, PyObject *args);
+
+static PyMethodDef functions[] = {
+ {"dataset", get_dataset, METH_VARARGS,
+ "Dataset for crystal symmetry"},
+ {"spacegroup", get_spacegroup, METH_VARARGS,
+ "International symbol"},
+ {"pointgroup", get_pointgroup, METH_VARARGS,
+ "International symbol of pointgroup"},
+ {"refine_cell", refine_cell, METH_VARARGS,
+ "Refine cell"},
+ {"symmetry", get_symmetry, METH_VARARGS,
+ "Symmetry operations"},
+ {"symmetry_with_collinear_spin", get_symmetry_with_collinear_spin,
+ METH_VARARGS, "Symmetry operations with collinear spin magnetic moments"},
+ {"primitive", find_primitive, METH_VARARGS,
+ "Find primitive cell in the input cell"},
+ {"ir_kpoints", get_ir_kpoints, METH_VARARGS,
+ "Irreducible k-points"},
+ {"ir_reciprocal_mesh", get_ir_reciprocal_mesh, METH_VARARGS,
+ "Reciprocal mesh points with map"},
+ {"stabilized_reciprocal_mesh", get_stabilized_reciprocal_mesh, METH_VARARGS,
+ "Reciprocal mesh points with map"},
+ {"triplets_reciprocal_mesh", get_triplets_reciprocal_mesh, METH_VARARGS,
+ "Triplets on reciprocal mesh points"},
+ {"triplets_reciprocal_mesh_at_q", get_triplets_reciprocal_mesh_at_q,
+ METH_VARARGS, "Triplets on reciprocal mesh points at a specific q-point"},
+ {"triplets_reciprocal_mesh_at_q_from_triplets",
+ extract_triplets_reciprocal_mesh_at_q, METH_VARARGS,
+ "Triplets on reciprocal mesh points at a specific q-point extracted from full triplets"},
+ {NULL, NULL, 0, NULL}
+};
+
+PyMODINIT_FUNC init_spglib(void)
+{
+ Py_InitModule3("_spglib", functions, "C-extension for spglib\n\n...\n");
+ return;
+}
+
+static PyObject * get_dataset(PyObject *self, PyObject *args)
+{
+ int i, j, k;
+ double symprec, angle_tolerance;
+ SpglibDataset *dataset;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* atom_type;
+ PyObject* array, *vec, *mat, *rot, *trans, *wyckoffs, *equiv_atoms;
+
+ if (!PyArg_ParseTuple(args, "OOOdd",
+ &lattice,
+ &position,
+ &atom_type,
+ &symprec,
+ &angle_tolerance)) {
+ return NULL;
+ }
+
+ SPGCONST double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ const int num_atom = position->dimensions[0];
+ const long* typat_long = (long*)atom_type->data;
+
+ int typat[atom_type->dimensions[0]];
+ for (i = 0; i < num_atom; i++) {
+ typat[i] = (int)typat_long[i];
+ }
+
+ dataset = spgat_get_dataset(lat,
+ pos,
+ typat,
+ num_atom,
+ symprec,
+ angle_tolerance);
+
+ array = PyList_New(9);
+
+ /* Space group number, international symbol, hall symbol */
+ PyList_SetItem(array, 0, PyInt_FromLong((long) dataset->spacegroup_number));
+ PyList_SetItem(array, 1, PyString_FromString(dataset->international_symbol));
+ PyList_SetItem(array, 2, PyString_FromString(dataset->hall_symbol));
+
+ /* Transformation matrix */
+ mat = PyList_New(3);
+ for (i = 0; i < 3; i++) {
+ vec = PyList_New(3);
+ for (j = 0; j < 3; j++) {
+ PyList_SetItem(vec, j, PyFloat_FromDouble(dataset->transformation_matrix[i][j]));
+ }
+ PyList_SetItem(mat, i, vec);
+ }
+ PyList_SetItem(array, 3, mat);
+
+ /* Origin shift */
+ vec = PyList_New(3);
+ for (i = 0; i < 3; i++) {
+ PyList_SetItem(vec, i, PyFloat_FromDouble(dataset->origin_shift[i]));
+ }
+ PyList_SetItem(array, 4, vec);
+
+ /* Rotation matrices */
+ rot = PyList_New(dataset->n_operations);
+ for (i = 0; i < dataset->n_operations; i++) {
+ mat = PyList_New(3);
+ for (j = 0; j < 3; j++) {
+ vec = PyList_New(3);
+ for (k = 0; k < 3; k++) {
+ PyList_SetItem(vec, k, PyInt_FromLong((long) dataset->rotations[i][j][k]));
+ }
+ PyList_SetItem(mat, j, vec);
+ }
+ PyList_SetItem(rot, i, mat);
+ }
+ PyList_SetItem(array, 5, rot);
+
+ /* Translation vectors */
+ trans = PyList_New(dataset->n_operations);
+ for (i = 0; i < dataset->n_operations; i++) {
+ vec = PyList_New(3);
+ for (j = 0; j < 3; j++) {
+ PyList_SetItem(vec, j, PyFloat_FromDouble(dataset->translations[i][j]));
+ }
+ PyList_SetItem(trans, i, vec);
+ }
+ PyList_SetItem(array, 6, trans);
+
+ /* Wyckoff letters, Equivalent atoms */
+ wyckoffs = PyList_New(dataset->n_atoms);
+ equiv_atoms = PyList_New(dataset->n_atoms);
+ for (i = 0; i < dataset->n_atoms; i++) {
+ PyList_SetItem(wyckoffs, i, PyInt_FromLong((long) dataset->wyckoffs[i]));
+ PyList_SetItem(equiv_atoms, i, PyInt_FromLong((long) dataset->equivalent_atoms[i]));
+ }
+ PyList_SetItem(array, 7, wyckoffs);
+ PyList_SetItem(array, 8, equiv_atoms);
+ spg_free_dataset(dataset);
+
+ return array;
+}
+
+static PyObject * get_spacegroup(PyObject *self, PyObject *args)
+{
+ int i;
+ double symprec, angle_tolerance;
+ char symbol[26];
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* atom_type;
+ if (!PyArg_ParseTuple(args, "OOOdd",
+ &lattice,
+ &position,
+ &atom_type,
+ &symprec,
+ &angle_tolerance)) {
+ return NULL;
+ }
+
+ SPGCONST double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ const int num_atom = position->dimensions[0];
+ const long* typat_long = (long*)atom_type->data;
+
+ int typat[num_atom];
+ for (i = 0; i < num_atom; i++)
+ typat[i] = (int)typat_long[i];
+
+ const int num_spg = spgat_get_international(symbol,
+ lat,
+ pos,
+ typat,
+ num_atom,
+ symprec,
+ angle_tolerance);
+ sprintf(symbol, "%s (%d)", symbol, num_spg);
+
+ return PyString_FromString(symbol);
+}
+
+static PyObject * get_pointgroup(PyObject *self, PyObject *args)
+{
+ PyArrayObject* rotations;
+ if (! PyArg_ParseTuple(args, "O", &rotations)) {
+ return NULL;
+ }
+
+ long *rot_long = (long*)rotations->data;
+
+ int i, j, k;
+ int trans_mat[3][3];
+ char symbol[6];
+ PyObject* array, * mat, * vec;
+
+ const int num_rot = rotations->dimensions[0];
+ int rot[num_rot][3][3];
+ for (i = 0; i < num_rot; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot[i][j][k] = (int) rot_long[ i*9 + j*3 + k ];
+ }
+ }
+ }
+
+ const int ptg_num = spg_get_pointgroup(symbol, trans_mat, rot, num_rot);
+
+ /* Transformation matrix */
+ mat = PyList_New(3);
+ for (i = 0; i < 3; i++) {
+ vec = PyList_New(3);
+ for (j = 0; j < 3; j++) {
+ PyList_SetItem(vec, j, PyInt_FromLong((long)trans_mat[i][j]));
+ }
+ PyList_SetItem(mat, i, vec);
+ }
+
+ array = PyList_New(3);
+ PyList_SetItem(array, 0, PyString_FromString(symbol));
+ PyList_SetItem(array, 1, PyInt_FromLong((long) ptg_num));
+ PyList_SetItem(array, 2, mat);
+
+ return array;
+}
+
+static PyObject * refine_cell(PyObject *self, PyObject *args)
+{
+ int i, num_atom;
+ double symprec, angle_tolerance;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* atom_type;
+ if (!PyArg_ParseTuple(args, "OOOidd",
+ &lattice,
+ &position,
+ &atom_type,
+ &num_atom,
+ &symprec,
+ &angle_tolerance)) {
+ return NULL;
+ }
+
+ double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ long* typat_long = (long*)atom_type->data;
+
+ int typat[atom_type->dimensions[0]];
+ for (i = 0; i < num_atom; i++) {
+ typat[i] = (int)typat_long[i];
+ }
+
+ int num_atom_brv = spgat_refine_cell(lat,
+ pos,
+ typat,
+ num_atom,
+ symprec,
+ angle_tolerance);
+
+ for (i = 0; i < num_atom_brv; i++) {
+ typat_long[i] = typat[i];
+ }
+
+ return PyInt_FromLong((long) num_atom_brv);
+}
+
+
+static PyObject * find_primitive(PyObject *self, PyObject *args)
+{
+ int i;
+ double symprec, angle_tolerance;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* atom_type;
+ if (!PyArg_ParseTuple(args, "OOOdd",
+ &lattice,
+ &position,
+ &atom_type,
+ &symprec,
+ &angle_tolerance)) {
+ return NULL;
+ }
+
+ double (*lat)[3] = (double(*)[3])lattice->data;
+ double (*pos)[3] = (double(*)[3])position->data;
+ int num_atom = position->dimensions[0];
+ long* types_long = (long*)atom_type->data;
+
+ int types[num_atom];
+ for (i = 0; i < num_atom; i++) {
+ types[i] = (int)types_long[i];
+ }
+
+ int num_atom_prim = spgat_find_primitive(lat,
+ pos,
+ types,
+ num_atom,
+ symprec,
+ angle_tolerance);
+
+ for (i = 0; i < num_atom_prim; i++) {
+ types_long[i] = types[i];
+ }
+
+ return PyInt_FromLong((long) num_atom_prim);
+}
+
+static PyObject * get_symmetry(PyObject *self, PyObject *args)
+{
+ int i, j, k;
+ double symprec, angle_tolerance;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* rotation;
+ PyArrayObject* translation;
+ PyArrayObject* atom_type;
+ if (!PyArg_ParseTuple(args, "OOOOOdd",
+ &rotation,
+ &translation,
+ &lattice,
+ &position,
+ &atom_type,
+ &symprec,
+ &angle_tolerance)) {
+ return NULL;
+ }
+
+ SPGCONST double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ const long* types_long = (long*)atom_type->data;
+ const int num_atom = position->dimensions[0];
+ long *rot_long = (long*)rotation->data;
+ double (*trans)[3] = (double(*)[3])translation->data;
+ const int num_sym_from_array_size = rotation->dimensions[0];
+
+ int rot[num_sym_from_array_size][3][3];
+
+ int types[num_atom];
+ for (i = 0; i < num_atom; i++) {
+ types[i] = (int)types_long[i];
+ }
+
+ /* num_sym has to be larger than num_sym_from_array_size. */
+ const int num_sym = spgat_get_symmetry(rot,
+ trans,
+ num_sym_from_array_size,
+ lat,
+ pos,
+ types,
+ num_atom,
+ symprec,
+ angle_tolerance);
+ for (i = 0; i < num_sym; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot_long[i*9+j*3+k] = (long)rot[i][j][k];
+ }
+ }
+ }
+
+ return PyInt_FromLong((long) num_sym);
+}
+
+static PyObject * get_symmetry_with_collinear_spin(PyObject *self,
+ PyObject *args)
+{
+ int i, j, k;
+ double symprec, angle_tolerance;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* rotation;
+ PyArrayObject* translation;
+ PyArrayObject* atom_type;
+ PyArrayObject* magmom;
+ if (!PyArg_ParseTuple(args, "OOOOOOdd",
+ &rotation,
+ &translation,
+ &lattice,
+ &position,
+ &atom_type,
+ &magmom,
+ &symprec,
+ &angle_tolerance)) {
+ return NULL;
+ }
+
+ SPGCONST double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ const double *spins = (double*) magmom->data;
+ const long* types_long = (long*)atom_type->data;
+ const int num_atom = position->dimensions[0];
+ long *rot_long = (long*)rotation->data;
+ double (*trans)[3] = (double(*)[3])translation->data;
+ const int num_sym_from_array_size = rotation->dimensions[0];
+
+ int rot[num_sym_from_array_size][3][3];
+ int types[num_atom];
+ for (i = 0; i < num_atom; i++) {
+ types[i] = (int)types_long[i];
+ }
+
+ /* num_sym has to be larger than num_sym_from_array_size. */
+ const int num_sym =
+ spgat_get_symmetry_with_collinear_spin(rot,
+ trans,
+ num_sym_from_array_size,
+ lat,
+ pos,
+ types,
+ spins,
+ num_atom,
+ symprec,
+ angle_tolerance);
+ for (i = 0; i < num_sym; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot_long[i*9+j*3+k] = (long)rot[i][j][k];
+ }
+ }
+ }
+
+ return PyInt_FromLong((long) num_sym);
+}
+
+static PyObject * get_ir_kpoints(PyObject *self, PyObject *args)
+{
+ int i;
+ double symprec;
+ int is_time_reversal;
+ PyArrayObject* kpoint;
+ PyArrayObject* kpoint_map;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* atom_type;
+ if (!PyArg_ParseTuple(args, "OOOOOid", &kpoint_map, &kpoint, &lattice, &position,
+ &atom_type, &is_time_reversal, &symprec))
+ return NULL;
+
+ SPGCONST double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ SPGCONST double (*kpts)[3] = (double(*)[3])kpoint->data;
+ const int num_kpoint = kpoint->dimensions[0];
+ const long* types_long = (long*)atom_type->data;
+ const int num_atom = position->dimensions[0];
+ long *map_long = (long*)kpoint_map->data;
+
+ int types[num_atom];
+ for (i = 0; i < num_atom; i++)
+ types[i] = (int)types_long[i];
+
+ int map[num_kpoint];
+
+ /* num_sym has to be larger than num_sym_from_array_size. */
+ const int num_ir_kpt = spg_get_ir_kpoints(map,
+ kpts,
+ num_kpoint,
+ lat,
+ pos,
+ types,
+ num_atom,
+ is_time_reversal,
+ symprec);
+
+ for (i = 0; i < num_kpoint; i++)
+ map_long[i] = (long) map[i];
+
+ return PyInt_FromLong((long) num_ir_kpt);
+}
+
+static PyObject * get_ir_reciprocal_mesh(PyObject *self, PyObject *args)
+{
+ int i, j;
+ double symprec;
+ PyArrayObject* grid_point;
+ PyArrayObject* map;
+ PyArrayObject* mesh;
+ PyArrayObject* is_shift;
+ int is_time_reversal;
+ PyArrayObject* lattice;
+ PyArrayObject* position;
+ PyArrayObject* atom_type;
+ if (!PyArg_ParseTuple(args, "OOOOiOOOd",
+ &grid_point,
+ &map,
+ &mesh,
+ &is_shift,
+ &is_time_reversal,
+ &lattice,
+ &position,
+ &atom_type,
+ &symprec))
+ return NULL;
+
+ SPGCONST double (*lat)[3] = (double(*)[3])lattice->data;
+ SPGCONST double (*pos)[3] = (double(*)[3])position->data;
+ const int num_grid = grid_point->dimensions[0];
+ const long* types_long = (long*)atom_type->data;
+ const long* mesh_long = (long*)mesh->data;
+ const long* is_shift_long = (long*)is_shift->data;
+ const int num_atom = position->dimensions[0];
+ long *grid_long = (long*)grid_point->data;
+ int grid_int[num_grid][3];
+ long *map_long = (long*)map->data;
+ int map_int[num_grid];
+
+ int types[num_atom];
+ for (i = 0; i < num_atom; i++) {
+ types[i] = (int)types_long[i];
+ }
+
+ int mesh_int[3];
+ int is_shift_int[3];
+ for (i = 0; i < 3; i++) {
+ mesh_int[i] = (int) mesh_long[i];
+ is_shift_int[i] = (int) is_shift_long[i];
+ }
+
+ /* Check memory space */
+ if (mesh_int[0]*mesh_int[1]*mesh_int[2] > num_grid) {
+ return NULL;
+ }
+
+ /* num_sym has to be larger than num_sym_from_array_size. */
+ const int num_ir = spg_get_ir_reciprocal_mesh(grid_int,
+ map_int,
+ mesh_int,
+ is_shift_int,
+ is_time_reversal,
+ lat,
+ pos,
+ types,
+ num_atom,
+ symprec);
+
+ for (i = 0; i < mesh_int[0] * mesh_int[1] * mesh_int[2]; i++) {
+ for (j = 0; j < 3; j++)
+ grid_long[ i*3 + j ] = (long) grid_int[i][j];
+ map_long[i] = (long) map_int[i];
+ }
+
+ return PyInt_FromLong((long) num_ir);
+}
+
+static PyObject * get_stabilized_reciprocal_mesh(PyObject *self, PyObject *args)
+{
+ int i, j, k;
+ PyArrayObject* grid_point;
+ PyArrayObject* map;
+ PyArrayObject* mesh;
+ PyArrayObject* is_shift;
+ int is_time_reversal;
+ PyArrayObject* rotations;
+ PyArrayObject* qpoints;
+ if (!PyArg_ParseTuple(args, "OOOOiOO",
+ &grid_point,
+ &map,
+ &mesh,
+ &is_shift,
+ &is_time_reversal,
+ &rotations,
+ &qpoints)) {
+ return NULL;
+ }
+
+ long *grid_long = (long*)grid_point->data;
+ const int num_grid = grid_point->dimensions[0];
+ int grid_int[num_grid][3];
+
+ long *map_long = (long*)map->data;
+ int map_int[num_grid];
+
+ int mesh_int[3];
+ int is_shift_int[3];
+ const long* mesh_long = (long*)mesh->data;
+ const long* is_shift_long = (long*)is_shift->data;
+ for (i = 0; i < 3; i++) {
+ mesh_int[i] = (int) mesh_long[i];
+ is_shift_int[i] = (int) is_shift_long[i];
+ }
+
+ const long* rot_long = (long*)rotations->data;
+ const int num_rot = rotations->dimensions[0];
+ int rot[num_rot][3][3];
+ for (i = 0; i < num_rot; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot[i][j][k] = (int) rot_long[ i*9 + j*3 + k ];
+ }
+ }
+ }
+
+ SPGCONST double (*q)[3] = (double(*)[3])qpoints->data;
+ const int num_q = qpoints->dimensions[0];
+
+ /* Check memory space */
+ if (mesh_int[0]*mesh_int[1]*mesh_int[2] > num_grid) {
+ return NULL;
+ }
+
+ const int num_ir = spg_get_stabilized_reciprocal_mesh(grid_int,
+ map_int,
+ mesh_int,
+ is_shift_int,
+ is_time_reversal,
+ num_rot,
+ rot,
+ num_q,
+ q);
+
+ for (i = 0; i < mesh_int[0] * mesh_int[1] * mesh_int[2]; i++) {
+ for (j = 0; j < 3; j++) {
+ grid_long[ i*3 + j ] = (long) grid_int[i][j];
+ }
+ map_long[i] = (long) map_int[i];
+ }
+
+ return PyInt_FromLong((long) num_ir);
+}
+
+static PyObject * get_triplets_reciprocal_mesh(PyObject *self, PyObject *args)
+{
+ PyArrayObject* mesh;
+ int is_time_reversal;
+ PyArrayObject* rotations;
+ if (!PyArg_ParseTuple(args, "OiO",
+ &mesh,
+ &is_time_reversal,
+ &rotations)) {
+ return NULL;
+ }
+
+ int i, j, k, num_grid;
+ PyObject * triplets, * weights, *tp, *ret_array, *mesh_points;
+
+ int mesh_int[3];
+ const long* mesh_long = (long*)mesh->data;
+ for (i = 0; i < 3; i++) {
+ mesh_int[i] = (int) mesh_long[i];
+ }
+ const long* rot_long = (long*)rotations->data;
+ const int num_rot = rotations->dimensions[0];
+ int rot[num_rot][3][3];
+ for (i = 0; i < num_rot; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot[i][j][k] = (int) rot_long[ i*9 + j*3 + k ];
+ }
+ }
+ }
+
+ SpglibTriplets * spg_triplets =
+ spg_get_triplets_reciprocal_mesh(mesh_int,
+ is_time_reversal,
+ num_rot,
+ rot);
+
+ num_grid = mesh_int[0] * mesh_int[1] * mesh_int[2];
+ ret_array = PyList_New(3);
+ triplets = PyList_New(spg_triplets->size);
+ weights = PyList_New(spg_triplets->size);
+ mesh_points = PyList_New(num_grid);
+
+ for (i = 0; i < spg_triplets->size; i++) {
+ tp = PyList_New(3);
+ for (j = 0; j < 3; j++) {
+ PyList_SetItem(tp, j,
+ PyInt_FromLong((long) spg_triplets->triplets[i][j]));
+ }
+ PyList_SetItem(triplets, i, tp);
+ PyList_SetItem(weights, i, PyInt_FromLong((long) spg_triplets->weights[i]));
+ }
+
+ for (i = 0; i < num_grid; i++) {
+ tp = PyList_New(3);
+ for (j = 0; j < 3; j++) {
+ PyList_SetItem(tp, j,
+ PyInt_FromLong((long) spg_triplets->mesh_points[i][j]));
+ }
+ PyList_SetItem(mesh_points, i, tp);
+ }
+
+ PyList_SetItem(ret_array, 0, triplets);
+ PyList_SetItem(ret_array, 1, weights);
+ PyList_SetItem(ret_array, 2, mesh_points);
+
+ spg_free_triplets(spg_triplets);
+
+ return ret_array;
+}
+
+static PyObject * get_triplets_reciprocal_mesh_at_q(PyObject *self, PyObject *args)
+{
+ PyArrayObject* weights;
+ PyArrayObject* grid_points;
+ PyArrayObject* third_q;
+ int fixed_grid_number;
+ PyArrayObject* mesh;
+ int is_time_reversal;
+ PyArrayObject* rotations;
+ if (!PyArg_ParseTuple(args, "OOOiOiO",
+ &weights,
+ &grid_points,
+ &third_q,
+ &fixed_grid_number,
+ &mesh,
+ &is_time_reversal,
+ &rotations)) {
+ return NULL;
+ }
+
+ int i, j, k;
+
+ const int num_grid = grid_points->dimensions[0];
+ long *grid_points_long = (long*)grid_points->data;
+ int grid_points_int[num_grid][3];
+ long *weights_long = (long*)weights->data;
+ int weights_int[num_grid];
+ long *third_q_long = (long*)third_q->data;
+ int third_q_int[num_grid];
+
+ int mesh_int[3];
+ const long* mesh_long = (long*)mesh->data;
+ for (i = 0; i < 3; i++) {
+ mesh_int[i] = (int) mesh_long[i];
+ }
+
+ const long* rot_long = (long*)rotations->data;
+ const int num_rot = rotations->dimensions[0];
+ int rot[num_rot][3][3];
+ for (i = 0; i < num_rot; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot[i][j][k] = (int) rot_long[ i*9 + j*3 + k ];
+ }
+ }
+ }
+
+ const int num_ir =
+ spg_get_triplets_reciprocal_mesh_at_q(weights_int,
+ grid_points_int,
+ third_q_int,
+ fixed_grid_number,
+ mesh_int,
+ is_time_reversal,
+ num_rot,
+ rot);
+
+ for (i = 0; i < num_grid; i++) {
+ weights_long[i] = (long) weights_int[i];
+ third_q_long[i] = (long) third_q_int[i];
+ for (j = 0; j < 3; j++) {
+ grid_points_long[ i*3 + j ] = (long) grid_points_int[i][j];
+ }
+ }
+
+ return PyInt_FromLong((long) num_ir);
+}
+
+static PyObject * extract_triplets_reciprocal_mesh_at_q(PyObject *self, PyObject *args)
+{
+ int i, j, k;
+ PyArrayObject* triplets_at_q;
+ PyArrayObject* weight_triplets_at_q;
+ int fixed_grid_number;
+ PyArrayObject* triplets;
+ PyArrayObject* mesh;
+ int is_time_reversal;
+ PyArrayObject* rotations;
+ if (!PyArg_ParseTuple(args, "OOiOOiO",
+ &triplets_at_q,
+ &weight_triplets_at_q,
+ &fixed_grid_number,
+ &triplets,
+ &mesh,
+ &is_time_reversal,
+ &rotations)) {
+ return NULL;
+ }
+
+ const long *triplets_long = (long*)triplets->data;
+ const int num_triplets = triplets->dimensions[0];
+ int triplets_int[num_triplets][3];
+
+ for (i = 0; i < num_triplets; i++) {
+ for (j = 0; j < 3; j++) {
+ triplets_int[i][j] = (long) triplets_long[ i*3 + j ];
+ }
+ }
+
+ long *triplets_at_q_long = (long*)triplets_at_q->data;
+ int triplets_at_q_int[num_triplets][3];
+
+ long *weight_triplets_at_q_long = (long*)weight_triplets_at_q->data;
+ int weight_triplets_at_q_int[num_triplets];
+
+ int mesh_int[3];
+ const long* mesh_long = (long*)mesh->data;
+ for (i = 0; i < 3; i++) {
+ mesh_int[i] = (int) mesh_long[i];
+ }
+
+ const long* rot_long = (long*)rotations->data;
+ const int num_rot = rotations->dimensions[0];
+ int rot[num_rot][3][3];
+ for (i = 0; i < num_rot; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot[i][j][k] = (int) rot_long[ i*9 + j*3 + k ];
+ }
+ }
+ }
+
+ const int num_triplets_at_q =
+ spg_extract_triplets_reciprocal_mesh_at_q(triplets_at_q_int,
+ weight_triplets_at_q_int,
+ fixed_grid_number,
+ num_triplets,
+ triplets_int,
+ mesh_int,
+ is_time_reversal,
+ num_rot,
+ rot);
+
+ for (i = 0; i < num_triplets_at_q; i++) {
+ weight_triplets_at_q_long[i] = (long) weight_triplets_at_q_int[i];
+ for (j = 0; j < 3; j++) {
+ triplets_at_q_long[ i*3 + j ] = (long) triplets_at_q_int[i][j];
+ }
+ }
+
+ return PyInt_FromLong((long) num_triplets_at_q);
+}
+
+
diff --git a/python/ase/doc/Makefile b/python/ase/doc/Makefile
new file mode 100644
index 0000000..dbc6dec
--- /dev/null
+++ b/python/ase/doc/Makefile
@@ -0,0 +1,75 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+PAPER =
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " changes to make an overview over all changed/added/deprecated items"
+ @echo " linkcheck to check all external links for integrity"
+
+clean:
+ -rm -rf _build/*
+
+html:
+ mkdir -p _build/html _build/doctrees
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
+ @echo
+ @echo "Build finished. The HTML pages are in _build/html."
+
+pickle:
+ mkdir -p _build/pickle _build/doctrees
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+web: pickle
+
+json:
+ mkdir -p _build/json _build/doctrees
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ mkdir -p _build/htmlhelp _build/doctrees
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in _build/htmlhelp."
+
+latex:
+ mkdir -p _build/latex _build/doctrees
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in _build/latex."
+ @echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
+ "run these through (pdf)latex."
+
+changes:
+ mkdir -p _build/changes _build/doctrees
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
+ @echo
+ @echo "The overview file is in _build/changes."
+
+linkcheck:
+ mkdir -p _build/linkcheck _build/doctrees
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in _build/linkcheck/output.txt."
diff --git a/python/ase/doc/conf.py b/python/ase/doc/conf.py
new file mode 100644
index 0000000..0ded924
--- /dev/null
+++ b/python/ase/doc/conf.py
@@ -0,0 +1,186 @@
+# -*- coding: utf-8 -*-
+#
+# spglib for ASE documentation build configuration file, created by
+# sphinx-quickstart on Mon Feb 2 14:53:46 2009.
+#
+# This file is execfile()d with the current directory set to its containing dir.
+#
+# The contents of this file are pickled, so don't put values in the namespace
+# that aren't pickleable (module imports are okay, they're removed automatically).
+#
+# Note that not all possible configuration values are present in this
+# autogenerated file.
+#
+# All configuration values have a default; values that are commented out
+# serve to show the default.
+
+import sys, os
+
+# If your extensions are in another directory, add it here. If the directory
+# is relative to the documentation root, use os.path.abspath to make it
+# absolute, like shown here.
+#sys.path.append(os.path.abspath('.'))
+
+# General configuration
+# ---------------------
+
+# Add any Sphinx extension module names here, as strings. They can be extensions
+# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
+extensions = ['sphinx.ext.pngmath']
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['.templates']
+
+# The suffix of source filenames.
+source_suffix = '.rst'
+
+# The encoding of source files.
+#source_encoding = 'utf-8'
+
+# The master toctree document.
+master_doc = 'index'
+
+# General information about the project.
+project = u'pyspglib'
+copyright = u'2009, Atz Togo'
+
+# The version info for the project you're documenting, acts as replacement for
+# |version| and |release|, also used in various other places throughout the
+# built documents.
+#
+# The short X.Y version.
+version = '1.4'
+# The full version, including alpha/beta/rc tags.
+release = '1.4'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#language = None
+
+# There are two options for replacing |today|: either, you set today to some
+# non-false value, then it is used:
+#today = ''
+# Else, today_fmt is used as the format for a strftime call.
+#today_fmt = '%B %d, %Y'
+
+# List of documents that shouldn't be included in the build.
+#unused_docs = []
+
+# List of directories, relative to source directory, that shouldn't be searched
+# for source files.
+exclude_trees = ['_build']
+
+# The reST default role (used for this markup: `text`) to use for all documents.
+#default_role = None
+
+# If true, '()' will be appended to :func: etc. cross-reference text.
+#add_function_parentheses = True
+
+# If true, the current module name will be prepended to all description
+# unit titles (such as .. function::).
+#add_module_names = True
+
+# If true, sectionauthor and moduleauthor directives will be shown in the
+# output. They are ignored by default.
+#show_authors = False
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+
+# Options for HTML output
+# -----------------------
+
+# The name for this set of Sphinx documents. If None, it defaults to
+# "<project> v<release> documentation".
+#html_title = None
+
+# A shorter title for the navigation bar. Default is the same as html_title.
+#html_short_title = None
+
+# The name of an image file (relative to this directory) to place at the top
+# of the sidebar.
+#html_logo = None
+
+# The name of an image file (within the static path) to use as favicon of the
+# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
+# pixels large.
+#html_favicon = None
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
+# using the given strftime format.
+#html_last_updated_fmt = '%b %d, %Y'
+
+# If true, SmartyPants will be used to convert quotes and dashes to
+# typographically correct entities.
+#html_use_smartypants = True
+
+# Custom sidebar templates, maps document names to template names.
+#html_sidebars = {}
+
+# Additional templates that should be rendered to pages, maps page names to
+# template names.
+#html_additional_pages = {}
+
+# If false, no module index is generated.
+#html_use_modindex = True
+
+# If false, no index is generated.
+#html_use_index = True
+
+# If true, the index is split into individual pages for each letter.
+#html_split_index = False
+
+# If true, the reST sources are included in the HTML build as _sources/<name>.
+#html_copy_source = True
+
+# If true, an OpenSearch description file will be output, and all pages will
+# contain a <link> tag referring to it. The value of this option must be the
+# base URL from which the finished HTML is served.
+#html_use_opensearch = ''
+
+# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
+#html_file_suffix = ''
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'spglibforASEdoc'
+
+html_theme = 'nature'
+
+# Options for LaTeX output
+# ------------------------
+
+# The paper size ('letter' or 'a4').
+#latex_paper_size = 'letter'
+
+# The font size ('10pt', '11pt' or '12pt').
+#latex_font_size = '10pt'
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title, author, document class [howto/manual]).
+latex_documents = [
+ ('index', 'spglibforASE.tex', ur'spglib for ASE Documentation',
+ ur'Atz Togo', 'manual'),
+]
+
+# The name of an image file (relative to this directory) to place at the top of
+# the title page.
+#latex_logo = None
+
+# For "manual" documents, if this is true, then toplevel headings are parts,
+# not chapters.
+#latex_use_parts = False
+
+# Additional stuff for the LaTeX preamble.
+#latex_preamble = ''
+
+# Documents to append as an appendix to all manuals.
+#latex_appendices = []
+
+# If false, no module index is generated.
+#latex_use_modindex = True
diff --git a/python/ase/doc/index.rst b/python/ase/doc/index.rst
new file mode 100644
index 0000000..57d1993
--- /dev/null
+++ b/python/ase/doc/index.rst
@@ -0,0 +1,168 @@
+pyspglib for ASE
+==========================================
+
+Pyspglib is the python module for spglib. It is written for the
+Atomistic Simulation Environment (ASE).
+
+How to build spglib python module
+=================================
+
+The C sources of spglib and interface for the python C/API are
+compiled. The development environments for python and gcc are required
+before starting to build.
+
+1. Go to the :file:`python/ase` directory
+2. Type the command::
+
+ % python setup.py install --home=<my-directory>
+
+The :file:`{<my-directory>}` is possibly current directory, :file:`.`.
+
+3. Put ``lib/python`` path into :envvar:`$PYTHONPATH`, e.g., in your .bashrc.
+
+How to use it
+=============
+1. Import spglib::
+
+ from pyspglib import spglib
+
+2. Call the methods with ASE Atoms object.
+
+Methods
+=======
+
+The tolerance is given in Cartesian coordinates.
+
+``get_spacegroup``
+------------------
+::
+
+ spacegroup = get_spacegroup(atoms, symprec=1e-5)
+
+``atoms`` is the object of ASE Atoms class. ``symprec`` is the float
+variable, which is used as tolerance in symmetry search.
+
+International space group symbol and the number are obtained as a string.
+
+``get_symmetry``
+----------------
+::
+
+ symmetry = get_symmetry(atoms, symprec=1e-5)
+
+``atoms`` is the object of ASE Atoms class. ``symprec`` is the float
+variable, which is used as tolerance in symmetry search.
+
+Symmetry operations are obtained as a dictionary. The key ``rotation``
+contains a numpy array of integer, which is "number of symmetry
+operations" x "3x3 matrices". The key ``translation`` contains a numpy
+array of float, which is "number of symmetry operations" x
+"vectors". The orders of the rotation matrices and the translation
+vectors correspond with each other, e.g. , the second symmetry
+operation is organized by the second rotation matrix and second
+translation vector in the respective arrays. The operations are
+applied for the fractional coordinates (not for Cartesian
+coordinates).
+
+The rotation matrix and translation vector are used as follows::
+
+ new_vector[3x1] = rotation[3x3] * vector[3x1] + translation[3x1]
+
+The three values in the vector are given for the a, b, and c axes,
+respectively.
+
+``refine_cell``
+-------------------------------
+::
+
+ lattice, scaled_positions, numbers = refine_cell(atoms, symprec=1e-5)
+
+``atoms`` is the object of ASE Atoms class. ``symprec`` is the float
+variable, which is used as tolerance in symmetry search.
+
+Bravais lattice (3x3 numpy array), atomic scaled positions (a numpy
+array of [number_of_atoms,3]), and atomic numbers (a 1D numpy array)
+that are symmetrized following space group type are returned.
+
+``get_symmetry_dataset``
+----------------------------
+::
+
+ dataset = get_symmetry_dataset(atoms, symprec=1e-5)
+
+``dataset`` is a dictionary. The keys are:
+
+* ``number``: International space group number
+* ``international``: International symbol
+* ``hall``: Hall symbol
+* ``transformation_matrix``: Transformation matrix from lattice of input cell to Bravais lattice :math:`L^{bravais} = L^{original} * T`
+* ``origin shift``: Origin shift in the setting of Bravais lattice
+* ``wyckoffs``: Wyckoff letters
+* ``equivalent_atoms``: Mapping table to equivalent atoms
+* ``rotations`` and ``translations``: Rotation matrices and translation vectors. Space group operations are obtained by::
+
+ [(r, t) for r, t in zip(dataset['rotations'], dataset['translations'])]
+
+
+``find_primitive``
+------------------
+::
+
+ lattice, scaled_positions, numbers = find_primitive(atoms, symprec=1e-5)
+
+``atoms`` is the object of ASE Atoms class. ``symprec`` is the float
+variable, which is used as tolerance in symmetry search.
+
+When a primitive cell is found, lattice parameters (3x3 numpy array),
+scaled positions (a numpy array of [number_of_atoms,3]), and atomic
+numbers (a 1D numpy array) is returned. When no primitive cell is
+found, (``None``, ``None``, ``None``) is returned.
+
+``get_ir_reciprocal_mesh``
+--------------------------
+
+::
+
+ mapping, grid = get_ir_reciprocal_mesh(mesh, atoms, is_shift=[0,0,0])
+
+Irreducible k-points are obtained from a sampling mesh of k-points.
+``mesh`` is given by three integers by array and specifies mesh
+numbers along reciprocal primitive axis. ``atoms`` is an Atoms object
+of ASE. ``is_shift`` is given by the three integers by array. When
+``is_shift`` is set for each reciprocal primitive axis, the mesh is
+shifted along the axis in half of adjacent mesh points irrespective of
+the mesh numbers. When the value is not 0, ``is_shift`` is set.
+
+``mapping`` and ``grid`` are returned. ``grid`` gives the mesh points in
+fractional coordinates in reciprocal space. ``mapping`` gives mapping to
+the irreducible k-point indices that are obtained by ::
+
+ np.unique( mapping )
+
+Here ``np`` is the imported numpy module. The grid point is accessed
+by ``grid[ index ]``.
+
+For example, the irreducible k-points in fractional coordinates are
+obtained by ::
+
+ ir_grid = []
+ mapping, grid = get_ir_reciprocal_mesh( [ 8, 8, 8 ], atoms, [ 1, 1, 1 ] )
+ for i in np.unique( mapping ):
+ ir_grid.append( grid[ i ] )
+
+Example
+=============
+
+Examples are found in ``examples`` directory. An example code is :ref:`this <examples>`.
+
+Instead of ASE's ``Atoms`` class, ``Atoms`` class in ``atoms.py`` in the ``examples`` directory may be used. To use this ``atoms.py``, ::
+
+ from atoms import Atoms
+
+
+.. |sflogo| image:: http://sflogo.sourceforge.net/sflogo.php?group_id=161614&type=1
+ :target: http://sourceforge.net
+
+
+
+|sflogo|
diff --git a/python/ase/examples/example_ase.py b/python/ase/examples/example_ase.py
new file mode 100644
index 0000000..385b7ae
--- /dev/null
+++ b/python/ase/examples/example_ase.py
@@ -0,0 +1,132 @@
+#!/usr/bin/evn python
+
+import sys
+from ase import *
+from pyspglib import spglib
+import numpy as np
+
+silicon = Atoms( symbols=['Si']*8,
+ cell=[(4,0,0),
+ (0,4,0),
+ (0,0,4)],
+ scaled_positions=[(0, 0, 0),
+ (0, 0.5, 0.5),
+ (0.5, 0, 0.5),
+ (0.5, 0.5, 0),
+ (0.25, 0.25, 0.25),
+ (0.25, 0.75, 0.75),
+ (0.75, 0.25, 0.75),
+ (0.75, 0.75, 0.25)],
+ pbc=True)
+
+silicon_prim = Atoms( symbols=['Si']*2,
+ cell=[(0,2,2),
+ (2,0,2),
+ (2,2,0)],
+ scaled_positions=[(0, 0, 0),
+ (0.25, 0.25, 0.25)],
+ pbc=True)
+
+rutile = Atoms( symbols=['Si']*2+['O']*4,
+ cell=[ (4,0,0),
+ (0,4,0),
+ (0,0,3) ],
+ scaled_positions=[(0, 0, 0),
+ (0.5, 0.5, 0.5),
+ (0.3, 0.3, 0.0),
+ (0.7, 0.7, 0.0),
+ (0.2, 0.8, 0.5),
+ (0.8, 0.2, 0.5)],
+ pbc=True )
+
+# For VASP case
+# import ase.io.vasp as vasp
+# bulk = vasp.read_vasp(sys.argv[1])
+
+print "[get_spacegroup]"
+print " Spacegroup of Silicon is ", spglib.get_spacegroup(silicon)
+print ""
+print "[get_spacegroup]"
+print " Spacegroup of Rutile is ", spglib.get_spacegroup(rutile)
+print ""
+print "[get_symmetry]"
+print " Symmetry operations of Rutile unitcell are:"
+print ""
+symmetry = spglib.get_symmetry( rutile )
+for i in range(symmetry['rotations'].shape[0]):
+ print " --------------- %4d ---------------" % (i+1)
+ rot = symmetry['rotations'][i]
+ trans = symmetry['translations'][i]
+ print " rotation:"
+ for x in rot:
+ print " [%2d %2d %2d]" % (x[0], x[1], x[2])
+ print " translation:"
+ print " (%8.5f %8.5f %8.5f)" % (trans[0], trans[1], trans[2])
+print ""
+
+dataset = spglib.get_symmetry_dataset( rutile )
+print "[get_symmetry_dataset] ['international']"
+print " Spacegroup of Rutile is ", dataset['international']
+print ""
+print "[get_symmetry_dataset] ['wyckoffs']"
+alphabet = "abcdefghijklmnopqrstuvwxyz"
+print " Wyckoff letters of Rutile are: ", dataset['wyckoffs']
+print ""
+print "[get_symmetry_dataset] ['equivalent_atoms']"
+print " Mapping to equivalent atoms of Rutile are: "
+for i, x in enumerate( dataset['equivalent_atoms'] ):
+ print " %d -> %d" % ( i+1, x+1 )
+print ""
+print "[get_symmetry_dataset] ['rotations'], ['translations']"
+print " Symmetry operations of Rutile unitcell are:"
+for i, (rot,trans) in enumerate( zip( dataset['rotations'], dataset['translations'] ) ):
+ print " --------------- %4d ---------------" % (i+1)
+ print " rotation:"
+ for x in rot:
+ print " [%2d %2d %2d]" % (x[0], x[1], x[2])
+ print " translation:"
+ print " (%8.5f %8.5f %8.5f)" % (trans[0], trans[1], trans[2])
+print ""
+
+symmetry = spglib.get_symmetry(silicon)
+print "[get_symmetry]"
+print " Number of symmetry operations of silicon convensional"
+print " unit cell is ", len( symmetry['rotations'] ), "(192)."
+print ""
+
+mapping, grid = spglib.get_ir_reciprocal_mesh( [ 11, 11, 11 ],
+ silicon_prim,
+ is_shift=[ 0, 0, 0 ] )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_reciprocal_mesh]"
+print " Number of irreducible k-points of primitive silicon with"
+print " 11x11x11 Monkhorst-Pack mesh is ", num_ir_kpt, "(56)."
+print ""
+
+mapping, grid = spglib.get_ir_reciprocal_mesh( [ 8, 8, 8 ],
+ rutile,
+ is_shift=[ 1, 1, 1 ] )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_reciprocal_mesh]"
+print " Number of irreducible k-points of Rutile with"
+print " 8x8x8 Monkhorst-Pack mesh is ", num_ir_kpt, "(40)."
+print ""
+
+
+mesh = np.array([8,8,8])
+kpoints = []
+for i in range(mesh[0]):
+ for j in range(mesh[1]):
+ for k in range(mesh[2]):
+ kpoints.append([float(i)/mesh[0],
+ float(j)/mesh[1],
+ float(k)/mesh[2]])
+kpoints = np.array(kpoints) + 0.5/mesh
+kpoints = kpoints - 1 * ( kpoints > 0.5 )
+mapping = spglib.get_ir_kpoints( kpoints, rutile )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_kpoints]"
+print " Number of irreducible k-points of Rutile with"
+print " 8x8x8 Monkhorst-Pack mesh is ", num_ir_kpt, "(40)."
+print ""
+
diff --git a/python/ase/examples/example_atoms.py b/python/ase/examples/example_atoms.py
new file mode 100644
index 0000000..678d438
--- /dev/null
+++ b/python/ase/examples/example_atoms.py
@@ -0,0 +1,164 @@
+#!/usr/bin/evn python
+
+import sys
+from pyspglib import spglib
+import numpy as np
+
+try:
+ from atoms import Atoms
+except ImportError:
+ print "Atoms class is necessary."
+ print "You can use atoms.py in the test/ directory."
+ sys.exit(1)
+
+silicon = Atoms( symbols=['Si']*8,
+ cell=[(4,0,0),
+ (0,4,0),
+ (0,0,4)],
+ scaled_positions=[(0, 0, 0),
+ (0, 0.5, 0.5),
+ (0.5, 0, 0.5),
+ (0.5, 0.5, 0),
+ (0.25, 0.25, 0.25),
+ (0.25, 0.75, 0.75),
+ (0.75, 0.25, 0.75),
+ (0.75, 0.75, 0.25)],
+ pbc=True)
+
+silicon_prim = Atoms( symbols=['Si']*2,
+ cell=[(0,2,2),
+ (2,0,2),
+ (2,2,0)],
+ scaled_positions=[(0, 0, 0),
+ (0.25, 0.25, 0.25)],
+ pbc=True)
+
+rutile = Atoms( symbols=['Si']*2+['O']*4,
+ cell=[ (4,0,0),
+ (0,4,0),
+ (0,0,3) ],
+ scaled_positions=[(0, 0, 0),
+ (0.5, 0.5, 0.5),
+ (0.3, 0.3, 0.0),
+ (0.7, 0.7, 0.0),
+ (0.2, 0.8, 0.5),
+ (0.8, 0.2, 0.5)],
+ pbc=True )
+
+a = 3.07
+c = 3.52
+MgB2 = Atoms( symbols=['Mg']+['B']*2,
+ cell=[ ( a, 0, 0 ),
+ ( -a/2, a/2*np.sqrt(3), 0 ),
+ ( 0, 0, c ) ],
+ scaled_positions=[ ( 0, 0, 0 ),
+ ( 1.0/3, 2.0/3, 0.5 ),
+ ( 2.0/3, 1.0/3, 0.5 ) ],
+ pbc=True )
+
+# For VASP case
+# import vasp
+# bulk = vasp.read_vasp(sys.argv[1])
+
+print "[get_spacegroup]"
+print " Spacegroup of Silicon is ", spglib.get_spacegroup(silicon)
+print ""
+print "[get_spacegroup]"
+print " Spacegroup of Rutile is ", spglib.get_spacegroup(rutile)
+print ""
+print "[get_spacegroup]"
+print " Spacegroup of MgB2 is ", spglib.get_spacegroup(MgB2)
+print ""
+print "[get_symmetry]"
+print " Symmetry operations of Rutile unitcell are:"
+print ""
+symmetry = spglib.get_symmetry( rutile )
+for i in range(symmetry['rotations'].shape[0]):
+ print " --------------- %4d ---------------" % (i+1)
+ rot = symmetry['rotations'][i]
+ trans = symmetry['translations'][i]
+ print " rotation:"
+ for x in rot:
+ print " [%2d %2d %2d]" % (x[0], x[1], x[2])
+ print " translation:"
+ print " (%8.5f %8.5f %8.5f)" % (trans[0], trans[1], trans[2])
+print ""
+print "[get_pointgroup]"
+print " Pointgroup of Rutile is", spglib.get_pointgroup(symmetry['rotations'])[0]
+print ""
+
+dataset = spglib.get_symmetry_dataset( rutile )
+print "[get_symmetry_dataset] ['international']"
+print " Spacegroup of Rutile is ", dataset['international']
+print ""
+print "[get_symmetry_dataset] ['wyckoffs']"
+alphabet = "abcdefghijklmnopqrstuvwxyz"
+print " Wyckoff letters of Rutile are: ", dataset['wyckoffs']
+print ""
+print "[get_symmetry_dataset] ['equivalent_atoms']"
+print " Mapping to equivalent atoms of Rutile are: "
+for i, x in enumerate( dataset['equivalent_atoms'] ):
+ print " %d -> %d" % ( i+1, x+1 )
+print ""
+print "[get_symmetry_dataset] ['rotations'], ['translations']"
+print " Symmetry operations of Rutile unitcell are:"
+for i, (rot,trans) in enumerate( zip( dataset['rotations'], dataset['translations'] ) ):
+ print " --------------- %4d ---------------" % (i+1)
+ print " rotation:"
+ for x in rot:
+ print " [%2d %2d %2d]" % (x[0], x[1], x[2])
+ print " translation:"
+ print " (%8.5f %8.5f %8.5f)" % (trans[0], trans[1], trans[2])
+print ""
+
+symmetry = spglib.get_symmetry(silicon)
+print "[get_symmetry]"
+print " Number of symmetry operations of silicon convensional"
+print " unit cell is ", len( symmetry['rotations'] ), "(192)."
+print ""
+
+mapping, grid = spglib.get_ir_reciprocal_mesh( [ 11, 11, 11 ],
+ silicon_prim,
+ is_shift=[ 0, 0, 0 ] )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_reciprocal_mesh]"
+print " Number of irreducible k-points of primitive silicon with"
+print " 11x11x11 Monkhorst-Pack mesh is ", num_ir_kpt, "(56)."
+print ""
+
+mapping, grid = spglib.get_ir_reciprocal_mesh( [ 8, 8, 8 ],
+ rutile,
+ is_shift=[ 1, 1, 1 ] )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_reciprocal_mesh]"
+print " Number of irreducible k-points of Rutile with"
+print " 8x8x8 Monkhorst-Pack mesh is ", num_ir_kpt, "(40)."
+print ""
+
+mapping, grid = spglib.get_ir_reciprocal_mesh( [ 9, 9, 8 ],
+ MgB2,
+ is_shift=[ 0, 0, 1 ] )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_reciprocal_mesh]"
+print " Number of irreducible k-points of MgB2 with"
+print " 9x9x8 Monkhorst-Pack mesh is ", num_ir_kpt, "(48)."
+print ""
+
+
+mesh = np.array([8,8,8])
+kpoints = []
+for i in range(mesh[0]):
+ for j in range(mesh[1]):
+ for k in range(mesh[2]):
+ kpoints.append([float(i)/mesh[0],
+ float(j)/mesh[1],
+ float(k)/mesh[2]])
+kpoints = np.array(kpoints) + 0.5/mesh
+kpoints = kpoints - 1 * ( kpoints > 0.5 )
+mapping = spglib.get_ir_kpoints( kpoints, rutile )
+num_ir_kpt = len( np.unique( mapping ) )
+print "[get_ir_kpoints]"
+print " Number of irreducible k-points of Rutile with"
+print " 8x8x8 Monkhorst-Pack mesh is ", num_ir_kpt, "(40)."
+print ""
+
diff --git a/python/ase/pyspglib/__init__.py b/python/ase/pyspglib/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/python/ase/pyspglib/spglib.py b/python/ase/pyspglib/spglib.py
new file mode 100644
index 0000000..861c829
--- /dev/null
+++ b/python/ase/pyspglib/spglib.py
@@ -0,0 +1,327 @@
+"""
+Spglib interface for ASE
+"""
+
+import pyspglib._spglib as spg
+import numpy as np
+
+def get_symmetry(bulk, symprec=1e-5, angle_tolerance=-1.0):
+ """
+ Return symmetry operations as hash.
+ Hash key 'rotations' gives the numpy integer array
+ of the rotation matrices for scaled positions
+ Hash key 'translations' gives the numpy float64 array
+ of the translation vectors in scaled positions
+ """
+
+ # Atomic positions have to be specified by scaled positions for spglib.
+ positions = bulk.get_scaled_positions().copy()
+ lattice = bulk.get_cell().T.copy()
+ numbers = bulk.get_atomic_numbers()
+
+ # Get number of symmetry operations and allocate symmetry operations
+ # multi = spg.multiplicity(cell, positions, numbers, symprec)
+ multi = 48 * bulk.get_number_of_atoms()
+ rotation = np.zeros((multi, 3, 3), dtype=int)
+ translation = np.zeros((multi, 3))
+
+ # Get symmetry operations
+ magmoms = bulk.get_magnetic_moments()
+ if magmoms == None:
+ num_sym = spg.symmetry(rotation,
+ translation,
+ lattice,
+ positions,
+ numbers,
+ symprec,
+ angle_tolerance)
+ else:
+ num_sym = spg.symmetry_with_collinear_spin(rotation,
+ translation,
+ lattice,
+ positions,
+ numbers,
+ magmoms,
+ symprec,
+ angle_tolerance)
+
+ return {'rotations': rotation[:num_sym],
+ 'translations': translation[:num_sym]}
+
+def get_symmetry_dataset(bulk, symprec=1e-5, angle_tolerance=-1.0):
+ """
+ number: International space group number
+ international: International symbol
+ hall: Hall symbol
+ transformation_matrix:
+ Transformation matrix from lattice of input cell to Bravais lattice
+ L^bravais = L^original * Tmat
+ origin shift: Origin shift in the setting of 'Bravais lattice'
+ rotations, translations:
+ Rotation matrices and translation vectors
+ Space group operations are obtained by
+ [(r,t) for r, t in zip(rotations, translations)]
+ wyckoffs:
+ Wyckoff letters
+ """
+ positions = bulk.get_scaled_positions().copy()
+ lattice = bulk.get_cell().T.copy()
+ numbers = bulk.get_atomic_numbers()
+ keys = ('number',
+ 'international',
+ 'hall',
+ 'transformation_matrix',
+ 'origin_shift',
+ 'rotations',
+ 'translations',
+ 'wyckoffs',
+ 'equivalent_atoms')
+ dataset = {}
+ for key, data in zip(keys, spg.dataset(lattice,
+ positions,
+ numbers,
+ symprec,
+ angle_tolerance)):
+ dataset[key] = data
+
+ dataset['international'] = dataset['international'].strip()
+ dataset['hall'] = dataset['hall'].strip()
+ dataset['transformation_matrix'] = np.array(dataset['transformation_matrix'])
+ dataset['origin_shift'] = np.array(dataset['origin_shift'])
+ dataset['rotations'] = np.array(dataset['rotations'])
+ dataset['translations'] = np.array(dataset['translations'])
+ letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ dataset['wyckoffs'] = [letters[x] for x in dataset['wyckoffs']]
+ dataset['equivalent_atoms'] = np.array(dataset['equivalent_atoms'])
+
+ return dataset
+
+def get_spacegroup(bulk, symprec=1e-5, angle_tolerance=-1.0):
+ """
+ Return space group in international table symbol and number
+ as a string.
+ """
+ # Atomic positions have to be specified by scaled positions for spglib.
+ return spg.spacegroup(bulk.get_cell().T.copy(),
+ bulk.get_scaled_positions().copy(),
+ bulk.get_atomic_numbers(),
+ symprec,
+ angle_tolerance)
+
+def get_pointgroup(rotations):
+ """
+ Return point group in international table symbol and number.
+ The symbols are mapped to the numbers as follows:
+ 1 "1 "
+ 2 "-1 "
+ 3 "2 "
+ 4 "m "
+ 5 "2/m "
+ 6 "222 "
+ 7 "mm2 "
+ 8 "mmm "
+ 9 "4 "
+ 10 "-4 "
+ 11 "4/m "
+ 12 "422 "
+ 13 "4mm "
+ 14 "-42m "
+ 15 "4/mmm"
+ 16 "3 "
+ 17 "-3 "
+ 18 "32 "
+ 19 "3m "
+ 20 "-3m "
+ 21 "6 "
+ 22 "-6 "
+ 23 "6/m "
+ 24 "622 "
+ 25 "6mm "
+ 26 "-62m "
+ 27 "6/mmm"
+ 28 "23 "
+ 29 "m-3 "
+ 30 "432 "
+ 31 "-43m "
+ 32 "m-3m "
+ """
+
+ # (symbol, pointgroup_number, transformation_matrix)
+ return spg.pointgroup(rotations)
+
+def refine_cell(bulk, symprec=1e-5, angle_tolerance=-1.0):
+ """
+ Return refined cell
+ """
+ # Atomic positions have to be specified by scaled positions for spglib.
+ num_atom = bulk.get_number_of_atoms()
+ lattice = bulk.get_cell().T.copy()
+ pos = np.zeros((num_atom * 4, 3), dtype=float)
+ pos[:num_atom] = bulk.get_scaled_positions()
+
+ numbers = np.zeros(num_atom * 4, dtype=int)
+ numbers[:num_atom] = bulk.get_atomic_numbers()
+ num_atom_bravais = spg.refine_cell(lattice,
+ pos,
+ numbers,
+ num_atom,
+ symprec,
+ angle_tolerance)
+
+ return lattice.T.copy(), pos[:num_atom_bravais], numbers[:num_atom_bravais]
+
+def find_primitive(bulk, symprec=1e-5, angle_tolerance=-1.0):
+ """
+ A primitive cell in the input cell is searched and returned
+ as an object of Atoms class.
+ If no primitive cell is found, (None, None, None) is returned.
+ """
+
+ # Atomic positions have to be specified by scaled positions for spglib.
+ positions = bulk.get_scaled_positions().copy()
+ lattice = bulk.get_cell().T.copy()
+ numbers = bulk.get_atomic_numbers()
+
+ # lattice is transposed with respect to the definition of Atoms class
+ num_atom_prim = spg.primitive(lattice,
+ positions,
+ numbers,
+ symprec,
+ angle_tolerance)
+ if num_atom_prim > 0:
+ return lattice.T, positions[:num_atom_prim], numbers[:num_atom_prim]
+ else:
+ return None, None, None
+
+def get_ir_kpoints(kpoint,
+ bulk,
+ is_time_reversal=True,
+ symprec=1e-5):
+ """
+ Retrun irreducible kpoints
+ """
+ mapping = np.zeros(kpoint.shape[0], dtype=int)
+ spg.ir_kpoints(mapping,
+ kpoint,
+ bulk.get_cell().T.copy(),
+ bulk.get_scaled_positions().copy(),
+ bulk.get_atomic_numbers(),
+ is_time_reversal * 1,
+ symprec)
+ return mapping
+
+def get_ir_reciprocal_mesh(mesh,
+ bulk,
+ is_shift=np.zeros(3, dtype=int),
+ is_time_reversal=True,
+ symprec=1e-5):
+ """
+ Return k-points mesh and k-point map to the irreducible k-points
+ The symmetry is serched from the input cell.
+ is_shift=[0, 0, 0] gives Gamma center mesh.
+ """
+
+ mapping = np.zeros(np.prod(mesh), dtype=int)
+ mesh_points = np.zeros((np.prod(mesh), 3), dtype=int)
+ spg.ir_reciprocal_mesh(mesh_points,
+ mapping,
+ np.array(mesh),
+ np.array(is_shift),
+ is_time_reversal * 1,
+ bulk.get_cell().T.copy(),
+ bulk.get_scaled_positions().copy(),
+ bulk.get_atomic_numbers(), symprec)
+
+ return mapping, mesh_points
+
+def get_stabilized_reciprocal_mesh(mesh,
+ rotations,
+ is_shift=np.zeros(3, dtype=int),
+ is_time_reversal=True,
+ qpoints=np.array([], dtype=float)):
+ """
+ Return k-point map to the irreducible k-points and k-point grid points .
+
+ The symmetry is searched from the input rotation matrices in real space.
+
+ is_shift=[0, 0, 0] gives Gamma center mesh and the values 1 give
+ half mesh distance shifts.
+ """
+
+ mapping = np.zeros(np.prod(mesh), dtype=int)
+ mesh_points = np.zeros((np.prod(mesh), 3), dtype=int)
+ qpoints = np.array(qpoints, dtype=float)
+ if qpoints.shape == (3,):
+ qpoints = np.array([qpoints])
+ spg.stabilized_reciprocal_mesh(mesh_points,
+ mapping,
+ np.array(mesh, dtype=int),
+ np.array(is_shift, dtype=int),
+ is_time_reversal * 1,
+ rotations.copy(),
+ np.array(qpoints, dtype=float))
+
+ return mapping, mesh_points
+
+def get_triplets_reciprocal_mesh(mesh,
+ pointgroup,
+ is_time_reversal=True):
+ """
+ Return symmetry reduced triplets (set of addresses) and
+ k-point grid points corresponding to addresses.
+ The k-point grid is accessed by mesh_points[address].
+
+ The symmetry is searched from the input rotation matrices in real space.
+ is_shift=[0, 0, 0] gives Gamma center mesh and the values 1 give
+ half mesh distance shifts.
+ """
+
+ triplets, weights, mesh_points = spg.triplets_reciprocal_mesh(
+ np.array(mesh, dtype=int),
+ is_time_reversal * 1,
+ pointgroup.copy())
+
+ return np.array(triplets), np.array(weights), np.array(mesh_points)
+
+def get_triplets_reciprocal_mesh_at_q(fixed_grid_number,
+ mesh,
+ rotations,
+ is_time_reversal=True):
+
+ weights = np.zeros(np.prod(mesh), dtype=int)
+ third_q = np.zeros(np.prod(mesh), dtype=int)
+ mesh_points = np.zeros((np.prod(mesh), 3), dtype=int)
+
+ spg.triplets_reciprocal_mesh_at_q(weights,
+ mesh_points,
+ third_q,
+ fixed_grid_number,
+ np.array(mesh, dtype=int),
+ is_time_reversal * 1,
+ rotations.copy())
+
+ return weights, third_q, mesh_points
+
+
+def extract_triplets_reciprocal_mesh_at_q(fixed_grid_number,
+ triplets,
+ mesh,
+ pointgroup,
+ is_time_reversal=True):
+
+ triplets_with_q = np.zeros((len(triplets), 3), dtype=int)
+ weights_with_q = np.zeros(len(triplets), dtype=int)
+
+ num_triplets_with_q = \
+ spg.triplets_reciprocal_mesh_at_q_from_triplets(triplets_with_q,
+ weights_with_q,
+ fixed_grid_number,
+ triplets,
+ np.array(mesh, dtype=int),
+ is_time_reversal * 1,
+ pointgroup.copy())
+
+ return \
+ triplets_with_q[:num_triplets_with_q], \
+ weights_with_q[:num_triplets_with_q]
+
diff --git a/python/ase/setup.py b/python/ase/setup.py
new file mode 100644
index 0000000..174f97f
--- /dev/null
+++ b/python/ase/setup.py
@@ -0,0 +1,50 @@
+import os
+from distutils.core import setup, Extension
+from numpy.distutils.misc_util import get_numpy_include_dirs
+
+
+include_dirs = ['../../src']
+sources = [
+ '../../src/cell.c',
+ '../../src/debug.c',
+ '../../src/hall_symbol.c',
+ '../../src/kpoint.c',
+ '../../src/lattice.c',
+ '../../src/mathfunc.c',
+ '../../src/pointgroup.c',
+ '../../src/primitive.c',
+ '../../src/refinement.c',
+ '../../src/sitesym_database.c',
+ '../../src/site_symmetry.c',
+ '../../src/spacegroup.c',
+ '../../src/spin.c',
+ '../../src/spg_database.c',
+ '../../src/spglib.c',
+ '../../src/symmetry.c'
+]
+
+# Hmm, bdist_rpm requires that all sources are within root directory.
+# Therefore add a symlink to src directory under systems that support it...
+if hasattr(os, 'symlink'):
+ if not os.path.exists('src'):
+ os.symlink('../../src', 'src')
+ include_dirs = ['src']
+ sources = [os.path.join('src', os.path.basename(f))
+ for f in sources]
+
+
+extension = Extension('pyspglib._spglib',
+ include_dirs = include_dirs + get_numpy_include_dirs(),
+ sources = ['_spglib.c'] + sources,
+ extra_compile_args=['-fopenmp'],
+ extra_link_args=['-lgomp'],
+ )
+
+setup (name = 'spglib',
+ version = '1.4',
+ description = 'This is the spglib module.',
+ author = 'Atsushi Togo',
+ author_email = 'atz.togo at gmail.com',
+ url = 'http://spglib.sourceforge.net/',
+ packages = ['pyspglib'],
+ ext_modules = [extension])
diff --git a/python/ase/test/atoms.py b/python/ase/test/atoms.py
new file mode 100644
index 0000000..c79b04a
--- /dev/null
+++ b/python/ase/test/atoms.py
@@ -0,0 +1,383 @@
+# Copyright (C) 2011 Atsushi Togo
+#
+# This file was originary part of phonopy.
+#
+# Phonopy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Phonopy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with phonopy. If not, see <http://www.gnu.org/licenses/>.
+
+import numpy as np
+
+class Atoms:
+ """Atoms class compatible with the ASE Atoms class
+ Only the necessary stuffs to phonpy are implemented. """
+
+ def __init__(self,
+ symbols=None,
+ positions=None,
+ numbers=None,
+ masses=None,
+ magmoms=None,
+ scaled_positions=None,
+ cell=None,
+ pbc=None):
+
+ # cell
+ if cell == None:
+ self.cell=None
+ else:
+ self.cell = np.array(cell, dtype=float)
+
+ # position
+ self.scaled_positions = None
+ if (not self.cell == None) and (not positions == None):
+ self.set_positions(positions)
+ if (not scaled_positions == None):
+ self.set_scaled_positions(scaled_positions)
+
+ # Atom symbols
+ self.symbols = symbols
+
+ # Atomic numbers
+ if numbers==None:
+ self.numbers = None
+ else:
+ self.numbers = np.array(numbers, dtype=int)
+
+ # masses
+ self.set_masses(masses)
+
+ # (initial) magnetic moments
+ self.set_magnetic_moments(magmoms)
+
+ # number --> symbol
+ if not self.numbers == None:
+ self.numbers_to_symbols()
+
+ # symbol --> number
+ elif not self.symbols == None:
+ self.symbols_to_numbers()
+
+ # symbol --> mass
+ if self.symbols and (self.masses == None):
+ self.symbols_to_masses()
+
+
+ def set_cell(self, cell):
+ self.cell = np.array(cell, dtype=float)
+
+ def get_cell(self):
+ return self.cell.copy()
+
+ def set_positions(self, cart_positions):
+ self.scaled_positions = np.dot(cart_positions,
+ np.linalg.inv(self.cell))
+
+ def get_positions(self):
+ return np.dot(self.scaled_positions, self.cell)
+
+ def set_scaled_positions(self, scaled_positions):
+ self.scaled_positions = np.array(scaled_positions, dtype=float)
+
+ def get_scaled_positions(self):
+ return self.scaled_positions.copy()
+
+ def set_masses(self, masses):
+ if masses == None:
+ self.masses = None
+ else:
+ self.masses = np.array(masses, dtype=float)
+
+ def get_masses(self):
+ return self.masses.copy()
+
+ def set_magnetic_moments(self, magmoms):
+ if magmoms == None:
+ self.magmoms = None
+ else:
+ self.magmoms = np.array(magmoms, dtype=float)
+
+ def get_magnetic_moments(self):
+ if self.magmoms == None:
+ return None
+ else:
+ return self.magmoms.copy()
+
+ def set_chemical_symbols(self, symbols):
+ self.symbols = symbols
+
+ def get_chemical_symbols(self):
+ return self.symbols[:]
+
+ def get_number_of_atoms(self):
+ return len(self.scaled_positions)
+
+ def get_atomic_numbers(self):
+ return self.numbers.copy()
+
+ def numbers_to_symbols(self):
+ self.symbols = [atom_data[n][1] for n in self.numbers]
+
+ def symbols_to_numbers(self):
+ self.numbers = np.array([symbol_map[s]
+ for s in self.symbols])
+
+ def symbols_to_masses(self):
+ self.masses = np.array([atom_data[symbol_map[s]][3]
+ for s in self.symbols])
+
+ def get_volume(self):
+ return np.linalg.det(self.cell)
+
+atom_data = [
+ [ 0, "X", "X", 0], # 0
+ [ 1, "H", "Hydrogen", 1.00794], # 1
+ [ 2, "He", "Helium", 4.002602], # 2
+ [ 3, "Li", "Lithium", 6.941], # 3
+ [ 4, "Be", "Beryllium", 9.012182], # 4
+ [ 5, "B", "Boron", 10.811], # 5
+ [ 6, "C", "Carbon", 12.0107], # 6
+ [ 7, "N", "Nitrogen", 14.0067], # 7
+ [ 8, "O", "Oxygen", 15.9994], # 8
+ [ 9, "F", "Fluorine", 18.9984032], # 9
+ [ 10, "Ne", "Neon", 20.1797], # 10
+ [ 11, "Na", "Sodium", 22.98976928], # 11
+ [ 12, "Mg", "Magnesium", 24.3050], # 12
+ [ 13, "Al", "Aluminium", 26.9815386], # 13
+ [ 14, "Si", "Silicon", 28.0855], # 14
+ [ 15, "P", "Phosphorus", 30.973762], # 15
+ [ 16, "S", "Sulfur", 32.065], # 16
+ [ 17, "Cl", "Chlorine", 35.453], # 17
+ [ 18, "Ar", "Argon", 39.948], # 18
+ [ 19, "K", "Potassium", 39.0983], # 19
+ [ 20, "Ca", "Calcium", 40.078], # 20
+ [ 21, "Sc", "Scandium", 44.955912], # 21
+ [ 22, "Ti", "Titanium", 47.867], # 22
+ [ 23, "V", "Vanadium", 50.9415], # 23
+ [ 24, "Cr", "Chromium", 51.9961], # 24
+ [ 25, "Mn", "Manganese", 54.938045], # 25
+ [ 26, "Fe", "Iron", 55.845], # 26
+ [ 27, "Co", "Cobalt", 58.933195], # 27
+ [ 28, "Ni", "Nickel", 58.6934], # 28
+ [ 29, "Cu", "Copper", 63.546], # 29
+ [ 30, "Zn", "Zinc", 65.38], # 30
+ [ 31, "Ga", "Gallium", 69.723], # 31
+ [ 32, "Ge", "Germanium", 72.64], # 32
+ [ 33, "As", "Arsenic", 74.92160], # 33
+ [ 34, "Se", "Selenium", 78.96], # 34
+ [ 35, "Br", "Bromine", 79.904], # 35
+ [ 36, "Kr", "Krypton", 83.798], # 36
+ [ 37, "Rb", "Rubidium", 85.4678], # 37
+ [ 38, "Sr", "Strontium", 87.62], # 38
+ [ 39, "Y", "Yttrium", 88.90585], # 39
+ [ 40, "Zr", "Zirconium", 91.224], # 40
+ [ 41, "Nb", "Niobium", 92.90638], # 41
+ [ 42, "Mo", "Molybdenum", 95.96], # 42
+ [ 43, "Tc", "Technetium", 0], # 43
+ [ 44, "Ru", "Ruthenium", 101.07], # 44
+ [ 45, "Rh", "Rhodium", 102.90550], # 45
+ [ 46, "Pd", "Palladium", 106.42], # 46
+ [ 47, "Ag", "Silver", 107.8682], # 47
+ [ 48, "Cd", "Cadmium", 112.411], # 48
+ [ 49, "In", "Indium", 114.818], # 49
+ [ 50, "Sn", "Tin", 118.710], # 50
+ [ 51, "Sb", "Antimony", 121.760], # 51
+ [ 52, "Te", "Tellurium", 127.60], # 52
+ [ 53, "I", "Iodine", 126.90447], # 53
+ [ 54, "Xe", "Xenon", 131.293], # 54
+ [ 55, "Cs", "Caesium", 132.9054519], # 55
+ [ 56, "Ba", "Barium", 137.327], # 56
+ [ 57, "La", "Lanthanum", 138.90547], # 57
+ [ 58, "Ce", "Cerium", 140.116], # 58
+ [ 59, "Pr", "Praseodymium", 140.90765], # 59
+ [ 60, "Nd", "Neodymium", 144.242], # 60
+ [ 61, "Pm", "Promethium", 0], # 61
+ [ 62, "Sm", "Samarium", 150.36], # 62
+ [ 63, "Eu", "Europium", 151.964], # 63
+ [ 64, "Gd", "Gadolinium", 157.25], # 64
+ [ 65, "Tb", "Terbium", 158.92535], # 65
+ [ 66, "Dy", "Dysprosium", 162.500], # 66
+ [ 67, "Ho", "Holmium", 164.93032], # 67
+ [ 68, "Er", "Erbium", 167.259], # 68
+ [ 69, "Tm", "Thulium", 168.93421], # 69
+ [ 70, "Yb", "Ytterbium", 173.054], # 70
+ [ 71, "Lu", "Lutetium", 174.9668], # 71
+ [ 72, "Hf", "Hafnium", 178.49], # 72
+ [ 73, "Ta", "Tantalum", 180.94788], # 73
+ [ 74, "W", "Tungsten", 183.84], # 74
+ [ 75, "Re", "Rhenium", 186.207], # 75
+ [ 76, "Os", "Osmium", 190.23], # 76
+ [ 77, "Ir", "Iridium", 192.217], # 77
+ [ 78, "Pt", "Platinum", 195.084], # 78
+ [ 79, "Au", "Gold", 196.966569], # 79
+ [ 80, "Hg", "Mercury", 200.59], # 80
+ [ 81, "Tl", "Thallium", 204.3833], # 81
+ [ 82, "Pb", "Lead", 207.2], # 82
+ [ 83, "Bi", "Bismuth", 208.98040], # 83
+ [ 84, "Po", "Polonium", 0], # 84
+ [ 85, "At", "Astatine", 0], # 85
+ [ 86, "Rn", "Radon", 0], # 86
+ [ 87, "Fr", "Francium", 0], # 87
+ [ 88, "Ra", "Radium", 0], # 88
+ [ 89, "Ac", "Actinium", 0], # 89
+ [ 90, "Th", "Thorium", 232.03806], # 90
+ [ 91, "Pa", "Protactinium", 231.03588], # 91
+ [ 92, "U", "Uranium", 238.02891], # 92
+ [ 93, "Np", "Neptunium", 0], # 93
+ [ 94, "Pu", "Plutonium", 0], # 94
+ [ 95, "Am", "Americium", 0], # 95
+ [ 96, "Cm", "Curium", 0], # 96
+ [ 97, "Bk", "Berkelium", 0], # 97
+ [ 98, "Cf", "Californium", 0], # 98
+ [ 99, "Es", "Einsteinium", 0], # 99
+ [100, "Fm", "Fermium", 0], # 100
+ [101, "Md", "Mendelevium", 0], # 101
+ [102, "No", "Nobelium", 0], # 102
+ [103, "Lr", "Lawrencium", 0], # 103
+ [104, "Rf", "Rutherfordium", 0], # 104
+ [105, "Db", "Dubnium", 0], # 105
+ [106, "Sg", "Seaborgium", 0], # 106
+ [107, "Bh", "Bohrium", 0], # 107
+ [108, "Hs", "Hassium", 0], # 108
+ [109, "Mt", "Meitnerium", 0], # 109
+ [110, "Ds", "Darmstadtium", 0], # 110
+ [111, "Rg", "Roentgenium", 0], # 111
+ [112, "Cn", "Copernicium", 0], # 112
+ [113, "Uut", "Ununtrium", 0], # 113
+ [114, "Uuq", "Ununquadium", 0], # 114
+ [115, "Uup", "Ununpentium", 0], # 115
+ [116, "Uuh", "Ununhexium", 0], # 116
+ [117, "Uus", "Ununseptium", 0], # 117
+ [118, "Uuo", "Ununoctium", 0], # 118
+ ]
+
+symbol_map = {
+ "H":1,
+ "He":2,
+ "Li":3,
+ "Be":4,
+ "B":5,
+ "C":6,
+ "N":7,
+ "O":8,
+ "F":9,
+ "Ne":10,
+ "Na":11,
+ "Mg":12,
+ "Al":13,
+ "Si":14,
+ "P":15,
+ "S":16,
+ "Cl":17,
+ "Ar":18,
+ "K":19,
+ "Ca":20,
+ "Sc":21,
+ "Ti":22,
+ "V":23,
+ "Cr":24,
+ "Mn":25,
+ "Fe":26,
+ "Co":27,
+ "Ni":28,
+ "Cu":29,
+ "Zn":30,
+ "Ga":31,
+ "Ge":32,
+ "As":33,
+ "Se":34,
+ "Br":35,
+ "Kr":36,
+ "Rb":37,
+ "Sr":38,
+ "Y":39,
+ "Zr":40,
+ "Nb":41,
+ "Mo":42,
+ "Tc":43,
+ "Ru":44,
+ "Rh":45,
+ "Pd":46,
+ "Ag":47,
+ "Cd":48,
+ "In":49,
+ "Sn":50,
+ "Sb":51,
+ "Te":52,
+ "I":53,
+ "Xe":54,
+ "Cs":55,
+ "Ba":56,
+ "La":57,
+ "Ce":58,
+ "Pr":59,
+ "Nd":60,
+ "Pm":61,
+ "Sm":62,
+ "Eu":63,
+ "Gd":64,
+ "Tb":65,
+ "Dy":66,
+ "Ho":67,
+ "Er":68,
+ "Tm":69,
+ "Yb":70,
+ "Lu":71,
+ "Hf":72,
+ "Ta":73,
+ "W":74,
+ "Re":75,
+ "Os":76,
+ "Ir":77,
+ "Pt":78,
+ "Au":79,
+ "Hg":80,
+ "Tl":81,
+ "Pb":82,
+ "Bi":83,
+ "Po":84,
+ "At":85,
+ "Rn":86,
+ "Fr":87,
+ "Ra":88,
+ "Ac":89,
+ "Th":90,
+ "Pa":91,
+ "U":92,
+ "Np":93,
+ "Pu":94,
+ "Am":95,
+ "Cm":96,
+ "Bk":97,
+ "Cf":98,
+ "Es":99,
+ "Fm":100,
+ "Md":101,
+ "No":102,
+ "Lr":103,
+ "Rf":104,
+ "Db":105,
+ "Sg":106,
+ "Bh":107,
+ "Hs":108,
+ "Mt":109,
+ "Ds":110,
+ "Rg":111,
+ "Cn":112,
+ "Uut":113,
+ "Uuq":114,
+ "Uup":115,
+ "Uuh":116,
+ "Uus":117,
+ "Uuo":118,
+ }
+
diff --git a/python/ase/test/test_ir_triplets.py b/python/ase/test/test_ir_triplets.py
new file mode 100644
index 0000000..41177c0
--- /dev/null
+++ b/python/ase/test/test_ir_triplets.py
@@ -0,0 +1,38 @@
+#!/usr/bin/evn python
+
+import sys
+from optparse import OptionParser
+from atoms import Atoms
+from vasp import read_vasp
+from pyspglib import spglib
+import numpy as np
+
+parser = OptionParser()
+parser.set_defaults(mesh=None)
+parser.add_option("-m", "--mesh", dest="mesh",
+ type="string",help="Mesh numbers")
+(options, args) = parser.parse_args()
+
+if options.mesh == None:
+ mesh = [4, 4, 4]
+else:
+ mesh = [int(x) for x in options.mesh.split()]
+cell = read_vasp( args[0] )
+
+# cell = Atoms( symbols=['Si']*2,
+# cell=[(0,2,2),
+# (2,0,2),
+# (2,2,0)],
+# scaled_positions=[(0, 0, 0),
+# (0.25, 0.25, 0.25)],
+# pbc=True)
+# mesh = [ 4, 4, 4 ]
+
+dataset = spglib.get_symmetry_dataset(cell)
+triplets, weights, grid_point = \
+ spglib.get_triplets_reciprocal_mesh(mesh,
+ dataset['rotations'])
+
+for i, ( t, w ) in enumerate( zip( triplets, weights ) ):
+ print i+1, t, w
+print np.array(weights).sum()
diff --git a/python/ase/test/test_ir_triplets_at_q.py b/python/ase/test/test_ir_triplets_at_q.py
new file mode 100644
index 0000000..d78210f
--- /dev/null
+++ b/python/ase/test/test_ir_triplets_at_q.py
@@ -0,0 +1,69 @@
+#!/usr/bin/evn python
+
+import sys
+from optparse import OptionParser
+from atoms import Atoms
+from vasp import read_vasp
+from pyspglib import spglib
+import numpy as np
+
+def parse_triplets(filename):
+ file = open(filename, 'r')
+ triplets = []
+ weights = []
+ for line in file:
+ if line.strip()[0] == "#":
+ continue
+
+ line_array = [ int(x) for x in line.split() ]
+ triplets.append(line_array[:3])
+ weights.append(line_array[3])
+
+ return np.array(triplets), np.array(weights)
+
+
+parser = OptionParser()
+parser.set_defaults(mesh=None,
+ grid_point=0,
+ filename=None)
+parser.add_option("-m", "--mesh", dest="mesh",
+ type="string",help="Mesh numbers")
+parser.add_option("-f", dest="filename",
+ type="string",help="Filename of triplets at q")
+parser.add_option("-g", dest="grid_point",
+ type="int",help="A grid point")
+(options, args) = parser.parse_args()
+
+if options.mesh == None:
+ mesh = [4, 4, 4]
+else:
+ mesh = [int(x) for x in options.mesh.split()]
+
+cell = read_vasp(args[0])
+
+dataset = spglib.get_symmetry_dataset(cell)
+
+weights, third_q, grid_points = \
+ spglib.get_triplets_reciprocal_mesh_at_q(options.grid_point,
+ mesh,
+ dataset['rotations'])
+if options.filename==None:
+ for i, (w, q) in enumerate(zip(weights, third_q)):
+ if w > 0:
+ print options.grid_point, i, q, w
+else:
+ triplets_in, weights_in = parse_triplets(options.filename)
+ count = 0
+ for i, (w, q) in enumerate(zip(weights, third_q)):
+ if w > 0:
+ if triplets_in[count][0] == options.grid_point and \
+ triplets_in[count][1] == i and \
+ triplets_in[count][2] == q and \
+ weights_in[count] == w:
+ print options.grid_point, i, q, w, "OK"
+ else:
+ print "Don't match", options.grid_point, i, q, w
+ sys.exit(0)
+ count += 1
+
+print weights.sum()
diff --git a/python/ase/test/test_stabilized_reciprocal_mesh.py b/python/ase/test/test_stabilized_reciprocal_mesh.py
new file mode 100644
index 0000000..1d2707e
--- /dev/null
+++ b/python/ase/test/test_stabilized_reciprocal_mesh.py
@@ -0,0 +1,46 @@
+#!/usr/bin/evn python
+
+import sys
+from optparse import OptionParser
+from atoms import Atoms
+from vasp import read_vasp
+from pyspglib import spglib
+import numpy as np
+
+parser = OptionParser()
+parser.set_defaults(mesh=None,
+ qpoints=None)
+parser.add_option("-m", "--mesh", dest="mesh",
+ type="string",help="Mesh numbers")
+parser.add_option("-q", "--qpoints", dest="qpoints",
+ type="string",help="Stabilizers")
+(options, args) = parser.parse_args()
+
+if options.mesh == None:
+ mesh = [4, 4, 4]
+else:
+ mesh = [int( x ) for x in options.mesh.split()]
+
+if options.qpoints == None:
+ qpoints = np.array([[0, 0, 0]], dtype=float)
+else:
+ qpoints = np.array([float(x) for x in options.qpoints.split()]).reshape(-1, 3)
+
+cell = read_vasp(args[0])
+
+mapping_g, grid_point = spglib.get_ir_reciprocal_mesh(mesh, cell)
+
+print mapping_g
+
+dataset = spglib.get_symmetry_dataset(cell)
+
+mapping, grid_point = \
+ spglib.get_stabilized_reciprocal_mesh(mesh,
+ dataset['rotations'],
+ qpoints=qpoints)
+
+print mapping
+print "%d / %d" % (np.sum((mapping_g == mapping) * 1), len(mapping))
+
+# for i, m in enumerate(mapping):
+# print i, grid_point[m]
diff --git a/python/ase/test/test_symmetry_with_spin.py b/python/ase/test/test_symmetry_with_spin.py
new file mode 100644
index 0000000..f123a25
--- /dev/null
+++ b/python/ase/test/test_symmetry_with_spin.py
@@ -0,0 +1,26 @@
+#!/usr/bin/evn python
+
+import sys
+from atoms import Atoms
+from vasp import read_vasp
+from pyspglib import spglib
+import numpy as np
+
+def get_magmom(text):
+ magmom = []
+ for numxmag in text.split():
+ num, mag = numxmag.split('*')
+ magmom += [float(mag)] * int(num)
+ return magmom
+
+def parse_incar(filename):
+ for line in open(filename):
+ for conf in line.split(';'):
+ if 'MAGMOM' in conf:
+ return get_magmom(conf.split('=')[1])
+
+cell = read_vasp(sys.argv[1]) # POSCAR
+magmoms = parse_incar(sys.argv[2]) # INCAR
+cell.set_magnetic_moments(magmoms)
+symmetry = spglib.get_symmetry(cell, symprec=1e-3)
+print len(symmetry['rotations'])
diff --git a/python/ase/test/vasp.py b/python/ase/test/vasp.py
new file mode 100644
index 0000000..7c5f572
--- /dev/null
+++ b/python/ase/test/vasp.py
@@ -0,0 +1,155 @@
+# Copyright (C) 2011 Atsushi Togo
+#
+# This file was originary part of phonopy.
+#
+# Phonopy is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# Phonopy is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public License
+# along with phonopy. If not, see <http://www.gnu.org/licenses/>.
+
+import numpy as np
+from atoms import Atoms, symbol_map, atom_data
+
+#
+# read VASP POSCAR
+#
+def expand_symbols( num_atoms, symbols=None ):
+ expanded_symbols = []
+ is_symbols = True
+ if symbols == None:
+ is_symbols = False
+ else:
+ if not len( symbols ) == len( num_atoms ):
+ is_symbols = False
+ else:
+ for s in symbols:
+ if not s in symbol_map:
+ is_symbols = False
+ break
+
+ if is_symbols:
+ for s, num in zip( symbols, num_atoms ):
+ expanded_symbols += [s] * num
+ else:
+ for i, num in enumerate( num_atoms ):
+ expanded_symbols += [ atom_data[i+1][1] ] * num
+
+ return expanded_symbols
+
+def is_exist_symbols( symbols ):
+ for s in symbols:
+ if not ( s in symbol_map ):
+ return False
+ return True
+
+def read_vasp( filename, symbols=None ):
+ file = open( filename )
+
+ lines = file.readlines()
+
+ line1 = [ x for x in lines[0].split() ]
+ if is_exist_symbols( line1 ):
+ symbols = line1
+
+ scale = float(lines[1])
+
+ cell = []
+ for i in range( 2, 5 ):
+ cell.append( [ float(x) for x in lines[i].split()[:3] ] )
+ cell = np.array( cell ) * scale
+
+ try:
+ num_atoms = np.array([ int(x) for x in lines[5].split() ])
+ line_at = 6
+ except ValueError:
+ symbols = [ x for x in lines[5].split() ]
+ num_atoms = np.array([ int(x) for x in lines[6].split() ])
+ line_at = 7
+
+ expaned_symbols = expand_symbols( num_atoms, symbols )
+
+ if lines[ line_at ][0].lower() == 's':
+ line_at += 1
+
+ is_scaled = True
+ if ( lines[ line_at ][0].lower() == 'c' or
+ lines[ line_at ][0].lower() == 'k' ):
+ is_scaled = False
+
+ line_at += 1
+
+ positions = []
+ for i in range( line_at, line_at + num_atoms.sum() ):
+ positions.append( [ float(x) for x in lines[i].split()[:3] ] )
+
+ if is_scaled:
+ atoms = Atoms( symbols=expaned_symbols,
+ cell=cell,
+ scaled_positions=positions )
+ else:
+ atoms = Atoms( symbols=expaned_symbols,
+ cell=cell,
+ positions=positions )
+
+ return atoms
+
+#
+# write vasp POSCAR
+#
+def get_reduced_symbols( symbols ):
+ reduced_symbols = []
+ for s in symbols:
+ if not ( s in reduced_symbols ):
+ reduced_symbols.append(s)
+ return reduced_symbols
+
+def sort_positions_by_symbols( symbols, positions ):
+ reduced_symbols = get_reduced_symbols( symbols )
+ sorted_positions = []
+ num_atoms = np.zeros( len( reduced_symbols ), dtype=int )
+ for i, rs in enumerate( reduced_symbols ):
+ for s, p in zip( symbols, positions ):
+ if rs==s:
+ sorted_positions.append( p )
+ num_atoms[i] += 1
+ return num_atoms, reduced_symbols, np.array( sorted_positions )
+
+def write_vasp( filename, atoms, direct=True ):
+
+ num_atoms, symbols, scaled_positions = \
+ sort_positions_by_symbols( atoms.get_chemical_symbols(),
+ atoms.get_scaled_positions() )
+
+ lines = ""
+ for s in symbols:
+ lines += "%s " % s
+ lines += "\n"
+ lines += " 1.0\n"
+ for a in atoms.get_cell():
+ lines += " %22.16f%22.16f%22.16f\n" % tuple( a )
+ lines += ("%4d" * len( num_atoms )) % tuple( num_atoms )
+ lines += "\n"
+ lines += "Direct\n"
+ for vec in scaled_positions:
+ for x in ( vec - vec.round() ):
+ if float('%20.16f' % x) < 0.0:
+ lines += "%20.16f" % ( x + 1.0 )
+ else:
+ lines += "%20.16f" % (x)
+ lines += "\n"
+
+ f = open( filename, 'w' )
+ f.write( lines )
+
+if __name__ == '__main__':
+ import sys
+ atoms = read_vasp( sys.argv[1] )
+ write_vasp( '%s-new' % sys.argv[1], atoms )
diff --git a/src/ChangeLog b/src/ChangeLog
new file mode 100644
index 0000000..fb601f9
--- /dev/null
+++ b/src/ChangeLog
@@ -0,0 +1,809 @@
+2013-04-16 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c (get_operation):
+
+ In some case, get_space_group_operation returns more than 48
+ symmetry operations for a primitive cell. To avoid this, an
+ iterative approach, which is just reducing tolerance gradually to
+ achieve number of symmetry operations <= 48, is implemented.
+
+ * symmetry.c:
+ In the symmetry operation search, rot[] and trans[] were used. Now
+ they are replaced by Symmetry *symmetry in symmetry.c.
+
+
+2013-04-14 Atsushi Togo <atz.togo at gmail.com>
+
+ * Fortran interface given by Dimitar Pashov:
+
+ The new fortran interface is given by Dimitar Pashov, which is
+ much safer than the previous one. The new fortran interface, its
+ example, and makefile are found in the example directory as
+ spglib_f08.f90, example_f08.f90 and Makefile_f08.
+
+ * spglib.h, spglib.c, kpoint.h, kpoint,c:
+
+ Symprec parameter was removed from spg_get_stabilized_reciprocal_mesh.
+
+2013-01-28 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib.c, spglib_f.c:
+
+ Pointerd out by Michael Rutter that the length of charasters of
+ space-group type symbol (International table) was wrong in
+ spglib_f.c. That of Schoenflies symbol was also found wrong. The
+ former and latter were fixed as from 21 to 11 and from 10 to 7,
+ respectively.
+
+2012-10-10 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.3
+
+ Rethink algorithms to search symmetry operations for speed-up and
+ stability. Many small modifications are applied. Some parts of the
+ codes that look unnecessary were removed but this change might
+ make the code unstable.
+
+ * symmetry.c (get_translation):
+
+ Improve OpenMP efficiency. Number of atoms to enable OpenMP
+ concurrency is set as 1000 (NUM_ATOMS_CRITERION_FOR_OPENMP).
+
+2012-10-09 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c (sym_get_pure_translation, get_translation):
+
+ In 'sym_get_pure_translation', iterative approach to search
+ pure_translation was employed. But 'sym_get_pure_translation' was
+ only used from two functions in primitive.c. In these two
+ functions, tolerance is iteratively reduced when the search
+ fails. Because there is no need to do iteration twice, the
+ iteration part in 'sym_get_pure_translation' was removed.
+
+ * primitive.{c,h}:
+
+ 'get_primitive_with_pure_translation' was replaced by
+ 'get_primitive_and_pure_translation'. The former was only used
+ from 'get_operation' in symmetry.c and the interative approach was
+ implemented in 'get_operation'. The iterative part was moved into
+ 'get_primitive_and_pure_translation'.
+
+ The Primitive structure was defined in primitive.h. This just
+ packs Cell * primitive_cell and VecDBL * pure_trans. The Primitive
+ structure is only used in 'get_operation' in symmetry.c and
+ '(prm_)get_primitive_and_pure_translation' in primitive.c.
+
+
+2012-10-08 Atsushi Togo <atz.togo at gmail.com>
+
+ * spacegroup.c (get_hall_number_local_iteration):
+
+ REDUCE_RATE to reduce number of symmetry operations is changed
+ from 0.2 to 0.95. Symmetry operations depend on tolerance
+ delicately.
+
+ * Remove many lines of debug_print:
+
+ Now to follow the flow is more important than to see the
+ detailed behavior of implementation.
+
+2012-10-03 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.2.5
+ * primitive.c:
+
+ Separate out get_primitive_with_mapping_table from
+ prm_get_primitive_with_mapping_table. Rename
+ prm_get_primitive_with_all to
+ get_primitive_with_pure_translation.
+ In get_primitive_with_pure_translation, it was
+ if (pure_trans->size > 0)
+ but not it was fixed to
+ if (pure_trans->size > 1)
+ not to search primitive cell when pure_trans->size == 1.
+
+2012-10-01 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.2.4
+ * kpoint.c (get_ir_reciprocal_mesh):
+
+ In spglib, k-point grid is indexed as, for example,
+
+ 0 1 2 3 4 5 6 -5 -4 -3 -2 -1
+
+ for 12 points mesh. Now the different index style such as
+
+ 0 1 2 3 4 5 -6 -5 -4 -3 -2 -1
+
+ is activated by CFLAGS='-DGRID_BOUNDARY_AS_NEGATIVE' before
+ running configure script at the compilation time.
+
+ * symmetry.c (get_operation):
+
+ In the iterative reduction of tolerance of primitive cell search,
+ pure_trans was searched by a fixed tolerance rather than the
+ reduced one. This is fixed to use the reduced tolerance at each
+ iteration.
+
+2012-08-13 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.2.3
+ * symmetry.c (is_identity_metric):
+
+ To check identity of metric tensors, too small angle induces
+ numerical size error, so if the dtheta is calculated smaller than
+ 1e-6, automatically set the angles be identical.
+
+ * spacegroup.c (get_hall_number_local_iteration):
+
+ Implementation of iterative reduction of symmetry tolerance to
+ search symmetry operation to get Hall symbol is separated as the
+ function get_hall_number_local_iteration and the tolerance
+ reduction rate of REDUCE_RATE is changed from 0.2 from 0.95.
+
+2012-07-17 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.2.2
+ * lattice.c (get_centering):
+
+ Tranformation A-centring monoclinic lattice to C-centring
+ monoclinic lattice preserving b-axis is not well handled and now
+ the matrix 'monocli_a2c' is used for it.
+
+2012-07-14 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.2.1
+ * pointgroup.c (laue_one_axis):
+
+ Transformation matrix is expected to be always positive, but it
+ was not correctly implemented.
+
+2012-05-28 Atsushi Togo <atz.togo at gmail.com>
+
+ * refinement.c (reduce_symmetry_in_frame):
+
+ Fix memory leak by freeing lattice_trans.
+
+2012-04-26 Atsushi Togo <atz.togo at gmail.com>
+
+ The numbering of the hall symbol is included in the 'struct
+ SpglibDataset'. This starts from 1 to 530.
+
+2012-04-25 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib.c, spglib.h:
+
+ To find symmetry with angle tolerance, for spg_* functions,
+ respective spgat_* functions are prepared. In the spgat_*
+ functions, the last variable is the angle tolerance (in degrees).
+
+ * symmetry.c:
+
+ The way to find lattice symmetry is changed. Now a new static
+ variable, 'angle_tolerance', can be used for the tolerance of
+ angle. Therefore the non-diagonal elements of metric tensor are
+ directry compared with this angle. 'angle_tolerance' can be
+ accessed via 'sym_set_angle_tolerance' inside spglib. However the
+ default behavior does not use the angle tolerance. In the default
+ behavior, averaged_lattice_vector_length * sin(delta_theta) is
+ compared with usual 'symprec'. The default behavior is invoked
+ when 'angle_tolerance' has negative value. These are implemented
+ in 'is_identity_metric' in symmetry.c.
+
+2012-04-12 Atsushi Togo <atz.togo at gmail.com>
+
+ * lattice.c (get_centering):
+
+ Correction matrix for I-centring monoclinic was implemented.
+
+2012-03-03 Atsushi Togo <atz.togo at gmail.com>
+
+ * primitive.c:
+
+ The functions of 'prm_get_current_tolerance',
+ 'set_current_tolerance' and the value of static double
+ current_tolerance were introduced in 'primitive.c'. These are used
+ to return reduced tolerance value that is iteratively determined
+ in 'prm_get_primitive_with_mapping_table'.
+
+ The interative technique is used in several parts to obtain
+ possible primitive cell parameters by reducing symmetry
+ tolerance. Only in 'get_overlap_table' in 'primitive.c', the
+ interative techinique is used with reducing and increasing the
+ tolerance, i.e., in the other parts, only reducing.
+
+2012-03-02 Atsushi Togo <atz.togo at gmail.com>
+
+ * Version 1.1.2
+ * refinement.c, primitive.c, symmetry.c:
+
+ Modifications at many small parts of the code for improve
+ robustness with large symmetry tolerance values.
+
+2012-02-28 Atsushi Togo <atz.togo at gmail.com>
+
+ * primitive.c (get_overlap_table):
+
+ Simplify the algorithm for search overlapping table. The new
+ algorithm is as follows: Symmetry tolerance monotonically
+ decreases by REDUCE_RATE = 0.95 when the search is failed. When
+ number of overlapping atoms is found smaller than the ratio of
+ number of atoms between original and primitive cells, the symmetry
+ tolerance is doubled. For this algorithm, 'check_overlap_table'
+ function was implemented.
+
+2012-02-09 Atsushi Togo <atz.togo at gmail.com>
+
+ * spin.{c,h}:
+
+ 'spin.{c,h}' are added. Colliear spins on atoms are employed as
+ additional constraints to search symmetry. The API is
+ 'spg_get_symmetry_with_collinear_spin'. (reduce_symmetry_in_frame):
+
+ Bug fix to get refined symmetry operations. When the original cell
+ is not primitive and the lattice symmetry is lower than that
+ primitive lattice, the symmetry of primitive has to be
+ reduced to those belongs to the lower symmetry. But this was not
+ correctly done.
+
+2011-10-05 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib.c (spg_get_pointgroup):
+
+ 'spg_get_pointgroup' is implemented. This is used to obtain point
+ group symbols.
+
+2011-09-30 Atsushi Togo <atz.togo at gmail.com>
+
+ * site_symmetry.c (get_Wyckoff_notation):
+
+ Bug fix of assignment of Wyckoff letters
+ 'sitesym_database.c' is compressed. Now only the first element of
+ 'coordinates' is used to aasign a Wyckoff letter.
+
+2011-08-09 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c (sym_get_pure_translation):
+
+ Iterative reduction of symmetry tolerance to find pure
+ translations is implemented as well as different parts.
+
+2011-07-29 Atsushi Togo <atz.togo at gmail.com>
+
+ * kpoint.c, kpoint.h:
+
+ symmetry_kpoint.c and symmetry_kpoint.h are renamed as kpoint.c
+ and kpoint.h, respectively.
+
+2011-07-06 Atsushi Togo <atz.togo at gmail.com>
+
+ * site_symmetry.c:
+
+ A set of equivalent atoms is returned. It is accessible
+ through spg_get_dataset. (spglib-1.0.7)
+
+2011-07-05 Atsushi Togo <atz.togo at gmail.com>
+
+ * site_symmetry.c, sitesym_database.c, spglib-1.0.6:
+
+ Newly added two source files (and also *.h). The part related to
+ site symmetry in refinement.c is moved to site_symmetry.c. Wyckoff
+ position determination is implemented in site_symmetry.c and the
+ database is in sitesym_database.c. The pointers in the structure
+ SpglibDataset are made free by calling spg_free_dataset. It was
+ difficult to implement Wyckoff position determination without
+ Yusuke Seko's formated crystallographic database. I appreciate his
+ kind offer. (spglib-1.0.6)
+
+ * primitive.c (prm_get_primitive):
+
+ The function is modified to return mapping table from input cell
+ to primitive cell as the first argument.
+
+2011-06-18 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c:
+
+ OpenMP is included to search translations with each rotation.
+ Compilation with gcc is achived by '-lgomp' and '-fopenmp'.
+
+ * refinement.c:
+
+ Performance tuning was made for 'get_refined_symmetry_operations'.
+
+2011-06-18 Atsushi Togo <atz.togo at gmail.com>
+
+ * refinement.c:
+
+ In 'ref_get_refined_symmetry_operations', it was forgotten to
+ consider origin shift to obtain symmetry operations from
+ database. This is fixed by modifying translations in
+ 'set_translation_with_origin_shift'.
+
+2011-06-15 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib-1.0.4:
+
+ The new version of spglib is released. To the next version,
+ implementation of Wyckoff positions is planed.
+
+
+2011-06-15 Atsushi Togo <atz.togo at gmail.com>
+
+ * pyspglib:
+
+ pyspglib didn't work correctly. It was fixed.
+
+
+2011-06-15 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib.c:
+
+ A new function 'spg_get_dataset is implmented. This returns a
+ 'SpglibDataset' type structure that is defined in 'spglib.h'. This
+ includes refined informations of crystal symmetry. For example,
+ the symmetry operations are derived based on the operations in
+ database and so they are different from those obtained from
+ 'spg_get_symmetry'. Wyckoff positions are to be impmemented.
+
+
+2011-06-13 Atsushi Togo <atz.togo at gmail.com>
+
+ * spg_database.c:
+
+ A static array of 'symmetry_operations' is compressed because it
+ was very large. It contains symmetry operations of 530 hall
+ symbols. Each space group operation requires a rotation 3x3 matrix
+ and a translation vector, therefore 12 elements were implemented
+ for that. Now it is compressed using ternary numerical system for
+ rotation and duodecimal system for translation. This is achieved because
+ each element of rotation matrix can have only one of {-1,0,1}, and
+ the translation can have one of {0,2,3,4,6,8,9,10} divided by
+ 12. Therefore 3^9 * 12^3 = 34012224 different values can map space
+ group operations. In principle, octal numerical system can be used
+ for translation, but duodecimal system is used for the convenient.
+ The fact that determinant of rotation matrix is -1 or 1 could be
+ used as a constraint to reduce the number of mapping space. These
+ may be implemented if more compression is required.
+
+2011-06-10 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib.c:
+
+ spg_show_symmetry was removed.
+
+2011-05-17 Atsushi Togo <atz.togo at gmail.com>
+
+ * primitive.c, etc
+
+ A tolerance to find primitive lattice vectors sometimes fails
+ because found pure translations do not give possible lattice
+ vectors in which the volume ratio of the input cell and primitive
+ cell does not match to the number of pure translations. So
+ iterative tolerance reduction is implemented. The reduced
+ tolerance should be used to find spacegroup and refined cell
+ because to hold consistency with symmetry operations to be found
+ for primitive cell. The reduced tolerance is not used inside
+ symmetry opration search. The tolerance used to find primitive
+ cell is stored in a static variable 'tolerance' in primitive.c and
+ this can be accessed via prm_get_tolerance().
+
+ Old 'prm_get_primitive' was removed and new one is that of
+ 'prm_get_primitive_with_pure_trans' renamed. So now pure
+ translations are always required to call to obtain primitive cell.
+
+ When calling 'prm_get_primitive' and if the input cell is already
+ primitive, primitive->size=0 was returned in the previous
+ implementation, but in the new implementation, primitive cell that
+ has smallest lattice vectors is returned.
+
+
+2011-04-21 Atsushi Togo <atz.togo at gmail.com>
+
+ * refinement.c (refine_cell):
+
+ When an input structure is a primitive cell but the lattice is not
+ smallest, 'refine_cell' didn't work correctly. This is fixed by
+ using new function of 'prm_get_cell_with_smallest_lattice' in
+ primitive.c. This function was originally in spacegroup.c as
+ 'get_cell_with_smallest_lattice'. Following this, spacegroup.c,
+ primitive.c, and primitive.h were modified.
+
+2011-03-18 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib-1.0.3.1:
+
+ A critical bug in the structure refinment in refinement.c was
+ removed. A tolerance parameter in hall_symbol.c came back to
+ is_hall_symbol.
+
+2011-03-15 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib-1.0.3:
+
+ Crystal structure refinement by spg_refine_cell is
+ implemented. Code around tolerance is tunded up, hopefully
+ becoming more robust with large tolerance.
+
+ * refinement.c:
+
+ bravais.{c,h} are renamed to refinement.{c,h}.
+
+2011-03-14 Atsushi Togo <atz.togo at gmail.com>
+
+ * debug.h (SPGWARNING):
+
+ Debug option of SPGWARNING has been defined. This may be used for
+ beta-tests.
+
+ * bravais.c, spacegrouop.c, hall_symbol.c, lattice.c, primitive.c:
+
+ Tolerance parameter has been reconsidered to make finding
+ spacegroup robust with a loose tolerance value. Tolerance is used
+ for Cartesian distance, norm squared, or volume. It wold be
+ avoided for ratio, reduced position or distance.
+
+ * bravais.c:
+
+ Exact locations of atoms are obtained by get_exact_location in
+ bravais.c.
+
+ * sapcegroup.c:
+
+ Iterative search for hall symbol is implemented in
+ get_hall_number. The tolerance is sequentially reduced until
+ finding a hall symbol. With the reduced tolerance, symmetry
+ operations are researched by sym_reduce_operation. The cost of the
+ reduction of symmetry operations is expeted much smaller than that
+ of the increase of symmetry operations with increasing tolerance.
+
+ * hall_symbol.c:
+
+ All tolerance parameters were kicked out.
+
+ * lattice.c:
+
+ get_base_center is modified to remove the tolerance paremeter. The
+ centring check is now based on
+ integers. lat_smallest_lattice_vector returns 1 or 0 to show if
+ the lattice has non-zero volume or not.
+
+ * primitive.c:
+
+ Primitive lattice is made of pure translations. Previously the
+ primitive lattice vectors are constructed from pure
+ translations. Currently, it is set such that the primitive lattice
+ parameters multiplied with 'intergers' become the original
+ latttice parameters.
+
+ * mathfunc.c (mat_is_int_matrix):
+
+ A macro of INT_PREC (currently set 0.1 ) is used for checking a
+ value is integer or not in mat_is_int_matrix.
+
+2011-02-18 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib-1.0.2:
+
+ Bug fix in finding lattice point symmetry (symmetry.c).
+ spg_get_bravais is added and spg_get_international_with_bravais
+ was removed.
+
+2010-12-26 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib-1.0.1:
+
+ By the help of Pawel T. Jochym, the setup.py in the ASE-interface,
+ pysgpblib, has been updated for matching the latest spglib.
+
+2010-11-08 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib-1.0.0:
+
+ A lot of source code was re-written for this one month. This
+ release contains the algorithms of symmetry opertation finding and
+ space-group type determination which are different from the
+ versions before spglib 0.7.4.
+
+2010-11-08 Atsushi Togo <atz.togo at gmail.com>
+
+ Algorithm to search basis vectors is changed to that of
+ [Grosse-Kunstleve, Acta Cryst. A55, 383-395 (1999)], which is
+ implemented in lattice.c. bravais.{c,h}, bravais_virtual.{c,h} are
+ removed. spacegroup_type.{c,h} are moved to spacegroup.{c,h}.
+
+2010-11-05 Atsushi Togo <atz.togo at gmail.com>
+
+ * lattice.c:
+
+ lattice.c and lattice.h are added. Delaunay reduction is moved
+ there from bravais.c.
+
+2010-11-02 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib 1.0-beta:
+
+ New release under the modified BSD license.
+
+ * pointgroup.c:
+
+ Sometimes symmetry operations that don't match point-group type
+ can be found. In the current implementation, some of non-necessary
+ operations are abandoned. For this, get_cast_symmetry,
+ check_pointgroup_condition, ptg_get_symmetry_pointgroup are added.
+ However still this implementation is not perfect. Maybe another
+ strategy is required.
+
+2010-10-27 Atsushi Togo <atz.togo at gmail.com>
+
+ * primitive.c:
+
+ trim_cell is divided into trim_cell, set_primitive_positions,
+ get_positions_primitive, get_overlap_table. is_overlap is
+ modified to check Cartesian distance, and moved to cel_is_overlap
+ in cell.c.
+
+ * symmetry.c (get_translation):
+
+ Atomic position overlap check part is modified to use
+ cel_is_overlap.
+
+ * cell.c:
+
+ cel_frac_to_cart and cel_cart_to_frac are removed.
+
+
+2010-10-25 Atsushi Togo <atz.togo at gmail.com>
+
+ * bravais_arc.* is renamed to bravais_virtual.*
+
+ The function is_holohedry is removed.
+
+ * bravais.c:
+
+ brv_set_relative_lattice is added. brv_get_brv_lattice_in_loop is
+ modified for handling RHOMB case flexibly. get_metric was removed
+ and moved to mathfunc.c as mat_get_metric.
+
+ * pointgroup.c:
+
+ The first argument of ptg_get_holohedry is removed, which was used
+ just for debugging.
+
+ * symmetry.c:
+
+ get_space_group_operation is separated from
+ get_operation. sym_get_operation_direct, set_axes and
+ get_lattice_symmetry are newly added. sym_get_operation_direct is
+ the function for finding symmetry operations without relying on
+ Bravais lattice. The lattice symmetry is exhaustively searched
+ through the matrices whose elements are -1, 0, or 1.
+
+ * mathfunc.c:
+
+ mat_get_metric and mat_check_identity_matrix_d3 are added.
+
+
+2010-10-22 Atsushi Togo <atz.togo at gmail.com>
+
+ * bravais.c:
+
+ The names of local functions starting with brv_... is changed to
+ get_brv_.... Add functions get_brv_cubic_primitive,
+ get_brv_tetra_primitive, get_brv_ortho_primitive to find more
+ variety of lattice transformation matrices.
+
+2010-10-22 Atsushi Togo <atz.togo at gmail.com>
+
+ The space group type finder is replaced completely. spacegroup.*,
+ spacegroup_data.*, spacegroup_database.* are
+ removed. spacegroup_type.*, spg_database.*, and hall_symbol.* are
+ added. The helper tools to create hall symbol related database are
+ in database directories.
+
+2010-10-09 Atsushi Togo <atz.togo at gmail.com>
+
+ spglib-0.7.4 is released.
+
+ cel_new_cell is renamed to cel_alloc_cell, and cel_alloc_cell
+ returns a poiter of the Cell structure. cel_delete_cell is renamed
+ to cel_free_cell.
+
+ sym_new_symmetry is renamed to sym_alloc_symmetry, and
+ sym_alloc_symmetry returns a poiter of the Symmetry
+ structure. sym_delete_symmetry is renamed to sym_free_symmetry.
+
+ The other functions returns Cell and Symmetry structures are
+ modified to return those pointers.
+
+2010-10-05 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c (get_index_with_least_atoms):
+
+ To search translation, it is efficient if an atom in least atoms
+ with an atomic type is used for the search origine. This function
+ looks for it. This is expected to accelerate especially when the
+ cell is huge and the lattice has high symmetry, but the number of
+ atoms of some atomic type is few.
+
+2010-10-04 Atsushi Togo <atz.togo at gmail.com>
+
+ * primitive.c (prm_get_primitive_with_pure_trans):
+
+ Create new function 'prm_get_primitive_with_pure_trans' to avoid
+ searching same pure translations many times, which leads some
+ speed up.
+
+2010-09-26 Atsushi Togo <atz.togo at gmail.com>
+
+ 'const' of multidimensional arrays are removed. Just to notify it
+ should be 'const', 'SPGCONST' replaces those 'const', however it
+ is defined as nothing in mathfunc.h. This is done because of
+ avoiding lots of waring in C-compiler of 'gcc: incompatible
+ pointer type'.
+
+ * spglib_f.c:
+
+ spglib_f.c is updated and some examples are found in example.f90.
+
+2010-04-12 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c, mathfunc.c:
+
+ To make the translations clean, sym_get_fractional_translation in
+ symmetry.c and mat_Dmod1 in mathfunc.c are
+ added. sym_get_fractional_translation is supposed to look for the
+ translation that is most closest to one of 0, 1/6,
+ 1/4, 1/3, 1/2, 2/3, 3/4, and 5/6. The first implementation
+ contained a bug and Jorg Meyer solved this.
+
+2010-03-25 Atsushi Togo <atz.togo at gmail.com>
+
+ * bravais_art.c:
+
+ Space group of the virtual structures in the test directory
+ failed. Fixed points are as follows:
+ P-Cubic, P-Tetra, P-Ortho to Base center monoclinic, which was
+ collect in the old code, and I-Cubic to F-Orthorhombic.
+ Cubic to Rhombohedral. To obtain correct principal axes,
+ 'is_rhombo' was implemented.
+
+2010-03-22 Atsushi Togo <atz.togo at gmail.com>
+
+ * spglib.h, spglib.c:
+
+ spg_get_bravais_lattice is removed.
+
+ spg_get_conventional_symmetry is implemented. This is used to get
+ symmetry operations for the conventional unit cell. The
+ conventional unit cell is searched from the primitive cell found
+ from the input cell, i.e., even if the input cell is not
+ primitive, the primitive cell is automatically searched and the
+ conventional cell is determined. The Bravais lattice of the
+ conventinal cell is returned as bravais_lattice. This
+ bravais_lattice is found including the internal atomic
+ positions. Therefore artificial cell is expected to be handled
+ correctly.
+
+2010-02-11 Atsushi Togo <atz.togo at gmail.com>
+
+ * primitive.c:
+
+ There was a problem that primitive cell is not well found in naive
+ cases (inconsistency between tolerances in finding pure
+ translations and in finding overlapping atoms). David Lonie
+ implemented an iterative way to adjust symmetry finder tolerance
+ on the fly.
+
+2009-07-15 Atsushi Togo <atz.togo at gmail.com>
+
+ * bravais.c:
+
+ Bug to find bravais lattice in FCC and rhombohedral, when the cell
+ is a supercell. This is probably ad-hoc fix.
+
+2009-05-19 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry_kpoint.c:
+
+ Time reversal symmetry is included.
+
+ * bravais.c (brv_smallest_lattice_vector):
+
+ Delaunay reduction is implemented instead of ABINIT
+ implementation.
+
+2009-03-09 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry.c:
+
+ Critical bug for finding symmetry for primitive cell which is
+ reduced from convensional cell.
+
+2009-03-05 Atsushi Togo <atz.togo at gmail.com>
+
+ * symmetry_kpoint.c:
+
+ Functions to look for the irreducible points in reciprocal space
+ are implemented.
+
+2009-02-25 Atsushi Togo <atz.togo at gmail.com>
+
+ * bravais_art.c:
+
+ Hexagonal to Orthorhombic symmetry lowering case is implemented.
+
+ * python module:
+
+ Python module is implemented. To use them, numpy is
+ required. Interface for ASE is implemented.
+
+2008-08-22 Atsushi Togo <atz.togo at gmail.com>
+
+ * bravais_art.c:
+
+ This file is used for the cases that the lattice has higher
+ symmetry than the symmetry given by atomic positions. This does
+ not affect to the symmetry operations that is firstly obtained by
+ assuming the bravais lattice having high symmetry. Thus this file
+ works only for changing its bravais lattice. The information about
+ bravais lattice is used for only determing space group. Even if
+ the code in this file fails, or let's say, space group
+ determination fails), we can not say the symmetry operations are
+ wrong.
+
+2008-07-11 Atsushi Togo <atz.togo at gmail.com>
+
+ * Most of the code
+
+ The procedure for searching a Bravais lattice from a primitive
+ cell is rewritten. The algorithm is also totally changed.
+
+ * test directory
+
+ For the test of space group search, 'test' directory is
+ created. Many POSCAR's are prepared in this directory. For running
+ tests, a small ruby code is written and put into this directory.
+
+2008-05-28 Atsushi Togo <atz.togo at gmail.com>
+
+ * spacegroup_data.c (get_spacegroup_data_special_case):
+
+ Bug fix for space group determinations for special cases (Pcc2,
+ Pbam, Pccn).
+
+2008-05-25 Atsushi Togo <atz.togo at gmail.com>
+
+ * *.c, *.h :
+
+ Many codes are re-built. Many functions are changed to
+ "static". The first three characters of public functions are
+ re-named using those file names.
+
+ * bravais.c :
+
+ Monoclinic is possibly improved. Monoclinic is difficult. It may
+ contain further bugs...
+
+2008-05-01 Atsushi Togo <atz.togo at gmail.com>
+
+ * spacegroup.c (get_proper_rotation_class_6axis):
+
+ exit(1) is inserted.
+
+ * bravais.c/h:
+
+ "lattice_symmetry" is removed from the "Bravais" structure.
+
+ * spglib.h:
+
+ Misspelled function prototypes of spg_get_symmetry and
+ spg_check_symmetry are corrected.
+
+2008-04-23 Atsushi Togo <atz.togo at gmail.com>
+
+ * Many patches by Xavier Andrade
+
+ For fixing many warning in many codes and gcc-4.3 related problem
+ in bravais.c.
+
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..cf99ba6
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,55 @@
+lib_LTLIBRARIES = libsymspg.la
+libsymspg_la_SOURCES = \
+cell.c \
+debug.c \
+hall_symbol.c \
+kpoint.c \
+lattice.c \
+mathfunc.c \
+pointgroup.c \
+primitive.c \
+refinement.c \
+site_symmetry.c \
+sitesym_database.c \
+spacegroup.c \
+spg_database.c \
+spglib.c \
+spglib_f.c \
+spin.c \
+symmetry.c \
+cell.h \
+debug.h \
+hall_symbol.h \
+kpoint.h \
+lattice.h \
+mathfunc.h \
+pointgroup.h \
+primitive.h \
+refinement.h \
+site_symmetry.h \
+sitesym_database.h \
+spacegroup.h \
+spg_database.h \
+spglib.h \
+spin.h \
+symmetry.h
+
+pkginclude_HEADERS = \
+cell.h \
+debug.h \
+hall_symbol.h \
+kpoint.h \
+lattice.h \
+mathfunc.h \
+pointgroup.h \
+primitive.h \
+refinement.h \
+site_symmetry.h \
+sitesym_database.h \
+spacegroup.h \
+spg_database.h \
+spglib.h \
+spin.h \
+symmetry.h
+
+# libsymspg_la_LDFLAGS = -version-info 0:1:0
diff --git a/src/Makefile.in b/src/Makefile.in
new file mode 100644
index 0000000..401da8e
--- /dev/null
+++ b/src/Makefile.in
@@ -0,0 +1,649 @@
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+# Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+ at SET_MAKE@
+
+
+VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src
+DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in ChangeLog
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+ test -z "$$files" \
+ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+ $(am__cd) "$$dir" && rm -f $$files; }; \
+ }
+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libsymspg_la_LIBADD =
+am_libsymspg_la_OBJECTS = cell.lo debug.lo hall_symbol.lo kpoint.lo \
+ lattice.lo mathfunc.lo pointgroup.lo primitive.lo \
+ refinement.lo site_symmetry.lo sitesym_database.lo \
+ spacegroup.lo spg_database.lo spglib.lo spglib_f.lo spin.lo \
+ symmetry.lo
+libsymspg_la_OBJECTS = $(am_libsymspg_la_OBJECTS)
+DEFAULT_INCLUDES = -I. at am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libsymspg_la_SOURCES)
+DIST_SOURCES = $(libsymspg_la_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+HEADERS = $(pkginclude_HEADERS)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+lib_LTLIBRARIES = libsymspg.la
+libsymspg_la_SOURCES = \
+cell.c \
+debug.c \
+hall_symbol.c \
+kpoint.c \
+lattice.c \
+mathfunc.c \
+pointgroup.c \
+primitive.c \
+refinement.c \
+site_symmetry.c \
+sitesym_database.c \
+spacegroup.c \
+spg_database.c \
+spglib.c \
+spglib_f.c \
+spin.c \
+symmetry.c \
+cell.h \
+debug.h \
+hall_symbol.h \
+kpoint.h \
+lattice.h \
+mathfunc.h \
+pointgroup.h \
+primitive.h \
+refinement.h \
+site_symmetry.h \
+sitesym_database.h \
+spacegroup.h \
+spg_database.h \
+spglib.h \
+spin.h \
+symmetry.h
+
+pkginclude_HEADERS = \
+cell.h \
+debug.h \
+hall_symbol.h \
+kpoint.h \
+lattice.h \
+mathfunc.h \
+pointgroup.h \
+primitive.h \
+refinement.h \
+site_symmetry.h \
+sitesym_database.h \
+spacegroup.h \
+spg_database.h \
+spglib.h \
+spin.h \
+symmetry.h
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
+ }
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libsymspg.la: $(libsymspg_la_OBJECTS) $(libsymspg_la_DEPENDENCIES) $(EXTRA_libsymspg_la_DEPENDENCIES)
+ $(LINK) -rpath $(libdir) $(libsymspg_la_OBJECTS) $(libsymspg_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/cell.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/debug.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/hall_symbol.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/kpoint.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/lattice.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/mathfunc.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/pointgroup.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/primitive.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/refinement.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/site_symmetry.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/sitesym_database.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/spacegroup.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/spg_database.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/spglib.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/spglib_f.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/spin.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/symmetry.Plo at am__quote@
+
+.c.o:
+ at am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ at am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+ at am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+ at am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+ at am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+ at am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-pkgincludeHEADERS: $(pkginclude_HEADERS)
+ @$(NORMAL_INSTALL)
+ @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
+ fi; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
+ $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
+ done
+
+uninstall-pkgincludeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+installdirs:
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkgincludedir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-pkgincludeHEADERS
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libLTLIBRARIES uninstall-pkgincludeHEADERS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libLTLIBRARIES clean-libtool ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am \
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
+ install-pkgincludeHEADERS install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags uninstall uninstall-am \
+ uninstall-libLTLIBRARIES uninstall-pkgincludeHEADERS
+
+
+# libsymspg_la_LDFLAGS = -version-info 0:1:0
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/cell.c b/src/cell.c
new file mode 100644
index 0000000..b7156b7
--- /dev/null
+++ b/src/cell.c
@@ -0,0 +1,100 @@
+/* cell.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <stdlib.h>
+#include <stdio.h>
+#include "cell.h"
+#include "mathfunc.h"
+
+#include "debug.h"
+
+/* cell->size = 0 is a sign of False */
+Cell * cel_alloc_cell( const int size )
+{
+ Cell *cell;
+ int i, j;
+
+ cell = (Cell*) malloc( sizeof( Cell ) );
+
+ for ( i = 0; i < 3; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ cell->lattice[i][j] = 0;
+ }
+ }
+ cell->size = size;
+
+ if ( size > 0 ) {
+ if ((cell->types = (int *) malloc(sizeof(int) * size)) == NULL) {
+ warning_print("spglib: Memory of cell could not be allocated.");
+ exit(1);
+ }
+ if ((cell->position =
+ (double (*)[3]) malloc(sizeof(double[3]) * size)) == NULL) {
+ warning_print("spglib: Memory of cell could not be allocated.");
+ exit(1);
+ }
+ }
+
+ return cell;
+}
+
+void cel_free_cell( Cell * cell )
+{
+ if ( cell->size > 0 ) {
+ free( cell->position );
+ cell->position = NULL;
+ free( cell->types );
+ cell->types = NULL;
+ }
+ free ( cell );
+ cell = NULL;
+}
+
+void cel_set_cell( Cell * cell,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[] )
+{
+ int i, j;
+ mat_copy_matrix_d3(cell->lattice, lattice);
+ for (i = 0; i < cell->size; i++) {
+ for (j = 0; j < 3; j++) {
+ cell->position[i][j] = position[i][j];
+ }
+ cell->types[i] = types[i];
+ }
+}
+
+Cell * cel_copy_cell( SPGCONST Cell * cell )
+{
+ Cell * cell_new;
+
+ cell_new = cel_alloc_cell( cell->size );
+ cel_set_cell( cell_new,
+ cell->lattice,
+ cell->position,
+ cell->types );
+ return cell_new;
+}
+
+int cel_is_overlap( const double a[3],
+ const double b[3],
+ SPGCONST double lattice[3][3],
+ const double symprec )
+{
+ int i;
+ double v_diff[3];
+
+ for ( i = 0; i < 3; i++ ) {
+ v_diff[i] = a[i] - b[i];
+ v_diff[i] -= mat_Nint( v_diff[i] );
+ }
+
+ mat_multiply_matrix_vector_d3( v_diff, lattice, v_diff );
+ if ( mat_norm_squared_d3( v_diff ) < symprec*symprec ) {
+ return 1;
+ } else {
+ return 0;
+ }
+}
+
diff --git a/src/cell.h b/src/cell.h
new file mode 100644
index 0000000..4f95bcf
--- /dev/null
+++ b/src/cell.h
@@ -0,0 +1,28 @@
+/* cell.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __cell_H__
+#define __cell_H__
+
+#include "mathfunc.h"
+
+typedef struct {
+ int size;
+ double lattice[3][3];
+ int *types;
+ double (*position)[3];
+} Cell;
+
+Cell *cel_alloc_cell( const int size );
+void cel_free_cell( Cell * cell );
+void cel_set_cell( Cell * cell,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[] );
+Cell * cel_copy_cell( SPGCONST Cell * cell );
+int cel_is_overlap( const double a[3],
+ const double b[3],
+ SPGCONST double lattice[3][3],
+ const double symprec );
+
+#endif
diff --git a/src/debug.c b/src/debug.c
new file mode 100644
index 0000000..804d33e
--- /dev/null
+++ b/src/debug.c
@@ -0,0 +1,40 @@
+/* debug.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifdef DEBUG
+#include <stdio.h>
+#include "debug.h"
+
+void dbg_print_matrix_d3(double a[3][3])
+{
+ int i;
+ for (i = 0; i < 3; i++) {
+ printf("%f %f %f\n", a[i][0], a[i][1], a[i][2]);
+ }
+}
+
+void dbg_print_matrix_i3(int a[3][3])
+{
+ int i;
+ for (i = 0; i < 3; i++) {
+ printf("%d %d %d\n", a[i][0], a[i][1], a[i][2]);
+ }
+}
+
+void dbg_print_vectors_d3(double a[][3], int size)
+{
+ int i;
+ for (i = 0; i < size; i++) {
+ printf("%d: %f %f %f\n", i + 1, a[i][0], a[i][1], a[i][2]);
+ }
+}
+
+void dbg_print_vectors_with_label(double a[][3], int b[], int size)
+{
+ int i;
+ for (i = 0; i < size; i++) {
+ printf("%d: %f %f %f\n", b[i], a[i][0], a[i][1], a[i][2]);
+ }
+}
+
+#endif
diff --git a/src/debug.h b/src/debug.h
new file mode 100644
index 0000000..cf5e3b0
--- /dev/null
+++ b/src/debug.h
@@ -0,0 +1,33 @@
+/* debug.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __debug_H__
+#define __debug_H__
+
+#ifdef DEBUG
+#define debug_print(...) printf(__VA_ARGS__)
+#define debug_print_matrix_d3( a ) dbg_print_matrix_d3( a )
+#define debug_print_matrix_i3( a ) dbg_print_matrix_i3( a )
+#define debug_print_vectors_d3(...) dbg_print_vectors_d3(__VA_ARGS__)
+#define debug_print_vectors_with_label(...) dbg_print_vectors_with_label(__VA_ARGS__)
+
+void dbg_print_matrix_d3(double a[3][3]);
+void dbg_print_matrix_i3(int a[3][3]);
+void dbg_print_vectors_d3(double a[][3], int size);
+void dbg_print_vectors_with_label(double a[][3], int b[], int size);
+
+#else
+#define debug_print(...)
+#define debug_print_matrix_d3( a )
+#define debug_print_matrix_i3( a )
+#define debug_print_vectors_d3(...)
+#define debug_print_vectors_with_label(...)
+#endif
+
+#ifdef SPGWARNING
+#define warning_print(...) fprintf(stderr,__VA_ARGS__)
+#else
+#define warning_print(...)
+#endif
+
+#endif
diff --git a/src/hall_symbol.c b/src/hall_symbol.c
new file mode 100644
index 0000000..1933fd8
--- /dev/null
+++ b/src/hall_symbol.c
@@ -0,0 +1,2897 @@
+ /* hall_symbol.c */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#include <stdio.h>
+#include "lattice.h"
+#include "hall_symbol.h"
+#include "spg_database.h"
+#include "spacegroup.h"
+#include "symmetry.h"
+#include "mathfunc.h"
+
+#include "debug.h"
+
+/* See: R. W. Grosse-Kunstleve, Acta Cryst. (1999). A55, 383-395 */
+/* */
+/* S is the Smith normal form, S = U*M*V */
+/* M = R - I, where R is virtical stack of generator rotation matrices */
+/* and I is virtical stack of identity matrices. */
+/* */
+/* Origin shift is given by (V*S+*U)*dw where dw is translations */
+/* corresponding to those obtained by symmetry finder and from */
+/* International table. */
+/* S+ is given by the operations of inversion of the diagonal elements */
+/* and then transpose. */
+
+static double tricli_VSpU[][3][9] = {
+ { /* 1 */
+ { 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 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+static int tricli_generators[][3][9] = {
+ { /* 1 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+};
+
+static double monocli_A_VSpU[][3][9] = {
+ { /* 1 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 1, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -1.0/2, 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, },
+ },
+ { /* 8 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 1, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 1, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+};
+
+static double monocli_B_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -1, 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, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+static double monocli_C_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -1, 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, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1, 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, },
+ },
+ { /* 10 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { -1, 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, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+static double monocli_I_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1, 1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 7 */
+ { 0, 1, 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, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1.0/2, 0, 1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1, 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, },
+ },
+ { /* 10 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { -1, 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, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+static double monocli_VSpU[][3][9] = {
+ { /* 1 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -1.0/2, 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, },
+ },
+ { /* 8 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+static int monocli_generators[][3][9] = {
+ { /* 1 */
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+};
+
+static double ortho_A_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 1, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 1, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 1, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ },
+ { /* 7 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1, 0, 0, 0, 1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 1.0/2, 0, },
+ },
+};
+
+static double ortho_B_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 5 */
+ { 0, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 7 */
+ { -1, 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, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 11 */
+ { -1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+};
+
+static double ortho_C_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 0, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, -1.0/2, },
+ },
+ { /* 7 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+};
+
+static double ortho_F_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 1.0/2, 0, -1.0/4, -1.0/4, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, -1.0/4, -1.0/4, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, -1.0/4, 3.0/4, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 1, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, 1, 0, 0, -1.0/2, 0, },
+ },
+ { /* 5 */
+ { 0, 1, 0, 0, -1, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 1, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, -1, 0, 0, 1.0/2, 0, },
+ },
+ { /* 7 */
+ { 0, -1, 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, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, -1, 0, 0, 1, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, -1, 0, 0, 0, 0, 0, 1.0/2, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, 1, 0, 0, -1.0/2, 0, },
+ },
+ { /* 11 */
+ { 0, -1, 0, 0, 1, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, -1, 0, 0, 0, 0, 0, 1.0/2, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, -1, 0, 0, 1.0/2, 0, },
+ },
+};
+
+static double ortho_I_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, -1.0/2, 0, -1, 0, 1.0/2, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 1.0/2, 0, -1, 0, -1.0/2, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -1, 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, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 0, -1, 0, 1.0/2, 0, -1.0/2, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, -1.0/2, },
+ },
+ { /* 11 */
+ { -1.0/2, 0, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ { -1.0/2, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 1.0/2, 0, 0, -1.0/2, 0, -1.0/2, 0, 0, },
+ },
+};
+
+static double ortho_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, -1.0/2, },
+ },
+ { /* 7 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+};
+
+static int ortho_generators[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 5 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 7 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+};
+
+static double trigo_VSpU[][3][9] = {
+ { /* 1 */
+ { -2.0/3, 1.0/3, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/3, -1.0/3, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -6, 3, 0, 4, 0, 0, 0, 0, 0, },
+ { -3, 1, 0, 2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 1.0/3, 0, -2.0/3, 0, 0, 0, 0, 0, },
+ { 0, -1.0/3, 0, -1.0/3, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 1, 0, -2, 0, 0, 1, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, -1, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { 0, -1, 0, -2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, -1, 0, -2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, -1.0/2, },
+ },
+ { /* 7 */
+ { 0, -1, 0, -2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, -1, 0, -2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, -1, 0, -2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, -1, 0, -2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 1, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 1, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 13 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 15 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 17 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 19 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 20 */
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+static int trigo_generators[][3][9] = {
+ { /* 1 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 5 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 7 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 9 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, -1, 0, 1, -1, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 13 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 15 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 17 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 19 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 20 */
+ { 0, 1, 0, -1, 1, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+};
+
+static double rhombo_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 1, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 1, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ { 1, 0, 0, -1, 0, 1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, -1, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { 1, 0, 0, -1, 0, 0, 0, -1.0/2, 0, },
+ },
+ { /* 7 */
+ { -1, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 8 */
+ { -1, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { -1.0/2, -1.0/2, 1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { -2, 0, 2, 1.0/2, -1, 0, 0, 0, 0, },
+ { 1, 0, -1, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 13 */
+ { -1, 0, 0, 0, 0, 1.0/2, 0, 0, 0, },
+ { 1, 0, 0, -1, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 14 */
+ { -1, 0, 0, 0, 0, 1.0/2, 0, 0, 0, },
+ { 1, 0, 0, -1, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 15 */
+ { 0, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 1.0/2, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, 0, 0, -1, 0, 0, 0, -1.0/2, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, -1.0/2, 0, },
+ { -1, 0, 0, 1, 0, 0, 0, 1.0/2, 0, },
+ },
+ { /* 17 */
+ { 0, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 1.0/2, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { -1, 0, 0, 0, 0, 1.0/2, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, 1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 19 */
+ { 0, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 1.0/2, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 20 */
+ { -1, 0, 0, 0, 0, 1.0/2, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, 1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+};
+
+
+static int rhombo_generators[][3][9] = {
+ { /* 1 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 5 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 7 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 9 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 13 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 15 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 17 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 19 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 20 */
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+};
+
+static double hexa_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 1, 0, 0, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -1, 1, 0, 0, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 1, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 1, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, -1.0/2, },
+ },
+ { /* 7 */
+ { -1.0/3, -1.0/3, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/3, -2.0/3, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { -1, -1, 0, 1, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1.0/3, 0, 0, -1.0/3, 0, 0, 0, 0, 0, },
+ { 1.0/3, 0, 0, -2.0/3, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 0, 0, -1, 0, 0, 1, 0, 0, },
+ { 1, 0, 0, 0, 0, 0, -1, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { -1, 0, 0, 1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { -1, 0, 0, 1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+};
+
+static int hexa_generators[][3][9] = {
+ { /* 1 */
+ { 1, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 1, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 1, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 1, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 5 */
+ { 1, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 1, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 7 */
+ { -1, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { -1, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, -1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { -1, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { -1, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+};
+
+
+static double cubic_F_VSpU[][3][9] = {
+ { /* 1 */
+ { 0, 0, -1, 0, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { -1, 0, -1, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 1, 0, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 0, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 5 */
+ { 0, 1.0/2, -1.0/2, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1.0/2, 1.0/2, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1.0/2, -1.0/2, 0, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 2, 0, -2, 0, 0, 1.0/2, -1, 0, },
+ { 0, -1, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 7 */
+ { -1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 1.0/4, -1.0/4, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -3.0/4, -1.0/4, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 1.0/4, -1.0/4, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, -1, -2, 0, 0, 3.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, -1, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, -2, 4, 0, 0, -3.0/2, 1, 0, },
+ { 0, 0, 1, -2, 0, 0, 1.0/2, -1, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 13 */
+ { -1.0/4, 1.0/4, 1.0/2, 0, 0, 0, 0, 0, 0, },
+ { -1.0/4, -3.0/4, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ { -1.0/4, 1.0/4, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { -1, 0, 1, 1, 1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { -1, 0, 0, 1, 1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 15 */
+ { -1.0/4, 1.0/4, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1.0/4, -3.0/4, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { -1.0/4, 1.0/4, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 17 */
+ { 0, 0, 1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { 0, 2, 0, 2, 0, 0, -3.0/2, -1, 0, },
+ { 0, -1, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 19 */
+ { 0, -1, 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, },
+ },
+ { /* 20 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 21 */
+ { 0, -1.0/2, 0, -1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, -1.0/2, 0, 1.0/2, 0, 1.0/2, 0, 0, 0, },
+ { 0, -1.0/2, 0, 1.0/2, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 22 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 1, 0, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 23 */
+ { 0, 0, 1.0/2, -1.0/2, 0, 1.0/2, 0, 0, 0, },
+ { 0, 0, 1.0/2, 1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, -1.0/2, -1.0/2, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 24 */
+ { 0, 0, 2, 0, 0, 0, 1.0/2, 1, 0, },
+ { 0, 0, -1, 0, 0, 0, -1.0/2, -1, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+};
+
+static double cubic_I_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 2, 0, -1.0/2, 0, -1, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 1, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -2, -3, 0, -1, 0, 0, 1, -1, 1, },
+ { -1, -3, 0, -1, 0, 0, 1, -1, 1, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 1, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 1, -1, 0, 0, 0, 0, 0, },
+ { 1, 0, -1, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1, 0, 1, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 1, -1, 0, 0, 0, 0, 0, },
+ { 1, 0, -3, 4, 0, 0, -1, -1, -1, },
+ },
+ { /* 7 */
+ { -1, 0, 1.0/2, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, -1.0/2, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 1, 0, -1, -2, 0, -1, 0, 0, 0, },
+ { 1, 0, -1, -1, 0, 0, 0, 0, 0, },
+ { 1, 0, -1, -1, 0, -1, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 0, 0, 0, 0, -1, 0, -1, 1, },
+ { -1, 0, 0, 1, 0, 0, 0, -1, 1, },
+ { -1, 0, 0, 1, 0, -1, 0, -1, 1, },
+ },
+ { /* 11 */
+ { -1, 0, 1, 0, 0, -1, 0, 0, 0, },
+ { 3, 0, -1, -3, 0, 2, 0, 0, 0, },
+ { -3, 0, 1, 3, 0, -3, 0, 0, 0, },
+ },
+ { /* 12 */
+ { -1, 0, 0, 2, 0, -1, -1, 0, 0, },
+ { 1, 0, 0, -1, 0, 2, 0, -1, -1, },
+ { -1, 0, 0, 1, 0, -3, 0, 1, 1, },
+ },
+ { /* 13 */
+ { -3.0/4, 1.0/4, 1.0/4, 0, 0, 0, 0, 0, 0, },
+ { -1.0/4, -1.0/4, -1.0/4, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { -2, 1, 0, 1, 0, 0, 0, 0, 0, },
+ },
+ { /* 15 */
+ { 1, 2, -5, -7, 0, 0, 0, 0, 0, },
+ { 1, 1, -4, -5, 0, 0, 0, 0, 0, },
+ { 0, 1, -2, -2, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { -4, -3, 0, 13, 0, 0, -5, 5, 5, },
+ { -3, -3, 0, 11, 0, 0, -4, 4, 4, },
+ { -2, -1, 0, 6, 0, 0, -2, 2, 2, },
+ },
+ { /* 17 */
+ { -2, 1, 0, 1, 0, 0, 0, 0, 0, },
+ { 1, -1, 0, -1, 0, 0, 0, 0, 0, },
+ { 2, -1, 0, -2, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { -2, 3, 0, 7, 0, 0, -3, -2, -2, },
+ { 1, -3, 0, -7, 0, 0, 3, 2, 2, },
+ { -2, 5, 0, 12, 0, 0, -5, -4, -4, },
+ },
+ { /* 19 */
+ { -1, 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, },
+ },
+ { /* 20 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, -1.0/2, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 21 */
+ { -1, 0, 0, 0, 0, -1, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, -1, 0, 0, 0, },
+ },
+ { /* 22 */
+ { -1, 0, 0, 0, 0, -1, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1, 0, -1, 0, 0, 0, },
+ },
+ { /* 23 */
+ { 1, 0, 0, 0, -2, 1, 0, 0, 0, },
+ { -1, 0, 0, 0, 1, -1, 0, 0, 0, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, 0, },
+ },
+ { /* 24 */
+ { 1, 0, 0, -2, 0, 3, 0, -2, 0, },
+ { -1, 0, 0, 1, 0, -2, 0, 1, 0, },
+ { 1, 0, 0, -1, 0, 1, 0, -1, 0, },
+ },
+};
+
+static double cubic_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1.0/2, 1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 1.0/2, 0, 1, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 5 */
+ { -1.0/2, 1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, 0, -1, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 2, 0, 0, 0, 0, 1.0/2, -1, 0, },
+ { 0, -1, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 7 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { -1.0/2, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, -1.0/2, 0, -1, 0, -1, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, -1, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 1, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 11 */
+ { 0, -1.0/2, 0, -1, 0, 1, 0, 0, 0, },
+ { 0, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 1.0/2, 0, 0, 0, -1, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, -2, 0, 2, 1.0/2, -1, 0, },
+ { 0, 0, 0, 1, 0, -1, -1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 13 */
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 15 */
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, -1.0/2, 0, 1, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 17 */
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, 1.0/2, 0, -1, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { 0, -2, 0, 0, 0, 0, 1.0/2, 1, 0, },
+ { 0, 1, 0, 0, 0, 0, -1.0/2, -1, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+ { /* 19 */
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 20 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 21 */
+ { 0, 0, -1.0/2, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 1, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 22 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 1, -1.0/2, 0, 0, },
+ { 0, 0, 0, 1, 0, 0, -1.0/2, 0, 0, },
+ },
+ { /* 23 */
+ { 0, 0, 1.0/2, -1, 0, 0, 0, 0, 0, },
+ { 0, 0, 1.0/2, 0, 0, -1, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 24 */
+ { 0, 0, 0, -2, 0, 2, 1.0/2, -1, 0, },
+ { 0, 0, 0, 1, 0, -1, -1.0/2, 0, 0, },
+ { 0, 0, 0, -1, 0, 0, 1.0/2, 0, 0, },
+ },
+};
+
+static int cubic_generators[][3][9] = {
+ { /* 1 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 5 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 7 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { -1, 0, 0, 0, -1, 0, 0, 0, 1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 13 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 14 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 15 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 16 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 17 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 18 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 19 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 20 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 21 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 22 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, 1, 1, 0, 0, 0, 1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 23 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 24 */
+ { 1, 0, 0, 0, 1, 0, 0, 0, -1, },
+ { 0, 0, -1, -1, 0, 0, 0, -1, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+};
+
+
+static double tetra_I_VSpU[][3][9] = {
+ { /* 1 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 2, 0, -1.0/2, 0, -1, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, -1, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, -1, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1, 0, 0, 0, -1, 0, 1.0/2, 0, -1.0/2, },
+ { 0, 0, 0, 0, -1, 0, 1.0/2, 0, -1.0/2, },
+ { 1, 0, 0, 0, 1, 0, -1, 0, 0, },
+ },
+ { /* 5 */
+ { -1, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { -1, 0, 0, 0, -1, 0, -1.0/2, 0, 1.0/2, },
+ { 0, 0, 0, 0, -1, 0, -1.0/2, 0, 1.0/2, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, 0, },
+ },
+ { /* 7 */
+ { -3.0/4, 1.0/4, 1.0/4, 0, 0, 0, 0, 0, 0, },
+ { -1.0/4, -1.0/4, -1.0/4, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { -2, 1, 0, 1, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, -1, -1, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 0, 0, 0, 1, 0, -1.0/2, 0, 1.0/2, },
+ { 0, 0, 0, 0, -1, 0, 1.0/2, 0, -1.0/2, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { -3.0/4, 1.0/4, 0, 0, 1.0/4, 0, 0, 0, 0, },
+ { -1.0/4, -1.0/4, 0, 0, -1.0/4, 0, 0, 0, 0, },
+ { -1.0/2, 1.0/2, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { -1, 0, 0, 0, 1, 0, 1.0/2, 0, -1.0/2, },
+ { 0, 0, 0, 0, -1, 0, -1.0/2, 0, 1.0/2, },
+ { -1, 0, 0, 0, 1, 0, 1, 0, -1, },
+ },
+};
+
+static double tetra_VSpU[][3][9] = {
+ { /* 1 */
+ { -1.0/2, 1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 3 */
+ { -1, 0, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 4 */
+ { -1, 0, 0, 0, 1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 5 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { -1, 0, 0, 1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { -1, 0, 0, 0, 0, 0, 1.0/2, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, -1.0/2, },
+ },
+ { /* 7 */
+ { -1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 1.0/2, -1.0/2, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { -1, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { -1, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, -1.0/2, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, -1.0/2, 0, 0, 0, },
+ },
+ { /* 11 */
+ { 0, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 1, 0, 0, -1.0/2, 0, 0, 0, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 1, 0, 0, 0, 0, 0, -1.0/2, 0, 0, },
+ { 0, 0, -1.0/2, 0, 0, 0, 0, 0, 0, },
+ },
+};
+
+static int tetra_generators[][3][9] = {
+ { /* 1 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 2 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 3 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 4 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 5 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 6 */
+ { 0, -1, 0, 1, 0, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 7 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 8 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 9 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 10 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { 1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+ { /* 11 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { 0, 0, 0, 0, 0, 0, 0, 0, 0, },
+ },
+ { /* 12 */
+ { 0, 1, 0, -1, 0, 0, 0, 0, -1, },
+ { -1, 0, 0, 0, 1, 0, 0, 0, 1, },
+ { -1, 0, 0, 0, -1, 0, 0, 0, -1, },
+ },
+};
+
+
+
+static int find_hall_symbol(double origin_shift[3],
+ const Centering centering,
+ SPGCONST Symmetry *symmetry);
+static int is_hall_symbol(double shift[3],
+ const int hall_number,
+ SPGCONST Symmetry *symmetry,
+ Centering centering,
+ SPGCONST int generators[3][9],
+ SPGCONST double VSpU[3][9]);
+static int is_hall_symbol_cubic(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ Centering centering);
+static int is_hall_symbol_hexa(double shift[3],
+ SPGCONST Symmetry *symmetry);
+static int is_hall_symbol_rhombo(double shift[3],
+ SPGCONST Symmetry *symmetry);
+static int is_hall_symbol_trigonal(double shift[3],
+ SPGCONST Symmetry *symmetry);
+static int is_hall_symbol_tetra(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ const Centering centering);
+static int is_hall_symbol_ortho(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ const Centering centering);
+static int is_hall_symbol_monocli(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ const Centering centering);
+static int is_hall_symbol_tricli(double shift[3],
+ SPGCONST Symmetry *symmetry);
+static int get_translations(double trans[3][3],
+ SPGCONST Symmetry *symmetry,
+ SPGCONST int rot[3][3][3]);
+static void transform_translation(double trans_reduced[3],
+ const Centering centering,
+ const double trans[3]);
+static void transform_translation_inverse(double trans[3],
+ const Centering centering,
+ const double trans_reduced[3]);
+static int get_origin_shift(double shift[3],
+ const int hall_number,
+ SPGCONST int rot[3][3][3],
+ SPGCONST double trans[3][3],
+ const Centering centering,
+ SPGCONST double VSpU[3][9]);
+static void unpack_generators(int rot[3][3][3], int generators[3][9]);
+static int set_dw(double dw[3],
+ const int operation_index[2],
+ SPGCONST int rot[3][3],
+ const double trans[3],
+ const Centering centering);
+static int is_match_database(const int hall_number,
+ const double shift[3],
+ SPGCONST Symmetry *symmetry);
+
+/* Used for passing to functions in deep */
+static double tolerance;
+static double lattice[3][3];
+
+int hal_get_hall_symbol(double origin_shift[3],
+ const Centering centering,
+ double bravais_lattice[3][3],
+ SPGCONST Symmetry *symmetry,
+ const double symprec)
+{
+ int hall_number;
+
+ /* Pass tolerance and Bravais lattice to the function in deep */
+ mat_copy_matrix_d3(lattice, bravais_lattice);
+ tolerance = symprec;
+
+ hall_number = find_hall_symbol(origin_shift, centering, symmetry);
+
+ /* In the case of Pa-3 (205), Bravais lattice may change. */
+ mat_copy_matrix_d3(bravais_lattice, lattice);
+
+ return hall_number;
+}
+
+static int find_hall_symbol(double origin_shift[3],
+ const Centering centering,
+ SPGCONST Symmetry *symmetry)
+{
+ int hall_number = 0;
+
+ /* CUBIC IT: 195-230, Hall: 489-530 */
+ hall_number = is_hall_symbol_cubic(origin_shift,
+ symmetry,
+ centering);
+ if (hall_number) { goto end; }
+
+ /* HEXA, IT: 168-194, Hall: 462-488 */
+ hall_number = is_hall_symbol_hexa(origin_shift, symmetry);
+ if (hall_number) { goto end; }
+
+ /* TRIGO, IT: 143-167, Hall: 430-461 */
+ hall_number = is_hall_symbol_trigonal(origin_shift, symmetry);
+ if (hall_number) { goto end; }
+
+ /* RHOMB, IT: 143-167, Hall: 430-461 */
+ hall_number = is_hall_symbol_rhombo(origin_shift, symmetry);
+ if (hall_number) { goto end; }
+
+ /* TETRA, IT: 75-142, Hall: 349-429 */
+ hall_number = is_hall_symbol_tetra(origin_shift, symmetry, centering);
+ if (hall_number) { goto end; }
+
+ /* ORTHO, IT: 16-74, Hall: 108-348 */
+ hall_number = is_hall_symbol_ortho(origin_shift, symmetry, centering);
+ if (hall_number) { goto end; }
+
+ /* MONOCLI, IT: 3-15, Hall: 3-107 */
+ hall_number = is_hall_symbol_monocli(origin_shift, symmetry, centering);
+ if (hall_number) { goto end; }
+
+ /* TRICLI, IT: 1-2, Hall: 1-2 */
+ hall_number = is_hall_symbol_tricli(origin_shift, symmetry);
+ if (hall_number) { goto end; }
+
+ end:
+ return hall_number;
+}
+
+static int is_hall_symbol_cubic(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ Centering centering)
+{
+ int i, hall_number;
+ Symmetry *conv_symmetry;
+ double trans_mat[3][3] = { { 0, 0, 1 },
+ { 0,-1, 0 },
+ { 1, 0, 0 } };
+
+ for (i = 0; i < 24; i++) {
+ for (hall_number = 489; hall_number < 531; hall_number++) {
+ /* Special case of Pa-3 (205) */
+ if (hall_number==501) {
+ if (is_hall_symbol(shift,
+ 501,
+ symmetry,
+ centering,
+ cubic_generators[i],
+ cubic_VSpU[i])) { goto found; }
+
+ /* Try another basis */
+ conv_symmetry = spa_get_conventional_symmetry(trans_mat,
+ centering,
+ symmetry);
+
+ if (is_hall_symbol(shift,
+ 501,
+ conv_symmetry,
+ centering,
+ cubic_generators[i],
+ cubic_VSpU[i])) {
+ /* Lattice is multiplied by transformation matrix. */
+ mat_multiply_matrix_d3(lattice,
+ lattice,
+ trans_mat);
+ goto found; }
+
+ sym_free_symmetry(conv_symmetry);
+ continue;
+ }
+
+ if (centering==NO_CENTER) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ cubic_generators[i],
+ cubic_VSpU[i])) { goto found; }
+ }
+
+ if (centering==BODY) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ cubic_generators[i],
+ cubic_I_VSpU[i])) { goto found; }
+ }
+
+ if (centering==FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ cubic_generators[i],
+ cubic_F_VSpU[i])) { goto found; }
+ }
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+
+}
+
+static int is_hall_symbol_hexa(double shift[3],
+ SPGCONST Symmetry *symmetry)
+{
+ int i, hall_number;
+
+ for (i = 0; i < 12; i++) {
+ for (hall_number = 462; hall_number < 489; hall_number++) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ NO_CENTER,
+ hexa_generators[i],
+ hexa_VSpU[i])) {goto found;}
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+}
+
+static int is_hall_symbol_trigonal(double shift[3],
+ SPGCONST Symmetry *symmetry)
+{
+ int i, hall_number;
+
+ for (i = 0; i < 20; i++) {
+ for (hall_number = 430; hall_number < 462; hall_number++) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ NO_CENTER,
+ trigo_generators[i],
+ trigo_VSpU[i])) { goto found; }
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+
+}
+
+static int is_hall_symbol_rhombo(double shift[3],
+ SPGCONST Symmetry *symmetry)
+{
+ int i, hall_number;
+
+ for (i = 0; i < 20; i++) {
+ for (hall_number = 430; hall_number < 462; hall_number++) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ NO_CENTER,
+ rhombo_generators[i],
+ rhombo_VSpU[i])) { goto found; }
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+
+}
+
+static int is_hall_symbol_tetra(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ const Centering centering)
+{
+ int i, hall_number;
+
+ for (i = 0; i < 12; i++) {
+ for (hall_number = 349; hall_number < 429; hall_number++) {
+ if (centering==NO_CENTER) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ tetra_generators[i],
+ tetra_VSpU[i])) { goto found; }
+ }
+
+ if (centering==BODY) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ tetra_generators[i],
+ tetra_I_VSpU[i])) { goto found; }
+ }
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+}
+
+static int is_hall_symbol_ortho(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ const Centering centering)
+{
+ int hall_number;
+ int i;
+
+ for (i = 0; i < 12; i++) {
+ for (hall_number = 108; hall_number < 348; hall_number++) {
+ if (centering==NO_CENTER) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ ortho_generators[i],
+ ortho_VSpU[i])) { goto found; }
+ }
+
+ if (centering==BODY) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ ortho_generators[i],
+ ortho_I_VSpU[i])) { goto found; }
+ }
+
+ if (centering==FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ ortho_generators[i],
+ ortho_F_VSpU[i])) { goto found; }
+ }
+
+ if (centering==A_FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ ortho_generators[i],
+ ortho_A_VSpU[i])) { goto found; }
+ }
+
+ if (centering==B_FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ ortho_generators[i],
+ ortho_B_VSpU[i])) { goto found; }
+ }
+
+ if (centering==C_FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ ortho_generators[i],
+ ortho_C_VSpU[i])) { goto found; }
+ }
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+
+}
+
+static int is_hall_symbol_monocli(double shift[3],
+ SPGCONST Symmetry *symmetry,
+ const Centering centering)
+{
+ int hall_number;
+ int i;
+
+ for (i = 0; i < 12; i++) {
+ for (hall_number = 3; hall_number < 108; hall_number++) {
+ if (centering==NO_CENTER) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ monocli_generators[i],
+ monocli_VSpU[i])) {goto found;}
+ }
+
+ if (centering==A_FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ monocli_generators[i],
+ monocli_A_VSpU[i])) {goto found;}
+ }
+
+ if (centering==B_FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ monocli_generators[i],
+ monocli_B_VSpU[i])) {goto found;}
+ }
+
+ if (centering==C_FACE) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ monocli_generators[i],
+ monocli_C_VSpU[i])) {goto found;}
+ }
+
+ if (centering==BODY) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ centering,
+ monocli_generators[i],
+ monocli_I_VSpU[i])) {goto found;}
+ }
+
+
+ }
+ }
+ return 0;
+
+ found:
+ return hall_number;
+
+}
+
+static int is_hall_symbol_tricli(double shift[3],
+ SPGCONST Symmetry *symmetry)
+{
+ int i, hall_number;
+
+ for (i = 0; i < 2; i++) {
+ for (hall_number = 1; hall_number < 3; hall_number++) {
+ if (is_hall_symbol(shift,
+ hall_number,
+ symmetry,
+ NO_CENTER,
+ tricli_generators[i],
+ tricli_VSpU[i])) { goto found; }
+ }
+ }
+
+ return 0;
+
+ found:
+ return hall_number;
+
+}
+
+static void unpack_generators(int rot[3][3][3], int generators[3][9])
+{
+ int i, j, k;
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ for (k = 0; k < 3; k++) {
+ rot[i][j][k] = generators[i][j*3+k];
+ }
+ }
+ }
+}
+
+static int is_hall_symbol(double shift[3],
+ const int hall_number,
+ SPGCONST Symmetry *symmetry,
+ Centering centering,
+ SPGCONST int generators[3][9],
+ SPGCONST double VSpU[3][9])
+{
+ int is_origin_shift;
+ int operation_index[2];
+ int rot[3][3][3];
+ double trans[3][3];
+
+ unpack_generators(rot, generators);
+
+ spgdb_get_operation_index(operation_index, hall_number);
+ if (! (operation_index[0] == symmetry->size)) {
+ goto not_found;
+ }
+
+ if (get_translations(trans, symmetry, rot)) {
+ is_origin_shift = get_origin_shift(shift,
+ hall_number,
+ rot,
+ trans,
+ centering,
+ VSpU);
+
+ if (is_origin_shift) {
+ if (is_match_database(hall_number,
+ shift,
+ symmetry)) {
+ debug_print("Match with database %d\n", hall_number);
+ goto found;
+ }
+ }
+ } else {
+ goto not_found;
+ }
+
+ not_found:
+ return 0;
+
+ found:
+ return 1;
+}
+
+static int get_translations(double trans[3][3],
+ SPGCONST Symmetry *symmetry,
+ SPGCONST int rot[3][3][3])
+{
+ int i, j;
+ int is_found;
+ static SPGCONST int zero[3][3] = { { 0, 0, 0 },
+ { 0, 0, 0 },
+ { 0, 0, 0 }, };
+
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ trans[i][j] = 0;
+ }
+ }
+
+ for (i = 0; i < 3; i++) {
+ if (mat_check_identity_matrix_i3(rot[i], zero)) { continue; }
+ is_found = 0;
+ for (j = 0; j < symmetry->size; j++) {
+ if (mat_check_identity_matrix_i3(symmetry->rot[j], rot[i])) {
+ mat_copy_vector_d3(trans[i], symmetry->trans[j]);
+ is_found = 1;
+ break;
+ }
+ }
+ if (! is_found) {
+ goto not_found;
+ }
+ }
+
+ return 1;
+
+ not_found:
+
+ return 0;
+}
+
+static void transform_translation(double trans_reduced[3],
+ const Centering centering,
+ const double trans[3])
+{
+ int i;
+ static int M_bcc[3][3] = {
+ { 0, 1, 1 },
+ { 1, 0, 1 },
+ { 1, 1, 0 },
+ };
+ static int M_fcc[3][3] = {
+ {-1, 1, 1 },
+ { 1,-1, 1 },
+ { 1, 1,-1 },
+ };
+ static int M_ac[3][3] = {
+ { 1, 0, 0 },
+ { 0, 1, 1 },
+ { 0,-1, 1 },
+ };
+ static int M_bc[3][3] = {
+ { 1, 0, 1 },
+ { 0, 1, 0 },
+ {-1, 0, 1 },
+ };
+ static int M_cc[3][3] = {
+ { 1, 1, 0 },
+ {-1, 1, 0 },
+ { 0, 0, 1 },
+ };
+
+ switch (centering) {
+ case NO_CENTER:
+ mat_copy_vector_d3(trans_reduced, trans);
+ break;
+ case BODY:
+ mat_multiply_matrix_vector_id3(trans_reduced, M_bcc, trans);
+ break;
+ case FACE:
+ mat_multiply_matrix_vector_id3(trans_reduced, M_fcc, trans);
+ break;
+ case A_FACE:
+ mat_multiply_matrix_vector_id3(trans_reduced, M_ac, trans);
+ break;
+ case B_FACE:
+ mat_multiply_matrix_vector_id3(trans_reduced, M_bc, trans);
+ break;
+ case C_FACE:
+ mat_multiply_matrix_vector_id3(trans_reduced, M_cc, trans);
+ break;
+ default:
+ break;
+ }
+
+ for (i = 0; i < 3; i++) {
+ trans_reduced[i] -= mat_Nint(trans_reduced[i]);
+ }
+}
+
+static void transform_translation_inverse(double trans[3],
+ const Centering centering,
+ const double trans_reduced[3])
+{
+ int i;
+ static double M_bcc_inv[3][3] = {
+ {-0.5, 0.5, 0.5},
+ { 0.5,-0.5, 0.5},
+ { 0.5, 0.5,-0.5},
+ };
+ static double M_fcc_inv[3][3] = {
+ { 0.0, 0.5, 0.5},
+ { 0.5, 0.0, 0.5},
+ { 0.5, 0.5, 0.0},
+ };
+ static double M_ac_inv[3][3] = {
+ { 1.0, 0.0, 0.0},
+ { 0.0, 0.5,-0.5},
+ { 0.0, 0.5, 0.5},
+ };
+ static double M_bc_inv[3][3] = {
+ { 0.5, 0.0,-0.5},
+ { 0.0, 1.0, 0.0},
+ { 0.5, 0.0, 0.5},
+ };
+ static double M_cc_inv[3][3] = {
+ { 0.5,-0.5, 0.0},
+ { 0.5, 0.5, 0.0},
+ { 0.0, 0.0, 1.0},
+ };
+
+ switch (centering) {
+ case NO_CENTER:
+ mat_copy_vector_d3(trans, trans_reduced);
+ break;
+ case BODY:
+ mat_multiply_matrix_vector_d3(trans, M_bcc_inv, trans_reduced);
+ break;
+ case FACE:
+ mat_multiply_matrix_vector_d3(trans, M_fcc_inv, trans_reduced);
+ break;
+ case A_FACE:
+ mat_multiply_matrix_vector_d3(trans, M_ac_inv, trans_reduced);
+ break;
+ case B_FACE:
+ mat_multiply_matrix_vector_d3(trans, M_bc_inv, trans_reduced);
+ break;
+ case C_FACE:
+ mat_multiply_matrix_vector_d3(trans, M_cc_inv, trans_reduced);
+ break;
+ default:
+ break;
+ }
+
+ for (i = 0; i < 3; i++) {
+ trans[i] -= mat_Nint(trans[i]);
+ }
+}
+
+static int get_origin_shift(double shift[3],
+ const int hall_number,
+ SPGCONST int rot[3][3][3],
+ SPGCONST double trans[3][3],
+ const Centering centering,
+ SPGCONST double VSpU[3][9])
+{
+ int i, j;
+ int operation_index[2];
+ double dw[9], tmp_dw[3], tmp_shift[3];
+
+ spgdb_get_operation_index(operation_index, hall_number);
+
+ /* The obtained dw is reduced to that of primitve cell by centerings. */
+ for (i = 0; i < 3; i++) {
+ /* Zero matrix is the sign to set dw 0 */
+ if (mat_get_determinant_i3(rot[i]) == 0) {
+ for (j = 0; j < 3; j++) {
+ dw[i*3+j] = 0;
+ }
+ } else {
+ if (set_dw(tmp_dw, operation_index,
+ rot[i], trans[i], centering)) {
+ for (j = 0; j < 3; j++) {
+ dw[i*3+j] = tmp_dw[j];
+ }
+ } else {
+ goto not_found;
+ }
+ }
+ }
+
+
+ /* VSpU*dw is given for the primitive cell if there is centering. */
+ for (i = 0; i < 3; i++) {
+ tmp_shift[i] = 0;
+ for (j = 0; j < 9; j++) {
+ tmp_shift[i] += VSpU[i][j] * dw[j];
+ }
+ }
+ /* Transform VSpU*dw to that of the conventional unit cell. */
+ transform_translation_inverse(shift, centering, tmp_shift);
+
+ return 1;
+
+ not_found:
+ return 0;
+}
+
+static int set_dw(double dw[3],
+ const int operation_index[2],
+ SPGCONST int rot[3][3],
+ const double trans[3],
+ const Centering centering)
+{
+ int i, j;
+ int rot_db[3][3];
+ double trans_db[3], tmp_dw[3];
+
+ for (i = 0; i < operation_index[0]; i++) {
+ /* rotation matrix matching and set difference of translations */
+ spgdb_get_operation(rot_db, trans_db, operation_index[1] + i);
+
+ if (mat_check_identity_matrix_i3(rot_db, rot)) {
+ for (j = 0; j < 3; j++) {
+ tmp_dw[j] = trans_db[j] - trans[j];
+ }
+ /* Transform dw to that of primitive cell if there is centering. */
+ transform_translation(dw, centering, tmp_dw);
+ goto found;
+ }
+ }
+
+ /* Not found */
+ return 0;
+
+ found:
+ return 1;
+}
+
+static int is_match_database(const int hall_number,
+ const double origin_shift[3],
+ SPGCONST Symmetry *symmetry)
+{
+ int i, j, k, is_found;
+ int operation_index[2];
+ int rot_db[3][3];
+ int found_list[192];
+ double trans_db[3], conv_trans[3], tmp_vec[3];
+
+ spgdb_get_operation_index(operation_index, hall_number);
+
+ for (i = 0; i < symmetry->size; i++) { found_list[i] = 0; }
+
+ for (i = 0; i < symmetry->size; i++) {
+ is_found = 0;
+ for (j = 0; j < operation_index[0]; j++) {
+ /* rotation matrix matching and set difference of translations */
+ spgdb_get_operation(rot_db, trans_db, operation_index[1]+j);
+
+ if (mat_check_identity_matrix_i3(symmetry->rot[i], rot_db)) {
+ mat_multiply_matrix_vector_id3(tmp_vec, rot_db, origin_shift);
+ for (k = 0; k < 3; k++) {
+ conv_trans[k] = tmp_vec[k] + symmetry->trans[i][k] - origin_shift[k];
+ }
+
+ if (cel_is_overlap(conv_trans,
+ trans_db,
+ lattice,
+ tolerance) && (! found_list[j])) {
+ found_list[j] = 1;
+ is_found = 1;
+
+ break;
+ }
+ }
+ }
+ if (! is_found) {
+ goto not_found;
+ }
+ }
+
+ return 1;
+
+ not_found:
+ return 0;
+}
+
diff --git a/src/hall_symbol.h b/src/hall_symbol.h
new file mode 100644
index 0000000..21932bc
--- /dev/null
+++ b/src/hall_symbol.h
@@ -0,0 +1,16 @@
+/* hall_symbol.h */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#ifndef __hall_symbol_H__
+#define __hall_symbol_H__
+
+#include "lattice.h"
+#include "symmetry.h"
+#include "mathfunc.h"
+
+int hal_get_hall_symbol( double origin_shift[3],
+ const Centering centering,
+ double bravais_lattice[3][3],
+ SPGCONST Symmetry *symmetry,
+ const double symprec );
+#endif
diff --git a/src/kpoint.c b/src/kpoint.c
new file mode 100644
index 0000000..cb80b66
--- /dev/null
+++ b/src/kpoint.c
@@ -0,0 +1,1086 @@
+/* kpoint.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "mathfunc.h"
+#include "symmetry.h"
+#include "kpoint.h"
+
+#include "debug.h"
+
+/* #define GRID_ORDER_XYZ */
+/* The addressing order of mesh grid is defined as running left */
+/* element first. But when GRID_ORDER_XYZ is defined, it is changed to right */
+/* element first. */
+
+static PointSymmetry get_point_group_reciprocal(const MatINT * rotations,
+ const int is_time_reversal);
+static PointSymmetry
+get_point_group_reciprocal_with_q(SPGCONST PointSymmetry * pointgroup,
+ const double symprec,
+ const int num_q,
+ SPGCONST double qpoints[][3]);
+static int get_ir_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ SPGCONST PointSymmetry * point_symmetry,
+ const double symprec);
+static int get_ir_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ SPGCONST PointSymmetry * point_symmetry);
+static Triplets * get_ir_triplets(const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * rotations);
+static int get_ir_triplets_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ PointSymmetry * pointgroup);
+static int extract_ir_triplets_with_q(int triplets_with_q[][3],
+ int weight_with_q[],
+ const int fixed_grid_number,
+ SPGCONST int triplets[][3],
+ const int num_triplets,
+ const int mesh[3],
+ SPGCONST PointSymmetry * point_symmetry);
+static void get_grid_mapping_table(int **map_sym,
+ SPGCONST PointSymmetry * point_symmetry,
+ const int mesh[3],
+ const int is_shift[3]);
+static void address_to_grid(int grid_double[3],
+ const int address,
+ const int mesh[3],
+ const int is_shift[3]);
+static void get_grid_points(int grid_point[3],
+ const int grid[3],
+ const int mesh[3]);
+static void get_vector_modulo(int v[3],
+ const int m[3]);
+static int grid_to_address(const int grid[3],
+ const int mesh[3],
+ const int is_shift[3]);
+static void free_array2D_int(int **array,
+ const int num_row);
+static int ** allocate_array2d_int(const int num_row,
+ const int num_column);
+static Triplets * allocate_triplets(const int num_triplets, const int mesh[3]);
+
+
+
+
+int kpt_get_irreducible_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ const Symmetry * symmetry,
+ const int is_time_reversal,
+ const double symprec)
+{
+ int i;
+ PointSymmetry point_symmetry;
+ MatINT *rotations;
+
+ rotations = mat_alloc_MatINT(symmetry->size);
+ for (i = 0; i < symmetry->size; i++) {
+ mat_copy_matrix_i3(rotations->mat[i], symmetry->rot[i]);
+ }
+
+ point_symmetry = get_point_group_reciprocal(rotations,
+ is_time_reversal);
+ mat_free_MatINT(rotations);
+
+ return get_ir_kpoints(map, kpoints, num_kpoint, &point_symmetry, symprec);
+}
+
+/* grid_point (e.g. 4x4x4 mesh) */
+/* [[ 0 0 0] */
+/* [ 1 0 0] */
+/* [ 2 0 0] */
+/* [-1 0 0] */
+/* [ 0 1 0] */
+/* [ 1 1 0] */
+/* [ 2 1 0] */
+/* [-1 1 0] */
+/* .... ] */
+/* */
+/* Each value of 'map' correspnds to the index of grid_point. */
+int kpt_get_irreducible_reciprocal_mesh(int grid_points[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const Symmetry * symmetry)
+{
+ int i;
+ PointSymmetry point_symmetry;
+ MatINT *rotations;
+
+ rotations = mat_alloc_MatINT(symmetry->size);
+ for (i = 0; i < symmetry->size; i++) {
+ mat_copy_matrix_i3(rotations->mat[i], symmetry->rot[i]);
+ }
+
+ point_symmetry = get_point_group_reciprocal(rotations,
+ is_time_reversal);
+ mat_free_MatINT(rotations);
+
+ return get_ir_reciprocal_mesh(grid_points,
+ map,
+ mesh,
+ is_shift,
+ &point_symmetry);
+}
+
+void kpt_free_triplets(Triplets * t)
+{
+ free(t->triplets);
+ t->triplets = NULL;
+ free(t->weights);
+ t->weights = NULL;
+ free(t->mesh_points);
+ t->mesh_points = NULL;
+ free(t);
+ t = NULL;
+}
+
+int kpt_get_stabilized_reciprocal_mesh(int grid_points[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const MatINT * rotations,
+ const int num_q,
+ SPGCONST double qpoints[][3])
+{
+ PointSymmetry pointgroup, pointgroup_q;
+ double tolerance;
+
+ pointgroup = get_point_group_reciprocal(rotations,
+ is_time_reversal);
+
+ tolerance = 0.1 / (mesh[0] + mesh[1] + mesh[2]);
+ pointgroup_q = get_point_group_reciprocal_with_q(&pointgroup,
+ tolerance,
+ num_q,
+ qpoints);
+
+ return get_ir_reciprocal_mesh(grid_points,
+ map,
+ mesh,
+ is_shift,
+ &pointgroup_q);
+}
+
+Triplets * kpt_get_triplets_reciprocal_mesh(const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * rotations)
+{
+ return get_ir_triplets(mesh,
+ is_time_reversal,
+ rotations);
+}
+
+int kpt_get_ir_triplets_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * rotations)
+{
+ PointSymmetry pointgroup;
+
+ pointgroup = get_point_group_reciprocal(rotations,
+ is_time_reversal);
+ return get_ir_triplets_at_q(weights,
+ grid_points,
+ third_q,
+ grid_point,
+ mesh,
+ &pointgroup);
+}
+
+int kpt_extract_triplets_reciprocal_mesh_at_q(int triplets_with_q[][3],
+ int weight_with_q[],
+ const int fixed_grid_number,
+ const int num_triplets,
+ SPGCONST int triplets[][3],
+ const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * rotations)
+{
+ PointSymmetry point_group;
+
+ point_group = get_point_group_reciprocal(rotations,
+ is_time_reversal);
+
+ return extract_ir_triplets_with_q(triplets_with_q,
+ weight_with_q,
+ fixed_grid_number,
+ triplets,
+ num_triplets,
+ mesh,
+ &point_group);
+}
+
+/* qpoints are used to find stabilizers (operations). */
+/* num_q is the number of the qpoints. */
+static PointSymmetry get_point_group_reciprocal(const MatINT * rotations,
+ const int is_time_reversal)
+{
+ int i, j, num_pt = 0;
+ MatINT *rot_reciprocal;
+ PointSymmetry point_symmetry;
+ SPGCONST int inversion[3][3] = {
+ {-1, 0, 0 },
+ { 0,-1, 0 },
+ { 0, 0,-1 }
+ };
+
+ if (is_time_reversal) {
+ rot_reciprocal = mat_alloc_MatINT(rotations->size * 2);
+ } else {
+ rot_reciprocal = mat_alloc_MatINT(rotations->size);
+ }
+
+ for (i = 0; i < rotations->size; i++) {
+ mat_transpose_matrix_i3(rot_reciprocal->mat[i], rotations->mat[i]);
+
+ if (is_time_reversal) {
+ mat_multiply_matrix_i3(rot_reciprocal->mat[rotations->size+i],
+ inversion,
+ rot_reciprocal->mat[i]);
+ }
+ }
+
+
+ for (i = 0; i < rot_reciprocal->size; i++) {
+ for (j = 0; j < num_pt; j++) {
+ if (mat_check_identity_matrix_i3(point_symmetry.rot[j],
+ rot_reciprocal->mat[i])) {
+ goto escape;
+ }
+ }
+
+ mat_copy_matrix_i3(point_symmetry.rot[num_pt],
+ rot_reciprocal->mat[i]);
+ num_pt++;
+ escape:
+ ;
+ }
+
+ point_symmetry.size = num_pt;
+
+ mat_free_MatINT(rot_reciprocal);
+
+ return point_symmetry;
+}
+
+static PointSymmetry
+get_point_group_reciprocal_with_q(SPGCONST PointSymmetry * pointgroup,
+ const double symprec,
+ const int num_q,
+ SPGCONST double qpoints[][3])
+{
+ int i, j, k, l, is_all_ok=0, num_ptq = 0;
+ double q_rot[3], diff[3];
+ PointSymmetry pointgroup_q;
+
+ for (i = 0; i < pointgroup->size; i++) {
+ for (j = 0; j < num_q; j++) {
+ is_all_ok = 0;
+ mat_multiply_matrix_vector_id3(q_rot,
+ pointgroup->rot[i],
+ qpoints[j]);
+
+ for (k = 0; k < num_q; k++) {
+ for (l = 0; l < 3; l++) {
+ diff[l] = q_rot[l] - qpoints[k][l];
+ diff[l] -= mat_Nint(diff[l]);
+ }
+
+ if (mat_Dabs(diff[0]) < symprec &&
+ mat_Dabs(diff[1]) < symprec &&
+ mat_Dabs(diff[2]) < symprec) {
+ is_all_ok = 1;
+ break;
+ }
+ }
+
+ if (! is_all_ok) {
+ break;
+ }
+ }
+
+ if (is_all_ok) {
+ mat_copy_matrix_i3(pointgroup_q.rot[num_ptq], pointgroup->rot[i]);
+ num_ptq++;
+ }
+ }
+ pointgroup_q.size = num_ptq;
+
+ return pointgroup_q;
+}
+
+
+static int get_ir_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ SPGCONST PointSymmetry * point_symmetry,
+ const double symprec)
+{
+ int i, j, k, l, num_ir_kpoint = 0, is_found;
+ int *ir_map;
+ double kpt_rot[3], diff[3];
+
+ ir_map = (int*)malloc(num_kpoint*sizeof(int));
+
+ for (i = 0; i < num_kpoint; i++) {
+
+ map[i] = i;
+
+ is_found = 1;
+
+ for (j = 0; j < point_symmetry->size; j++) {
+ mat_multiply_matrix_vector_id3(kpt_rot, point_symmetry->rot[j], kpoints[i]);
+
+ for (k = 0; k < 3; k++) {
+ diff[k] = kpt_rot[k] - kpoints[i][k];
+ diff[k] = diff[k] - mat_Nint(diff[k]);
+ }
+
+ if (mat_Dabs(diff[0]) < symprec &&
+ mat_Dabs(diff[1]) < symprec &&
+ mat_Dabs(diff[2]) < symprec) {
+ continue;
+ }
+
+ for (k = 0; k < num_ir_kpoint; k++) {
+ mat_multiply_matrix_vector_id3(kpt_rot, point_symmetry->rot[j], kpoints[i]);
+
+ for (l = 0; l < 3; l++) {
+ diff[l] = kpt_rot[l] - kpoints[ir_map[k]][l];
+ diff[l] = diff[l] - mat_Nint(diff[l]);
+ }
+
+ if (mat_Dabs(diff[0]) < symprec &&
+ mat_Dabs(diff[1]) < symprec &&
+ mat_Dabs(diff[2]) < symprec) {
+ is_found = 0;
+ map[i] = ir_map[k];
+ break;
+ }
+ }
+
+ if (! is_found)
+ break;
+ }
+
+ if (is_found) {
+ ir_map[num_ir_kpoint] = i;
+ num_ir_kpoint++;
+ }
+ }
+
+ free(ir_map);
+ ir_map = NULL;
+
+ return num_ir_kpoint;
+}
+
+static int get_ir_reciprocal_mesh(int grid[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ SPGCONST PointSymmetry * point_symmetry)
+{
+ /* In the following loop, mesh is doubled. */
+ /* Even and odd mesh numbers correspond to */
+ /* is_shift[i] = 0 and 1, respectively. */
+ /* is_shift = [0,0,0] gives Gamma center mesh. */
+ /* grid: reducible grid points */
+ /* map: the mapping from each point to ir-point. */
+ int i, j, k, l, address, address_rot, num_ir = 0;
+ int grid_double[3], grid_rot[3], mesh_double[3];
+
+ for (i = 0; i < 3; i++) {
+ mesh_double[i] = mesh[i] * 2;
+ }
+
+ /* "-1" means the element is not touched yet. */
+ for (i = 0; i < mesh[0] * mesh[1] * mesh[2]; i++) {
+ map[i] = -1;
+ }
+
+#ifndef GRID_ORDER_XYZ
+ for (i = 0; i < mesh_double[2]; i++) {
+ if ((is_shift[2] && i % 2 == 0) ||
+ (is_shift[2] == 0 && i % 2 != 0))
+ continue;
+
+ for (j = 0; j < mesh_double[1]; j++) {
+ if ((is_shift[1] && j % 2 == 0) ||
+ (is_shift[1] == 0 && j % 2 != 0))
+ continue;
+
+ for (k = 0; k < mesh_double[0]; k++) {
+ if ((is_shift[0] && k % 2 == 0) ||
+ (is_shift[0] == 0 && k % 2 != 0))
+ continue;
+
+ grid_double[0] = k;
+ grid_double[1] = j;
+ grid_double[2] = i;
+#else
+ for (i = 0; i < mesh_double[0]; i++) {
+ if ((is_shift[0] && i % 2 == 0) ||
+ (is_shift[0] == 0 && i % 2 != 0))
+ continue;
+
+ for (j = 0; j < mesh_double[1]; j++) {
+ if ((is_shift[1] && j % 2 == 0) ||
+ (is_shift[1] == 0 && j % 2 != 0))
+ continue;
+
+ for (k = 0; k < mesh_double[2]; k++) {
+ if ((is_shift[2] && k % 2 == 0) ||
+ (is_shift[2] == 0 && k % 2 != 0))
+ continue;
+
+ grid_double[0] = i;
+ grid_double[1] = j;
+ grid_double[2] = k;
+#endif
+
+ address = grid_to_address(grid_double, mesh, is_shift);
+ get_grid_points(grid[address], grid_double, mesh);
+
+ for (l = 0; l < point_symmetry->size; l++) {
+
+ mat_multiply_matrix_vector_i3(grid_rot, point_symmetry->rot[l], grid_double);
+ get_vector_modulo(grid_rot, mesh_double);
+ address_rot = grid_to_address(grid_rot, mesh, is_shift);
+
+ if (address_rot > -1) { /* Invalid if even --> odd or odd --> even */
+ if (map[address_rot] > -1) {
+ map[address] = map[address_rot];
+ break;
+ }
+ }
+ }
+
+ /* Set itself to the map when equivalent point */
+ /* with smaller numbering could not be found. */
+ if (map[address] == -1) {
+ map[address] = address;
+ num_ir++;
+ }
+ }
+ }
+ }
+
+ return num_ir;
+}
+
+
+/* Unique q-point triplets that conserve the momentum, */
+/* q+q'+q''=G, are obtained. */
+/* */
+/* The first q-point is selected among the ir-q-points. */
+/* The second q-point is selected among the ir-q-points */
+/* constrained by the first q-point (stabilizer) */
+/* The third q-point is searched through the all grid */
+/* points and is checked if it satisfies q+q'+q''=G, */
+/* here q, q', and q'' can be exchanged one another. */
+static Triplets * get_ir_triplets(const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * rotations)
+{
+ int i, j, k, l, num_ir, num_grid, weight, weight_q, count, q_2;
+ int num_triplets, num_unique_q;
+ int mesh_double[3], address[3], is_shift[3];
+ int grid_double[3][3];
+ int (*grid)[3], (*grid_local)[3];
+ int *map, *map_q, *unique_q;
+ int **map_sym = NULL;
+ int **weight_counts;
+ double tolerance;
+ double stabilizer_q[1][3];
+ PointSymmetry point_symmetry, point_symmetry_q;
+ Triplets * tps;
+
+ const int index_exchange[6][3] = {{ 0, 1, 2 },
+ { 2, 0, 1 },
+ { 1, 2, 0 },
+ { 2, 1, 0 },
+ { 0, 2, 1 },
+ { 1, 0, 2 }};
+
+ tolerance = 0.1 / (mesh[0] + mesh[1] + mesh[2]);
+ num_grid = mesh[0] * mesh[1] * mesh[2];
+ map = (int*) malloc(num_grid * sizeof(int));
+ unique_q = (int*) malloc(num_grid * sizeof(int));
+ grid = (int (*)[3]) malloc(sizeof(int[3]) * num_grid);
+
+ point_symmetry = get_point_group_reciprocal(rotations,
+ is_time_reversal);
+
+ /* Only consider the gamma-point */
+ for (i = 0; i < 3; i++) {
+ is_shift[i] = 0;
+ }
+
+ num_ir = get_ir_reciprocal_mesh(grid,
+ map,
+ mesh,
+ is_shift,
+ &point_symmetry);
+
+ weight_counts = allocate_array2d_int(num_ir, num_grid);
+ for (i = 0; i < num_ir; i++) {
+ for (j = 0; j < num_grid; j++) {
+ weight_counts[i][j] = 0;
+ }
+ }
+
+ for (i = 0; i < 3; i++) {
+ mesh_double[i] = mesh[i] * 2;
+ }
+
+ /* Prepare triplet mapping table to enhance speed of query */
+ /* 'unique_q' numbering is prepared for saving memory space */
+ num_unique_q = 0;
+ for (i = 0; i < num_grid; i++) {
+ if (i == map[i]) {
+ unique_q[i] = num_unique_q;
+ num_unique_q++;
+ }
+ else {
+ unique_q[i] = unique_q[map[i]];
+ }
+ }
+
+ /* Prepare grid point mapping table */
+ map_sym = allocate_array2d_int(point_symmetry.size, num_grid);
+ get_grid_mapping_table(map_sym,
+ &point_symmetry,
+ mesh,
+ is_shift);
+
+ /* Search triplets without considersing combination */
+/* #pragma omp parallel for private(j, k, l, grid_double, point_symmetry_q, stabilizer_q, weight_q, grid_local, address, map_q, weight ) */
+ for (i = 0; i < num_grid; i++) {
+ if (! (i == map[i])) {
+ continue;
+ }
+
+ weight = 0;
+ for (j = 0; j < num_grid; j++) {
+ if (i == map[j]) {
+ weight++;
+ }
+ }
+
+ /* Search irreducible q-points (map_q) with a stabilizer */
+ address_to_grid(grid_double[0], i, mesh, is_shift); /* q */
+ for (j = 0; j < 3; j++) {
+ stabilizer_q[0][j] = (double)grid_double[0][j] / mesh_double[j];
+ }
+
+ point_symmetry_q = get_point_group_reciprocal_with_q(&point_symmetry,
+ tolerance,
+ 1,
+ stabilizer_q);
+
+ grid_local = (int (*)[3]) malloc(sizeof(int[3]) * num_grid);
+ map_q = (int*) malloc(num_grid * sizeof(int));
+ get_ir_reciprocal_mesh(grid_local,
+ map_q,
+ mesh,
+ is_shift,
+ &point_symmetry_q);
+ free(grid_local);
+ grid_local = NULL;
+
+ for (j = 0; j < num_grid; j++) {
+ if (! (j == map_q[j])) {
+ continue;
+ }
+
+ weight_q = 0;
+ for (k = 0; k < num_grid; k++) {
+ if (j == map_q[k]) {
+ weight_q++;
+ }
+ }
+
+ address_to_grid(grid_double[1], j, mesh, is_shift); /* q' */
+
+ for (k = 0; k < 3; k++) { /* q'' */
+ grid_double[2][k] = - grid_double[0][k] - grid_double[1][k];
+ }
+ get_vector_modulo(grid_double[2], mesh_double);
+ q_2 = grid_to_address(grid_double[2], mesh, is_shift);
+
+ /* Look for irreducible triplets exchanging three q-points */
+ /* and equivalent by symmetry rotations */
+ for (k = 0; k < point_symmetry.size; k++) {
+ /* Index exchange */
+ for (l = 0; l < 6; l++) {
+ /* Rotated grid point addresses with index exchange */
+ address[index_exchange[l][0]] = map_sym[k][i];
+ address[index_exchange[l][1]] = map_sym[k][j];
+ address[index_exchange[l][2]] = map_sym[k][q_2];
+
+ /* address[0] has to be one of ir-q-points. */
+ if (address[0] == map[address[0]]) {
+ /* Is the set of ddress[0] and address[1] already found? */
+ if (weight_counts[unique_q[address[0]]][address[1]]) {
+ weight_counts[unique_q[address[0]]][address[1]] +=
+ weight * weight_q;
+ goto escape;
+ }
+ }
+ }
+ }
+
+ /* Not found, then this is an irreducible triplet. */
+ weight_counts[unique_q[i]][j] = weight * weight_q;
+
+ escape:
+ ;
+ }
+
+ free(map_q);
+ map_q = NULL;
+
+ }
+
+ num_triplets = 0;
+ for (i = 0; i < num_grid; i++) {
+ if (! (i == map[i])) {
+ continue;
+ }
+ for (j = 0; j < num_grid; j++) {
+ if (weight_counts[unique_q[i]][j]) {
+ num_triplets++;
+ }
+ }
+ }
+
+ tps = allocate_triplets(num_triplets, mesh);
+ for (i = 0; i < num_grid; i++) {
+ for (j = 0; j < 3; j++) {
+ tps->mesh_points[i][j] = grid[i][j];
+ }
+ }
+
+ count = 0;
+ for (i = 0; i < num_grid; i++) {
+ if (! (i == map[i])) {
+ continue;
+ }
+ for (j = 0; j < num_grid; j++) {
+ if (weight_counts[unique_q[i]][j] ) {
+ tps->triplets[count][0] = i;
+ tps->triplets[count][1] = j;
+ address_to_grid(grid_double[0], i, mesh, is_shift); /* q */
+ address_to_grid(grid_double[1], j, mesh, is_shift); /* q' */
+ for (l = 0; l < 3; l++) { /* q'' */
+ grid_double[2][l] = - grid_double[0][l] - grid_double[1][l];
+ }
+ get_vector_modulo(grid_double[2], mesh_double);
+ tps->triplets[count][2] = grid_to_address(grid_double[2], mesh, is_shift);
+ tps->weights[count] = weight_counts[unique_q[i]][j];
+ count++;
+ }
+ }
+ }
+
+ free_array2D_int(map_sym, point_symmetry.size);
+ free_array2D_int(weight_counts, num_ir);
+ free(map);
+ map = NULL;
+ free(unique_q);
+ unique_q = NULL;
+ free(grid);
+ grid = NULL;
+
+ return tps;
+}
+
+ static int get_ir_triplets_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ PointSymmetry * pointgroup)
+{
+ int i, j, k, num_grid, weight_q, q_2, num_ir;
+ int mesh_double[3], address[3], is_shift[3];
+ int grid_double[3][3];
+ int *map_q;
+ double tolerance;
+ double stabilizer_q[1][3];
+ PointSymmetry pointgroup_q;
+
+ tolerance = 0.1 / (mesh[0] + mesh[1] + mesh[2]);
+
+ num_grid = mesh[0] * mesh[1] * mesh[2];
+
+ for (i = 0; i < 3; i++) {
+ /* Only consider the gamma-point */
+ is_shift[i] = 0;
+ mesh_double[i] = mesh[i] * 2;
+ }
+
+ /* Search irreducible q-points (map_q) with a stabilizer */
+ address_to_grid(grid_double[0], grid_point, mesh, is_shift); /* q */
+ for (i = 0; i < 3; i++) {
+ stabilizer_q[0][i] = (double)grid_double[0][i] / mesh_double[i];
+ }
+
+ pointgroup_q = get_point_group_reciprocal_with_q(pointgroup,
+ tolerance,
+ 1,
+ stabilizer_q);
+ map_q = (int*) malloc(sizeof(int) * num_grid);
+ get_ir_reciprocal_mesh(grid_points,
+ map_q,
+ mesh,
+ is_shift,
+ &pointgroup_q);
+
+ for (i = 0; i < num_grid; i++) {
+ weights[i] = 0;
+ third_q[i] = -1;
+ }
+ num_ir = 0;
+
+ for (i = 0; i < num_grid; i++) {
+ if (i != map_q[i]) { /* pass only ir-q'-point */
+ continue;
+ }
+
+ weight_q = 0;
+ for (j = 0; j < num_grid; j++) {
+ if (i == map_q[j]) {
+ weight_q++;
+ }
+ }
+
+ address_to_grid(grid_double[1], i, mesh, is_shift); /* q' */
+ for (j = 0; j < 3; j++) { /* q'' */
+ grid_double[2][j] = - grid_double[0][j] - grid_double[1][j];
+ }
+ get_vector_modulo(grid_double[2], mesh_double);
+ q_2 = grid_to_address(grid_double[2], mesh, is_shift);
+ third_q[i] = q_2;
+
+ if (weights[map_q[q_2]]) {
+ weights[map_q[q_2]] += weight_q;
+ } else {
+ weights[i] = weight_q;
+ num_ir++;
+ }
+ }
+
+ free(map_q);
+ map_q = NULL;
+
+ return num_ir;
+}
+
+static int extract_ir_triplets_with_q(int triplets_with_q[][3],
+ int weight_with_q[],
+ const int fixed_grid_number,
+ SPGCONST int triplets[][3],
+ const int num_triplets,
+ const int mesh[3],
+ SPGCONST PointSymmetry *point_symmetry)
+{
+ int i, j, k, sym_num, rest_index, num_triplets_with_q;
+ int address0, address1, address1_orig, found;
+ int is_shift[3];
+ int num_grid;
+ int **map_sym;
+
+ num_grid = mesh[0] * mesh[1] * mesh[2];
+ map_sym = allocate_array2d_int(point_symmetry->size, num_grid);
+
+ /* Only consider the gamma-point */
+ for (i = 0; i < 3; i++) {
+ is_shift[i] = 0;
+ }
+
+ /* Prepare mapping tables */
+ get_grid_mapping_table(map_sym,
+ point_symmetry,
+ mesh,
+ is_shift);
+
+ num_triplets_with_q = 0;
+
+ for (i = 0; i < num_triplets; i++) {
+ sym_num = -1;
+ for (j = 0; j < point_symmetry->size; j++) {
+ address0 = map_sym[j][fixed_grid_number];
+ if (triplets[i][0] == address0 ||
+ triplets[i][1] == address0 ||
+ triplets[i][2] == address0) {
+ for (k = 0; k < num_grid; k++) {
+ address1 = map_sym[j][k];
+ /* Matching indices 0 and 1 */
+ if ((triplets[i][0] == address0 && triplets[i][1] == address1) ||
+ (triplets[i][1] == address0 && triplets[i][0] == address1)) {
+ sym_num = j;
+ rest_index = 2;
+ address1_orig = k;
+ break;
+ }
+ /* Matching indices 1 and 2 */
+ if ((triplets[i][1] == address0 && triplets[i][2] == address1) ||
+ (triplets[i][2] == address0 && triplets[i][1] == address1)) {
+ sym_num = j;
+ rest_index = 0;
+ address1_orig = k;
+ break;
+ }
+ /* Matching indices 2 and 0 */
+ if ((triplets[i][2] == address0 && triplets[i][0] == address1) ||
+ (triplets[i][0] == address0 && triplets[i][2] == address1)) {
+ sym_num = j;
+ rest_index = 1;
+ address1_orig = k;
+ break;
+ }
+ }
+ if (sym_num > -1) {
+ break;
+ }
+ }
+ }
+
+ /* Found? */
+ if (sym_num > -1) {
+ for (j = 0; j < num_grid; j++) {
+ if (map_sym[sym_num][j] == triplets[i][rest_index]) {
+ triplets_with_q[num_triplets_with_q][0] = fixed_grid_number;
+ if (j > address1_orig) {
+ triplets_with_q[num_triplets_with_q][1] = address1_orig;
+ triplets_with_q[num_triplets_with_q][2] = j;
+ } else {
+ triplets_with_q[num_triplets_with_q][2] = address1_orig;
+ triplets_with_q[num_triplets_with_q][1] = j;
+ }
+ num_triplets_with_q++;
+ break;
+ }
+ }
+ }
+ }
+
+ for (i = 0; i < num_triplets_with_q; i++) {
+ weight_with_q[i] = 0;
+ }
+
+ for (i = 0; i < num_grid; i++) {
+ found = 0;
+ for (j = 0; j < num_triplets_with_q; j++) {
+ for (k = 0; k < point_symmetry->size; k++) {
+
+ if (map_sym[k][fixed_grid_number] == triplets_with_q[j][0]) {
+ if (map_sym[k][i] == triplets_with_q[j][1] ||
+ map_sym[k][i] == triplets_with_q[j][2]) {
+ weight_with_q[j]++;
+ found = 1;
+ break;
+ }
+ }
+ if (map_sym[k][fixed_grid_number] == triplets_with_q[j][1]) {
+ if (map_sym[k][i] == triplets_with_q[j][2] ||
+ map_sym[k][i] == triplets_with_q[j][0]) {
+ weight_with_q[j]++;
+ found = 1;
+ break;
+ }
+ }
+ if (map_sym[k][fixed_grid_number] == triplets_with_q[j][2]) {
+ if (map_sym[k][i] == triplets_with_q[j][0] ||
+ map_sym[k][i] == triplets_with_q[j][1]) {
+ weight_with_q[j]++;
+ found = 1;
+ break;
+ }
+ }
+ }
+ if (found) {
+ break;
+ }
+ }
+ if (! found) {
+ warning_print("spglib: Unexpected behavior in extract_ir_triplets_with_q ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ num_triplets_with_q = 0;
+ break;
+ }
+ }
+
+ free_array2D_int(map_sym, point_symmetry->size);
+ return num_triplets_with_q;
+}
+
+static void get_grid_mapping_table(int **map_sym,
+ SPGCONST PointSymmetry *point_symmetry,
+ const int mesh[3],
+ const int is_shift[3])
+{
+ int i, j;
+ int grid_rot[3], grid_double[3], mesh_double[3];
+
+ for (i = 0; i < 3; i++) {
+ mesh_double[i] = mesh[i] * 2;
+ }
+
+ for (i = 0; i < point_symmetry->size; i++) {
+ for (j = 0; j < mesh[0]*mesh[1]*mesh[2]; j++) {
+ address_to_grid(grid_double, j, mesh, is_shift);
+ mat_multiply_matrix_vector_i3(grid_rot,
+ point_symmetry->rot[i],
+ grid_double);
+ get_vector_modulo(grid_rot, mesh_double);
+ map_sym[i][j] = grid_to_address(grid_rot, mesh, is_shift);
+ }
+ }
+}
+
+
+static int grid_to_address(const int grid_double[3],
+ const int mesh[3],
+ const int is_shift[3])
+{
+ int i, grid[3];
+
+ for (i = 0; i < 3; i++) {
+ if (grid_double[i] % 2 == 0 && (! is_shift[i]) ) {
+ grid[i] = grid_double[i] / 2;
+ } else {
+ if (grid_double[i] % 2 != 0 && is_shift[i]) {
+ grid[i] = (grid_double[i] - 1) / 2;
+ } else {
+ return -1;
+ }
+ }
+ }
+
+#ifndef GRID_ORDER_XYZ
+ return grid[2] * mesh[0] * mesh[1] + grid[1] * mesh[0] + grid[0];
+#else
+ return grid[0] * mesh[1] * mesh[2] + grid[1] * mesh[2] + grid[2];
+#endif
+}
+
+static void address_to_grid(int grid_double[3],
+ const int address,
+ const int mesh[3],
+ const int is_shift[3])
+{
+ int i;
+ int grid[3];
+
+#ifndef GRID_ORDER_XYZ
+ grid[2] = address / (mesh[0] * mesh[1]);
+ grid[1] = (address - grid[2] * mesh[0] * mesh[1]) / mesh[0];
+ grid[0] = address % mesh[0];
+#else
+ grid[0] = address / (mesh[1] * mesh[2]);
+ grid[1] = (address - grid[0] * mesh[1] * mesh[2]) / mesh[2];
+ grid[2] = address % mesh[2];
+#endif
+
+ for (i = 0; i < 3; i++) {
+ grid_double[i] = grid[i] * 2 + is_shift[i];
+ }
+}
+
+static void get_grid_points(int grid[3],
+ const int grid_double[3],
+ const int mesh[3])
+{
+ int i;
+
+ for (i = 0; i < 3; i++) {
+ if (grid_double[i] % 2 == 0) {
+ grid[i] = grid_double[i] / 2;
+ } else {
+ grid[i] = (grid_double[i] - 1) / 2;
+ }
+
+#ifndef GRID_BOUNDARY_AS_NEGATIVE
+ grid[i] = grid[i] - mesh[i] * (grid[i] > mesh[i] / 2);
+#else
+ grid[i] = grid[i] - mesh[i] * (grid[i] >= mesh[i] / 2);
+#endif
+ }
+}
+
+static void get_vector_modulo(int v[3],
+ const int m[3])
+{
+ int i;
+
+ for (i = 0; i < 3; i++) {
+ v[i] = v[i] % m[i];
+
+ if (v[i] < 0)
+ v[i] += m[i];
+ }
+}
+
+static void free_array2D_int(int **array,
+ const int num_row)
+{
+ int i;
+ for (i = 0; i < num_row; i++) {
+ free(array[i]);
+ array[i] = NULL;
+ }
+ free(array);
+ array = NULL;
+}
+
+static int ** allocate_array2d_int(const int num_row,
+ const int num_column)
+{
+ int i;
+ int **array;
+
+ array = (int**) malloc(num_row * sizeof(int*));
+ for (i = 0; i < num_row; i++) {
+ array[i] = (int*) malloc(num_column * sizeof(int));
+ }
+ return array;
+}
+
+static Triplets * allocate_triplets(const int num_triplets, const int mesh[3])
+{
+ int i, num_grid;
+ Triplets * tps;
+
+ num_grid = mesh[0] * mesh[1] * mesh[2];
+ tps = (Triplets*) malloc(sizeof(Triplets));
+ tps->size = num_triplets;
+ tps->triplets = (int (*)[3]) malloc(sizeof(int[3]) * num_triplets);
+ tps->weights = (int*) malloc(sizeof(int) * num_triplets);
+ tps->mesh_points = (int (*)[3]) malloc(sizeof(int[3]) * num_grid);
+ for (i = 0; i < 3; i++) {
+ tps->mesh[i] = mesh[i];
+ }
+
+ return tps;
+}
+
+
diff --git a/src/kpoint.h b/src/kpoint.h
new file mode 100644
index 0000000..9b81c42
--- /dev/null
+++ b/src/kpoint.h
@@ -0,0 +1,57 @@
+/* kpoints.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __kpoints_H__
+#define __kpoints_H__
+
+#include "symmetry.h"
+#include "mathfunc.h"
+
+typedef struct {
+ int size;
+ int (*triplets)[3];
+ int *weights;
+ int mesh[3];
+ int (*mesh_points)[3];
+} Triplets;
+
+int kpt_get_irreducible_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ const Symmetry * symmetry,
+ const int is_time_reversal,
+ const double symprec);
+int kpt_get_irreducible_reciprocal_mesh(int grid_points[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const Symmetry * symmetry);
+int kpt_get_stabilized_reciprocal_mesh(int grid_points[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const MatINT * pointgroup_real,
+ const int num_q,
+ SPGCONST double qpoints[][3]);
+Triplets * kpt_get_triplets_reciprocal_mesh(const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * pointgroup_real);
+void kpt_free_triplets(Triplets * t);
+int kpt_get_ir_triplets_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * rotations);
+int kpt_extract_triplets_reciprocal_mesh_at_q(int triplets_at_q[][3],
+ int weight_at_q[],
+ const int fixed_grid_number,
+ const int num_triplets,
+ SPGCONST int triplets[][3],
+ const int mesh[3],
+ const int is_time_reversal,
+ const MatINT * pointgroup_real);
+#endif
diff --git a/src/lattice.c b/src/lattice.c
new file mode 100644
index 0000000..57ea7c5
--- /dev/null
+++ b/src/lattice.c
@@ -0,0 +1,345 @@
+/* lattice.c */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "lattice.h"
+#include "mathfunc.h"
+#include "debug.h"
+
+#define INT_PREC 0.1
+
+static double identity[3][3] = {{ 1, 0, 0 },
+ { 0, 1, 0 },
+ { 0, 0, 1 }};
+static double monocli_i2c[3][3] = {{ 1, 0, 0 },
+ { 0, 1, 0 },
+ { 1, 0,-1 }};
+static double monocli_a2c[3][3] = {{ 0, 0, 1 },
+ { 0,-1, 0 },
+ { 1, 0, 0 }};
+#ifdef DEBUG
+static double tetra_f2i_c2p[3][3] = {{ 0.5,-0.5, 0.0 },
+ { 0.5, 0.5, 0.0 },
+ { 0.0, 0.0, 1.0 }};
+static double hexa_h2p[3][3] = {{ 2./3,-1./3, 0.0 },
+ { 1./3, 1./3, 0.0 },
+ { 0.0, 0.0, 1.0 }};
+#endif
+static double rhombo_obverse[3][3] = {{ 2./3,-1./3,-1./3 },
+ { 1./3, 1./3,-2./3 },
+ { 1./3, 1./3, 1./3 }};
+static double rhomb_reverse[3][3] = {{ 1./3,-2./3, 1./3 },
+ { 2./3,-1./3,-1./3 },
+ { 1./3, 1./3, 1./3 }};
+static double a2c[3][3] = {{ 0, 0, 1 },
+ { 1, 0, 0 },
+ { 0, 1, 0 }};
+static double b2c[3][3] = {{ 0, 1, 0 },
+ { 0, 0, 1 },
+ { 1, 0, 0 }};
+
+static Centering get_centering(double correction_mat[3][3],
+ SPGCONST int transform_mat[3][3],
+ const Laue laue);
+static int get_Delaunay_reduction(double red_lattice[3][3],
+ SPGCONST double lattice[3][3],
+ SPGCONST double symprec);
+static Centering get_base_center(SPGCONST int transform_mat[3][3]);
+static int get_Delaunay_reduction_basis(double basis[4][3],
+ const double symprec);
+static void get_Delaunay_shortest_vectors(double basis[4][3],
+ const double symprec);
+static void get_exteneded_basis(double basis[4][3],
+ SPGCONST double lattice[3][3]);
+
+int lat_smallest_lattice_vector(double min_lattice[3][3],
+ SPGCONST double lattice[3][3],
+ const double symprec)
+{
+ debug_print("lat_smallest_lattice_vector:\n");
+ return get_Delaunay_reduction(min_lattice, lattice, symprec);
+}
+
+Centering lat_get_centering(double correction_mat[3][3],
+ SPGCONST int transform_mat[3][3],
+ const Laue laue)
+{
+ return get_centering(correction_mat,
+ transform_mat,
+ laue);
+}
+
+static Centering get_centering(double correction_mat[3][3],
+ SPGCONST int transform_mat[3][3],
+ const Laue laue)
+{
+ int det;
+ double trans_corr_mat[3][3];
+ Centering centering;
+
+ mat_copy_matrix_d3(correction_mat, identity);
+ det = abs(mat_get_determinant_i3(transform_mat));
+ debug_print("laue class: %d\n", laue);
+ debug_print("multiplicity: %d\n", det);
+
+ if (det == 1) { centering = NO_CENTER; }
+ if (det == 2) { centering = get_base_center(transform_mat);
+ if (centering == A_FACE) {
+ if (laue == LAUE2M) {
+ debug_print("Monocli A to C\n");
+ mat_copy_matrix_d3(correction_mat, monocli_a2c);
+ } else {
+ mat_copy_matrix_d3(correction_mat, a2c);
+ }
+ centering = C_FACE;
+ }
+ if (centering == B_FACE) {
+ mat_copy_matrix_d3(correction_mat, b2c);
+ centering = C_FACE;
+ }
+ if (laue == LAUE2M && centering == BODY) {
+ debug_print("Monocli I to C\n");
+ mat_copy_matrix_d3(correction_mat, monocli_i2c);
+ centering = C_FACE;
+ }
+ }
+ if (det == 3) {
+ centering = NO_CENTER;
+ mat_multiply_matrix_id3(trans_corr_mat,
+ transform_mat, rhombo_obverse);
+ if (mat_is_int_matrix(trans_corr_mat, INT_PREC)) {
+ mat_copy_matrix_d3(correction_mat, rhombo_obverse);
+ debug_print("R-center observe setting\n");
+ debug_print_matrix_d3(trans_corr_mat);
+ }
+ mat_multiply_matrix_id3(trans_corr_mat,
+ transform_mat, rhomb_reverse);
+ if (mat_is_int_matrix(trans_corr_mat, INT_PREC)) {
+ mat_copy_matrix_d3(correction_mat, rhomb_reverse);
+ debug_print("R-center reverse setting\n");
+ debug_print_matrix_d3(trans_corr_mat);
+ }
+ }
+ if (det == 4) { centering = FACE; }
+
+ return centering;
+}
+
+static Centering get_base_center(SPGCONST int transform_mat[3][3])
+{
+ int i;
+ Centering centering = NO_CENTER;
+
+ debug_print("lat_get_base_center\n");
+
+ /* C center */
+ for (i = 0; i < 3; i++) {
+ if (transform_mat[i][0] == 0 &&
+ transform_mat[i][1] == 0 &&
+ abs(transform_mat[i][2]) == 1) {
+ centering = C_FACE;
+ goto end;
+ }
+ }
+
+ /* A center */
+ for (i = 0; i < 3; i++) {
+ if (abs(transform_mat[i][0]) == 1 &&
+ transform_mat[i][1] == 0 &&
+ transform_mat[i][2] == 0) {
+ centering = A_FACE;
+ goto end;
+ }
+ }
+
+ /* B center */
+ for (i = 0; i < 3; i++) {
+ if (transform_mat[i][0] == 0 &&
+ abs(transform_mat[i][1]) == 1 &&
+ transform_mat[i][2] == 0) {
+ centering = B_FACE;
+ goto end;
+ }
+ }
+
+ /* body center */
+ if (abs(transform_mat[0][0]) +
+ abs(transform_mat[0][1]) +
+ abs(transform_mat[0][2]) == 2) {
+ centering = BODY;
+ goto end;
+ }
+
+ /* This should not happen. */
+ warning_print("spglib: No centring was found (line %d, %s).\n", __LINE__, __FILE__);
+ return NO_CENTER;
+
+ end:
+ debug_print("centering: %d\n", centering);
+ return centering;
+}
+
+/* Delaunay reduction */
+/* Reference can be found in International table A. */
+static int get_Delaunay_reduction(double red_lattice[3][3],
+ SPGCONST double lattice[3][3],
+ const double symprec)
+{
+ int i, j;
+ double volume, sum, red_sum;
+ double basis[4][3];
+
+ get_exteneded_basis(basis, lattice);
+
+ sum = 0;
+ for (i = 0; i < 4; i++) {
+ for (j = 0; j < 3; j++) {
+ sum += basis[i][j] * basis[i][j];
+ }
+ }
+
+ while (1) {
+ if (get_Delaunay_reduction_basis(basis, symprec)) {
+ break;
+ }
+ }
+
+ get_Delaunay_shortest_vectors(basis, symprec);
+
+ red_sum = 0;
+ for (i = 0; i < 4; i++) {
+ for (j = 0; j < 3; j++) {
+ red_sum += basis[i][j] * basis[i][j];
+ }
+ }
+
+ if (sum - red_sum > symprec * symprec) {
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ red_lattice[i][j] = basis[j][i];
+ }
+ }
+ } else {
+ mat_copy_matrix_d3(red_lattice, lattice);
+ }
+
+ volume = mat_get_determinant_d3(red_lattice);
+ if (mat_Dabs(volume) < symprec) {
+ warning_print("spglib: Minimum lattice has no volume (line %d, %s).\n", __LINE__, __FILE__);
+ goto err;
+ }
+
+ if (volume < 0) {
+ /* Flip axes */
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ red_lattice[i][j] = -red_lattice[i][j];
+ }
+ }
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+static void get_Delaunay_shortest_vectors(double basis[4][3],
+ const double symprec)
+{
+ int i, j;
+ double tmpmat[3][3], b[7][3], tmpvec[3];
+
+ /* Search in the set {b1, b2, b3, b4, b1+b2, b2+b3, b3+b1} */
+ for (i = 0; i < 4; i++) {
+ for (j = 0; j < 3; j++) {
+ b[i][j] = basis[i][j];
+ }
+ }
+
+ for (i = 0; i < 3; i++) {
+ b[4][i] = basis[0][i] + basis[1][i];
+ }
+ for (i = 0; i < 3; i++) {
+ b[5][i] = basis[1][i] + basis[2][i];
+ }
+ for (i = 0; i < 3; i++) {
+ b[6][i] = basis[2][i] + basis[0][i];
+ }
+
+ /* Bubble sort */
+ for (i = 0; i < 6; i++) {
+ for (j = 0; j < 6; j++) {
+ if (mat_norm_squared_d3(b[j]) > mat_norm_squared_d3(b[j+1])) {
+ mat_copy_vector_d3(tmpvec, b[j]);
+ mat_copy_vector_d3(b[j], b[j+1]);
+ mat_copy_vector_d3(b[j+1], tmpvec);
+ }
+ }
+ }
+
+ for (i = 2; i < 7; i++) {
+ for (j = 0; j < 3; j++) {
+ tmpmat[j][0] = b[0][j];
+ tmpmat[j][1] = b[1][j];
+ tmpmat[j][2] = b[i][j];
+ }
+ if (mat_Dabs(mat_get_determinant_d3(tmpmat)) > symprec) {
+ for (j = 0; j < 3; j++) {
+ basis[0][j] = b[0][j];
+ basis[1][j] = b[1][j];
+ basis[2][j] = b[i][j];
+ }
+ break;
+ }
+ }
+}
+
+static int get_Delaunay_reduction_basis(double basis[4][3],
+ const double symprec)
+{
+ int i, j, k, l;
+ double dot_product;
+
+ for (i = 0; i < 4; i++) {
+ for (j = i+1; j < 4; j++) {
+ dot_product = 0.0;
+ for (k = 0; k < 3; k++) {
+ dot_product += basis[i][k] * basis[j][k];
+ }
+ if (dot_product > symprec) {
+ for (k = 0; k < 4; k++) {
+ if (! (k == i || k == j)) {
+ for (l = 0; l < 3; l++) {
+ basis[k][l] += basis[i][l];
+ }
+ }
+ }
+ for (k = 0; k < 3; k++) {
+ basis[i][k] = -basis[i][k];
+ }
+ return 0;
+ }
+ }
+ }
+
+ return 1;
+}
+
+static void get_exteneded_basis(double basis[4][3],
+ SPGCONST double lattice[3][3])
+{
+ int i, j;
+
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ basis[i][j] = lattice[j][i];
+ }
+ }
+
+ for (i = 0; i < 3; i++) {
+ basis[3][i] = -lattice[i][0] -lattice[i][1] -lattice[i][2];
+ }
+}
+
diff --git a/src/lattice.h b/src/lattice.h
new file mode 100644
index 0000000..2649a7d
--- /dev/null
+++ b/src/lattice.h
@@ -0,0 +1,41 @@
+/* lattice.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __lattice_H__
+#define __lattice_H__
+
+#include "mathfunc.h"
+
+typedef enum {
+ NO_CENTER,
+ BODY,
+ FACE,
+ A_FACE,
+ B_FACE,
+ C_FACE,
+ BASE,
+ R_CENTER,
+} Centering;
+
+typedef enum {
+ LAUE1,
+ LAUE2M,
+ LAUEMMM,
+ LAUE4M,
+ LAUE4MMM,
+ LAUE3,
+ LAUE3M,
+ LAUE6M,
+ LAUE6MMM,
+ LAUEM3,
+ LAUEM3M,
+} Laue;
+
+int lat_smallest_lattice_vector(double lattice_new[3][3],
+ SPGCONST double lattice[3][3],
+ const double symprec);
+Centering lat_get_centering(double correction_mat[3][3],
+ SPGCONST int transform_mat[3][3],
+ const Laue laue);
+
+#endif
diff --git a/src/mathfunc.c b/src/mathfunc.c
new file mode 100644
index 0000000..64ea747
--- /dev/null
+++ b/src/mathfunc.c
@@ -0,0 +1,449 @@
+/* mathfunc.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "mathfunc.h"
+
+#include "debug.h"
+
+double mat_get_determinant_d3(SPGCONST double a[3][3])
+{
+ return a[0][0] * (a[1][1] * a[2][2] - a[1][2] * a[2][1])
+ + a[0][1] * (a[1][2] * a[2][0] - a[1][0] * a[2][2])
+ + a[0][2] * (a[1][0] * a[2][1] - a[1][1] * a[2][0]);
+}
+
+int mat_get_determinant_i3(SPGCONST int a[3][3])
+{
+ return a[0][0] * (a[1][1] * a[2][2] - a[1][2] * a[2][1])
+ + a[0][1] * (a[1][2] * a[2][0] - a[1][0] * a[2][2])
+ + a[0][2] * (a[1][0] * a[2][1] - a[1][1] * a[2][0]);
+}
+
+int mat_get_trace_i3( SPGCONST int a[3][3] )
+{
+ return a[0][0] + a[1][1] + a[2][2];
+}
+
+void mat_copy_matrix_d3(double a[3][3], SPGCONST double b[3][3])
+{
+ a[0][0] = b[0][0];
+ a[0][1] = b[0][1];
+ a[0][2] = b[0][2];
+ a[1][0] = b[1][0];
+ a[1][1] = b[1][1];
+ a[1][2] = b[1][2];
+ a[2][0] = b[2][0];
+ a[2][1] = b[2][1];
+ a[2][2] = b[2][2];
+}
+
+void mat_copy_matrix_i3(int a[3][3], SPGCONST int b[3][3])
+{
+ a[0][0] = b[0][0];
+ a[0][1] = b[0][1];
+ a[0][2] = b[0][2];
+ a[1][0] = b[1][0];
+ a[1][1] = b[1][1];
+ a[1][2] = b[1][2];
+ a[2][0] = b[2][0];
+ a[2][1] = b[2][1];
+ a[2][2] = b[2][2];
+}
+
+void mat_copy_vector_d3(double a[3], const double b[3])
+{
+ a[0] = b[0];
+ a[1] = b[1];
+ a[2] = b[2];
+}
+
+void mat_copy_vector_i3(int a[3], const int b[3])
+{
+ a[0] = b[0];
+ a[1] = b[1];
+ a[2] = b[2];
+}
+
+int mat_check_identity_matrix_i3(SPGCONST int a[3][3],
+ SPGCONST int b[3][3])
+{
+ if ( a[0][0] - b[0][0] ||
+ a[0][1] - b[0][1] ||
+ a[0][2] - b[0][2] ||
+ a[1][0] - b[1][0] ||
+ a[1][1] - b[1][1] ||
+ a[1][2] - b[1][2] ||
+ a[2][0] - b[2][0] ||
+ a[2][1] - b[2][1] ||
+ a[2][2] - b[2][2]) {
+ return 0;
+ }
+ else {
+ return 1;
+ }
+}
+
+int mat_check_identity_matrix_d3( SPGCONST double a[3][3],
+ SPGCONST double b[3][3],
+ const double symprec )
+{
+ if ( mat_Dabs( a[0][0] - b[0][0] ) > symprec ||
+ mat_Dabs( a[0][1] - b[0][1] ) > symprec ||
+ mat_Dabs( a[0][2] - b[0][2] ) > symprec ||
+ mat_Dabs( a[1][0] - b[1][0] ) > symprec ||
+ mat_Dabs( a[1][1] - b[1][1] ) > symprec ||
+ mat_Dabs( a[1][2] - b[1][2] ) > symprec ||
+ mat_Dabs( a[2][0] - b[2][0] ) > symprec ||
+ mat_Dabs( a[2][1] - b[2][1] ) > symprec ||
+ mat_Dabs( a[2][2] - b[2][2] ) > symprec ) {
+ return 0;
+ }
+ else {
+ return 1;
+ }
+}
+
+int mat_check_identity_matrix_id3( SPGCONST int a[3][3],
+ SPGCONST double b[3][3],
+ const double symprec )
+{
+ if ( mat_Dabs( a[0][0] - b[0][0] ) > symprec ||
+ mat_Dabs( a[0][1] - b[0][1] ) > symprec ||
+ mat_Dabs( a[0][2] - b[0][2] ) > symprec ||
+ mat_Dabs( a[1][0] - b[1][0] ) > symprec ||
+ mat_Dabs( a[1][1] - b[1][1] ) > symprec ||
+ mat_Dabs( a[1][2] - b[1][2] ) > symprec ||
+ mat_Dabs( a[2][0] - b[2][0] ) > symprec ||
+ mat_Dabs( a[2][1] - b[2][1] ) > symprec ||
+ mat_Dabs( a[2][2] - b[2][2] ) > symprec ) {
+ return 0;
+ }
+ else {
+ return 1;
+ }
+}
+
+/* m=axb */
+void mat_multiply_matrix_d3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST double b[3][3])
+{
+ int i, j; /* a_ij */
+ double c[3][3];
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ c[i][j] =
+ a[i][0] * b[0][j] + a[i][1] * b[1][j] + a[i][2] * b[2][j];
+ }
+ }
+ mat_copy_matrix_d3(m, c);
+}
+
+void mat_multiply_matrix_i3(int m[3][3],
+ SPGCONST int a[3][3],
+ SPGCONST int b[3][3])
+{
+ int i, j; /* a_ij */
+ int c[3][3];
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ c[i][j] =
+ a[i][0] * b[0][j] + a[i][1] * b[1][j] + a[i][2] * b[2][j];
+ }
+ }
+ mat_copy_matrix_i3(m, c);
+}
+
+void mat_multiply_matrix_di3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST int b[3][3])
+{
+ int i, j; /* a_ij */
+ double c[3][3];
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ c[i][j] =
+ a[i][0] * b[0][j] + a[i][1] * b[1][j] + a[i][2] * b[2][j];
+ }
+ }
+ mat_copy_matrix_d3(m, c);
+}
+
+void mat_multiply_matrix_id3( double m[3][3],
+ SPGCONST int a[3][3],
+ SPGCONST double b[3][3])
+{
+ int i, j; /* a_ij */
+ double c[3][3];
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ c[i][j] =
+ a[i][0] * b[0][j] + a[i][1] * b[1][j] + a[i][2] * b[2][j];
+ }
+ }
+ mat_copy_matrix_d3(m, c);
+}
+
+void mat_multiply_matrix_vector_i3(int v[3],
+ SPGCONST int a[3][3],
+ const int b[3])
+{
+ int i;
+ int c[3];
+ for (i = 0; i < 3; i++)
+ c[i] = a[i][0] * b[0] + a[i][1] * b[1] + a[i][2] * b[2];
+ for (i = 0; i < 3; i++)
+ v[i] = c[i];
+}
+
+void mat_multiply_matrix_vector_d3(double v[3],
+ SPGCONST double a[3][3],
+ const double b[3])
+{
+ int i;
+ double c[3];
+ for (i = 0; i < 3; i++)
+ c[i] = a[i][0] * b[0] + a[i][1] * b[1] + a[i][2] * b[2];
+ for (i = 0; i < 3; i++)
+ v[i] = c[i];
+}
+
+void mat_multiply_matrix_vector_id3(double v[3],
+ SPGCONST int a[3][3],
+ const double b[3])
+{
+ int i;
+ double c[3];
+ for (i = 0; i < 3; i++)
+ c[i] = a[i][0] * b[0] + a[i][1] * b[1] + a[i][2] * b[2];
+ for (i = 0; i < 3; i++)
+ v[i] = c[i];
+}
+
+void mat_add_matrix_i3( int m[3][3],
+ SPGCONST int a[3][3],
+ SPGCONST int b[3][3] )
+{
+ int i, j;
+ for ( i = 0; i < 3; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ m[i][j] = a[i][j] + b[i][j];
+ }
+ }
+}
+
+
+void mat_cast_matrix_3i_to_3d(double m[3][3], SPGCONST int a[3][3])
+{
+ m[0][0] = a[0][0];
+ m[0][1] = a[0][1];
+ m[0][2] = a[0][2];
+ m[1][0] = a[1][0];
+ m[1][1] = a[1][1];
+ m[1][2] = a[1][2];
+ m[2][0] = a[2][0];
+ m[2][1] = a[2][1];
+ m[2][2] = a[2][2];
+}
+
+void mat_cast_matrix_3d_to_3i(int m[3][3], SPGCONST double a[3][3])
+{
+ m[0][0] = mat_Nint(a[0][0]);
+ m[0][1] = mat_Nint(a[0][1]);
+ m[0][2] = mat_Nint(a[0][2]);
+ m[1][0] = mat_Nint(a[1][0]);
+ m[1][1] = mat_Nint(a[1][1]);
+ m[1][2] = mat_Nint(a[1][2]);
+ m[2][0] = mat_Nint(a[2][0]);
+ m[2][1] = mat_Nint(a[2][1]);
+ m[2][2] = mat_Nint(a[2][2]);
+}
+
+/* m^-1 */
+/* ruby code for auto generating */
+/* 3.times {|i| 3.times {|j| */
+/* puts "m[#{j}][#{i}]=(a[#{(i+1)%3}][#{(j+1)%3}]*a[#{(i+2)%3}][#{(j+2)%3}] */
+/* -a[#{(i+1)%3}][#{(j+2)%3}]*a[#{(i+2)%3}][#{(j+1)%3}])/det;" */
+/* }} */
+int mat_inverse_matrix_d3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST double precision)
+{
+ double det;
+ double c[3][3];
+ det = mat_get_determinant_d3(a);
+ if (mat_Dabs(det) < precision) {
+ warning_print("spglib: No inverse matrix (det=%f)\n", det);
+ debug_print("No inverse matrix\n");
+ return 0;
+ }
+
+ c[0][0] = (a[1][1] * a[2][2] - a[1][2] * a[2][1]) / det;
+ c[1][0] = (a[1][2] * a[2][0] - a[1][0] * a[2][2]) / det;
+ c[2][0] = (a[1][0] * a[2][1] - a[1][1] * a[2][0]) / det;
+ c[0][1] = (a[2][1] * a[0][2] - a[2][2] * a[0][1]) / det;
+ c[1][1] = (a[2][2] * a[0][0] - a[2][0] * a[0][2]) / det;
+ c[2][1] = (a[2][0] * a[0][1] - a[2][1] * a[0][0]) / det;
+ c[0][2] = (a[0][1] * a[1][2] - a[0][2] * a[1][1]) / det;
+ c[1][2] = (a[0][2] * a[1][0] - a[0][0] * a[1][2]) / det;
+ c[2][2] = (a[0][0] * a[1][1] - a[0][1] * a[1][0]) / det;
+ mat_copy_matrix_d3(m, c);
+ return 1;
+}
+
+/* m = b^-1 a b */
+int mat_get_similar_matrix_d3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST double b[3][3],
+ const double precision)
+{
+ double c[3][3];
+ if (!mat_inverse_matrix_d3(c, b, precision)) {
+ warning_print("spglib: No similar matrix due to 0 determinant.\n");
+ debug_print("No similar matrix due to 0 determinant.\n");
+ return 0;
+ }
+ mat_multiply_matrix_d3(m, a, b);
+ mat_multiply_matrix_d3(m, c, m);
+ return 1;
+}
+
+void mat_transpose_matrix_d3(double a[3][3], SPGCONST double b[3][3])
+{
+ double c[3][3];
+ c[0][0] = b[0][0];
+ c[0][1] = b[1][0];
+ c[0][2] = b[2][0];
+ c[1][0] = b[0][1];
+ c[1][1] = b[1][1];
+ c[1][2] = b[2][1];
+ c[2][0] = b[0][2];
+ c[2][1] = b[1][2];
+ c[2][2] = b[2][2];
+ mat_copy_matrix_d3(a, c);
+}
+
+void mat_transpose_matrix_i3(int a[3][3], SPGCONST int b[3][3])
+{
+ int c[3][3];
+ c[0][0] = b[0][0];
+ c[0][1] = b[1][0];
+ c[0][2] = b[2][0];
+ c[1][0] = b[0][1];
+ c[1][1] = b[1][1];
+ c[1][2] = b[2][1];
+ c[2][0] = b[0][2];
+ c[2][1] = b[1][2];
+ c[2][2] = b[2][2];
+ mat_copy_matrix_i3(a, c);
+}
+
+void mat_get_metric( double metric[3][3],
+ SPGCONST double lattice[3][3])
+{
+ double lattice_t[3][3];
+ mat_transpose_matrix_d3(lattice_t, lattice);
+ mat_multiply_matrix_d3(metric, lattice_t, lattice);
+}
+
+double mat_norm_squared_d3( const double a[3] )
+{
+ return a[0]*a[0]+a[1]*a[1]+a[2]*a[2];
+}
+
+int mat_norm_squared_i3( const int a[3] )
+{
+ return a[0]*a[0]+a[1]*a[1]+a[2]*a[2];
+}
+
+double mat_Dabs(const double a)
+{
+ if (a < 0.0)
+ return -a;
+ else
+ return a;
+}
+
+int mat_Nint(const double a)
+{
+ if (a < 0.0)
+ return (int) (a - 0.5);
+ else
+ return (int) (a + 0.5);
+}
+
+double mat_Dmod1(const double a)
+{
+ if (a < 0.0)
+ return a + 1.0 - (int) a;
+ else
+ return a - (int) a;
+}
+
+MatINT * mat_alloc_MatINT(const int size)
+{
+ MatINT *matint;
+ matint = (MatINT*) malloc( sizeof( MatINT ) );
+ matint->size = size;
+ if ( size > 0 ) {
+ if ( ( matint->mat = (int (*)[3][3]) malloc( sizeof(int[3][3]) * size) )
+ == NULL ) {
+ warning_print("spglib: Memory could not be allocated ");
+ warning_print("(MatINT, line %d, %s).\n", __LINE__, __FILE__);
+ exit(1);
+ }
+ }
+ return matint;
+}
+
+void mat_free_MatINT( MatINT * matint )
+{
+ if ( matint->size > 0 ) {
+ free( matint->mat );
+ matint->mat = NULL;
+ }
+ free( matint );
+ matint = NULL;
+}
+
+VecDBL * mat_alloc_VecDBL( const int size )
+{
+ VecDBL *vecdbl;
+ vecdbl = (VecDBL*) malloc( sizeof( VecDBL ) );
+ vecdbl->size = size;
+ if ( size > 0 ) {
+ if ( ( vecdbl->vec = (double (*)[3]) malloc( sizeof(double[3]) * size) )
+ == NULL ) {
+ warning_print("spglib: Memory could not be allocated ");
+ warning_print("(VecDBL, line %d, %s).\n", __LINE__, __FILE__);
+ exit(1);
+ }
+ }
+ return vecdbl;
+}
+
+void mat_free_VecDBL( VecDBL * vecdbl )
+{
+ if ( vecdbl->size > 0 ) {
+ free( vecdbl->vec );
+ vecdbl->vec = NULL;
+ }
+ free( vecdbl );
+ vecdbl = NULL;
+}
+
+
+int mat_is_int_matrix( SPGCONST double mat[3][3], double symprec )
+{
+ int i,j ;
+ for ( i = 0; i < 3; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ if ( mat_Dabs( mat_Nint( mat[i][j] ) - mat[i][j] ) > symprec ) {
+ return 0;
+ }
+ }
+ }
+ return 1;
+}
diff --git a/src/mathfunc.h b/src/mathfunc.h
new file mode 100644
index 0000000..3ce33a5
--- /dev/null
+++ b/src/mathfunc.h
@@ -0,0 +1,86 @@
+/* mathfunc.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __mathfunc_H__
+#define __mathfunc_H__
+
+#define SPGCONST
+
+typedef struct {
+ int size;
+ int (*mat)[3][3];
+} MatINT;
+
+typedef struct {
+ int size;
+ double (*vec)[3];
+} VecDBL;
+
+double mat_get_determinant_d3(SPGCONST double a[3][3]);
+int mat_get_determinant_i3(SPGCONST int a[3][3]);
+int mat_get_trace_i3( SPGCONST int a[3][3] );
+void mat_copy_matrix_d3(double a[3][3], SPGCONST double b[3][3]);
+void mat_copy_matrix_i3(int a[3][3], SPGCONST int b[3][3]);
+void mat_copy_vector_d3(double a[3], const double b[3]);
+void mat_copy_vector_i3(int a[3], const int b[3]);
+int mat_check_identity_matrix_i3(SPGCONST int a[3][3],
+ SPGCONST int b[3][3]);
+int mat_check_identity_matrix_d3( SPGCONST double a[3][3],
+ SPGCONST double b[3][3],
+ const double symprec );
+int mat_check_identity_matrix_id3( SPGCONST int a[3][3],
+ SPGCONST double b[3][3],
+ const double symprec );
+void mat_multiply_matrix_d3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST double b[3][3]);
+void mat_multiply_matrix_i3(int m[3][3],
+ SPGCONST int a[3][3],
+ SPGCONST int b[3][3]);
+void mat_multiply_matrix_di3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST int b[3][3]);
+void mat_multiply_matrix_id3( double m[3][3],
+ SPGCONST int a[3][3],
+ SPGCONST double b[3][3]);
+void mat_multiply_matrix_vector_i3(int v[3],
+ SPGCONST int a[3][3],
+ const int b[3]);
+void mat_multiply_matrix_vector_d3(double v[3],
+ SPGCONST double a[3][3],
+ const double b[3]);
+void mat_multiply_matrix_vector_id3(double v[3],
+ SPGCONST int a[3][3],
+ const double b[3]);
+void mat_add_matrix_i3( int m[3][3],
+ SPGCONST int a[3][3],
+ SPGCONST int b[3][3] );
+void mat_cast_matrix_3i_to_3d(double m[3][3],
+ SPGCONST int a[3][3]);
+void mat_cast_matrix_3d_to_3i(int m[3][3],
+ SPGCONST double a[3][3]);
+int mat_inverse_matrix_d3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST double precision);
+int mat_get_similar_matrix_d3(double m[3][3],
+ SPGCONST double a[3][3],
+ SPGCONST double b[3][3],
+ SPGCONST double precision);
+void mat_transpose_matrix_d3(double a[3][3],
+ SPGCONST double b[3][3]);
+void mat_transpose_matrix_i3(int a[3][3],
+ SPGCONST int b[3][3]);
+void mat_get_metric( double metric[3][3],
+ SPGCONST double lattice[3][3]);
+double mat_norm_squared_d3( const double a[3] );
+int mat_norm_squared_i3( const int a[3] );
+double mat_Dabs(const double a);
+int mat_Nint(const double a);
+double mat_Dmod1(const double a);
+MatINT * mat_alloc_MatINT(const int size);
+void mat_free_MatINT( MatINT * matint );
+VecDBL * mat_alloc_VecDBL(const int size);
+void mat_free_VecDBL( VecDBL * vecdbl );
+int mat_is_int_matrix( SPGCONST double mat[3][3], double symprec );
+
+#endif
diff --git a/src/pointgroup.c b/src/pointgroup.c
new file mode 100644
index 0000000..6a556b9
--- /dev/null
+++ b/src/pointgroup.c
@@ -0,0 +1,1256 @@
+/* pointgroup.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <string.h>
+#include <stdio.h>
+#include "lattice.h"
+#include "pointgroup.h"
+#include "symmetry.h"
+#include "mathfunc.h"
+
+#include "debug.h"
+
+#define NUM_ROT_AXES 73
+
+typedef struct {
+ int table[10];
+ char symbol[6];
+ Holohedry holohedry;
+ Laue laue;
+} PointgroupType;
+
+static PointgroupType pointgroup_data[32] = {
+ {
+ {0, 0, 0, 0, 0, 1, 0, 0, 0, 0},
+ "1 ",
+ TRICLI,
+ LAUE1,
+ },
+ {
+ {0, 0, 0, 0, 1, 1, 0, 0, 0, 0},
+ "-1 ",
+ TRICLI,
+ LAUE1,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 1, 0, 0, 0},
+ "2 ",
+ MONOCLI,
+ LAUE2M,
+ },
+ {
+ {0, 0, 0, 1, 0, 1, 0, 0, 0, 0},
+ "m ",
+ MONOCLI,
+ LAUE2M,
+ },
+ {
+ {0, 0, 0, 1, 1, 1, 1, 0, 0, 0},
+ "2/m ",
+ MONOCLI,
+ LAUE2M,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 3, 0, 0, 0},
+ "222 ",
+ ORTHO,
+ LAUEMMM,
+ },
+ {
+ {0, 0, 0, 2, 0, 1, 1, 0, 0, 0},
+ "mm2 ",
+ ORTHO,
+ LAUEMMM,
+ },
+ {
+ {0, 0, 0, 3, 1, 1, 3, 0, 0, 0},
+ "mmm ",
+ ORTHO,
+ LAUEMMM,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 1, 0, 2, 0},
+ "4 ",
+ TETRA,
+ LAUE4M,
+ },
+ {
+ {0, 2, 0, 0, 0, 1, 1, 0, 0, 0},
+ "-4 ",
+ TETRA,
+ LAUE4M,
+ },
+ {
+ {0, 2, 0, 1, 1, 1, 1, 0, 2, 0},
+ "4/m ",
+ TETRA,
+ LAUE4M,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 5, 0, 2, 0},
+ "422 ",
+ TETRA,
+ LAUE4MMM,
+ },
+ {
+ {0, 0, 0, 4, 0, 1, 1, 0, 2, 0},
+ "4mm ",
+ TETRA,
+ LAUE4MMM,
+ },
+ {
+ {0, 2, 0, 2, 0, 1, 3, 0, 0, 0},
+ "-42m ",
+ TETRA,
+ LAUE4MMM,
+ },
+ {
+ {0, 2, 0, 5, 1, 1, 5, 0, 2, 0},
+ "4/mmm",
+ TETRA,
+ LAUE4MMM,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 0, 2, 0, 0},
+ "3 ",
+ TRIGO,
+ LAUE3,
+ },
+ {
+ {0, 0, 2, 0, 1, 1, 0, 2, 0, 0},
+ "-3 ",
+ TRIGO,
+ LAUE3,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 3, 2, 0, 0},
+ "32 ",
+ TRIGO,
+ LAUE3M,
+ },
+ {
+ {0, 0, 0, 3, 0, 1, 0, 2, 0, 0},
+ "3m ",
+ TRIGO,
+ LAUE3M,
+ },
+ {
+ {0, 0, 2, 3, 1, 1, 3, 2, 0, 0},
+ "-3m ",
+ TRIGO,
+ LAUE3M,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 1, 2, 0, 2},
+ "6 ",
+ HEXA,
+ LAUE6M,
+ },
+ {
+ {2, 0, 0, 1, 0, 1, 0, 2, 0, 0},
+ "-6 ",
+ HEXA,
+ LAUE6M,
+ },
+ {
+ {2, 0, 2, 1, 1, 1, 1, 2, 0, 2},
+ "6/m ",
+ HEXA,
+ LAUE6M,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 7, 2, 0, 2},
+ "622 ",
+ HEXA,
+ LAUE6MMM,
+ },
+ {
+ {0, 0, 0, 6, 0, 1, 1, 2, 0, 2},
+ "6mm ",
+ HEXA,
+ LAUE6MMM,
+ },
+ {
+ {2, 0, 0, 4, 0, 1, 3, 2, 0, 0},
+ "-6m2 ",
+ HEXA,
+ LAUE6MMM,
+ },
+ {
+ {2, 0, 2, 7, 1, 1, 7, 2, 0, 2},
+ "6/mmm",
+ HEXA,
+ LAUE6MMM,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 3, 8, 0, 0},
+ "23 ",
+ CUBIC,
+ LAUEM3,
+ },
+ {
+ {0, 0, 8, 3, 1, 1, 3, 8, 0, 0},
+ "m-3 ",
+ CUBIC,
+ LAUEM3,
+ },
+ {
+ {0, 0, 0, 0, 0, 1, 9, 8, 6, 0},
+ "432 ",
+ CUBIC,
+ LAUEM3M,
+ },
+ {
+ {0, 6, 0, 6, 0, 1, 3, 8, 0, 0},
+ "-43m ",
+ CUBIC,
+ LAUEM3M,
+ },
+ {
+ {0, 6, 8, 9, 1, 1, 9, 8, 6, 0},
+ "m-3m ",
+ CUBIC,
+ LAUEM3M,
+ }
+};
+
+static int identity[3][3] = {
+ { 1, 0, 0},
+ { 0, 1, 0},
+ { 0, 0, 1},
+};
+
+static int inversion[3][3] = {
+ {-1, 0, 0},
+ { 0,-1, 0},
+ { 0, 0,-1},
+};
+
+static int rot_axes[][3] = {
+ { 1, 0, 0},
+ { 0, 1, 0},
+ { 0, 0, 1},
+ { 0, 1, 1},
+ { 1, 0, 1},
+ { 1, 1, 0},
+ { 0, 1,-1},
+ {-1, 0, 1},
+ { 1,-1, 0},
+ { 1, 1, 1}, /* 10 */
+ {-1, 1, 1},
+ { 1,-1, 1},
+ { 1, 1,-1},
+ { 0, 1, 2},
+ { 2, 0, 1},
+ { 1, 2, 0},
+ { 0, 2, 1},
+ { 1, 0, 2},
+ { 2, 1, 0},
+ { 0,-1, 2}, /* 20 */
+ { 2, 0,-1},
+ {-1, 2, 0},
+ { 0,-2, 1},
+ { 1, 0,-2},
+ {-2, 1, 0},
+ { 2, 1, 1},
+ { 1, 2, 1},
+ { 1, 1, 2},
+ { 2,-1,-1},
+ {-1, 2,-1}, /* 30 */
+ {-1,-1, 2},
+ { 2, 1,-1},
+ {-1, 2, 1},
+ { 1,-1, 2},
+ { 2,-1, 1}, /* 35 */
+ { 1, 2,-1},
+ {-1, 1, 2},
+ { 3, 1, 2},
+ { 2, 3, 1},
+ { 1, 2, 3}, /* 40 */
+ { 3, 2, 1},
+ { 1, 3, 2},
+ { 2, 1, 3},
+ { 3,-1, 2},
+ { 2, 3,-1}, /* 45 */
+ {-1, 2, 3},
+ { 3,-2, 1},
+ { 1, 3,-2},
+ {-2, 1, 3},
+ { 3,-1,-2}, /* 50 */
+ {-2, 3,-1},
+ {-1,-2, 3},
+ { 3,-2,-1},
+ {-1, 3,-2},
+ {-2,-1, 3}, /* 55 */
+ { 3, 1,-2},
+ {-2, 3, 1},
+ { 1,-2, 3},
+ { 3, 2,-1},
+ {-1, 3, 2}, /* 60 */
+ { 2,-1, 3},
+ { 1, 1, 3},
+ {-1, 1, 3},
+ { 1,-1, 3},
+ {-1,-1, 3}, /* 65 */
+ { 1, 3, 1},
+ {-1, 3, 1},
+ { 1, 3,-1},
+ {-1, 3,-1},
+ { 3, 1, 1}, /* 70 */
+ { 3, 1,-1},
+ { 3,-1, 1},
+ { 3,-1,-1},
+};
+
+static void set_transformation_matrix(Pointgroup * pointgroup,
+ SPGCONST int rotations[][3][3],
+ const int num_rotations);
+static PointSymmetry get_pointsymmetry(SPGCONST int rotations[][3][3],
+ const int num_rotations);
+static int get_pointgroup_number(SPGCONST PointSymmetry * pointsym);
+static int get_pointgroup_class_table(int table[10],
+ SPGCONST PointSymmetry * pointsym);
+static int get_rotation_type(SPGCONST int rot[3][3]);
+static int get_rotation_axis(SPGCONST int rot[3][3]);
+static int get_orthogonal_axis(int ortho_axes[],
+ SPGCONST int proper_rot[3][3],
+ const int rot_order);
+static int laue2m(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+
+#ifdef DEBUG
+static int lauemmm(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+static int laue4m(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+static int laue4mmm(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+static int laue3(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+static int laue3m(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+static int lauem3m(int axes[3],
+ SPGCONST PointSymmetry * pointsym);
+#endif
+
+static int laue_one_axis(int axes[3],
+ SPGCONST PointSymmetry * pointsym,
+ const int rot_order);
+static int lauennn(int axes[3],
+ SPGCONST PointSymmetry * pointsym,
+ const int rot_order);
+static int get_axes(int axes[3],
+ const Laue laue,
+ SPGCONST PointSymmetry * pointsym);
+static void get_proper_rotation(int prop_rot[3][3],
+ SPGCONST int rot[3][3]);
+static void get_transformation_matrix(int tmat[3][3],
+ const int axes[3]);
+static int is_exist_axis(const int axis_vec[3], const int axis_index);
+static void sort_axes(int axes[3]);
+
+
+int ptg_get_pointgroup_number(const Symmetry * symmetry)
+{
+ PointSymmetry pointsym;
+
+ pointsym = get_pointsymmetry(symmetry->rot,
+ symmetry->size);
+ return get_pointgroup_number(&pointsym);
+}
+
+int ptg_get_pointgroup_number_by_rotations(SPGCONST int rotations[][3][3],
+ const int num_rotations)
+{
+ PointSymmetry pointsym;
+
+ pointsym = get_pointsymmetry(rotations, num_rotations);
+ return get_pointgroup_number(&pointsym);
+}
+
+Pointgroup ptg_get_pointgroup(const int pointgroup_number)
+{
+ Pointgroup pointgroup;
+ PointgroupType pointgroup_type;
+
+ pointgroup_type = pointgroup_data[ pointgroup_number ];
+ strcpy(pointgroup.symbol, pointgroup_type.symbol);
+ pointgroup.holohedry = pointgroup_type.holohedry;
+ pointgroup.laue = pointgroup_type.laue;
+
+ debug_print("ptg_get_pointgroup: %s\n", pointgroup_type.symbol);
+
+ return pointgroup;
+}
+
+Centering ptg_get_transformation_matrix(double trans_mat[3][3],
+ SPGCONST int rotations[][3][3],
+ const int num_rotations)
+{
+ int pg_num;
+ double correction_mat[3][3];
+ Centering centering;
+ Pointgroup pointgroup;
+
+ debug_print("ptg_get_transformation_matrix:\n");
+
+ pg_num = ptg_get_pointgroup_number_by_rotations(rotations,
+ num_rotations);
+ pointgroup = ptg_get_pointgroup(pg_num);
+ set_transformation_matrix(&pointgroup, rotations, num_rotations);
+
+ debug_print("transformation matrix:\n");
+ debug_print_matrix_i3(pointgroup.transform_mat);
+
+ /* Centering is not determined only from symmetry operations */
+ /* sometimes. Therefore centering and transformation matrix are */
+ /* related. */
+ centering = lat_get_centering(correction_mat,
+ pointgroup.transform_mat,
+ pointgroup.laue);
+
+ mat_multiply_matrix_id3(trans_mat,
+ pointgroup.transform_mat,
+ correction_mat);
+
+ debug_print("correction matrix:\n");
+ debug_print_matrix_d3(correction_mat);
+
+ return centering;
+}
+
+/* pointgroup is modified. */
+static void set_transformation_matrix(Pointgroup * pointgroup,
+ SPGCONST int rotations[][3][3],
+ const int num_rotations)
+{
+ int axes[3];
+ int transform_mat[3][3];
+ PointSymmetry pointsym;
+
+ pointsym = get_pointsymmetry(rotations, num_rotations);
+ get_axes(axes, pointgroup->laue, &pointsym);
+ get_transformation_matrix(transform_mat, axes);
+ mat_copy_matrix_i3(pointgroup->transform_mat, transform_mat);
+}
+
+static PointSymmetry get_pointsymmetry(SPGCONST int rotations[][3][3],
+ const int num_rotations)
+{
+ int i, j;
+ PointSymmetry pointsym;
+
+ pointsym.size = 0;
+ for (i = 0; i < num_rotations; i++) {
+ for (j = 0; j < pointsym.size; j++) {
+ if (mat_check_identity_matrix_i3(rotations[i], pointsym.rot[j])) {
+ goto escape;
+ }
+ }
+ mat_copy_matrix_i3(pointsym.rot[pointsym.size], rotations[i]);
+ pointsym.size++;
+ escape:
+ ;
+ }
+
+ return pointsym;
+}
+
+static int get_pointgroup_number(SPGCONST PointSymmetry * pointsym)
+{
+ int i, j, pg_num, counter;
+ int table[10];
+ PointgroupType pointgroup_type;
+
+ debug_print("get_pointgroup_number:");
+
+ /* Get list of point symmetry operations */
+ if (! get_pointgroup_class_table(table, pointsym)) {
+ pg_num = -1;
+ goto end;
+ }
+
+ pg_num = -1;
+ for (i = 0; i < 32; i++) {
+ counter = 0;
+ pointgroup_type = pointgroup_data[ i ];
+ for (j = 0; j < 10; j++) {
+ if (pointgroup_type.table[j] == table[j]) { counter++; }
+ }
+ if (counter == 10) {
+ pg_num = i;
+ break;
+ }
+ }
+
+ end:
+ debug_print(" %d\n", pg_num);
+ return pg_num;
+}
+
+static int get_pointgroup_class_table(int table[10],
+ SPGCONST PointSymmetry * pointsym)
+{
+ /* Look-up table */
+ /* Operation -6 -4 -3 -2 -1 1 2 3 4 6 */
+ /* Trace - 2 -1 0 1 -3 3 -1 0 1 2 */
+ /* Determinant -1 -1 -1 -1 -1 1 1 1 1 1 */
+
+ /* table[0] = -6 axis */
+ /* table[1] = -4 axis */
+ /* table[2] = -3 axis */
+ /* table[3] = -2 axis */
+ /* table[4] = -1 axis */
+ /* table[5] = 1 axis */
+ /* table[6] = 2 axis */
+ /* table[7] = 3 axis */
+ /* table[8] = 4 axis */
+ /* table[9] = 6 axis */
+
+ int i, rot_type;
+
+ for (i = 0; i < 10; i++) { table[i] = 0; }
+ for (i = 0; i < pointsym->size; i++) {
+ rot_type = get_rotation_type(pointsym->rot[i]);
+ if (rot_type == -1) {
+ goto err;
+ } else {
+ table[rot_type]++;
+ }
+ }
+
+ return 1;
+
+ err:
+ warning_print("spglib: No point group symbol found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ return 0;
+}
+
+static int get_rotation_type(SPGCONST int rot[3][3])
+{
+ int rot_type;
+
+ if (mat_get_determinant_i3(rot) == -1) {
+ switch (mat_get_trace_i3(rot)) {
+ case -2: /* -6 */
+ rot_type = 0;
+ break;
+ case -1: /* -4 */
+ rot_type = 1;
+ break;
+ case 0: /* -3 */
+ rot_type = 2;
+ break;
+ case 1: /* -2 */
+ rot_type = 3;
+ break;
+ case -3: /* -1 */
+ rot_type = 4;
+ break;
+ default:
+ rot_type = -1;
+ break;
+ }
+ } else {
+ switch (mat_get_trace_i3(rot)) {
+ case 3: /* 1 */
+ rot_type = 5;
+ break;
+ case -1: /* 2 */
+ rot_type = 6;
+ break;
+ case 0: /* 3 */
+ rot_type = 7;
+ break;
+ case 1: /* 4 */
+ rot_type = 8;
+ break;
+ case 2: /* 6 */
+ rot_type = 9;
+ break;
+ default:
+ rot_type = -1;
+ break;
+ }
+ }
+
+ return rot_type;
+}
+
+static int get_axes(int axes[3],
+ const Laue laue,
+ SPGCONST PointSymmetry * pointsym)
+{
+ switch (laue) {
+ case LAUE1:
+ axes[0] = 0;
+ axes[1] = 1;
+ axes[2] = 2;
+ break;
+ case LAUE2M:
+ laue2m(axes, pointsym);
+ break;
+ case LAUEMMM:
+ lauennn(axes, pointsym, 2);
+ break;
+ case LAUE4M:
+ laue_one_axis(axes, pointsym, 4);
+ break;
+ case LAUE4MMM:
+ laue_one_axis(axes, pointsym, 4);
+ break;
+ case LAUE3:
+ laue_one_axis(axes, pointsym, 3);
+ break;
+ case LAUE3M:
+ laue_one_axis(axes, pointsym, 3);
+ break;
+ case LAUE6M:
+ laue_one_axis(axes, pointsym, 3);
+ break;
+ case LAUE6MMM:
+ laue_one_axis(axes, pointsym, 3);
+ break;
+ case LAUEM3:
+ lauennn(axes, pointsym, 2);
+ break;
+ case LAUEM3M:
+ lauennn(axes, pointsym, 4);
+ break;
+ default:
+ break;
+ }
+
+ return 1;
+}
+
+static int laue2m(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, num_ortho_axis, norm, min_norm, is_found, tmpval;
+ int prop_rot[3][3], t_mat[3][3];
+ int ortho_axes[NUM_ROT_AXES];
+
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search two-fold rotation */
+ if (! (mat_get_trace_i3(prop_rot) == -1)) {
+ continue;
+ }
+
+ /* The first axis */
+ axes[1] = get_rotation_axis(prop_rot);
+ break;
+ }
+
+ /* The second axis */
+ num_ortho_axis = get_orthogonal_axis(ortho_axes, prop_rot, 2);
+ if (! num_ortho_axis) { goto err; }
+
+ min_norm = 8;
+ is_found = 0;
+ for (i = 0; i < num_ortho_axis; i++) {
+ norm = mat_norm_squared_i3(rot_axes[ortho_axes[i]]);
+ if (norm < min_norm) {
+ min_norm = norm;
+ axes[0] = ortho_axes[i];
+ is_found = 1;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ /* The third axis */
+ min_norm = 8;
+ is_found = 0;
+ for (i = 0; i < num_ortho_axis; i++) {
+ norm = mat_norm_squared_i3(rot_axes[ortho_axes[i]]);
+ if (norm < min_norm && (! (ortho_axes[i] == axes[0]))) {
+ min_norm = norm;
+ axes[2] = ortho_axes[i];
+ is_found = 1;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ tmpval = axes[0];
+ axes[0] = axes[2];
+ axes[2] = tmpval;
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+#ifdef DEBUG
+static int lauemmm(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, count, axis, tmpval;
+ int prop_rot[3][3];
+
+
+ for (i = 0; i < 3; i++) { axes[i] = -1; }
+ count = 0;
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search two-fold rotation */
+ if (! (mat_get_trace_i3(prop_rot) == -1)) {
+ continue;
+ }
+
+ axis = get_rotation_axis(prop_rot);
+ if (! ((axis == axes[0]) ||
+ (axis == axes[1]) ||
+ (axis == axes[2]))) {
+ axes[count] = axis;
+ count++;
+ }
+ }
+
+ sort_axes(axes);
+
+ return 1;
+}
+
+static int laue4m(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, num_ortho_axis, norm, min_norm, is_found, tmpval;
+ int axis_vec[3];
+ int prop_rot[3][3], t_mat[3][3];
+ int ortho_axes[NUM_ROT_AXES];
+
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search foud-fold rotation */
+ if ( mat_get_trace_i3(prop_rot) == 1) {
+ /* The first axis */
+ axes[2] = get_rotation_axis(prop_rot);
+ break;
+ }
+ }
+
+ /* The second axis */
+ num_ortho_axis = get_orthogonal_axis(ortho_axes, prop_rot, 4);
+ if (! num_ortho_axis) { goto err; }
+
+ min_norm = 8;
+ is_found = 0;
+ for (i = 0; i < num_ortho_axis; i++) {
+ norm = mat_norm_squared_i3(rot_axes[ortho_axes[i]]);
+ if (norm < min_norm) {
+ min_norm = norm;
+ axes[0] = ortho_axes[i];
+ is_found = 1;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ /* The third axis */
+ mat_multiply_matrix_vector_i3(axis_vec, prop_rot, rot_axes[axes[0]]);
+ is_found = 0;
+ for (i = 0; i < NUM_ROT_AXES; i++) {
+ if (is_exist_axis(axis_vec, i)) {
+ is_found = 1;
+ axes[1] = i;
+ break;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ tmpval = axes[0];
+ axes[0] = axes[1];
+ axes[1] = tmpval;
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+static int laue4mmm(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, is_found, tmpval, axis;
+ int prop_rot[3][3], prop_rot2[3][3], t_mat[3][3];
+ int axis_vec[3];
+
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search foud-fold rotation */
+ if (mat_get_trace_i3(prop_rot) == 1) {
+ /* The first axis */
+ axes[2] = get_rotation_axis(prop_rot);
+ break;
+ }
+ }
+
+ is_found = 0;
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot2, pointsym->rot[i]);
+
+ /* Search two-fold rotation */
+ if (! (mat_get_trace_i3(prop_rot2) == -1)) {
+ continue;
+ }
+
+ /* The second axis */
+ axis = get_rotation_axis(prop_rot2);
+ if (! (axis == axes[2])) {
+ axes[0] = axis;
+ is_found = 1;
+ break;
+ }
+ }
+ if (! is_found) { goto err; }
+
+
+ /* The third axis */
+ mat_multiply_matrix_vector_i3(axis_vec, prop_rot, rot_axes[axes[0]]);
+ is_found = 0;
+ for (i = 0; i < NUM_ROT_AXES; i++) {
+ if (is_exist_axis(axis_vec, i)) {
+ is_found = 1;
+ axes[1] = i;
+ break;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ tmpval = axes[0];
+ axes[0] = axes[1];
+ axes[1] = tmpval;
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+static int laue3(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, num_ortho_axis, norm, min_norm, is_found, tmpval;
+ int prop_rot[3][3], t_mat[3][3];
+ int axis_vec[3];
+ int ortho_axes[NUM_ROT_AXES];
+
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search thee-fold rotation */
+ if (mat_get_trace_i3(prop_rot) == 0) {
+ /* The first axis */
+ axes[2] = get_rotation_axis(prop_rot);
+ break;
+ }
+ }
+
+ /* The second axis */
+ num_ortho_axis = get_orthogonal_axis(ortho_axes, prop_rot, 3);
+ if (! num_ortho_axis) { goto err; }
+ min_norm = 8;
+ is_found = 0;
+ for (i = 0; i < num_ortho_axis; i++) {
+ norm = mat_norm_squared_i3(rot_axes[ortho_axes[i]]);
+ if (norm < min_norm) {
+ min_norm = norm;
+ axes[0] = ortho_axes[i];
+ is_found = 1;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ /* The third axis */
+ mat_multiply_matrix_vector_i3(axis_vec, prop_rot, rot_axes[axes[0]]);
+ is_found = 0;
+ for (i = 0; i < NUM_ROT_AXES; i++) {
+ is_found = is_exist_axis(axis_vec, i);
+ if (is_found == 1) {
+ axes[1] = i;
+ break;
+ }
+ if (is_found == -1) {
+ axes[1] = i + NUM_ROT_AXES;
+ break;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ tmpval = axes[0];
+ axes[0] = axes[1];
+ axes[1] = tmpval;
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+static int laue3m(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, is_found, tmpval, axis;
+ int prop_rot[3][3], prop_rot2[3][3], t_mat[3][3];
+ int axis_vec[3];
+
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search three-fold rotation */
+ if (mat_get_trace_i3(prop_rot) == 0) {
+ /* The first axis */
+ axes[2] = get_rotation_axis(prop_rot);
+ debug_print("laue3m prop_rot\n");
+ debug_print_matrix_i3(prop_rot);
+ break;
+ }
+ }
+
+ is_found = 0;
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot2, pointsym->rot[i]);
+
+ /* Search two-fold rotation */
+ if (! (mat_get_trace_i3(prop_rot2) == -1)) {
+ continue;
+ }
+
+ /* The second axis */
+ axis = get_rotation_axis(prop_rot2);
+ if (! (axis == axes[2])) {
+ axes[0] = axis;
+ is_found = 1;
+ break;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ /* The third axis */
+ mat_multiply_matrix_vector_i3(axis_vec, prop_rot, rot_axes[axes[0]]);
+ is_found = 0;
+ for (i = 0; i < NUM_ROT_AXES; i++) {
+ is_found = is_exist_axis(axis_vec, i);
+ if (is_found == 1) {
+ axes[1] = i;
+ break;
+ }
+ if (is_found == -1) {
+ axes[1] = i + NUM_ROT_AXES;
+ break;
+ }
+ }
+ if (! is_found) { goto err; }
+
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ tmpval = axes[0];
+ axes[0] = axes[1];
+ axes[1] = tmpval;
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+static int lauem3m(int axes[3],
+ SPGCONST PointSymmetry * pointsym)
+{
+ int i, count, axis, tmpval;
+ int prop_rot[3][3];
+
+ for (i = 0; i < 3; i++) { axes[i] = -1; }
+ count = 0;
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search four-fold rotation */
+ if (! (mat_get_trace_i3(prop_rot) == 1)) {
+ continue;
+ }
+
+ axis = get_rotation_axis(prop_rot);
+ if (! ((axis == axes[0]) ||
+ (axis == axes[1]) ||
+ (axis == axes[2]))) {
+ axes[count] = axis;
+ count++;
+ }
+ }
+
+ sort_axes(axes);
+
+ return 1;
+}
+#endif
+
+static int laue_one_axis(int axes[3],
+ SPGCONST PointSymmetry * pointsym,
+ const int rot_order)
+{
+ int i, j, num_ortho_axis, det, min_det, is_found, tmpval;
+ int axis_vec[3], tmp_axes[3];
+ int prop_rot[3][3], t_mat[3][3];
+ int ortho_axes[NUM_ROT_AXES];
+
+ debug_print("laue_one_axis with rot_order %d\n", rot_order);
+
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search foud-fold rotation */
+ if (rot_order == 4) {
+ if (mat_get_trace_i3(prop_rot) == 1) {
+ /* The first axis */
+ axes[2] = get_rotation_axis(prop_rot);
+ break;
+ }
+ }
+
+ /* Search three-fold rotation */
+ if (rot_order == 3) {
+ if (mat_get_trace_i3(prop_rot) == 0) {
+ /* The first axis */
+ axes[2] = get_rotation_axis(prop_rot);
+ break;
+ }
+ }
+ }
+
+ /* Candidates of the second axis */
+ num_ortho_axis = get_orthogonal_axis(ortho_axes, prop_rot, rot_order);
+ if (! num_ortho_axis) { goto err; }
+
+ tmp_axes[2] = axes[2];
+ min_det = 4;
+ is_found = 0;
+ for (i = 0; i < num_ortho_axis; i++) {
+ tmp_axes[0] = ortho_axes[i];
+ mat_multiply_matrix_vector_i3(axis_vec,
+ prop_rot,
+ rot_axes[tmp_axes[0]]);
+ for (j = 0; j < num_ortho_axis; j++) {
+ is_found = is_exist_axis(axis_vec, ortho_axes[j]);
+ if (is_found == 1) {
+ tmp_axes[1] = ortho_axes[j];
+ break;
+ }
+ if (is_found == -1) {
+ tmp_axes[1] = ortho_axes[j] + NUM_ROT_AXES;
+ break;
+ }
+ }
+
+ get_transformation_matrix(t_mat, tmp_axes);
+ det = mat_get_determinant_i3(t_mat);
+ if (det < 0) { det = -det; }
+ if (det < min_det) {
+ min_det = det;
+ axes[0] = tmp_axes[0];
+ axes[1] = tmp_axes[1];
+ }
+
+ if (is_found) { goto end; }
+ }
+
+ err: /* axes are not correctly found. */
+ return 0;
+
+ end:
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ tmpval = axes[0];
+ axes[0] = axes[1];
+ axes[1] = tmpval;
+ }
+
+ debug_print("axes[0] = %d\n", axes[0]);
+ debug_print("axes[1] = %d\n", axes[1]);
+ debug_print("axes[2] = %d\n", axes[2]);
+
+ return 1;
+
+}
+
+static int lauennn(int axes[3],
+ SPGCONST PointSymmetry * pointsym,
+ const int rot_order)
+{
+ int i, count, axis;
+ int prop_rot[3][3];
+
+ for (i = 0; i < 3; i++) { axes[i] = -1; }
+ count = 0;
+ for (i = 0; i < pointsym->size; i++) {
+ get_proper_rotation(prop_rot, pointsym->rot[i]);
+
+ /* Search two- or four-fold rotation */
+ if ((mat_get_trace_i3(prop_rot) == -1 && rot_order == 2) ||
+ (mat_get_trace_i3(prop_rot) == 1 && rot_order == 4)) {
+ axis = get_rotation_axis(prop_rot);
+ if (! ((axis == axes[0]) ||
+ (axis == axes[1]) ||
+ (axis == axes[2]))) {
+ axes[count] = axis;
+ count++;
+ }
+ }
+ }
+
+ sort_axes(axes);
+
+ return 1;
+}
+
+static int get_rotation_axis(SPGCONST int proper_rot[3][3])
+{
+ int i, axis = -1;
+ int vec[3];
+
+ /* No specific axis for I and -I */
+ if (mat_check_identity_matrix_i3(proper_rot, identity)) {
+ goto end;
+ }
+
+ /* Look for eigenvector = rotation axis */
+ for (i = 0; i < NUM_ROT_AXES; i++) {
+ mat_multiply_matrix_vector_i3(vec, proper_rot, rot_axes[i]);
+ if (vec[0] == rot_axes[i][0] &&
+ vec[1] == rot_axes[i][1] &&
+ vec[2] == rot_axes[i][2]) {
+ axis = i;
+ break;
+ }
+ }
+
+ end:
+#ifdef DEBUG
+ if (axis == -1) {
+ printf("rotation axis cound not found.\n");
+ }
+#endif
+
+ return axis;
+}
+
+static int get_orthogonal_axis(int ortho_axes[],
+ SPGCONST int proper_rot[3][3],
+ const int rot_order)
+{
+ int i, num_ortho_axis;
+ int vec[3];
+ int sum_rot[3][3], rot[3][3];
+
+ num_ortho_axis = 0;
+
+ mat_copy_matrix_i3(sum_rot, identity);
+ mat_copy_matrix_i3(rot, identity);
+ for (i = 0; i < rot_order - 1; i++) {
+ mat_multiply_matrix_i3(rot, proper_rot, rot);
+ mat_add_matrix_i3(sum_rot, rot, sum_rot);
+ }
+
+ for (i = 0; i < NUM_ROT_AXES; i++) {
+ mat_multiply_matrix_vector_i3(vec, sum_rot, rot_axes[i]);
+ if (vec[0] == 0 &&
+ vec[1] == 0 &&
+ vec[2] == 0) {
+ ortho_axes[num_ortho_axis] = i;
+ num_ortho_axis++;
+ }
+ }
+
+ return num_ortho_axis;
+}
+
+static void get_proper_rotation(int prop_rot[3][3],
+ SPGCONST int rot[3][3])
+{
+ if (mat_get_determinant_i3(rot) == -1) {
+ mat_multiply_matrix_i3(prop_rot, inversion, rot);
+ } else {
+ mat_copy_matrix_i3(prop_rot, rot);
+ }
+}
+
+static void get_transformation_matrix(int tmat[3][3],
+ const int axes[3])
+{
+ int i, j, s[3];
+
+ for (i = 0; i < 3; i++) {
+ if (axes[i] < NUM_ROT_AXES) {
+ s[i] = 1;
+ } else {
+ s[i] = -1; /* axes[i] + NUM_ROT_AXES means improper rotation. */
+ }
+ }
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ tmat[i][j] = s[j] * rot_axes[axes[j]%NUM_ROT_AXES][i];
+ }
+ }
+}
+
+static int is_exist_axis(const int axis_vec[3], const int axis_index)
+{
+ if ((axis_vec[0] == rot_axes[axis_index][0]) &&
+ (axis_vec[1] == rot_axes[axis_index][1]) &&
+ (axis_vec[2] == rot_axes[axis_index][2])) { return 1; }
+ if ((axis_vec[0] == -rot_axes[axis_index][0]) &&
+ (axis_vec[1] == -rot_axes[axis_index][1]) &&
+ (axis_vec[2] == -rot_axes[axis_index][2])) { return -1; }
+ return 0;
+}
+
+static void sort_axes(int axes[3])
+{
+ int axis;
+ int t_mat[3][3];
+
+ if (axes[1] > axes[2]) {
+ axis = axes[1];
+ axes[1] = axes[2];
+ axes[2] = axis;
+ }
+
+ if (axes[0] > axes[1]) {
+ axis = axes[0];
+ axes[0] = axes[1];
+ axes[1] = axis;
+ }
+
+ if (axes[1] > axes[2]) {
+ axis = axes[1];
+ axes[1] = axes[2];
+ axes[2] = axis;
+ }
+
+ get_transformation_matrix(t_mat, axes);
+ if (mat_get_determinant_i3(t_mat) < 0) {
+ axis = axes[1];
+ axes[1] = axes[2];
+ axes[2] = axis;
+ }
+}
+
diff --git a/src/pointgroup.h b/src/pointgroup.h
new file mode 100644
index 0000000..33cf12a
--- /dev/null
+++ b/src/pointgroup.h
@@ -0,0 +1,36 @@
+/* pointgroup.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __pointgroup_H__
+#define __pointgroup_H__
+
+#include "symmetry.h"
+#include "lattice.h"
+
+typedef enum {
+ NONE,
+ TRICLI,
+ MONOCLI,
+ ORTHO,
+ TETRA,
+ RHOMB,
+ TRIGO,
+ HEXA,
+ CUBIC,
+} Holohedry;
+
+typedef struct {
+ char symbol[6];
+ Holohedry holohedry;
+ Laue laue;
+ int transform_mat[3][3];
+} Pointgroup;
+
+int ptg_get_pointgroup_number( const Symmetry * symmetry );
+int ptg_get_pointgroup_number_by_rotations( SPGCONST int rotations[][3][3],
+ const int num_rotations );
+Pointgroup ptg_get_pointgroup( const int pointgroup_number );
+Centering ptg_get_transformation_matrix( double trans_mat[3][3],
+ SPGCONST int rotations[][3][3],
+ const int num_rotations );
+#endif
diff --git a/src/primitive.c b/src/primitive.c
new file mode 100644
index 0000000..5c68072
--- /dev/null
+++ b/src/primitive.c
@@ -0,0 +1,701 @@
+/* primitive.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "cell.h"
+#include "lattice.h"
+#include "mathfunc.h"
+#include "primitive.h"
+#include "symmetry.h"
+
+#include "debug.h"
+
+#define INCREASE_RATE 2.0
+#define REDUCE_RATE 0.95
+static double current_tolerance;
+
+
+static Primitive get_primitive_and_pure_translation(SPGCONST Cell * cell,
+ const double symprec);
+static Cell * get_primitive_with_mapping_table(int * mapping_table,
+ SPGCONST Cell * cell,
+ const double symprec);
+static int set_primitive_positions(Cell * primitive_cell,
+ const VecDBL * position,
+ const Cell * cell,
+ int * const * table);
+static VecDBL * get_positions_primitive(SPGCONST Cell * cell,
+ SPGCONST double prim_lat[3][3]);
+static int get_overlap_table(int ** table,
+ const int cell_size,
+ SPGCONST Cell *primitive_cell,
+ const VecDBL * position,
+ const double symprec);
+static int check_overlap_table(SPGCONST int **overlap_table,
+ const int cell_size,
+ const int ratio);
+static void free_overlap_table(int ** table, const int size);
+static int ** allocate_overlap_table(const int size);
+static Cell * get_cell_with_smallest_lattice(SPGCONST Cell * cell,
+ const double symprec);
+static Cell * get_primitive(int * mapping_table,
+ SPGCONST Cell * cell,
+ const VecDBL * pure_trans,
+ const double symprec);
+static int trim_cell(Cell * primitive_cell,
+ int * mapping_table,
+ SPGCONST Cell * cell,
+ const double symprec);
+static int get_primitive_lattice_vectors_iterative(double prim_lattice[3][3],
+ SPGCONST Cell * cell,
+ const VecDBL * pure_trans,
+ const double symprec);
+static int get_primitive_lattice_vectors(double prim_lattice[3][3],
+ const VecDBL * vectors,
+ SPGCONST Cell * cell,
+ const double symprec);
+static VecDBL * get_translation_candidates(const VecDBL * pure_trans);
+static void set_current_tolerance(const double tolerance);
+
+Cell * prm_get_primitive(SPGCONST Cell * cell,
+ const double symprec)
+{
+ int *mapping_table;
+ Cell *primitive_cell;
+
+ mapping_table = (int*) malloc(sizeof(int) * cell->size);
+ primitive_cell = prm_get_primitive_with_mapping_table(mapping_table,
+ cell,
+ symprec);
+ free(mapping_table);
+ return primitive_cell;
+}
+
+Primitive prm_get_primitive_and_pure_translations(SPGCONST Cell * cell,
+ const double symprec)
+{
+ return get_primitive_and_pure_translation(cell, symprec);
+}
+
+Cell * prm_get_primitive_with_mapping_table(int * mapping_table,
+ SPGCONST Cell * cell,
+ const double symprec)
+{
+ return get_primitive_with_mapping_table(mapping_table,
+ cell,
+ symprec);
+}
+
+double prm_get_current_tolerance(void)
+{
+ debug_print("prm_get_current_tolerance %f\n", current_tolerance);
+ return current_tolerance;
+}
+
+/* If primitive could not be found, primitive->size = 0 is returned. */
+/* If cell is already primitive cell, */
+/* primitive cell with smallest lattice is returned. */
+static Primitive get_primitive_and_pure_translation(SPGCONST Cell * cell,
+ const double symprec)
+{
+ int attempt, is_found = 0;
+ double tolerance;
+ int *mapping_table;
+ Primitive primitive;
+
+ tolerance = symprec;
+ for (attempt = 0; attempt < 100; attempt++) {
+ primitive.pure_trans = sym_get_pure_translation(cell, tolerance);
+ if (primitive.pure_trans->size == 0) {
+ mat_free_VecDBL(primitive.pure_trans);
+ continue;
+ }
+
+ if (primitive.pure_trans->size == 1) {
+ primitive.cell = get_cell_with_smallest_lattice(cell, tolerance);
+ } else {
+ mapping_table = (int*) malloc(sizeof(int) * cell->size);
+ primitive.cell = get_primitive(mapping_table,
+ cell,
+ primitive.pure_trans,
+ tolerance);
+ free(mapping_table);
+ }
+
+ if (primitive.cell->size > 0) {
+ is_found = 1;
+ break;
+ }
+
+ cel_free_cell(primitive.cell);
+ mat_free_VecDBL(primitive.pure_trans);
+
+ tolerance *= REDUCE_RATE;
+ warning_print("spglib: Reduce tolerance to %f ", tolerance);
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+
+ if (! is_found) {
+ primitive.cell = cel_alloc_cell(0);
+ primitive.pure_trans = mat_alloc_VecDBL(0);
+ }
+
+ return primitive;
+}
+
+/* If cell is already primitive cell, */
+/* primitive cell with smallest lattice is returned. */
+static Cell * get_primitive_with_mapping_table(int * mapping_table,
+ SPGCONST Cell * cell,
+ const double symprec)
+{
+ int i, attempt;
+ double tolerance;
+ Cell *primitive_cell;
+ VecDBL *pure_trans;
+
+ tolerance = symprec;
+ for (attempt = 0; attempt < 100; attempt++) {
+ pure_trans = sym_get_pure_translation(cell, tolerance);
+ if (pure_trans->size == 1) {
+ primitive_cell = get_cell_with_smallest_lattice(cell, symprec);
+ for (i = 0; i < cell->size; i++) {
+ mapping_table[i] = i;
+ }
+ goto ret;
+ }
+ if (pure_trans->size > 1) {
+ primitive_cell = get_primitive(mapping_table, cell, pure_trans, tolerance);
+ if (primitive_cell->size > 0) {
+ goto ret;
+ }
+ cel_free_cell(primitive_cell);
+ }
+
+ tolerance *= REDUCE_RATE;
+ warning_print("spglib: Tolerance is reduced to %f at attempt %d\n", tolerance, attempt);
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ mat_free_VecDBL(pure_trans);
+ }
+
+ /* not found: I hope this will not happen. */
+ warning_print("spglib: Primitive cell could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ return cel_alloc_cell(0);
+
+ ret:
+ mat_free_VecDBL(pure_trans);
+ set_current_tolerance(tolerance);
+ return primitive_cell;
+}
+
+static void set_current_tolerance(const double tolerance)
+{
+ current_tolerance = tolerance;
+}
+
+static Cell * get_cell_with_smallest_lattice(SPGCONST Cell * cell,
+ const double symprec)
+{
+ int i, j;
+ double min_lat[3][3], trans_mat[3][3], inv_lat[3][3];
+ Cell * smallest_cell;
+
+ debug_print("get_cell_with_smallest_lattice:\n");
+
+ if (lat_smallest_lattice_vector(min_lat,
+ cell->lattice,
+ symprec)) {
+ mat_inverse_matrix_d3(inv_lat, min_lat, 0);
+ mat_multiply_matrix_d3(trans_mat, inv_lat, cell->lattice);
+ smallest_cell = cel_alloc_cell(cell->size);
+ mat_copy_matrix_d3(smallest_cell->lattice, min_lat);
+ for (i = 0; i < cell->size; i++) {
+ smallest_cell->types[i] = cell->types[i];
+ mat_multiply_matrix_vector_d3(smallest_cell->position[i],
+ trans_mat, cell->position[i]);
+ for (j = 0; j < 3; j++) {
+ cell->position[i][j] -= mat_Nint(cell->position[i][j]);
+ }
+ }
+ } else {
+ smallest_cell = cel_alloc_cell(0);
+ }
+
+ return smallest_cell;
+}
+
+/* If primitive could not be found, primitive->size = 0 is returned. */
+static Cell * get_primitive(int * mapping_table,
+ SPGCONST Cell * cell,
+ const VecDBL * pure_trans,
+ const double symprec)
+{
+ int multi;
+ double prim_lattice[3][3];
+ Cell * primitive_cell;
+
+ debug_print("get_primitive:\n");
+
+ /* Primitive lattice vectors are searched. */
+ /* To be consistent, sometimes tolerance is decreased iteratively. */
+ /* The descreased tolerance is stored in 'static double tolerance'. */
+ multi = get_primitive_lattice_vectors_iterative(prim_lattice,
+ cell,
+ pure_trans,
+ symprec);
+ if (! multi) {
+ goto not_found;
+ }
+
+ primitive_cell = cel_alloc_cell(cell->size / multi);
+
+ if (! lat_smallest_lattice_vector(primitive_cell->lattice,
+ prim_lattice,
+ symprec)) {
+ cel_free_cell(primitive_cell);
+ goto not_found;
+ }
+
+ /* Fit atoms into new primitive cell */
+ if (! trim_cell(primitive_cell, mapping_table, cell, symprec)) {
+ cel_free_cell(primitive_cell);
+ goto not_found;
+ }
+
+ /* found */
+ return primitive_cell;
+
+ not_found:
+ primitive_cell = cel_alloc_cell(0);
+ warning_print("spglib: Primitive cell could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ return primitive_cell;
+}
+
+
+static int trim_cell(Cell * primitive_cell,
+ int * mapping_table,
+ SPGCONST Cell * cell,
+ const double symprec)
+{
+ int i, index_prim_atom;
+ VecDBL * position;
+ int **overlap_table;
+
+ overlap_table = allocate_overlap_table(cell->size);
+
+ /* Get reduced positions of atoms in original cell with respect to */
+ /* primitive lattice */
+ position = get_positions_primitive(cell, primitive_cell->lattice);
+
+ /* Create overlapping table */
+ if (! get_overlap_table(overlap_table,
+ cell->size,
+ primitive_cell,
+ position,
+ symprec)) {goto err;}
+
+ /* Create original cell to primitive cell mapping table */
+ index_prim_atom = 0;
+ for (i = 0; i < cell->size; i++) {
+ if (overlap_table[i][0] == i) {
+ mapping_table[i] = index_prim_atom;
+ index_prim_atom++;
+ } else {
+ mapping_table[i] = mapping_table[overlap_table[i][0]];
+ }
+ }
+
+ /* Copy positions. Positions of overlapped atoms are averaged. */
+ if (! set_primitive_positions(primitive_cell,
+ position,
+ cell,
+ overlap_table)) {goto err;}
+
+ mat_free_VecDBL(position);
+ free_overlap_table(overlap_table, cell->size);
+ return 1;
+
+ err:
+ mat_free_VecDBL(position);
+ free_overlap_table(overlap_table, cell->size);
+ return 0;
+}
+
+static int set_primitive_positions(Cell * primitive_cell,
+ const VecDBL * position,
+ const Cell * cell,
+ int * const * table)
+{
+ int i, j, k, ratio, index_prim_atom;
+ int *is_equivalent;
+
+ is_equivalent = (int*)malloc(cell->size * sizeof(int));
+ for (i = 0; i < cell->size; i++) {
+ is_equivalent[i] = 0;
+ }
+ ratio = cell->size / primitive_cell->size;
+
+ /* Copy positions. Positions of overlapped atoms are averaged. */
+ index_prim_atom = 0;
+ for (i = 0; i < cell->size; i++) {
+
+ if (! is_equivalent[i]) {
+ primitive_cell->types[index_prim_atom] = cell->types[i];
+
+ for (j = 0; j < 3; j++) {
+ primitive_cell->position[index_prim_atom][j] = 0;
+ }
+
+ for (j = 0; j < ratio; j++) { /* Loop for averaging positions */
+ is_equivalent[table[i][j]] = 1;
+
+ for (k = 0; k < 3; k++) {
+ /* boundary treatment */
+ /* One is at right and one is at left or vice versa. */
+ if (mat_Dabs(position->vec[table[i][0]][k] -
+ position->vec[table[i][j]][k]) > 0.5) {
+ if (position->vec[table[i][j]][k] < 0) {
+ primitive_cell->position[index_prim_atom][k] =
+ primitive_cell->position[index_prim_atom][k] +
+ position->vec[table[i][j]][k] + 1;
+ } else {
+ primitive_cell->position[index_prim_atom][k] =
+ primitive_cell->position[index_prim_atom][k] +
+ position->vec[table[i][j]][k] - 1;
+ }
+
+ } else {
+ primitive_cell->position[index_prim_atom][k] =
+ primitive_cell->position[index_prim_atom][k] +
+ position->vec[table[i][j]][k];
+ }
+ }
+
+ }
+
+ for (j = 0; j < 3; j++) { /* take average and reduce */
+ primitive_cell->position[index_prim_atom][j] =
+ primitive_cell->position[index_prim_atom][j] / ratio;
+ primitive_cell->position[index_prim_atom][j] =
+ primitive_cell->position[index_prim_atom][j] -
+ mat_Nint(primitive_cell->position[index_prim_atom][j]);
+ }
+ index_prim_atom++;
+ }
+ }
+
+ free(is_equivalent);
+ is_equivalent = NULL;
+
+ if (! (index_prim_atom == primitive_cell->size)) {
+ warning_print("spglib: Atomic positions of primitive cell could not be determined ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ goto err;
+ }
+
+ return 1;
+
+ err:
+ return 0;
+}
+
+static VecDBL * get_positions_primitive(SPGCONST Cell * cell,
+ SPGCONST double prim_lat[3][3])
+{
+ int i, j;
+ double tmp_matrix[3][3], axis_inv[3][3];
+ VecDBL * position;
+
+ position = mat_alloc_VecDBL(cell->size);
+
+ mat_inverse_matrix_d3(tmp_matrix, prim_lat, 0);
+ mat_multiply_matrix_d3(axis_inv, tmp_matrix, cell->lattice);
+
+ /* Send atoms into the primitive cell */
+ for (i = 0; i < cell->size; i++) {
+ mat_multiply_matrix_vector_d3(position->vec[i],
+ axis_inv, cell->position[i]);
+ for (j = 0; j < 3; j++) {
+ position->vec[i][j] -= mat_Nint(position->vec[i][j]);
+ }
+ }
+
+ return position;
+}
+
+
+/* If overlap_table is correctly obtained, */
+/* shape of overlap_table will be (cell->size, cell->size / primitive->size). */
+static int get_overlap_table(int **overlap_table,
+ const int cell_size,
+ SPGCONST Cell *primitive_cell,
+ const VecDBL * position,
+ const double symprec)
+{
+ int i, j, attempt, num_overlap, ratio;
+ double trim_tolerance;
+
+ ratio = cell_size / primitive_cell->size;
+ trim_tolerance = symprec;
+
+ for (attempt = 0; attempt < 100; attempt++) {
+ /* Each value of -1 has to be overwritten by 0 or positive numbers. */
+ for (i = 0; i < cell_size; i++) {
+ for (j = 0; j < cell_size; j++) {
+ overlap_table[i][j] = -1;
+ }
+ }
+
+ for (i = 0; i < cell_size; i++) {
+ num_overlap = 0;
+ for (j = 0; j < cell_size; j++) {
+ if (cel_is_overlap(position->vec[i],
+ position->vec[j],
+ primitive_cell->lattice,
+ trim_tolerance)) {
+ overlap_table[i][num_overlap] = j;
+ num_overlap++;
+ }
+ }
+ }
+
+ if (check_overlap_table(overlap_table, cell_size, ratio)) {
+ goto found;
+ }
+
+ if (num_overlap < ratio) {
+ trim_tolerance *= INCREASE_RATE;
+ warning_print("spglib: Increase tolerance to %f ", trim_tolerance);
+ } else {
+ trim_tolerance *= REDUCE_RATE;
+ warning_print("spglib: Reduce tolerance to %f ", trim_tolerance);
+ }
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+
+ warning_print("spglib: Could not trim cell into primitive ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ return 0;
+
+ found:
+ return 1;
+
+}
+
+
+static int check_overlap_table(SPGCONST int **overlap_table,
+ const int cell_size,
+ const int ratio) {
+ int i, j, index_compared, all_ok;
+
+ all_ok = 1;
+ for (i = 0; i < cell_size; i++) {
+ index_compared = overlap_table[i][0];
+ for (j = 0; j < cell_size; j++) {
+ if (! (overlap_table[i][j] == overlap_table[index_compared][j])) {
+ all_ok = 0;
+ break;
+ }
+ if (j < ratio) {
+ if (overlap_table[i][j] == -1) {
+ all_ok = 0;
+ break;
+ }
+ } else {
+ if (overlap_table[i][j] > -1) {
+ all_ok = 0;
+ break;
+ }
+ }
+ }
+ if (! all_ok) {
+ break;
+ }
+ }
+ return all_ok;
+}
+
+static void free_overlap_table(int **table, const int size)
+{
+ int i;
+ for (i = 0; i < size; i++) {
+ free(table[i]);
+ table[i] = NULL;
+ }
+ free(table);
+ table = NULL;
+}
+
+static int ** allocate_overlap_table(const int size)
+{
+ int i;
+ int **table = (int**)malloc(size * sizeof(int*));
+ for (i = 0; i < size; i++) {
+ table[i] = (int*)malloc(size * sizeof(int));
+ }
+ return table;
+}
+
+
+static int get_primitive_lattice_vectors_iterative(double prim_lattice[3][3],
+ SPGCONST Cell * cell,
+ const VecDBL * pure_trans,
+ const double symprec)
+{
+ int i, multi, attempt;
+ double tolerance;
+ VecDBL * vectors, * pure_trans_reduced, *tmp_vec;
+
+ tolerance = symprec;
+ pure_trans_reduced = mat_alloc_VecDBL(pure_trans->size);
+ for (i = 0; i < pure_trans->size; i++) {
+ mat_copy_vector_d3(pure_trans_reduced->vec[i], pure_trans->vec[i]);
+ }
+
+ for (attempt = 0; attempt < 100; attempt++) {
+ multi = pure_trans_reduced->size;
+ vectors = get_translation_candidates(pure_trans_reduced);
+
+ /* Lattice of primitive cell is found among pure translation vectors */
+ if (get_primitive_lattice_vectors(prim_lattice,
+ vectors,
+ cell,
+ tolerance)) {
+
+ mat_free_VecDBL(vectors);
+ mat_free_VecDBL(pure_trans_reduced);
+
+ goto found;
+ } else {
+
+ tmp_vec = mat_alloc_VecDBL(multi);
+ for (i = 0; i < multi; i++) {
+ mat_copy_vector_d3(tmp_vec->vec[i], pure_trans_reduced->vec[i]);
+ }
+ mat_free_VecDBL(pure_trans_reduced);
+ pure_trans_reduced = sym_reduce_pure_translation(cell,
+ tmp_vec,
+ tolerance);
+ warning_print("Tolerance is reduced to %f (%d), size = %d\n",
+ tolerance, attempt, pure_trans_reduced->size);
+
+ mat_free_VecDBL(tmp_vec);
+ mat_free_VecDBL(vectors);
+
+ tolerance *= REDUCE_RATE;
+ }
+ }
+
+ /* Not found */
+ return 0;
+
+ found:
+#ifdef SPGWARNING
+ if (attempt > 0) {
+ printf("spglib: Tolerance to find primitive lattice vectors was changed to %f\n", tolerance);
+ }
+#endif
+ return multi;
+}
+
+static int get_primitive_lattice_vectors(double prim_lattice[3][3],
+ const VecDBL * vectors,
+ SPGCONST Cell * cell,
+ const double symprec)
+{
+ int i, j, k, size;
+ double initial_volume, volume;
+ double relative_lattice[3][3], min_vectors[3][3], tmp_lattice[3][3];
+ double inv_mat_dbl[3][3];
+ int inv_mat_int[3][3];
+
+ debug_print("get_primitive_lattice_vectors:\n");
+
+ size = vectors->size;
+ initial_volume = mat_Dabs(mat_get_determinant_d3(cell->lattice));
+
+ /* check volumes of all possible lattices, find smallest volume */
+ for (i = 0; i < size; i++) {
+ for (j = i + 1; j < size; j++) {
+ for (k = j + 1; k < size; k++) {
+ mat_multiply_matrix_vector_d3(tmp_lattice[0],
+ cell->lattice,
+ vectors->vec[i]);
+ mat_multiply_matrix_vector_d3(tmp_lattice[1],
+ cell->lattice,
+ vectors->vec[j]);
+ mat_multiply_matrix_vector_d3(tmp_lattice[2],
+ cell->lattice,
+ vectors->vec[k]);
+ volume = mat_Dabs(mat_get_determinant_d3(tmp_lattice));
+ if (volume > symprec) {
+ if (mat_Nint(initial_volume / volume) == size-2) {
+ mat_copy_vector_d3(min_vectors[0], vectors->vec[i]);
+ mat_copy_vector_d3(min_vectors[1], vectors->vec[j]);
+ mat_copy_vector_d3(min_vectors[2], vectors->vec[k]);
+ goto ret;
+ }
+ }
+ }
+ }
+ }
+
+ /* Not found */
+ warning_print("spglib: Primitive lattice vectors cound not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ return 0;
+
+ /* Found */
+ ret:
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ relative_lattice[j][i] = min_vectors[i][j];
+ }
+ }
+
+ mat_inverse_matrix_d3(inv_mat_dbl, relative_lattice, 0);
+ mat_cast_matrix_3d_to_3i(inv_mat_int, inv_mat_dbl);
+ if (abs(mat_get_determinant_i3(inv_mat_int)) == size-2) {
+ mat_cast_matrix_3i_to_3d(inv_mat_dbl, inv_mat_int);
+ mat_inverse_matrix_d3(relative_lattice, inv_mat_dbl, 0);
+ } else {
+ warning_print("spglib: Primitive lattice cleaning is incomplete ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+ mat_multiply_matrix_d3(prim_lattice, cell->lattice, relative_lattice);
+
+ return 1;
+}
+
+static VecDBL * get_translation_candidates(const VecDBL * pure_trans)
+{
+ int i, j, multi;
+ VecDBL * vectors;
+
+ multi = pure_trans->size;
+ vectors = mat_alloc_VecDBL(multi+2);
+
+ /* store pure translations in original cell */
+ /* as trial primitive lattice vectors */
+ for (i = 0; i < multi - 1; i++) {
+ mat_copy_vector_d3(vectors->vec[i], pure_trans->vec[i + 1]);
+ }
+
+ /* store lattice translations of original cell */
+ /* as trial primitive lattice vectors */
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ if (i == j) {
+ vectors->vec[i+multi-1][j] = 1;
+ } else {
+ vectors->vec[i+multi-1][j] = 0;
+ }
+ }
+ }
+
+ return vectors;
+}
+
diff --git a/src/primitive.h b/src/primitive.h
new file mode 100644
index 0000000..9e4c1dd
--- /dev/null
+++ b/src/primitive.h
@@ -0,0 +1,24 @@
+/* primitive.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __primitive_H__
+#define __primitive_H__
+
+#include "symmetry.h"
+#include "cell.h"
+#include "mathfunc.h"
+
+typedef struct {
+ Cell *cell;
+ VecDBL *pure_trans;
+} Primitive;
+
+Cell * prm_get_primitive(SPGCONST Cell * cell,
+ const double symprec);
+Cell * prm_get_primitive_with_mapping_table(int * mapping_table,
+ SPGCONST Cell * cell,
+ const double symprec);
+Primitive prm_get_primitive_and_pure_translations(SPGCONST Cell * cell,
+ const double symprec);
+double prm_get_current_tolerance(void);
+#endif
diff --git a/src/refinement.c b/src/refinement.c
new file mode 100644
index 0000000..a0140e7
--- /dev/null
+++ b/src/refinement.c
@@ -0,0 +1,750 @@
+/* refinement.c */
+/* Copyright (C) 2011 Atsushi Togo */
+
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "refinement.h"
+#include "cell.h"
+#include "mathfunc.h"
+#include "primitive.h"
+#include "spg_database.h"
+#include "site_symmetry.h"
+#include "symmetry.h"
+
+#include "debug.h"
+
+#define REDUCE_RATE 0.95
+
+static Cell * refine_cell(SPGCONST Cell * cell,
+ const double symprec);
+static Cell * get_bravais_exact_positions_and_lattice(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Spacegroup * spacegroup,
+ SPGCONST Cell * primitive,
+ const double symprec);
+static Cell * expand_positions(SPGCONST Cell * conv_prim,
+ SPGCONST Symmetry * conv_sym);
+static Cell * get_conventional_primitive(SPGCONST Spacegroup * spacegroup,
+ SPGCONST Cell * primitive);
+static Symmetry * get_db_symmetry(const int hall_number);
+static int get_number_of_pure_translation(SPGCONST Symmetry * conv_sym);
+static int get_conventional_lattice(double lattice[3][3],
+ const Holohedry holohedry,
+ SPGCONST double bravais_lattice[3][3]);
+static void set_monocli(double lattice[3][3],
+ SPGCONST double metric[3][3]);
+static void set_ortho(double lattice[3][3],
+ SPGCONST double metric[3][3]);
+static void set_tetra(double lattice[3][3],
+ SPGCONST double metric[3][3]);
+static void set_rhomb(double lattice[3][3],
+ SPGCONST double metric[3][3]);
+static void set_trigo(double lattice[3][3],
+ SPGCONST double metric[3][3]);
+static void set_cubic(double lattice[3][3],
+ SPGCONST double metric[3][3]);
+
+static Symmetry * get_refined_symmetry_operations(SPGCONST Cell * cell,
+ SPGCONST Cell * primitive,
+ SPGCONST Spacegroup * spacegroup,
+ const double symprec);
+static void set_translation_with_origin_shift(Symmetry *conv_sym,
+ const double origin_shift[3]);
+static Symmetry * get_primitive_db_symmetry(SPGCONST double t_mat[3][3],
+ const Symmetry *conv_sym,
+ const double symprec);
+static void get_corners(int corners[3][8],
+ SPGCONST int t_mat[3][3]);
+static void get_surrounding_frame(int frame[3],
+ SPGCONST int t_mat[3][3]);
+static Symmetry * reduce_symmetry_in_frame(const int frame[3],
+ SPGCONST Symmetry *prim_sym,
+ SPGCONST int t_mat[3][3],
+ SPGCONST double lattice[3][3],
+ const int multiplicity,
+ const double symprec);
+static VecDBL * reduce_lattice_points(SPGCONST double lattice[3][3],
+ const VecDBL *lattice_trans,
+ const double symprec);
+
+
+static SPGCONST int identity[3][3] = {
+ { 1, 0, 0},
+ { 0, 1, 0},
+ { 0, 0, 1},
+};
+
+
+Cell * ref_refine_cell(SPGCONST Cell * cell,
+ const double symprec)
+{
+ return refine_cell(cell, symprec);
+}
+
+/* symmetry->size = 0 is returned when it failed. */
+Symmetry * ref_get_refined_symmetry_operations(SPGCONST Cell * cell,
+ SPGCONST Cell * primitive,
+ SPGCONST Spacegroup * spacegroup,
+ const double symprec)
+{
+ return get_refined_symmetry_operations(cell, primitive, spacegroup, symprec);
+}
+
+void ref_get_Wyckoff_positions(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Cell * primitive,
+ SPGCONST Spacegroup * spacegroup,
+ const double symprec)
+{
+ Cell *conv_prim;
+
+ conv_prim = get_bravais_exact_positions_and_lattice(wyckoffs,
+ equiv_atoms,
+ spacegroup,
+ primitive,
+ symprec);
+ cel_free_cell(conv_prim);
+}
+
+static Cell * refine_cell(SPGCONST Cell * cell,
+ const double symprec)
+{
+ int *wyckoffs, *equiv_atoms;
+ double tolerance;
+ Cell *primitive, *bravais, *conv_prim;
+ Symmetry *conv_sym;
+ Spacegroup spacegroup;
+
+ debug_print("refine_cell:\n");
+
+ primitive = prm_get_primitive(cell, symprec);
+
+ if (primitive->size == 0) {
+ cel_free_cell(primitive);
+ bravais = cel_alloc_cell(0);
+ goto end;
+ }
+
+ tolerance = prm_get_current_tolerance();
+ spacegroup = spa_get_spacegroup_with_primitive(primitive, tolerance);
+
+ wyckoffs = (int*)malloc(sizeof(int) * primitive->size);
+ equiv_atoms = (int*)malloc(sizeof(int) * primitive->size);
+ conv_prim = get_bravais_exact_positions_and_lattice(wyckoffs,
+ equiv_atoms,
+ &spacegroup,
+ primitive,
+ tolerance);
+ free(equiv_atoms);
+ equiv_atoms = NULL;
+ free(wyckoffs);
+ wyckoffs = NULL;
+
+ conv_sym = get_db_symmetry(spacegroup.hall_number);
+ bravais = expand_positions(conv_prim, conv_sym);
+
+ debug_print("primitive cell in refine_cell:\n");
+ debug_print_matrix_d3(primitive->lattice);
+ debug_print("conventional lattice in refine_cell:\n");
+ debug_print_matrix_d3(conv_prim->lattice);
+ debug_print("bravais lattice in refine_cell:\n");
+ debug_print_matrix_d3(bravais->lattice);
+
+ cel_free_cell(conv_prim);
+ sym_free_symmetry(conv_sym);
+ cel_free_cell(primitive);
+
+ end: /* Return bravais->size = 0, if the bravais could not be found. */
+ return bravais;
+}
+
+/* Only the atoms corresponding to those in primitive are returned. */
+static Cell * get_bravais_exact_positions_and_lattice(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Spacegroup *spacegroup,
+ SPGCONST Cell * primitive,
+ const double symprec)
+{
+ int i;
+ Symmetry *conv_sym;
+ Cell *bravais;
+ VecDBL *exact_positions;
+
+ /* Positions of primitive atoms are represented wrt Bravais lattice */
+ bravais = get_conventional_primitive(spacegroup, primitive);
+ /* Symmetries in database (wrt Bravais lattice) */
+ conv_sym = get_db_symmetry(spacegroup->hall_number);
+ /* Lattice vectors are set. */
+ get_conventional_lattice(bravais->lattice,
+ spacegroup->holohedry,
+ spacegroup->bravais_lattice);
+
+ /* Symmetrize atomic positions of conventional unit cell */
+ exact_positions = ssm_get_exact_positions(wyckoffs,
+ equiv_atoms,
+ bravais,
+ conv_sym,
+ spacegroup->hall_number,
+ symprec);
+ sym_free_symmetry(conv_sym);
+
+ if (exact_positions->size > 0) {
+ for (i = 0; i < bravais->size; i++) {
+ mat_copy_vector_d3(bravais->position[i], exact_positions->vec[i]);
+ }
+ } else {
+ cel_free_cell(bravais);
+ bravais = cel_alloc_cell(0);
+ }
+
+ mat_free_VecDBL(exact_positions);
+
+ return bravais;
+}
+
+static Cell * expand_positions(SPGCONST Cell * conv_prim,
+ SPGCONST Symmetry * conv_sym)
+{
+ int i, j, k, num_pure_trans;
+ int num_atom;
+ Cell * bravais;
+
+ num_pure_trans = get_number_of_pure_translation(conv_sym);
+ bravais = cel_alloc_cell(conv_prim->size * num_pure_trans);
+
+ num_atom = 0;
+ for (i = 0; i < conv_sym->size; i++) {
+ /* Referred atoms in Bravais lattice */
+ if (mat_check_identity_matrix_i3(identity, conv_sym->rot[i])) {
+ for (j = 0; j < conv_prim->size; j++) {
+ bravais->types[num_atom] = conv_prim->types[j];
+ mat_copy_vector_d3(bravais->position[ num_atom ],
+ conv_prim->position[j]);
+ for (k = 0; k < 3; k++) {
+ bravais->position[num_atom][k] += conv_sym->trans[i][k];
+ bravais->position[num_atom][k] =
+ mat_Dmod1(bravais->position[num_atom][k]);
+ }
+ num_atom++;
+ }
+ }
+ }
+
+ mat_copy_matrix_d3(bravais->lattice, conv_prim->lattice);
+
+ return bravais;
+}
+
+
+static int get_number_of_pure_translation(SPGCONST Symmetry * conv_sym)
+{
+ int i, num_pure_trans = 0;
+
+ for (i = 0; i < conv_sym->size; i++) {
+ if (mat_check_identity_matrix_i3(identity, conv_sym->rot[i])) {
+ num_pure_trans++;
+ }
+ }
+
+ return num_pure_trans;
+}
+
+static Cell * get_conventional_primitive(SPGCONST Spacegroup * spacegroup,
+ SPGCONST Cell * primitive)
+{
+ int i, j;
+ double inv_brv[3][3], trans_mat[3][3];
+ Cell * conv_prim;
+
+ conv_prim = cel_alloc_cell(primitive->size);
+
+ mat_inverse_matrix_d3(inv_brv, spacegroup->bravais_lattice, 0);
+ mat_multiply_matrix_d3(trans_mat, inv_brv, primitive->lattice);
+
+ for (i = 0; i < primitive->size; i++) {
+ conv_prim->types[i] = primitive->types[i];
+ mat_multiply_matrix_vector_d3(conv_prim->position[i],
+ trans_mat,
+ primitive->position[i]);
+ for (j = 0; j < 3; j++) {
+ conv_prim->position[i][j] -= spacegroup->origin_shift[j];
+ conv_prim->position[i][j] -= mat_Nint(conv_prim->position[i][j]);
+ }
+ }
+
+ return conv_prim;
+}
+
+static Symmetry * get_db_symmetry(const int hall_number)
+{
+ int i;
+ int operation_index[2];
+ int rot[3][3];
+ double trans[3];
+ Symmetry *symmetry;
+
+ spgdb_get_operation_index(operation_index, hall_number);
+ symmetry = sym_alloc_symmetry(operation_index[0]);
+
+ for (i = 0; i < operation_index[0]; i++) {
+ /* rotation matrix matching and set difference of translations */
+ spgdb_get_operation(rot, trans, operation_index[1] + i);
+ mat_copy_matrix_i3(symmetry->rot[i], rot);
+ mat_copy_vector_d3(symmetry->trans[i], trans);
+ }
+
+ return symmetry;
+}
+
+static int get_conventional_lattice(double lattice[3][3],
+ const Holohedry holohedry,
+ SPGCONST double bravais_lattice[3][3])
+{
+ int i, j;
+ double metric[3][3];
+
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ lattice[i][j] = 0;
+ }
+ }
+
+ mat_get_metric(metric, bravais_lattice);
+
+ switch (holohedry) {
+ case TRICLI:
+ mat_copy_matrix_d3(lattice, bravais_lattice);
+ break;
+ case MONOCLI: /* b-axis is the unique axis. */
+ set_monocli(lattice, metric);
+ break;
+ case ORTHO:
+ set_ortho(lattice, metric);
+ break;
+ case TETRA:
+ set_tetra(lattice, metric);
+ break;
+ case RHOMB:
+ set_rhomb(lattice, metric);
+ break;
+ case TRIGO:
+ set_trigo(lattice, metric);
+ break;
+ case HEXA:
+ set_trigo(lattice, metric);
+ break;
+ case CUBIC:
+ set_cubic(lattice, metric);
+ break;
+ case NONE:
+ break;
+ }
+
+ return 1;
+}
+
+static void set_monocli(double lattice[3][3],
+ SPGCONST double metric[3][3])
+{
+ /* Lattice is expected to be C centring */
+ double a, b, c, beta;
+
+ debug_print("set_monocli:\n");
+ debug_print_matrix_d3(metric);
+
+ a = sqrt(metric[0][0]);
+ b = sqrt(metric[1][1]);
+ c = sqrt(metric[2][2]);
+ lattice[1][1] = b;
+ lattice[2][2] = c;
+ beta = acos(metric[0][2] / a / c);
+ lattice[2][0] = a * cos(beta);
+ lattice[0][0] = a * sin(beta);
+
+ debug_print("beta %f\n", beta);
+ debug_print_matrix_d3(lattice);
+}
+
+static void set_ortho(double lattice[3][3],
+ SPGCONST double metric[3][3])
+{
+ double a, b, c;
+ a = sqrt(metric[0][0]);
+ b = sqrt(metric[1][1]);
+ c = sqrt(metric[2][2]);
+ lattice[0][0] = a;
+ lattice[1][1] = b;
+ lattice[2][2] = c;
+}
+
+static void set_tetra(double lattice[3][3],
+ SPGCONST double metric[3][3])
+{
+ double a, b, c;
+ a = sqrt(metric[0][0]);
+ b = sqrt(metric[1][1]);
+ c = sqrt(metric[2][2]);
+ lattice[0][0] = (a + b) / 2;
+ lattice[1][1] = (a + b) / 2;
+ lattice[2][2] = c;
+}
+
+static void set_rhomb(double lattice[3][3],
+ SPGCONST double metric[3][3])
+{
+ double a, b, c, angle, ahex, chex;
+
+
+ a = sqrt(metric[0][0]);
+ b = sqrt(metric[1][1]);
+ c = sqrt(metric[2][2]);
+ angle = acos((metric[0][1] / a / b +
+ metric[0][2] / a / c +
+ metric[1][2] / b / c) / 3);
+
+ /* Reference, http://cst-www.nrl.navy.mil/lattice/struk/rgr.html */
+ ahex = 2 * (a+b+c)/3 * sin(angle / 2);
+ chex = (a+b+c)/3 * sqrt(3 * (1 + 2 * cos(angle))) ;
+ lattice[0][0] = ahex / 2;
+ lattice[1][0] = -ahex / (2 * sqrt(3));
+ lattice[2][0] = chex / 3;
+ lattice[1][1] = ahex / sqrt(3);
+ lattice[2][1] = chex / 3;
+ lattice[0][2] = -ahex / 2;
+ lattice[1][2] = -ahex / (2 * sqrt(3));
+ lattice[2][2] = chex / 3;
+
+
+#ifdef DEBUG
+ debug_print("Rhombo lattice: %f %f %f %f %f %f\n", a, b, c,
+ acos(metric[0][1] / a / b) / 3.14 * 180,
+ acos(metric[0][2] / a / c) / 3.14 * 180,
+ acos(metric[1][2] / b / c) / 3.14 * 180);
+ double dmetric[3][3];
+ mat_get_metric(dmetric, lattice);
+ a = sqrt(dmetric[0][0]);
+ b = sqrt(dmetric[1][1]);
+ c = sqrt(dmetric[2][2]);
+ debug_print("Rhombo lattice symmetrized: %f %f %f %f %f %f\n",
+ a, b, c,
+ acos(dmetric[0][1] / a / b) / 3.14 * 180,
+ acos(dmetric[0][2] / a / c) / 3.14 * 180,
+ acos(dmetric[1][2] / b / c) / 3.14 * 180);
+#endif
+}
+
+static void set_trigo(double lattice[3][3],
+ SPGCONST double metric[3][3])
+{
+ double a, b, c;
+ a = sqrt(metric[0][0]);
+ b = sqrt(metric[1][1]);
+ c = sqrt(metric[2][2]);
+ lattice[0][0] = (a + b) / 2;
+ lattice[0][1] = - (a + b) / 4;
+ lattice[1][1] = (a + b) / 4 * sqrt(3);
+ lattice[2][2] = c;
+}
+
+static void set_cubic(double lattice[3][3],
+ SPGCONST double metric[3][3])
+{
+ double a, b, c;
+ a = sqrt(metric[0][0]);
+ b = sqrt(metric[1][1]);
+ c = sqrt(metric[2][2]);
+ lattice[0][0] = (a + b + c) / 3;
+ lattice[1][1] = (a + b + c) / 3;
+ lattice[2][2] = (a + b + c) / 3;
+}
+
+
+
+
+
+static Symmetry * get_refined_symmetry_operations(SPGCONST Cell * cell,
+ SPGCONST Cell * primitive,
+ SPGCONST Spacegroup * spacegroup,
+ const double symprec)
+{
+ int t_mat_int[3][3];
+ int frame[3];
+ double inv_mat[3][3], t_mat[3][3];
+ Symmetry *conv_sym, *prim_sym, *symmetry;
+
+ /* Primitive symmetry from database */
+ conv_sym = get_db_symmetry(spacegroup->hall_number);
+ set_translation_with_origin_shift(conv_sym, spacegroup->origin_shift);
+ mat_inverse_matrix_d3(inv_mat, primitive->lattice, symprec);
+ mat_multiply_matrix_d3(t_mat, inv_mat, spacegroup->bravais_lattice);
+ prim_sym = get_primitive_db_symmetry(t_mat, conv_sym, symprec);
+
+ /* Input cell symmetry from primitive symmetry */
+ mat_inverse_matrix_d3(inv_mat, primitive->lattice, symprec);
+ mat_multiply_matrix_d3(t_mat, inv_mat, cell->lattice);
+ mat_cast_matrix_3d_to_3i(t_mat_int, t_mat);
+ get_surrounding_frame(frame, t_mat_int);
+ symmetry = reduce_symmetry_in_frame(frame,
+ prim_sym,
+ t_mat_int,
+ cell->lattice,
+ cell->size / primitive->size,
+ symprec);
+
+ /* sym_free_symmetry(f_sym); */
+ sym_free_symmetry(prim_sym);
+ sym_free_symmetry(conv_sym);
+
+ return symmetry;
+}
+
+static void set_translation_with_origin_shift(Symmetry *conv_sym,
+ const double origin_shift[3])
+{
+ int i, j;
+ double tmp_vec[3];
+ int tmp_mat[3][3];
+
+ /* t' = t - (R-E)w, w is the origin shift */
+ for (i = 0; i < conv_sym->size; i++) {
+ mat_copy_matrix_i3(tmp_mat, conv_sym->rot[i]);
+ tmp_mat[0][0]--;
+ tmp_mat[1][1]--;
+ tmp_mat[2][2]--;
+ mat_multiply_matrix_vector_id3(tmp_vec, tmp_mat, origin_shift);
+ for (j = 0; j < 3; j++) {
+ conv_sym->trans[i][j] -= tmp_vec[j];
+ }
+ }
+}
+
+static Symmetry * get_primitive_db_symmetry(SPGCONST double t_mat[3][3],
+ const Symmetry *conv_sym,
+ const double symprec)
+{
+ int i, j, num_op;
+ double inv_mat[3][3], tmp_mat[3][3];
+ MatINT *r_prim;
+ VecDBL *t_prim;
+ Symmetry *prim_sym;
+
+ r_prim = mat_alloc_MatINT(conv_sym->size);
+ t_prim = mat_alloc_VecDBL(conv_sym->size);
+
+ mat_inverse_matrix_d3(inv_mat, t_mat, symprec);
+
+ num_op = 0;
+ for (i = 0; i < conv_sym->size; i++) {
+ for (j = 0; j < i; j++) {
+ if (mat_check_identity_matrix_i3(conv_sym->rot[i],
+ conv_sym->rot[j])) {
+ goto pass;
+ }
+ }
+
+ /* R' = T*R*T^-1 */
+ mat_multiply_matrix_di3(tmp_mat, t_mat, conv_sym->rot[i]);
+ mat_multiply_matrix_d3(tmp_mat, tmp_mat, inv_mat);
+ mat_cast_matrix_3d_to_3i(r_prim->mat[ num_op ], tmp_mat);
+ /* t' = T*t */
+ mat_multiply_matrix_vector_d3(t_prim->vec[ num_op ],
+ t_mat,
+ conv_sym->trans[ i ]);
+ num_op++;
+
+ pass:
+ ;
+ }
+
+ prim_sym = sym_alloc_symmetry(num_op);
+ for (i = 0; i < num_op; i++) {
+ mat_copy_matrix_i3(prim_sym->rot[i], r_prim->mat[i]);
+ for (j = 0; j < 3; j++) {
+ prim_sym->trans[i][j] = t_prim->vec[i][j] - mat_Nint(t_prim->vec[i][j]);
+ }
+ }
+
+ mat_free_MatINT(r_prim);
+ mat_free_VecDBL(t_prim);
+
+ return prim_sym;
+}
+
+static void get_surrounding_frame(int frame[3],
+ SPGCONST int t_mat[3][3])
+{
+ int i, j, max, min;
+ int corners[3][8];
+
+ get_corners(corners, t_mat);
+
+ for (i = 0; i < 3; i++) {
+ max = corners[i][0];
+ min = corners[i][0];
+ for (j = 1; j < 8; j++) {
+ if (max < corners[i][j]) {
+ max = corners[i][j];
+ }
+ if (min > corners[i][j]) {
+ min = corners[i][j];
+ }
+ }
+ frame[i] = max - min;
+ }
+}
+
+static void get_corners(int corners[3][8],
+ SPGCONST int t_mat[3][3])
+{
+ int i, j;
+
+ /* O */
+ for (i = 0; i < 3; i++) {
+ corners[i][0] = 0;
+ }
+
+ /* a,b,c */
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ corners[j][i+1] = t_mat[j][i];
+ }
+ }
+
+ /* b+c, c+a, a+b */
+ for (i = 0; i < 3; i++) {
+ for (j = 0; j < 3; j++) {
+ corners[j][i+4] = t_mat[j][(i+1) % 3] + t_mat[j][(i+2) % 3];
+ }
+ }
+
+ /* a+b+c */
+ for (i = 0; i < 3; i++) {
+ corners[i][7] = t_mat[i][0] + t_mat[i][1] + t_mat[i][2];
+ }
+}
+
+static Symmetry * reduce_symmetry_in_frame(const int frame[3],
+ SPGCONST Symmetry *prim_sym,
+ SPGCONST int t_mat[3][3],
+ SPGCONST double lattice[3][3],
+ const int multiplicity,
+ const double symprec)
+{
+ int i, j, k, l, num_trans, size_sym_orig;
+ Symmetry *symmetry, *t_sym;
+ double inv_tmat[3][3], tmp_mat[3][3], tmp_rot_d[3][3], tmp_lat_d[3][3], tmp_lat_i[3][3];
+ int tmp_rot_i[3][3];
+ VecDBL *pure_trans, *lattice_trans;
+
+ mat_cast_matrix_3i_to_3d(tmp_mat, t_mat);
+ mat_inverse_matrix_d3(inv_tmat, tmp_mat, symprec);
+
+ /* transformed lattice points */
+ lattice_trans = mat_alloc_VecDBL(frame[0]*frame[1]*frame[2]);
+ num_trans = 0;
+ for (i = 0; i < frame[0]; i++) {
+ for (j = 0; j < frame[1]; j++) {
+ for (k = 0; k < frame[2]; k++) {
+ lattice_trans->vec[num_trans][0] = i;
+ lattice_trans->vec[num_trans][1] = j;
+ lattice_trans->vec[num_trans][2] = k;
+
+ mat_multiply_matrix_vector_d3(lattice_trans->vec[num_trans],
+ inv_tmat,
+ lattice_trans->vec[num_trans]);
+ for (l = 0; l < 3; l++) {
+ /* t' = T^-1*t */
+ lattice_trans->vec[num_trans][l] = \
+ mat_Dmod1(lattice_trans->vec[num_trans][l]);
+ }
+ num_trans++;
+ }
+ }
+ }
+
+ /* transformed symmetry operations of primitive cell */
+ t_sym = sym_alloc_symmetry(prim_sym->size);
+ size_sym_orig = 0;
+ for (i = 0; i < prim_sym->size; i++) {
+ /* R' = T^-1*R*T */
+ mat_multiply_matrix_di3(tmp_mat, inv_tmat, prim_sym->rot[i]);
+ mat_multiply_matrix_di3(tmp_rot_d, tmp_mat, t_mat);
+ mat_cast_matrix_3d_to_3i(tmp_rot_i, tmp_rot_d);
+ mat_multiply_matrix_di3(tmp_lat_i, lattice, tmp_rot_i);
+ mat_multiply_matrix_d3(tmp_lat_d, lattice, tmp_rot_d);
+ if (mat_check_identity_matrix_d3(tmp_lat_i, tmp_lat_d, symprec)) {
+ mat_copy_matrix_i3(t_sym->rot[size_sym_orig], tmp_rot_i);
+ /* t' = T^-1*t */
+ mat_multiply_matrix_vector_d3(t_sym->trans[size_sym_orig],
+ inv_tmat, prim_sym->trans[i]);
+ size_sym_orig++;
+ }
+ }
+
+ /* reduce lattice points */
+ pure_trans = reduce_lattice_points(lattice,
+ lattice_trans,
+ symprec);
+
+ if (! (pure_trans->size == multiplicity)) {
+ symmetry = sym_alloc_symmetry(0);
+ goto ret;
+ }
+
+ /* copy symmetry operations upon lattice points */
+ symmetry = sym_alloc_symmetry(pure_trans->size * size_sym_orig);
+ for (i = 0; i < pure_trans->size; i++) {
+ for (j = 0; j < size_sym_orig; j++) {
+ mat_copy_matrix_i3(symmetry->rot[size_sym_orig * i + j],
+ t_sym->rot[j]);
+ mat_copy_vector_d3(symmetry->trans[size_sym_orig * i + j],
+ t_sym->trans[j]);
+ for (k = 0; k < 3; k++) {
+ symmetry->trans[size_sym_orig * i + j][k] += pure_trans->vec[i][k];
+ symmetry->trans[size_sym_orig * i + j][k] = \
+ mat_Dmod1(symmetry->trans[size_sym_orig * i + j][k]);
+ }
+ }
+ }
+
+
+ ret:
+ mat_free_VecDBL(lattice_trans);
+ mat_free_VecDBL(pure_trans);
+ sym_free_symmetry(t_sym);
+
+ return symmetry;
+}
+
+static VecDBL * reduce_lattice_points(SPGCONST double lattice[3][3],
+ const VecDBL *lattice_trans,
+ const double symprec)
+{
+ int i, j, is_found, num_pure_trans;
+ VecDBL *pure_trans, *t;
+
+ num_pure_trans = 0;
+ t = mat_alloc_VecDBL(lattice_trans->size);
+ for (i = 0; i < lattice_trans->size; i++) {
+ is_found = 0;
+ for (j = 0; j < num_pure_trans; j++) {
+ if (cel_is_overlap(lattice_trans->vec[i], t->vec[j], lattice, symprec)) {
+ is_found = 1;
+ break;
+ }
+ }
+ if (! is_found) {
+ mat_copy_vector_d3(t->vec[num_pure_trans], lattice_trans->vec[i]);
+ num_pure_trans++;
+ }
+ }
+
+ pure_trans = mat_alloc_VecDBL(num_pure_trans);
+ for (i = 0; i < num_pure_trans; i++) {
+ mat_copy_vector_d3(pure_trans->vec[i], t->vec[i]);
+ }
+ mat_free_VecDBL(t);
+
+ return pure_trans;
+}
diff --git a/src/refinement.h b/src/refinement.h
new file mode 100644
index 0000000..7ac21fd
--- /dev/null
+++ b/src/refinement.h
@@ -0,0 +1,24 @@
+/* bravais.h */
+/* Copyright (C) 2011 Atsushi Togo */
+
+#ifndef __refinement_H__
+#define __refinement_H__
+
+#include "cell.h"
+#include "mathfunc.h"
+#include "spacegroup.h"
+#include "symmetry.h"
+
+Cell * ref_refine_cell(SPGCONST Cell * cell,
+ const double symprec);
+Symmetry * ref_get_refined_symmetry_operations(SPGCONST Cell * cell,
+ SPGCONST Cell * primitive,
+ SPGCONST Spacegroup * spacegroup,
+ const double symprec);
+void ref_get_Wyckoff_positions(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Cell * primitive,
+ SPGCONST Spacegroup * spacegroup,
+ const double symprec);
+
+#endif
diff --git a/src/site_symmetry.c b/src/site_symmetry.c
new file mode 100644
index 0000000..88198de
--- /dev/null
+++ b/src/site_symmetry.c
@@ -0,0 +1,231 @@
+/* site_symmetry.c */
+/* Copyright (C) 2011 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "cell.h"
+#include "mathfunc.h"
+#include "symmetry.h"
+#include "sitesym_database.h"
+
+#include "debug.h"
+
+static VecDBL * get_exact_positions(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Cell * bravais,
+ SPGCONST Symmetry * conv_sym,
+ const int hall_number,
+ const double symprec);
+static void get_exact_location(double position[3],
+ SPGCONST Symmetry * conv_sym,
+ SPGCONST double bravais_lattice[3][3],
+ const double symprec);
+static int get_Wyckoff_notation(double position[3],
+ SPGCONST Symmetry * conv_sym,
+ SPGCONST double bravais_lattice[3][3],
+ const int hall_number,
+ const double symprec);
+
+
+VecDBL * ssm_get_exact_positions(int *wyckoffs,
+ int *equiv_atoms,
+ SPGCONST Cell * bravais,
+ SPGCONST Symmetry * conv_sym,
+ const int hall_number,
+ const double symprec)
+{
+ return get_exact_positions(wyckoffs,
+ equiv_atoms,
+ bravais,
+ conv_sym,
+ hall_number,
+ symprec);
+}
+
+static VecDBL * get_exact_positions(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Cell * bravais,
+ SPGCONST Symmetry * conv_sym,
+ const int hall_number,
+ const double symprec)
+{
+ int i, j, k, l, num_indep_atoms;
+ double pos[3];
+ int *indep_atoms;
+ VecDBL *positions;
+
+ debug_print("get_symmetrized_positions\n");
+
+ indep_atoms = (int*) malloc(sizeof(int) * bravais->size);
+ positions = mat_alloc_VecDBL(bravais->size);
+ num_indep_atoms = 0;
+
+ for (i = 0; i < bravais->size; i++) {
+ /* Check if atom_i overlap to an atom already set at the exact position. */
+ for (j = 0; j < num_indep_atoms; j++) {
+ for (k = 0; k < conv_sym->size; k++) {
+ mat_multiply_matrix_vector_id3(pos,
+ conv_sym->rot[k],
+ positions->vec[indep_atoms[j]]);
+ for (l = 0; l < 3; l++) {
+ pos[l] += conv_sym->trans[k][l];
+ }
+ if (cel_is_overlap(pos,
+ bravais->position[i],
+ bravais->lattice,
+ symprec)) {
+ /* Equivalent atom was found. */
+ for (l = 0; l < 3; l++) {
+ pos[l] -= mat_Nint(pos[l]);
+ }
+ mat_copy_vector_d3(positions->vec[i], pos);
+ wyckoffs[i] = wyckoffs[indep_atoms[j]];
+ equiv_atoms[i] = indep_atoms[j];
+ goto escape;
+ }
+ }
+ }
+
+ /* No equivalent atom was found. */
+ indep_atoms[num_indep_atoms] = i;
+ num_indep_atoms++;
+ mat_copy_vector_d3(positions->vec[i], bravais->position[i]);
+ get_exact_location(positions->vec[i],
+ conv_sym,
+ bravais->lattice,
+ symprec);
+ wyckoffs[i] = get_Wyckoff_notation(positions->vec[i],
+ conv_sym,
+ bravais->lattice,
+ hall_number,
+ symprec);
+ equiv_atoms[i] = i;
+ escape:
+ ;
+ }
+
+ free(indep_atoms);
+ indep_atoms = NULL;
+
+ return positions;
+}
+
+
+/* Site-symmetry is used to determine exact location of an atom */
+/* R. W. Grosse-Kunstleve and P. D. Adams */
+/* Acta Cryst. (2002). A58, 60-65 */
+static void get_exact_location(double position[3],
+ SPGCONST Symmetry * conv_sym,
+ SPGCONST double bravais_lattice[3][3],
+ const double symprec)
+{
+ int i, j, k, num_sum;
+ double sum_rot[3][3];
+ double pos[3], sum_trans[3];
+
+ num_sum = 0;
+ for (i = 0; i < 3; i++) {
+ sum_trans[i] = 0.0;
+ for (j = 0; j < 3; j++) {
+ sum_rot[i][j] = 0;
+ }
+ }
+
+ for (i = 0; i < conv_sym->size; i++) {
+ mat_multiply_matrix_vector_id3(pos,
+ conv_sym->rot[i],
+ position);
+ for (j = 0; j < 3; j++) {
+ pos[j] += conv_sym->trans[i][j];
+ }
+
+ if (cel_is_overlap(pos,
+ position,
+ bravais_lattice,
+ symprec)) {
+ for (j = 0; j < 3; j++) {
+ sum_trans[j] += conv_sym->trans[i][j] -
+ mat_Nint(pos[j] - position[j]);
+ for (k = 0; k < 3; k++) {
+ sum_rot[j][k] += conv_sym->rot[i][j][k];
+ }
+ }
+ num_sum++;
+ }
+ }
+
+ for (i = 0; i < 3; i++) {
+ sum_trans[i] /= num_sum;
+ for (j = 0; j < 3; j++) {
+ sum_rot[i][j] /= num_sum;
+ }
+ }
+
+ /* (sum_rot|sum_trans) is the special-position operator. */
+ /* Elements of sum_rot can be fractional values. */
+ mat_multiply_matrix_vector_d3(position,
+ sum_rot,
+ position);
+
+ for (i = 0; i < 3; i++) {
+ position[i] += sum_trans[i];
+ }
+
+}
+
+static int get_Wyckoff_notation(double position[3],
+ SPGCONST Symmetry * conv_sym,
+ SPGCONST double bravais_lattice[3][3],
+ const int hall_number,
+ const double symprec)
+{
+ int i, j, k, l, at_orbit, num_sitesym, wyckoff_letter=-1;
+ int indices_wyc[2];
+ int rot[3][3];
+ double trans[3], orbit[3];
+ VecDBL *pos_rot;
+
+ pos_rot = mat_alloc_VecDBL(conv_sym->size);
+ for (i = 0; i < conv_sym->size; i++) {
+ mat_multiply_matrix_vector_id3(pos_rot->vec[i], conv_sym->rot[i], position);
+ for (j = 0; j < 3; j++) {
+ pos_rot->vec[i][j] += conv_sym->trans[i][j];
+ }
+ }
+
+ ssmdb_get_wyckoff_indices(indices_wyc, hall_number);
+ for (i = 0; i < indices_wyc[1]; i++) {
+ num_sitesym = ssmdb_get_coordinate(rot, trans, i + indices_wyc[0]);
+ for (j = 0; j < pos_rot->size; j++) {
+ at_orbit = 0;
+ for (k = 0; k < pos_rot->size; k++) {
+ if (cel_is_overlap(pos_rot->vec[j],
+ pos_rot->vec[k],
+ bravais_lattice,
+ symprec)) {
+ mat_multiply_matrix_vector_id3(orbit, rot, pos_rot->vec[k]);
+ for (l = 0; l < 3; l++) {
+ orbit[l] += trans[l];
+ }
+ if (cel_is_overlap(pos_rot->vec[k],
+ orbit,
+ bravais_lattice,
+ symprec)) {
+ at_orbit++;
+ }
+ }
+ }
+ if (at_orbit == conv_sym->size / num_sitesym) {
+ /* Database is made reversed order, e.g., gfedcba. */
+ /* wyckoff is set 0 1 2 3 4... for a b c d e..., respectively. */
+ wyckoff_letter = indices_wyc[1] - i - 1;
+ goto end;
+ }
+ }
+ }
+
+ end:
+ mat_free_VecDBL(pos_rot);
+ return wyckoff_letter;
+}
+
diff --git a/src/site_symmetry.h b/src/site_symmetry.h
new file mode 100644
index 0000000..9ec1f5e
--- /dev/null
+++ b/src/site_symmetry.h
@@ -0,0 +1,18 @@
+/* site_symmetry.h */
+/* Copyright (C) 2011 Atsushi Togo */
+
+#ifndef __site_symmetry_H__
+#define __site_symmetry_H__
+
+#include "cell.h"
+#include "mathfunc.h"
+#include "symmetry.h"
+
+VecDBL * ssm_get_exact_positions(int * wyckoffs,
+ int * equiv_atoms,
+ SPGCONST Cell * bravais,
+ SPGCONST Symmetry * conv_sym,
+ const int hall_number,
+ const double symprec);
+
+#endif
diff --git a/src/sitesym_database.c b/src/sitesym_database.c
new file mode 100644
index 0000000..a446f21
--- /dev/null
+++ b/src/sitesym_database.c
@@ -0,0 +1,1152 @@
+/* sitesym_database.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+static const int position_wyckoff[] =
+ { 0, /* The first element is dummy. */
+ 1, 2, 11, 16, 21, 26, 27, 28, 29, 32,
+ 35, 38, 41, 44, 47, 50, 53, 56, 59, 62,
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
+ 76, 78, 80, 82, 84, 86, 88, 90, 92, 93,
+ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
+ 104, 105, 106, 107, 108, 109, 110, 125, 140, 155,
+ 161, 167, 173, 183, 193, 203, 213, 223, 233, 243,
+ 253, 263, 270, 277, 284, 291, 298, 305, 312, 319,
+ 326, 331, 336, 341, 346, 351, 356, 361, 366, 371,
+ 377, 383, 389, 395, 401, 407, 413, 419, 425, 431,
+ 437, 443, 449, 455, 461, 467, 473, 479, 500, 505,
+ 510, 515, 518, 521, 524, 525, 528, 531, 534, 546,
+ 558, 570, 581, 592, 596, 605, 614, 623, 626, 629,
+ 632, 635, 638, 641, 646, 651, 656, 660, 664, 668,
+ 672, 676, 680, 681, 682, 683, 684, 685, 686, 689,
+ 692, 695, 698, 701, 704, 706, 708, 710, 712, 714,
+ 716, 719, 722, 725, 726, 727, 728, 729, 730, 731,
+ 734, 737, 740, 746, 752, 758, 760, 762, 764, 766,
+ 768, 770, 774, 778, 782, 788, 794, 800, 806, 812,
+ 818, 822, 826, 830, 834, 838, 842, 845, 848, 851,
+ 854, 857, 860, 862, 864, 866, 868, 870, 872, 877,
+ 882, 887, 889, 891, 893, 898, 903, 908, 911, 914,
+ 917, 920, 923, 926, 929, 932, 935, 962, 975, 988,
+ 1006, 1024, 1042, 1055, 1068, 1081, 1094, 1107, 1125, 1137,
+ 1149, 1161, 1173, 1185, 1197, 1202, 1207, 1212, 1217, 1222,
+ 1227, 1236, 1245, 1254, 1263, 1272, 1281, 1287, 1293, 1299,
+ 1305, 1311, 1317, 1326, 1335, 1344, 1349, 1354, 1359, 1364,
+ 1369, 1374, 1379, 1384, 1389, 1397, 1405, 1413, 1420, 1427,
+ 1434, 1441, 1448, 1455, 1459, 1463, 1467, 1471, 1475, 1479,
+ 1482, 1485, 1489, 1493, 1497, 1501, 1505, 1509, 1517, 1525,
+ 1533, 1541, 1549, 1557, 1564, 1571, 1578, 1585, 1592, 1599,
+ 1617, 1635, 1653, 1666, 1679, 1692, 1707, 1722, 1737, 1752,
+ 1767, 1782, 1791, 1800, 1809, 1818, 1827, 1836, 1845, 1854,
+ 1863, 1872, 1881, 1890, 1906, 1914, 1922, 1937, 1948, 1959,
+ 1970, 1976, 1982, 1992, 2002, 2012, 2022, 2032, 2042, 2046,
+ 2047, 2051, 2052, 2055, 2057, 2065, 2072, 2084, 2095, 2102,
+ 2109, 2116, 2123, 2132, 2138, 2144, 2160, 2167, 2171, 2173,
+ 2189, 2196, 2200, 2202, 2213, 2220, 2227, 2231, 2236, 2240,
+ 2244, 2247, 2253, 2256, 2261, 2265, 2268, 2270, 2285, 2299,
+ 2305, 2310, 2322, 2332, 2341, 2350, 2360, 2369, 2379, 2384,
+ 2405, 2419, 2433, 2447, 2458, 2469, 2481, 2490, 2501, 2512,
+ 2519, 2526, 2544, 2560, 2571, 2582, 2596, 2610, 2619, 2630,
+ 2638, 2646, 2656, 2666, 2681, 2694, 2703, 2712, 2719, 2726,
+ 2730, 2731, 2732, 2734, 2736, 2743, 2749, 2755, 2767, 2774,
+ 2777, 2780, 2783, 2786, 2792, 2798, 2803, 2807, 2811, 2814,
+ 2817, 2820, 2822, 2824, 2836, 2845, 2855, 2862, 2871, 2880,
+ 2886, 2892, 2896, 2897, 2898, 2901, 2904, 2907, 2919, 2931,
+ 2940, 2954, 2957, 2960, 2971, 2982, 2991, 2997, 3001, 3005,
+ 3009, 3024, 3036, 3048, 3057, 3075, 3088, 3100, 3112, 3122,
+ 3130, 3136, 3138, 3141, 3153, 3161, 3169, 3178, 3185, 3192,
+ 3200, 3204, 3209, 3220, 3233, 3243, 3251, 3261, 3266, 3271,
+ 3280, 3290, 3299, 3307, 3316, 3324, 3329, 3343, 3352, 3361,
+ 3373, 3385, 3397, 3409, 3419, 3428, 3437, 3445, 3453, 3465,
+ 3473, };
+
+static const int coordinates_first[] =
+ { 0,
+ 63923, 63923, 657239062, 27383062, 630995062,
+ 656145562, 629901562, 26289562, 1139062, 45562,
+ 63923, 630995197, 629901697, 1139197, 45697,
+ 63923, 656145563, 26289563, 629901563, 45563,
+ 63923, 27401287, 1157287, 26307787, 63787,
+ 63923, 63923, 63923, 63923, 1139197,
+ 45697, 63923, 629901697, 45697, 63923,
+ 629901697, 45697, 63923, 629901563, 45563,
+ 63923, 26289563, 45563, 63923, 26289563,
+ 45563, 63923, 26307787, 63787, 63923,
+ 1157287, 63787, 63923, 1157287, 63787,
+ 63923, 26307788, 63788, 63923, 1157422,
+ 63922, 63923, 629901698, 45698, 63923,
+ 63923, 63923, 63923, 63923, 63923,
+ 63923, 63923, 63923, 63923, 63788,
+ 63923, 63788, 63923, 63788, 63923,
+ 63922, 63923, 63922, 63923, 63922,
+ 63923, 45698, 63923, 45698, 63923,
+ 45698, 63923, 63923, 63923, 63923,
+ 63923, 63923, 63923, 63923, 63923,
+ 63923, 63923, 63923, 63923, 63923,
+ 63923, 63923, 63923, 63923, 63923,
+ 26307788, 63788, 630995197, 1139197, 629901697,
+ 45697, 657239062, 630995062, 27383062, 656145562,
+ 629901562, 1139062, 26289562, 45562, 63923,
+ 1157422, 63922, 656145563, 629901563, 26289563,
+ 45563, 657239062, 656145562, 630995062, 27383062,
+ 26289562, 629901562, 1139062, 45562, 63923,
+ 629901698, 45698, 27401287, 26307787, 1157287,
+ 63787, 657239062, 27383062, 656145562, 630995062,
+ 1139062, 26289562, 629901562, 45562, 63923,
+ 13185788, 630995062, 1139062, 629901562, 45562,
+ 63923, 610672, 656145562, 629901562, 26289562,
+ 45562, 63923, 314973698, 27383062, 26289562,
+ 1139062, 45562, 63923, 63788, 1139197,
+ 45697, 329189062, 328095562, 27383062, 1139062,
+ 26289562, 45562, 63923, 63788, 629901697,
+ 45697, 643570312, 13714312, 656145562, 629901562,
+ 26289562, 45562, 63923, 63788, 1139197,
+ 45697, 329735812, 328642312, 27383062, 1139062,
+ 26289562, 45562, 63923, 63922, 629901563,
+ 45563, 643570312, 13714312, 630995062, 629901562,
+ 1139062, 45562, 63923, 63922, 26289563,
+ 45563, 341764312, 315520312, 27383062, 26289562,
+ 1139062, 45562, 63923, 63922, 629901563,
+ 45563, 958498312, 328642312, 630995062, 629901562,
+ 1139062, 45562, 63923, 45698, 26307787,
+ 63787, 341764312, 315520312, 656145562, 26289562,
+ 629901562, 45562, 63923, 45698, 1157287,
+ 63787, 329189062, 328095562, 630995062, 1139062,
+ 629901562, 45562, 63923, 45698, 26307787,
+ 63787, 354886312, 328642312, 656145562, 26289562,
+ 629901562, 45562, 63923, 630448447, 592447,
+ 629901562, 26289562, 656145562, 45562, 63923,
+ 945376447, 315520447, 629901562, 26289562, 656145562,
+ 45562, 63923, 945923197, 944829697, 1139062,
+ 26289562, 27383062, 45562, 63923, 341217563,
+ 314973563, 26289562, 1139062, 27383062, 45562,
+ 63923, 354339563, 328095563, 26289562, 1139062,
+ 27383062, 45562, 63923, 669267563, 39411563,
+ 629901562, 1139062, 630995062, 45562, 63923,
+ 14279287, 13185787, 1139062, 629901562, 630995062,
+ 45562, 63923, 14826037, 13732537, 1139062,
+ 629901562, 630995062, 45562, 63923, 27948037,
+ 1704037, 26289562, 629901562, 656145562, 45562,
+ 63923, 630995062, 1139062, 629901562, 45562,
+ 63923, 1139062, 630995062, 629901562, 45562,
+ 63923, 630995062, 629901562, 1139062, 45562,
+ 63923, 656145562, 629901562, 26289562, 45562,
+ 63923, 629901562, 656145562, 26289562, 45562,
+ 63923, 656145562, 26289562, 629901562, 45562,
+ 63923, 27383062, 26289562, 1139062, 45562,
+ 63923, 26289562, 27383062, 1139062, 45562,
+ 63923, 27383062, 1139062, 26289562, 45562,
+ 63923, 592447, 329189062, 328095562, 26289562,
+ 45562, 63923, 315520447, 670907812, 39958312,
+ 26289562, 45562, 63923, 314973697, 984742312,
+ 354886312, 26289562, 45562, 63923, 944829697,
+ 643570312, 13714312, 26289562, 45562, 63923,
+ 315520447, 959045062, 328095562, 26289562, 45562,
+ 63923, 592447, 329735812, 328642312, 26289562,
+ 45562, 63923, 314973563, 643570312, 13714312,
+ 1139062, 45562, 63923, 328095563, 972713812,
+ 316613812, 1139062, 45562, 63923, 13167563,
+ 355979812, 329735812, 1139062, 45562, 63923,
+ 39411563, 341764312, 315520312, 1139062, 45562,
+ 63923, 328095563, 669814312, 13714312, 1139062,
+ 45562, 63923, 314973563, 958498312, 328642312,
+ 1139062, 45562, 63923, 13185787, 341764312,
+ 315520312, 629901562, 45562, 63923, 13732537,
+ 985289062, 957951562, 629901562, 45562, 63923,
+ 610537, 959591812, 958498312, 629901562, 45562,
+ 63923, 1704037, 329189062, 328095562, 629901562,
+ 45562, 63923, 13732537, 342857812, 315520312,
+ 629901562, 45562, 63923, 13185787, 354886312,
+ 328642312, 629901562, 45562, 63923, 656145563,
+ 26289563, 629901563, 45563, 630995197, 629901697,
+ 1139197, 45697, 27401287, 26307787, 1157287,
+ 63787, 657239062, 27383062, 630995062, 656145562,
+ 1139062, 26289562, 629901562, 45562, 63923,
+ 630448447, 592447, 26307787, 63787, 63923,
+ 341217563, 314973563, 1139197, 45697, 63923,
+ 14279287, 13185787, 629901563, 45563, 63923,
+ 26289563, 45563, 63923, 1157287, 63787,
+ 63923, 629901697, 45697, 63923, 63923,
+ 592447, 63787, 63923, 314973563, 45697,
+ 63923, 13185787, 45563, 63923, 328095563,
+ 26289563, 45563, 1139197, 45697, 1157287,
+ 63787, 1139062, 630995062, 26289562, 45562,
+ 63923, 13732537, 1157287, 63787, 629901563,
+ 45563, 629901697, 45697, 629901562, 656145562,
+ 1139062, 45562, 63923, 315520447, 629901697,
+ 45697, 26307787, 63787, 26289563, 45563,
+ 26289562, 27383062, 629901562, 45562, 63923,
+ 13732537, 315520447, 328095563, 45563, 45697,
+ 63787, 329735812, 328642312, 1139062, 45562,
+ 63923, 26289563, 45563, 629901697, 45697,
+ 1157287, 63787, 26289562, 1139062, 629901562,
+ 45562, 63923, 13167563, 314973697, 610537,
+ 63923, 629901698, 45698, 26307788, 63788,
+ 656145563, 629901563, 26289563, 45563, 63923,
+ 26307788, 63788, 1157422, 63922, 27401287,
+ 26307787, 1157287, 63787, 63923, 1157422,
+ 63922, 629901698, 45698, 630995197, 1139197,
+ 629901697, 45697, 63923, 629901698, 45698,
+ 63923, 26307788, 63788, 63923, 26307788,
+ 63788, 63923, 1157422, 63922, 63923,
+ 1157422, 63922, 63923, 629901698, 45698,
+ 63923, 656145563, 629901563, 26289563, 45563,
+ 63923, 27401287, 26307787, 1157287, 63787,
+ 63923, 630995197, 1139197, 629901697, 45697,
+ 63923, 314973698, 26289563, 45563, 63923,
+ 13185788, 629901563, 45563, 63923, 13185788,
+ 1157287, 63787, 63923, 610672, 26307787,
+ 63787, 63923, 610672, 629901697, 45697,
+ 63923, 314973698, 1139197, 45697, 63923,
+ 63923, 63923, 63923, 63923, 63923,
+ 63923, 629901563, 45563, 63923, 26289563,
+ 45563, 63923, 26307787, 63787, 63923,
+ 1157287, 63787, 63923, 1139197, 45697,
+ 63923, 629901697, 45697, 63923, 45698,
+ 63923, 63788, 63923, 63788, 63923,
+ 63922, 63923, 63922, 63923, 45698,
+ 63923, 26289563, 45563, 63923, 1157287,
+ 63787, 63923, 629901697, 45697, 63923,
+ 63923, 63923, 63923, 63923, 63923,
+ 63923, 26289563, 45563, 63923, 1157287,
+ 63787, 63923, 629901697, 45697, 63923,
+ 45698, 63788, 328095563, 26289563, 45563,
+ 63923, 63788, 63922, 13732537, 1157287,
+ 63787, 63923, 63922, 45698, 315520447,
+ 629901697, 45697, 63923, 45698, 63923,
+ 63788, 63923, 63788, 63923, 63922,
+ 63923, 63922, 63923, 45698, 63923,
+ 328095563, 26289563, 45563, 63923, 13732537,
+ 1157287, 63787, 63923, 315520447, 629901697,
+ 45697, 63923, 629901698, 45698, 63788,
+ 629901563, 45563, 63923, 26307788, 63788,
+ 45698, 26289563, 45563, 63923, 26307788,
+ 63788, 63922, 26307787, 63787, 63923,
+ 1157422, 63922, 63788, 1157287, 63787,
+ 63923, 1157422, 63922, 45698, 1139197,
+ 45697, 63923, 629901698, 45698, 63922,
+ 629901697, 45697, 63923, 13185788, 629901563,
+ 45563, 63923, 314973698, 26289563, 45563,
+ 63923, 610672, 26307787, 63787, 63923,
+ 13185788, 1157287, 63787, 63923, 314973698,
+ 1139197, 45697, 63923, 610672, 629901697,
+ 45697, 63923, 314973698, 45563, 63923,
+ 13185788, 45563, 63923, 13185788, 63787,
+ 63923, 610672, 63787, 63923, 610672,
+ 45697, 63923, 314973698, 45697, 63923,
+ 45563, 63923, 45563, 63923, 63787,
+ 63923, 63787, 63923, 45697, 63923,
+ 45697, 63923, 63788, 45698, 328095563,
+ 45563, 63923, 63922, 63788, 13732537,
+ 63787, 63923, 45698, 63922, 315520447,
+ 45697, 63923, 45563, 63923, 63787,
+ 63923, 45697, 63923, 45698, 63788,
+ 26289563, 45563, 63923, 63788, 63922,
+ 1157287, 63787, 63923, 63922, 45698,
+ 629901697, 45697, 63923, 26289563, 45563,
+ 63923, 1157287, 63787, 63923, 629901697,
+ 45697, 63923, 314973698, 45563, 63923,
+ 13185788, 45563, 63923, 13185788, 63787,
+ 63923, 610672, 63787, 63923, 610672,
+ 45697, 63923, 314973698, 45697, 63923,
+ 1157422, 63922, 26307788, 63788, 629901698,
+ 45698, 656145563, 629901563, 26289563, 45563,
+ 630995197, 629901697, 1139197, 45697, 27401287,
+ 26307787, 1157287, 63787, 657239062, 27383062,
+ 656145562, 26289562, 630995062, 1139062, 629901562,
+ 45562, 63923, 26289563, 45563, 629901697,
+ 45697, 1157287, 63787, 985835812, 328642312,
+ 26289562, 1139062, 629901562, 45562, 63923,
+ 354339563, 328095563, 945376447, 315520447, 14826037,
+ 13732537, 45562, 657239062, 354886312, 329735812,
+ 958498312, 328642312, 63923, 63922, 629901563,
+ 26289563, 656145563, 45563, 630448447, 592447,
+ 26854537, 610537, 656692312, 26836312, 630448312,
+ 592312, 629901562, 26289562, 656145562, 45562,
+ 63923, 45698, 26307787, 1157287, 27401287,
+ 63787, 341217563, 314973563, 316067197, 314973697,
+ 342311062, 316067062, 341217562, 314973562, 26289562,
+ 1139062, 27383062, 45562, 63923, 63788,
+ 1139197, 629901697, 630995197, 45697, 14279287,
+ 13185787, 643023563, 13167563, 644117062, 643023562,
+ 14261062, 13167562, 1139062, 629901562, 630995062,
+ 45562, 63923, 26289563, 45563, 1139197,
+ 45697, 1157287, 63787, 329189062, 328095562,
+ 1139062, 630995062, 629901562, 45562, 63923,
+ 354339563, 328095563, 316067197, 314973697, 14279287,
+ 13185787, 1139062, 45562, 329189062, 959045062,
+ 957951562, 328095562, 63923, 1157287, 63787,
+ 629901563, 45563, 629901697, 45697, 643570312,
+ 13714312, 629901562, 656145562, 26289562, 45562,
+ 63923, 14826037, 13732537, 643023563, 13167563,
+ 630448447, 592447, 629901562, 45562, 643570312,
+ 669814312, 39958312, 13714312, 63923, 629901697,
+ 45697, 26307787, 63787, 26289563, 45563,
+ 341764312, 315520312, 26289562, 27383062, 1139062,
+ 45562, 63923, 945376447, 315520447, 26854537,
+ 610537, 341217563, 314973563, 26289562, 45562,
+ 341764312, 342857812, 316613812, 315520312, 45563,
+ 629901562, 630995062, 1139062, 45562, 63923,
+ 314973698, 26307788, 63788, 1139197, 45697,
+ 341217563, 314973563, 27383062, 1139062, 26289562,
+ 45562, 63923, 13185788, 629901698, 45698,
+ 1157287, 63787, 643023563, 13167563, 630995062,
+ 1139062, 629901562, 45562, 63923, 13185788,
+ 1157422, 63922, 629901563, 45563, 14279287,
+ 13185787, 630995062, 629901562, 1139062, 45562,
+ 63923, 610672, 26307788, 63788, 629901697,
+ 45697, 26854537, 610537, 656145562, 629901562,
+ 26289562, 45562, 63923, 610672, 629901698,
+ 45698, 26307787, 63787, 630448447, 592447,
+ 656145562, 26289562, 629901562, 45562, 63923,
+ 314973698, 1157422, 63922, 26289563, 45563,
+ 316067197, 314973697, 27383062, 26289562, 1139062,
+ 45562, 63923, 13732537, 314973563, 1139062,
+ 45562, 63923, 316613947, 13167563, 1139062,
+ 45562, 63923, 315520447, 13185787, 629901562,
+ 45562, 63923, 957951563, 610537, 629901562,
+ 45562, 63923, 328095563, 592447, 26289562,
+ 45562, 63923, 39976537, 314973697, 26289562,
+ 45562, 63923, 45698, 315520447, 26307787,
+ 63787, 26289562, 656145562, 629901562, 45562,
+ 63923, 63788, 14826037, 629901697, 45697,
+ 629901562, 656145562, 26289562, 45562, 63923,
+ 63788, 328095563, 1139197, 45697, 1139062,
+ 27383062, 26289562, 45562, 63923, 63922,
+ 945376447, 26289563, 45563, 26289562, 27383062,
+ 1139062, 45562, 63923, 63922, 13732537,
+ 629901563, 45563, 629901562, 630995062, 1139062,
+ 45562, 63923, 45698, 354339563, 1157287,
+ 63787, 1139062, 630995062, 629901562, 45562,
+ 63923, 341217563, 314973563, 592447, 26289562,
+ 45562, 63923, 643023563, 13167563, 1704037,
+ 629901562, 45562, 63923, 14279287, 13185787,
+ 314973563, 1139062, 45562, 63923, 26854537,
+ 610537, 944829697, 26289562, 45562, 63923,
+ 630448447, 592447, 13185787, 629901562, 45562,
+ 63923, 316067197, 314973697, 39411563, 1139062,
+ 45562, 63923, 1157422, 63922, 26289563,
+ 45563, 27383062, 26289562, 1139062, 45562,
+ 63923, 629901698, 45698, 1157287, 63787,
+ 630995062, 1139062, 629901562, 45562, 63923,
+ 26307788, 63788, 629901697, 45697, 656145562,
+ 629901562, 26289562, 45562, 63923, 354339563,
+ 328095563, 1139062, 45562, 63923, 14826037,
+ 13732537, 629901562, 45562, 63923, 945376447,
+ 315520447, 26289562, 45562, 63923, 610672,
+ 13185787, 629901562, 45562, 63923, 1704172,
+ 314973697, 26289562, 45562, 63923, 314973698,
+ 592447, 26289562, 45562, 63923, 944829698,
+ 13167563, 1139062, 45562, 63923, 13185788,
+ 314973563, 1139062, 45562, 63923, 39429788,
+ 610537, 629901562, 45562, 63923, 63922,
+ 26289563, 45563, 27383062, 26289562, 1139062,
+ 45562, 63923, 45698, 1157287, 63787,
+ 630995062, 1139062, 629901562, 45562, 63923,
+ 63788, 629901697, 45697, 656145562, 629901562,
+ 26289562, 45562, 63923, 63788, 45698,
+ 329189062, 328095562, 26289563, 45563, 63923,
+ 13185788, 314973698, 1139062, 45562, 354339563,
+ 328095563, 63923, 63922, 63788, 643570312,
+ 13714312, 1157287, 63787, 63923, 610672,
+ 13185788, 629901562, 45562, 14826037, 13732537,
+ 63923, 45698, 63922, 341764312, 315520312,
+ 629901697, 45697, 63923, 314973698, 610672,
+ 26289562, 45562, 945376447, 315520447, 63923,
+ 592447, 26289562, 45562, 63923, 1704037,
+ 629901562, 45562, 63923, 314973563, 1139062,
+ 45562, 63923, 944829697, 26289562, 45562,
+ 63923, 13185787, 629901562, 45562, 63923,
+ 39411563, 1139062, 45562, 63923, 1139062,
+ 45562, 63923, 1139062, 45562, 63923,
+ 13185788, 1139062, 45562, 63923, 314973698,
+ 1139062, 45562, 63923, 610672, 629901562,
+ 45562, 63923, 13185788, 629901562, 45562,
+ 63923, 314973698, 26289562, 45562, 63923,
+ 610672, 26289562, 45562, 63923, 610672,
+ 45698, 63787, 328095562, 592447, 26289562,
+ 45562, 63923, 1704172, 63788, 45697,
+ 328095562, 1704037, 629901562, 45562, 63923,
+ 314973698, 63788, 45697, 13714312, 314973563,
+ 1139062, 45562, 63923, 944829698, 63922,
+ 45563, 13714312, 944829697, 26289562, 45562,
+ 63923, 13185788, 63922, 45563, 315520312,
+ 13185787, 629901562, 45562, 63923, 39429788,
+ 45698, 63787, 315520312, 39411563, 1139062,
+ 45562, 63923, 45698, 315520447, 63787,
+ 328095562, 629901562, 45562, 63923, 63788,
+ 14826037, 45697, 328095562, 26289562, 45562,
+ 63923, 63788, 328095563, 45697, 13714312,
+ 26289562, 45562, 63923, 63922, 945376447,
+ 45563, 13714312, 1139062, 45562, 63923,
+ 63922, 13732537, 45563, 315520312, 1139062,
+ 45562, 63923, 45698, 354339563, 63787,
+ 315520312, 629901562, 45562, 63923, 1157422,
+ 63922, 63788, 45698, 328095563, 26289563,
+ 45563, 1139197, 45697, 1157287, 63787,
+ 329189062, 328095562, 1139062, 630995062, 629901562,
+ 45562, 63923, 629901698, 45698, 63922,
+ 63788, 13732537, 1157287, 63787, 629901563,
+ 45563, 629901697, 45697, 643570312, 13714312,
+ 629901562, 656145562, 26289562, 45562, 63923,
+ 26307788, 63788, 45698, 63922, 315520447,
+ 629901697, 45697, 26307787, 63787, 26289563,
+ 45563, 341764312, 315520312, 26289562, 27383062,
+ 1139062, 45562, 63923, 63922, 328095563,
+ 26289563, 45563, 592447, 610537, 354339562,
+ 328095562, 26289562, 45562, 26836312, 592312,
+ 63923, 45698, 13732537, 1157287, 63787,
+ 314973563, 314973697, 14807812, 13714312, 1139062,
+ 45562, 316067062, 314973562, 63923, 63788,
+ 315520447, 629901697, 45697, 13185787, 13167563,
+ 945376312, 315520312, 629901562, 45562, 643023562,
+ 13167562, 63923, 13185788, 45698, 314973563,
+ 316067197, 314973697, 1157287, 63787, 13167563,
+ 329189062, 328095562, 1139062, 45562, 316067062,
+ 314973562, 63923, 314973698, 63788, 13167563,
+ 14279287, 13185787, 1139197, 45697, 314973563,
+ 329189062, 328095562, 1139062, 45562, 14261062,
+ 13167562, 63923, 610672, 63788, 13185787,
+ 643023563, 13167563, 629901697, 45697, 610537,
+ 643570312, 13714312, 629901562, 45562, 643023562,
+ 13167562, 63923, 13185788, 63922, 610537,
+ 630448447, 592447, 629901563, 45563, 13185787,
+ 643570312, 13714312, 629901562, 45562, 630448312,
+ 592312, 63923, 314973698, 63922, 592447,
+ 26854537, 610537, 26289563, 45563, 314973697,
+ 341764312, 315520312, 26289562, 45562, 26836312,
+ 592312, 63923, 610672, 45698, 314973697,
+ 341217563, 314973563, 26307787, 63787, 592447,
+ 341764312, 315520312, 26289562, 45562, 341217562,
+ 314973562, 63923, 328095563, 45563, 45697,
+ 63787, 13714312, 315520312, 1139062, 45562,
+ 63923, 314973563, 13167563, 592447, 13732537,
+ 45562, 354339562, 14807812, 13714312, 63923,
+ 328095563, 45563, 63787, 45697, 316613812,
+ 14807812, 1139062, 45562, 63923, 13167563,
+ 314973563, 1704037, 316613947, 45562, 957951562,
+ 315520312, 316613812, 63923, 13732537, 63787,
+ 45563, 45697, 315520312, 328095562, 629901562,
+ 45562, 63923, 13185787, 610537, 314973563,
+ 315520447, 45562, 14807812, 945376312, 315520312,
+ 63923, 13732537, 63787, 45697, 45563,
+ 957951562, 945376312, 629901562, 45562, 63923,
+ 610537, 13185787, 944829697, 957951563, 45562,
+ 39958312, 328095562, 957951562, 63923, 315520447,
+ 45697, 63787, 45563, 328095562, 13714312,
+ 26289562, 45562, 63923, 592447, 314973697,
+ 13185787, 328095563, 45562, 945376312, 354339562,
+ 328095562, 63923, 315520447, 45697, 45563,
+ 63787, 39958312, 354339562, 26289562, 45562,
+ 63923, 314973697, 592447, 39411563, 39976537,
+ 45562, 316613812, 13714312, 39958312, 63923,
+ 63922, 63788, 45698, 13732537, 315520447,
+ 328095563, 45563, 45697, 63787, 328642312,
+ 328095562, 315520312, 13714312, 1139062, 45562,
+ 63923, 45563, 45697, 63787, 821537437,
+ 164343937, 1139062, 45562, 63923, 164070563,
+ 157783072, 6898162, 657239062, 45562, 165437437,
+ 164343937, 63923, 63922, 63788, 45698,
+ 328642312, 629901563, 45563, 1139197, 45697,
+ 26307787, 63787, 630995062, 656145562, 27383062,
+ 45562, 63923, 63922, 26289563, 45563,
+ 592447, 610537, 328642312, 629901562, 45562,
+ 630448312, 592312, 63923, 45698, 1157287,
+ 63787, 314973563, 314973697, 328642312, 26289562,
+ 45562, 341217562, 314973562, 63923, 63788,
+ 629901697, 45697, 13185787, 13167563, 328642312,
+ 1139062, 45562, 14261062, 13167562, 63923,
+ 13167563, 314973697, 610537, 328642312, 45562,
+ 63923, 314973563, 13185787, 1685947, 329735812,
+ 45562, 63923, 13185788, 45698, 315520447,
+ 63787, 13167563, 329735812, 328642312, 1139062,
+ 45562, 63923, 314973698, 63788, 14826037,
+ 45697, 314973563, 328642312, 329735812, 1139062,
+ 45562, 63923, 610672, 63788, 328095563,
+ 45697, 610537, 958498312, 328642312, 629901562,
+ 45562, 63923, 13185788, 63922, 945376447,
+ 45563, 13185787, 328642312, 958498312, 629901562,
+ 45562, 63923, 314973698, 63922, 13732537,
+ 45563, 314973697, 354886312, 328642312, 26289562,
+ 45562, 63923, 610672, 45698, 354339563,
+ 63787, 592447, 328642312, 354886312, 26289562,
+ 45562, 63923, 26289563, 656145563, 45563,
+ 63923, 63923, 26289563, 656145563, 45563,
+ 63923, 63923, 26289563, 45563, 63923,
+ 45563, 63923, 26289563, 656145563, 45563,
+ 657239062, 656145562, 1139062, 45562, 63923,
+ 26289563, 45563, 27929812, 26836312, 1139062,
+ 45562, 63923, 1157422, 63922, 26289563,
+ 656145563, 45563, 27383062, 26289562, 657239062,
+ 656145562, 1139062, 45562, 63923, 63922,
+ 26289563, 656145563, 45563, 656692312, 592312,
+ 27383062, 26289562, 656145562, 45562, 63923,
+ 45563, 329189062, 328095562, 26289563, 1139062,
+ 45562, 63923, 354339563, 1139062, 45562,
+ 328095563, 355433062, 354339562, 63923, 45563,
+ 26289563, 329735812, 328642312, 1139062, 45562,
+ 63923, 328095563, 957951563, 1139062, 45562,
+ 329735812, 328642312, 63923, 63922, 26289563,
+ 328642312, 45563, 26836312, 26289562, 1139062,
+ 45562, 63923, 45563, 14534437, 13440937,
+ 1139062, 45562, 63923, 13167563, 1139062,
+ 45562, 14534437, 13440937, 63923, 26307787,
+ 1157287, 27401287, 63787, 1157692, 64192,
+ 26289563, 656145563, 45563, 630995062, 629901562,
+ 657239062, 656145562, 1139062, 45562, 63923,
+ 1157692, 64192, 45563, 26289563, 1139062,
+ 45562, 63923, 884317, 629901697, 45697,
+ 63923, 64192, 63923, 1704442, 610942,
+ 26307787, 1157287, 27401287, 63787, 26289563,
+ 656145563, 45563, 656692312, 592312, 27383062,
+ 26289562, 656145562, 45562, 63923, 1157692,
+ 64192, 26289563, 45563, 1139062, 45562,
+ 63923, 1431067, 629901697, 45697, 63923,
+ 64192, 63923, 26854942, 1157287, 63787,
+ 64192, 26289563, 45563, 26836312, 26289562,
+ 1139062, 45562, 63923, 13459162, 63382,
+ 64192, 45563, 1139062, 45562, 63923,
+ 26307788, 63788, 64193, 629901563, 656145563,
+ 45563, 63923, 26308193, 629901563, 45563,
+ 63923, 64193, 26289563, 656145563, 45563,
+ 63923, 64193, 26289563, 45563, 63923,
+ 26289563, 656145563, 45563, 63923, 26289563,
+ 45563, 63923, 26307788, 63788, 26289563,
+ 656145563, 45563, 63923, 26289563, 45563,
+ 63923, 63788, 64193, 26289563, 45563,
+ 63923, 26308193, 629901563, 45563, 63923,
+ 45698, 45563, 63923, 45563, 63923,
+ 64193, 26289563, 26307787, 1157287, 27401287,
+ 63787, 656145563, 45563, 630995062, 629901562,
+ 656145562, 1139062, 657239062, 45562, 63923,
+ 26289563, 656145563, 45563, 592447, 26854537,
+ 630448447, 610537, 656145562, 45562, 26836312,
+ 656692312, 630448312, 592312, 63923, 26308193,
+ 45563, 26289563, 1139062, 45562, 63923,
+ 26289563, 45563, 1139062, 45562, 63923,
+ 26307788, 63788, 1157692, 64192, 26289563,
+ 656145563, 45563, 1139062, 657239062, 656145562,
+ 45562, 63923, 26289563, 656145563, 45563,
+ 1704442, 610942, 656145562, 45562, 656692312,
+ 592312, 63923, 27401692, 26308192, 26289563,
+ 45563, 27383062, 26289562, 1139062, 45562,
+ 63923, 26289563, 26854942, 26854132, 45563,
+ 27929812, 26836312, 1139062, 45562, 63923,
+ 63788, 26854942, 64192, 26289563, 45563,
+ 27929812, 26836312, 1139062, 45562, 63923,
+ 26308192, 26289563, 45563, 610942, 26289562,
+ 26836312, 45562, 592312, 63923, 64193,
+ 26289563, 1157287, 63787, 45563, 26836312,
+ 26289562, 1139062, 45562, 63923, 13459162,
+ 45563, 1139062, 45562, 63923, 26307788,
+ 63788, 64193, 1157422, 63922, 27401287,
+ 26307787, 1157287, 63787, 1157692, 64192,
+ 26289563, 656145563, 45563, 26289562, 27383062,
+ 657239062, 656145562, 1139062, 45562, 63923,
+ 63922, 26854537, 610537, 610942, 26289563,
+ 656145563, 45563, 26836312, 26289562, 656145562,
+ 656692312, 45562, 592312, 63923, 26308193,
+ 1157287, 63787, 1157692, 64192, 26289563,
+ 45563, 329189062, 328095562, 27383062, 26289562,
+ 1139062, 45562, 63923, 63383, 14279287,
+ 13185787, 1157692, 64192, 957951563, 328095563,
+ 1139062, 45562, 959045062, 957951562, 329189062,
+ 328095562, 63923, 1157287, 63787, 64192,
+ 629901563, 328642312, 45563, 630448312, 629901562,
+ 1139062, 45562, 63923, 39976537, 13732537,
+ 610942, 354339563, 45562, 328095563, 354339562,
+ 355979812, 329735812, 328642312, 63923, 26308193,
+ 1157422, 63922, 27401692, 26308192, 26289563,
+ 45563, 26289562, 27383062, 1139062, 45562,
+ 63923, 63922, 26854942, 26289563, 45563,
+ 26836312, 26289562, 1139062, 45562, 63923,
+ 26308193, 45698, 1157692, 64192, 45563,
+ 329189062, 328095562, 26289563, 1139062, 45562,
+ 63923, 64193, 314973698, 1156882, 63382,
+ 957951563, 1139062, 45562, 328095563, 959045062,
+ 957951562, 63923, 610942, 45563, 328095562,
+ 26289563, 45562, 592312, 63923, 610132,
+ 957951563, 45562, 328095563, 957951562, 958498312,
+ 63923, 63922, 629901698, 45698, 610942,
+ 26307787, 1157287, 27401287, 63787, 26289563,
+ 656145563, 45563, 656692312, 592312, 27383062,
+ 26289562, 656145562, 45562, 63923, 64193,
+ 63922, 26854537, 610537, 26289563, 1157692,
+ 64192, 656145563, 45563, 26289562, 26836312,
+ 656692312, 656145562, 592312, 45562, 63923,
+ 26308192, 1704037, 610537, 45563, 26289563,
+ 328642312, 45562, 26289562, 592312, 26836312,
+ 63923, 610942, 14279287, 13185787, 957951563,
+ 328095563, 45562, 959591812, 328642312, 957951562,
+ 328095562, 63923, 64193, 27948442, 26854942,
+ 1157287, 63787, 26289563, 45563, 985835812,
+ 328642312, 26836312, 26289562, 1139062, 45562,
+ 63923, 63383, 1157692, 64192, 13732537,
+ 14826037, 328095563, 957951563, 45562, 1139062,
+ 328095562, 328642312, 958498312, 354886312, 63923,
+ 63922, 26854942, 26289563, 45563, 26836312,
+ 26289562, 592312, 45562, 63923, 64193,
+ 63922, 26289563, 63382, 64192, 45563,
+ 26836312, 26289562, 1139062, 45562, 63923,
+ 45698, 64192, 328642312, 26289563, 45563,
+ 1139062, 45562, 63923, 314973698, 610132,
+ 45562, 328095563, 957951563, 958498312, 959591812,
+ 63923, 26308193, 1704442, 610942, 45563,
+ 26289563, 329735812, 328642312, 45562, 592312,
+ 63923, 64193, 63382, 1156882, 957951563,
+ 328095563, 45562, 1139062, 959591812, 957951562,
+ 63923, 45698, 64193, 63922, 26854942,
+ 26307787, 63787, 64192, 26289563, 328642312,
+ 45563, 26836312, 26289562, 1139062, 45562,
+ 63923, 26308193, 63922, 610537, 610942,
+ 26308192, 26289563, 45563, 328642312, 26289562,
+ 45562, 26836312, 592312, 63923, 45698,
+ 64192, 13459162, 45563, 14534437, 13440937,
+ 1139062, 45562, 63923, 45698, 15099817,
+ 63787, 13167563, 1139062, 45562, 13987687,
+ 39684937, 63923, 610942, 315247072, 45563,
+ 13440937, 592312, 45562, 63923, 13459567,
+ 610537, 13167563, 45562, 13440937, 13987687,
+ 63923, 857349563, 454941563, 45563, 63923,
+ 63923, 63923, 45563, 63923, 64201,
+ 63923, 630995062, 629901562, 454941563, 45563,
+ 1139062, 45562, 63923, 629901562, 630995062,
+ 45563, 1139062, 45562, 63923, 27383062,
+ 629901562, 64201, 657239062, 45562, 63923,
+ 1156882, 63382, 857349563, 454941563, 45563,
+ 858443062, 857349562, 456035062, 454941562, 1139062,
+ 45562, 63923, 1157287, 63787, 454941563,
+ 45563, 1139062, 45562, 63923, 1885882,
+ 792382, 63923, 1886287, 792787, 63923,
+ 427882, 1521382, 63923, 428287, 1521787,
+ 63923, 1157287, 63787, 45563, 1139062,
+ 45562, 63923, 629901694, 45694, 64201,
+ 657239062, 45562, 63923, 63383, 857349563,
+ 454941563, 45563, 63923, 63788, 454941563,
+ 45563, 63923, 857349563, 454941563, 45563,
+ 63923, 454941563, 45563, 63923, 63383,
+ 45563, 63923, 64193, 64201, 63923,
+ 45563, 63923, 64201, 63923, 63788,
+ 1156882, 63382, 454941563, 630995062, 629901562,
+ 45563, 456035062, 454941562, 1139062, 45562,
+ 63923, 610132, 629901562, 454941563, 45563,
+ 857896312, 455488312, 45562, 592312, 63923,
+ 63383, 1157287, 63787, 630995062, 629901562,
+ 454941563, 45563, 1139062, 45562, 63923,
+ 610537, 629901562, 454941563, 45563, 45562,
+ 592312, 63923, 63383, 1157287, 63787,
+ 629901562, 630995062, 45563, 1139062, 45562,
+ 63923, 64193, 1156882, 63382, 27383062,
+ 629901562, 64201, 657239062, 45562, 63923,
+ 610537, 629901562, 45563, 45562, 592312,
+ 63923, 26854132, 629901562, 64201, 45562,
+ 328642312, 63923, 629901563, 454941563, 45563,
+ 63923, 63923, 63923, 656145563, 45563,
+ 63923, 656145563, 45563, 63923, 454941563,
+ 45563, 63923, 1157422, 63922, 857349563,
+ 454941563, 45563, 858443062, 857349562, 456035062,
+ 454941562, 1139062, 45562, 63923, 1157422,
+ 63922, 629901563, 454941563, 630995062, 629901562,
+ 45563, 456035062, 454941562, 1139062, 45562,
+ 63923, 610672, 629901562, 454941563, 45563,
+ 857896312, 455488312, 45562, 592312, 63923,
+ 1156882, 63382, 1157287, 63787, 629901563,
+ 454941563, 630995062, 629901562, 45563, 456035062,
+ 454941562, 1139062, 45562, 63923, 611347,
+ 63787, 63923, 1704847, 63787, 63923,
+ 1158097, 64597, 1157287, 63787, 629901563,
+ 45563, 630995062, 629901562, 1139062, 45562,
+ 63923, 1158097, 64597, 1157287, 63787,
+ 629901563, 45563, 630995062, 629901562, 1139062,
+ 45562, 63923, 611347, 63787, 454941563,
+ 45563, 456581812, 455488312, 592312, 45562,
+ 63923, 63383, 63788, 629901563, 454941563,
+ 45563, 63923, 629901563, 454941563, 45563,
+ 63923, 63788, 454941563, 45563, 63923,
+ 63383, 454941563, 45563, 63923, 63383,
+ 1157422, 63922, 1156882, 63382, 857349563,
+ 454941563, 45563, 858443062, 857349562, 456035062,
+ 454941562, 1139062, 45562, 63923, 610672,
+ 63382, 857349563, 454941563, 45563, 857896312,
+ 857349562, 455488312, 454941562, 592312, 45562,
+ 63923, 1157422, 63922, 63788, 454941563,
+ 1157287, 63787, 45563, 456035062, 454941562,
+ 1139062, 45562, 63923, 610672, 63787,
+ 454941563, 45563, 857896312, 455488312, 592312,
+ 45562, 63923, 1157422, 63922, 64598,
+ 63788, 1158097, 64597, 1157287, 63787,
+ 629901563, 454941563, 630995062, 629901562, 45563,
+ 456035062, 454941562, 1139062, 45562, 63923,
+ 63922, 611347, 610537, 629901563, 454941563,
+ 629901562, 630448312, 45563, 454941562, 455488312,
+ 45562, 592312, 63923, 63788, 610672,
+ 64597, 454941563, 610537, 629901562, 45563,
+ 454941562, 455488312, 45562, 592312, 63923,
+ 64598, 610672, 63787, 611347, 629901562,
+ 454941563, 45563, 456581812, 455488312, 592312,
+ 45562, 63923, 27401287, 26307787, 1157287,
+ 63787, 64201, 629901562, 27383062, 657239062,
+ 45562, 63923, 13732537, 63787, 64201,
+ 985835812, 328642312, 657239062, 45562, 63923,
+ 26307787, 63787, 64201, 27383062, 45562,
+ 63923, 64201, 63923, 610537, 64201,
+ 63923, 629901698, 45698, 64201, 27401287,
+ 26307787, 1157287, 63787, 629901562, 27383062,
+ 657239062, 45562, 63923, 26307787, 63787,
+ 64201, 27383062, 985835812, 328642312, 45562,
+ 63923, 39976537, 13732537, 64201, 355979812,
+ 657239062, 45562, 328642312, 63923, 45698,
+ 13732537, 64201, 63787, 13714312, 328642312,
+ 657239062, 45562, 63923, 63787, 64201,
+ 821537437, 164343937, 657239062, 45562, 63923,
+ 6898162, 64201, 657239062, 45562, 821537437,
+ 164343937, 63923, 45698, 64201, 1157287,
+ 63787, 328642312, 27383062, 45562, 63923,
+ 64201, 657239062, 45562, 63923, 610537,
+ 64201, 328642312, 45562, 63923, 629901700,
+ 45700, 26307787, 64201, 27401287, 63787,
+ 629901562, 27383062, 657239062, 45562, 63923,
+ 316067200, 316067194, 26307787, 1157287, 63787,
+ 64201, 341217562, 316067062, 27383062, 985835812,
+ 328642312, 45562, 63923, 13732537, 629901700,
+ 45700, 64201, 63787, 13714312, 328642312,
+ 657239062, 45562, 63923, 158056444, 63787,
+ 64201, 821537437, 164343937, 657239062, 45562,
+ 63923, 316067194, 45700, 26307787, 64201,
+ 63787, 341217562, 328642312, 27383062, 45562,
+ 63923, 158056444, 64201, 821537437, 164343937,
+ 63923, 158056450, 64201, 1150134187, 492940687,
+ 63923, 158056444, 158056450, 610537, 64201,
+ 787912312, 158056312, 1150134187, 164343937, 63923,
+ 64193, 26307787, 27401287, 63787, 64201,
+ 629901562, 27383062, 657239062, 45562, 63923,
+ 64193, 13732537, 63787, 64201, 985835812,
+ 328642312, 657239062, 45562, 63923, 64193,
+ 26307787, 63787, 341217562, 64201, 27383062,
+ 45562, 63923, 1157287, 26307787, 63787,
+ 64201, 316067062, 341217562, 27383062, 45562,
+ 63923, 13732537, 63787, 64201, 314973562,
+ 13714312, 328642312, 45562, 63923, 610537,
+ 64201, 1102840312, 472984312, 63923, 64193,
+ 629901698, 45698, 629901700, 45700, 26307787,
+ 64201, 27401287, 63787, 629901562, 27383062,
+ 657239062, 45562, 63923, 45700, 1157287,
+ 64201, 63787, 316067062, 328642312, 27383062,
+ 45562, 63923, 314973700, 39976537, 64201,
+ 13732537, 39958312, 45562, 958498312, 328642312,
+ 63923, 45698, 316067200, 64201, 26307787,
+ 1157287, 63787, 328642312, 341217562, 316067062,
+ 27383062, 45562, 63923, 64193, 316067200,
+ 316067194, 1157287, 63787, 316067062, 64201,
+ 27383062, 985835812, 328642312, 45562, 63923,
+ 64193, 629901694, 630995200, 14826037, 13732537,
+ 644663812, 64201, 355979812, 657239062, 45562,
+ 328642312, 63923, 64193, 45698, 629901700,
+ 45700, 13732537, 64201, 63787, 13714312,
+ 328642312, 657239062, 45562, 63923, 45698,
+ 314973700, 64201, 13732537, 63787, 13714312,
+ 314973562, 45562, 328642312, 63923, 158056444,
+ 64193, 63787, 64201, 821537437, 164343937,
+ 657239062, 45562, 63923, 45694, 64193,
+ 6898162, 64201, 657239062, 45562, 492940687,
+ 164343937, 63923, 158056444, 63787, 64201,
+ 314973562, 492940687, 164343937, 45562, 63923,
+ 314973694, 6898162, 64201, 1109127937, 45562,
+ 328642312, 164343937, 63923, 64193, 45698,
+ 316067194, 45700, 1157287, 64201, 63787,
+ 316067062, 328642312, 27383062, 45562, 63923,
+ 158056444, 610537, 64201, 472984312, 158056312,
+ 164343937, 45562, };
+
+static const int num_sitesym[] =
+ { 0,
+ 1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
+ 2, 1, 1, 1, 1, 2, 1, 1, 1, 1,
+ 2, 1, 1, 1, 1, 2, 2, 2, 4, 2,
+ 2, 4, 2, 2, 4, 2, 2, 4, 2, 2,
+ 4, 2, 2, 4, 2, 2, 4, 2, 2, 4,
+ 2, 2, 4, 2, 2, 2, 1, 1, 2, 1,
+ 1, 2, 1, 1, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 4, 2, 4, 2, 4, 2, 4,
+ 2, 4, 2, 4, 2, 4, 2, 4, 2, 4,
+ 2, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
+ 2, 2, 2, 2, 2, 2, 1, 1, 1, 1,
+ 1, 1, 1, 1, 4, 2, 2, 2, 2, 2,
+ 2, 1, 1, 1, 1, 1, 1, 1, 1, 4,
+ 2, 2, 2, 2, 2, 2, 1, 1, 1, 1,
+ 1, 1, 1, 1, 4, 2, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 2, 4, 2, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 4, 2, 2, 2, 2, 2, 2, 4,
+ 2, 2, 2, 2, 2, 2, 4, 2, 2, 2,
+ 2, 2, 2, 4, 2, 2, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 2, 2, 4, 2, 2,
+ 2, 2, 2, 2, 4, 2, 2, 2, 2, 2,
+ 2, 4, 2, 2, 2, 2, 2, 2, 4, 2,
+ 2, 2, 2, 2, 2, 4, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 4, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 4, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 4, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 4, 2, 2, 2, 2,
+ 8, 4, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 4, 8, 4, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 4, 8, 4, 4, 4, 4, 4,
+ 8, 4, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 4, 8, 4, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 4, 8, 4, 4, 4, 4, 4,
+ 8, 4, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 4, 8, 4, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 4, 8, 4, 4, 4, 4, 4,
+ 8, 4, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 4, 8, 4, 4, 4, 4, 4, 4, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 1, 1, 1, 1, 1, 1, 1, 1, 4,
+ 2, 2, 2, 2, 4, 2, 2, 2, 2, 4,
+ 2, 2, 2, 2, 4, 2, 2, 4, 2, 2,
+ 4, 2, 2, 4, 8, 4, 4, 8, 4, 4,
+ 8, 4, 4, 8, 4, 4, 4, 4, 4, 4,
+ 4, 2, 2, 2, 2, 8, 4, 4, 4, 4,
+ 4, 4, 4, 2, 2, 2, 2, 8, 4, 4,
+ 4, 4, 4, 4, 4, 2, 2, 2, 2, 16,
+ 8, 8, 8, 8, 8, 8, 4, 4, 4, 4,
+ 8, 4, 4, 4, 4, 4, 4, 2, 2, 2,
+ 2, 8, 4, 4, 4, 4, 2, 2, 2, 2,
+ 1, 1, 1, 1, 4, 2, 2, 2, 2, 1,
+ 1, 1, 1, 4, 2, 2, 2, 2, 1, 1,
+ 1, 1, 4, 2, 2, 4, 2, 2, 4, 2,
+ 2, 4, 2, 2, 4, 2, 2, 4, 2, 2,
+ 4, 2, 2, 2, 2, 4, 2, 2, 2, 2,
+ 4, 2, 2, 2, 2, 4, 2, 2, 2, 4,
+ 2, 2, 2, 4, 2, 2, 2, 4, 2, 2,
+ 2, 4, 2, 2, 2, 4, 2, 2, 2, 4,
+ 4, 4, 4, 4, 4, 4, 2, 2, 4, 2,
+ 2, 4, 2, 2, 4, 2, 2, 4, 2, 2,
+ 4, 2, 2, 4, 2, 4, 2, 4, 2, 4,
+ 2, 4, 2, 4, 2, 4, 2, 2, 4, 2,
+ 2, 4, 2, 2, 4, 4, 4, 4, 4, 4,
+ 4, 2, 2, 4, 2, 2, 4, 2, 2, 8,
+ 4, 4, 4, 2, 2, 8, 4, 4, 4, 2,
+ 2, 8, 4, 4, 4, 2, 2, 8, 4, 8,
+ 4, 8, 4, 8, 4, 8, 4, 8, 4, 8,
+ 4, 4, 4, 8, 4, 4, 4, 8, 4, 4,
+ 4, 8, 4, 4, 4, 2, 2, 8, 4, 4,
+ 4, 2, 2, 8, 4, 4, 4, 2, 2, 8,
+ 4, 4, 4, 2, 2, 8, 4, 4, 4, 2,
+ 2, 8, 4, 4, 4, 2, 2, 8, 4, 4,
+ 4, 8, 4, 4, 4, 8, 4, 4, 4, 8,
+ 4, 4, 4, 8, 4, 4, 4, 8, 4, 4,
+ 4, 8, 4, 4, 8, 4, 4, 8, 4, 4,
+ 8, 4, 4, 8, 4, 4, 8, 4, 4, 8,
+ 4, 8, 4, 8, 4, 8, 4, 8, 4, 8,
+ 4, 16, 8, 8, 8, 4, 16, 8, 8, 8,
+ 4, 16, 8, 8, 8, 4, 16, 8, 16, 8,
+ 16, 8, 8, 4, 4, 2, 2, 8, 4, 4,
+ 2, 2, 8, 4, 4, 2, 2, 8, 4, 4,
+ 8, 4, 4, 8, 4, 4, 8, 4, 4, 8,
+ 4, 4, 8, 4, 4, 8, 4, 4, 8, 4,
+ 4, 8, 4, 4, 8, 4, 4, 4, 4, 4,
+ 4, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
+ 1, 8, 4, 4, 4, 4, 4, 4, 4, 4,
+ 2, 2, 2, 2, 8, 4, 4, 4, 4, 4,
+ 4, 4, 4, 2, 2, 2, 2, 8, 4, 4,
+ 4, 4, 4, 4, 4, 4, 4, 2, 2, 2,
+ 2, 2, 2, 2, 2, 8, 4, 4, 4, 4,
+ 4, 4, 4, 4, 4, 2, 2, 2, 2, 2,
+ 2, 2, 2, 8, 4, 4, 4, 4, 4, 4,
+ 4, 4, 4, 2, 2, 2, 2, 2, 2, 2,
+ 2, 8, 4, 4, 4, 4, 4, 4, 4, 4,
+ 2, 2, 2, 2, 8, 4, 4, 4, 4, 4,
+ 4, 4, 4, 2, 2, 2, 2, 8, 4, 4,
+ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2,
+ 8, 4, 4, 4, 4, 4, 4, 4, 4, 2,
+ 2, 2, 2, 8, 4, 4, 4, 4, 4, 4,
+ 4, 4, 2, 2, 2, 2, 8, 4, 4, 4,
+ 4, 4, 4, 4, 4, 2, 2, 2, 2, 4,
+ 2, 2, 2, 2, 8, 4, 4, 4, 4, 4,
+ 2, 2, 2, 2, 2, 2, 8, 4, 4, 4,
+ 4, 4, 2, 2, 2, 2, 2, 2, 8, 4,
+ 4, 4, 4, 4, 2, 2, 2, 2, 2, 2,
+ 8, 4, 4, 4, 4, 4, 2, 2, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 2, 2, 8, 4, 4, 4, 4, 4,
+ 2, 2, 2, 2, 2, 2, 8, 4, 4, 4,
+ 4, 8, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 8, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 8, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 2, 2, 2, 2, 8, 4, 4, 4, 4,
+ 2, 2, 2, 2, 8, 4, 4, 4, 4, 2,
+ 2, 2, 2, 8, 4, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 2, 2, 2,
+ 2, 8, 4, 4, 4, 4, 2, 2, 2, 2,
+ 8, 4, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 4, 8, 4, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 4, 8, 4, 4, 4, 4, 4,
+ 8, 4, 4, 4, 4, 4, 8, 4, 4, 4,
+ 4, 2, 2, 2, 2, 8, 4, 4, 4, 4,
+ 2, 2, 2, 2, 8, 4, 4, 4, 4, 2,
+ 2, 2, 2, 8, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 8, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 8, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 8, 4, 4, 4, 4, 8, 4,
+ 4, 4, 4, 8, 4, 4, 4, 4, 8, 4,
+ 4, 4, 2, 2, 2, 2, 8, 4, 4, 4,
+ 2, 2, 2, 2, 8, 4, 4, 4, 2, 2,
+ 2, 2, 8, 4, 4, 4, 4, 2, 2, 8,
+ 4, 4, 4, 4, 2, 2, 8, 4, 4, 4,
+ 4, 2, 2, 8, 4, 4, 4, 4, 2, 2,
+ 8, 4, 4, 4, 4, 2, 2, 8, 4, 4,
+ 4, 4, 2, 2, 8, 4, 4, 4, 8, 4,
+ 4, 4, 8, 4, 4, 4, 8, 4, 4, 4,
+ 8, 4, 4, 4, 8, 4, 4, 4, 8, 4,
+ 4, 8, 4, 4, 8, 4, 4, 4, 8, 4,
+ 4, 4, 8, 4, 4, 4, 8, 4, 4, 4,
+ 8, 4, 4, 4, 8, 4, 4, 4, 16, 8,
+ 8, 8, 8, 4, 4, 4, 16, 8, 8, 8,
+ 8, 4, 4, 4, 16, 8, 8, 8, 8, 4,
+ 4, 4, 16, 8, 8, 8, 8, 4, 4, 4,
+ 16, 8, 8, 8, 8, 4, 4, 4, 16, 8,
+ 8, 8, 8, 4, 4, 4, 16, 8, 8, 8,
+ 8, 4, 4, 16, 8, 8, 8, 8, 4, 4,
+ 16, 8, 8, 8, 8, 4, 4, 16, 8, 8,
+ 8, 8, 4, 4, 16, 8, 8, 8, 8, 4,
+ 4, 16, 8, 8, 8, 8, 4, 4, 16, 8,
+ 8, 8, 8, 8, 4, 4, 4, 4, 4, 4,
+ 4, 4, 2, 2, 2, 2, 16, 8, 8, 8,
+ 8, 8, 4, 4, 4, 4, 4, 4, 4, 4,
+ 2, 2, 2, 2, 16, 8, 8, 8, 8, 8,
+ 4, 4, 4, 4, 4, 4, 4, 4, 2, 2,
+ 2, 2, 16, 8, 8, 8, 8, 8, 8, 4,
+ 4, 4, 4, 4, 4, 16, 8, 8, 8, 8,
+ 8, 8, 4, 4, 4, 4, 4, 4, 16, 8,
+ 8, 8, 8, 8, 8, 4, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 8, 8, 8, 4,
+ 4, 4, 4, 4, 4, 4, 16, 8, 8, 8,
+ 8, 8, 8, 8, 4, 4, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 8, 8, 8, 4,
+ 4, 4, 4, 4, 4, 4, 16, 8, 8, 8,
+ 8, 8, 8, 8, 4, 4, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 8, 8, 8, 4,
+ 4, 4, 4, 4, 4, 4, 16, 8, 8, 8,
+ 8, 8, 8, 8, 4, 4, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 8, 8, 4, 4,
+ 16, 8, 8, 8, 8, 8, 8, 4, 4, 16,
+ 8, 8, 8, 8, 8, 8, 4, 4, 16, 8,
+ 8, 8, 8, 8, 8, 4, 4, 16, 8, 8,
+ 8, 8, 8, 8, 4, 4, 16, 8, 8, 8,
+ 8, 8, 8, 4, 4, 16, 8, 8, 8, 8,
+ 8, 8, 4, 4, 16, 8, 8, 8, 8, 8,
+ 8, 4, 4, 16, 8, 8, 8, 8, 8, 8,
+ 4, 4, 16, 8, 8, 8, 8, 8, 8, 4,
+ 4, 16, 8, 8, 8, 8, 8, 8, 4, 4,
+ 16, 8, 8, 8, 8, 8, 8, 4, 4, 32,
+ 16, 16, 16, 16, 16, 16, 8, 8, 8, 8,
+ 8, 8, 8, 4, 4, 32, 16, 16, 16, 16,
+ 16, 8, 8, 32, 16, 16, 16, 16, 16, 8,
+ 8, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 4, 2, 2, 2, 2, 16, 8, 8, 8,
+ 8, 8, 8, 4, 4, 4, 4, 16, 8, 8,
+ 8, 8, 8, 8, 4, 4, 4, 4, 16, 8,
+ 8, 8, 8, 8, 8, 4, 4, 4, 4, 16,
+ 8, 8, 8, 8, 8, 16, 8, 8, 8, 8,
+ 8, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 4, 4, 4, 4,
+ 4, 4, 2, 1, 1, 4, 4, 2, 2, 2,
+ 4, 8, 4, 2, 8, 4, 4, 2, 2, 2,
+ 1, 1, 1, 1, 8, 4, 4, 2, 2, 2,
+ 2, 8, 4, 4, 4, 2, 2, 2, 2, 1,
+ 1, 1, 1, 8, 4, 4, 4, 4, 2, 2,
+ 2, 2, 2, 2, 8, 4, 4, 4, 2, 2,
+ 2, 8, 4, 4, 4, 2, 2, 2, 8, 4,
+ 4, 4, 4, 2, 2, 8, 4, 4, 4, 4,
+ 2, 2, 16, 8, 8, 8, 4, 4, 4, 2,
+ 2, 16, 8, 8, 8, 4, 4, 16, 8, 8,
+ 8, 4, 4, 8, 4, 4, 4, 4, 4, 4,
+ 4, 2, 2, 2, 2, 1, 1, 1, 1, 8,
+ 4, 4, 4, 2, 2, 2, 8, 4, 4, 4,
+ 8, 4, 8, 4, 4, 4, 4, 4, 4, 4,
+ 4, 4, 2, 2, 2, 2, 2, 2, 8, 4,
+ 4, 4, 4, 2, 2, 8, 4, 4, 4, 8,
+ 4, 16, 8, 8, 8, 8, 8, 4, 4, 4,
+ 2, 2, 16, 8, 8, 8, 8, 4, 4, 8,
+ 4, 4, 4, 2, 1, 1, 8, 4, 2, 2,
+ 8, 4, 4, 2, 2, 8, 4, 4, 2, 8,
+ 4, 2, 2, 8, 4, 2, 8, 4, 4, 2,
+ 2, 2, 8, 4, 4, 16, 8, 8, 4, 2,
+ 16, 8, 4, 4, 16, 8, 4, 16, 8, 8,
+ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2,
+ 1, 1, 1, 1, 8, 4, 4, 4, 4, 4,
+ 4, 4, 2, 2, 2, 2, 2, 2, 8, 4,
+ 4, 2, 2, 2, 8, 4, 4, 2, 2, 8,
+ 4, 4, 4, 4, 2, 2, 2, 1, 1, 1,
+ 1, 8, 4, 4, 4, 4, 4, 2, 2, 2,
+ 2, 8, 4, 4, 4, 4, 2, 2, 2, 2,
+ 8, 4, 4, 4, 4, 2, 2, 2, 2, 16,
+ 8, 8, 8, 4, 4, 2, 2, 2, 2, 16,
+ 8, 8, 8, 8, 4, 4, 4, 4, 16, 8,
+ 8, 8, 8, 4, 4, 4, 2, 2, 16, 8,
+ 8, 4, 4, 16, 8, 8, 8, 8, 8, 4,
+ 4, 4, 4, 4, 4, 4, 2, 2, 2, 2,
+ 1, 1, 1, 1, 16, 8, 8, 8, 8, 8,
+ 4, 4, 4, 4, 2, 2, 2, 2, 16, 8,
+ 8, 8, 8, 8, 4, 4, 4, 4, 2, 2,
+ 2, 2, 16, 8, 8, 8, 8, 8, 4, 4,
+ 4, 4, 2, 2, 2, 2, 16, 8, 8, 8,
+ 8, 8, 4, 4, 4, 2, 2, 16, 8, 8,
+ 8, 8, 8, 4, 4, 4, 2, 2, 16, 8,
+ 8, 8, 4, 4, 4, 4, 2, 2, 2, 2,
+ 16, 8, 8, 8, 4, 4, 4, 2, 2, 16,
+ 8, 8, 8, 8, 4, 4, 4, 2, 2, 2,
+ 16, 8, 8, 8, 8, 4, 4, 4, 2, 2,
+ 2, 16, 8, 8, 8, 4, 4, 4, 16, 8,
+ 8, 8, 4, 4, 4, 16, 8, 8, 8, 8,
+ 4, 4, 4, 4, 4, 4, 4, 2, 2, 2,
+ 2, 2, 2, 16, 8, 8, 8, 8, 8, 4,
+ 4, 4, 4, 4, 4, 2, 2, 2, 2, 16,
+ 8, 8, 8, 8, 8, 8, 4, 4, 4, 4,
+ 16, 8, 8, 8, 8, 8, 8, 4, 4, 4,
+ 4, 16, 8, 8, 8, 8, 8, 8, 4, 4,
+ 4, 4, 4, 2, 2, 16, 8, 8, 8, 8,
+ 8, 8, 4, 4, 4, 4, 4, 2, 2, 16,
+ 8, 8, 8, 8, 4, 4, 4, 4, 16, 8,
+ 8, 8, 4, 4, 4, 4, 4, 2, 2, 16,
+ 8, 8, 8, 4, 4, 2, 2, 16, 8, 8,
+ 8, 4, 4, 2, 2, 16, 8, 8, 8, 8,
+ 4, 4, 4, 4, 4, 16, 8, 8, 8, 8,
+ 4, 4, 4, 4, 4, 32, 16, 16, 16, 16,
+ 8, 8, 8, 8, 8, 4, 4, 4, 2, 2,
+ 32, 16, 16, 16, 16, 8, 8, 8, 8, 4,
+ 4, 4, 4, 32, 16, 16, 16, 8, 8, 8,
+ 4, 4, 32, 16, 16, 16, 8, 8, 8, 4,
+ 4, 32, 16, 16, 16, 16, 8, 8, 32, 16,
+ 16, 16, 16, 8, 8, 3, 1, 1, 1, 3,
+ 3, 3, 1, 3, 1, 6, 3, 3, 2, 2,
+ 1, 1, 6, 3, 3, 2, 1, 1, 6, 3,
+ 3, 2, 1, 1, 6, 3, 3, 2, 2, 2,
+ 1, 1, 1, 1, 1, 1, 6, 3, 3, 2,
+ 2, 1, 1, 6, 3, 3, 6, 3, 3, 6,
+ 3, 3, 6, 3, 3, 6, 3, 3, 2, 1,
+ 1, 6, 3, 3, 2, 1, 1, 6, 3, 1,
+ 1, 1, 6, 3, 2, 1, 6, 2, 2, 2,
+ 6, 2, 2, 6, 3, 1, 6, 3, 1, 6,
+ 2, 6, 2, 12, 6, 6, 6, 4, 3, 3,
+ 2, 2, 2, 1, 1, 12, 6, 6, 4, 4,
+ 2, 2, 2, 2, 12, 6, 6, 6, 3, 3,
+ 2, 2, 1, 1, 12, 6, 6, 4, 4, 2,
+ 2, 12, 6, 6, 6, 3, 3, 2, 1, 1,
+ 12, 6, 6, 6, 3, 3, 2, 1, 1, 12,
+ 6, 6, 4, 2, 2, 12, 6, 6, 4, 2,
+ 2, 6, 3, 2, 1, 6, 6, 6, 3, 3,
+ 6, 3, 3, 6, 2, 2, 6, 3, 3, 2,
+ 2, 2, 1, 1, 1, 1, 1, 1, 12, 6,
+ 6, 6, 4, 3, 3, 2, 2, 2, 1, 1,
+ 12, 6, 6, 4, 4, 2, 2, 2, 2, 12,
+ 6, 6, 6, 6, 6, 4, 3, 3, 2, 2,
+ 2, 1, 1, 12, 6, 6, 12, 6, 6, 12,
+ 6, 6, 6, 6, 6, 6, 3, 3, 3, 3,
+ 12, 6, 6, 6, 6, 6, 6, 3, 3, 3,
+ 3, 12, 6, 6, 4, 4, 2, 2, 2, 2,
+ 12, 6, 6, 3, 2, 1, 12, 6, 4, 2,
+ 12, 6, 4, 2, 12, 6, 2, 2, 12, 6,
+ 6, 6, 3, 3, 2, 2, 2, 1, 1, 1,
+ 1, 1, 1, 12, 6, 6, 4, 4, 4, 2,
+ 2, 2, 2, 2, 2, 12, 6, 6, 6, 4,
+ 3, 3, 2, 2, 2, 1, 1, 12, 6, 6,
+ 4, 4, 2, 2, 2, 2, 24, 12, 12, 12,
+ 12, 6, 6, 6, 6, 6, 4, 3, 3, 2,
+ 2, 2, 1, 1, 24, 12, 12, 12, 12, 8,
+ 6, 6, 4, 4, 4, 2, 2, 24, 12, 12,
+ 12, 8, 6, 6, 4, 4, 4, 2, 2, 24,
+ 12, 12, 12, 6, 6, 4, 4, 2, 2, 2,
+ 2, 12, 6, 6, 6, 6, 4, 3, 3, 1,
+ 1, 48, 24, 24, 16, 4, 4, 4, 4, 24,
+ 12, 12, 8, 6, 2, 12, 4, 24, 12, 8,
+ 24, 12, 12, 8, 6, 6, 6, 6, 3, 3,
+ 1, 1, 24, 12, 12, 8, 6, 4, 4, 2,
+ 24, 12, 12, 8, 6, 4, 4, 2, 96, 48,
+ 48, 32, 24, 24, 8, 4, 4, 96, 48, 32,
+ 16, 16, 8, 8, 96, 48, 32, 16, 16, 8,
+ 8, 48, 24, 16, 12, 12, 8, 6, 2, 24,
+ 8, 4, 4, 48, 24, 16, 8, 8, 24, 12,
+ 12, 12, 8, 6, 6, 3, 3, 1, 1, 24,
+ 12, 12, 12, 12, 12, 8, 6, 6, 6, 4,
+ 4, 2, 96, 48, 48, 48, 32, 24, 24, 8,
+ 4, 4, 96, 48, 48, 32, 16, 16, 8, 8,
+ 48, 24, 24, 24, 16, 12, 12, 8, 6, 2,
+ 24, 12, 8, 4, 4, 24, 12, 8, 4, 4,
+ 48, 24, 24, 24, 16, 12, 12, 8, 8, 24,
+ 12, 12, 6, 6, 4, 3, 3, 1, 1, 96,
+ 48, 24, 24, 16, 4, 4, 4, 4, 48, 24,
+ 24, 12, 12, 8, 6, 2, 24, 12, 12, 12,
+ 8, 6, 6, 6, 2, 96, 48, 48, 32, 24,
+ 24, 8, 8, 48, 24, 16, 12, 12, 48, 24,
+ 24, 24, 12, 12, 12, 8, 6, 6, 3, 3,
+ 1, 1, 48, 24, 24, 16, 12, 12, 8, 6,
+ 2, 48, 24, 24, 16, 12, 12, 8, 6, 2,
+ 48, 24, 24, 16, 12, 12, 12, 8, 6, 6,
+ 6, 2, 48, 24, 24, 24, 24, 12, 12, 8,
+ 6, 4, 4, 2, 48, 24, 24, 24, 24, 12,
+ 12, 8, 6, 4, 4, 2, 192, 96, 96, 48,
+ 48, 48, 32, 24, 24, 8, 4, 4, 192, 96,
+ 96, 64, 48, 48, 24, 24, 8, 8, 192, 96,
+ 96, 48, 32, 16, 16, 8, 8, 192, 96, 96,
+ 48, 32, 16, 16, 8, 8, 192, 96, 96, 64,
+ 48, 32, 32, 16, 192, 96, 96, 64, 48, 32,
+ 32, 16, 96, 48, 48, 48, 24, 24, 16, 12,
+ 12, 8, 6, 2, 96, 48, 48, 32, 24, 24,
+ 16, 16, };
+
+
+int ssmdb_get_coordinate( int rot[3][3],
+ double trans[3],
+ const int index )
+{
+ int i, rot_enc, trans_enc;
+ int rows[3], trans_int[3];
+
+ /* Orbits are compressed using ternary numerical system for */
+ /* rotation and base-24 system for translation. Elements of the first coloum */
+ /* of rotation matrix can be one of {-2,-1,0,1,2} and the other elements can */
+ /* be one of {-1,0,1}. Translation can have one of */
+ /* {0,2,3,4,6,8,9,10,12,14,15,16,18,20,21,22} */
+ /* divided by 24. Therefore 45^3 * 24^3 = 1259712000 different values can */
+ /* enough map Wyckoff positions. */
+
+ rot_enc = coordinates_first[index] % 91125; /* = 45**3 */
+ rows[0] = rot_enc / 2025; /* = 45**2 */
+ rows[1] = ( rot_enc % 2025 ) / 45;
+ rows[2] = rot_enc % 45;
+
+ for ( i = 0; i < 3; i++ ) {
+ rot[i][0] = rows[i] / 9 - 2;
+ rot[i][1] = ( rows[i] % 9 ) / 3 - 1;
+ rot[i][2] = rows[i] % 3 - 1;
+ }
+
+ trans_enc = coordinates_first[index] / 91125; /* = 45**3 */
+ trans_int[0] = trans_enc / 576;
+ trans_int[1] = ( trans_enc % 576 ) / 24 ;
+ trans_int[2] = trans_enc % 24 ;
+ for ( i = 0; i < 3; i++ ) {
+ trans[i] = ((double) trans_int[i]) / 24;
+ }
+
+ return num_sitesym[ index ];
+}
+
+void ssmdb_get_wyckoff_indices( int indices[2], const int index )
+{
+ indices[0] = position_wyckoff[ index ];
+ indices[1] = position_wyckoff[ index + 1 ] - position_wyckoff[ index ];
+}
diff --git a/src/sitesym_database.h b/src/sitesym_database.h
new file mode 100644
index 0000000..8809a00
--- /dev/null
+++ b/src/sitesym_database.h
@@ -0,0 +1,12 @@
+/* sitesym_database.h */
+/* Copyright (C) 2011 Atsushi Togo */
+
+#ifndef __sitesym_database_H__
+#define __sitesym_database_H__
+
+int ssmdb_get_coordinate( int rot[3][3],
+ double trans[3],
+ const int index );
+void ssmdb_get_wyckoff_indices( int indices[2], const int index );
+
+#endif
diff --git a/src/spacegroup.c b/src/spacegroup.c
new file mode 100644
index 0000000..35fb006
--- /dev/null
+++ b/src/spacegroup.c
@@ -0,0 +1,372 @@
+/* spacegroup.c */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "cell.h"
+#include "hall_symbol.h"
+#include "lattice.h"
+#include "mathfunc.h"
+#include "pointgroup.h"
+#include "primitive.h"
+#include "spacegroup.h"
+#include "spg_database.h"
+#include "symmetry.h"
+
+#include "debug.h"
+
+#define REDUCE_RATE 0.95
+
+static Spacegroup get_spacegroup(SPGCONST Cell * primitive,
+ const double symprec);
+static int get_hall_number(double origin_shift[3],
+ double conv_lattice[3][3],
+ Centering * centering,
+ SPGCONST Cell * primitive,
+ SPGCONST Symmetry * symmetry,
+ const double symprec);
+static int get_hall_number_local_iteration(double origin_shift[3],
+ double conv_lattice[3][3],
+ Centering * centering,
+ SPGCONST Cell * primitive,
+ SPGCONST Symmetry * symmetry,
+ const double symprec);
+static int get_hall_number_local(double origin_shift[3],
+ double conv_lattice[3][3],
+ Centering * centering,
+ SPGCONST Cell * primitive,
+ SPGCONST Symmetry * symmetry,
+ const double symprec);
+static Symmetry * get_conventional_symmetry(SPGCONST double transform_mat[3][3],
+ const Centering centering,
+ const Symmetry *primitive_sym);
+
+Spacegroup spa_get_spacegroup(SPGCONST Cell * cell,
+ const double symprec)
+{
+ double tolerance;
+ Cell *primitive;
+ Spacegroup spacegroup;
+
+ primitive = prm_get_primitive(cell, symprec);
+ tolerance = prm_get_current_tolerance();
+
+ if (primitive->size > 0) {
+ spacegroup = get_spacegroup(primitive, tolerance);
+ } else {
+ spacegroup.number = 0;
+ warning_print("spglib: Space group could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+ cel_free_cell(primitive);
+
+ return spacegroup;
+}
+
+Spacegroup spa_get_spacegroup_with_primitive(SPGCONST Cell * primitive,
+ const double symprec)
+{
+ Spacegroup spacegroup;
+
+ if (primitive->size > 0) {
+ spacegroup = get_spacegroup(primitive, symprec);
+ } else {
+ spacegroup.number = 0;
+ warning_print("spglib: Space group could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+ return spacegroup;
+}
+
+Symmetry * spa_get_conventional_symmetry(SPGCONST double transform_mat[3][3],
+ const Centering centering,
+ const Symmetry *primitive_sym)
+{
+ return get_conventional_symmetry(transform_mat,
+ centering,
+ primitive_sym);
+}
+
+static Spacegroup get_spacegroup(SPGCONST Cell * primitive,
+ const double symprec)
+{
+ int hall_number;
+ double conv_lattice[3][3];
+ double origin_shift[3];
+ Centering centering;
+ Symmetry *symmetry;
+ Spacegroup spacegroup;
+ SpacegroupType spacegroup_type;
+
+ symmetry = sym_get_operation(primitive, symprec);
+ if (symmetry->size == 0) {
+ spacegroup.number = 0;
+ warning_print("spglib: Space group could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ goto ret;
+ }
+
+ hall_number = get_hall_number(origin_shift,
+ conv_lattice,
+ ¢ering,
+ primitive,
+ symmetry,
+ symprec);
+
+ if (hall_number == 0) {
+ spacegroup.number = 0;
+ warning_print("spglib: Space group could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ goto ret;
+ }
+
+ spacegroup_type = spgdb_get_spacegroup_type(hall_number);
+
+ if (spacegroup_type.number > 0) {
+ mat_copy_matrix_d3(spacegroup.bravais_lattice, conv_lattice);
+ mat_copy_vector_d3(spacegroup.origin_shift, origin_shift);
+ spacegroup.number = spacegroup_type.number;
+ spacegroup.hall_number = hall_number;
+ spacegroup.holohedry = spacegroup_type.holohedry;
+ spacegroup.centering = centering;
+ strcpy(spacegroup.schoenflies,
+ spacegroup_type.schoenflies);
+ strcpy(spacegroup.hall_symbol,
+ spacegroup_type.hall_symbol);
+ strcpy(spacegroup.international,
+ spacegroup_type.international);
+ strcpy(spacegroup.international_long,
+ spacegroup_type.international_full);
+ strcpy(spacegroup.international_short,
+ spacegroup_type.international_short);
+ } else {
+ spacegroup.number = 0;
+ warning_print("spglib: Space group could not be found ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+
+ ret:
+ /* spacegroup.number = 0 when space group was not found. */
+ sym_free_symmetry(symmetry);
+ return spacegroup;
+}
+
+static int get_hall_number(double origin_shift[3],
+ double conv_lattice[3][3],
+ Centering * centering,
+ SPGCONST Cell * primitive,
+ SPGCONST Symmetry * symmetry,
+ const double symprec)
+{
+ int pg_num, hall_number=0;
+
+ debug_print("get_hall_number:\n");
+
+ pg_num = ptg_get_pointgroup_number(symmetry);
+ if (pg_num > -1) {
+ hall_number = get_hall_number_local(origin_shift,
+ conv_lattice,
+ centering,
+ primitive,
+ symmetry,
+ symprec);
+ if (hall_number > 0) { goto ret; }
+ }
+
+ /* Reduce tolerance and search hall symbol again when hall symbol */
+ /* could not be found by the given tolerance. */
+ /* The situation this happens is that symmetry operations found */
+ /* don't match any of hall symbol database due to tricky */
+ /* displacements of atoms from the exact points. */
+ hall_number = get_hall_number_local_iteration(origin_shift,
+ conv_lattice,
+ centering,
+ primitive,
+ symmetry,
+ symprec);
+
+ ret:
+ return hall_number;
+}
+
+static int get_hall_number_local_iteration(double origin_shift[3],
+ double conv_lattice[3][3],
+ Centering * centering,
+ SPGCONST Cell * primitive,
+ SPGCONST Symmetry * symmetry,
+ const double symprec)
+{
+ int attempt, pg_num, hall_number=0;
+ double tolerance;
+ Symmetry * sym_reduced;
+
+ debug_print("get_hall_number_local_iteration:\n");
+
+ tolerance = symprec;
+ for (attempt = 0; attempt < 100; attempt++) {
+ tolerance *= REDUCE_RATE;
+ debug_print(" Attempt %d tolerance = %f\n", attempt, tolerance);
+ sym_reduced = sym_reduce_operation(primitive, symmetry, tolerance);
+ pg_num = ptg_get_pointgroup_number(sym_reduced);
+
+ if (pg_num > -1) {
+ hall_number = get_hall_number_local(origin_shift,
+ conv_lattice,
+ centering,
+ primitive,
+ sym_reduced,
+ symprec);
+ if (hall_number > 0) {
+ sym_free_symmetry(sym_reduced);
+ break;
+ }
+ }
+ sym_free_symmetry(sym_reduced);
+ }
+
+#ifdef SPGWARNING
+ if (hall_number == 0) {
+ warning_print("spglib: Iterative attempt with sym_reduce_operation to find Hall symbol failed.\n");
+ }
+#endif
+
+ return hall_number;
+}
+
+
+static int get_hall_number_local(double origin_shift[3],
+ double conv_lattice[3][3],
+ Centering * centering,
+ SPGCONST Cell * primitive,
+ SPGCONST Symmetry * symmetry,
+ const double symprec)
+{
+ int hall_number;
+ double trans_mat[3][3];
+ Symmetry * conv_symmetry;
+
+ debug_print("get_hall_number_local:\n");
+
+ *centering = ptg_get_transformation_matrix(trans_mat,
+ symmetry->rot,
+ symmetry->size);
+
+ mat_multiply_matrix_d3(conv_lattice,
+ primitive->lattice,
+ trans_mat);
+
+ conv_symmetry = get_conventional_symmetry(trans_mat,
+ *centering,
+ symmetry);
+
+ hall_number = hal_get_hall_symbol(origin_shift,
+ *centering,
+ conv_lattice,
+ conv_symmetry,
+ symprec);
+
+
+ sym_free_symmetry(conv_symmetry);
+
+ return hall_number;
+}
+
+static Symmetry * get_conventional_symmetry(SPGCONST double transform_mat[3][3],
+ const Centering centering,
+ const Symmetry *primitive_sym)
+{
+ int i, j, k, multi, size;
+ double tmp_trans;
+ double tmp_matrix_d3[3][3], shift[4][3];
+ double symmetry_rot_d3[3][3], primitive_sym_rot_d3[3][3];
+ Symmetry *symmetry;
+
+ size = primitive_sym->size;
+
+ if (centering == FACE) {
+ symmetry = sym_alloc_symmetry(size * 4);
+ }
+ else {
+ if (centering) {
+ symmetry = sym_alloc_symmetry(size * 2);
+ } else {
+ symmetry = sym_alloc_symmetry(size);
+ }
+ }
+
+ for (i = 0; i < size; i++) {
+ mat_cast_matrix_3i_to_3d(primitive_sym_rot_d3, primitive_sym->rot[i]);
+
+ /* C*S*C^-1: recover conventional cell symmetry operation */
+ mat_get_similar_matrix_d3(symmetry_rot_d3,
+ primitive_sym_rot_d3,
+ transform_mat,
+ 0);
+ mat_cast_matrix_3d_to_3i(symmetry->rot[i], symmetry_rot_d3);
+
+ /* translation in conventional cell: C = B^-1*P */
+ mat_inverse_matrix_d3(tmp_matrix_d3,
+ transform_mat,
+ 0);
+ mat_multiply_matrix_vector_d3(symmetry->trans[i],
+ tmp_matrix_d3,
+ primitive_sym->trans[i]);
+ }
+
+ multi = 1;
+
+ if (centering) {
+ if (! (centering == FACE)) {
+ for (i = 0; i < 3; i++) { shift[0][i] = 0.5; }
+ if (centering == A_FACE) { shift[0][0] = 0; }
+ if (centering == B_FACE) { shift[0][1] = 0; }
+ if (centering == C_FACE) { shift[0][2] = 0; }
+
+ multi = 2;
+ }
+
+ if (centering == FACE) {
+ shift[0][0] = 0;
+ shift[0][1] = 0.5;
+ shift[0][2] = 0.5;
+ shift[1][0] = 0.5;
+ shift[1][1] = 0;
+ shift[1][2] = 0.5;
+ shift[2][0] = 0.5;
+ shift[2][1] = 0.5;
+ shift[2][2] = 0;
+
+ multi = 4;
+ }
+
+ for (i = 0; i < multi - 1; i++) {
+ for (j = 0; j < size; j++) {
+ mat_copy_matrix_i3(symmetry->rot[(i+1) * size + j],
+ symmetry->rot[j]);
+ for (k = 0; k < 3; k++) {
+ tmp_trans = symmetry->trans[j][k] + shift[i][k];
+ symmetry->trans[(i+1) * size + j][k] = tmp_trans;
+ }
+ }
+ }
+ }
+
+
+ /* Reduce translations into -0 < trans < 1.0 */
+ for (i = 0; i < multi; i++) {
+ for (j = 0; j < size; j++) {
+ for (k = 0; k < 3; k++) {
+ tmp_trans = symmetry->trans[i * size + j][k];
+ tmp_trans -= mat_Nint(tmp_trans);
+ if (tmp_trans < 0) {
+ tmp_trans += 1.0;
+ }
+ symmetry->trans[i * size + j][k] = tmp_trans;
+ }
+ }
+ }
+
+ return symmetry;
+}
+
diff --git a/src/spacegroup.h b/src/spacegroup.h
new file mode 100644
index 0000000..b965a04
--- /dev/null
+++ b/src/spacegroup.h
@@ -0,0 +1,35 @@
+/* spacegroup.h */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#ifndef __spacegroup_H__
+#define __spacegroup_H__
+
+#include "cell.h"
+#include "lattice.h"
+#include "mathfunc.h"
+#include "pointgroup.h"
+#include "symmetry.h"
+
+typedef struct {
+ int number;
+ int hall_number;
+ char schoenflies[7];
+ char hall_symbol[17];
+ char international[32];
+ char international_long[20];
+ char international_short[11];
+ Holohedry holohedry;
+ Centering centering;
+ double bravais_lattice[3][3];
+ double origin_shift[3];
+} Spacegroup;
+
+Spacegroup spa_get_spacegroup( SPGCONST Cell * cell,
+ const double symprec );
+Spacegroup spa_get_spacegroup_with_primitive( SPGCONST Cell * primitive,
+ const double symprec );
+Symmetry * spa_get_conventional_symmetry( SPGCONST double transform_mat[3][3],
+ const Centering centering,
+ const Symmetry *primitive_sym );
+
+#endif
diff --git a/src/spg_database.c b/src/spg_database.c
new file mode 100644
index 0000000..b53b9fd
--- /dev/null
+++ b/src/spg_database.c
@@ -0,0 +1,8511 @@
+/* spg_database.c */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#include "spg_database.h"
+#include "pointgroup.h"
+
+/* In Hall symbols (4th column), '=' is used instead of '"'. */
+static const SpacegroupType spacegroup_types[] = {
+ { 0, " ", " ", " ", " ", " ", NONE }, /* 0*/
+ { 1, "C1^1 ", "P 1 ", "P 1 ", "P 1 ", "P1 ", TRICLI }, /* 1*/
+ { 2, "Ci^1 ", "-P 1 ", "P -1 ", "P -1 ", "P-1 ", TRICLI }, /* 2*/
+ { 3, "C2^1 ", "P 2y ", "P 2 = P 1 2 1 ", "P 1 2 1 ", "P2 ", MONOCLI }, /* 3*/
+ { 3, "C2^1 ", "P 2 ", "P 2 = P 1 1 2 ", "P 1 1 2 ", "P2 ", MONOCLI }, /* 4*/
+ { 3, "C2^1 ", "P 2x ", "P 2 = P 2 1 1 ", "P 2 1 1 ", "P2 ", MONOCLI }, /* 5*/
+ { 4, "C2^2 ", "P 2yb ", "P 2_1 = P 1 2_1 1 ", "P 1 2_1 1 ", "P2_1 ", MONOCLI }, /* 6*/
+ { 4, "C2^2 ", "P 2c ", "P 2_1 = P 1 1 2_1 ", "P 1 1 2_1 ", "P2_1 ", MONOCLI }, /* 7*/
+ { 4, "C2^2 ", "P 2xa ", "P 2_1 = P 2_1 1 1 ", "P 2_1 1 1 ", "P2_1 ", MONOCLI }, /* 8*/
+ { 5, "C2^3 ", "C 2y ", "C 2 = C 1 2 1 ", "C 1 2 1 ", "C2 ", MONOCLI }, /* 9*/
+ { 5, "C2^3 ", "A 2y ", "C 2 = A 1 2 1 ", "A 1 2 1 ", "C2 ", MONOCLI }, /* 10*/
+ { 5, "C2^3 ", "I 2y ", "C 2 = I 1 2 1 ", "I 1 2 1 ", "C2 ", MONOCLI }, /* 11*/
+ { 5, "C2^3 ", "A 2 ", "C 2 = A 1 1 2 ", "A 1 1 2 ", "C2 ", MONOCLI }, /* 12*/
+ { 5, "C2^3 ", "B 2 ", "C 2 = B 1 1 2 = B 2 ", "B 1 1 2 ", "C2 ", MONOCLI }, /* 13*/
+ { 5, "C2^3 ", "I 2 ", "C 2 = I 1 1 2 ", "I 1 1 2 ", "C2 ", MONOCLI }, /* 14*/
+ { 5, "C2^3 ", "B 2x ", "C 2 = B 2 1 1 ", "B 2 1 1 ", "C2 ", MONOCLI }, /* 15*/
+ { 5, "C2^3 ", "C 2x ", "C 2 = C 2 1 1 ", "C 2 1 1 ", "C2 ", MONOCLI }, /* 16*/
+ { 5, "C2^3 ", "I 2x ", "C 2 = I 2 1 1 ", "I 2 1 1 ", "C2 ", MONOCLI }, /* 17*/
+ { 6, "Cs^1 ", "P -2y ", "P m = P 1 m 1 ", "P 1 m 1 ", "Pm ", MONOCLI }, /* 18*/
+ { 6, "Cs^1 ", "P -2 ", "P m = P 1 1 m ", "P 1 1 m ", "Pm ", MONOCLI }, /* 19*/
+ { 6, "Cs^1 ", "P -2x ", "P m = P m 1 1 ", "P m 1 1 ", "Pm ", MONOCLI }, /* 20*/
+ { 7, "Cs^2 ", "P -2yc ", "P c = P 1 c 1 ", "P 1 c 1 ", "Pc ", MONOCLI }, /* 21*/
+ { 7, "Cs^2 ", "P -2yac ", "P c = P 1 n 1 ", "P 1 n 1 ", "Pc ", MONOCLI }, /* 22*/
+ { 7, "Cs^2 ", "P -2ya ", "P c = P 1 a 1 ", "P 1 a 1 ", "Pc ", MONOCLI }, /* 23*/
+ { 7, "Cs^2 ", "P -2a ", "P c = P 1 1 a ", "P 1 1 a ", "Pc ", MONOCLI }, /* 24*/
+ { 7, "Cs^2 ", "P -2ab ", "P c = P 1 1 n ", "P 1 1 n ", "Pc ", MONOCLI }, /* 25*/
+ { 7, "Cs^2 ", "P -2b ", "P c = P 1 1 b = P b ", "P 1 1 b ", "Pc ", MONOCLI }, /* 26*/
+ { 7, "Cs^2 ", "P -2xb ", "P c = P b 1 1 ", "P b 1 1 ", "Pc ", MONOCLI }, /* 27*/
+ { 7, "Cs^2 ", "P -2xbc ", "P c = P n 1 1 ", "P n 1 1 ", "Pc ", MONOCLI }, /* 28*/
+ { 7, "Cs^2 ", "P -2xc ", "P c = P c 1 1 ", "P c 1 1 ", "Pc ", MONOCLI }, /* 29*/
+ { 8, "Cs^3 ", "C -2y ", "C m = C 1 m 1 ", "C 1 m 1 ", "Cm ", MONOCLI }, /* 30*/
+ { 8, "Cs^3 ", "A -2y ", "C m = A 1 m 1 ", "A 1 m 1 ", "Cm ", MONOCLI }, /* 31*/
+ { 8, "Cs^3 ", "I -2y ", "C m = I 1 m 1 ", "I 1 m 1 ", "Cm ", MONOCLI }, /* 32*/
+ { 8, "Cs^3 ", "A -2 ", "C m = A 1 1 m ", "A 1 1 m ", "Cm ", MONOCLI }, /* 33*/
+ { 8, "Cs^3 ", "B -2 ", "C m = B 1 1 m = B m ", "B 1 1 m ", "Cm ", MONOCLI }, /* 34*/
+ { 8, "Cs^3 ", "I -2 ", "C m = I 1 1 m ", "I 1 1 m ", "Cm ", MONOCLI }, /* 35*/
+ { 8, "Cs^3 ", "B -2x ", "C m = B m 1 1 ", "B m 1 1 ", "Cm ", MONOCLI }, /* 36*/
+ { 8, "Cs^3 ", "C -2x ", "C m = C m 1 1 ", "C m 1 1 ", "Cm ", MONOCLI }, /* 37*/
+ { 8, "Cs^3 ", "I -2x ", "C m = I m 1 1 ", "I m 1 1 ", "Cm ", MONOCLI }, /* 38*/
+ { 9, "Cs^4 ", "C -2yc ", "C c = C 1 c 1 ", "C 1 c 1 ", "Cc ", MONOCLI }, /* 39*/
+ { 9, "Cs^4 ", "A -2yac ", "C c = A 1 n 1 ", "A 1 n 1 ", "Cc ", MONOCLI }, /* 40*/
+ { 9, "Cs^4 ", "I -2ya ", "C c = I 1 a 1 ", "I 1 a 1 ", "Cc ", MONOCLI }, /* 41*/
+ { 9, "Cs^4 ", "A -2ya ", "C c = A 1 a 1 ", "A 1 a 1 ", "Cc ", MONOCLI }, /* 42*/
+ { 9, "Cs^4 ", "C -2ybc ", "C c = C 1 n 1 ", "C 1 n 1 ", "Cc ", MONOCLI }, /* 43*/
+ { 9, "Cs^4 ", "I -2yc ", "C c = I 1 c 1 ", "I 1 c 1 ", "Cc ", MONOCLI }, /* 44*/
+ { 9, "Cs^4 ", "A -2a ", "C c = A 1 1 a ", "A 1 1 a ", "Cc ", MONOCLI }, /* 45*/
+ { 9, "Cs^4 ", "B -2bc ", "C c = B 1 1 n ", "B 1 1 n ", "Cc ", MONOCLI }, /* 46*/
+ { 9, "Cs^4 ", "I -2b ", "C c = I 1 1 b ", "I 1 1 b ", "Cc ", MONOCLI }, /* 47*/
+ { 9, "Cs^4 ", "B -2b ", "C c = B 1 1 b = B b ", "B 1 1 b ", "Cc ", MONOCLI }, /* 48*/
+ { 9, "Cs^4 ", "A -2ac ", "C c = A 1 1 n ", "A 1 1 n ", "Cc ", MONOCLI }, /* 49*/
+ { 9, "Cs^4 ", "I -2a ", "C c = I 1 1 a ", "I 1 1 a ", "Cc ", MONOCLI }, /* 50*/
+ { 9, "Cs^4 ", "B -2xb ", "C c = B b 1 1 ", "B b 1 1 ", "Cc ", MONOCLI }, /* 51*/
+ { 9, "Cs^4 ", "C -2xbc ", "C c = C n 1 1 ", "C n 1 1 ", "Cc ", MONOCLI }, /* 52*/
+ { 9, "Cs^4 ", "I -2xc ", "C c = I c 1 1 ", "I c 1 1 ", "Cc ", MONOCLI }, /* 53*/
+ { 9, "Cs^4 ", "C -2xc ", "C c = C c 1 1 ", "C c 1 1 ", "Cc ", MONOCLI }, /* 54*/
+ { 9, "Cs^4 ", "B -2xbc ", "C c = B n 1 1 ", "B n 1 1 ", "Cc ", MONOCLI }, /* 55*/
+ { 9, "Cs^4 ", "I -2xb ", "C c = I b 1 1 ", "I b 1 1 ", "Cc ", MONOCLI }, /* 56*/
+ { 10, "C2h^1 ", "-P 2y ", "P 2/m = P 1 2/m 1 ", "P 1 2/m 1 ", "P2/m ", MONOCLI }, /* 57*/
+ { 10, "C2h^1 ", "-P 2 ", "P 2/m = P 1 1 2/m ", "P 1 1 2/m ", "P2/m ", MONOCLI }, /* 58*/
+ { 10, "C2h^1 ", "-P 2x ", "P 2/m = P 2/m 1 1 ", "P 2/m 1 1 ", "P2/m ", MONOCLI }, /* 59*/
+ { 11, "C2h^2 ", "-P 2yb ", "P 2_1/m = P 1 2_1/m 1 ", "P 1 2_1/m 1 ", "P2_1/m ", MONOCLI }, /* 60*/
+ { 11, "C2h^2 ", "-P 2c ", "P 2_1/m = P 1 1 2_1/m ", "P 1 1 2_1/m ", "P2_1/m ", MONOCLI }, /* 61*/
+ { 11, "C2h^2 ", "-P 2xa ", "P 2_1/m = P 2_1/m 1 1 ", "P 2_1/m 1 1 ", "P2_1/m ", MONOCLI }, /* 62*/
+ { 12, "C2h^3 ", "-C 2y ", "C 2/m = C 1 2/m 1 ", "C 1 2/m 1 ", "C2/m ", MONOCLI }, /* 63*/
+ { 12, "C2h^3 ", "-A 2y ", "C 2/m = A 1 2/m 1 ", "A 1 2/m 1 ", "C2/m ", MONOCLI }, /* 64*/
+ { 12, "C2h^3 ", "-I 2y ", "C 2/m = I 1 2/m 1 ", "I 1 2/m 1 ", "C2/m ", MONOCLI }, /* 65*/
+ { 12, "C2h^3 ", "-A 2 ", "C 2/m = A 1 1 2/m ", "A 1 1 2/m ", "C2/m ", MONOCLI }, /* 66*/
+ { 12, "C2h^3 ", "-B 2 ", "C 2/m = B 1 1 2/m = B 2/m ", "B 1 1 2/m ", "C2/m ", MONOCLI }, /* 67*/
+ { 12, "C2h^3 ", "-I 2 ", "C 2/m = I 1 1 2/m ", "I 1 1 2/m ", "C2/m ", MONOCLI }, /* 68*/
+ { 12, "C2h^3 ", "-B 2x ", "C 2/m = B 2/m 1 1 ", "B 2/m 1 1 ", "C2/m ", MONOCLI }, /* 69*/
+ { 12, "C2h^3 ", "-C 2x ", "C 2/m = C 2/m 1 1 ", "C 2/m 1 1 ", "C2/m ", MONOCLI }, /* 70*/
+ { 12, "C2h^3 ", "-I 2x ", "C 2/m = I 2/m 1 1 ", "I 2/m 1 1 ", "C2/m ", MONOCLI }, /* 71*/
+ { 13, "C2h^4 ", "-P 2yc ", "P 2/c = P 1 2/c 1 ", "P 1 2/c 1 ", "P2/c ", MONOCLI }, /* 72*/
+ { 13, "C2h^4 ", "-P 2yac ", "P 2/c = P 1 2/n 1 ", "P 1 2/n 1 ", "P2/c ", MONOCLI }, /* 73*/
+ { 13, "C2h^4 ", "-P 2ya ", "P 2/c = P 1 2/a 1 ", "P 1 2/a 1 ", "P2/c ", MONOCLI }, /* 74*/
+ { 13, "C2h^4 ", "-P 2a ", "P 2/c = P 1 1 2/a ", "P 1 1 2/a ", "P2/c ", MONOCLI }, /* 75*/
+ { 13, "C2h^4 ", "-P 2ab ", "P 2/c = P 1 1 2/n ", "P 1 1 2/n ", "P2/c ", MONOCLI }, /* 76*/
+ { 13, "C2h^4 ", "-P 2b ", "P 2/c = P 1 1 2/b = P 2/b ", "P 1 1 2/b ", "P2/c ", MONOCLI }, /* 77*/
+ { 13, "C2h^4 ", "-P 2xb ", "P 2/c = P 2/b 1 1 ", "P 2/b 1 1 ", "P2/c ", MONOCLI }, /* 78*/
+ { 13, "C2h^4 ", "-P 2xbc ", "P 2/c = P 2/n 1 1 ", "P 2/n 1 1 ", "P2/c ", MONOCLI }, /* 79*/
+ { 13, "C2h^4 ", "-P 2xc ", "P 2/c = P 2/c 1 1 ", "P 2/c 1 1 ", "P2/c ", MONOCLI }, /* 80*/
+ { 14, "C2h^5 ", "-P 2ybc ", "P 2_1/c = P 1 2_1/c 1 ", "P 1 2_1/c 1 ", "P2_1/c ", MONOCLI }, /* 81*/
+ { 14, "C2h^5 ", "-P 2yn ", "P 2_1/c = P 1 2_1/n 1 ", "P 1 2_1/n 1 ", "P2_1/c ", MONOCLI }, /* 82*/
+ { 14, "C2h^5 ", "-P 2yab ", "P 2_1/c = P 1 2_1/a 1 ", "P 1 2_1/a 1 ", "P2_1/c ", MONOCLI }, /* 83*/
+ { 14, "C2h^5 ", "-P 2ac ", "P 2_1/c = P 1 1 2_1/a ", "P 1 1 2_1/a ", "P2_1/c ", MONOCLI }, /* 84*/
+ { 14, "C2h^5 ", "-P 2n ", "P 2_1/c = P 1 1 2_1/n ", "P 1 1 2_1/n ", "P2_1/c ", MONOCLI }, /* 85*/
+ { 14, "C2h^5 ", "-P 2bc ", "P 2_1/c = P 1 1 2_1/b = P 2_1/b", "P 1 1 2_1/b ", "P2_1/c ", MONOCLI }, /* 86*/
+ { 14, "C2h^5 ", "-P 2xab ", "P 2_1/c = P 2_1/b 1 1 ", "P 2_1/b 1 1 ", "P2_1/c ", MONOCLI }, /* 87*/
+ { 14, "C2h^5 ", "-P 2xn ", "P 2_1/c = P 2_1/n 1 1 ", "P 2_1/n 1 1 ", "P2_1/c ", MONOCLI }, /* 88*/
+ { 14, "C2h^5 ", "-P 2xac ", "P 2_1/c = P 2_1/c 1 1 ", "P 2_1/c 1 1 ", "P2_1/c ", MONOCLI }, /* 89*/
+ { 15, "C2h^6 ", "-C 2yc ", "C 2/c = C 1 2/c 1 ", "C 1 2/c 1 ", "C2/c ", MONOCLI }, /* 90*/
+ { 15, "C2h^6 ", "-A 2yac ", "C 2/c = A 1 2/n 1 ", "A 1 2/n 1 ", "C2/c ", MONOCLI }, /* 91*/
+ { 15, "C2h^6 ", "-I 2ya ", "C 2/c = I 1 2/a 1 ", "I 1 2/a 1 ", "C2/c ", MONOCLI }, /* 92*/
+ { 15, "C2h^6 ", "-A 2ya ", "C 2/c = A 1 2/a 1 ", "A 1 2/a 1 ", "C2/c ", MONOCLI }, /* 93*/
+ { 15, "C2h^6 ", "-C 2ybc ", "C 2/c = C 1 2/n 1 ", "C 1 2/n 1 ", "C2/c ", MONOCLI }, /* 94*/
+ { 15, "C2h^6 ", "-I 2yc ", "C 2/c = I 1 2/c 1 ", "I 1 2/c 1 ", "C2/c ", MONOCLI }, /* 95*/
+ { 15, "C2h^6 ", "-A 2a ", "C 2/c = A 1 1 2/a ", "A 1 1 2/a ", "C2/c ", MONOCLI }, /* 96*/
+ { 15, "C2h^6 ", "-B 2bc ", "C 2/c = B 1 1 2/n ", "B 1 1 2/n ", "C2/c ", MONOCLI }, /* 97*/
+ { 15, "C2h^6 ", "-I 2b ", "C 2/c = I 1 1 2/b ", "I 1 1 2/b ", "C2/c ", MONOCLI }, /* 98*/
+ { 15, "C2h^6 ", "-B 2b ", "C 2/c = B 1 1 2/b = B 2/b ", "B 1 1 2/b ", "C2/c ", MONOCLI }, /* 99*/
+ { 15, "C2h^6 ", "-A 2ac ", "C 2/c = A 1 1 2/n ", "A 1 1 2/n ", "C2/c ", MONOCLI }, /*100*/
+ { 15, "C2h^6 ", "-I 2a ", "C 2/c = I 1 1 2/a ", "I 1 1 2/a ", "C2/c ", MONOCLI }, /*101*/
+ { 15, "C2h^6 ", "-B 2xb ", "C 2/c = B 2/b 1 1 ", "B 2/b 1 1 ", "C2/c ", MONOCLI }, /*102*/
+ { 15, "C2h^6 ", "-C 2xbc ", "C 2/c = C 2/n 1 1 ", "C 2/n 1 1 ", "C2/c ", MONOCLI }, /*103*/
+ { 15, "C2h^6 ", "-I 2xc ", "C 2/c = I 2/c 1 1 ", "I 2/c 1 1 ", "C2/c ", MONOCLI }, /*104*/
+ { 15, "C2h^6 ", "-C 2xc ", "C 2/c = C 2/c 1 1 ", "C 2/c 1 1 ", "C2/c ", MONOCLI }, /*105*/
+ { 15, "C2h^6 ", "-B 2xbc ", "C 2/c = B 2/n 1 1 ", "B 2/n 1 1 ", "C2/c ", MONOCLI }, /*106*/
+ { 15, "C2h^6 ", "-I 2xb ", "C 2/c = I 2/b 1 1 ", "I 2/b 1 1 ", "C2/c ", MONOCLI }, /*107*/
+ { 16, "D2^1 ", "P 2 2 ", "P 2 2 2 ", "P 2 2 2 ", "P222 ", ORTHO }, /*108*/
+ { 17, "D2^2 ", "P 2c 2 ", "P 2 2 2_1 ", "P 2 2 2_1 ", "P222_1 ", ORTHO }, /*109*/
+ { 17, "D2^2 ", "P 2a 2a ", "P 2_1 2 2 ", "P 2_1 2 2 ", "P2_122 ", ORTHO }, /*110*/
+ { 17, "D2^2 ", "P 2 2b ", "P 2 2_1 2 ", "P 2 2_1 2 ", "P22_12 ", ORTHO }, /*111*/
+ { 18, "D2^3 ", "P 2 2ab ", "P 2_1 2_1 2 ", "P 2_1 2_1 2 ", "P2_12_12 ", ORTHO }, /*112*/
+ { 18, "D2^3 ", "P 2bc 2 ", "P 2 2_1 2_1 ", "P 2 2_1 2_1 ", "P22_12_1 ", ORTHO }, /*113*/
+ { 18, "D2^3 ", "P 2ac 2ac ", "P 2_1 2 2_1 ", "P 2_1 2 2_1 ", "P2_122_1 ", ORTHO }, /*114*/
+ { 19, "D2^4 ", "P 2ac 2ab ", "P 2_1 2_1 2_1 ", "P 2_1 2_1 2_1 ", "P2_12_12_1", ORTHO }, /*115*/
+ { 20, "D2^5 ", "C 2c 2 ", "C 2 2 2_1 ", "C 2 2 2_1 ", "C222_1 ", ORTHO }, /*116*/
+ { 20, "D2^5 ", "A 2a 2a ", "A 2_1 2 2 ", "A 2_1 2 2 ", "A2_122 ", ORTHO }, /*117*/
+ { 20, "D2^5 ", "B 2 2b ", "B 2 2_1 2 ", "B 2 2_1 2 ", "B22_12 ", ORTHO }, /*118*/
+ { 21, "D2^6 ", "C 2 2 ", "C 2 2 2 ", "C 2 2 2 ", "C222 ", ORTHO }, /*119*/
+ { 21, "D2^6 ", "A 2 2 ", "A 2 2 2 ", "A 2 2 2 ", "A222 ", ORTHO }, /*120*/
+ { 21, "D2^6 ", "B 2 2 ", "B 2 2 2 ", "B 2 2 2 ", "B222 ", ORTHO }, /*121*/
+ { 22, "D2^7 ", "F 2 2 ", "F 2 2 2 ", "F 2 2 2 ", "F222 ", ORTHO }, /*122*/
+ { 23, "D2^8 ", "I 2 2 ", "I 2 2 2 ", "I 2 2 2 ", "I222 ", ORTHO }, /*123*/
+ { 24, "D2^9 ", "I 2b 2c ", "I 2_1 2_1 2_1 ", "I 2_1 2_1 2_1 ", "I2_12_12_1", ORTHO }, /*124*/
+ { 25, "C2v^1 ", "P 2 -2 ", "P m m 2 ", "P m m 2 ", "Pmm2 ", ORTHO }, /*125*/
+ { 25, "C2v^1 ", "P -2 2 ", "P 2 m m ", "P 2 m m ", "P2mm ", ORTHO }, /*126*/
+ { 25, "C2v^1 ", "P -2 -2 ", "P m 2 m ", "P m 2 m ", "Pm2m ", ORTHO }, /*127*/
+ { 26, "C2v^2 ", "P 2c -2 ", "P m c 2_1 ", "P m c 2_1 ", "Pmc2_1 ", ORTHO }, /*128*/
+ { 26, "C2v^2 ", "P 2c -2c ", "P c m 2_1 ", "P c m 2_1 ", "Pcm2_1 ", ORTHO }, /*129*/
+ { 26, "C2v^2 ", "P -2a 2a ", "P 2_1 m a ", "P 2_1 m a ", "P2_1ma ", ORTHO }, /*130*/
+ { 26, "C2v^2 ", "P -2 2a ", "P 2_1 a m ", "P 2_1 a m ", "P2_1am ", ORTHO }, /*131*/
+ { 26, "C2v^2 ", "P -2 -2b ", "P b 2_1 m ", "P b 2_1 m ", "Pb2_1m ", ORTHO }, /*132*/
+ { 26, "C2v^2 ", "P -2b -2 ", "P m 2_1 b ", "P m 2_1 b ", "Pm2_1b ", ORTHO }, /*133*/
+ { 27, "C2v^3 ", "P 2 -2c ", "P c c 2 ", "P c c 2 ", "Pcc2 ", ORTHO }, /*134*/
+ { 27, "C2v^3 ", "P -2a 2 ", "P 2 a a ", "P 2 a a ", "P2aa ", ORTHO }, /*135*/
+ { 27, "C2v^3 ", "P -2b -2b ", "P b 2 b ", "P b 2 b ", "Pb2b ", ORTHO }, /*136*/
+ { 28, "C2v^4 ", "P 2 -2a ", "P m a 2 ", "P m a 2 ", "Pma2 ", ORTHO }, /*137*/
+ { 28, "C2v^4 ", "P 2 -2b ", "P b m 2 ", "P b m 2 ", "Pbm2 ", ORTHO }, /*138*/
+ { 28, "C2v^4 ", "P -2b 2 ", "P 2 m b ", "P 2 m b ", "P2mb ", ORTHO }, /*139*/
+ { 28, "C2v^4 ", "P -2c 2 ", "P 2 c m ", "P 2 c m ", "P2cm ", ORTHO }, /*140*/
+ { 28, "C2v^4 ", "P -2c -2c ", "P c 2 m ", "P c 2 m ", "Pc2m ", ORTHO }, /*141*/
+ { 28, "C2v^4 ", "P -2a -2a ", "P m 2 a ", "P m 2 a ", "Pm2a ", ORTHO }, /*142*/
+ { 29, "C2v^5 ", "P 2c -2ac ", "P c a 2_1 ", "P c a 2_1 ", "Pca2_1 ", ORTHO }, /*143*/
+ { 29, "C2v^5 ", "P 2c -2b ", "P b c 2_1 ", "P b c 2_1 ", "Pbc2_1 ", ORTHO }, /*144*/
+ { 29, "C2v^5 ", "P -2b 2a ", "P 2_1 a b ", "P 2_1 a b ", "P2_1ab ", ORTHO }, /*145*/
+ { 29, "C2v^5 ", "P -2ac 2a ", "P 2_1 c a ", "P 2_1 c a ", "P2_1ca ", ORTHO }, /*146*/
+ { 29, "C2v^5 ", "P -2bc -2c ", "P c 2_1 b ", "P c 2_1 b ", "Pc2_1b ", ORTHO }, /*147*/
+ { 29, "C2v^5 ", "P -2a -2ab ", "P b 2_1 a ", "P b 2_1 a ", "Pb2_1a ", ORTHO }, /*148*/
+ { 30, "C2v^6 ", "P 2 -2bc ", "P n c 2 ", "P n c 2 ", "Pnc2 ", ORTHO }, /*149*/
+ { 30, "C2v^6 ", "P 2 -2ac ", "P c n 2 ", "P c n 2 ", "Pcn2 ", ORTHO }, /*150*/
+ { 30, "C2v^6 ", "P -2ac 2 ", "P 2 n a ", "P 2 n a ", "P2na ", ORTHO }, /*151*/
+ { 30, "C2v^6 ", "P -2ab 2 ", "P 2 a n ", "P 2 a n ", "P2an ", ORTHO }, /*152*/
+ { 30, "C2v^6 ", "P -2ab -2ab ", "P b 2 n ", "P b 2 n ", "Pb2n ", ORTHO }, /*153*/
+ { 30, "C2v^6 ", "P -2bc -2bc ", "P n 2 b ", "P n 2 b ", "Pn2b ", ORTHO }, /*154*/
+ { 31, "C2v^7 ", "P 2ac -2 ", "P m n 2_1 ", "P m n 2_1 ", "Pmn2_1 ", ORTHO }, /*155*/
+ { 31, "C2v^7 ", "P 2bc -2bc ", "P n m 2_1 ", "P n m 2_1 ", "Pnm2_1 ", ORTHO }, /*156*/
+ { 31, "C2v^7 ", "P -2ab 2ab ", "P 2_1 m n ", "P 2_1 m n ", "P2_1mn ", ORTHO }, /*157*/
+ { 31, "C2v^7 ", "P -2 2ac ", "P 2_1 n m ", "P 2_1 n m ", "P2_1nm ", ORTHO }, /*158*/
+ { 31, "C2v^7 ", "P -2 -2bc ", "P n 2_1 m ", "P n 2_1 m ", "Pn2_1m ", ORTHO }, /*159*/
+ { 31, "C2v^7 ", "P -2ab -2 ", "P m 2_1 n ", "P m 2_1 n ", "Pm2_1n ", ORTHO }, /*160*/
+ { 32, "C2v^8 ", "P 2 -2ab ", "P b a 2 ", "P b a 2 ", "Pba2 ", ORTHO }, /*161*/
+ { 32, "C2v^8 ", "P -2bc 2 ", "P 2 c b ", "P 2 c b ", "P2cb ", ORTHO }, /*162*/
+ { 32, "C2v^8 ", "P -2ac -2ac ", "P c 2 a ", "P c 2 a ", "Pc2a ", ORTHO }, /*163*/
+ { 33, "C2v^9 ", "P 2c -2n ", "P n a 2_1 ", "P n a 2_1 ", "Pna2_1 ", ORTHO }, /*164*/
+ { 33, "C2v^9 ", "P 2c -2ab ", "P b n 2_1 ", "P b n 2_1 ", "Pbn2_1 ", ORTHO }, /*165*/
+ { 33, "C2v^9 ", "P -2bc 2a ", "P 2_1 n b ", "P 2_1 n b ", "P2_1nb ", ORTHO }, /*166*/
+ { 33, "C2v^9 ", "P -2n 2a ", "P 2_1 c n ", "P 2_1 c n ", "P2_1cn ", ORTHO }, /*167*/
+ { 33, "C2v^9 ", "P -2n -2ac ", "P c 2_1 n ", "P c 2_1 n ", "Pc2_1n ", ORTHO }, /*168*/
+ { 33, "C2v^9 ", "P -2ac -2n ", "P n 2_1 a ", "P n 2_1 a ", "Pn2_1a ", ORTHO }, /*169*/
+ { 34, "C2v^10", "P 2 -2n ", "P n n 2 ", "P n n 2 ", "Pnn2 ", ORTHO }, /*170*/
+ { 34, "C2v^10", "P -2n 2 ", "P 2 n n ", "P 2 n n ", "P2nn ", ORTHO }, /*171*/
+ { 34, "C2v^10", "P -2n -2n ", "P n 2 n ", "P n 2 n ", "Pn2n ", ORTHO }, /*172*/
+ { 35, "C2v^11", "C 2 -2 ", "C m m 2 ", "C m m 2 ", "Cmm2 ", ORTHO }, /*173*/
+ { 35, "C2v^11", "A -2 2 ", "A 2 m m ", "A 2 m m ", "A2mm ", ORTHO }, /*174*/
+ { 35, "C2v^11", "B -2 -2 ", "B m 2 m ", "B m 2 m ", "Bm2m ", ORTHO }, /*175*/
+ { 36, "C2v^12", "C 2c -2 ", "C m c 2_1 ", "C m c 2_1 ", "Cmc2_1 ", ORTHO }, /*176*/
+ { 36, "C2v^12", "C 2c -2c ", "C c m 2_1 ", "C c m 2_1 ", "Ccm2_1 ", ORTHO }, /*177*/
+ { 36, "C2v^12", "A -2a 2a ", "A 2_1 m a ", "A 2_1 m a ", "A2_1ma ", ORTHO }, /*178*/
+ { 36, "C2v^12", "A -2 2a ", "A 2_1 a m ", "A 2_1 a m ", "A2_1am ", ORTHO }, /*179*/
+ { 36, "C2v^12", "B -2 -2b ", "B b 2_1 m ", "B b 2_1 m ", "Bb2_1m ", ORTHO }, /*180*/
+ { 36, "C2v^12", "B -2b -2 ", "B m 2_1 b ", "B m 2_1 b ", "Bm2_1b ", ORTHO }, /*181*/
+ { 37, "C2v^13", "C 2 -2c ", "C c c 2 ", "C c c 2 ", "Ccc2 ", ORTHO }, /*182*/
+ { 37, "C2v^13", "A -2a 2 ", "A 2 a a ", "A 2 a a ", "A2aa ", ORTHO }, /*183*/
+ { 37, "C2v^13", "B -2b -2b ", "B b 2 b ", "B b 2 b ", "Bb2b ", ORTHO }, /*184*/
+ { 38, "C2v^14", "A 2 -2 ", "A m m 2 ", "A m m 2 ", "Amm2 ", ORTHO }, /*185*/
+ { 38, "C2v^14", "B 2 -2 ", "B m m 2 ", "B m m 2 ", "Bmm2 ", ORTHO }, /*186*/
+ { 38, "C2v^14", "B -2 2 ", "B 2 m m ", "B 2 m m ", "B2mm ", ORTHO }, /*187*/
+ { 38, "C2v^14", "C -2 2 ", "C 2 m m ", "C 2 m m ", "C2mm ", ORTHO }, /*188*/
+ { 38, "C2v^14", "C -2 -2 ", "C m 2 m ", "C m 2 m ", "Cm2m ", ORTHO }, /*189*/
+ { 38, "C2v^14", "A -2 -2 ", "A m 2 m ", "A m 2 m ", "Am2m ", ORTHO }, /*190*/
+ { 39, "C2v^15", "A 2 -2c ", "A e m 2 ", "A e m 2 ", "Aem2 ", ORTHO }, /*191*/
+ { 39, "C2v^15", "B 2 -2c ", "B m e 2 ", "B m e 2 ", "Bme2 ", ORTHO }, /*192*/
+ { 39, "C2v^15", "B -2c 2 ", "B 2 e m ", "B 2 e m ", "B2em ", ORTHO }, /*193*/
+ { 39, "C2v^15", "C -2b 2 ", "C 2 m e ", "C 2 m e ", "C2me ", ORTHO }, /*194*/
+ { 39, "C2v^15", "C -2b -2b ", "C m 2 e ", "C m 2 e ", "Cm2e ", ORTHO }, /*195*/
+ { 39, "C2v^15", "A -2c -2c ", "A e 2 m ", "A e 2 m ", "Ae2m ", ORTHO }, /*196*/
+ { 40, "C2v^16", "A 2 -2a ", "A m a 2 ", "A m a 2 ", "Ama2 ", ORTHO }, /*197*/
+ { 40, "C2v^16", "B 2 -2b ", "B b m 2 ", "B b m 2 ", "Bbm2 ", ORTHO }, /*198*/
+ { 40, "C2v^16", "B -2b 2 ", "B 2 m b ", "B 2 m b ", "B2mb ", ORTHO }, /*199*/
+ { 40, "C2v^16", "C -2c 2 ", "C 2 c m ", "C 2 c m ", "C2cm ", ORTHO }, /*200*/
+ { 40, "C2v^16", "C -2c -2c ", "C c 2 m ", "C c 2 m ", "Cc2m ", ORTHO }, /*201*/
+ { 40, "C2v^16", "A -2a -2a ", "A m 2 a ", "A m 2 a ", "Am2a ", ORTHO }, /*202*/
+ { 41, "C2v^17", "A 2 -2ac ", "A e a 2 ", "A e a 2 ", "Aea2 ", ORTHO }, /*203*/
+ { 41, "C2v^17", "B 2 -2bc ", "B b e 2 ", "B b e 2 ", "Bbe2 ", ORTHO }, /*204*/
+ { 41, "C2v^17", "B -2bc 2 ", "B 2 e b ", "B 2 e b ", "B2eb ", ORTHO }, /*205*/
+ { 41, "C2v^17", "C -2bc 2 ", "C 2 c e ", "C 2 c e ", "C2ce ", ORTHO }, /*206*/
+ { 41, "C2v^17", "C -2bc -2bc ", "C c 2 e ", "C c 2 e ", "Cc2e ", ORTHO }, /*207*/
+ { 41, "C2v^17", "A -2ac -2ac ", "A e 2 a ", "A e 2 a ", "Ae2a ", ORTHO }, /*208*/
+ { 42, "C2v^18", "F 2 -2 ", "F m m 2 ", "F m m 2 ", "Fmm2 ", ORTHO }, /*209*/
+ { 42, "C2v^18", "F -2 2 ", "F 2 m m ", "F 2 m m ", "F2mm ", ORTHO }, /*210*/
+ { 42, "C2v^18", "F -2 -2 ", "F m 2 m ", "F m 2 m ", "Fm2m ", ORTHO }, /*211*/
+ { 43, "C2v^19", "F 2 -2d ", "F d d 2 ", "F d d 2 ", "Fdd2 ", ORTHO }, /*212*/
+ { 43, "C2v^19", "F -2d 2 ", "F 2 d d ", "F 2 d d ", "F2dd ", ORTHO }, /*213*/
+ { 43, "C2v^19", "F -2d -2d ", "F d 2 d ", "F d 2 d ", "Fd2d ", ORTHO }, /*214*/
+ { 44, "C2v^20", "I 2 -2 ", "I m m 2 ", "I m m 2 ", "Imm2 ", ORTHO }, /*215*/
+ { 44, "C2v^20", "I -2 2 ", "I 2 m m ", "I 2 m m ", "I2mm ", ORTHO }, /*216*/
+ { 44, "C2v^20", "I -2 -2 ", "I m 2 m ", "I m 2 m ", "Im2m ", ORTHO }, /*217*/
+ { 45, "C2v^21", "I 2 -2c ", "I b a 2 ", "I b a 2 ", "Iba2 ", ORTHO }, /*218*/
+ { 45, "C2v^21", "I -2a 2 ", "I 2 c b ", "I 2 c b ", "I2cb ", ORTHO }, /*219*/
+ { 45, "C2v^21", "I -2b -2b ", "I c 2 a ", "I c 2 a ", "Ic2a ", ORTHO }, /*220*/
+ { 46, "C2v^22", "I 2 -2a ", "I m a 2 ", "I m a 2 ", "Ima2 ", ORTHO }, /*221*/
+ { 46, "C2v^22", "I 2 -2b ", "I b m 2 ", "I b m 2 ", "Ibm2 ", ORTHO }, /*222*/
+ { 46, "C2v^22", "I -2b 2 ", "I 2 m b ", "I 2 m b ", "I2mb ", ORTHO }, /*223*/
+ { 46, "C2v^22", "I -2c 2 ", "I 2 c m ", "I 2 c m ", "I2cm ", ORTHO }, /*224*/
+ { 46, "C2v^22", "I -2c -2c ", "I c 2 m ", "I c 2 m ", "Ic2m ", ORTHO }, /*225*/
+ { 46, "C2v^22", "I -2a -2a ", "I m 2 a ", "I m 2 a ", "Im2a ", ORTHO }, /*226*/
+ { 47, "D2h^1 ", "-P 2 2 ", "P m m m ", "P 2/m 2/m 2/m ", "Pmmm ", ORTHO }, /*227*/
+ { 48, "D2h^2 ", "P 2 2 -1n ", "P n n n ", "P 2/n 2/n 2/n ", "Pnnn ", ORTHO }, /*228*/
+ { 48, "D2h^2 ", "-P 2ab 2bc ", "P n n n ", "P 2/n 2/n 2/n ", "Pnnn ", ORTHO }, /*229*/
+ { 49, "D2h^3 ", "-P 2 2c ", "P c c m ", "P 2/c 2/c 2/m ", "Pccm ", ORTHO }, /*230*/
+ { 49, "D2h^3 ", "-P 2a 2 ", "P m a a ", "P 2/m 2/a 2/a ", "Pmaa ", ORTHO }, /*231*/
+ { 49, "D2h^3 ", "-P 2b 2b ", "P b m b ", "P 2/b 2/m 2/b ", "Pbmb ", ORTHO }, /*232*/
+ { 50, "D2h^4 ", "P 2 2 -1ab ", "P b a n ", "P 2/b 2/a 2/n ", "Pban ", ORTHO }, /*233*/
+ { 50, "D2h^4 ", "-P 2ab 2b ", "P b a n ", "P 2/b 2/a 2/n ", "Pban ", ORTHO }, /*234*/
+ { 50, "D2h^4 ", "P 2 2 -1bc ", "P n c b ", "P 2/n 2/c 2/b ", "Pncb ", ORTHO }, /*235*/
+ { 50, "D2h^4 ", "-P 2b 2bc ", "P n c b ", "P 2/n 2/c 2/b ", "Pncb ", ORTHO }, /*236*/
+ { 50, "D2h^4 ", "P 2 2 -1ac ", "P c n a ", "P 2/c 2/n 2/a ", "Pcna ", ORTHO }, /*237*/
+ { 50, "D2h^4 ", "-P 2a 2c ", "P c n a ", "P 2/c 2/n 2/a ", "Pcna ", ORTHO }, /*238*/
+ { 51, "D2h^5 ", "-P 2a 2a ", "P m m a ", "P 2_1/m 2/m 2/a ", "Pmma ", ORTHO }, /*239*/
+ { 51, "D2h^5 ", "-P 2b 2 ", "P m m b ", "P 2/m 2_1/m 2/b ", "Pmmb ", ORTHO }, /*240*/
+ { 51, "D2h^5 ", "-P 2 2b ", "P b m m ", "P 2/b 2_1/m 2/m ", "Pbmm ", ORTHO }, /*241*/
+ { 51, "D2h^5 ", "-P 2c 2c ", "P c m m ", "P 2/c 2/m 2_1/m ", "Pcmm ", ORTHO }, /*242*/
+ { 51, "D2h^5 ", "-P 2c 2 ", "P m c m ", "P 2/m 2/c 2_1/m ", "Pmcm ", ORTHO }, /*243*/
+ { 51, "D2h^5 ", "-P 2 2a ", "P m a m ", "P 2_1/m 2/a 2/m ", "Pmam ", ORTHO }, /*244*/
+ { 52, "D2h^6 ", "-P 2a 2bc ", "P n n a ", "P 2/n 2_1/n 2/a ", "Pnna ", ORTHO }, /*245*/
+ { 52, "D2h^6 ", "-P 2b 2n ", "P n n b ", "P 2_1/n 2/n 2/b ", "Pnnb ", ORTHO }, /*246*/
+ { 52, "D2h^6 ", "-P 2n 2b ", "P b n n ", "P 2/b 2/n 2_1/n ", "Pbnn ", ORTHO }, /*247*/
+ { 52, "D2h^6 ", "-P 2ab 2c ", "P c n n ", "P 2/c 2_1/n 2/n ", "Pcnn ", ORTHO }, /*248*/
+ { 52, "D2h^6 ", "-P 2ab 2n ", "P n c n ", "P 2_1/n 2/c 2/n ", "Pncn ", ORTHO }, /*249*/
+ { 52, "D2h^6 ", "-P 2n 2bc ", "P n a n ", "P 2/n 2/a 2_1/n ", "Pnan ", ORTHO }, /*250*/
+ { 53, "D2h^7 ", "-P 2ac 2 ", "P m n a ", "P 2/m 2/n 2_1/a ", "Pmna ", ORTHO }, /*251*/
+ { 53, "D2h^7 ", "-P 2bc 2bc ", "P n m b ", "P 2/n 2/m 2_1/b ", "Pnmb ", ORTHO }, /*252*/
+ { 53, "D2h^7 ", "-P 2ab 2ab ", "P b m n ", "P 2_1/b 2/m 2/n ", "Pbmn ", ORTHO }, /*253*/
+ { 53, "D2h^7 ", "-P 2 2ac ", "P c n m ", "P 2_1/c 2/n 2/m ", "Pcnm ", ORTHO }, /*254*/
+ { 53, "D2h^7 ", "-P 2 2bc ", "P n c m ", "P 2/n 2_1/c 2/m ", "Pncm ", ORTHO }, /*255*/
+ { 53, "D2h^7 ", "-P 2ab 2 ", "P m a n ", "P 2/m 2_1/a 2/n ", "Pman ", ORTHO }, /*256*/
+ { 54, "D2h^8 ", "-P 2a 2ac ", "P c c a ", "P 2_1/c 2/c 2/a ", "Pcca ", ORTHO }, /*257*/
+ { 54, "D2h^8 ", "-P 2b 2c ", "P c c b ", "P 2/c 2_1/c 2/b ", "Pccb ", ORTHO }, /*258*/
+ { 54, "D2h^8 ", "-P 2a 2b ", "P b a a ", "P 2/b 2_1/a 2/a ", "Pbaa ", ORTHO }, /*259*/
+ { 54, "D2h^8 ", "-P 2ac 2c ", "P c a a ", "P 2/c 2/a 2_1/a ", "Pcaa ", ORTHO }, /*260*/
+ { 54, "D2h^8 ", "-P 2bc 2b ", "P b c b ", "P 2/b 2/c 2_1/b ", "Pbcb ", ORTHO }, /*261*/
+ { 54, "D2h^8 ", "-P 2b 2ab ", "P b a b ", "P 2_1/b 2/a 2/b ", "Pbab ", ORTHO }, /*262*/
+ { 55, "D2h^9 ", "-P 2 2ab ", "P b a m ", "P 2_1/b 2_1/a 2/m ", "Pbam ", ORTHO }, /*263*/
+ { 55, "D2h^9 ", "-P 2bc 2 ", "P m c b ", "P 2/m 2_1/c 2_1/b ", "Pmcb ", ORTHO }, /*264*/
+ { 55, "D2h^9 ", "-P 2ac 2ac ", "P c m a ", "P 2_1/c 2/m 2_1/a ", "Pcma ", ORTHO }, /*265*/
+ { 56, "D2h^10", "-P 2ab 2ac ", "P c c n ", "P 2_1/c 2_1/c 2/n ", "Pccn ", ORTHO }, /*266*/
+ { 56, "D2h^10", "-P 2ac 2bc ", "P n a a ", "P 2/n 2_1/a 2_1/a ", "Pnaa ", ORTHO }, /*267*/
+ { 56, "D2h^10", "-P 2bc 2ab ", "P b n b ", "P 2_1/b 2/n 2_1/b ", "Pbnb ", ORTHO }, /*268*/
+ { 57, "D2h^11", "-P 2c 2b ", "P b c m ", "P 2/b 2_1/c 2_1/m ", "Pbcm ", ORTHO }, /*269*/
+ { 57, "D2h^11", "-P 2c 2ac ", "P c a m ", "P 2_1/c 2/a 2_1/m ", "Pcam ", ORTHO }, /*270*/
+ { 57, "D2h^11", "-P 2ac 2a ", "P m c a ", "P 2_1/m 2/c 2_1/a ", "Pmca ", ORTHO }, /*271*/
+ { 57, "D2h^11", "-P 2b 2a ", "P m a b ", "P 2_1/m 2_1/a 2/b ", "Pmab ", ORTHO }, /*272*/
+ { 57, "D2h^11", "-P 2a 2ab ", "P b m a ", "P 2_1/b 2_1/m 2/a ", "Pbma ", ORTHO }, /*273*/
+ { 57, "D2h^11", "-P 2bc 2c ", "P c m b ", "P 2/c 2_1/m 2_1/b ", "Pcmb ", ORTHO }, /*274*/
+ { 58, "D2h^12", "-P 2 2n ", "P n n m ", "P 2_1/n 2_1/n 2/m ", "Pnnm ", ORTHO }, /*275*/
+ { 58, "D2h^12", "-P 2n 2 ", "P m n n ", "P 2/m 2_1/n 2_1/n ", "Pmnn ", ORTHO }, /*276*/
+ { 58, "D2h^12", "-P 2n 2n ", "P n m n ", "P 2_1/n 2/m 2_1/n ", "Pnmn ", ORTHO }, /*277*/
+ { 59, "D2h^13", "P 2 2ab -1ab ", "P m m n ", "P 2_1/m 2_1/m 2/n ", "Pmmn ", ORTHO }, /*278*/
+ { 59, "D2h^13", "-P 2ab 2a ", "P m m n ", "P 2_1/m 2_1/m 2/n ", "Pmmn ", ORTHO }, /*279*/
+ { 59, "D2h^13", "P 2bc 2 -1bc ", "P n m m ", "P 2/n 2_1/m 2_1/m ", "Pnmm ", ORTHO }, /*280*/
+ { 59, "D2h^13", "-P 2c 2bc ", "P n m m ", "P 2/n 2_1/m 2_1/m ", "Pnmm ", ORTHO }, /*281*/
+ { 59, "D2h^13", "P 2ac 2ac -1ac ", "P m n m ", "P 2_1/m 2/n 2_1/m ", "Pmnm ", ORTHO }, /*282*/
+ { 59, "D2h^13", "-P 2c 2a ", "P m n m ", "P 2_1/m 2/n 2_1/m ", "Pmnm ", ORTHO }, /*283*/
+ { 60, "D2h^14", "-P 2n 2ab ", "P b c n ", "P 2_1/b 2/c 2_1/n ", "Pbcn ", ORTHO }, /*284*/
+ { 60, "D2h^14", "-P 2n 2c ", "P c a n ", "P 2/c 2_1/a 2_1/n ", "Pcan ", ORTHO }, /*285*/
+ { 60, "D2h^14", "-P 2a 2n ", "P n c a ", "P 2_1/n 2_1/c 2/a ", "Pnca ", ORTHO }, /*286*/
+ { 60, "D2h^14", "-P 2bc 2n ", "P n a b ", "P 2_1/n 2/a 2_1/b ", "Pnab ", ORTHO }, /*287*/
+ { 60, "D2h^14", "-P 2ac 2b ", "P b n a ", "P 2/b 2_1/n 2_1/a ", "Pbna ", ORTHO }, /*288*/
+ { 60, "D2h^14", "-P 2b 2ac ", "P c n b ", "P 2_1/c 2_1/n 2/b ", "Pcnb ", ORTHO }, /*289*/
+ { 61, "D2h^15", "-P 2ac 2ab ", "P b c a ", "P 2_1/b 2_1/c 2_1/a", "Pbca ", ORTHO }, /*290*/
+ { 61, "D2h^15", "-P 2bc 2ac ", "P c a b ", "P 2_1/c 2_1/a 2_1/b", "Pcab ", ORTHO }, /*291*/
+ { 62, "D2h^16", "-P 2ac 2n ", "P n m a ", "P 2_1/n 2_1/m 2_1/a", "Pnma ", ORTHO }, /*292*/
+ { 62, "D2h^16", "-P 2bc 2a ", "P m n b ", "P 2_1/m 2_1/n 2_1/b", "Pmnb ", ORTHO }, /*293*/
+ { 62, "D2h^16", "-P 2c 2ab ", "P b n m ", "P 2_1/b 2_1/n 2_1/m", "Pbnm ", ORTHO }, /*294*/
+ { 62, "D2h^16", "-P 2n 2ac ", "P c m n ", "P 2_1/c 2_1/m 2_1/n", "Pcmn ", ORTHO }, /*295*/
+ { 62, "D2h^16", "-P 2n 2a ", "P m c n ", "P 2_1/m 2_1/c 2_1/n", "Pmcn ", ORTHO }, /*296*/
+ { 62, "D2h^16", "-P 2c 2n ", "P n a m ", "P 2_1/n 2_1/a 2_1/m", "Pnam ", ORTHO }, /*297*/
+ { 63, "D2h^17", "-C 2c 2 ", "C m c m ", "C 2/m 2/c 2_1/m ", "Cmcm ", ORTHO }, /*298*/
+ { 63, "D2h^17", "-C 2c 2c ", "C c m m ", "C 2/c 2/m 2_1/m ", "Ccmm ", ORTHO }, /*299*/
+ { 63, "D2h^17", "-A 2a 2a ", "A m m a ", "A 2_1/m 2/m 2/a ", "Amma ", ORTHO }, /*300*/
+ { 63, "D2h^17", "-A 2 2a ", "A m a m ", "A 2_1/m 2/a 2/m ", "Amam ", ORTHO }, /*301*/
+ { 63, "D2h^17", "-B 2 2b ", "B b m m ", "B 2/b 2_1/m 2/m ", "Bbmm ", ORTHO }, /*302*/
+ { 63, "D2h^17", "-B 2b 2 ", "B m m b ", "B 2/m 2_1/m 2/b ", "Bmmb ", ORTHO }, /*303*/
+ { 64, "D2h^18", "-C 2bc 2 ", "C m c e ", "C 2/m 2/c 2_1/e ", "Cmce ", ORTHO }, /*304*/
+ { 64, "D2h^18", "-C 2bc 2bc ", "C c m e ", "C 2/c 2/m 2_1/e ", "Ccme ", ORTHO }, /*305*/
+ { 64, "D2h^18", "-A 2ac 2ac ", "A e m a ", "A 2_1/e 2/m 2/a ", "Aema ", ORTHO }, /*306*/
+ { 64, "D2h^18", "-A 2 2ac ", "A e a m ", "A 2_1/e 2/a 2/m ", "Aeam ", ORTHO }, /*307*/
+ { 64, "D2h^18", "-B 2 2bc ", "B b e m ", "B 2/b 2_1/e 2/m ", "Bbem ", ORTHO }, /*308*/
+ { 64, "D2h^18", "-B 2bc 2 ", "B m e b ", "B 2/m 2_1/e 2/b ", "Bmeb ", ORTHO }, /*309*/
+ { 65, "D2h^19", "-C 2 2 ", "C m m m ", "C 2/m 2/m 2/m ", "Cmmm ", ORTHO }, /*310*/
+ { 65, "D2h^19", "-A 2 2 ", "A m m m ", "A 2/m 2/m 2/m ", "Ammm ", ORTHO }, /*311*/
+ { 65, "D2h^19", "-B 2 2 ", "B m m m ", "B 2/m 2/m 2/m ", "Bmmm ", ORTHO }, /*312*/
+ { 66, "D2h^20", "-C 2 2c ", "C c c m ", "C 2/c 2/c 2/m ", "Cccm ", ORTHO }, /*313*/
+ { 66, "D2h^20", "-A 2a 2 ", "A m a a ", "A 2/m 2/a 2/a ", "Amaa ", ORTHO }, /*314*/
+ { 66, "D2h^20", "-B 2b 2b ", "B b m b ", "B 2/b 2/m 2/b ", "Bbmb ", ORTHO }, /*315*/
+ { 67, "D2h^21", "-C 2b 2 ", "C m m e ", "C 2/m 2/m 2/e ", "Cmme ", ORTHO }, /*316*/
+ { 67, "D2h^21", "-C 2b 2b ", "C m m e ", "C 2/m 2/m 2/e ", "Cmme ", ORTHO }, /*317*/
+ { 67, "D2h^21", "-A 2c 2c ", "A e m m ", "A 2/e 2/m 2/m ", "Aemm ", ORTHO }, /*318*/
+ { 67, "D2h^21", "-A 2 2c ", "A e m m ", "A 2/e 2/m 2/m ", "Aemm ", ORTHO }, /*319*/
+ { 67, "D2h^21", "-B 2 2c ", "B m e m ", "B 2/m 2/e 2/m ", "Bmem ", ORTHO }, /*320*/
+ { 67, "D2h^21", "-B 2c 2 ", "B m e m ", "B 2/m 2/e 2/m ", "Bmem ", ORTHO }, /*321*/
+ { 68, "D2h^22", "C 2 2 -1bc ", "C c c e ", "C 2/c 2/c 2/e ", "Ccce ", ORTHO }, /*322*/
+ { 68, "D2h^22", "-C 2b 2bc ", "C c c e ", "C 2/c 2/c 2/e ", "Ccce ", ORTHO }, /*323*/
+ { 68, "D2h^22", "C 2 2 -1bc ", "C c c e ", "C 2/c 2/c 2/e ", "Ccce ", ORTHO }, /*324*/
+ { 68, "D2h^22", "-C 2b 2c ", "C c c e ", "C 2/c 2/c 2/e ", "Ccce ", ORTHO }, /*325*/
+ { 68, "D2h^22", "A 2 2 -1ac ", "A e a a ", "A 2/e 2/a 2/a ", "Aeaa ", ORTHO }, /*326*/
+ { 68, "D2h^22", "-A 2a 2c ", "A e a a ", "A 2/e 2/a 2/a ", "Aeaa ", ORTHO }, /*327*/
+ { 68, "D2h^22", "A 2 2 -1ac ", "A e a a ", "A 2/e 2/a 2/a ", "Aeaa ", ORTHO }, /*328*/
+ { 68, "D2h^22", "-A 2ac 2c ", "A e a a ", "A 2/e 2/a 2/a ", "Aeaa ", ORTHO }, /*329*/
+ { 68, "D2h^22", "B 2 2 -1bc ", "B b e b ", "B 2/b 2/e 2/b ", "Bbeb ", ORTHO }, /*330*/
+ { 68, "D2h^22", "-B 2bc 2b ", "B b c b ", "B 2/b 2/e 2/b ", "Bbcb ", ORTHO }, /*331*/
+ { 68, "D2h^22", "B 2 2 -1bc ", "B b e b ", "B 2/b 2/e 2/b ", "Bbeb ", ORTHO }, /*332*/
+ { 68, "D2h^22", "-B 2b 2bc ", "B b e b ", "B 2/b 2/e 2/b ", "Bbeb ", ORTHO }, /*333*/
+ { 69, "D2h^23", "-F 2 2 ", "F m m m ", "F 2/m 2/m 2/m ", "Fmmm ", ORTHO }, /*334*/
+ { 70, "D2h^24", "F 2 2 -1d ", "F d d d ", "F 2/d 2/d 2/d ", "Fddd ", ORTHO }, /*335*/
+ { 70, "D2h^24", "-F 2uv 2vw ", "F d d d ", "F 2/d 2/d 2/d ", "Fddd ", ORTHO }, /*336*/
+ { 71, "D2h^25", "-I 2 2 ", "I m m m ", "I 2/m 2/m 2/m ", "Immm ", ORTHO }, /*337*/
+ { 72, "D2h^26", "-I 2 2c ", "I b a m ", "I 2/b 2/a 2/m ", "Ibam ", ORTHO }, /*338*/
+ { 72, "D2h^26", "-I 2a 2 ", "I m c b ", "I 2/m 2/c 2/b ", "Imcb ", ORTHO }, /*339*/
+ { 72, "D2h^26", "-I 2b 2b ", "I c m a ", "I 2/c 2/m 2/a ", "Icma ", ORTHO }, /*340*/
+ { 73, "D2h^27", "-I 2b 2c ", "I b c a ", "I 2/b 2/c 2/a ", "Ibca ", ORTHO }, /*341*/
+ { 73, "D2h^27", "-I 2a 2b ", "I c a b ", "I 2/c 2/a 2/b ", "Icab ", ORTHO }, /*342*/
+ { 74, "D2h^28", "-I 2b 2 ", "I m m a ", "I 2/m 2/m 2/a ", "Imma ", ORTHO }, /*343*/
+ { 74, "D2h^28", "-I 2a 2a ", "I m m b ", "I 2/m 2/m 2/b ", "Immb ", ORTHO }, /*344*/
+ { 74, "D2h^28", "-I 2c 2c ", "I b m m ", "I 2/b 2/m 2/m ", "Ibmm ", ORTHO }, /*345*/
+ { 74, "D2h^28", "-I 2 2b ", "I c m m ", "I 2/c 2/m 2/m ", "Icmm ", ORTHO }, /*346*/
+ { 74, "D2h^28", "-I 2 2a ", "I m c m ", "I 2/m 2/c 2/m ", "Imcm ", ORTHO }, /*347*/
+ { 74, "D2h^28", "-I 2c 2 ", "I m a m ", "I 2/m 2/a 2/m ", "Imam ", ORTHO }, /*348*/
+ { 75, "C4^1 ", "P 4 ", "P 4 ", "P 4 ", "P4 ", TETRA }, /*349*/
+ { 76, "C4^2 ", "P 4w ", "P 4_1 ", "P 4_1 ", "P4_1 ", TETRA }, /*350*/
+ { 77, "C4^3 ", "P 4c ", "P 4_2 ", "P 4_2 ", "P4_2 ", TETRA }, /*351*/
+ { 78, "C4^4 ", "P 4cw ", "P 4_3 ", "P 4_3 ", "P4_3 ", TETRA }, /*352*/
+ { 79, "C4^5 ", "I 4 ", "I 4 ", "I 4 ", "I4 ", TETRA }, /*353*/
+ { 80, "C4^6 ", "I 4bw ", "I 4_1 ", "I 4_1 ", "I4_1 ", TETRA }, /*354*/
+ { 81, "S4^1 ", "P -4 ", "P -4 ", "P -4 ", "P-4 ", TETRA }, /*355*/
+ { 82, "S4^2 ", "I -4 ", "I -4 ", "I -4 ", "I-4 ", TETRA }, /*356*/
+ { 83, "C4h^1 ", "-P 4 ", "P 4/m ", "P 4/m ", "P4/m ", TETRA }, /*357*/
+ { 84, "C4h^2 ", "-P 4c ", "P 4_2/m ", "P 4_2/m ", "P4_2/m ", TETRA }, /*358*/
+ { 85, "C4h^3 ", "P 4ab -1ab ", "P 4/n ", "P 4/n ", "P4/n ", TETRA }, /*359*/
+ { 85, "C4h^3 ", "-P 4a ", "P 4/n ", "P 4/n ", "P4/n ", TETRA }, /*360*/
+ { 86, "C4h^4 ", "P 4n -1n ", "P 4_2/n ", "P 4_2/n ", "P4_2/n ", TETRA }, /*361*/
+ { 86, "C4h^4 ", "-P 4bc ", "P 4_2/n ", "P 4_2/n ", "P4_2/n ", TETRA }, /*362*/
+ { 87, "C4h^5 ", "-I 4 ", "I 4/m ", "I 4/m ", "I4/m ", TETRA }, /*363*/
+ { 88, "C4h^6 ", "I 4bw -1bw ", "I 4_1/a ", "I 4_1/a ", "I4_1/a ", TETRA }, /*364*/
+ { 88, "C4h^6 ", "-I 4ad ", "I 4_1/a ", "I 4_1/a ", "I4_1/a ", TETRA }, /*365*/
+ { 89, "D4^1 ", "P 4 2 ", "P 4 2 2 ", "P 4 2 2 ", "P422 ", TETRA }, /*366*/
+ { 90, "D4^2 ", "P 4ab 2ab ", "P 4 2_1 2 ", "P 4 2_1 2 ", "P42_12 ", TETRA }, /*367*/
+ { 91, "D4^3 ", "P 4w 2c ", "P 4_1 2 2 ", "P 4_1 2 2 ", "P4_122 ", TETRA }, /*368*/
+ { 92, "D4^4 ", "P 4abw 2nw ", "P 4_1 2_1 2 ", "P 4_1 2_1 2 ", "P4_12_12 ", TETRA }, /*369*/
+ { 93, "D4^5 ", "P 4c 2 ", "P 4_2 2 2 ", "P 4_2 2 2 ", "P4_222 ", TETRA }, /*370*/
+ { 94, "D4^6 ", "P 4n 2n ", "P 4_2 2_1 2 ", "P 4_2 2_1 2 ", "P4_22_12 ", TETRA }, /*371*/
+ { 95, "D4^7 ", "P 4cw 2c ", "P 4_3 2 2 ", "P 4_3 2 2 ", "P4_322 ", TETRA }, /*372*/
+ { 96, "D4^8 ", "P 4nw 2abw ", "P 4_3 2_1 2 ", "P 4_3 2_1 2 ", "P4_32_12 ", TETRA }, /*373*/
+ { 97, "D4^9 ", "I 4 2 ", "I 4 2 2 ", "I 4 2 2 ", "I422 ", TETRA }, /*374*/
+ { 98, "D4^10 ", "I 4bw 2bw ", "I 4_1 2 2 ", "I 4_1 2 2 ", "I4_122 ", TETRA }, /*375*/
+ { 99, "C4v^1 ", "P 4 -2 ", "P 4 m m ", "P 4 m m ", "P4mm ", TETRA }, /*376*/
+ {100, "C4v^2 ", "P 4 -2ab ", "P 4 b m ", "P 4 b m ", "P4bm ", TETRA }, /*377*/
+ {101, "C4v^3 ", "P 4c -2c ", "P 4_2 c m ", "P 4_2 c m ", "P4_2cm ", TETRA }, /*378*/
+ {102, "C4v^4 ", "P 4n -2n ", "P 4_2 n m ", "P 4_2 n m ", "P4_2nm ", TETRA }, /*379*/
+ {103, "C4v^5 ", "P 4 -2c ", "P 4 c c ", "P 4 c c ", "P4cc ", TETRA }, /*380*/
+ {104, "C4v^6 ", "P 4 -2n ", "P 4 n c ", "P 4 n c ", "P4nc ", TETRA }, /*381*/
+ {105, "C4v^7 ", "P 4c -2 ", "P 4_2 m c ", "P 4_2 m c ", "P4_2mc ", TETRA }, /*382*/
+ {106, "C4v^8 ", "P 4c -2ab ", "P 4_2 b c ", "P 4_2 b c ", "P4_2bc ", TETRA }, /*383*/
+ {107, "C4v^9 ", "I 4 -2 ", "I 4 m m ", "I 4 m m ", "I4mm ", TETRA }, /*384*/
+ {108, "C4v^10", "I 4 -2c ", "I 4 c m ", "I 4 c m ", "I4cm ", TETRA }, /*385*/
+ {109, "C4v^11", "I 4bw -2 ", "I 4_1 m d ", "I 4_1 m d ", "I4_1md ", TETRA }, /*386*/
+ {110, "C4v^12", "I 4bw -2c ", "I 4_1 c d ", "I 4_1 c d ", "I4_1cd ", TETRA }, /*387*/
+ {111, "D2d^1 ", "P -4 2 ", "P -4 2 m ", "P -4 2 m ", "P-42m ", TETRA }, /*388*/
+ {112, "D2d^2 ", "P -4 2c ", "P -4 2 c ", "P -4 2 c ", "P-42c ", TETRA }, /*389*/
+ {113, "D2d^3 ", "P -4 2ab ", "P -4 2_1 m ", "P -4 2_1 m ", "P-42_1m ", TETRA }, /*390*/
+ {114, "D2d^4 ", "P -4 2n ", "P -4 2_1 c ", "P -4 2_1 c ", "P-42_1c ", TETRA }, /*391*/
+ {115, "D2d^5 ", "P -4 -2 ", "P -4 m 2 ", "P -4 m 2 ", "P-4m2 ", TETRA }, /*392*/
+ {116, "D2d^6 ", "P -4 -2c ", "P -4 c 2 ", "P -4 c 2 ", "P-4c2 ", TETRA }, /*393*/
+ {117, "D2d^7 ", "P -4 -2ab ", "P -4 b 2 ", "P -4 b 2 ", "P-4b2 ", TETRA }, /*394*/
+ {118, "D2d^8 ", "P -4 -2n ", "P -4 n 2 ", "P -4 n 2 ", "P-4n2 ", TETRA }, /*395*/
+ {119, "D2d^9 ", "I -4 -2 ", "I -4 m 2 ", "I -4 m 2 ", "I-4m2 ", TETRA }, /*396*/
+ {120, "D2d^10", "I -4 -2c ", "I -4 c 2 ", "I -4 c 2 ", "I-4c2 ", TETRA }, /*397*/
+ {121, "D2d^11", "I -4 2 ", "I -4 2 m ", "I -4 2 m ", "I-42m ", TETRA }, /*398*/
+ {122, "D2d^12", "I -4 2bw ", "I -4 2 d ", "I -4 2 d ", "I-42d ", TETRA }, /*399*/
+ {123, "D4h^1 ", "-P 4 2 ", "P 4/m m m ", "P 4/m 2/m 2/m ", "P4/mmm ", TETRA }, /*400*/
+ {124, "D4h^2 ", "-P 4 2c ", "P 4/m c c ", "P 4/m 2/c 2/c ", "P4/mcc ", TETRA }, /*401*/
+ {125, "D4h^3 ", "P 4 2 -1ab ", "P 4/n b m ", "P 4/n 2/b 2/m ", "P4/nbm ", TETRA }, /*402*/
+ {125, "D4h^3 ", "-P 4a 2b ", "P 4/n b m ", "P 4/n 2/b 2/m ", "P4/nbm ", TETRA }, /*403*/
+ {126, "D4h^4 ", "P 4 2 -1n ", "P 4/n n c ", "P 4/n 2/n 2/c ", "P4/nnc ", TETRA }, /*404*/
+ {126, "D4h^4 ", "-P 4a 2bc ", "P 4/n n c ", "P 4/n 2/n 2/c ", "P4/nnc ", TETRA }, /*405*/
+ {127, "D4h^5 ", "-P 4 2ab ", "P 4/m b m ", "P 4/m 2_1/b m ", "P4/mbm ", TETRA }, /*406*/
+ {128, "D4h^6 ", "-P 4 2n ", "P 4/m n c ", "P 4/m 2_1/n c ", "P4/mnc ", TETRA }, /*407*/
+ {129, "D4h^7 ", "P 4ab 2ab -1ab ", "P 4/n m m ", "P 4/n 2_1/m m ", "P4/nmm ", TETRA }, /*408*/
+ {129, "D4h^7 ", "-P 4a 2a ", "P 4/n m m ", "P 4/n 2_1/m m ", "P4/nmm ", TETRA }, /*409*/
+ {130, "D4h^8 ", "P 4ab 2n -1ab ", "P 4/n c c ", "P 4/n 2_1/c c ", "P4/ncc ", TETRA }, /*410*/
+ {130, "D4h^8 ", "-P 4a 2ac ", "P 4/n c c ", "P 4/n 2_1/c c ", "P4/ncc ", TETRA }, /*411*/
+ {131, "D4h^9 ", "-P 4c 2 ", "P 4_2/m m c ", "P 4_2/m 2/m 2/c ", "P4_2/mmc ", TETRA }, /*412*/
+ {132, "D4h^10", "-P 4c 2c ", "P 4_2/m c m ", "P 4_2/m 2/c 2/m ", "P4_2/mcm ", TETRA }, /*413*/
+ {133, "D4h^11", "P 4n 2c -1n ", "P 4_2/n b c ", "P 4_2/n 2/b 2/c ", "P4_2/nbc ", TETRA }, /*414*/
+ {133, "D4h^11", "-P 4ac 2b ", "P 4_2/n b c ", "P 4_2/n 2/b 2/c ", "P4_2/nbc ", TETRA }, /*415*/
+ {134, "D4h^12", "P 4n 2 -1n ", "P 4_2/n n m ", "P 4_2/n 2/n 2/m ", "P4_2/nnm ", TETRA }, /*416*/
+ {134, "D4h^12", "-P 4ac 2bc ", "P 4_2/n n m ", "P 4_2/n 2/n 2/m ", "P4_2/nnm ", TETRA }, /*417*/
+ {135, "D4h^13", "-P 4c 2ab ", "P 4_2/m b c ", "P 4_2/m 2_1/b 2/c ", "P4_2/mbc ", TETRA }, /*418*/
+ {136, "D4h^14", "-P 4n 2n ", "P 4_2/m n m ", "P 4_2/m 2_1/n 2/m ", "P4_2/mnm ", TETRA }, /*419*/
+ {137, "D4h^15", "P 4n 2n -1n ", "P 4_2/n m c ", "P 4_2/n 2_1/m 2/c ", "P4_2/nmc ", TETRA }, /*420*/
+ {137, "D4h^15", "-P 4ac 2a ", "P 4_2/n m c ", "P 4_2/n 2_1/m 2/c ", "P4_2/nmc ", TETRA }, /*421*/
+ {138, "D4h^16", "P 4n 2ab -1n ", "P 4_2/n c m ", "P 4_2/n 2_1/c 2/m ", "P4_2/ncm ", TETRA }, /*422*/
+ {138, "D4h^16", "-P 4ac 2ac ", "P 4_2/n c m ", "P 4_2/n 2_1/c 2/m ", "P4_2/ncm ", TETRA }, /*423*/
+ {139, "D4h^17", "-I 4 2 ", "I 4/m m m ", "I 4/m 2/m 2/m ", "I4/mmm ", TETRA }, /*424*/
+ {140, "D4h^18", "-I 4 2c ", "I 4/m c m ", "I 4/m 2/c 2/m ", "I4/mcm ", TETRA }, /*425*/
+ {141, "D4h^19", "I 4bw 2bw -1bw ", "I 4_1/a m d ", "I 4_1/a 2/m 2/d ", "I4_1/amd ", TETRA }, /*426*/
+ {141, "D4h^19", "-I 4bd 2 ", "I 4_1/a m d ", "I 4_1/a 2/m 2/d ", "I4_1/amd ", TETRA }, /*427*/
+ {142, "D4h^20", "I 4bw 2aw -1bw ", "I 4_1/a c d ", "I 4_1/a 2/c 2/d ", "I4_1/acd ", TETRA }, /*428*/
+ {142, "D4h^20", "-I 4bd 2c ", "I 4_1/a c d ", "I 4_1/a 2/c 2/d ", "I4_1/acd ", TETRA }, /*429*/
+ {143, "C3^1 ", "P 3 ", "P 3 ", "P 3 ", "P3 ", TRIGO }, /*430*/
+ {144, "C3^2 ", "P 31 ", "P 3_1 ", "P 3_1 ", "P3_1 ", TRIGO }, /*431*/
+ {145, "C3^3 ", "P 32 ", "P 3_2 ", "P 3_2 ", "P3_2 ", TRIGO }, /*432*/
+ {146, "C3^4 ", "R 3 ", "R 3 ", "R 3 ", "R3 ", RHOMB }, /*433*/
+ {146, "C3^4 ", "P 3* ", "R 3 ", "R 3 ", "R3 ", RHOMB }, /*434*/
+ {147, "C3i^1 ", "-P 3 ", "P -3 ", "P -3 ", "P-3 ", TRIGO }, /*435*/
+ {148, "C3i^2 ", "-R 3 ", "R -3 ", "R -3 ", "R-3 ", RHOMB }, /*436*/
+ {148, "C3i^2 ", "-P 3* ", "R -3 ", "R -3 ", "R-3 ", RHOMB }, /*437*/
+ {149, "D3^1 ", "P 3 2 ", "P 3 1 2 ", "P 3 1 2 ", "P312 ", TRIGO }, /*438*/
+ {150, "D3^2 ", "P 3 2= ", "P 3 2 1 ", "P 3 2 1 ", "P321 ", TRIGO }, /*439*/
+ {151, "D3^3 ", "P 31 2c (0 0 1) ", "P 3_1 1 2 ", "P 3_1 1 2 ", "P3_112 ", TRIGO }, /*440*/
+ {152, "D3^4 ", "P 31 2= ", "P 3_1 2 1 ", "P 3_1 2 1 ", "P3_121 ", TRIGO }, /*441*/
+ {153, "D3^5 ", "P 32 2c (0 0 -1)", "P 3_2 1 2 ", "P 3_2 1 2 ", "P3_212 ", TRIGO }, /*442*/
+ {154, "D3^6 ", "P 32 2= ", "P 3_2 2 1 ", "P 3_2 2 1 ", "P3_221 ", TRIGO }, /*443*/
+ {155, "D3^7 ", "R 3 2= ", "R 3 2 ", "R 3 2 ", "R32 ", RHOMB }, /*444*/
+ {155, "D3^7 ", "P 3* 2 ", "R 3 2 ", "R 3 2 ", "R32 ", RHOMB }, /*445*/
+ {156, "C3v^1 ", "P 3 -2= ", "P 3 m 1 ", "P 3 m 1 ", "P3m1 ", TRIGO }, /*446*/
+ {157, "C3v^2 ", "P 3 -2 ", "P 3 1 m ", "P 3 1 m ", "P31m ", TRIGO }, /*447*/
+ {158, "C3v^3 ", "P 3 -2=c ", "P 3 c 1 ", "P 3 c 1 ", "P3c1 ", TRIGO }, /*448*/
+ {159, "C3v^4 ", "P 3 -2c ", "P 3 1 c ", "P 3 1 c ", "P31c ", TRIGO }, /*449*/
+ {160, "C3v^5 ", "R 3 -2= ", "R 3 m ", "R 3 m ", "R3m ", RHOMB }, /*450*/
+ {160, "C3v^5 ", "P 3* -2 ", "R 3 m ", "R 3 m ", "R3m ", RHOMB }, /*451*/
+ {161, "C3v^6 ", "R 3 -2=c ", "R 3 c ", "R 3 c ", "R3c ", RHOMB }, /*452*/
+ {161, "C3v^6 ", "P 3* -2n ", "R 3 c ", "R 3 c ", "R3c ", RHOMB }, /*453*/
+ {162, "D3d^1 ", "-P 3 2 ", "P -3 1 m ", "P -3 1 2/m ", "P-31m ", TRIGO }, /*454*/
+ {163, "D3d^2 ", "-P 3 2c ", "P -3 1 c ", "P -3 1 2/c ", "P-31c ", TRIGO }, /*455*/
+ {164, "D3d^3 ", "-P 3 2= ", "P -3 m 1 ", "P -3 2/m 1 ", "P-3m1 ", TRIGO }, /*456*/
+ {165, "D3d^4 ", "-P 3 2=c ", "P -3 c 1 ", "P -3 2/c 1 ", "P-3c1 ", TRIGO }, /*457*/
+ {166, "D3d^5 ", "-R 3 2= ", "R -3 m ", "R -3 2/m ", "R-3m ", RHOMB }, /*458*/
+ {166, "D3d^5 ", "-P 3* 2 ", "R -3 m ", "R -3 2/m ", "R-3m ", RHOMB }, /*459*/
+ {167, "D3d^6 ", "-R 3 2=c ", "R -3 c ", "R -3 2/c ", "R-3c ", RHOMB }, /*460*/
+ {167, "D3d^6 ", "-P 3* 2n ", "R -3 c ", "R -3 2/c ", "R-3c ", RHOMB }, /*461*/
+ {168, "C6^1 ", "P 6 ", "P 6 ", "P 6 ", "P6 ", HEXA }, /*462*/
+ {169, "C6^2 ", "P 61 ", "P 6_1 ", "P 6_1 ", "P6_1 ", HEXA }, /*463*/
+ {170, "C6^3 ", "P 65 ", "P 6_5 ", "P 6_5 ", "P6_5 ", HEXA }, /*464*/
+ {171, "C6^4 ", "P 62 ", "P 6_2 ", "P 6_2 ", "P6_2 ", HEXA }, /*465*/
+ {172, "C6^5 ", "P 64 ", "P 6_4 ", "P 6_4 ", "P6_4 ", HEXA }, /*466*/
+ {173, "C6^6 ", "P 6c ", "P 6_3 ", "P 6_3 ", "P6_3 ", HEXA }, /*467*/
+ {174, "C3h^1 ", "P -6 ", "P -6 ", "P -6 ", "P-6 ", HEXA }, /*468*/
+ {175, "C6h^1 ", "-P 6 ", "P 6/m ", "P 6/m ", "P6/m ", HEXA }, /*469*/
+ {176, "C6h^2 ", "-P 6c ", "P 6_3/m ", "P 6_3/m ", "P6_3/m ", HEXA }, /*470*/
+ {177, "D6^1 ", "P 6 2 ", "P 6 2 2 ", "P 6 2 2 ", "P622 ", HEXA }, /*471*/
+ {178, "D6^2 ", "P 61 2 (0 0 -1) ", "P 6_1 2 2 ", "P 6_1 2 2 ", "P6_122 ", HEXA }, /*472*/
+ {179, "D6^3 ", "P 65 2 (0 0 1) ", "P 6_5 2 2 ", "P 6_5 2 2 ", "P6_522 ", HEXA }, /*473*/
+ {180, "D6^4 ", "P 62 2c (0 0 1) ", "P 6_2 2 2 ", "P 6_2 2 2 ", "P6_222 ", HEXA }, /*474*/
+ {181, "D6^5 ", "P 64 2c (0 0 -1)", "P 6_4 2 2 ", "P 6_4 2 2 ", "P6_422 ", HEXA }, /*475*/
+ {182, "D6^6 ", "P 6c 2c ", "P 6_3 2 2 ", "P 6_3 2 2 ", "P6_322 ", HEXA }, /*476*/
+ {183, "C6v^1 ", "P 6 -2 ", "P 6 m m ", "P 6 m m ", "P6mm ", HEXA }, /*477*/
+ {184, "C6v^2 ", "P 6 -2c ", "P 6 c c ", "P 6 c c ", "P6cc ", HEXA }, /*478*/
+ {185, "C6v^3 ", "P 6c -2 ", "P 6_3 c m ", "P 6_3 c m ", "P6_3cm ", HEXA }, /*479*/
+ {186, "C6v^4 ", "P 6c -2c ", "P 6_3 m c ", "P 6_3 m c ", "P6_3mc ", HEXA }, /*480*/
+ {187, "D3h^1 ", "P -6 2 ", "P -6 m 2 ", "P -6 m 2 ", "P-6m2 ", HEXA }, /*481*/
+ {188, "D3h^2 ", "P -6c 2 ", "P -6 c 2 ", "P -6 c 2 ", "P-6c2 ", HEXA }, /*482*/
+ {189, "D3h^3 ", "P -6 -2 ", "P -6 2 m ", "P -6 2 m ", "P-62m ", HEXA }, /*483*/
+ {190, "D3h^4 ", "P -6c -2c ", "P -6 2 c ", "P -6 2 c ", "P-62c ", HEXA }, /*484*/
+ {191, "D6h^1 ", "-P 6 2 ", "P 6/m m m ", "P 6/m 2/m 2/m ", "P6/mmm ", HEXA }, /*485*/
+ {192, "D6h^2 ", "-P 6 2c ", "P 6/m c c ", "P 6/m 2/c 2/c ", "P6/mcc ", HEXA }, /*486*/
+ {193, "D6h^3 ", "-P 6c 2 ", "P 6_3/m c m ", "P 6_3/m 2/c 2/m ", "P6_3/mcm ", HEXA }, /*487*/
+ {194, "D6h^4 ", "-P 6c 2c ", "P 6_3/m m c ", "P 6_3/m 2/m 2/c ", "P6_3/mmc ", HEXA }, /*488*/
+ {195, "T^1 ", "P 2 2 3 ", "P 2 3 ", "P 2 3 ", "P23 ", CUBIC }, /*489*/
+ {196, "T^2 ", "F 2 2 3 ", "F 2 3 ", "F 2 3 ", "F23 ", CUBIC }, /*490*/
+ {197, "T^3 ", "I 2 2 3 ", "I 2 3 ", "I 2 3 ", "I23 ", CUBIC }, /*491*/
+ {198, "T^4 ", "P 2ac 2ab 3 ", "P 2_1 3 ", "P 2_1 3 ", "P2_13 ", CUBIC }, /*492*/
+ {199, "T^5 ", "I 2b 2c 3 ", "I 2_1 3 ", "I 2_1 3 ", "I2_13 ", CUBIC }, /*493*/
+ {200, "Th^1 ", "-P 2 2 3 ", "P m 3 ", "P 2/m -3 ", "Pm3 ", CUBIC }, /*494*/
+ {201, "Th^2 ", "P 2 2 3 -1n ", "P n 3 ", "P 2/n -3 ", "Pn3 ", CUBIC }, /*495*/
+ {201, "Th^2 ", "-P 2ab 2bc 3 ", "P n 3 ", "P 2/n -3 ", "Pn3 ", CUBIC }, /*496*/
+ {202, "Th^3 ", "-F 2 2 3 ", "F m 3 ", "F 2/m -3 ", "Fm3 ", CUBIC }, /*497*/
+ {203, "Th^4 ", "F 2 2 3 -1d ", "F d 3 ", "F 2/d -3 ", "Fd3 ", CUBIC }, /*498*/
+ {203, "Th^4 ", "-F 2uv 2vw 3 ", "F d 3 ", "F 2/d -3 ", "Fd3 ", CUBIC }, /*499*/
+ {204, "Th^5 ", "-I 2 2 3 ", "I m 3 ", "I 2/m -3 ", "Im3 ", CUBIC }, /*500*/
+ {205, "Th^6 ", "-P 2ac 2ab 3 ", "P a 3 ", "P 2_1/a -3 ", "Pa3 ", CUBIC }, /*501*/
+ {206, "Th^7 ", "-I 2b 2c 3 ", "I a 3 ", "I 2_1/a -3 ", "Ia3 ", CUBIC }, /*502*/
+ {207, "O^1 ", "P 4 2 3 ", "P 4 3 2 ", "P 4 3 2 ", "P432 ", CUBIC }, /*503*/
+ {208, "O^2 ", "P 4n 2 3 ", "P 4_2 3 2 ", "P 4_2 3 2 ", "P4_232 ", CUBIC }, /*504*/
+ {209, "O^3 ", "F 4 2 3 ", "F 4 3 2 ", "F 4 3 2 ", "F432 ", CUBIC }, /*505*/
+ {210, "O^4 ", "F 4d 2 3 ", "F 4_1 3 2 ", "F 4_1 3 2 ", "F4_132 ", CUBIC }, /*506*/
+ {211, "O^5 ", "I 4 2 3 ", "I 4 3 2 ", "I 4 3 2 ", "I432 ", CUBIC }, /*507*/
+ {212, "O^6 ", "P 4acd 2ab 3 ", "P 4_3 3 2 ", "P 4_3 3 2 ", "P4_332 ", CUBIC }, /*508*/
+ {213, "O^7 ", "P 4bd 2ab 3 ", "P 4_1 3 2 ", "P 4_1 3 2 ", "P4_132 ", CUBIC }, /*509*/
+ {214, "O^8 ", "I 4bd 2c 3 ", "I 4_1 3 2 ", "I 4_1 3 2 ", "I4_132 ", CUBIC }, /*510*/
+ {215, "Td^1 ", "P -4 2 3 ", "P -4 3 m ", "P -4 3 m ", "P-43m ", CUBIC }, /*511*/
+ {216, "Td^2 ", "F -4 2 3 ", "F -4 3 m ", "F -4 3 m ", "F-43m ", CUBIC }, /*512*/
+ {217, "Td^3 ", "I -4 2 3 ", "I -4 3 m ", "I -4 3 m ", "I-43m ", CUBIC }, /*513*/
+ {218, "Td^4 ", "P -4n 2 3 ", "P -4 3 n ", "P -4 3 n ", "P-43n ", CUBIC }, /*514*/
+ {219, "Td^5 ", "F -4c 2 3 ", "F -4 3 c ", "F -4 3 c ", "F-43c ", CUBIC }, /*515*/
+ {220, "Td^6 ", "I -4bd 2c 3 ", "I -4 3 d ", "I -4 3 d ", "I-43d ", CUBIC }, /*516*/
+ {221, "Oh^1 ", "-P 4 2 3 ", "P m -3 m ", "P 4/m -3 2/m ", "Pm-3m ", CUBIC }, /*517*/
+ {222, "Oh^2 ", "P 4 2 3 -1n ", "P n -3 n ", "P 4/n -3 2/n ", "Pn-3n ", CUBIC }, /*518*/
+ {222, "Oh^2 ", "-P 4a 2bc 3 ", "P n -3 n ", "P 4/n -3 2/n ", "Pn-3n ", CUBIC }, /*519*/
+ {223, "Oh^3 ", "-P 4n 2 3 ", "P m -3 n ", "P 4_2/m -3 2/n ", "Pm-3n ", CUBIC }, /*520*/
+ {224, "Oh^4 ", "P 4n 2 3 -1n ", "P n -3 m ", "P 4_2/n -3 2/m ", "Pn-3m ", CUBIC }, /*521*/
+ {224, "Oh^4 ", "-P 4bc 2bc 3 ", "P n -3 m ", "P 4_2/n -3 2/m ", "Pn-3m ", CUBIC }, /*522*/
+ {225, "Oh^5 ", "-F 4 2 3 ", "F m -3 m ", "F 4/m -3 2/m ", "Fm-3m ", CUBIC }, /*523*/
+ {226, "Oh^6 ", "-F 4c 2 3 ", "F m -3 c ", "F 4/m -3 2/c ", "Fm-3c ", CUBIC }, /*524*/
+ {227, "Oh^7 ", "F 4d 2 3 -1d ", "F d -3 m ", "F 4_1/d -3 2/m ", "Fd-3m ", CUBIC }, /*525*/
+ {227, "Oh^7 ", "-F 4vw 2vw 3 ", "F d -3 m ", "F 4_1/d -3 2/m ", "Fd-3m ", CUBIC }, /*526*/
+ {228, "Oh^8 ", "F 4d 2 3 -1cd ", "F d -3 c ", "F 4_1/d -3 2/c ", "Fd-3c ", CUBIC }, /*527*/
+ {228, "Oh^8 ", "-F 4cvw 2vw 3 ", "F d -3 c ", "F 4_1/d -3 2/c ", "Fd-3c ", CUBIC }, /*528*/
+ {229, "Oh^9 ", "-I 4 2 3 ", "I m -3 m ", "I 4/m -3 2/m ", "Im-3m ", CUBIC }, /*529*/
+ {230, "Oh^10 ", "-I 4bd 2c 3 ", "I a -3 d ", "I 4_1/a -3 2/d ", "Ia-3d ", CUBIC }, /*530*/
+};
+
+static const int symmetry_operations[] = {
+ 0 , /* dummy */
+ 16484 , /* 1 ( 1) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 2 ( 2) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3 ( 2) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4 ( 3) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 5 ( 3) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 6 ( 4) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 7 ( 4) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 8 ( 5) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 9 ( 5) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 10 ( 6) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 11 ( 6) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 12 ( 7) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 13 ( 7) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 14 ( 8) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022432, /* 15 ( 8) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 16484 , /* 16 ( 9) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 17 ( 9) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 18 ( 9) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 19 ( 9) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 20 ( 10) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 21 ( 10) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 22 ( 10) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 23 ( 10) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 24 ( 11) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 25 ( 11) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 26 ( 11) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 27 ( 11) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 28 ( 12) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 29 ( 12) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 30 ( 12) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 31 ( 12) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 32 ( 13) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 33 ( 13) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 34 ( 13) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 35 ( 13) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 36 ( 14) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 37 ( 14) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 38 ( 14) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 39 ( 14) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 40 ( 15) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 41 ( 15) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140694, /* 42 ( 15) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 43 ( 15) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 44 ( 16) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 45 ( 16) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 46 ( 16) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 47 ( 16) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 48 ( 17) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 49 ( 17) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 50 ( 17) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 51 ( 17) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 52 ( 18) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 53 ( 18) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 54 ( 19) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 55 ( 19) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 56 ( 20) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 57 ( 20) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 58 ( 21) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134420 , /* 59 ( 21) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 60 ( 22) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140532, /* 61 ( 22) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 62 ( 23) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022434, /* 63 ( 23) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 64 ( 24) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 65 ( 24) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16484 , /* 66 ( 25) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439770, /* 67 ( 25) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 68 ( 26) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 69 ( 26) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 70 ( 27) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420538 , /* 71 ( 27) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 72 ( 28) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538636 , /* 73 ( 28) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 74 ( 29) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 75 ( 29) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 76 ( 30) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 77 ( 30) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 78 ( 30) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 79 ( 30) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 80 ( 31) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 81 ( 31) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 82 ( 31) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 83 ( 31) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 84 ( 32) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 85 ( 32) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 86 ( 32) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 87 ( 32) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 88 ( 33) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 89 ( 33) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 90 ( 33) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 91 ( 33) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 92 ( 34) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 93 ( 34) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140694, /* 94 ( 34) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 95 ( 34) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 96 ( 35) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 97 ( 35) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 98 ( 35) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 99 ( 35) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 100 ( 36) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 101 ( 36) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 102 ( 36) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127572, /* 103 ( 36) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 104 ( 37) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 105 ( 37) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 106 ( 37) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426650, /* 107 ( 37) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 108 ( 38) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 109 ( 38) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 110 ( 38) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544748, /* 111 ( 38) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 112 ( 39) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134420 , /* 113 ( 39) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 114 ( 39) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18557708, /* 115 ( 39) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 116 ( 40) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140532, /* 117 ( 40) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 118 ( 40) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439610, /* 119 ( 40) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 120 ( 41) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022434, /* 121 ( 41) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18557870, /* 122 ( 41) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1551596 , /* 123 ( 41) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 124 ( 42) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022434, /* 125 ( 42) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 126 ( 42) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18557708, /* 127 ( 42) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 128 ( 43) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551596 , /* 129 ( 43) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 130 ( 43) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17140532, /* 131 ( 43) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 132 ( 44) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134420 , /* 133 ( 44) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 134 ( 44) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18439610, /* 135 ( 44) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 136 ( 45) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 137 ( 45) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 1551758 , /* 138 ( 45) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18557868, /* 139 ( 45) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 140 ( 46) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 141 ( 46) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17140694, /* 142 ( 46) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439770, /* 143 ( 46) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 144 ( 47) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 145 ( 47) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 18557870, /* 146 ( 47) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17140692, /* 147 ( 47) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 148 ( 48) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 149 ( 48) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17140694, /* 150 ( 48) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18557868, /* 151 ( 48) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 152 ( 49) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140692, /* 153 ( 49) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 1551758 , /* 154 ( 49) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439770, /* 155 ( 49) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 156 ( 50) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 157 ( 50) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18557870, /* 158 ( 50) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1551756 , /* 159 ( 50) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 160 ( 51) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420538 , /* 161 ( 51) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 17140694, /* 162 ( 51) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544748, /* 163 ( 51) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 164 ( 52) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538636 , /* 165 ( 52) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 166 ( 52) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17127572, /* 167 ( 52) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 168 ( 53) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 169 ( 53) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 170 ( 53) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426650, /* 171 ( 53) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 172 ( 54) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 173 ( 54) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 174 ( 54) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544748, /* 175 ( 54) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 176 ( 55) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538636 , /* 177 ( 55) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 178 ( 55) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18426650, /* 179 ( 55) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 180 ( 56) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420538 , /* 181 ( 56) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18557870, /* 182 ( 56) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127572, /* 183 ( 56) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 184 ( 57) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 185 ( 57) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 186 ( 57) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 187 ( 57) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 188 ( 58) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 189 ( 58) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 190 ( 58) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 191 ( 58) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 192 ( 59) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 193 ( 59) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 194 ( 59) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 195 ( 59) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 196 ( 60) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 197 ( 60) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420536 , /* 198 ( 60) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 199 ( 60) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 200 ( 61) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 201 ( 61) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 202 ( 61) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 203 ( 61) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16484 , /* 204 ( 62) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 205 ( 62) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022432, /* 206 ( 62) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 207 ( 62) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 208 ( 63) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 209 ( 63) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 210 ( 63) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 211 ( 63) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 212 ( 63) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 213 ( 63) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 214 ( 63) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 215 ( 63) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 216 ( 64) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 217 ( 64) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 218 ( 64) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 219 ( 64) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 220 ( 64) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 221 ( 64) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 222 ( 64) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 223 ( 64) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 224 ( 65) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 225 ( 65) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 226 ( 65) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 227 ( 65) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 228 ( 65) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 229 ( 65) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544746, /* 230 ( 65) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 231 ( 65) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 232 ( 66) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 233 ( 66) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 234 ( 66) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 235 ( 66) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 236 ( 66) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 237 ( 66) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 238 ( 66) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 239 ( 66) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 240 ( 67) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 241 ( 67) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 242 ( 67) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 243 ( 67) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140694, /* 244 ( 67) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 245 ( 67) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 246 ( 67) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 247 ( 67) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 248 ( 68) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 249 ( 68) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 250 ( 68) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 251 ( 68) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 252 ( 68) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 253 ( 68) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 254 ( 68) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 255 ( 68) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 256 ( 69) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 257 ( 69) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 258 ( 69) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 259 ( 69) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 260 ( 69) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 261 ( 69) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 262 ( 69) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 263 ( 69) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 264 ( 70) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 265 ( 70) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 266 ( 70) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 267 ( 70) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 268 ( 70) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 269 ( 70) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 270 ( 70) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 271 ( 70) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 272 ( 71) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 273 ( 71) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 274 ( 71) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 275 ( 71) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 276 ( 71) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 277 ( 71) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 278 ( 71) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 279 ( 71) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 280 ( 72) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 281 ( 72) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121458 , /* 282 ( 72) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 283 ( 72) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 284 ( 73) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 285 ( 73) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127570, /* 286 ( 73) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 287 ( 73) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 288 ( 74) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 289 ( 74) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009472, /* 290 ( 74) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 291 ( 74) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 292 ( 75) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 293 ( 75) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 294 ( 75) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 295 ( 75) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16484 , /* 296 ( 76) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 297 ( 76) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 298 ( 76) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 299 ( 76) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 300 ( 77) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 301 ( 77) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 302 ( 77) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 303 ( 77) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 304 ( 78) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 305 ( 78) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433496 , /* 306 ( 78) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 307 ( 78) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 308 ( 79) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 309 ( 79) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551594 , /* 310 ( 79) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 311 ( 79) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 312 ( 80) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 313 ( 80) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 314 ( 80) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 315 ( 80) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 316 ( 81) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 317 ( 81) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538634 , /* 318 ( 81) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 319 ( 81) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 320 ( 82) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 321 ( 82) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544746, /* 322 ( 82) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 323 ( 82) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 324 ( 83) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 325 ( 83) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426648, /* 326 ( 83) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 327 ( 83) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 328 ( 84) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 329 ( 84) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 330 ( 84) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 331 ( 84) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 332 ( 85) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 333 ( 85) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 334 ( 85) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 335 ( 85) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 336 ( 86) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 337 ( 86) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 338 ( 86) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 339 ( 86) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 340 ( 87) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 341 ( 87) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439608, /* 342 ( 87) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 343 ( 87) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 344 ( 88) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 345 ( 88) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557706, /* 346 ( 88) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 347 ( 88) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 348 ( 89) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 349 ( 89) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140530, /* 350 ( 89) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 351 ( 89) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 352 ( 90) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 353 ( 90) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121458 , /* 354 ( 90) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 355 ( 90) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 356 ( 90) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 357 ( 90) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18544746, /* 358 ( 90) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 359 ( 90) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 360 ( 91) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 361 ( 91) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127570, /* 362 ( 91) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 363 ( 91) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 364 ( 91) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 365 ( 91) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18426648, /* 366 ( 91) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 367 ( 91) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 368 ( 92) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 369 ( 92) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009472, /* 370 ( 92) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 371 ( 92) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18557870, /* 372 ( 92) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 373 ( 92) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1538634 , /* 374 ( 92) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 375 ( 92) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 376 ( 93) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 377 ( 93) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009472, /* 378 ( 93) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 379 ( 93) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 380 ( 93) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 381 ( 93) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18544746, /* 382 ( 93) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 383 ( 93) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 384 ( 94) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 385 ( 94) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538634 , /* 386 ( 94) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 387 ( 94) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 388 ( 94) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 389 ( 94) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17127570, /* 390 ( 94) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 391 ( 94) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 392 ( 95) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 393 ( 95) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121458 , /* 394 ( 95) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 395 ( 95) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 396 ( 95) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 397 ( 95) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18426648, /* 398 ( 95) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 399 ( 95) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 400 ( 96) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 401 ( 96) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 402 ( 96) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 403 ( 96) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 1551758 , /* 404 ( 96) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 405 ( 96) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18544586, /* 406 ( 96) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 407 ( 96) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 408 ( 97) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 409 ( 97) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 410 ( 97) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 411 ( 97) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17140694, /* 412 ( 97) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 413 ( 97) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 414 ( 97) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 415 ( 97) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 416 ( 98) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 417 ( 98) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 418 ( 98) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 419 ( 98) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 18557870, /* 420 ( 98) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 421 ( 98) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127410, /* 422 ( 98) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 423 ( 98) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 424 ( 99) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 425 ( 99) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 426 ( 99) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 427 ( 99) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17140694, /* 428 ( 99) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 429 ( 99) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18544586, /* 430 ( 99) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 431 ( 99) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 432 (100) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 433 (100) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 434 (100) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 435 (100) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 1551758 , /* 436 (100) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 437 (100) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18426488, /* 438 (100) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 439 (100) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 440 (101) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 441 (101) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 442 (101) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 443 (101) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18557870, /* 444 (101) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 445 (101) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1538474 , /* 446 (101) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 447 (101) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 448 (102) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 449 (102) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433496 , /* 450 (102) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 451 (102) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 17140694, /* 452 (102) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 453 (102) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18557706, /* 454 (102) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 455 (102) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 456 (103) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 457 (103) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551594 , /* 458 (103) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 459 (103) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 460 (103) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 461 (103) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17140530, /* 462 (103) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 463 (103) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 464 (104) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 465 (104) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 466 (104) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 467 (104) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 468 (104) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 469 (104) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 470 (104) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 471 (104) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 472 (105) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 473 (105) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 474 (105) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 475 (105) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 476 (105) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 477 (105) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557706, /* 478 (105) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 479 (105) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 480 (106) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 481 (106) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551594 , /* 482 (106) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 483 (106) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 484 (106) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 485 (106) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 486 (106) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 487 (106) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 488 (107) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 489 (107) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433496 , /* 490 (107) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 491 (107) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18557870, /* 492 (107) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 493 (107) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17140530, /* 494 (107) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 495 (107) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 496 (108) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 497 (108) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 498 (108) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 499 (108) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 500 (109) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 501 (109) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16320 , /* 502 (109) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121458 , /* 503 (109) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16484 , /* 504 (110) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009312, /* 505 (110) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022432, /* 506 (110) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 3360 , /* 507 (110) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 508 (111) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 509 (111) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433496 , /* 510 (111) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420536 , /* 511 (111) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 512 (112) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 513 (112) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439608, /* 514 (112) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 515 (112) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 516 (113) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538474 , /* 517 (113) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16320 , /* 518 (113) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538634 , /* 519 (113) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 520 (114) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127410, /* 521 (114) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 522 (114) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 3360 , /* 523 (114) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 524 (115) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127410, /* 525 (115) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439608, /* 526 (115) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 1538634 , /* 527 (115) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 528 (116) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 529 (116) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16320 , /* 530 (116) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121458 , /* 531 (116) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 18439772, /* 532 (116) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544586, /* 533 (116) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18439608, /* 534 (116) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18544746, /* 535 (116) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 536 (117) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009312, /* 537 (117) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022432, /* 538 (117) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 3360 , /* 539 (117) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 540 (117) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18544586, /* 541 (117) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 542 (117) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1538634 , /* 543 (117) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 544 (118) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 545 (118) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433496 , /* 546 (118) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420536 , /* 547 (118) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17140694, /* 548 (118) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 549 (118) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18557706, /* 550 (118) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544746, /* 551 (118) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 552 (119) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 553 (119) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 554 (119) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 555 (119) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 556 (119) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 557 (119) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 558 (119) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 559 (119) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 560 (120) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 561 (120) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 562 (120) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 563 (120) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 564 (120) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 565 (120) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 566 (120) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 567 (120) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 568 (121) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 569 (121) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 570 (121) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 571 (121) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140694, /* 572 (121) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 573 (121) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 574 (121) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 575 (121) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 576 (122) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 577 (122) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 578 (122) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 579 (122) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 580 (122) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 581 (122) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 582 (122) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 583 (122) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17140694, /* 584 (122) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 585 (122) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 586 (122) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 587 (122) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439772, /* 588 (122) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 589 (122) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 590 (122) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 591 (122) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 592 (123) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 593 (123) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 594 (123) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 595 (123) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 596 (123) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 597 (123) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 598 (123) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544746, /* 599 (123) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 600 (124) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420376 , /* 601 (124) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 134418 , /* 602 (124) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 1538634 , /* 603 (124) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557870, /* 604 (124) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127410, /* 605 (124) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439608, /* 606 (124) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17009472, /* 607 (124) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16484 , /* 608 (125) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 609 (125) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 610 (125) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 611 (125) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 612 (126) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 613 (126) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 614 (126) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 615 (126) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 616 (127) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 617 (127) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 618 (127) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 619 (127) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 620 (128) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 621 (128) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 3362 , /* 622 (128) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134420 , /* 623 (128) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 624 (129) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 625 (129) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 121460 , /* 626 (129) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16322 , /* 627 (129) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 628 (130) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 629 (130) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022432, /* 630 (130) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 16322 , /* 631 (130) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 632 (131) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 633 (131) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022432, /* 634 (131) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 635 (131) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 636 (132) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 637 (132) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420538 , /* 638 (132) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1420536 , /* 639 (132) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 640 (133) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 641 (133) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 3362 , /* 642 (133) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 643 (133) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 644 (134) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 645 (134) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 646 (134) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 647 (134) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 648 (135) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 649 (135) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16320 , /* 650 (135) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022434, /* 651 (135) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 652 (136) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 653 (136) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 654 (136) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 655 (136) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 656 (137) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 657 (137) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009474, /* 658 (137) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022434, /* 659 (137) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 660 (138) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 661 (138) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420538 , /* 662 (138) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433498 , /* 663 (138) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 664 (139) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 665 (139) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 666 (139) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433498 , /* 667 (139) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 668 (140) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 669 (140) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 670 (140) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134420 , /* 671 (140) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 672 (141) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 673 (141) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 674 (141) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 675 (141) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 676 (142) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 677 (142) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 678 (142) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 3360 , /* 679 (142) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 680 (143) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 681 (143) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17127572, /* 682 (143) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17022434, /* 683 (143) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 684 (144) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 685 (144) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 1420538 , /* 686 (144) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1551596 , /* 687 (144) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 688 (145) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 689 (145) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17022432, /* 690 (145) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 18439610, /* 691 (145) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 692 (146) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140692, /* 693 (146) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17022432, /* 694 (146) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 134420 , /* 695 (146) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 696 (147) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 697 (147) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 121460 , /* 698 (147) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1420536 , /* 699 (147) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 700 (148) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 701 (148) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18426650, /* 702 (148) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 1420536 , /* 703 (148) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 704 (149) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 705 (149) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538636 , /* 706 (149) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 707 (149) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 708 (150) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 709 (150) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127572, /* 710 (150) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 711 (150) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 712 (151) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140692, /* 713 (151) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16320 , /* 714 (151) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140532, /* 715 (151) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 716 (152) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439770, /* 717 (152) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16320 , /* 718 (152) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439610, /* 719 (152) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 720 (153) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439770, /* 721 (153) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 722 (153) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 3360 , /* 723 (153) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 724 (154) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 725 (154) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 726 (154) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 3360 , /* 727 (154) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 728 (155) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127410, /* 729 (155) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 3362 , /* 730 (155) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140532, /* 731 (155) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 732 (156) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538474 , /* 733 (156) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538636 , /* 734 (156) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 16322 , /* 735 (156) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 736 (157) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439770, /* 737 (157) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 738 (157) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 16322 , /* 739 (157) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 740 (158) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 741 (158) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140530, /* 742 (158) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 743 (158) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 744 (159) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 745 (159) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538636 , /* 746 (159) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 747 (159) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 748 (160) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439770, /* 749 (160) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 3362 , /* 750 (160) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18426648, /* 751 (160) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 752 (161) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 753 (161) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18426650, /* 754 (161) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 755 (161) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 756 (162) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 757 (162) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16320 , /* 758 (162) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551596 , /* 759 (162) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 760 (163) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140692, /* 761 (163) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 762 (163) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 3360 , /* 763 (163) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 764 (164) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 765 (164) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18544748, /* 766 (164) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18439610, /* 767 (164) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 768 (165) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 769 (165) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18426650, /* 770 (165) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18557708, /* 771 (165) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 772 (166) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 773 (166) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17022432, /* 774 (166) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 18557708, /* 775 (166) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 776 (167) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557868, /* 777 (167) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17022432, /* 778 (167) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 1551596 , /* 779 (167) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 780 (168) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557868, /* 781 (168) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127572, /* 782 (168) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 1420536 , /* 783 (168) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 784 (169) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140692, /* 785 (169) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18544748, /* 786 (169) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1420536 , /* 787 (169) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 788 (170) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 789 (170) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18544748, /* 790 (170) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 791 (170) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 792 (171) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557868, /* 793 (171) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16320 , /* 794 (171) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557708, /* 795 (171) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 796 (172) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557868, /* 797 (172) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 798 (172) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 3360 , /* 799 (172) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 800 (173) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 801 (173) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 802 (173) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 803 (173) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 804 (173) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 805 (173) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426650, /* 806 (173) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 807 (173) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 808 (174) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 809 (174) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 810 (174) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 811 (174) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 812 (174) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 813 (174) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 814 (174) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 815 (174) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 816 (175) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 817 (175) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 818 (175) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 819 (175) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140694, /* 820 (175) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 821 (175) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 822 (175) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 823 (175) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 824 (176) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 825 (176) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 3362 , /* 826 (176) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134420 , /* 827 (176) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 828 (176) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544586, /* 829 (176) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426650, /* 830 (176) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18557708, /* 831 (176) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 832 (177) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 833 (177) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 121460 , /* 834 (177) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16322 , /* 835 (177) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 836 (177) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544586, /* 837 (177) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544748, /* 838 (177) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18439610, /* 839 (177) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 840 (178) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 841 (178) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022432, /* 842 (178) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 16322 , /* 843 (178) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 844 (178) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18557868, /* 845 (178) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 846 (178) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1551596 , /* 847 (178) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 848 (179) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 849 (179) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022432, /* 850 (179) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 851 (179) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 852 (179) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 853 (179) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557706, /* 854 (179) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 855 (179) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 856 (180) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 857 (180) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420538 , /* 858 (180) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1420536 , /* 859 (180) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17140694, /* 860 (180) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 861 (180) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18544748, /* 862 (180) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 863 (180) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 864 (181) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 865 (181) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 3362 , /* 866 (181) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 867 (181) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17140694, /* 868 (181) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18557868, /* 869 (181) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127572, /* 870 (181) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544746, /* 871 (181) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 872 (182) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 873 (182) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 874 (182) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 875 (182) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 876 (182) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 877 (182) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544748, /* 878 (182) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 879 (182) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 880 (183) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 881 (183) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16320 , /* 882 (183) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022434, /* 883 (183) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 884 (183) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18557868, /* 885 (183) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 1551594 , /* 886 (183) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557708, /* 887 (183) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 888 (184) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 889 (184) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 890 (184) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 891 (184) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140694, /* 892 (184) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18557868, /* 893 (184) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 894 (184) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 895 (184) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 896 (185) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 897 (185) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 898 (185) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 899 (185) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 900 (185) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 901 (185) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538636 , /* 902 (185) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 903 (185) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 904 (186) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 905 (186) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 906 (186) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 907 (186) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 908 (186) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 909 (186) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127572, /* 910 (186) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 911 (186) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 912 (187) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 913 (187) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 914 (187) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 915 (187) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 916 (187) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 917 (187) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 918 (187) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 919 (187) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 920 (188) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 921 (188) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 922 (188) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 923 (188) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 924 (188) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 925 (188) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 926 (188) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 927 (188) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 928 (189) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 929 (189) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 930 (189) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 931 (189) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 932 (189) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 933 (189) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 934 (189) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 935 (189) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 936 (190) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 937 (190) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 938 (190) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 939 (190) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 940 (190) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 941 (190) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 942 (190) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 943 (190) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 944 (191) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 945 (191) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 946 (191) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 947 (191) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 1551758 , /* 948 (191) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 949 (191) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1420538 , /* 950 (191) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433498 , /* 951 (191) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 952 (192) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 953 (192) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 954 (192) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 955 (192) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17140694, /* 956 (192) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 957 (192) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17009474, /* 958 (192) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022434, /* 959 (192) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 960 (193) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 961 (193) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 962 (193) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134420 , /* 963 (193) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17140694, /* 964 (193) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17022594, /* 965 (193) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17140530, /* 966 (193) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17022434, /* 967 (193) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 968 (194) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 969 (194) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 970 (194) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433498 , /* 971 (194) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18439772, /* 972 (194) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17022594, /* 973 (194) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18439608, /* 974 (194) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17022434, /* 975 (194) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 976 (195) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 977 (195) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 978 (195) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 979 (195) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 980 (195) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17022594, /* 981 (195) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 982 (195) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 18426648, /* 983 (195) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 984 (196) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 985 (196) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 986 (196) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 987 (196) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 988 (196) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1433658 , /* 989 (196) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 990 (196) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1538634 , /* 991 (196) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 992 (197) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 993 (197) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009474, /* 994 (197) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022434, /* 995 (197) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 996 (197) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 997 (197) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18544748, /* 998 (197) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 999 (197) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1000 (198) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1001 (198) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420538 , /* 1002 (198) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433498 , /* 1003 (198) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 17140694, /* 1004 (198) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 1005 (198) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544748, /* 1006 (198) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 1007 (198) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1008 (199) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 1009 (199) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 1010 (199) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433498 , /* 1011 (199) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 17140694, /* 1012 (199) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18557868, /* 1013 (199) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17140530, /* 1014 (199) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18557708, /* 1015 (199) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1016 (200) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 1017 (200) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 1018 (200) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134420 , /* 1019 (200) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 1020 (200) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18557868, /* 1021 (200) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 1022 (200) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557708, /* 1023 (200) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1024 (201) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 1025 (201) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1026 (201) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 1027 (201) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 1028 (201) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18557868, /* 1029 (201) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1030 (201) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 1031 (201) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 1032 (202) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 1033 (202) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1034 (202) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 3360 , /* 1035 (202) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 1036 (202) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18557868, /* 1037 (202) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1038 (202) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1538634 , /* 1039 (202) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 1040 (203) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1041 (203) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127572, /* 1042 (203) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 1043 (203) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 1044 (203) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 1045 (203) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18426650, /* 1046 (203) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 1047 (203) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1048 (204) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1049 (204) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538636 , /* 1050 (204) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 1051 (204) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 1052 (204) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 1053 (204) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18426650, /* 1054 (204) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 1055 (204) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1056 (205) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 1057 (205) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16320 , /* 1058 (205) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551596 , /* 1059 (205) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 1060 (205) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439770, /* 1061 (205) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17140530, /* 1062 (205) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439610, /* 1063 (205) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1064 (206) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 1065 (206) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16320 , /* 1066 (206) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551596 , /* 1067 (206) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 1068 (206) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17140692, /* 1069 (206) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 1070 (206) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17140532, /* 1071 (206) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1072 (207) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551756 , /* 1073 (207) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1074 (207) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 3360 , /* 1075 (207) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439772, /* 1076 (207) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17140692, /* 1077 (207) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1078 (207) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18426648, /* 1079 (207) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 1080 (208) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140692, /* 1081 (208) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1082 (208) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 3360 , /* 1083 (208) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 1084 (208) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439770, /* 1085 (208) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1086 (208) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 1538634 , /* 1087 (208) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16484 , /* 1088 (209) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1089 (209) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 1090 (209) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 1091 (209) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 1092 (209) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 1093 (209) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538636 , /* 1094 (209) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 1095 (209) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 1096 (209) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 1097 (209) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127572, /* 1098 (209) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 1099 (209) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439772, /* 1100 (209) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 1101 (209) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426650, /* 1102 (209) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 1103 (209) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1104 (210) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1105 (210) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 1106 (210) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1107 (210) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 1108 (210) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1109 (210) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 1110 (210) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1111 (210) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 1112 (210) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1113 (210) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 1114 (210) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1115 (210) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439772, /* 1116 (210) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1117 (210) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 1118 (210) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1119 (210) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1120 (211) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1121 (211) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1122 (211) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 1123 (211) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551758 , /* 1124 (211) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1125 (211) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1126 (211) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 1127 (211) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17140694, /* 1128 (211) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1129 (211) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1130 (211) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 1131 (211) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439772, /* 1132 (211) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1133 (211) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1134 (211) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 1135 (211) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1551758 , /* 1136 (212) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 1137 (212) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 9274055 , /* 1138 (212) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 3, 3] */
+ 9287015 , /* 1139 (212) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 3] */
+ 16484 , /* 1140 (212) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1141 (212) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 10809329, /* 1142 (212) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 9, 9] */
+ 10822289, /* 1143 (212) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 9] */
+ 18439772, /* 1144 (212) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 1145 (212) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 26398265, /* 1146 (212) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 3, 9] */
+ 26411225, /* 1147 (212) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 9] */
+ 17140694, /* 1148 (212) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 1149 (212) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 27697343, /* 1150 (212) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 9, 3] */
+ 27710303, /* 1151 (212) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 3] */
+ 18439772, /* 1152 (213) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 9287175 , /* 1153 (213) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 3] */
+ 18439608, /* 1154 (213) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 10822289, /* 1155 (213) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 9] */
+ 17140694, /* 1156 (213) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 10822449, /* 1157 (213) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 9] */
+ 17140530, /* 1158 (213) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 9287015 , /* 1159 (213) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 3] */
+ 1551758 , /* 1160 (213) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 26411385, /* 1161 (213) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 9] */
+ 1551594 , /* 1162 (213) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 27710303, /* 1163 (213) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 3] */
+ 16484 , /* 1164 (213) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 27710463, /* 1165 (213) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 3] */
+ 16320 , /* 1166 (213) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 26411225, /* 1167 (213) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 9] */
+ 17140694, /* 1168 (214) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 10822449, /* 1169 (214) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 9] */
+ 27697343, /* 1170 (214) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 9, 3] */
+ 1538634 , /* 1171 (214) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18439772, /* 1172 (214) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 9287175 , /* 1173 (214) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 3] */
+ 26398265, /* 1174 (214) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 3, 9] */
+ 3360 , /* 1175 (214) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 1176 (214) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 27710463, /* 1177 (214) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 3] */
+ 10809329, /* 1178 (214) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 9, 9] */
+ 18426648, /* 1179 (214) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1551758 , /* 1180 (214) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 26411385, /* 1181 (214) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 9] */
+ 9274055 , /* 1182 (214) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 3, 3] */
+ 17127570, /* 1183 (214) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 1184 (215) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1185 (215) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 1186 (215) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 1187 (215) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 1188 (215) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 1189 (215) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544748, /* 1190 (215) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 1191 (215) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1192 (216) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1193 (216) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 1194 (216) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1195 (216) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 1196 (216) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1197 (216) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 1198 (216) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1199 (216) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1200 (217) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1201 (217) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1202 (217) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 1203 (217) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 1204 (217) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1205 (217) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1206 (217) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 1207 (217) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 1208 (218) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1209 (218) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 1210 (218) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 1211 (218) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 1212 (218) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 1213 (218) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426650, /* 1214 (218) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 1215 (218) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1216 (219) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 1217 (219) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16320 , /* 1218 (219) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022434, /* 1219 (219) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18557870, /* 1220 (219) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1551756 , /* 1221 (219) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557706, /* 1222 (219) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1551596 , /* 1223 (219) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1224 (220) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 1225 (220) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1226 (220) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 1227 (220) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 1228 (220) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17140692, /* 1229 (220) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1230 (220) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544746, /* 1231 (220) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 1232 (221) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1233 (221) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009474, /* 1234 (221) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022434, /* 1235 (221) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18557870, /* 1236 (221) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 1237 (221) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 1538636 , /* 1238 (221) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 1239 (221) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1240 (222) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1241 (222) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420538 , /* 1242 (222) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433498 , /* 1243 (222) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18557870, /* 1244 (222) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 1245 (222) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127572, /* 1246 (222) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 1247 (222) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1248 (223) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1433658 , /* 1249 (223) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 1250 (223) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433498 , /* 1251 (223) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18557870, /* 1252 (223) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17140692, /* 1253 (223) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18557706, /* 1254 (223) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17140532, /* 1255 (223) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1256 (224) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 1257 (224) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 1258 (224) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 134420 , /* 1259 (224) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 1260 (224) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18439770, /* 1261 (224) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557706, /* 1262 (224) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439610, /* 1263 (224) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1264 (225) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 1265 (225) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1266 (225) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 1267 (225) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 1268 (225) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18439770, /* 1269 (225) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1270 (225) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544746, /* 1271 (225) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 1272 (226) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17022594, /* 1273 (226) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1274 (226) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 3360 , /* 1275 (226) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 1276 (226) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1551756 , /* 1277 (226) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1278 (226) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18544746, /* 1279 (226) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 1280 (227) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1281 (227) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1282 (227) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1283 (227) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 1284 (227) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1285 (227) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 1286 (227) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1287 (227) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1288 (228) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1289 (228) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 1290 (228) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 1291 (228) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544584, /* 1292 (228) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557868, /* 1293 (228) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1294 (228) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 1295 (228) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1296 (229) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1297 (229) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1298 (229) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1299 (229) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1551594 , /* 1300 (229) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1301 (229) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 17127570, /* 1302 (229) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1303 (229) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1304 (230) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1305 (230) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1306 (230) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1307 (230) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 1308 (230) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1309 (230) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 1310 (230) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1311 (230) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1312 (231) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1313 (231) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1314 (231) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1315 (231) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16320 , /* 1316 (231) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1317 (231) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009472, /* 1318 (231) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1319 (231) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1320 (232) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1321 (232) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1322 (232) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1323 (232) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433496 , /* 1324 (232) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1325 (232) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 1326 (232) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1327 (232) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1328 (233) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1329 (233) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 1330 (233) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 1331 (233) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426486, /* 1332 (233) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 1333 (233) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1334 (233) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 1335 (233) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1336 (234) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1337 (234) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1338 (234) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1339 (234) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1433496 , /* 1340 (234) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1341 (234) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 17009472, /* 1342 (234) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1343 (234) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1344 (235) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1345 (235) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 1346 (235) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 1347 (235) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538472 , /* 1348 (235) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551756 , /* 1349 (235) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1350 (235) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 1351 (235) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1352 (236) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1353 (236) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1354 (236) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1355 (236) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 1356 (236) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1357 (236) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 121458 , /* 1358 (236) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1359 (236) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1360 (237) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1361 (237) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 1362 (237) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 1363 (237) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127408, /* 1364 (237) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140692, /* 1365 (237) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1366 (237) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 1367 (237) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1368 (238) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1369 (238) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1370 (238) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1371 (238) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 134418 , /* 1372 (238) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1373 (238) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 17127570, /* 1374 (238) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1375 (238) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1376 (239) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1377 (239) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1378 (239) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1379 (239) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022432, /* 1380 (239) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1381 (239) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 3360 , /* 1382 (239) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1383 (239) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1384 (240) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1385 (240) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1386 (240) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1387 (240) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 1388 (240) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1389 (240) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 1390 (240) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1391 (240) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1392 (241) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1393 (241) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1394 (241) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1395 (241) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433496 , /* 1396 (241) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1397 (241) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1420536 , /* 1398 (241) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1399 (241) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1400 (242) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1401 (242) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1402 (242) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1403 (242) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134418 , /* 1404 (242) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1405 (242) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 1406 (242) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1407 (242) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1408 (243) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1409 (243) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1410 (243) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1411 (243) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 1412 (243) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1413 (243) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121458 , /* 1414 (243) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1415 (243) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1416 (244) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1417 (244) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1418 (244) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1419 (244) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022432, /* 1420 (244) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1421 (244) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17009472, /* 1422 (244) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1423 (244) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1424 (245) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1425 (245) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1426 (245) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1427 (245) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 1551594 , /* 1428 (245) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1429 (245) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18544746, /* 1430 (245) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1431 (245) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1432 (246) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1433 (246) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1434 (246) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1435 (246) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 18557706, /* 1436 (246) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1437 (246) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 1438 (246) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1439 (246) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1440 (247) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1441 (247) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1442 (247) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1443 (247) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 1433496 , /* 1444 (247) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1445 (247) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 17127570, /* 1446 (247) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1447 (247) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1448 (248) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1449 (248) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1450 (248) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1451 (248) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 134418 , /* 1452 (248) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1453 (248) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18544746, /* 1454 (248) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1455 (248) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1456 (249) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1457 (249) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1458 (249) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1459 (249) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557706, /* 1460 (249) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1461 (249) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 121458 , /* 1462 (249) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1463 (249) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1464 (250) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1465 (250) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1466 (250) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1467 (250) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 1551594 , /* 1468 (250) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1469 (250) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 17009472, /* 1470 (250) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1471 (250) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1472 (251) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1473 (251) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1474 (251) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1475 (251) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 16320 , /* 1476 (251) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1477 (251) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127570, /* 1478 (251) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1479 (251) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1480 (252) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1481 (252) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1482 (252) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1483 (252) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 1484 (252) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1485 (252) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 3360 , /* 1486 (252) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1487 (252) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1488 (253) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1489 (253) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1490 (253) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1491 (253) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 1492 (253) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1493 (253) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 3360 , /* 1494 (253) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1495 (253) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1496 (254) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1497 (254) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1498 (254) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1499 (254) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140530, /* 1500 (254) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1501 (254) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 1502 (254) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1503 (254) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1504 (255) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1505 (255) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1506 (255) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1507 (255) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551594 , /* 1508 (255) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1509 (255) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 1510 (255) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1511 (255) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1512 (256) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1513 (256) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1514 (256) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1515 (256) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 16320 , /* 1516 (256) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1517 (256) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18426648, /* 1518 (256) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1519 (256) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1520 (257) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1521 (257) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1522 (257) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1523 (257) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17140530, /* 1524 (257) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1525 (257) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 121458 , /* 1526 (257) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1527 (257) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1528 (258) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1529 (258) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1530 (258) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1531 (258) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 134418 , /* 1532 (258) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1533 (258) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1538634 , /* 1534 (258) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1535 (258) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1536 (259) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1537 (259) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1538 (259) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1539 (259) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 1433496 , /* 1540 (259) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1541 (259) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18426648, /* 1542 (259) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1543 (259) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1544 (260) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1545 (260) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1546 (260) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1547 (260) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 134418 , /* 1548 (260) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1549 (260) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 17009472, /* 1550 (260) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1551 (260) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1552 (261) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1553 (261) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1554 (261) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1555 (261) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1433496 , /* 1556 (261) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1557 (261) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 121458 , /* 1558 (261) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1559 (261) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1560 (262) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1561 (262) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1562 (262) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1563 (262) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 18439608, /* 1564 (262) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1565 (262) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17009472, /* 1566 (262) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1567 (262) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1568 (263) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1569 (263) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1570 (263) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1571 (263) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18439608, /* 1572 (263) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1573 (263) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 1574 (263) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1575 (263) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1576 (264) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1577 (264) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1578 (264) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1579 (264) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16320 , /* 1580 (264) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1581 (264) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538634 , /* 1582 (264) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1583 (264) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1584 (265) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1585 (265) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1586 (265) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1587 (265) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 1588 (265) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1589 (265) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 3360 , /* 1590 (265) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1591 (265) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1592 (266) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1593 (266) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1594 (266) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1595 (266) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17140530, /* 1596 (266) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1597 (266) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 1538634 , /* 1598 (266) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1599 (266) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1600 (267) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1601 (267) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1602 (267) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1603 (267) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 1551594 , /* 1604 (267) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1605 (267) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18426648, /* 1606 (267) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1607 (267) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1608 (268) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1609 (268) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1610 (268) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1611 (268) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18439608, /* 1612 (268) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1613 (268) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17127570, /* 1614 (268) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1615 (268) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1616 (269) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1617 (269) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1618 (269) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1619 (269) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 1433496 , /* 1620 (269) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1621 (269) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1538634 , /* 1622 (269) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1623 (269) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1624 (270) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1625 (270) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1626 (270) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1627 (270) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 17140530, /* 1628 (270) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1629 (270) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17009472, /* 1630 (270) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1631 (270) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1632 (271) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1633 (271) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1634 (271) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1635 (271) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17022432, /* 1636 (271) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1637 (271) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 121458 , /* 1638 (271) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1639 (271) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1640 (272) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1641 (272) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1642 (272) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1643 (272) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17022432, /* 1644 (272) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1645 (272) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 18426648, /* 1646 (272) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1647 (272) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1648 (273) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1649 (273) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1650 (273) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1651 (273) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18439608, /* 1652 (273) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1653 (273) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 1420536 , /* 1654 (273) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1655 (273) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1656 (274) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1657 (274) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1658 (274) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1659 (274) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 134418 , /* 1660 (274) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1661 (274) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1420536 , /* 1662 (274) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1663 (274) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1664 (275) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1665 (275) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1666 (275) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1667 (275) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18557706, /* 1668 (275) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1669 (275) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 1670 (275) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1671 (275) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1672 (276) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1673 (276) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1674 (276) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1675 (276) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 16320 , /* 1676 (276) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1677 (276) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18544746, /* 1678 (276) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1679 (276) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1680 (277) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1681 (277) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1682 (277) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1683 (277) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 1684 (277) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1685 (277) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 3360 , /* 1686 (277) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1687 (277) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1688 (278) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 1689 (278) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439608, /* 1690 (278) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 1691 (278) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426486, /* 1692 (278) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 1693 (278) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 3362 , /* 1694 (278) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 1695 (278) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1696 (279) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1697 (279) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 1698 (279) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1699 (279) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17022432, /* 1700 (279) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1701 (279) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 1420536 , /* 1702 (279) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1703 (279) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1704 (280) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538474 , /* 1705 (280) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16320 , /* 1706 (280) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538634 , /* 1707 (280) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538472 , /* 1708 (280) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 16482 , /* 1709 (280) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538636 , /* 1710 (280) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 16322 , /* 1711 (280) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 1712 (281) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1713 (281) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1714 (281) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1715 (281) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 1551594 , /* 1716 (281) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1717 (281) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1420536 , /* 1718 (281) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1719 (281) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1720 (282) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127410, /* 1721 (282) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 1722 (282) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 3360 , /* 1723 (282) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127408, /* 1724 (282) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 16482 , /* 1725 (282) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1726 (282) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140532, /* 1727 (282) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1728 (283) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1729 (283) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1730 (283) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1731 (283) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 17022432, /* 1732 (283) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1733 (283) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17127570, /* 1734 (283) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1735 (283) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1736 (284) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1737 (284) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1738 (284) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1739 (284) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 1740 (284) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1741 (284) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 121458 , /* 1742 (284) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1743 (284) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 1744 (285) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1745 (285) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1746 (285) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1747 (285) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 134418 , /* 1748 (285) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1749 (285) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18426648, /* 1750 (285) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1751 (285) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1752 (286) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1753 (286) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1754 (286) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1755 (286) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18557706, /* 1756 (286) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1757 (286) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1538634 , /* 1758 (286) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1759 (286) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1760 (287) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1761 (287) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1762 (287) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1763 (287) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557706, /* 1764 (287) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1765 (287) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17009472, /* 1766 (287) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1767 (287) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 1768 (288) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1769 (288) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1770 (288) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1771 (288) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 1433496 , /* 1772 (288) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1773 (288) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18544746, /* 1774 (288) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1775 (288) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1776 (289) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1777 (289) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1778 (289) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1779 (289) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 17140530, /* 1780 (289) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1781 (289) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544746, /* 1782 (289) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1783 (289) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1784 (290) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1785 (290) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1786 (290) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1787 (290) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 1788 (290) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1789 (290) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 1538634 , /* 1790 (290) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1791 (290) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1792 (291) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1793 (291) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1794 (291) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1795 (291) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17140530, /* 1796 (291) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1797 (291) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18426648, /* 1798 (291) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1799 (291) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1800 (292) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1801 (292) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1802 (292) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1803 (292) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18557706, /* 1804 (292) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1805 (292) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1420536 , /* 1806 (292) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1807 (292) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1808 (293) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1809 (293) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1810 (293) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1811 (293) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17022432, /* 1812 (293) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1813 (293) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 18544746, /* 1814 (293) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1815 (293) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1816 (294) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1817 (294) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1818 (294) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1819 (294) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 18439608, /* 1820 (294) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1821 (294) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544746, /* 1822 (294) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1823 (294) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1824 (295) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1825 (295) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1826 (295) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1827 (295) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17140530, /* 1828 (295) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1829 (295) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 1420536 , /* 1830 (295) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1831 (295) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 1832 (296) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1833 (296) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18544586, /* 1834 (296) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1835 (296) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17022432, /* 1836 (296) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1837 (296) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 1538634 , /* 1838 (296) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1839 (296) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1840 (297) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1841 (297) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1842 (297) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1843 (297) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 18557706, /* 1844 (297) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1845 (297) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 1846 (297) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1847 (297) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1848 (298) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1849 (298) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1850 (298) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1851 (298) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 1852 (298) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1853 (298) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121458 , /* 1854 (298) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 1855 (298) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 1856 (298) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 1857 (298) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18544586, /* 1858 (298) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1859 (298) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 1860 (298) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1861 (298) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544746, /* 1862 (298) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1863 (298) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1864 (299) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1865 (299) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 1866 (299) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 1867 (299) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134418 , /* 1868 (299) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 1869 (299) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 1870 (299) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1871 (299) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 1872 (299) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 1873 (299) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18544586, /* 1874 (299) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1875 (299) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 1876 (299) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1877 (299) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 1878 (299) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1879 (299) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1880 (300) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1881 (300) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 1882 (300) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 1883 (300) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022432, /* 1884 (300) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1885 (300) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 3360 , /* 1886 (300) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1887 (300) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 1888 (300) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 1889 (300) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18544586, /* 1890 (300) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1891 (300) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 1892 (300) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1893 (300) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1538634 , /* 1894 (300) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1895 (300) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1896 (301) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1897 (301) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1898 (301) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1899 (301) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022432, /* 1900 (301) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 1901 (301) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17009472, /* 1902 (301) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 1903 (301) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 1904 (301) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 1905 (301) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 1906 (301) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1907 (301) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557706, /* 1908 (301) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1909 (301) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 1910 (301) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1911 (301) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1912 (302) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1913 (302) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1914 (302) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1915 (302) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433496 , /* 1916 (302) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 1917 (302) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1420536 , /* 1918 (302) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1919 (302) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 17140694, /* 1920 (302) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 1921 (302) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 1922 (302) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1923 (302) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18557706, /* 1924 (302) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 1925 (302) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 1926 (302) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1927 (302) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1928 (303) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1929 (303) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 1930 (303) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 1931 (303) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 1932 (303) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1933 (303) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 1934 (303) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 1935 (303) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 17140694, /* 1936 (303) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 1937 (303) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18544586, /* 1938 (303) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 1939 (303) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17140530, /* 1940 (303) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1941 (303) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544746, /* 1942 (303) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 1943 (303) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 1944 (304) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1945 (304) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1946 (304) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1947 (304) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16320 , /* 1948 (304) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 1949 (304) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538634 , /* 1950 (304) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1951 (304) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 1952 (304) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 1953 (304) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17127410, /* 1954 (304) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1955 (304) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 1956 (304) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1957 (304) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17127570, /* 1958 (304) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1959 (304) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 1960 (305) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1961 (305) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 1962 (305) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 1963 (305) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 1964 (305) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 1965 (305) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 3360 , /* 1966 (305) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1967 (305) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 1968 (305) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 1969 (305) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17127410, /* 1970 (305) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1971 (305) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 1972 (305) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1973 (305) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18426648, /* 1974 (305) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 1975 (305) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 1976 (306) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1977 (306) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 1978 (306) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 1979 (306) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 1980 (306) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1981 (306) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 3360 , /* 1982 (306) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 1983 (306) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 1984 (306) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 1985 (306) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18426488, /* 1986 (306) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 1987 (306) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 1988 (306) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 1989 (306) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 1538634 , /* 1990 (306) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 1991 (306) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 1992 (307) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 1993 (307) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 1994 (307) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 1995 (307) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17140530, /* 1996 (307) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 1997 (307) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 1998 (307) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 1999 (307) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 2000 (307) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2001 (307) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 2002 (307) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2003 (307) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18439608, /* 2004 (307) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2005 (307) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 2006 (307) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2007 (307) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2008 (308) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2009 (308) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2010 (308) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2011 (308) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1551594 , /* 2012 (308) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2013 (308) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 2014 (308) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2015 (308) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 2016 (308) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2017 (308) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 2018 (308) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2019 (308) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 2020 (308) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2021 (308) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 2022 (308) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2023 (308) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2024 (309) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2025 (309) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 2026 (309) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2027 (309) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 16320 , /* 2028 (309) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2029 (309) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1538634 , /* 2030 (309) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2031 (309) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 2032 (309) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2033 (309) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 2034 (309) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2035 (309) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17140530, /* 2036 (309) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2037 (309) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18426648, /* 2038 (309) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2039 (309) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2040 (310) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2041 (310) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2042 (310) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2043 (310) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 2044 (310) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2045 (310) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 2046 (310) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2047 (310) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 2048 (310) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2049 (310) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426488, /* 2050 (310) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2051 (310) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 2052 (310) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2053 (310) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 2054 (310) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2055 (310) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2056 (311) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2057 (311) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2058 (311) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2059 (311) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 2060 (311) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2061 (311) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 2062 (311) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2063 (311) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 2064 (311) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2065 (311) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 2066 (311) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2067 (311) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 2068 (311) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2069 (311) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 2070 (311) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2071 (311) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 2072 (312) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2073 (312) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2074 (312) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2075 (312) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 2076 (312) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2077 (312) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 2078 (312) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2079 (312) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 2080 (312) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2081 (312) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 2082 (312) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2083 (312) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 2084 (312) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2085 (312) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 2086 (312) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2087 (312) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2088 (313) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2089 (313) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2090 (313) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2091 (313) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 2092 (313) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2093 (313) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 2094 (313) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2095 (313) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 2096 (313) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2097 (313) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426488, /* 2098 (313) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2099 (313) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557706, /* 2100 (313) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2101 (313) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 2102 (313) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2103 (313) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2104 (314) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2105 (314) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 2106 (314) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2107 (314) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16320 , /* 2108 (314) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2109 (314) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009472, /* 2110 (314) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2111 (314) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 2112 (314) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2113 (314) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18544586, /* 2114 (314) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2115 (314) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 1551594 , /* 2116 (314) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2117 (314) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18544746, /* 2118 (314) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2119 (314) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2120 (315) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2121 (315) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2122 (315) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2123 (315) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433496 , /* 2124 (315) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2125 (315) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 2126 (315) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2127 (315) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 17140694, /* 2128 (315) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2129 (315) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18544586, /* 2130 (315) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2131 (315) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 2132 (315) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2133 (315) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 2134 (315) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2135 (315) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2136 (316) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2137 (316) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2138 (316) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2139 (316) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 2140 (316) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2141 (316) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 2142 (316) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 2143 (316) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18439772, /* 2144 (316) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2145 (316) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17009312, /* 2146 (316) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2147 (316) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18439608, /* 2148 (316) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2149 (316) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17009472, /* 2150 (316) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2151 (316) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 2152 (317) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2153 (317) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2154 (317) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2155 (317) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433496 , /* 2156 (317) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2157 (317) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 2158 (317) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2159 (317) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18439772, /* 2160 (317) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2161 (317) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17009312, /* 2162 (317) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2163 (317) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022432, /* 2164 (317) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 2165 (317) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 18426648, /* 2166 (317) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2167 (317) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2168 (318) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2169 (318) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 2170 (318) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 2171 (318) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134418 , /* 2172 (318) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2173 (318) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 2174 (318) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2175 (318) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 2176 (318) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2177 (318) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1420376 , /* 2178 (318) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2179 (318) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433496 , /* 2180 (318) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2181 (318) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1538634 , /* 2182 (318) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2183 (318) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 2184 (319) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2185 (319) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2186 (319) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2187 (319) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 2188 (319) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2189 (319) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 2190 (319) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2191 (319) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 1551758 , /* 2192 (319) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2193 (319) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 2194 (319) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2195 (319) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1433496 , /* 2196 (319) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2197 (319) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1420536 , /* 2198 (319) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 2199 (319) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 16484 , /* 2200 (320) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2201 (320) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2202 (320) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2203 (320) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 2204 (320) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2205 (320) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 2206 (320) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2207 (320) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17140694, /* 2208 (320) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2209 (320) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 2210 (320) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2211 (320) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17022432, /* 2212 (320) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 2213 (320) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17009472, /* 2214 (320) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2215 (320) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 2216 (321) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2217 (321) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 2218 (321) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 2219 (321) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 2220 (321) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2221 (321) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121458 , /* 2222 (321) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2223 (321) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17140694, /* 2224 (321) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2225 (321) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17009312, /* 2226 (321) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2227 (321) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17140530, /* 2228 (321) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2229 (321) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17009472, /* 2230 (321) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2231 (321) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 2232 (322) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2233 (322) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2234 (322) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2235 (322) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538472 , /* 2236 (322) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551756 , /* 2237 (322) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2238 (322) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 2239 (322) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 2240 (322) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 2241 (322) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 2242 (322) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 2243 (322) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17127408, /* 2244 (322) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140692, /* 2245 (322) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2246 (322) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 2247 (322) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2248 (323) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2249 (323) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2250 (323) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2251 (323) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 2252 (323) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2253 (323) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 121458 , /* 2254 (323) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2255 (323) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18439772, /* 2256 (323) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2257 (323) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17009312, /* 2258 (323) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2259 (323) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17140530, /* 2260 (323) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2261 (323) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544746, /* 2262 (323) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2263 (323) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2264 (324) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2265 (324) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2266 (324) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2267 (324) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538472 , /* 2268 (324) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551756 , /* 2269 (324) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2270 (324) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 2271 (324) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 2272 (324) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 2273 (324) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 2274 (324) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 2275 (324) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17127408, /* 2276 (324) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140692, /* 2277 (324) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2278 (324) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 2279 (324) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2280 (325) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2281 (325) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2282 (325) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2283 (325) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 134418 , /* 2284 (325) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2285 (325) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1538634 , /* 2286 (325) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2287 (325) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18439772, /* 2288 (325) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2289 (325) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17009312, /* 2290 (325) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2291 (325) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18557706, /* 2292 (325) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2293 (325) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 2294 (325) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2295 (325) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2296 (326) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2297 (326) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2298 (326) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2299 (326) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127408, /* 2300 (326) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140692, /* 2301 (326) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2302 (326) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 2303 (326) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 2304 (326) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 2305 (326) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 2306 (326) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 2307 (326) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18426486, /* 2308 (326) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 2309 (326) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2310 (326) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 2311 (326) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2312 (327) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2313 (327) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 2314 (327) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2315 (327) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 134418 , /* 2316 (327) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2317 (327) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 17127570, /* 2318 (327) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2319 (327) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 2320 (327) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2321 (327) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18544586, /* 2322 (327) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2323 (327) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 1433496 , /* 2324 (327) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2325 (327) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18426648, /* 2326 (327) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2327 (327) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2328 (328) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2329 (328) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2330 (328) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2331 (328) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127408, /* 2332 (328) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140692, /* 2333 (328) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2334 (328) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140532, /* 2335 (328) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 1551758 , /* 2336 (328) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 2337 (328) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 2338 (328) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 2339 (328) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18426486, /* 2340 (328) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 2341 (328) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2342 (328) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 2343 (328) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2344 (329) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2345 (329) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 2346 (329) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2347 (329) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 134418 , /* 2348 (329) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2349 (329) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 17009472, /* 2350 (329) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2351 (329) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 1551758 , /* 2352 (329) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2353 (329) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 18426488, /* 2354 (329) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2355 (329) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1433496 , /* 2356 (329) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2357 (329) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18544746, /* 2358 (329) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2359 (329) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2360 (330) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2361 (330) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2362 (330) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2363 (330) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538472 , /* 2364 (330) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551756 , /* 2365 (330) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2366 (330) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 2367 (330) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 2368 (330) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 2369 (330) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 2370 (330) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 2371 (330) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18426486, /* 2372 (330) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 2373 (330) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2374 (330) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 2375 (330) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2376 (331) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2377 (331) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538474 , /* 2378 (331) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2379 (331) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1433496 , /* 2380 (331) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2381 (331) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 121458 , /* 2382 (331) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2383 (331) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17140694, /* 2384 (331) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2385 (331) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 2386 (331) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2387 (331) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557706, /* 2388 (331) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2389 (331) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17009472, /* 2390 (331) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2391 (331) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 2392 (332) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2393 (332) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2394 (332) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2395 (332) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1538472 , /* 2396 (332) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551756 , /* 2397 (332) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2398 (332) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551596 , /* 2399 (332) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 2400 (332) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 2401 (332) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 2402 (332) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 2403 (332) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18426486, /* 2404 (332) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 2405 (332) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2406 (332) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 2407 (332) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2408 (333) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2409 (333) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2410 (333) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2411 (333) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 2412 (333) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2413 (333) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 121458 , /* 2414 (333) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2415 (333) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 17140694, /* 2416 (333) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2417 (333) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 18544586, /* 2418 (333) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2419 (333) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 2420 (333) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2421 (333) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17009472, /* 2422 (333) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2423 (333) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 2424 (334) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2425 (334) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2426 (334) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2427 (334) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 2428 (334) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2429 (334) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 2430 (334) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2431 (334) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1551758 , /* 2432 (334) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2433 (334) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 2434 (334) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2435 (334) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 2436 (334) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2437 (334) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 2438 (334) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2439 (334) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 17140694, /* 2440 (334) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2441 (334) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 2442 (334) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2443 (334) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 2444 (334) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2445 (334) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 2446 (334) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2447 (334) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439772, /* 2448 (334) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2449 (334) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426488, /* 2450 (334) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2451 (334) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 2452 (334) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2453 (334) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 2454 (334) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2455 (334) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2456 (335) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2457 (335) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2458 (335) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2459 (335) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 9273891 , /* 2460 (335) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 3, 3] */
+ 9287175 , /* 2461 (335) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 3] */
+ 9274055 , /* 2462 (335) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 3, 3] */
+ 9287015 , /* 2463 (335) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 3] */
+ 1551758 , /* 2464 (335) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 2465 (335) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 2466 (335) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 2467 (335) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 10809165, /* 2468 (335) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 9, 9] */
+ 10822449, /* 2469 (335) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 9] */
+ 10809329, /* 2470 (335) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 9, 9] */
+ 10822289, /* 2471 (335) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 9] */
+ 17140694, /* 2472 (335) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 2473 (335) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 2474 (335) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 2475 (335) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 26398101, /* 2476 (335) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 3, 9] */
+ 26411385, /* 2477 (335) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 9] */
+ 26398265, /* 2478 (335) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 3, 9] */
+ 26411225, /* 2479 (335) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 9] */
+ 18439772, /* 2480 (335) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 2481 (335) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 2482 (335) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 2483 (335) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 27697179, /* 2484 (335) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 9, 3] */
+ 27710463, /* 2485 (335) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 3] */
+ 27697343, /* 2486 (335) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 9, 3] */
+ 27710303, /* 2487 (335) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 3] */
+ 16484 , /* 2488 (336) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2489 (336) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 9214844 , /* 2490 (336) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 0] */
+ 9228126 , /* 2491 (336) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 0] */
+ 783957 , /* 2492 (336) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 3, 3] */
+ 770999 , /* 2493 (336) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 3] */
+ 8565465 , /* 2494 (336) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 0, 3] */
+ 8578427 , /* 2495 (336) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 0, 3] */
+ 1551758 , /* 2496 (336) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 2497 (336) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 10750118, /* 2498 (336) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 6] */
+ 10763400, /* 2499 (336) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 6] */
+ 2319231 , /* 2500 (336) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 9, 9] */
+ 2306273 , /* 2501 (336) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 9] */
+ 10100739, /* 2502 (336) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 6, 9] */
+ 10113701, /* 2503 (336) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 6, 9] */
+ 17140694, /* 2504 (336) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 2505 (336) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 26339054, /* 2506 (336) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 6] */
+ 26352336, /* 2507 (336) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 6] */
+ 17908167, /* 2508 (336) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 3, 9] */
+ 17895209, /* 2509 (336) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 3, 9] */
+ 25689675, /* 2510 (336) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 0, 9] */
+ 25702637, /* 2511 (336) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 0, 9] */
+ 18439772, /* 2512 (336) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2513 (336) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 27638132, /* 2514 (336) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 0] */
+ 27651414, /* 2515 (336) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 0] */
+ 19207245, /* 2516 (336) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 9, 3] */
+ 19194287, /* 2517 (336) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 9, 3] */
+ 26988753, /* 2518 (336) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 6, 3] */
+ 27001715, /* 2519 (336) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 6, 3] */
+ 16484 , /* 2520 (337) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2521 (337) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2522 (337) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2523 (337) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 2524 (337) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2525 (337) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 2526 (337) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2527 (337) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 2528 (337) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2529 (337) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 2530 (337) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2531 (337) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 2532 (337) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2533 (337) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 2534 (337) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2535 (337) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2536 (338) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2537 (338) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2538 (338) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2539 (338) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 2540 (338) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2541 (338) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 2542 (338) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2543 (338) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 2544 (338) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2545 (338) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 2546 (338) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2547 (338) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 2548 (338) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2549 (338) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 2550 (338) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2551 (338) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2552 (339) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2553 (339) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 2554 (339) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2555 (339) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 16320 , /* 2556 (339) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2557 (339) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17009472, /* 2558 (339) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2559 (339) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18557870, /* 2560 (339) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2561 (339) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1538474 , /* 2562 (339) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2563 (339) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 18557706, /* 2564 (339) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2565 (339) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 1538634 , /* 2566 (339) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2567 (339) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 2568 (340) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2569 (340) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2570 (340) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2571 (340) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433496 , /* 2572 (340) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2573 (340) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 3360 , /* 2574 (340) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2575 (340) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 2576 (340) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2577 (340) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127410, /* 2578 (340) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2579 (340) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 2580 (340) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2581 (340) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 18544746, /* 2582 (340) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2583 (340) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2584 (341) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2585 (341) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2586 (341) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2587 (341) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 134418 , /* 2588 (341) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2589 (341) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1538634 , /* 2590 (341) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2591 (341) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18557870, /* 2592 (341) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2593 (341) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127410, /* 2594 (341) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2595 (341) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 2596 (341) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2597 (341) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17009472, /* 2598 (341) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2599 (341) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 16484 , /* 2600 (342) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2601 (342) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 2602 (342) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2603 (342) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 1433496 , /* 2604 (342) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2605 (342) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18426648, /* 2606 (342) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2607 (342) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18557870, /* 2608 (342) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2609 (342) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1538474 , /* 2610 (342) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2611 (342) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 17140530, /* 2612 (342) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2613 (342) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 121458 , /* 2614 (342) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2615 (342) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 2616 (343) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2617 (343) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 2618 (343) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2619 (343) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 16320 , /* 2620 (343) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2621 (343) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 2622 (343) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 2623 (343) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18557870, /* 2624 (343) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2625 (343) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127410, /* 2626 (343) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2627 (343) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18557706, /* 2628 (343) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2629 (343) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 2630 (343) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2631 (343) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2632 (344) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2633 (344) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17009312, /* 2634 (344) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 17022594, /* 2635 (344) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022432, /* 2636 (344) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 2637 (344) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 3360 , /* 2638 (344) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2639 (344) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 2640 (344) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2641 (344) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 1538474 , /* 2642 (344) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 2643 (344) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 2644 (344) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2645 (344) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18544746, /* 2646 (344) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2647 (344) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2648 (345) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2649 (345) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 2650 (345) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 2651 (345) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134418 , /* 2652 (345) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 2653 (345) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 2654 (345) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 2655 (345) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 2656 (345) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2657 (345) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18426488, /* 2658 (345) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2659 (345) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 2660 (345) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 2661 (345) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18544746, /* 2662 (345) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 2663 (345) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2664 (346) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2665 (346) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2666 (346) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2667 (346) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 1433496 , /* 2668 (346) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 2669 (346) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 1420536 , /* 2670 (346) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 2671 (346) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18557870, /* 2672 (346) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2673 (346) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 2674 (346) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2675 (346) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 17140530, /* 2676 (346) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 2677 (346) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 2678 (346) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 2679 (346) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 16484 , /* 2680 (347) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2681 (347) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2682 (347) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2683 (347) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 17022432, /* 2684 (347) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 2685 (347) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 17009472, /* 2686 (347) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 2687 (347) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18557870, /* 2688 (347) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2689 (347) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 2690 (347) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2691 (347) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 1551594 , /* 2692 (347) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 2693 (347) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 2694 (347) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 2695 (347) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 16484 , /* 2696 (348) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2697 (348) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 2698 (348) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 2699 (348) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 2700 (348) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 2701 (348) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 121458 , /* 2702 (348) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 2703 (348) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 2704 (348) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2705 (348) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18426488, /* 2706 (348) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2707 (348) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18557706, /* 2708 (348) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 2709 (348) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 2710 (348) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 2711 (348) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2712 (349) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2713 (349) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2714 (349) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2715 (349) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 2716 (350) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 66947 , /* 2717 (350) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 3] */
+ 121298 , /* 2718 (350) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 188933 , /* 2719 (350) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 9] */
+ 16484 , /* 2720 (351) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125996 , /* 2721 (351) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3200 , /* 2722 (351) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 129884 , /* 2723 (351) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 2724 (352) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 185045 , /* 2725 (352) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 9] */
+ 121298 , /* 2726 (352) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 70835 , /* 2727 (352) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 3] */
+ 16484 , /* 2728 (353) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2729 (353) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2730 (353) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2731 (353) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 2732 (353) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549284, /* 2733 (353) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 2734 (353) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553172, /* 2735 (353) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2736 (354) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 2737 (354) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 2738 (354) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 2739 (354) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 18557870, /* 2740 (354) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 2741 (354) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 2742 (354) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 2743 (354) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 16484 , /* 2744 (355) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 2745 (355) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2746 (355) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 2747 (355) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2748 (356) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 2749 (356) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2750 (356) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 2751 (356) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 2752 (356) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 2753 (356) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 2754 (356) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 2755 (356) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 2756 (357) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2757 (357) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 2758 (357) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 2759 (357) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2760 (357) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2761 (357) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 2762 (357) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 2763 (357) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2764 (358) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2765 (358) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125996 , /* 2766 (358) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 129882 , /* 2767 (358) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3200 , /* 2768 (358) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2769 (358) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 129884 , /* 2770 (358) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 125994 , /* 2771 (358) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 16484 , /* 2772 (359) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18431186, /* 2773 (359) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 3200 , /* 2774 (359) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18435074, /* 2775 (359) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 2776 (359) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 11784 , /* 2777 (359) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18439770, /* 2778 (359) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 7896 , /* 2779 (359) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2780 (360) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2781 (360) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17014010, /* 2782 (360) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 2783 (360) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 18426488, /* 2784 (360) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2785 (360) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1428962 , /* 2786 (360) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 2787 (360) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 16484 , /* 2788 (361) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 2789 (361) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 2790 (361) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 2791 (361) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2792 (361) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 11784 , /* 2793 (361) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557868, /* 2794 (361) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 7896 , /* 2795 (361) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2796 (362) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2797 (362) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1543172 , /* 2798 (362) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1547058 , /* 2799 (362) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 18426488, /* 2800 (362) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 2801 (362) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17135996, /* 2802 (362) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17132106, /* 2803 (362) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 16484 , /* 2804 (363) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2805 (363) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 2806 (363) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 2807 (363) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 2808 (363) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 2809 (363) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 2810 (363) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 2811 (363) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 2812 (363) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2813 (363) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18549284, /* 2814 (363) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 2815 (363) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 2816 (363) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 2817 (363) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553172, /* 2818 (363) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 2819 (363) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 2820 (364) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 2821 (364) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 2822 (364) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 2823 (364) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 1479423 , /* 2824 (364) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 3] */
+ 11784 , /* 2825 (364) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 17199741, /* 2826 (364) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 9] */
+ 18549282, /* 2827 (364) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557870, /* 2828 (364) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 2829 (364) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 2830 (364) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 2831 (364) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 17186457, /* 2832 (364) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 9] */
+ 18553170, /* 2833 (364) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 1492707 , /* 2834 (364) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 3] */
+ 7896 , /* 2835 (364) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2836 (365) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 2837 (365) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 26284703, /* 2838 (365) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 3] */
+ 26288589, /* 2839 (365) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 3] */
+ 17127410, /* 2840 (365) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 2841 (365) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 27823865, /* 2842 (365) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 9] */
+ 27819975, /* 2843 (365) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 9] */
+ 18557870, /* 2844 (365) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 2845 (365) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 10813865, /* 2846 (365) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 10817751, /* 2847 (365) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 1420376 , /* 2848 (365) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 2849 (365) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 9282479 , /* 2850 (365) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 9278589 , /* 2851 (365) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 16484 , /* 2852 (366) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2853 (366) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2854 (366) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2855 (366) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2856 (366) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 2857 (366) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2858 (366) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 2859 (366) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2860 (367) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18431186, /* 2861 (367) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 3200 , /* 2862 (367) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18435074, /* 2863 (367) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 2864 (367) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 7410 , /* 2865 (367) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18426648, /* 2866 (367) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 12270 , /* 2867 (367) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2868 (368) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 66947 , /* 2869 (368) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 3] */
+ 121298 , /* 2870 (368) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 188933 , /* 2871 (368) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 9] */
+ 134418 , /* 2872 (368) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 66459 , /* 2873 (368) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 3] */
+ 3360 , /* 2874 (368) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 189417 , /* 2875 (368) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 9] */
+ 16484 , /* 2876 (369) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18490235, /* 2877 (369) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 3] */
+ 121298 , /* 2878 (369) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18612221, /* 2879 (369) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 9] */
+ 18616755, /* 2880 (369) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 9] */
+ 125508 , /* 2881 (369) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18485697, /* 2882 (369) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 3] */
+ 12270 , /* 2883 (369) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2884 (370) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125996 , /* 2885 (370) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3200 , /* 2886 (370) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 129884 , /* 2887 (370) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16320 , /* 2888 (370) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125508 , /* 2889 (370) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3360 , /* 2890 (370) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 130368 , /* 2891 (370) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 16484 , /* 2892 (371) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 2893 (371) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 2894 (371) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 2895 (371) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 2896 (371) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 7410 , /* 2897 (371) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544746, /* 2898 (371) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 12270 , /* 2899 (371) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2900 (372) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 185045 , /* 2901 (372) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 9] */
+ 121298 , /* 2902 (372) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 70835 , /* 2903 (372) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 3] */
+ 134418 , /* 2904 (372) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 184557 , /* 2905 (372) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 9] */
+ 3360 , /* 2906 (372) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 71319 , /* 2907 (372) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 3] */
+ 16484 , /* 2908 (373) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18608333, /* 2909 (373) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 9] */
+ 121298 , /* 2910 (373) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18494123, /* 2911 (373) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 3] */
+ 18498657, /* 2912 (373) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 3] */
+ 125508 , /* 2913 (373) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18603795, /* 2914 (373) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 9] */
+ 12270 , /* 2915 (373) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2916 (374) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2917 (374) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2918 (374) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2919 (374) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 2920 (374) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 2921 (374) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 2922 (374) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 2923 (374) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 2924 (374) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549284, /* 2925 (374) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 2926 (374) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553172, /* 2927 (374) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 2928 (374) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18548796, /* 2929 (374) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544746, /* 2930 (374) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553656, /* 2931 (374) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 2932 (375) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 2933 (375) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 2934 (375) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 2935 (375) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 1492545 , /* 2936 (375) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 3] */
+ 7410 , /* 2937 (375) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 17186619, /* 2938 (375) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 9] */
+ 18553656, /* 2939 (375) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557870, /* 2940 (375) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 2941 (375) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 2942 (375) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 2943 (375) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 17199579, /* 2944 (375) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 9] */
+ 18548796, /* 2945 (375) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 1479585 , /* 2946 (375) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 3] */
+ 12270 , /* 2947 (375) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 2948 (376) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2949 (376) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2950 (376) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2951 (376) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 2952 (376) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 12272 , /* 2953 (376) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 2954 (376) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7412 , /* 2955 (376) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 2956 (377) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2957 (377) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2958 (377) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2959 (377) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18426650, /* 2960 (377) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435560, /* 2961 (377) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 2962 (377) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430700, /* 2963 (377) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 2964 (378) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125996 , /* 2965 (378) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3200 , /* 2966 (378) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 129884 , /* 2967 (378) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 121460 , /* 2968 (378) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 12272 , /* 2969 (378) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 134420 , /* 2970 (378) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 7412 , /* 2971 (378) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 2972 (379) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 2973 (379) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 2974 (379) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 2975 (379) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544748, /* 2976 (379) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 12272 , /* 2977 (379) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557708, /* 2978 (379) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 7412 , /* 2979 (379) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 2980 (380) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2981 (380) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2982 (380) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2983 (380) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 2984 (380) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 130370 , /* 2985 (380) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 2986 (380) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 125510 , /* 2987 (380) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 2988 (381) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 2989 (381) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 2990 (381) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 2991 (381) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18544748, /* 2992 (381) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553658, /* 2993 (381) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 2994 (381) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548798, /* 2995 (381) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 2996 (382) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125996 , /* 2997 (382) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3200 , /* 2998 (382) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 129884 , /* 2999 (382) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3362 , /* 3000 (382) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 130370 , /* 3001 (382) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16322 , /* 3002 (382) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 125510 , /* 3003 (382) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3004 (383) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125996 , /* 3005 (383) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3200 , /* 3006 (383) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 129884 , /* 3007 (383) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 18426650, /* 3008 (383) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18553658, /* 3009 (383) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18439610, /* 3010 (383) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18548798, /* 3011 (383) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3012 (384) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 3013 (384) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 3014 (384) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 3015 (384) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3362 , /* 3016 (384) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 12272 , /* 3017 (384) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16322 , /* 3018 (384) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7412 , /* 3019 (384) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 3020 (384) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549284, /* 3021 (384) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 3022 (384) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553172, /* 3023 (384) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544748, /* 3024 (384) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553658, /* 3025 (384) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 3026 (384) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548798, /* 3027 (384) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3028 (385) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 3029 (385) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 3030 (385) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 3031 (385) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 121460 , /* 3032 (385) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 130370 , /* 3033 (385) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 134420 , /* 3034 (385) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 125510 , /* 3035 (385) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 3036 (385) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549284, /* 3037 (385) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 3038 (385) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553172, /* 3039 (385) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18426650, /* 3040 (385) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435560, /* 3041 (385) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 3042 (385) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430700, /* 3043 (385) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3044 (386) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 3045 (386) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 3046 (386) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 3047 (386) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3362 , /* 3048 (386) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488497 , /* 3049 (386) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18557708, /* 3050 (386) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17190671, /* 3051 (386) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 18557870, /* 3052 (386) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 3053 (386) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 3054 (386) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 3055 (386) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544748, /* 3056 (386) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195531, /* 3057 (386) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 16322 , /* 3058 (386) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1483637 , /* 3059 (386) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 16484 , /* 3060 (387) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 3061 (387) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 3062 (387) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 3063 (387) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 121460 , /* 3064 (387) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1606595 , /* 3065 (387) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 9] */
+ 18439610, /* 3066 (387) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 17072573, /* 3067 (387) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 3] */
+ 18557870, /* 3068 (387) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 3069 (387) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 3070 (387) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 3071 (387) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18426650, /* 3072 (387) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17077433, /* 3073 (387) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 3] */
+ 134420 , /* 3074 (387) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 1601735 , /* 3075 (387) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 9] */
+ 16484 , /* 3076 (388) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3077 (388) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3078 (388) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3079 (388) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 3080 (388) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3081 (388) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 3082 (388) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3083 (388) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3084 (389) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3085 (389) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3086 (389) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3087 (389) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 3088 (389) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3089 (389) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 3090 (389) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 3091 (389) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3092 (390) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3093 (390) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3094 (390) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3095 (390) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18439608, /* 3096 (390) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 3097 (390) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 3098 (390) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 3099 (390) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3100 (391) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3101 (391) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3102 (391) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3103 (391) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557706, /* 3104 (391) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3105 (391) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 3106 (391) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3107 (391) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3108 (392) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3109 (392) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3110 (392) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3111 (392) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3112 (392) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 3113 (392) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 3114 (392) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 3115 (392) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 3116 (393) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3117 (393) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3118 (393) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3119 (393) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 121460 , /* 3120 (393) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125508 , /* 3121 (393) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 3122 (393) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 130368 , /* 3123 (393) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 16484 , /* 3124 (394) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3125 (394) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3126 (394) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3127 (394) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18426650, /* 3128 (394) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430698, /* 3129 (394) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 3130 (394) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435558, /* 3131 (394) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 3132 (395) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3133 (395) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3134 (395) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3135 (395) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544748, /* 3136 (395) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548796, /* 3137 (395) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 3138 (395) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553656, /* 3139 (395) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 3140 (396) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3141 (396) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3142 (396) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3143 (396) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3144 (396) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 3145 (396) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 3146 (396) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 3147 (396) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557870, /* 3148 (396) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3149 (396) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 3150 (396) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3151 (396) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 3152 (396) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548796, /* 3153 (396) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 3154 (396) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553656, /* 3155 (396) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16484 , /* 3156 (397) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3157 (397) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3158 (397) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3159 (397) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 121460 , /* 3160 (397) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125508 , /* 3161 (397) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 3162 (397) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 130368 , /* 3163 (397) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18557870, /* 3164 (397) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3165 (397) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 3166 (397) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3167 (397) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18426650, /* 3168 (397) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430698, /* 3169 (397) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 3170 (397) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435558, /* 3171 (397) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 16484 , /* 3172 (398) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3173 (398) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3174 (398) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3175 (398) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 3176 (398) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3177 (398) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 3178 (398) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3179 (398) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 3180 (398) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3181 (398) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 3182 (398) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3183 (398) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 3184 (398) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3185 (398) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 3186 (398) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3187 (398) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3188 (399) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3189 (399) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3190 (399) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3191 (399) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 1492545 , /* 3192 (399) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 3] */
+ 1488497 , /* 3193 (399) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 1479585 , /* 3194 (399) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 3] */
+ 1483637 , /* 3195 (399) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18557870, /* 3196 (399) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3197 (399) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 3198 (399) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3199 (399) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 17199579, /* 3200 (399) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 9] */
+ 17195531, /* 3201 (399) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 17186619, /* 3202 (399) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 9] */
+ 17190671, /* 3203 (399) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 16484 , /* 3204 (400) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3205 (400) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 3206 (400) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3207 (400) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3208 (400) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3209 (400) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 3210 (400) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3211 (400) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 3212 (400) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3213 (400) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 3214 (400) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3215 (400) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 3216 (400) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 3217 (400) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 3218 (400) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3219 (400) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3220 (401) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3221 (401) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 3222 (401) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3223 (401) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3224 (401) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3225 (401) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 3226 (401) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3227 (401) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 3228 (401) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 3229 (401) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125508 , /* 3230 (401) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3231 (401) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 3232 (401) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 3233 (401) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 130368 , /* 3234 (401) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 3235 (401) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3236 (402) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 3237 (402) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 3238 (402) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 3239 (402) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 3240 (402) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 3241 (402) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 3242 (402) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 3243 (402) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18426486, /* 3244 (402) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18435072, /* 3245 (402) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18439770, /* 3246 (402) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18431184, /* 3247 (402) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 3248 (402) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435560, /* 3249 (402) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18439610, /* 3250 (402) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430700, /* 3251 (402) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3252 (403) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3253 (403) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17014010, /* 3254 (403) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 3255 (403) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 18426488, /* 3256 (403) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3257 (403) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1428962 , /* 3258 (403) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 3259 (403) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1433496 , /* 3260 (403) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 3261 (403) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18430698, /* 3262 (403) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 3263 (403) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 17009472, /* 3264 (403) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 3265 (403) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 12270 , /* 3266 (403) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3267 (403) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3268 (404) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 3269 (404) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 3270 (404) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 3271 (404) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 3272 (404) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 3273 (404) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 3274 (404) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 3275 (404) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544584, /* 3276 (404) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553170, /* 3277 (404) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557868, /* 3278 (404) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18549282, /* 3279 (404) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 3280 (404) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553658, /* 3281 (404) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 3282 (404) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548798, /* 3283 (404) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3284 (405) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3285 (405) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17014010, /* 3286 (405) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 3287 (405) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 18426488, /* 3288 (405) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3289 (405) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1428962 , /* 3290 (405) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 3291 (405) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 3292 (405) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 3293 (405) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18548796, /* 3294 (405) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3295 (405) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 3296 (405) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 3297 (405) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 130368 , /* 3298 (405) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 3299 (405) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3300 (406) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3301 (406) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 3302 (406) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3303 (406) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3304 (406) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3305 (406) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 3306 (406) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3307 (406) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18439608, /* 3308 (406) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 3309 (406) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430698, /* 3310 (406) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 3311 (406) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 3312 (406) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 3313 (406) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435558, /* 3314 (406) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 3315 (406) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3316 (407) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3317 (407) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 3318 (407) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3319 (407) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3320 (407) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3321 (407) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 3322 (407) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3323 (407) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557706, /* 3324 (407) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 3325 (407) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548796, /* 3326 (407) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3327 (407) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 3328 (407) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 3329 (407) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553656, /* 3330 (407) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3331 (407) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3332 (408) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18431186, /* 3333 (408) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 3200 , /* 3334 (408) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18435074, /* 3335 (408) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 3336 (408) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 7410 , /* 3337 (408) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18426648, /* 3338 (408) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 12270 , /* 3339 (408) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18426486, /* 3340 (408) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 11784 , /* 3341 (408) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18439770, /* 3342 (408) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 7896 , /* 3343 (408) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3344 (408) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18435560, /* 3345 (408) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16322 , /* 3346 (408) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18430700, /* 3347 (408) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3348 (409) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3349 (409) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17014010, /* 3350 (409) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 3351 (409) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 18426488, /* 3352 (409) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3353 (409) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1428962 , /* 3354 (409) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 3355 (409) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 17022432, /* 3356 (409) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 3357 (409) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 7410 , /* 3358 (409) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3359 (409) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 1420536 , /* 3360 (409) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 3361 (409) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18435558, /* 3362 (409) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 3363 (409) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3364 (410) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18431186, /* 3365 (410) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 3200 , /* 3366 (410) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18435074, /* 3367 (410) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18557706, /* 3368 (410) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 125508 , /* 3369 (410) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18544746, /* 3370 (410) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 130368 , /* 3371 (410) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18426486, /* 3372 (410) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 11784 , /* 3373 (410) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18439770, /* 3374 (410) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 7896 , /* 3375 (410) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 121460 , /* 3376 (410) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18553658, /* 3377 (410) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 134420 , /* 3378 (410) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18548798, /* 3379 (410) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3380 (411) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3381 (411) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17014010, /* 3382 (411) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 3383 (411) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 18426488, /* 3384 (411) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3385 (411) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1428962 , /* 3386 (411) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 3387 (411) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 17140530, /* 3388 (411) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 3389 (411) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 125508 , /* 3390 (411) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3391 (411) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 1538634 , /* 3392 (411) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 3393 (411) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18553656, /* 3394 (411) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3395 (411) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3396 (412) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3397 (412) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125996 , /* 3398 (412) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 129882 , /* 3399 (412) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3200 , /* 3400 (412) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3401 (412) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 129884 , /* 3402 (412) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 125994 , /* 3403 (412) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 3404 (412) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3405 (412) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125508 , /* 3406 (412) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3407 (412) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 3408 (412) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 3409 (412) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 130368 , /* 3410 (412) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 3411 (412) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3412 (413) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3413 (413) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125996 , /* 3414 (413) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 129882 , /* 3415 (413) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3200 , /* 3416 (413) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3417 (413) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 129884 , /* 3418 (413) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 125994 , /* 3419 (413) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 134418 , /* 3420 (413) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 3421 (413) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 7410 , /* 3422 (413) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3423 (413) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 121458 , /* 3424 (413) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 3425 (413) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 12270 , /* 3426 (413) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3427 (413) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3428 (414) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 3429 (414) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 3430 (414) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 3431 (414) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 134418 , /* 3432 (414) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 18430698, /* 3433 (414) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 121458 , /* 3434 (414) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 18435558, /* 3435 (414) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18544584, /* 3436 (414) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 11784 , /* 3437 (414) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557868, /* 3438 (414) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 7896 , /* 3439 (414) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18426650, /* 3440 (414) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 130370 , /* 3441 (414) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 18439610, /* 3442 (414) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 125510 , /* 3443 (414) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3444 (415) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3445 (415) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17132108, /* 3446 (415) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135994, /* 3447 (415) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 3448 (415) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3449 (415) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1547060 , /* 3450 (415) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1543170 , /* 3451 (415) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1433496 , /* 3452 (415) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 0] */
+ 1420538 , /* 3453 (415) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 0] */
+ 18548796, /* 3454 (415) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3455 (415) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 17009472, /* 3456 (415) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 3457 (415) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 130368 , /* 3458 (415) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 3459 (415) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3460 (416) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 3461 (416) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 3462 (416) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 3463 (416) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16320 , /* 3464 (416) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18548796, /* 3465 (416) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3360 , /* 3466 (416) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18553656, /* 3467 (416) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544584, /* 3468 (416) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 11784 , /* 3469 (416) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557868, /* 3470 (416) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 7896 , /* 3471 (416) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544748, /* 3472 (416) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 12272 , /* 3473 (416) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557708, /* 3474 (416) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 7412 , /* 3475 (416) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3476 (417) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3477 (417) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17132108, /* 3478 (417) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135994, /* 3479 (417) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 3480 (417) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3481 (417) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1547060 , /* 3482 (417) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1543170 , /* 3483 (417) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 3484 (417) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 3485 (417) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18430698, /* 3486 (417) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 3487 (417) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 17127570, /* 3488 (417) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 3489 (417) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 12270 , /* 3490 (417) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3491 (417) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3492 (418) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3493 (418) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125996 , /* 3494 (418) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 129882 , /* 3495 (418) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3200 , /* 3496 (418) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3497 (418) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 129884 , /* 3498 (418) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 125994 , /* 3499 (418) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18439608, /* 3500 (418) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 3501 (418) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18548796, /* 3502 (418) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3503 (418) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 3504 (418) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 3505 (418) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18553656, /* 3506 (418) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3507 (418) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3508 (419) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3509 (419) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18549284, /* 3510 (419) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3511 (419) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3200 , /* 3512 (419) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3513 (419) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18553172, /* 3514 (419) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3515 (419) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 3516 (419) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 3517 (419) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 7410 , /* 3518 (419) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3519 (419) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18544746, /* 3520 (419) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 3521 (419) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 12270 , /* 3522 (419) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3523 (419) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3524 (420) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 3525 (420) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 3526 (420) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 3527 (420) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 3528 (420) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 7410 , /* 3529 (420) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544746, /* 3530 (420) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 12270 , /* 3531 (420) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544584, /* 3532 (420) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 11784 , /* 3533 (420) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557868, /* 3534 (420) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 7896 , /* 3535 (420) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3536 (420) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553658, /* 3537 (420) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16322 , /* 3538 (420) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18548798, /* 3539 (420) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3540 (421) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3541 (421) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17132108, /* 3542 (421) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135994, /* 3543 (421) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 3544 (421) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3545 (421) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1547060 , /* 3546 (421) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1543170 , /* 3547 (421) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 17022432, /* 3548 (421) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 0] */
+ 17009474, /* 3549 (421) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 0] */
+ 125508 , /* 3550 (421) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3551 (421) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 1420536 , /* 3552 (421) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 3553 (421) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 18553656, /* 3554 (421) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3555 (421) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3556 (422) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 3557 (422) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 3558 (422) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 3559 (422) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18439608, /* 3560 (422) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 125508 , /* 3561 (422) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18426648, /* 3562 (422) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 130368 , /* 3563 (422) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 18544584, /* 3564 (422) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 11784 , /* 3565 (422) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557868, /* 3566 (422) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 7896 , /* 3567 (422) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 121460 , /* 3568 (422) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 18435560, /* 3569 (422) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 134420 , /* 3570 (422) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 18430700, /* 3571 (422) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3572 (423) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3573 (423) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17132108, /* 3574 (423) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135994, /* 3575 (423) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 18426488, /* 3576 (423) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 3577 (423) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1547060 , /* 3578 (423) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1543170 , /* 3579 (423) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 17140530, /* 3580 (423) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 3581 (423) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 7410 , /* 3582 (423) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3583 (423) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 1538634 , /* 3584 (423) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 3585 (423) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 18435558, /* 3586 (423) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 3587 (423) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3588 (424) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3589 (424) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 3590 (424) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3591 (424) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3592 (424) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3593 (424) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 3594 (424) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3595 (424) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 3596 (424) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3597 (424) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 3598 (424) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3599 (424) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 3600 (424) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 3601 (424) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 3602 (424) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3603 (424) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557870, /* 3604 (424) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 3605 (424) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18549284, /* 3606 (424) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3607 (424) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 3608 (424) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 3609 (424) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553172, /* 3610 (424) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3611 (424) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 3612 (424) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 3613 (424) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548796, /* 3614 (424) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 3615 (424) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 3616 (424) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 3617 (424) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553656, /* 3618 (424) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 3619 (424) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16484 , /* 3620 (425) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3621 (425) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 3622 (425) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 3623 (425) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 3624 (425) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 3625 (425) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 3626 (425) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 3627 (425) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 134418 , /* 3628 (425) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 3629 (425) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125508 , /* 3630 (425) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3631 (425) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 121458 , /* 3632 (425) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134420 , /* 3633 (425) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 130368 , /* 3634 (425) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 3635 (425) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 18557870, /* 3636 (425) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 3637 (425) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18549284, /* 3638 (425) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 3639 (425) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 3640 (425) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 3641 (425) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553172, /* 3642 (425) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 3643 (425) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 3644 (425) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 3645 (425) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430698, /* 3646 (425) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 3647 (425) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 3648 (425) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 3649 (425) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435558, /* 3650 (425) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 3651 (425) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 16484 , /* 3652 (426) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 3653 (426) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 3654 (426) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 3655 (426) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 1492545 , /* 3656 (426) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 3] */
+ 7410 , /* 3657 (426) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 17186619, /* 3658 (426) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 9] */
+ 18553656, /* 3659 (426) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 1479423 , /* 3660 (426) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 3] */
+ 11784 , /* 3661 (426) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 17199741, /* 3662 (426) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 9] */
+ 18549282, /* 3663 (426) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3362 , /* 3664 (426) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488497 , /* 3665 (426) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18557708, /* 3666 (426) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17190671, /* 3667 (426) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 18557870, /* 3668 (426) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 3669 (426) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 3670 (426) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 3671 (426) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 17199579, /* 3672 (426) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 9] */
+ 18548796, /* 3673 (426) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 1479585 , /* 3674 (426) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 3] */
+ 12270 , /* 3675 (426) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 17186457, /* 3676 (426) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 9] */
+ 18553170, /* 3677 (426) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 1492707 , /* 3678 (426) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 3] */
+ 7896 , /* 3679 (426) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544748, /* 3680 (426) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195531, /* 3681 (426) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 16322 , /* 3682 (426) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1483637 , /* 3683 (426) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 16484 , /* 3684 (427) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3685 (427) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10695767, /* 3686 (427) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 3] */
+ 10699653, /* 3687 (427) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 3] */
+ 17127410, /* 3688 (427) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 3689 (427) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 9400577 , /* 3690 (427) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 9] */
+ 9396687 , /* 3691 (427) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 9] */
+ 16320 , /* 3692 (427) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 3693 (427) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 9396201 , /* 3694 (427) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 9] */
+ 9401063 , /* 3695 (427) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 9] */
+ 17127570, /* 3696 (427) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 3697 (427) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 10700139, /* 3698 (427) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 3] */
+ 10695281, /* 3699 (427) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 3] */
+ 18557870, /* 3700 (427) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 3701 (427) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 26402801, /* 3702 (427) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 26406687, /* 3703 (427) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 1420376 , /* 3704 (427) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 3705 (427) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 27705767, /* 3706 (427) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 27701877, /* 3707 (427) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 18557706, /* 3708 (427) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 3709 (427) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 27701391, /* 3710 (427) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 27706253, /* 3711 (427) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 1420536 , /* 3712 (427) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 1433498 , /* 3713 (427) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 26407173, /* 3714 (427) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 26402315, /* 3715 (427) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 16484 , /* 3716 (428) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1484123 , /* 3717 (428) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 18544586, /* 3718 (428) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 17195045, /* 3719 (428) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 17081481, /* 3720 (428) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 3] */
+ 18430698, /* 3721 (428) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 1597683 , /* 3722 (428) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 9] */
+ 130368 , /* 3723 (428) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 1479423 , /* 3724 (428) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 3] */
+ 11784 , /* 3725 (428) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 17199741, /* 3726 (428) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 9] */
+ 18549282, /* 3727 (428) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18426650, /* 3728 (428) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17077433, /* 3729 (428) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 3] */
+ 134420 , /* 3730 (428) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 1601735 , /* 3731 (428) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 9] */
+ 18557870, /* 3732 (428) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17191157, /* 3733 (428) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 9] */
+ 3200 , /* 3734 (428) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 1488011 , /* 3735 (428) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 3] */
+ 1610643 , /* 3736 (428) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 9] */
+ 125508 , /* 3737 (428) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 17068521, /* 3738 (428) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 3] */
+ 18435558, /* 3739 (428) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 17186457, /* 3740 (428) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 9] */
+ 18553170, /* 3741 (428) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 1492707 , /* 3742 (428) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 3] */
+ 7896 , /* 3743 (428) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 121460 , /* 3744 (428) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1606595 , /* 3745 (428) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 9] */
+ 18439610, /* 3746 (428) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 17072573, /* 3747 (428) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 3] */
+ 16484 , /* 3748 (429) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3749 (429) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10695767, /* 3750 (429) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 3] */
+ 10699653, /* 3751 (429) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 3] */
+ 17127410, /* 3752 (429) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 3753 (429) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 9400577 , /* 3754 (429) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 9] */
+ 9396687 , /* 3755 (429) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 9] */
+ 134418 , /* 3756 (429) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 3757 (429) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 9278103 , /* 3758 (429) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 9282965 , /* 3759 (429) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 17009472, /* 3760 (429) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 3761 (429) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 10818237, /* 3762 (429) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 10813379, /* 3763 (429) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 18557870, /* 3764 (429) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 3765 (429) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 26402801, /* 3766 (429) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 26406687, /* 3767 (429) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 1420376 , /* 3768 (429) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 3769 (429) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 27705767, /* 3770 (429) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 27701877, /* 3771 (429) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 18439608, /* 3772 (429) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 3773 (429) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 27819489, /* 3774 (429) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 9] */
+ 27824351, /* 3775 (429) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 9] */
+ 1538634 , /* 3776 (429) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 3777 (429) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 26289075, /* 3778 (429) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 3] */
+ 26284217, /* 3779 (429) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 3] */
+ 16484 , /* 3780 (430) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3781 (430) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3782 (430) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3783 (431) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 86549 , /* 3784 (431) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 162689 , /* 3785 (431) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 16484 , /* 3786 (432) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 165281 , /* 3787 (432) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 83957 , /* 3788 (432) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 16484 , /* 3789 (433) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3790 (433) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3791 (433) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 23714816, /* 3792 (433) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23706149, /* 3793 (433) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23703557, /* 3794 (433) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 13400924, /* 3795 (433) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13392257, /* 3796 (433) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13389665, /* 3797 (433) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 16484 , /* 3798 (434) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 3799 (434) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 3800 (434) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16484 , /* 3801 (435) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3802 (435) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 3803 (435) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 3804 (435) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 3805 (435) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 3806 (435) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 3807 (436) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3808 (436) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 3809 (436) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 3810 (436) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 3811 (436) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 3812 (436) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 23714816, /* 3813 (436) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23701530, /* 3814 (436) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 8, 4, 4] */
+ 23706149, /* 3815 (436) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23710197, /* 3816 (436) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 8, 4, 4] */
+ 23703557, /* 3817 (436) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23712789, /* 3818 (436) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 8, 4, 4] */
+ 13400924, /* 3819 (436) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13387638, /* 3820 (436) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 4, 8, 8] */
+ 13392257, /* 3821 (436) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13396305, /* 3822 (436) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 4, 8, 8] */
+ 13389665, /* 3823 (436) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13398897, /* 3824 (436) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 4, 8, 8] */
+ 16484 , /* 3825 (437) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3826 (437) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 3827 (437) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 3828 (437) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 12064 , /* 3829 (437) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 3830 (437) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16484 , /* 3831 (438) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3832 (438) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3833 (438) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 3834 (438) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 5547 , /* 3835 (438) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16563 , /* 3836 (438) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 3837 (439) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3838 (439) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3839 (439) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 3840 (439) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 14133 , /* 3841 (439) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3117 , /* 3842 (439) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 3843 (440) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 86549 , /* 3844 (440) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 162689 , /* 3845 (440) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 164874 , /* 3846 (440) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 8] */
+ 84279 , /* 3847 (440) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 4] */
+ 16563 , /* 3848 (440) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 3849 (441) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 86549 , /* 3850 (441) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 162689 , /* 3851 (441) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 12270 , /* 3852 (441) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 171597 , /* 3853 (441) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 8] */
+ 81849 , /* 3854 (441) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 4] */
+ 16484 , /* 3855 (442) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 165281 , /* 3856 (442) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 83957 , /* 3857 (442) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 86142 , /* 3858 (442) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 4] */
+ 163011 , /* 3859 (442) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 8] */
+ 16563 , /* 3860 (442) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 3861 (443) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 165281 , /* 3862 (443) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 83957 , /* 3863 (443) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 12270 , /* 3864 (443) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 92865 , /* 3865 (443) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 4] */
+ 160581 , /* 3866 (443) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 8] */
+ 16484 , /* 3867 (444) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3868 (444) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3869 (444) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 3870 (444) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 14133 , /* 3871 (444) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3117 , /* 3872 (444) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 23714816, /* 3873 (444) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23706149, /* 3874 (444) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23703557, /* 3875 (444) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23710602, /* 3876 (444) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 8, 4, 4] */
+ 23712465, /* 3877 (444) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 8, 4, 4] */
+ 23701449, /* 3878 (444) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 8, 4, 4] */
+ 13400924, /* 3879 (444) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13392257, /* 3880 (444) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13389665, /* 3881 (444) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13396710, /* 3882 (444) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 4, 8, 8] */
+ 13398573, /* 3883 (444) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 4, 8, 8] */
+ 13387557, /* 3884 (444) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 4, 8, 8] */
+ 16484 , /* 3885 (445) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 3886 (445) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 3887 (445) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7410 , /* 3888 (445) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3250 , /* 3889 (445) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 9022 , /* 3890 (445) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 16484 , /* 3891 (446) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3892 (446) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3893 (446) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7412 , /* 3894 (446) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 5549 , /* 3895 (446) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16565 , /* 3896 (446) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3897 (447) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3898 (447) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3899 (447) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 12272 , /* 3900 (447) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14135 , /* 3901 (447) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3119 , /* 3902 (447) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3903 (448) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3904 (448) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3905 (448) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 125510 , /* 3906 (448) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 123647 , /* 3907 (448) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134663 , /* 3908 (448) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3909 (449) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3910 (449) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3911 (449) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 130370 , /* 3912 (449) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 132233 , /* 3913 (449) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 121217 , /* 3914 (449) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3915 (450) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3916 (450) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3917 (450) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7412 , /* 3918 (450) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 5549 , /* 3919 (450) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16565 , /* 3920 (450) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 23714816, /* 3921 (450) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23706149, /* 3922 (450) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23703557, /* 3923 (450) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23705744, /* 3924 (450) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23703881, /* 3925 (450) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23714897, /* 3926 (450) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 13400924, /* 3927 (450) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13392257, /* 3928 (450) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13389665, /* 3929 (450) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13391852, /* 3930 (450) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13389989, /* 3931 (450) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13401005, /* 3932 (450) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 16484 , /* 3933 (451) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 3934 (451) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 3935 (451) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 12272 , /* 3936 (451) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16432 , /* 3937 (451) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 10660 , /* 3938 (451) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 16484 , /* 3939 (452) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 3940 (452) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 3941 (452) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 125510 , /* 3942 (452) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 123647 , /* 3943 (452) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 134663 , /* 3944 (452) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 23714816, /* 3945 (452) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23706149, /* 3946 (452) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23703557, /* 3947 (452) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23823842, /* 3948 (452) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 8, 4,10] */
+ 23821979, /* 3949 (452) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 8, 4,10] */
+ 23832995, /* 3950 (452) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 8, 4,10] */
+ 13400924, /* 3951 (452) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13392257, /* 3952 (452) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13389665, /* 3953 (452) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13273754, /* 3954 (452) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 2] */
+ 13271891, /* 3955 (452) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 4, 8, 2] */
+ 13282907, /* 3956 (452) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 4, 8, 2] */
+ 16484 , /* 3957 (453) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 3958 (453) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 3959 (453) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 18553658, /* 3960 (453) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557818, /* 3961 (453) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18552046, /* 3962 (453) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 16484 , /* 3963 (454) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3964 (454) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 3965 (454) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 3966 (454) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 3967 (454) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 3968 (454) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 3969 (454) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 3970 (454) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 5547 , /* 3971 (454) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 14135 , /* 3972 (454) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16563 , /* 3973 (454) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3119 , /* 3974 (454) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3975 (455) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3976 (455) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 3977 (455) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 3978 (455) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 3979 (455) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 3980 (455) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 125508 , /* 3981 (455) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 3982 (455) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 123645 , /* 3983 (455) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 132233 , /* 3984 (455) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134661 , /* 3985 (455) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121217 , /* 3986 (455) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 3987 (456) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 3988 (456) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 3989 (456) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 3990 (456) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 3991 (456) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 3992 (456) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 3993 (456) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 3994 (456) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14133 , /* 3995 (456) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 5549 , /* 3996 (456) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3117 , /* 3997 (456) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16565 , /* 3998 (456) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 3999 (457) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4000 (457) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4001 (457) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4002 (457) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4003 (457) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4004 (457) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 130368 , /* 4005 (457) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 4006 (457) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 132231 , /* 4007 (457) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 123647 , /* 4008 (457) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121215 , /* 4009 (457) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134663 , /* 4010 (457) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4011 (458) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4012 (458) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4013 (458) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4014 (458) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4015 (458) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4016 (458) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 4017 (458) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 4018 (458) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14133 , /* 4019 (458) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 5549 , /* 4020 (458) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3117 , /* 4021 (458) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16565 , /* 4022 (458) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 23714816, /* 4023 (458) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23701530, /* 4024 (458) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 8, 4, 4] */
+ 23706149, /* 4025 (458) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23710197, /* 4026 (458) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 8, 4, 4] */
+ 23703557, /* 4027 (458) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23712789, /* 4028 (458) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 8, 4, 4] */
+ 23710602, /* 4029 (458) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 8, 4, 4] */
+ 23705744, /* 4030 (458) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23712465, /* 4031 (458) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 8, 4, 4] */
+ 23703881, /* 4032 (458) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23701449, /* 4033 (458) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 8, 4, 4] */
+ 23714897, /* 4034 (458) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 13400924, /* 4035 (458) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13387638, /* 4036 (458) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 4, 8, 8] */
+ 13392257, /* 4037 (458) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13396305, /* 4038 (458) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 4, 8, 8] */
+ 13389665, /* 4039 (458) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13398897, /* 4040 (458) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 4, 8, 8] */
+ 13396710, /* 4041 (458) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 4, 8, 8] */
+ 13391852, /* 4042 (458) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13398573, /* 4043 (458) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 4, 8, 8] */
+ 13389989, /* 4044 (458) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13387557, /* 4045 (458) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 4, 8, 8] */
+ 13401005, /* 4046 (458) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 16484 , /* 4047 (459) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4048 (459) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4049 (459) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4050 (459) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 12064 , /* 4051 (459) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4052 (459) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7410 , /* 4053 (459) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 4054 (459) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3250 , /* 4055 (459) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 16432 , /* 4056 (459) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 9022 , /* 4057 (459) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10660 , /* 4058 (459) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 16484 , /* 4059 (460) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4060 (460) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4061 (460) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4062 (460) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4063 (460) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4064 (460) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 130368 , /* 4065 (460) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 4066 (460) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 132231 , /* 4067 (460) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 123647 , /* 4068 (460) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 121215 , /* 4069 (460) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134663 , /* 4070 (460) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 23714816, /* 4071 (460) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 8, 4, 4] */
+ 23701530, /* 4072 (460) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 8, 4, 4] */
+ 23706149, /* 4073 (460) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 8, 4, 4] */
+ 23710197, /* 4074 (460) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 8, 4, 4] */
+ 23703557, /* 4075 (460) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 8, 4, 4] */
+ 23712789, /* 4076 (460) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 8, 4, 4] */
+ 23828700, /* 4077 (460) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 8, 4,10] */
+ 23823842, /* 4078 (460) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 8, 4,10] */
+ 23830563, /* 4079 (460) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 8, 4,10] */
+ 23821979, /* 4080 (460) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 8, 4,10] */
+ 23819547, /* 4081 (460) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 8, 4,10] */
+ 23832995, /* 4082 (460) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 8, 4,10] */
+ 13400924, /* 4083 (460) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 4, 8, 8] */
+ 13387638, /* 4084 (460) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 4, 8, 8] */
+ 13392257, /* 4085 (460) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 4, 8, 8] */
+ 13396305, /* 4086 (460) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 4, 8, 8] */
+ 13389665, /* 4087 (460) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 8] */
+ 13398897, /* 4088 (460) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 4, 8, 8] */
+ 13278612, /* 4089 (460) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 4, 8, 2] */
+ 13273754, /* 4090 (460) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 4, 8, 2] */
+ 13280475, /* 4091 (460) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 4, 8, 2] */
+ 13271891, /* 4092 (460) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 4, 8, 2] */
+ 13269459, /* 4093 (460) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 4, 8, 2] */
+ 13282907, /* 4094 (460) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 4, 8, 2] */
+ 16484 , /* 4095 (461) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4096 (461) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4097 (461) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4098 (461) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 12064 , /* 4099 (461) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4100 (461) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18548796, /* 4101 (461) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 4102 (461) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544636, /* 4103 (461) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18557818, /* 4104 (461) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18550408, /* 4105 (461) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18552046, /* 4106 (461) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 16484 , /* 4107 (462) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 14459 , /* 4108 (462) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 4109 (462) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4110 (462) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 4111 (462) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11867 , /* 4112 (462) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 4113 (463) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 53825 , /* 4114 (463) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 2] */
+ 86549 , /* 4115 (463) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 121298 , /* 4116 (463) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 162689 , /* 4117 (463) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 208697 , /* 4118 (463) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0,10] */
+ 16484 , /* 4119 (464) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 211289 , /* 4120 (464) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0,10] */
+ 165281 , /* 4121 (464) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 121298 , /* 4122 (464) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 83957 , /* 4123 (464) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 51233 , /* 4124 (464) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 2] */
+ 16484 , /* 4125 (465) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 93191 , /* 4126 (465) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 165281 , /* 4127 (465) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 3200 , /* 4128 (465) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 83957 , /* 4129 (465) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 169331 , /* 4130 (465) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 8] */
+ 16484 , /* 4131 (466) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 171923 , /* 4132 (466) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 86549 , /* 4133 (466) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 3200 , /* 4134 (466) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 162689 , /* 4135 (466) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 90599 , /* 4136 (466) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 4] */
+ 16484 , /* 4137 (467) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 132557 , /* 4138 (467) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 7817 , /* 4139 (467) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 4140 (467) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 5225 , /* 4141 (467) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 129965 , /* 4142 (467) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4143 (468) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 5223 , /* 4144 (468) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4145 (468) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4146 (468) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4147 (468) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7815 , /* 4148 (468) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4149 (469) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4150 (469) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 14459 , /* 4151 (469) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 5223 , /* 4152 (469) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4153 (469) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4154 (469) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 4155 (469) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4156 (469) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4157 (469) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4158 (469) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 11867 , /* 4159 (469) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7815 , /* 4160 (469) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4161 (470) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4162 (470) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 132557 , /* 4163 (470) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 123321 , /* 4164 (470) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 7817 , /* 4165 (470) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4166 (470) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 4167 (470) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 4168 (470) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 5225 , /* 4169 (470) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4170 (470) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 129965 , /* 4171 (470) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125913 , /* 4172 (470) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 16484 , /* 4173 (471) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 14459 , /* 4174 (471) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 4175 (471) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4176 (471) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 4177 (471) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11867 , /* 4178 (471) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 4179 (471) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3117 , /* 4180 (471) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5547 , /* 4181 (471) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 4182 (471) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16563 , /* 4183 (471) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 14133 , /* 4184 (471) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4185 (472) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 53825 , /* 4186 (472) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 2] */
+ 86549 , /* 4187 (472) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 121298 , /* 4188 (472) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 162689 , /* 4189 (472) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 208697 , /* 4190 (472) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0,10] */
+ 204240 , /* 4191 (472) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0,10] */
+ 160581 , /* 4192 (472) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 8] */
+ 123645 , /* 4193 (472) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 91002 , /* 4194 (472) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 4] */
+ 55929 , /* 4195 (472) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 2] */
+ 14133 , /* 4196 (472) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4197 (473) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 211289 , /* 4198 (473) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0,10] */
+ 165281 , /* 4199 (473) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 121298 , /* 4200 (473) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 83957 , /* 4201 (473) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 51233 , /* 4202 (473) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 2] */
+ 46776 , /* 4203 (473) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 2] */
+ 81849 , /* 4204 (473) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 4] */
+ 123645 , /* 4205 (473) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 169734 , /* 4206 (473) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 8] */
+ 213393 , /* 4207 (473) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0,10] */
+ 14133 , /* 4208 (473) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4209 (474) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 93191 , /* 4210 (474) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 165281 , /* 4211 (474) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 8] */
+ 3200 , /* 4212 (474) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 83957 , /* 4213 (474) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 4] */
+ 169331 , /* 4214 (474) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 8] */
+ 164874 , /* 4215 (474) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 8] */
+ 81849 , /* 4216 (474) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 4] */
+ 5547 , /* 4217 (474) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 169734 , /* 4218 (474) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 8] */
+ 95295 , /* 4219 (474) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 4] */
+ 14133 , /* 4220 (474) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4221 (475) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 171923 , /* 4222 (475) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 86549 , /* 4223 (475) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 4] */
+ 3200 , /* 4224 (475) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 162689 , /* 4225 (475) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 8] */
+ 90599 , /* 4226 (475) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 4] */
+ 86142 , /* 4227 (475) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 4] */
+ 160581 , /* 4228 (475) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 8] */
+ 5547 , /* 4229 (475) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 91002 , /* 4230 (475) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 4] */
+ 174027 , /* 4231 (475) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 8] */
+ 14133 , /* 4232 (475) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4233 (476) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 132557 , /* 4234 (476) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 7817 , /* 4235 (476) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 4236 (476) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 5225 , /* 4237 (476) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 129965 , /* 4238 (476) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125508 , /* 4239 (476) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3117 , /* 4240 (476) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 123645 , /* 4241 (476) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 12270 , /* 4242 (476) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 134661 , /* 4243 (476) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 14133 , /* 4244 (476) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4245 (477) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 14459 , /* 4246 (477) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 4247 (477) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4248 (477) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 4249 (477) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11867 , /* 4250 (477) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 12272 , /* 4251 (477) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16565 , /* 4252 (477) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 14135 , /* 4253 (477) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7412 , /* 4254 (477) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3119 , /* 4255 (477) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 5549 , /* 4256 (477) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 4257 (478) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 14459 , /* 4258 (478) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7817 , /* 4259 (478) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4260 (478) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5225 , /* 4261 (478) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11867 , /* 4262 (478) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 130370 , /* 4263 (478) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 134663 , /* 4264 (478) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 132233 , /* 4265 (478) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 125510 , /* 4266 (478) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 121217 , /* 4267 (478) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 123647 , /* 4268 (478) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4269 (479) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 132557 , /* 4270 (479) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 7817 , /* 4271 (479) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 4272 (479) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 5225 , /* 4273 (479) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 129965 , /* 4274 (479) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 12272 , /* 4275 (479) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 134663 , /* 4276 (479) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 14135 , /* 4277 (479) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 125510 , /* 4278 (479) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3119 , /* 4279 (479) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 123647 , /* 4280 (479) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4281 (480) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 132557 , /* 4282 (480) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 7817 , /* 4283 (480) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 121298 , /* 4284 (480) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 5225 , /* 4285 (480) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 129965 , /* 4286 (480) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 130370 , /* 4287 (480) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16565 , /* 4288 (480) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 132233 , /* 4289 (480) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 7412 , /* 4290 (480) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 121217 , /* 4291 (480) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 5549 , /* 4292 (480) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 4293 (481) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 5223 , /* 4294 (481) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4295 (481) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4296 (481) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4297 (481) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7815 , /* 4298 (481) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 4299 (481) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16565 , /* 4300 (481) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5547 , /* 4301 (481) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 4302 (481) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16563 , /* 4303 (481) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 5549 , /* 4304 (481) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 4305 (482) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 123321 , /* 4306 (482) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 7817 , /* 4307 (482) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 4308 (482) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 5225 , /* 4309 (482) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 125913 , /* 4310 (482) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 7410 , /* 4311 (482) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 134663 , /* 4312 (482) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 5547 , /* 4313 (482) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 125510 , /* 4314 (482) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16563 , /* 4315 (482) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 123647 , /* 4316 (482) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4317 (483) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 5223 , /* 4318 (483) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4319 (483) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4320 (483) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4321 (483) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7815 , /* 4322 (483) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 4323 (483) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3117 , /* 4324 (483) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 14135 , /* 4325 (483) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 4326 (483) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3119 , /* 4327 (483) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 14133 , /* 4328 (483) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4329 (484) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 123321 , /* 4330 (484) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 7817 , /* 4331 (484) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 134580 , /* 4332 (484) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 5225 , /* 4333 (484) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 125913 , /* 4334 (484) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 4335 (484) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3117 , /* 4336 (484) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 132233 , /* 4337 (484) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 12270 , /* 4338 (484) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 121217 , /* 4339 (484) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 14133 , /* 4340 (484) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 16484 , /* 4341 (485) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4342 (485) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 14459 , /* 4343 (485) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 5223 , /* 4344 (485) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4345 (485) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4346 (485) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 4347 (485) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4348 (485) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4349 (485) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4350 (485) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 11867 , /* 4351 (485) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7815 , /* 4352 (485) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 4353 (485) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 4354 (485) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3117 , /* 4355 (485) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16565 , /* 4356 (485) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 5547 , /* 4357 (485) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 14135 , /* 4358 (485) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 4359 (485) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 4360 (485) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16563 , /* 4361 (485) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3119 , /* 4362 (485) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 14133 , /* 4363 (485) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 5549 , /* 4364 (485) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 4365 (486) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4366 (486) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 14459 , /* 4367 (486) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 5223 , /* 4368 (486) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7817 , /* 4369 (486) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4370 (486) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 4371 (486) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4372 (486) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 5225 , /* 4373 (486) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4374 (486) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 11867 , /* 4375 (486) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7815 , /* 4376 (486) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125508 , /* 4377 (486) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 4378 (486) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 121215 , /* 4379 (486) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134663 , /* 4380 (486) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 123645 , /* 4381 (486) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 132233 , /* 4382 (486) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 130368 , /* 4383 (486) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 4384 (486) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 134661 , /* 4385 (486) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121217 , /* 4386 (486) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 132231 , /* 4387 (486) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 123647 , /* 4388 (486) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4389 (487) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4390 (487) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 132557 , /* 4391 (487) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 123321 , /* 4392 (487) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 7817 , /* 4393 (487) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4394 (487) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 4395 (487) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 4396 (487) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 5225 , /* 4397 (487) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4398 (487) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 129965 , /* 4399 (487) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125913 , /* 4400 (487) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 7410 , /* 4401 (487) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 4402 (487) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 121215 , /* 4403 (487) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 134663 , /* 4404 (487) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 5547 , /* 4405 (487) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 14135 , /* 4406 (487) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 130368 , /* 4407 (487) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 4408 (487) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 16563 , /* 4409 (487) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3119 , /* 4410 (487) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 132231 , /* 4411 (487) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 123647 , /* 4412 (487) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 16484 , /* 4413 (488) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4414 (488) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 132557 , /* 4415 (488) [ 1,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 123321 , /* 4416 (488) [ -1, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 7817 , /* 4417 (488) [ 0,-1, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11865 , /* 4418 (488) [ 0, 1, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 121298 , /* 4419 (488) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 134580 , /* 4420 (488) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 5225 , /* 4421 (488) [ -1, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 14457 , /* 4422 (488) [ 1,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 129965 , /* 4423 (488) [ 0, 1, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 125913 , /* 4424 (488) [ 0,-1, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 125508 , /* 4425 (488) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 4426 (488) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3117 , /* 4427 (488) [ -1, 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16565 , /* 4428 (488) [ 1, 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 123645 , /* 4429 (488) [ -1, 1, 0, 0, 1, 0, 0, 0,-1, 0, 0, 6] */
+ 132233 , /* 4430 (488) [ 1,-1, 0, 0,-1, 0, 0, 0, 1, 0, 0, 6] */
+ 12270 , /* 4431 (488) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 4432 (488) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 134661 , /* 4433 (488) [ 1, 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121217 , /* 4434 (488) [ -1, 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 14133 , /* 4435 (488) [ 1,-1, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 5549 , /* 4436 (488) [ -1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 16484 , /* 4437 (489) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4438 (489) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 4439 (489) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 4440 (489) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4441 (489) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10324 , /* 4442 (489) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9352 , /* 4443 (489) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 8872 , /* 4444 (489) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 4445 (489) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4446 (489) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4447 (489) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4448 (489) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16484 , /* 4449 (490) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4450 (490) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 4451 (490) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 4452 (490) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4453 (490) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10324 , /* 4454 (490) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9352 , /* 4455 (490) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 8872 , /* 4456 (490) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 4457 (490) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4458 (490) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4459 (490) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4460 (490) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 1551758 , /* 4461 (490) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 4462 (490) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 4463 (490) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 4464 (490) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1546090 , /* 4465 (490) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1545598 , /* 4466 (490) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544626 , /* 4467 (490) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544146 , /* 4468 (490) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1547338 , /* 4469 (490) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542946 , /* 4470 (490) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1542910 , /* 4471 (490) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1547266 , /* 4472 (490) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 17140694, /* 4473 (490) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 4474 (490) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 4475 (490) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 4476 (490) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17135026, /* 4477 (490) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17134534, /* 4478 (490) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133562, /* 4479 (490) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133082, /* 4480 (490) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17136274, /* 4481 (490) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131882, /* 4482 (490) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17131846, /* 4483 (490) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136202, /* 4484 (490) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 18439772, /* 4485 (490) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 4486 (490) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 4487 (490) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 4488 (490) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18434104, /* 4489 (490) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18433612, /* 4490 (490) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432640, /* 4491 (490) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432160, /* 4492 (490) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18435352, /* 4493 (490) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430960, /* 4494 (490) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18430924, /* 4495 (490) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435280, /* 4496 (490) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 16484 , /* 4497 (491) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4498 (491) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 4499 (491) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 4500 (491) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4501 (491) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10324 , /* 4502 (491) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9352 , /* 4503 (491) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 8872 , /* 4504 (491) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 4505 (491) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4506 (491) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4507 (491) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4508 (491) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18557870, /* 4509 (491) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 4510 (491) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 4511 (491) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544746, /* 4512 (491) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18552202, /* 4513 (491) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18551710, /* 4514 (491) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550738, /* 4515 (491) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550258, /* 4516 (491) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18553450, /* 4517 (491) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18549058, /* 4518 (491) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18549022, /* 4519 (491) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18553378, /* 4520 (491) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 16484 , /* 4521 (492) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 17127410, /* 4522 (492) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439608, /* 4523 (492) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 1538634 , /* 4524 (492) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 10816 , /* 4525 (492) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18433612, /* 4526 (492) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1544626 , /* 4527 (492) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 17133082, /* 4528 (492) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 12064 , /* 4529 (492) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 1542946 , /* 4530 (492) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 17131846, /* 4531 (492) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 18435280, /* 4532 (492) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 16484 , /* 4533 (493) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 1420376 , /* 4534 (493) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 134418 , /* 4535 (493) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 1538634 , /* 4536 (493) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 10816 , /* 4537 (493) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 128422 , /* 4538 (493) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 6] */
+ 17015464, /* 4539 (493) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 0] */
+ 17133082, /* 4540 (493) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 12064 , /* 4541 (493) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 17013784, /* 4542 (493) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 0] */
+ 1424812 , /* 4543 (493) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 0] */
+ 18435280, /* 4544 (493) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18557870, /* 4545 (493) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 17127410, /* 4546 (493) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18439608, /* 4547 (493) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 17009472, /* 4548 (493) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 18552202, /* 4549 (493) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18433612, /* 4550 (493) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1544626 , /* 4551 (493) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1426048 , /* 4552 (493) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 0] */
+ 18553450, /* 4553 (493) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 1542946 , /* 4554 (493) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 17131846, /* 4555 (493) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 130090 , /* 4556 (493) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 6] */
+ 16484 , /* 4557 (494) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4558 (494) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 4559 (494) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4560 (494) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 4561 (494) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 4562 (494) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 4563 (494) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 4564 (494) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 4565 (494) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4566 (494) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10324 , /* 4567 (494) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 4568 (494) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9352 , /* 4569 (494) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 4570 (494) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8872 , /* 4571 (494) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 4572 (494) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 12064 , /* 4573 (494) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4574 (494) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4575 (494) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 4576 (494) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4577 (494) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 4578 (494) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4579 (494) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 4580 (494) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16484 , /* 4581 (495) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4582 (495) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 4583 (495) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 4584 (495) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4585 (495) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10324 , /* 4586 (495) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9352 , /* 4587 (495) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 8872 , /* 4588 (495) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 4589 (495) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4590 (495) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4591 (495) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4592 (495) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18544584, /* 4593 (495) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557868, /* 4594 (495) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 4595 (495) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 4596 (495) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18550252, /* 4597 (495) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550744, /* 4598 (495) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18551716, /* 4599 (495) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18552196, /* 4600 (495) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18549004, /* 4601 (495) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18553396, /* 4602 (495) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18553432, /* 4603 (495) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18549076, /* 4604 (495) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 16484 , /* 4605 (496) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4606 (496) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18426488, /* 4607 (496) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 4608 (496) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1551594 , /* 4609 (496) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 4610 (496) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 17127570, /* 4611 (496) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 4612 (496) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 10816 , /* 4613 (496) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4614 (496) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 1545598 , /* 4615 (496) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544632 , /* 4616 (496) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 17133562, /* 4617 (496) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134540, /* 4618 (496) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 18432160, /* 4619 (496) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18434098, /* 4620 (496) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 12064 , /* 4621 (496) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4622 (496) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 17131882, /* 4623 (496) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136220, /* 4624 (496) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 18430924, /* 4625 (496) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435334, /* 4626 (496) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 1547266 , /* 4627 (496) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542964 , /* 4628 (496) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 16484 , /* 4629 (497) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4630 (497) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 4631 (497) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4632 (497) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 4633 (497) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 4634 (497) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 4635 (497) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 4636 (497) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 4637 (497) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4638 (497) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10324 , /* 4639 (497) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 4640 (497) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9352 , /* 4641 (497) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 4642 (497) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8872 , /* 4643 (497) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 4644 (497) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 12064 , /* 4645 (497) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4646 (497) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4647 (497) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 4648 (497) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4649 (497) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 4650 (497) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4651 (497) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 4652 (497) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 1551758 , /* 4653 (497) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 4654 (497) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 4655 (497) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 4656 (497) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 4657 (497) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 4658 (497) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 4659 (497) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 4660 (497) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1546090 , /* 4661 (497) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544140 , /* 4662 (497) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545598 , /* 4663 (497) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544632 , /* 4664 (497) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544626 , /* 4665 (497) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545604 , /* 4666 (497) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544146 , /* 4667 (497) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1546084 , /* 4668 (497) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1547338 , /* 4669 (497) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542892 , /* 4670 (497) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542946 , /* 4671 (497) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547284 , /* 4672 (497) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1542910 , /* 4673 (497) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1547320 , /* 4674 (497) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547266 , /* 4675 (497) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542964 , /* 4676 (497) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 17140694, /* 4677 (497) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 4678 (497) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 4679 (497) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 4680 (497) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 4681 (497) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 4682 (497) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 4683 (497) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 4684 (497) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17135026, /* 4685 (497) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133076, /* 4686 (497) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134534, /* 4687 (497) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133568, /* 4688 (497) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133562, /* 4689 (497) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134540, /* 4690 (497) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133082, /* 4691 (497) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17135020, /* 4692 (497) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17136274, /* 4693 (497) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131828, /* 4694 (497) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17131882, /* 4695 (497) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136220, /* 4696 (497) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17131846, /* 4697 (497) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136256, /* 4698 (497) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136202, /* 4699 (497) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17131900, /* 4700 (497) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 18439772, /* 4701 (497) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 4702 (497) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426488, /* 4703 (497) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 4704 (497) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 4705 (497) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 4706 (497) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 4707 (497) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 4708 (497) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18434104, /* 4709 (497) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432154, /* 4710 (497) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433612, /* 4711 (497) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432646, /* 4712 (497) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432640, /* 4713 (497) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433618, /* 4714 (497) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432160, /* 4715 (497) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18434098, /* 4716 (497) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18435352, /* 4717 (497) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430906, /* 4718 (497) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430960, /* 4719 (497) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18435298, /* 4720 (497) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18430924, /* 4721 (497) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435334, /* 4722 (497) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18435280, /* 4723 (497) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430978, /* 4724 (497) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 16484 , /* 4725 (498) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 4726 (498) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 4727 (498) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 4728 (498) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 4729 (498) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10324 , /* 4730 (498) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9352 , /* 4731 (498) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 8872 , /* 4732 (498) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 12064 , /* 4733 (498) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4734 (498) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4735 (498) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4736 (498) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 9273891 , /* 4737 (498) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 3, 3] */
+ 9287175 , /* 4738 (498) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 3] */
+ 9274055 , /* 4739 (498) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 3, 3] */
+ 9287015 , /* 4740 (498) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 3] */
+ 9279559 , /* 4741 (498) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 3, 3, 3] */
+ 9280051 , /* 4742 (498) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 3, 3, 3] */
+ 9281023 , /* 4743 (498) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 3, 3] */
+ 9281503 , /* 4744 (498) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 3, 3] */
+ 9278311 , /* 4745 (498) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 3, 3, 3] */
+ 9282703 , /* 4746 (498) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 3, 3] */
+ 9282739 , /* 4747 (498) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 3, 3] */
+ 9278383 , /* 4748 (498) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 3, 3, 3] */
+ 1551758 , /* 4749 (498) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 4750 (498) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 4751 (498) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 4752 (498) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1546090 , /* 4753 (498) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1545598 , /* 4754 (498) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544626 , /* 4755 (498) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544146 , /* 4756 (498) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1547338 , /* 4757 (498) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542946 , /* 4758 (498) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1542910 , /* 4759 (498) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1547266 , /* 4760 (498) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 10809165, /* 4761 (498) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 9, 9] */
+ 10822449, /* 4762 (498) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 9] */
+ 10809329, /* 4763 (498) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 9, 9] */
+ 10822289, /* 4764 (498) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 9] */
+ 10814833, /* 4765 (498) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 3, 9, 9] */
+ 10815325, /* 4766 (498) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 3, 9, 9] */
+ 10816297, /* 4767 (498) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 9, 9] */
+ 10816777, /* 4768 (498) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 9, 9] */
+ 10813585, /* 4769 (498) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 3, 9, 9] */
+ 10817977, /* 4770 (498) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 9, 9] */
+ 10818013, /* 4771 (498) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 9, 9] */
+ 10813657, /* 4772 (498) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 3, 9, 9] */
+ 17140694, /* 4773 (498) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 4774 (498) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 4775 (498) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 4776 (498) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17135026, /* 4777 (498) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17134534, /* 4778 (498) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133562, /* 4779 (498) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133082, /* 4780 (498) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17136274, /* 4781 (498) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131882, /* 4782 (498) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17131846, /* 4783 (498) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136202, /* 4784 (498) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 26398101, /* 4785 (498) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 3, 9] */
+ 26411385, /* 4786 (498) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 9] */
+ 26398265, /* 4787 (498) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 3, 9] */
+ 26411225, /* 4788 (498) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 9] */
+ 26403769, /* 4789 (498) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 9, 3, 9] */
+ 26404261, /* 4790 (498) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 9, 3, 9] */
+ 26405233, /* 4791 (498) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 3, 9] */
+ 26405713, /* 4792 (498) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 3, 9] */
+ 26402521, /* 4793 (498) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 9, 3, 9] */
+ 26406913, /* 4794 (498) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 3, 9] */
+ 26406949, /* 4795 (498) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 3, 9] */
+ 26402593, /* 4796 (498) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 9, 3, 9] */
+ 18439772, /* 4797 (498) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 4798 (498) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 4799 (498) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 4800 (498) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18434104, /* 4801 (498) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18433612, /* 4802 (498) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432640, /* 4803 (498) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432160, /* 4804 (498) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18435352, /* 4805 (498) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430960, /* 4806 (498) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18430924, /* 4807 (498) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435280, /* 4808 (498) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 27697179, /* 4809 (498) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 9, 3] */
+ 27710463, /* 4810 (498) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 3] */
+ 27697343, /* 4811 (498) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 9, 3] */
+ 27710303, /* 4812 (498) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 3] */
+ 27702847, /* 4813 (498) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 9, 9, 3] */
+ 27703339, /* 4814 (498) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 9, 9, 3] */
+ 27704311, /* 4815 (498) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 9, 3] */
+ 27704791, /* 4816 (498) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 9, 3] */
+ 27701599, /* 4817 (498) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 9, 9, 3] */
+ 27705991, /* 4818 (498) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 9, 3] */
+ 27706027, /* 4819 (498) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 9, 3] */
+ 27701671, /* 4820 (498) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 9, 9, 3] */
+ 16484 , /* 4821 (499) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4822 (499) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 9214844 , /* 4823 (499) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 0] */
+ 9228126 , /* 4824 (499) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 0] */
+ 783957 , /* 4825 (499) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 3, 3] */
+ 770999 , /* 4826 (499) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 3] */
+ 8565465 , /* 4827 (499) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 0, 3] */
+ 8578427 , /* 4828 (499) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 0, 3] */
+ 10816 , /* 4829 (499) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4830 (499) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 777961 , /* 4831 (499) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 3, 3] */
+ 776995 , /* 4832 (499) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 3, 3] */
+ 8571457 , /* 4833 (499) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 3, 0, 3] */
+ 8572435 , /* 4834 (499) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 0, 3] */
+ 9220516 , /* 4835 (499) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 3, 3, 0] */
+ 9222454 , /* 4836 (499) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 3, 0] */
+ 12064 , /* 4837 (499) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4838 (499) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 8569777 , /* 4839 (499) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 3, 0, 3] */
+ 8574115 , /* 4840 (499) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 0, 3] */
+ 9219280 , /* 4841 (499) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 3, 3, 0] */
+ 9223690 , /* 4842 (499) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 3, 0] */
+ 779629 , /* 4843 (499) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 3, 3] */
+ 775327 , /* 4844 (499) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 3, 3] */
+ 1551758 , /* 4845 (499) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 4846 (499) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 10750118, /* 4847 (499) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 6] */
+ 10763400, /* 4848 (499) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 6] */
+ 2319231 , /* 4849 (499) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 9, 9] */
+ 2306273 , /* 4850 (499) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 9] */
+ 10100739, /* 4851 (499) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 6, 9] */
+ 10113701, /* 4852 (499) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 6, 9] */
+ 1546090 , /* 4853 (499) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544140 , /* 4854 (499) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 2313235 , /* 4855 (499) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 9, 9] */
+ 2312269 , /* 4856 (499) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 9, 9] */
+ 10106731, /* 4857 (499) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 3, 6, 9] */
+ 10107709, /* 4858 (499) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 6, 9] */
+ 10755790, /* 4859 (499) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 3, 9, 6] */
+ 10757728, /* 4860 (499) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 9, 6] */
+ 1547338 , /* 4861 (499) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542892 , /* 4862 (499) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 10105051, /* 4863 (499) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 3, 6, 9] */
+ 10109389, /* 4864 (499) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 6, 9] */
+ 10754554, /* 4865 (499) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 3, 9, 6] */
+ 10758964, /* 4866 (499) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 9, 6] */
+ 2314903 , /* 4867 (499) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 9, 9] */
+ 2310601 , /* 4868 (499) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 9, 9] */
+ 17140694, /* 4869 (499) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 4870 (499) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 26339054, /* 4871 (499) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 6] */
+ 26352336, /* 4872 (499) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 6] */
+ 17908167, /* 4873 (499) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 3, 9] */
+ 17895209, /* 4874 (499) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 3, 9] */
+ 25689675, /* 4875 (499) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 0, 9] */
+ 25702637, /* 4876 (499) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 0, 9] */
+ 17135026, /* 4877 (499) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133076, /* 4878 (499) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17902171, /* 4879 (499) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 3, 9] */
+ 17901205, /* 4880 (499) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 3, 9] */
+ 25695667, /* 4881 (499) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 9, 0, 9] */
+ 25696645, /* 4882 (499) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 0, 9] */
+ 26344726, /* 4883 (499) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 9, 3, 6] */
+ 26346664, /* 4884 (499) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 3, 6] */
+ 17136274, /* 4885 (499) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131828, /* 4886 (499) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 25693987, /* 4887 (499) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 9, 0, 9] */
+ 25698325, /* 4888 (499) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 0, 9] */
+ 26343490, /* 4889 (499) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 9, 3, 6] */
+ 26347900, /* 4890 (499) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 3, 6] */
+ 17903839, /* 4891 (499) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 3, 9] */
+ 17899537, /* 4892 (499) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 3, 9] */
+ 18439772, /* 4893 (499) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 4894 (499) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 27638132, /* 4895 (499) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 0] */
+ 27651414, /* 4896 (499) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 0] */
+ 19207245, /* 4897 (499) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 9, 3] */
+ 19194287, /* 4898 (499) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 9, 3] */
+ 26988753, /* 4899 (499) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 6, 3] */
+ 27001715, /* 4900 (499) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 6, 3] */
+ 18434104, /* 4901 (499) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432154, /* 4902 (499) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 19201249, /* 4903 (499) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 9, 3] */
+ 19200283, /* 4904 (499) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 9, 3] */
+ 26994745, /* 4905 (499) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 9, 6, 3] */
+ 26995723, /* 4906 (499) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 6, 3] */
+ 27643804, /* 4907 (499) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 9, 9, 0] */
+ 27645742, /* 4908 (499) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 9, 0] */
+ 18435352, /* 4909 (499) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430906, /* 4910 (499) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 26993065, /* 4911 (499) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 9, 6, 3] */
+ 26997403, /* 4912 (499) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 6, 3] */
+ 27642568, /* 4913 (499) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 9, 9, 0] */
+ 27646978, /* 4914 (499) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 9, 0] */
+ 19202917, /* 4915 (499) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 9, 3] */
+ 19198615, /* 4916 (499) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 9, 3] */
+ 16484 , /* 4917 (500) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4918 (500) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 4919 (500) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 4920 (500) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 4921 (500) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 4922 (500) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 4923 (500) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 4924 (500) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 4925 (500) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4926 (500) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10324 , /* 4927 (500) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 4928 (500) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9352 , /* 4929 (500) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 4930 (500) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8872 , /* 4931 (500) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 4932 (500) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 12064 , /* 4933 (500) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4934 (500) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7672 , /* 4935 (500) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 4936 (500) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 7636 , /* 4937 (500) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 4938 (500) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 11992 , /* 4939 (500) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 4940 (500) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 18557870, /* 4941 (500) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 4942 (500) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 4943 (500) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 4944 (500) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 4945 (500) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 4946 (500) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 4947 (500) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 4948 (500) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18552202, /* 4949 (500) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550252, /* 4950 (500) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18551710, /* 4951 (500) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550744, /* 4952 (500) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550738, /* 4953 (500) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18551716, /* 4954 (500) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550258, /* 4955 (500) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18552196, /* 4956 (500) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18553450, /* 4957 (500) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18549004, /* 4958 (500) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18549058, /* 4959 (500) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18553396, /* 4960 (500) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18549022, /* 4961 (500) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18553432, /* 4962 (500) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18553378, /* 4963 (500) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18549076, /* 4964 (500) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 16484 , /* 4965 (501) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4966 (501) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17127410, /* 4967 (501) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 4968 (501) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 4969 (501) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 4970 (501) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 1538634 , /* 4971 (501) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 4972 (501) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 10816 , /* 4973 (501) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4974 (501) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18433612, /* 4975 (501) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432646, /* 4976 (501) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 1544626 , /* 4977 (501) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545604 , /* 4978 (501) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 17133082, /* 4979 (501) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17135020, /* 4980 (501) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 12064 , /* 4981 (501) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 4982 (501) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 1542946 , /* 4983 (501) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547284 , /* 4984 (501) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 17131846, /* 4985 (501) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136256, /* 4986 (501) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 18435280, /* 4987 (501) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430978, /* 4988 (501) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 16484 , /* 4989 (502) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 4990 (502) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1420376 , /* 4991 (502) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 4992 (502) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 134418 , /* 4993 (502) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 4994 (502) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 1538634 , /* 4995 (502) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 4996 (502) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 10816 , /* 4997 (502) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 4998 (502) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 128422 , /* 4999 (502) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 6] */
+ 127456 , /* 5000 (502) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 6] */
+ 17015464, /* 5001 (502) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 0] */
+ 17016442, /* 5002 (502) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 0] */
+ 17133082, /* 5003 (502) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17135020, /* 5004 (502) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 12064 , /* 5005 (502) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 5006 (502) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 17013784, /* 5007 (502) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 0] */
+ 17018122, /* 5008 (502) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 0] */
+ 1424812 , /* 5009 (502) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 0] */
+ 1429222 , /* 5010 (502) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 0] */
+ 18435280, /* 5011 (502) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430978, /* 5012 (502) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18557870, /* 5013 (502) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 5014 (502) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 17127410, /* 5015 (502) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 5016 (502) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 18439608, /* 5017 (502) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 5018 (502) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 17009472, /* 5019 (502) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 5020 (502) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 18552202, /* 5021 (502) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550252, /* 5022 (502) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18433612, /* 5023 (502) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432646, /* 5024 (502) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 1544626 , /* 5025 (502) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545604 , /* 5026 (502) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1426048 , /* 5027 (502) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 0] */
+ 1427986 , /* 5028 (502) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 6, 0] */
+ 18553450, /* 5029 (502) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18549004, /* 5030 (502) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 1542946 , /* 5031 (502) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547284 , /* 5032 (502) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 17131846, /* 5033 (502) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136256, /* 5034 (502) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 130090 , /* 5035 (502) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 6] */
+ 125788 , /* 5036 (502) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 6] */
+ 16484 , /* 5037 (503) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 5038 (503) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 5039 (503) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 5040 (503) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 5041 (503) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 5042 (503) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 5043 (503) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 5044 (503) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 5045 (503) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10498 , /* 5046 (503) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5047 (503) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10642 , /* 5048 (503) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5049 (503) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9022 , /* 5050 (503) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5051 (503) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9202 , /* 5052 (503) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5053 (503) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16426 , /* 5054 (503) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 7672 , /* 5055 (503) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3310 , /* 5056 (503) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 7636 , /* 5057 (503) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3250 , /* 5058 (503) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 11992 , /* 5059 (503) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16378 , /* 5060 (503) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 16484 , /* 5061 (504) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 5062 (504) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 5063 (504) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 5064 (504) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16320 , /* 5065 (504) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18548796, /* 5066 (504) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3360 , /* 5067 (504) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18553656, /* 5068 (504) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 10816 , /* 5069 (504) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18551884, /* 5070 (504) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 10324 , /* 5071 (504) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18552028, /* 5072 (504) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 9352 , /* 5073 (504) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18550408, /* 5074 (504) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 8872 , /* 5075 (504) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18550588, /* 5076 (504) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 12064 , /* 5077 (504) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 18557812, /* 5078 (504) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 7672 , /* 5079 (504) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 18544696, /* 5080 (504) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 7636 , /* 5081 (504) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 18544636, /* 5082 (504) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 11992 , /* 5083 (504) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18557764, /* 5084 (504) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 16484 , /* 5085 (505) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 5086 (505) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 5087 (505) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 5088 (505) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 5089 (505) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 5090 (505) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 5091 (505) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 5092 (505) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 5093 (505) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10498 , /* 5094 (505) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5095 (505) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10642 , /* 5096 (505) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5097 (505) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9022 , /* 5098 (505) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5099 (505) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9202 , /* 5100 (505) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5101 (505) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16426 , /* 5102 (505) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 7672 , /* 5103 (505) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3310 , /* 5104 (505) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 7636 , /* 5105 (505) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3250 , /* 5106 (505) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 11992 , /* 5107 (505) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16378 , /* 5108 (505) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 1551758 , /* 5109 (505) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1543172 , /* 5110 (505) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1538474 , /* 5111 (505) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1547060 , /* 5112 (505) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1551594 , /* 5113 (505) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1542684 , /* 5114 (505) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1538634 , /* 5115 (505) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1547544 , /* 5116 (505) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1546090 , /* 5117 (505) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1545772 , /* 5118 (505) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 6, 6] */
+ 1545598 , /* 5119 (505) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545916 , /* 5120 (505) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 6, 6] */
+ 1544626 , /* 5121 (505) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544296 , /* 5122 (505) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 1544146 , /* 5123 (505) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544476 , /* 5124 (505) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 1547338 , /* 5125 (505) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1551700 , /* 5126 (505) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 6] */
+ 1542946 , /* 5127 (505) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1538584 , /* 5128 (505) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 1542910 , /* 5129 (505) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1538524 , /* 5130 (505) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 1547266 , /* 5131 (505) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1551652 , /* 5132 (505) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 6] */
+ 17140694, /* 5133 (505) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17132108, /* 5134 (505) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17127410, /* 5135 (505) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17135996, /* 5136 (505) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17140530, /* 5137 (505) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17131620, /* 5138 (505) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17127570, /* 5139 (505) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17136480, /* 5140 (505) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17135026, /* 5141 (505) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17134708, /* 5142 (505) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 0, 6] */
+ 17134534, /* 5143 (505) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134852, /* 5144 (505) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 0, 6] */
+ 17133562, /* 5145 (505) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133232, /* 5146 (505) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 0, 6] */
+ 17133082, /* 5147 (505) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133412, /* 5148 (505) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 0, 6] */
+ 17136274, /* 5149 (505) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17140636, /* 5150 (505) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 6] */
+ 17131882, /* 5151 (505) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17127520, /* 5152 (505) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 6] */
+ 17131846, /* 5153 (505) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17127460, /* 5154 (505) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 6] */
+ 17136202, /* 5155 (505) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17140588, /* 5156 (505) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 6] */
+ 18439772, /* 5157 (505) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18431186, /* 5158 (505) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426488, /* 5159 (505) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435074, /* 5160 (505) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18439608, /* 5161 (505) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18430698, /* 5162 (505) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18426648, /* 5163 (505) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18435558, /* 5164 (505) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18434104, /* 5165 (505) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18433786, /* 5166 (505) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 0] */
+ 18433612, /* 5167 (505) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433930, /* 5168 (505) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 0] */
+ 18432640, /* 5169 (505) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432310, /* 5170 (505) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 0] */
+ 18432160, /* 5171 (505) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432490, /* 5172 (505) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 0] */
+ 18435352, /* 5173 (505) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18439714, /* 5174 (505) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 0] */
+ 18430960, /* 5175 (505) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18426598, /* 5176 (505) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 0] */
+ 18430924, /* 5177 (505) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18426538, /* 5178 (505) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 0] */
+ 18435280, /* 5179 (505) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18439666, /* 5180 (505) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 0] */
+ 16484 , /* 5181 (506) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 9278591 , /* 5182 (506) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 1538474 , /* 5183 (506) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 26406689, /* 5184 (506) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 16320 , /* 5185 (506) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10813377, /* 5186 (506) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 1538634 , /* 5187 (506) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 27706251, /* 5188 (506) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 10816 , /* 5189 (506) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9281191 , /* 5190 (506) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 3, 3] */
+ 17134534, /* 5191 (506) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 27704623, /* 5192 (506) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 9, 3] */
+ 9352 , /* 5193 (506) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 26403925, /* 5194 (506) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 3, 9] */
+ 17133082, /* 5195 (506) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 10815169, /* 5196 (506) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 9, 9] */
+ 12064 , /* 5197 (506) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 9287119 , /* 5198 (506) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 3] */
+ 18430960, /* 5199 (506) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 10809277, /* 5200 (506) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 9, 9] */
+ 7636 , /* 5201 (506) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 27697231, /* 5202 (506) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 9, 3] */
+ 18435280, /* 5203 (506) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 26411281, /* 5204 (506) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 9] */
+ 1551758 , /* 5205 (506) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 10813865, /* 5206 (506) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 3200 , /* 5207 (506) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 27705767, /* 5208 (506) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 1551594 , /* 5209 (506) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 9278103 , /* 5210 (506) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 3360 , /* 5211 (506) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 26407173, /* 5212 (506) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 1546090 , /* 5213 (506) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 10816465, /* 5214 (506) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 9, 9] */
+ 18433612, /* 5215 (506) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26405545, /* 5216 (506) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 9] */
+ 1544626 , /* 5217 (506) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27703003, /* 5218 (506) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 9, 3] */
+ 18432160, /* 5219 (506) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 9279895 , /* 5220 (506) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 3, 3] */
+ 1547338 , /* 5221 (506) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 10822393, /* 5222 (506) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 9] */
+ 17131882, /* 5223 (506) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 9274003 , /* 5224 (506) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 3, 3] */
+ 1542910 , /* 5225 (506) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 26398153, /* 5226 (506) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 3, 9] */
+ 17136202, /* 5227 (506) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 27710359, /* 5228 (506) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 3] */
+ 17140694, /* 5229 (506) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 26402801, /* 5230 (506) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 18426488, /* 5231 (506) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 9282479 , /* 5232 (506) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 17140530, /* 5233 (506) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 27701391, /* 5234 (506) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 18426648, /* 5235 (506) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 10818237, /* 5236 (506) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 17135026, /* 5237 (506) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 26405401, /* 5238 (506) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 3, 9] */
+ 10324 , /* 5239 (506) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10816609, /* 5240 (506) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 9] */
+ 17133562, /* 5241 (506) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 9279715 , /* 5242 (506) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 3, 3] */
+ 8872 , /* 5243 (506) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 27703183, /* 5244 (506) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 9, 3] */
+ 17136274, /* 5245 (506) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 26411329, /* 5246 (506) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 9] */
+ 1542946 , /* 5247 (506) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 27697291, /* 5248 (506) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 9, 3] */
+ 17131846, /* 5249 (506) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 10809217, /* 5250 (506) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 9, 9] */
+ 1547266 , /* 5251 (506) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 9287071 , /* 5252 (506) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 3] */
+ 18439772, /* 5253 (506) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 27701879, /* 5254 (506) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 17127410, /* 5255 (506) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 10817753, /* 5256 (506) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 18439608, /* 5257 (506) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 26402313, /* 5258 (506) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 17127570, /* 5259 (506) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 9282963 , /* 5260 (506) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 18434104, /* 5261 (506) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 27704479, /* 5262 (506) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 9, 3] */
+ 1545598 , /* 5263 (506) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 9281335 , /* 5264 (506) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 3, 3] */
+ 18432640, /* 5265 (506) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 10814989, /* 5266 (506) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 9, 9] */
+ 1544146 , /* 5267 (506) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 26404105, /* 5268 (506) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 3, 9] */
+ 18435352, /* 5269 (506) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 27710407, /* 5270 (506) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 3] */
+ 7672 , /* 5271 (506) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 26398213, /* 5272 (506) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 3, 9] */
+ 18430924, /* 5273 (506) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 9273943 , /* 5274 (506) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 3, 3] */
+ 11992 , /* 5275 (506) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 10822345, /* 5276 (506) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 9] */
+ 16484 , /* 5277 (507) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 5278 (507) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 5279 (507) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 5280 (507) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 5281 (507) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 5282 (507) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 5283 (507) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 5284 (507) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 5285 (507) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10498 , /* 5286 (507) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5287 (507) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10642 , /* 5288 (507) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5289 (507) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9022 , /* 5290 (507) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5291 (507) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9202 , /* 5292 (507) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5293 (507) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16426 , /* 5294 (507) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 7672 , /* 5295 (507) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3310 , /* 5296 (507) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 7636 , /* 5297 (507) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3250 , /* 5298 (507) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 11992 , /* 5299 (507) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16378 , /* 5300 (507) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 18557870, /* 5301 (507) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549284, /* 5302 (507) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544586, /* 5303 (507) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553172, /* 5304 (507) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557706, /* 5305 (507) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18548796, /* 5306 (507) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544746, /* 5307 (507) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553656, /* 5308 (507) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18552202, /* 5309 (507) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18551884, /* 5310 (507) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18551710, /* 5311 (507) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18552028, /* 5312 (507) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18550738, /* 5313 (507) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550408, /* 5314 (507) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18550258, /* 5315 (507) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550588, /* 5316 (507) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18553450, /* 5317 (507) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18557812, /* 5318 (507) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 18549058, /* 5319 (507) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18544696, /* 5320 (507) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18549022, /* 5321 (507) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18544636, /* 5322 (507) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18553378, /* 5323 (507) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18557764, /* 5324 (507) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 16484 , /* 5325 (508) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 26402801, /* 5326 (508) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 17127410, /* 5327 (508) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 27705767, /* 5328 (508) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 18439608, /* 5329 (508) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 9278103 , /* 5330 (508) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 1538634 , /* 5331 (508) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 10818237, /* 5332 (508) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 10816 , /* 5333 (508) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 27704479, /* 5334 (508) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 9, 3] */
+ 18433612, /* 5335 (508) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 10816609, /* 5336 (508) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 9] */
+ 1544626 , /* 5337 (508) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 9279715 , /* 5338 (508) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 3, 3] */
+ 17133082, /* 5339 (508) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 26404105, /* 5340 (508) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 3, 9] */
+ 12064 , /* 5341 (508) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 10822393, /* 5342 (508) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 9] */
+ 1542946 , /* 5343 (508) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 26398213, /* 5344 (508) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 3, 9] */
+ 17131846, /* 5345 (508) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 9273943 , /* 5346 (508) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 3, 3] */
+ 18435280, /* 5347 (508) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 27710359, /* 5348 (508) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 3] */
+ 16484 , /* 5349 (509) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10695767, /* 5350 (509) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 3] */
+ 17127410, /* 5351 (509) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 9400577 , /* 5352 (509) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 9] */
+ 18439608, /* 5353 (509) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 27819489, /* 5354 (509) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 9] */
+ 1538634 , /* 5355 (509) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 26289075, /* 5356 (509) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 3] */
+ 10816 , /* 5357 (509) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9399289 , /* 5358 (509) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 3, 9] */
+ 18433612, /* 5359 (509) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26287447, /* 5360 (509) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 3] */
+ 1544626 , /* 5361 (509) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27821101, /* 5362 (509) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 9, 9] */
+ 17133082, /* 5363 (509) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 10697071, /* 5364 (509) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 9, 3] */
+ 12064 , /* 5365 (509) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 26293231, /* 5366 (509) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 3] */
+ 1542946 , /* 5367 (509) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 10691179, /* 5368 (509) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 9, 3] */
+ 17131846, /* 5369 (509) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 27815329, /* 5370 (509) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 9, 9] */
+ 18435280, /* 5371 (509) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 9405169 , /* 5372 (509) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 9] */
+ 16484 , /* 5373 (510) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10695767, /* 5374 (510) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 3] */
+ 17127410, /* 5375 (510) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 9400577 , /* 5376 (510) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 9] */
+ 134418 , /* 5377 (510) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 9278103 , /* 5378 (510) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 17009472, /* 5379 (510) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 10818237, /* 5380 (510) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 10816 , /* 5381 (510) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9399289 , /* 5382 (510) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 3, 9] */
+ 18433612, /* 5383 (510) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26287447, /* 5384 (510) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 3] */
+ 17015464, /* 5385 (510) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 0] */
+ 9279715 , /* 5386 (510) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 3, 3] */
+ 1426048 , /* 5387 (510) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 0] */
+ 26404105, /* 5388 (510) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 3, 9] */
+ 12064 , /* 5389 (510) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 26293231, /* 5390 (510) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 3] */
+ 1542946 , /* 5391 (510) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 10691179, /* 5392 (510) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 9, 3] */
+ 1424812 , /* 5393 (510) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 0] */
+ 9273943 , /* 5394 (510) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 3, 3] */
+ 130090 , /* 5395 (510) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 6] */
+ 27710359, /* 5396 (510) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 3] */
+ 18557870, /* 5397 (510) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 26402801, /* 5398 (510) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 1420376 , /* 5399 (510) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 27705767, /* 5400 (510) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 18439608, /* 5401 (510) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 27819489, /* 5402 (510) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 9] */
+ 1538634 , /* 5403 (510) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 26289075, /* 5404 (510) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 3] */
+ 18552202, /* 5405 (510) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 27704479, /* 5406 (510) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 9, 3] */
+ 128422 , /* 5407 (510) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 6] */
+ 10816609, /* 5408 (510) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 9] */
+ 1544626 , /* 5409 (510) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27821101, /* 5410 (510) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 9, 9] */
+ 17133082, /* 5411 (510) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 10697071, /* 5412 (510) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 9, 3] */
+ 18553450, /* 5413 (510) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 10822393, /* 5414 (510) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 9] */
+ 17013784, /* 5415 (510) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 0] */
+ 26398213, /* 5416 (510) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 3, 9] */
+ 17131846, /* 5417 (510) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 27815329, /* 5418 (510) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 9, 9] */
+ 18435280, /* 5419 (510) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 9405169 , /* 5420 (510) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 9] */
+ 16484 , /* 5421 (511) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 5422 (511) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 5423 (511) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 5424 (511) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 5425 (511) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 5426 (511) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 5427 (511) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 5428 (511) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 5429 (511) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9184 , /* 5430 (511) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5431 (511) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9040 , /* 5432 (511) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5433 (511) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10660 , /* 5434 (511) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5435 (511) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10480 , /* 5436 (511) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5437 (511) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 3256 , /* 5438 (511) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 7672 , /* 5439 (511) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 16372 , /* 5440 (511) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 7636 , /* 5441 (511) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 16432 , /* 5442 (511) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 11992 , /* 5443 (511) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 3304 , /* 5444 (511) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 16484 , /* 5445 (512) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 5446 (512) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 5447 (512) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 5448 (512) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 5449 (512) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 5450 (512) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 5451 (512) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 5452 (512) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 5453 (512) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9184 , /* 5454 (512) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5455 (512) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9040 , /* 5456 (512) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5457 (512) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10660 , /* 5458 (512) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5459 (512) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10480 , /* 5460 (512) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5461 (512) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 3256 , /* 5462 (512) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 7672 , /* 5463 (512) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 16372 , /* 5464 (512) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 7636 , /* 5465 (512) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 16432 , /* 5466 (512) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 11992 , /* 5467 (512) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 3304 , /* 5468 (512) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 1551758 , /* 5469 (512) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1547058 , /* 5470 (512) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 5471 (512) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1543170 , /* 5472 (512) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 5473 (512) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1547546 , /* 5474 (512) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 5475 (512) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1542686 , /* 5476 (512) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1546090 , /* 5477 (512) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544458 , /* 5478 (512) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 6] */
+ 1545598 , /* 5479 (512) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544314 , /* 5480 (512) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 6, 6] */
+ 1544626 , /* 5481 (512) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545934 , /* 5482 (512) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 1544146 , /* 5483 (512) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1545754 , /* 5484 (512) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 1547338 , /* 5485 (512) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1538530 , /* 5486 (512) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 6] */
+ 1542946 , /* 5487 (512) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1551646 , /* 5488 (512) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 1542910 , /* 5489 (512) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1551706 , /* 5490 (512) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 1547266 , /* 5491 (512) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1538578 , /* 5492 (512) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 6] */
+ 17140694, /* 5493 (512) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17135994, /* 5494 (512) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 5495 (512) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17132106, /* 5496 (512) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 5497 (512) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17136482, /* 5498 (512) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 5499 (512) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17131622, /* 5500 (512) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135026, /* 5501 (512) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133394, /* 5502 (512) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 6] */
+ 17134534, /* 5503 (512) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133250, /* 5504 (512) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 0, 6] */
+ 17133562, /* 5505 (512) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134870, /* 5506 (512) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 6] */
+ 17133082, /* 5507 (512) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17134690, /* 5508 (512) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 6] */
+ 17136274, /* 5509 (512) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17127466, /* 5510 (512) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 6] */
+ 17131882, /* 5511 (512) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17140582, /* 5512 (512) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 6] */
+ 17131846, /* 5513 (512) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17140642, /* 5514 (512) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 6] */
+ 17136202, /* 5515 (512) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17127514, /* 5516 (512) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 6] */
+ 18439772, /* 5517 (512) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435072, /* 5518 (512) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18426488, /* 5519 (512) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18431184, /* 5520 (512) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 5521 (512) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 5522 (512) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 5523 (512) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 5524 (512) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18434104, /* 5525 (512) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432472, /* 5526 (512) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 0] */
+ 18433612, /* 5527 (512) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432328, /* 5528 (512) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 0] */
+ 18432640, /* 5529 (512) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433948, /* 5530 (512) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 0] */
+ 18432160, /* 5531 (512) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18433768, /* 5532 (512) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 0] */
+ 18435352, /* 5533 (512) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18426544, /* 5534 (512) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 0] */
+ 18430960, /* 5535 (512) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18439660, /* 5536 (512) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 0] */
+ 18430924, /* 5537 (512) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18439720, /* 5538 (512) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 0] */
+ 18435280, /* 5539 (512) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18426592, /* 5540 (512) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 0] */
+ 16484 , /* 5541 (513) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 5542 (513) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 5543 (513) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 5544 (513) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 5545 (513) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 5546 (513) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 5547 (513) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 5548 (513) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 5549 (513) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9184 , /* 5550 (513) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5551 (513) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9040 , /* 5552 (513) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5553 (513) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10660 , /* 5554 (513) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5555 (513) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10480 , /* 5556 (513) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5557 (513) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 3256 , /* 5558 (513) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 7672 , /* 5559 (513) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 16372 , /* 5560 (513) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 7636 , /* 5561 (513) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 16432 , /* 5562 (513) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 11992 , /* 5563 (513) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 3304 , /* 5564 (513) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 18557870, /* 5565 (513) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 5566 (513) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 5567 (513) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 5568 (513) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 5569 (513) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 5570 (513) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 5571 (513) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 5572 (513) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18552202, /* 5573 (513) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550570, /* 5574 (513) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18551710, /* 5575 (513) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550426, /* 5576 (513) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550738, /* 5577 (513) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18552046, /* 5578 (513) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550258, /* 5579 (513) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18551866, /* 5580 (513) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18553450, /* 5581 (513) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18544642, /* 5582 (513) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18549058, /* 5583 (513) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18557758, /* 5584 (513) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18549022, /* 5585 (513) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18557818, /* 5586 (513) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18553378, /* 5587 (513) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18544690, /* 5588 (513) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 16484 , /* 5589 (514) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553170, /* 5590 (514) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3200 , /* 5591 (514) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549282, /* 5592 (514) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16320 , /* 5593 (514) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18553658, /* 5594 (514) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3360 , /* 5595 (514) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18548798, /* 5596 (514) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 10816 , /* 5597 (514) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18550570, /* 5598 (514) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 10324 , /* 5599 (514) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18550426, /* 5600 (514) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 9352 , /* 5601 (514) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18552046, /* 5602 (514) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 8872 , /* 5603 (514) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18551866, /* 5604 (514) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 12064 , /* 5605 (514) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 18544642, /* 5606 (514) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 7672 , /* 5607 (514) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 18557758, /* 5608 (514) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 7636 , /* 5609 (514) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 18557818, /* 5610 (514) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 11992 , /* 5611 (514) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18544690, /* 5612 (514) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 16484 , /* 5613 (515) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 129882 , /* 5614 (515) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3200 , /* 5615 (515) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 125994 , /* 5616 (515) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 5617 (515) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 130370 , /* 5618 (515) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 5619 (515) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 125510 , /* 5620 (515) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 10816 , /* 5621 (515) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 17015296, /* 5622 (515) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 0] */
+ 10324 , /* 5623 (515) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 17015152, /* 5624 (515) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 0, 0] */
+ 9352 , /* 5625 (515) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 17016772, /* 5626 (515) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 0] */
+ 8872 , /* 5627 (515) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 17016592, /* 5628 (515) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 0] */
+ 12064 , /* 5629 (515) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 1420432 , /* 5630 (515) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 0] */
+ 7672 , /* 5631 (515) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 1433548 , /* 5632 (515) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 0] */
+ 7636 , /* 5633 (515) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 1433608 , /* 5634 (515) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 0] */
+ 11992 , /* 5635 (515) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 1420480 , /* 5636 (515) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 0] */
+ 1551758 , /* 5637 (515) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1428960 , /* 5638 (515) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1538474 , /* 5639 (515) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1425072 , /* 5640 (515) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 5641 (515) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1429448 , /* 5642 (515) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1538634 , /* 5643 (515) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1424588 , /* 5644 (515) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1546090 , /* 5645 (515) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 18550570, /* 5646 (515) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 1545598 , /* 5647 (515) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 18550426, /* 5648 (515) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 1544626 , /* 5649 (515) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 18552046, /* 5650 (515) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 1544146 , /* 5651 (515) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 18551866, /* 5652 (515) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 1547338 , /* 5653 (515) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 121354 , /* 5654 (515) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 6] */
+ 1542946 , /* 5655 (515) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 134470 , /* 5656 (515) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 6] */
+ 1542910 , /* 5657 (515) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 134530 , /* 5658 (515) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 6] */
+ 1547266 , /* 5659 (515) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 121402 , /* 5660 (515) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 6] */
+ 17140694, /* 5661 (515) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17017896, /* 5662 (515) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17127410, /* 5663 (515) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17014008, /* 5664 (515) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17140530, /* 5665 (515) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17018384, /* 5666 (515) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17127570, /* 5667 (515) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17013524, /* 5668 (515) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17135026, /* 5669 (515) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 127282 , /* 5670 (515) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 6] */
+ 17134534, /* 5671 (515) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 127138 , /* 5672 (515) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 6] */
+ 17133562, /* 5673 (515) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 128758 , /* 5674 (515) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 6] */
+ 17133082, /* 5675 (515) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 128578 , /* 5676 (515) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 6] */
+ 17136274, /* 5677 (515) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 18544642, /* 5678 (515) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 17131882, /* 5679 (515) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 18557758, /* 5680 (515) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 17131846, /* 5681 (515) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 18557818, /* 5682 (515) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 17136202, /* 5683 (515) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 18544690, /* 5684 (515) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 18439772, /* 5685 (515) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18553170, /* 5686 (515) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18426488, /* 5687 (515) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18549282, /* 5688 (515) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 5689 (515) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18553658, /* 5690 (515) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 5691 (515) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18548798, /* 5692 (515) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18434104, /* 5693 (515) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 1426360 , /* 5694 (515) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 0] */
+ 18433612, /* 5695 (515) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1426216 , /* 5696 (515) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 6, 0] */
+ 18432640, /* 5697 (515) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1427836 , /* 5698 (515) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 0] */
+ 18432160, /* 5699 (515) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 1427656 , /* 5700 (515) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 0] */
+ 18435352, /* 5701 (515) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 17009368, /* 5702 (515) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 0] */
+ 18430960, /* 5703 (515) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 17022484, /* 5704 (515) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 0] */
+ 18430924, /* 5705 (515) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 17022544, /* 5706 (515) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 0] */
+ 18435280, /* 5707 (515) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 17009416, /* 5708 (515) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 0] */
+ 16484 , /* 5709 (516) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 10699653, /* 5710 (516) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 3] */
+ 1420376 , /* 5711 (516) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 27701877, /* 5712 (516) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 134418 , /* 5713 (516) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 9282965 , /* 5714 (516) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 1538634 , /* 5715 (516) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 26284217, /* 5716 (516) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 3] */
+ 10816 , /* 5717 (516) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9397975 , /* 5718 (516) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 3, 3, 9] */
+ 128422 , /* 5719 (516) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 6] */
+ 10815007, /* 5720 (516) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 3, 9, 9] */
+ 17015464, /* 5721 (516) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 0] */
+ 9281353 , /* 5722 (516) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 3, 3, 3] */
+ 17133082, /* 5723 (516) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 10698349, /* 5724 (516) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 3, 9, 3] */
+ 12064 , /* 5725 (516) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 26280061, /* 5726 (516) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 3] */
+ 17013784, /* 5727 (516) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 0] */
+ 26411275, /* 5728 (516) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 3, 9] */
+ 1424812 , /* 5729 (516) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 0] */
+ 9287125 , /* 5730 (516) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 3, 3] */
+ 18435280, /* 5731 (516) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 9392095 , /* 5732 (516) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 9] */
+ 18557870, /* 5733 (516) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 26406687, /* 5734 (516) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 17127410, /* 5735 (516) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 9396687 , /* 5736 (516) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 9] */
+ 18439608, /* 5737 (516) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 27824351, /* 5738 (516) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 9] */
+ 17009472, /* 5739 (516) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 10813379, /* 5740 (516) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 18552202, /* 5741 (516) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 27703165, /* 5742 (516) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 9, 9, 3] */
+ 18433612, /* 5743 (516) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26285845, /* 5744 (516) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 9, 3, 3] */
+ 1544626 , /* 5745 (516) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27822739, /* 5746 (516) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 9, 9, 9] */
+ 1426048 , /* 5747 (516) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 0] */
+ 26405383, /* 5748 (516) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 9, 3, 9] */
+ 18553450, /* 5749 (516) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 10809223, /* 5750 (516) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 9] */
+ 1542946 , /* 5751 (516) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 10704241, /* 5752 (516) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 9, 3] */
+ 17131846, /* 5753 (516) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 27828511, /* 5754 (516) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 9, 9] */
+ 130090 , /* 5755 (516) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 6] */
+ 27697285, /* 5756 (516) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 3] */
+ 16484 , /* 5757 (517) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 5758 (517) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 5759 (517) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 5760 (517) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 5761 (517) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 5762 (517) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 5763 (517) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 5764 (517) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 5765 (517) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 5766 (517) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 5767 (517) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 5768 (517) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 5769 (517) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 5770 (517) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 5771 (517) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 5772 (517) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 5773 (517) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 5774 (517) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10498 , /* 5775 (517) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9184 , /* 5776 (517) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5777 (517) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 5778 (517) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10642 , /* 5779 (517) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9040 , /* 5780 (517) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5781 (517) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 5782 (517) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9022 , /* 5783 (517) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10660 , /* 5784 (517) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5785 (517) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 5786 (517) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9202 , /* 5787 (517) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 10480 , /* 5788 (517) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5789 (517) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 5790 (517) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16426 , /* 5791 (517) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 3256 , /* 5792 (517) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 7672 , /* 5793 (517) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 5794 (517) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3310 , /* 5795 (517) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 16372 , /* 5796 (517) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 7636 , /* 5797 (517) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 5798 (517) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3250 , /* 5799 (517) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 16432 , /* 5800 (517) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 11992 , /* 5801 (517) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 5802 (517) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16378 , /* 5803 (517) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 3304 , /* 5804 (517) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 16484 , /* 5805 (518) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7898 , /* 5806 (518) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3200 , /* 5807 (518) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 11786 , /* 5808 (518) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 16320 , /* 5809 (518) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7410 , /* 5810 (518) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3360 , /* 5811 (518) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 12270 , /* 5812 (518) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 10816 , /* 5813 (518) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10498 , /* 5814 (518) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 10324 , /* 5815 (518) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10642 , /* 5816 (518) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9352 , /* 5817 (518) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9022 , /* 5818 (518) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 8872 , /* 5819 (518) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9202 , /* 5820 (518) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 12064 , /* 5821 (518) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16426 , /* 5822 (518) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 7672 , /* 5823 (518) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3310 , /* 5824 (518) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 7636 , /* 5825 (518) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3250 , /* 5826 (518) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 11992 , /* 5827 (518) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16378 , /* 5828 (518) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 18544584, /* 5829 (518) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553170, /* 5830 (518) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557868, /* 5831 (518) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18549282, /* 5832 (518) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 5833 (518) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553658, /* 5834 (518) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18557708, /* 5835 (518) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548798, /* 5836 (518) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18550252, /* 5837 (518) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550570, /* 5838 (518) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18550744, /* 5839 (518) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550426, /* 5840 (518) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18551716, /* 5841 (518) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18552046, /* 5842 (518) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18552196, /* 5843 (518) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18551866, /* 5844 (518) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18549004, /* 5845 (518) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18544642, /* 5846 (518) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18553396, /* 5847 (518) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18557758, /* 5848 (518) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18553432, /* 5849 (518) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18557818, /* 5850 (518) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18549076, /* 5851 (518) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18544690, /* 5852 (518) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 16484 , /* 5853 (519) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 5854 (519) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 17014010, /* 5855 (519) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 5856 (519) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 18426488, /* 5857 (519) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 5858 (519) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 1428962 , /* 5859 (519) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 5860 (519) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 5861 (519) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 5862 (519) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 18548796, /* 5863 (519) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 5864 (519) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 17127570, /* 5865 (519) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 5866 (519) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 130368 , /* 5867 (519) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 5868 (519) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 10816 , /* 5869 (519) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 5870 (519) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 1427674 , /* 5871 (519) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 6, 0] */
+ 1426360 , /* 5872 (519) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 0] */
+ 1545598 , /* 5873 (519) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544632 , /* 5874 (519) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 128740 , /* 5875 (519) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 6] */
+ 127138 , /* 5876 (519) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 6] */
+ 17133562, /* 5877 (519) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134540, /* 5878 (519) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 18550408, /* 5879 (519) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18552046, /* 5880 (519) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18432160, /* 5881 (519) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18434098, /* 5882 (519) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 17015314, /* 5883 (519) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 0, 0] */
+ 17016592, /* 5884 (519) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 0] */
+ 12064 , /* 5885 (519) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 5886 (519) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 134524 , /* 5887 (519) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 6] */
+ 121354 , /* 5888 (519) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 6] */
+ 17131882, /* 5889 (519) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136220, /* 5890 (519) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17009422, /* 5891 (519) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 0] */
+ 17022484, /* 5892 (519) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 0] */
+ 18430924, /* 5893 (519) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435334, /* 5894 (519) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18544636, /* 5895 (519) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18557818, /* 5896 (519) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 1547266 , /* 5897 (519) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542964 , /* 5898 (519) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1433554 , /* 5899 (519) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 0] */
+ 1420480 , /* 5900 (519) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 0] */
+ 16484 , /* 5901 (520) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 5902 (520) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18549284, /* 5903 (520) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 5904 (520) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3200 , /* 5905 (520) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 5906 (520) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18553172, /* 5907 (520) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 5908 (520) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 16320 , /* 5909 (520) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 5910 (520) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18548796, /* 5911 (520) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 5912 (520) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3360 , /* 5913 (520) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 5914 (520) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553656, /* 5915 (520) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 5916 (520) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 10816 , /* 5917 (520) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 5918 (520) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18551884, /* 5919 (520) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550570, /* 5920 (520) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 10324 , /* 5921 (520) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 5922 (520) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18552028, /* 5923 (520) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18550426, /* 5924 (520) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 9352 , /* 5925 (520) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 5926 (520) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18550408, /* 5927 (520) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18552046, /* 5928 (520) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 8872 , /* 5929 (520) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 5930 (520) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18550588, /* 5931 (520) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18551866, /* 5932 (520) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 12064 , /* 5933 (520) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 5934 (520) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18557812, /* 5935 (520) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 18544642, /* 5936 (520) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 7672 , /* 5937 (520) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 5938 (520) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 18544696, /* 5939 (520) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18557758, /* 5940 (520) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 7636 , /* 5941 (520) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 5942 (520) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 18544636, /* 5943 (520) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18557818, /* 5944 (520) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 11992 , /* 5945 (520) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 5946 (520) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 18557764, /* 5947 (520) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18544690, /* 5948 (520) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 16484 , /* 5949 (521) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 18549284, /* 5950 (521) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 3200 , /* 5951 (521) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 18553172, /* 5952 (521) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 16320 , /* 5953 (521) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 18548796, /* 5954 (521) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 3360 , /* 5955 (521) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 18553656, /* 5956 (521) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 10816 , /* 5957 (521) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18551884, /* 5958 (521) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 10324 , /* 5959 (521) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18552028, /* 5960 (521) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 9352 , /* 5961 (521) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 18550408, /* 5962 (521) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 8872 , /* 5963 (521) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 18550588, /* 5964 (521) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 12064 , /* 5965 (521) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 18557812, /* 5966 (521) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 7672 , /* 5967 (521) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 18544696, /* 5968 (521) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 7636 , /* 5969 (521) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 18544636, /* 5970 (521) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 11992 , /* 5971 (521) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18557764, /* 5972 (521) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18544584, /* 5973 (521) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 11784 , /* 5974 (521) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18557868, /* 5975 (521) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 7896 , /* 5976 (521) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 18544748, /* 5977 (521) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 12272 , /* 5978 (521) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18557708, /* 5979 (521) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 7412 , /* 5980 (521) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 18550252, /* 5981 (521) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 9184 , /* 5982 (521) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 18550744, /* 5983 (521) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 9040 , /* 5984 (521) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 18551716, /* 5985 (521) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 10660 , /* 5986 (521) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 18552196, /* 5987 (521) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 10480 , /* 5988 (521) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 18549004, /* 5989 (521) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 3256 , /* 5990 (521) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 18553396, /* 5991 (521) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 16372 , /* 5992 (521) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 18553432, /* 5993 (521) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 16432 , /* 5994 (521) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 18549076, /* 5995 (521) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 3304 , /* 5996 (521) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 16484 , /* 5997 (522) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 5998 (522) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 1543172 , /* 5999 (522) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1547058 , /* 6000 (522) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 18426488, /* 6001 (522) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 6002 (522) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 17135996, /* 6003 (522) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17132106, /* 6004 (522) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 1551594 , /* 6005 (522) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 6006 (522) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 7410 , /* 6007 (522) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 6008 (522) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 17127570, /* 6009 (522) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 6010 (522) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 18435558, /* 6011 (522) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 6012 (522) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 10816 , /* 6013 (522) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 6014 (522) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 17134708, /* 6015 (522) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 0, 6] */
+ 17133394, /* 6016 (522) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 6] */
+ 1545598 , /* 6017 (522) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544632 , /* 6018 (522) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 18433930, /* 6019 (522) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 0] */
+ 18432328, /* 6020 (522) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 0] */
+ 17133562, /* 6021 (522) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134540, /* 6022 (522) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 9022 , /* 6023 (522) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10660 , /* 6024 (522) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 18432160, /* 6025 (522) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18434098, /* 6026 (522) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1544476 , /* 6027 (522) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 1545754 , /* 6028 (522) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 12064 , /* 6029 (522) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 6030 (522) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 18439714, /* 6031 (522) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 0] */
+ 18426544, /* 6032 (522) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 0] */
+ 17131882, /* 6033 (522) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136220, /* 6034 (522) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 1538584 , /* 6035 (522) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 1551646 , /* 6036 (522) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 18430924, /* 6037 (522) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435334, /* 6038 (522) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 3250 , /* 6039 (522) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 16432 , /* 6040 (522) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 1547266 , /* 6041 (522) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542964 , /* 6042 (522) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 17140588, /* 6043 (522) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 6] */
+ 17127514, /* 6044 (522) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 6] */
+ 16484 , /* 6045 (523) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 6046 (523) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 6047 (523) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 6048 (523) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 6049 (523) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 6050 (523) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 6051 (523) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 6052 (523) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 6053 (523) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 6054 (523) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 6055 (523) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 6056 (523) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 6057 (523) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 6058 (523) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 6059 (523) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 6060 (523) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 6061 (523) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 6062 (523) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10498 , /* 6063 (523) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9184 , /* 6064 (523) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 10324 , /* 6065 (523) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 6066 (523) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10642 , /* 6067 (523) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9040 , /* 6068 (523) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9352 , /* 6069 (523) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 6070 (523) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9022 , /* 6071 (523) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10660 , /* 6072 (523) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 8872 , /* 6073 (523) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 6074 (523) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9202 , /* 6075 (523) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 10480 , /* 6076 (523) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 12064 , /* 6077 (523) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 6078 (523) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16426 , /* 6079 (523) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 3256 , /* 6080 (523) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 7672 , /* 6081 (523) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 6082 (523) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3310 , /* 6083 (523) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 16372 , /* 6084 (523) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 7636 , /* 6085 (523) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 6086 (523) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3250 , /* 6087 (523) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 16432 , /* 6088 (523) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 11992 , /* 6089 (523) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 6090 (523) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16378 , /* 6091 (523) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 3304 , /* 6092 (523) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 1551758 , /* 6093 (523) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 6094 (523) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1543172 , /* 6095 (523) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1547058 , /* 6096 (523) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1538474 , /* 6097 (523) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 6098 (523) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1547060 , /* 6099 (523) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1543170 , /* 6100 (523) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1551594 , /* 6101 (523) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 6102 (523) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1542684 , /* 6103 (523) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1547546 , /* 6104 (523) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1538634 , /* 6105 (523) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 6106 (523) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1547544 , /* 6107 (523) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1542686 , /* 6108 (523) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 1546090 , /* 6109 (523) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544140 , /* 6110 (523) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545772 , /* 6111 (523) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 6, 6] */
+ 1544458 , /* 6112 (523) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 6] */
+ 1545598 , /* 6113 (523) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544632 , /* 6114 (523) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1545916 , /* 6115 (523) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 6, 6] */
+ 1544314 , /* 6116 (523) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 6, 6] */
+ 1544626 , /* 6117 (523) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545604 , /* 6118 (523) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544296 , /* 6119 (523) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 1545934 , /* 6120 (523) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 1544146 , /* 6121 (523) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1546084 , /* 6122 (523) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544476 , /* 6123 (523) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 1545754 , /* 6124 (523) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 1547338 , /* 6125 (523) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542892 , /* 6126 (523) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1551700 , /* 6127 (523) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 6] */
+ 1538530 , /* 6128 (523) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 6] */
+ 1542946 , /* 6129 (523) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547284 , /* 6130 (523) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1538584 , /* 6131 (523) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 1551646 , /* 6132 (523) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 1542910 , /* 6133 (523) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1547320 , /* 6134 (523) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1538524 , /* 6135 (523) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 1551706 , /* 6136 (523) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 1547266 , /* 6137 (523) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542964 , /* 6138 (523) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1551652 , /* 6139 (523) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 6] */
+ 1538578 , /* 6140 (523) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 6] */
+ 17140694, /* 6141 (523) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 6142 (523) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17132108, /* 6143 (523) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135994, /* 6144 (523) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17127410, /* 6145 (523) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 6146 (523) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17135996, /* 6147 (523) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17132106, /* 6148 (523) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17140530, /* 6149 (523) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 6150 (523) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17131620, /* 6151 (523) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17136482, /* 6152 (523) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17127570, /* 6153 (523) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 6154 (523) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17136480, /* 6155 (523) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17131622, /* 6156 (523) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 17135026, /* 6157 (523) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133076, /* 6158 (523) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134708, /* 6159 (523) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 0, 6] */
+ 17133394, /* 6160 (523) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 6] */
+ 17134534, /* 6161 (523) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133568, /* 6162 (523) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17134852, /* 6163 (523) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 0, 6] */
+ 17133250, /* 6164 (523) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 0, 6] */
+ 17133562, /* 6165 (523) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134540, /* 6166 (523) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133232, /* 6167 (523) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 0, 6] */
+ 17134870, /* 6168 (523) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 6] */
+ 17133082, /* 6169 (523) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17135020, /* 6170 (523) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133412, /* 6171 (523) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 0, 6] */
+ 17134690, /* 6172 (523) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 6] */
+ 17136274, /* 6173 (523) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131828, /* 6174 (523) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17140636, /* 6175 (523) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 6] */
+ 17127466, /* 6176 (523) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 6] */
+ 17131882, /* 6177 (523) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136220, /* 6178 (523) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17127520, /* 6179 (523) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 6] */
+ 17140582, /* 6180 (523) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 6] */
+ 17131846, /* 6181 (523) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136256, /* 6182 (523) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17127460, /* 6183 (523) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 6] */
+ 17140642, /* 6184 (523) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 6] */
+ 17136202, /* 6185 (523) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17131900, /* 6186 (523) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17140588, /* 6187 (523) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 6] */
+ 17127514, /* 6188 (523) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 6] */
+ 18439772, /* 6189 (523) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 6190 (523) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18431186, /* 6191 (523) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18435072, /* 6192 (523) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18426488, /* 6193 (523) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 6194 (523) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18435074, /* 6195 (523) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18431184, /* 6196 (523) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18439608, /* 6197 (523) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 6198 (523) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18430698, /* 6199 (523) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 6200 (523) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18426648, /* 6201 (523) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 6202 (523) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18435558, /* 6203 (523) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18430700, /* 6204 (523) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 18434104, /* 6205 (523) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432154, /* 6206 (523) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433786, /* 6207 (523) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 0] */
+ 18432472, /* 6208 (523) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 0] */
+ 18433612, /* 6209 (523) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432646, /* 6210 (523) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18433930, /* 6211 (523) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 0] */
+ 18432328, /* 6212 (523) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 0] */
+ 18432640, /* 6213 (523) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433618, /* 6214 (523) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432310, /* 6215 (523) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 0] */
+ 18433948, /* 6216 (523) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 0] */
+ 18432160, /* 6217 (523) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18434098, /* 6218 (523) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432490, /* 6219 (523) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 0] */
+ 18433768, /* 6220 (523) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 0] */
+ 18435352, /* 6221 (523) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430906, /* 6222 (523) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18439714, /* 6223 (523) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 0] */
+ 18426544, /* 6224 (523) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 0] */
+ 18430960, /* 6225 (523) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18435298, /* 6226 (523) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18426598, /* 6227 (523) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 0] */
+ 18439660, /* 6228 (523) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 0] */
+ 18430924, /* 6229 (523) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435334, /* 6230 (523) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18426538, /* 6231 (523) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 0] */
+ 18439720, /* 6232 (523) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 0] */
+ 18435280, /* 6233 (523) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430978, /* 6234 (523) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18439666, /* 6235 (523) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 0] */
+ 18426592, /* 6236 (523) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 0] */
+ 16484 , /* 6237 (524) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 6238 (524) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 125996 , /* 6239 (524) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 129882 , /* 6240 (524) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 3200 , /* 6241 (524) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 6242 (524) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 129884 , /* 6243 (524) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 125994 , /* 6244 (524) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 16320 , /* 6245 (524) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 6246 (524) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 125508 , /* 6247 (524) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 6248 (524) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 3360 , /* 6249 (524) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 6250 (524) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 130368 , /* 6251 (524) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 125510 , /* 6252 (524) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 10816 , /* 6253 (524) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 6254 (524) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 17016610, /* 6255 (524) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 0, 0] */
+ 17015296, /* 6256 (524) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 0] */
+ 10324 , /* 6257 (524) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 6258 (524) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 17016754, /* 6259 (524) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 0, 0] */
+ 17015152, /* 6260 (524) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 0, 0] */
+ 9352 , /* 6261 (524) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 6262 (524) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 17015134, /* 6263 (524) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 0, 0] */
+ 17016772, /* 6264 (524) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 0] */
+ 8872 , /* 6265 (524) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 6266 (524) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 17015314, /* 6267 (524) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 0, 0] */
+ 17016592, /* 6268 (524) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 0] */
+ 12064 , /* 6269 (524) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 6270 (524) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 1433602 , /* 6271 (524) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 0] */
+ 1420432 , /* 6272 (524) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 0] */
+ 7672 , /* 6273 (524) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 6274 (524) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 1420486 , /* 6275 (524) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 0] */
+ 1433548 , /* 6276 (524) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 0] */
+ 7636 , /* 6277 (524) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 6278 (524) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 1420426 , /* 6279 (524) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 0] */
+ 1433608 , /* 6280 (524) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 0] */
+ 11992 , /* 6281 (524) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 6282 (524) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 1433554 , /* 6283 (524) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 0] */
+ 1420480 , /* 6284 (524) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 0] */
+ 1551758 , /* 6285 (524) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 6286 (524) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1425074 , /* 6287 (524) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1428960 , /* 6288 (524) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1538474 , /* 6289 (524) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1551756 , /* 6290 (524) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1428962 , /* 6291 (524) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1425072 , /* 6292 (524) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1551594 , /* 6293 (524) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 1538636 , /* 6294 (524) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1424586 , /* 6295 (524) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1429448 , /* 6296 (524) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1538634 , /* 6297 (524) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 6298 (524) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 1429446 , /* 6299 (524) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1424588 , /* 6300 (524) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 1546090 , /* 6301 (524) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544140 , /* 6302 (524) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 18551884, /* 6303 (524) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550570, /* 6304 (524) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 1545598 , /* 6305 (524) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1544632 , /* 6306 (524) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 18552028, /* 6307 (524) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18550426, /* 6308 (524) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 1544626 , /* 6309 (524) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545604 , /* 6310 (524) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 18550408, /* 6311 (524) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18552046, /* 6312 (524) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 1544146 , /* 6313 (524) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1546084 , /* 6314 (524) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 18550588, /* 6315 (524) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18551866, /* 6316 (524) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 1547338 , /* 6317 (524) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542892 , /* 6318 (524) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 134524 , /* 6319 (524) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 6] */
+ 121354 , /* 6320 (524) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 6] */
+ 1542946 , /* 6321 (524) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547284 , /* 6322 (524) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 121408 , /* 6323 (524) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 6] */
+ 134470 , /* 6324 (524) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 6] */
+ 1542910 , /* 6325 (524) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 1547320 , /* 6326 (524) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 121348 , /* 6327 (524) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 6] */
+ 134530 , /* 6328 (524) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 6] */
+ 1547266 , /* 6329 (524) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 1542964 , /* 6330 (524) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 134476 , /* 6331 (524) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 6] */
+ 121402 , /* 6332 (524) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 6] */
+ 17140694, /* 6333 (524) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 6334 (524) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17014010, /* 6335 (524) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17017896, /* 6336 (524) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17127410, /* 6337 (524) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 6338 (524) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17017898, /* 6339 (524) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17014008, /* 6340 (524) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17140530, /* 6341 (524) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17127572, /* 6342 (524) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17013522, /* 6343 (524) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17018384, /* 6344 (524) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17127570, /* 6345 (524) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 17140532, /* 6346 (524) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17018382, /* 6347 (524) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17013524, /* 6348 (524) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 17135026, /* 6349 (524) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133076, /* 6350 (524) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 128596 , /* 6351 (524) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 6] */
+ 127282 , /* 6352 (524) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 6] */
+ 17134534, /* 6353 (524) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17133568, /* 6354 (524) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 128740 , /* 6355 (524) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 6] */
+ 127138 , /* 6356 (524) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 6] */
+ 17133562, /* 6357 (524) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 17134540, /* 6358 (524) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 127120 , /* 6359 (524) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 6] */
+ 128758 , /* 6360 (524) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 6] */
+ 17133082, /* 6361 (524) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17135020, /* 6362 (524) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 127300 , /* 6363 (524) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 6] */
+ 128578 , /* 6364 (524) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 6] */
+ 17136274, /* 6365 (524) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131828, /* 6366 (524) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 18557812, /* 6367 (524) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 18544642, /* 6368 (524) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 17131882, /* 6369 (524) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 17136220, /* 6370 (524) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 18544696, /* 6371 (524) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18557758, /* 6372 (524) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 17131846, /* 6373 (524) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136256, /* 6374 (524) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 18544636, /* 6375 (524) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18557818, /* 6376 (524) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 17136202, /* 6377 (524) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 17131900, /* 6378 (524) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 18557764, /* 6379 (524) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18544690, /* 6380 (524) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 18439772, /* 6381 (524) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 6382 (524) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18549284, /* 6383 (524) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 6384 (524) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18426488, /* 6385 (524) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18439770, /* 6386 (524) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18553172, /* 6387 (524) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 6388 (524) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18439608, /* 6389 (524) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 6390 (524) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18548796, /* 6391 (524) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 6392 (524) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18426648, /* 6393 (524) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 18439610, /* 6394 (524) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 18553656, /* 6395 (524) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 6396 (524) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18434104, /* 6397 (524) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432154, /* 6398 (524) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1427674 , /* 6399 (524) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 6, 0] */
+ 1426360 , /* 6400 (524) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 0] */
+ 18433612, /* 6401 (524) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432646, /* 6402 (524) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 1427818 , /* 6403 (524) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 6, 0] */
+ 1426216 , /* 6404 (524) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 6, 0] */
+ 18432640, /* 6405 (524) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18433618, /* 6406 (524) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 1426198 , /* 6407 (524) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 6, 0] */
+ 1427836 , /* 6408 (524) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 0] */
+ 18432160, /* 6409 (524) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18434098, /* 6410 (524) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 1426378 , /* 6411 (524) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 6, 0] */
+ 1427656 , /* 6412 (524) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 0] */
+ 18435352, /* 6413 (524) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430906, /* 6414 (524) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 17022538, /* 6415 (524) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 0] */
+ 17009368, /* 6416 (524) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 0] */
+ 18430960, /* 6417 (524) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 18435298, /* 6418 (524) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 17009422, /* 6419 (524) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 0] */
+ 17022484, /* 6420 (524) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 0] */
+ 18430924, /* 6421 (524) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 18435334, /* 6422 (524) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 17009362, /* 6423 (524) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 0] */
+ 17022544, /* 6424 (524) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 0] */
+ 18435280, /* 6425 (524) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430978, /* 6426 (524) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 17022490, /* 6427 (524) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 0] */
+ 17009416, /* 6428 (524) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 0] */
+ 16484 , /* 6429 (525) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 9278591 , /* 6430 (525) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 1538474 , /* 6431 (525) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 26406689, /* 6432 (525) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 16320 , /* 6433 (525) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10813377, /* 6434 (525) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 1538634 , /* 6435 (525) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 27706251, /* 6436 (525) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 10816 , /* 6437 (525) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9281191 , /* 6438 (525) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 3, 3] */
+ 17134534, /* 6439 (525) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 27704623, /* 6440 (525) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 9, 3] */
+ 9352 , /* 6441 (525) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 26403925, /* 6442 (525) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 3, 9] */
+ 17133082, /* 6443 (525) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 10815169, /* 6444 (525) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 9, 9] */
+ 12064 , /* 6445 (525) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 9287119 , /* 6446 (525) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 3] */
+ 18430960, /* 6447 (525) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 10809277, /* 6448 (525) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 9, 9] */
+ 7636 , /* 6449 (525) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 27697231, /* 6450 (525) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 9, 3] */
+ 18435280, /* 6451 (525) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 26411281, /* 6452 (525) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 9] */
+ 9273891 , /* 6453 (525) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 3, 3] */
+ 11784 , /* 6454 (525) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 10822449, /* 6455 (525) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 9] */
+ 17132106, /* 6456 (525) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 9274055 , /* 6457 (525) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 3, 3] */
+ 1547546 , /* 6458 (525) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 10822289, /* 6459 (525) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 9] */
+ 18430700, /* 6460 (525) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 9279559 , /* 6461 (525) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 3, 3, 3] */
+ 9184 , /* 6462 (525) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 26404261, /* 6463 (525) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 9, 3, 9] */
+ 18432328, /* 6464 (525) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 0] */
+ 9281023 , /* 6465 (525) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 3, 3] */
+ 17134870, /* 6466 (525) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 6] */
+ 26405713, /* 6467 (525) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 3, 9] */
+ 1545754 , /* 6468 (525) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 9278311 , /* 6469 (525) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 3, 3, 3] */
+ 3256 , /* 6470 (525) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 27705991, /* 6471 (525) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 9, 3] */
+ 1551646 , /* 6472 (525) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 9282739 , /* 6473 (525) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 3, 3] */
+ 18439720, /* 6474 (525) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 0] */
+ 27701671, /* 6475 (525) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 9, 9, 3] */
+ 17127514, /* 6476 (525) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 6] */
+ 1551758 , /* 6477 (525) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 10813865, /* 6478 (525) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 3200 , /* 6479 (525) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 27705767, /* 6480 (525) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 1551594 , /* 6481 (525) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 9278103 , /* 6482 (525) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 3360 , /* 6483 (525) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 26407173, /* 6484 (525) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 1546090 , /* 6485 (525) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 10816465, /* 6486 (525) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 9, 9] */
+ 18433612, /* 6487 (525) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26405545, /* 6488 (525) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 9] */
+ 1544626 , /* 6489 (525) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27703003, /* 6490 (525) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 9, 3] */
+ 18432160, /* 6491 (525) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 9279895 , /* 6492 (525) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 3, 3] */
+ 1547338 , /* 6493 (525) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 10822393, /* 6494 (525) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 9] */
+ 17131882, /* 6495 (525) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 9274003 , /* 6496 (525) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 3, 3] */
+ 1542910 , /* 6497 (525) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 26398153, /* 6498 (525) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 3, 9] */
+ 17136202, /* 6499 (525) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 27710359, /* 6500 (525) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 3] */
+ 10809165, /* 6501 (525) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 9, 9] */
+ 1547058 , /* 6502 (525) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 9287175 , /* 6503 (525) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 3] */
+ 18431184, /* 6504 (525) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 10809329, /* 6505 (525) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 9, 9] */
+ 12272 , /* 6506 (525) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 9287015 , /* 6507 (525) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 3] */
+ 17131622, /* 6508 (525) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 10814833, /* 6509 (525) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 3, 9, 9] */
+ 1544458 , /* 6510 (525) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 6] */
+ 27703339, /* 6511 (525) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 9, 9, 3] */
+ 17133250, /* 6512 (525) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 0, 6] */
+ 10816297, /* 6513 (525) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 9, 9] */
+ 18433948, /* 6514 (525) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 0] */
+ 27704791, /* 6515 (525) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 9, 3] */
+ 10480 , /* 6516 (525) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10813585, /* 6517 (525) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 3, 9, 9] */
+ 1538530 , /* 6518 (525) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 6] */
+ 26406913, /* 6519 (525) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 3, 9] */
+ 16372 , /* 6520 (525) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 10818013, /* 6521 (525) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 9, 9] */
+ 17140642, /* 6522 (525) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 6] */
+ 26402593, /* 6523 (525) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 9, 3, 9] */
+ 18426592, /* 6524 (525) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 0] */
+ 17140694, /* 6525 (525) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 26402801, /* 6526 (525) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 18426488, /* 6527 (525) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 9282479 , /* 6528 (525) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 17140530, /* 6529 (525) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 27701391, /* 6530 (525) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 18426648, /* 6531 (525) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 10818237, /* 6532 (525) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 17135026, /* 6533 (525) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 26405401, /* 6534 (525) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 3, 9] */
+ 10324 , /* 6535 (525) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10816609, /* 6536 (525) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 9] */
+ 17133562, /* 6537 (525) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 9279715 , /* 6538 (525) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 3, 3] */
+ 8872 , /* 6539 (525) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 27703183, /* 6540 (525) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 9, 3] */
+ 17136274, /* 6541 (525) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 26411329, /* 6542 (525) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 9] */
+ 1542946 , /* 6543 (525) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 27697291, /* 6544 (525) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 9, 3] */
+ 17131846, /* 6545 (525) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 10809217, /* 6546 (525) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 9, 9] */
+ 1547266 , /* 6547 (525) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 9287071 , /* 6548 (525) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 3] */
+ 26398101, /* 6549 (525) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 3, 9] */
+ 17135994, /* 6550 (525) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 27710463, /* 6551 (525) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 3] */
+ 7896 , /* 6552 (525) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 26398265, /* 6553 (525) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 3, 9] */
+ 18435560, /* 6554 (525) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 27710303, /* 6555 (525) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 3] */
+ 1542686 , /* 6556 (525) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 26403769, /* 6557 (525) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 9, 3, 9] */
+ 17133394, /* 6558 (525) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 6] */
+ 9280051 , /* 6559 (525) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 3, 3, 3] */
+ 1544314 , /* 6560 (525) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 6, 6] */
+ 26405233, /* 6561 (525) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 3, 9] */
+ 10660 , /* 6562 (525) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 9281503 , /* 6563 (525) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 3, 3] */
+ 18433768, /* 6564 (525) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 0] */
+ 26402521, /* 6565 (525) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 9, 3, 9] */
+ 17127466, /* 6566 (525) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 6] */
+ 10817977, /* 6567 (525) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 9, 9] */
+ 18439660, /* 6568 (525) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 0] */
+ 26406949, /* 6569 (525) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 3, 9] */
+ 1551706 , /* 6570 (525) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 10813657, /* 6571 (525) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 3, 9, 9] */
+ 3304 , /* 6572 (525) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 18439772, /* 6573 (525) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 27701879, /* 6574 (525) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 17127410, /* 6575 (525) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 10817753, /* 6576 (525) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 18439608, /* 6577 (525) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 26402313, /* 6578 (525) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 17127570, /* 6579 (525) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 9282963 , /* 6580 (525) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 18434104, /* 6581 (525) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 27704479, /* 6582 (525) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 9, 3] */
+ 1545598 , /* 6583 (525) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 9281335 , /* 6584 (525) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 3, 3] */
+ 18432640, /* 6585 (525) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 10814989, /* 6586 (525) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 9, 9] */
+ 1544146 , /* 6587 (525) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 26404105, /* 6588 (525) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 3, 9] */
+ 18435352, /* 6589 (525) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 27710407, /* 6590 (525) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 3] */
+ 7672 , /* 6591 (525) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 26398213, /* 6592 (525) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 3, 9] */
+ 18430924, /* 6593 (525) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 9273943 , /* 6594 (525) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 3, 3] */
+ 11992 , /* 6595 (525) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 10822345, /* 6596 (525) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 9] */
+ 27697179, /* 6597 (525) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 9, 3] */
+ 18435072, /* 6598 (525) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 26411385, /* 6599 (525) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 9] */
+ 1543170 , /* 6600 (525) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 27697343, /* 6601 (525) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 9, 3] */
+ 17136482, /* 6602 (525) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 26411225, /* 6603 (525) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 9] */
+ 7412 , /* 6604 (525) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 27702847, /* 6605 (525) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 9, 9, 3] */
+ 18432472, /* 6606 (525) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 0] */
+ 10815325, /* 6607 (525) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 3, 9, 9] */
+ 9040 , /* 6608 (525) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 27704311, /* 6609 (525) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 9, 3] */
+ 1545934 , /* 6610 (525) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 10816777, /* 6611 (525) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 9, 9] */
+ 17134690, /* 6612 (525) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 6] */
+ 27701599, /* 6613 (525) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 9, 9, 3] */
+ 18426544, /* 6614 (525) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 0] */
+ 9282703 , /* 6615 (525) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 3, 3] */
+ 17140582, /* 6616 (525) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 6] */
+ 27706027, /* 6617 (525) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 9, 3] */
+ 16432 , /* 6618 (525) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 9278383 , /* 6619 (525) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 3, 3, 3] */
+ 1538578 , /* 6620 (525) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 6] */
+ 16484 , /* 6621 (526) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 6622 (526) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 775535 , /* 6623 (526) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 3, 3] */
+ 779421 , /* 6624 (526) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 3, 3] */
+ 26339054, /* 6625 (526) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 6] */
+ 26352336, /* 6626 (526) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 6] */
+ 25698101, /* 6627 (526) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 0, 9] */
+ 25694211, /* 6628 (526) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 0, 9] */
+ 783957 , /* 6629 (526) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 3, 3] */
+ 770999 , /* 6630 (526) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 3] */
+ 7410 , /* 6631 (526) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 6632 (526) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 25689675, /* 6633 (526) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 0, 9] */
+ 25702637, /* 6634 (526) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 0, 9] */
+ 26348124, /* 6635 (526) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 6] */
+ 26343266, /* 6636 (526) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 6] */
+ 10816 , /* 6637 (526) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 6638 (526) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 8572603 , /* 6639 (526) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 0, 3] */
+ 8571289 , /* 6640 (526) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 3, 0, 3] */
+ 19201249, /* 6641 (526) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 9, 3] */
+ 19200283, /* 6642 (526) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 9, 3] */
+ 27645574, /* 6643 (526) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 9, 0] */
+ 27643972, /* 6644 (526) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 9, 9, 0] */
+ 8571457 , /* 6645 (526) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 3, 0, 3] */
+ 8572435 , /* 6646 (526) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 0, 3] */
+ 9022 , /* 6647 (526) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10660 , /* 6648 (526) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 27643804, /* 6649 (526) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 9, 9, 0] */
+ 27645742, /* 6650 (526) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 9, 0] */
+ 19200127, /* 6651 (526) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 9, 3] */
+ 19201405, /* 6652 (526) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 9, 3] */
+ 12064 , /* 6653 (526) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 6654 (526) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 9228070 , /* 6655 (526) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 0] */
+ 9214900 , /* 6656 (526) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 0] */
+ 10105051, /* 6657 (526) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 3, 6, 9] */
+ 10109389, /* 6658 (526) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 6, 9] */
+ 2306221 , /* 6659 (526) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 9, 9] */
+ 2319283 , /* 6660 (526) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 9, 9] */
+ 9219280 , /* 6661 (526) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 3, 3, 0] */
+ 9223690 , /* 6662 (526) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 3, 0] */
+ 3250 , /* 6663 (526) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 16432 , /* 6664 (526) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 2314903 , /* 6665 (526) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 9, 9] */
+ 2310601 , /* 6666 (526) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 9, 9] */
+ 10113757, /* 6667 (526) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 6, 9] */
+ 10100683, /* 6668 (526) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 6, 9] */
+ 1551758 , /* 6669 (526) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 6670 (526) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 2310809 , /* 6671 (526) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 9, 9] */
+ 2314695 , /* 6672 (526) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 9, 9] */
+ 27638132, /* 6673 (526) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 0] */
+ 27651414, /* 6674 (526) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 0] */
+ 26997179, /* 6675 (526) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 6, 3] */
+ 26993289, /* 6676 (526) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 6, 3] */
+ 2319231 , /* 6677 (526) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 9, 9] */
+ 2306273 , /* 6678 (526) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 9] */
+ 1542684 , /* 6679 (526) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 6] */
+ 1547546 , /* 6680 (526) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 6] */
+ 26988753, /* 6681 (526) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 6, 3] */
+ 27001715, /* 6682 (526) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 6, 3] */
+ 27647202, /* 6683 (526) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 0] */
+ 27642344, /* 6684 (526) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 0] */
+ 1546090 , /* 6685 (526) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544140 , /* 6686 (526) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 10107877, /* 6687 (526) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 6, 9] */
+ 10106563, /* 6688 (526) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 3, 6, 9] */
+ 17902171, /* 6689 (526) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 3, 9] */
+ 17901205, /* 6690 (526) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 3, 9] */
+ 26346496, /* 6691 (526) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 6] */
+ 26344894, /* 6692 (526) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 9, 3, 6] */
+ 10106731, /* 6693 (526) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 3, 6, 9] */
+ 10107709, /* 6694 (526) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 6, 9] */
+ 1544296 , /* 6695 (526) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 6, 6] */
+ 1545934 , /* 6696 (526) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 6] */
+ 26344726, /* 6697 (526) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 9, 3, 6] */
+ 26346664, /* 6698 (526) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 3, 6] */
+ 17901049, /* 6699 (526) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 3, 9] */
+ 17902327, /* 6700 (526) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 3, 9] */
+ 1547338 , /* 6701 (526) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542892 , /* 6702 (526) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 10763344, /* 6703 (526) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 6] */
+ 10750174, /* 6704 (526) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 6] */
+ 8569777 , /* 6705 (526) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 3, 0, 3] */
+ 8574115 , /* 6706 (526) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 0, 3] */
+ 770947 , /* 6707 (526) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 3, 3] */
+ 784009 , /* 6708 (526) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 3, 3] */
+ 10754554, /* 6709 (526) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 3, 9, 6] */
+ 10758964, /* 6710 (526) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 9, 6] */
+ 1538524 , /* 6711 (526) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 6] */
+ 1551706 , /* 6712 (526) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 6] */
+ 779629 , /* 6713 (526) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 3, 3] */
+ 775327 , /* 6714 (526) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 3, 3] */
+ 8578483 , /* 6715 (526) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 0, 3] */
+ 8565409 , /* 6716 (526) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 0, 3] */
+ 17140694, /* 6717 (526) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 6718 (526) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17899745, /* 6719 (526) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 3, 9] */
+ 17903631, /* 6720 (526) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 3, 9] */
+ 9214844 , /* 6721 (526) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 0] */
+ 9228126 , /* 6722 (526) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 0] */
+ 8573891 , /* 6723 (526) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 0, 3] */
+ 8570001 , /* 6724 (526) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 0, 3] */
+ 17908167, /* 6725 (526) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 3, 9] */
+ 17895209, /* 6726 (526) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 3, 9] */
+ 17131620, /* 6727 (526) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 6] */
+ 17136482, /* 6728 (526) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 6] */
+ 8565465 , /* 6729 (526) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 0, 3] */
+ 8578427 , /* 6730 (526) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 0, 3] */
+ 9223914 , /* 6731 (526) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 0] */
+ 9219056 , /* 6732 (526) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 0] */
+ 17135026, /* 6733 (526) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133076, /* 6734 (526) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 25696813, /* 6735 (526) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 0, 9] */
+ 25695499, /* 6736 (526) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 9, 0, 9] */
+ 2313235 , /* 6737 (526) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 9, 9] */
+ 2312269 , /* 6738 (526) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 9, 9] */
+ 10757560, /* 6739 (526) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 6] */
+ 10755958, /* 6740 (526) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 3, 9, 6] */
+ 25695667, /* 6741 (526) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 9, 0, 9] */
+ 25696645, /* 6742 (526) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 0, 9] */
+ 17133232, /* 6743 (526) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 0, 6] */
+ 17134870, /* 6744 (526) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 6] */
+ 10755790, /* 6745 (526) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 3, 9, 6] */
+ 10757728, /* 6746 (526) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 9, 6] */
+ 2312113 , /* 6747 (526) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 9, 9] */
+ 2313391 , /* 6748 (526) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 9, 9] */
+ 17136274, /* 6749 (526) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131828, /* 6750 (526) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 26352280, /* 6751 (526) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 6] */
+ 26339110, /* 6752 (526) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 6] */
+ 26993065, /* 6753 (526) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 9, 6, 3] */
+ 26997403, /* 6754 (526) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 6, 3] */
+ 19194235, /* 6755 (526) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 9, 3] */
+ 19207297, /* 6756 (526) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 9, 3] */
+ 26343490, /* 6757 (526) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 9, 3, 6] */
+ 26347900, /* 6758 (526) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 3, 6] */
+ 17127460, /* 6759 (526) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 6] */
+ 17140642, /* 6760 (526) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 6] */
+ 19202917, /* 6761 (526) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 9, 3] */
+ 19198615, /* 6762 (526) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 9, 3] */
+ 27001771, /* 6763 (526) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 6, 3] */
+ 26988697, /* 6764 (526) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 6, 3] */
+ 18439772, /* 6765 (526) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 6766 (526) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 19198823, /* 6767 (526) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 9, 3] */
+ 19202709, /* 6768 (526) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 9, 3] */
+ 10750118, /* 6769 (526) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 6] */
+ 10763400, /* 6770 (526) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 6] */
+ 10109165, /* 6771 (526) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 6, 9] */
+ 10105275, /* 6772 (526) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 6, 9] */
+ 19207245, /* 6773 (526) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 9, 3] */
+ 19194287, /* 6774 (526) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 9, 3] */
+ 18430698, /* 6775 (526) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 0] */
+ 18435560, /* 6776 (526) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 0] */
+ 10100739, /* 6777 (526) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 6, 9] */
+ 10113701, /* 6778 (526) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 6, 9] */
+ 10759188, /* 6779 (526) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 6] */
+ 10754330, /* 6780 (526) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 6] */
+ 18434104, /* 6781 (526) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432154, /* 6782 (526) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26995891, /* 6783 (526) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 6, 3] */
+ 26994577, /* 6784 (526) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 9, 6, 3] */
+ 777961 , /* 6785 (526) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 3, 3] */
+ 776995 , /* 6786 (526) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 3, 3] */
+ 9222286 , /* 6787 (526) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 3, 0] */
+ 9220684 , /* 6788 (526) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 3, 3, 0] */
+ 26994745, /* 6789 (526) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 9, 6, 3] */
+ 26995723, /* 6790 (526) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 6, 3] */
+ 18432310, /* 6791 (526) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 0] */
+ 18433948, /* 6792 (526) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 0] */
+ 9220516 , /* 6793 (526) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 3, 3, 0] */
+ 9222454 , /* 6794 (526) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 3, 0] */
+ 776839 , /* 6795 (526) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 3, 3] */
+ 778117 , /* 6796 (526) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 3, 3] */
+ 18435352, /* 6797 (526) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430906, /* 6798 (526) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 27651358, /* 6799 (526) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 0] */
+ 27638188, /* 6800 (526) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 0] */
+ 25693987, /* 6801 (526) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 9, 0, 9] */
+ 25698325, /* 6802 (526) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 0, 9] */
+ 17895157, /* 6803 (526) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 3, 9] */
+ 17908219, /* 6804 (526) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 3, 9] */
+ 27642568, /* 6805 (526) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 9, 9, 0] */
+ 27646978, /* 6806 (526) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 9, 0] */
+ 18426538, /* 6807 (526) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 0] */
+ 18439720, /* 6808 (526) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 0] */
+ 17903839, /* 6809 (526) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 3, 9] */
+ 17899537, /* 6810 (526) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 3, 9] */
+ 25702693, /* 6811 (526) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 0, 9] */
+ 25689619, /* 6812 (526) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 0, 9] */
+ 16484 , /* 6813 (527) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 9278591 , /* 6814 (527) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 1538474 , /* 6815 (527) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 26406689, /* 6816 (527) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 16320 , /* 6817 (527) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10813377, /* 6818 (527) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 1538634 , /* 6819 (527) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 27706251, /* 6820 (527) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 10816 , /* 6821 (527) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9281191 , /* 6822 (527) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 3, 3] */
+ 17134534, /* 6823 (527) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 27704623, /* 6824 (527) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 9, 3] */
+ 9352 , /* 6825 (527) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 26403925, /* 6826 (527) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 3, 9] */
+ 17133082, /* 6827 (527) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 10815169, /* 6828 (527) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 9, 9] */
+ 12064 , /* 6829 (527) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 9287119 , /* 6830 (527) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 3] */
+ 18430960, /* 6831 (527) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 0] */
+ 10809277, /* 6832 (527) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 9, 9] */
+ 7636 , /* 6833 (527) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 27697231, /* 6834 (527) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 9, 3] */
+ 18435280, /* 6835 (527) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 26411281, /* 6836 (527) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 9] */
+ 9391989 , /* 6837 (527) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 3, 9] */
+ 129882 , /* 6838 (527) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 10704351, /* 6839 (527) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 3] */
+ 17014008, /* 6840 (527) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 9392153 , /* 6841 (527) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 3, 9] */
+ 1429448 , /* 6842 (527) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 10704191, /* 6843 (527) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 3] */
+ 18548798, /* 6844 (527) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 9397657 , /* 6845 (527) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 3, 3, 9] */
+ 127282 , /* 6846 (527) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 6] */
+ 26286163, /* 6847 (527) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 9, 3, 3] */
+ 18550426, /* 6848 (527) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 9399121 , /* 6849 (527) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 3, 9] */
+ 17016772, /* 6850 (527) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 0] */
+ 26287615, /* 6851 (527) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 3, 3] */
+ 1427656 , /* 6852 (527) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 6, 0] */
+ 9396409 , /* 6853 (527) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 3, 3, 9] */
+ 121354 , /* 6854 (527) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 6] */
+ 27824089, /* 6855 (527) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 9, 9] */
+ 1433548 , /* 6856 (527) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 0] */
+ 9400837 , /* 6857 (527) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 3, 9] */
+ 18557818, /* 6858 (527) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 27819769, /* 6859 (527) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 9, 9, 9] */
+ 17009416, /* 6860 (527) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 0, 0] */
+ 1551758 , /* 6861 (527) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 10813865, /* 6862 (527) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 3200 , /* 6863 (527) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 27705767, /* 6864 (527) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 1551594 , /* 6865 (527) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 9278103 , /* 6866 (527) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 3360 , /* 6867 (527) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 26407173, /* 6868 (527) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 1546090 , /* 6869 (527) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 10816465, /* 6870 (527) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 9, 9] */
+ 18433612, /* 6871 (527) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 26405545, /* 6872 (527) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 9] */
+ 1544626 , /* 6873 (527) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27703003, /* 6874 (527) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 9, 3] */
+ 18432160, /* 6875 (527) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 9279895 , /* 6876 (527) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 3, 3] */
+ 1547338 , /* 6877 (527) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 10822393, /* 6878 (527) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 9] */
+ 17131882, /* 6879 (527) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 9274003 , /* 6880 (527) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 3, 3] */
+ 1542910 , /* 6881 (527) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 26398153, /* 6882 (527) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 3, 9] */
+ 17136202, /* 6883 (527) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 27710359, /* 6884 (527) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 3] */
+ 10691067, /* 6885 (527) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 3, 9, 3] */
+ 1428960 , /* 6886 (527) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 9405273 , /* 6887 (527) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 9] */
+ 18549282, /* 6888 (527) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 10691231, /* 6889 (527) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 3, 9, 3] */
+ 130370 , /* 6890 (527) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 9405113 , /* 6891 (527) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 9] */
+ 17013524, /* 6892 (527) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 10696735, /* 6893 (527) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 3, 9, 3] */
+ 1426360 , /* 6894 (527) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 6, 0] */
+ 27821437, /* 6895 (527) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 9, 9, 9] */
+ 17015152, /* 6896 (527) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 0, 0] */
+ 10698199, /* 6897 (527) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 9, 3] */
+ 18552046, /* 6898 (527) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 27822889, /* 6899 (527) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 9, 9] */
+ 128578 , /* 6900 (527) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 6] */
+ 10695487, /* 6901 (527) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 3, 9, 3] */
+ 1420432 , /* 6902 (527) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 6, 0] */
+ 26288815, /* 6903 (527) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 3, 3] */
+ 134470 , /* 6904 (527) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 6] */
+ 10699915, /* 6905 (527) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 9, 3] */
+ 17022544, /* 6906 (527) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 0] */
+ 26284495, /* 6907 (527) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 9, 3, 3] */
+ 18544690, /* 6908 (527) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 17140694, /* 6909 (527) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 26402801, /* 6910 (527) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 18426488, /* 6911 (527) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 0] */
+ 9282479 , /* 6912 (527) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 17140530, /* 6913 (527) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 27701391, /* 6914 (527) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 18426648, /* 6915 (527) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 0] */
+ 10818237, /* 6916 (527) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 17135026, /* 6917 (527) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 26405401, /* 6918 (527) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 3, 9] */
+ 10324 , /* 6919 (527) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10816609, /* 6920 (527) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 9] */
+ 17133562, /* 6921 (527) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 9279715 , /* 6922 (527) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 3, 3] */
+ 8872 , /* 6923 (527) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 27703183, /* 6924 (527) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 9, 3] */
+ 17136274, /* 6925 (527) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 26411329, /* 6926 (527) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 9] */
+ 1542946 , /* 6927 (527) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 27697291, /* 6928 (527) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 9, 3] */
+ 17131846, /* 6929 (527) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 10809217, /* 6930 (527) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 9, 9] */
+ 1547266 , /* 6931 (527) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 9287071 , /* 6932 (527) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 3] */
+ 26280003, /* 6933 (527) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 3, 3] */
+ 17017896, /* 6934 (527) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 27828561, /* 6935 (527) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 9] */
+ 125994 , /* 6936 (527) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 26280167, /* 6937 (527) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 3, 3] */
+ 18553658, /* 6938 (527) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 27828401, /* 6939 (527) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 9] */
+ 1424588 , /* 6940 (527) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 26285671, /* 6941 (527) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 9, 3, 3] */
+ 17015296, /* 6942 (527) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 0, 0] */
+ 9398149 , /* 6943 (527) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 3, 3, 9] */
+ 1426216 , /* 6944 (527) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 6, 0] */
+ 26287135, /* 6945 (527) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 3, 3] */
+ 128758 , /* 6946 (527) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 6] */
+ 9399601 , /* 6947 (527) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 3, 9] */
+ 18551866, /* 6948 (527) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 26284423, /* 6949 (527) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 9, 3, 3] */
+ 17009368, /* 6950 (527) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 0, 0] */
+ 10699879, /* 6951 (527) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 9, 3] */
+ 18557758, /* 6952 (527) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 26288851, /* 6953 (527) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 3, 3] */
+ 1433608 , /* 6954 (527) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 0] */
+ 10695559, /* 6955 (527) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 3, 9, 3] */
+ 121402 , /* 6956 (527) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 6] */
+ 18439772, /* 6957 (527) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 27701879, /* 6958 (527) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 17127410, /* 6959 (527) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 10817753, /* 6960 (527) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 18439608, /* 6961 (527) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 26402313, /* 6962 (527) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 17127570, /* 6963 (527) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 9282963 , /* 6964 (527) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 18434104, /* 6965 (527) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 27704479, /* 6966 (527) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 9, 3] */
+ 1545598 , /* 6967 (527) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 9281335 , /* 6968 (527) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 3, 3] */
+ 18432640, /* 6969 (527) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 10814989, /* 6970 (527) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 9, 9] */
+ 1544146 , /* 6971 (527) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 26404105, /* 6972 (527) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 3, 9] */
+ 18435352, /* 6973 (527) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 27710407, /* 6974 (527) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 3] */
+ 7672 , /* 6975 (527) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 26398213, /* 6976 (527) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 3, 9] */
+ 18430924, /* 6977 (527) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 0] */
+ 9273943 , /* 6978 (527) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 3, 3] */
+ 11992 , /* 6979 (527) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 10822345, /* 6980 (527) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 9] */
+ 27815277, /* 6981 (527) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 9, 9, 9] */
+ 18553170, /* 6982 (527) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 26293287, /* 6983 (527) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 3] */
+ 1425072 , /* 6984 (527) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 27815441, /* 6985 (527) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 9, 9, 9] */
+ 17018384, /* 6986 (527) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 26293127, /* 6987 (527) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 3] */
+ 125510 , /* 6988 (527) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 27820945, /* 6989 (527) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 9, 9, 9] */
+ 18550570, /* 6990 (527) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 10697227, /* 6991 (527) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 3, 9, 3] */
+ 127138 , /* 6992 (527) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 6] */
+ 27822409, /* 6993 (527) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 9, 9] */
+ 1427836 , /* 6994 (527) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 0] */
+ 10698679, /* 6995 (527) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 9, 3] */
+ 17016592, /* 6996 (527) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 0, 0] */
+ 27819697, /* 6997 (527) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 9, 9, 9] */
+ 18544642, /* 6998 (527) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 9400801 , /* 6999 (527) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 3, 9] */
+ 17022484, /* 7000 (527) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 0] */
+ 27824125, /* 7001 (527) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 9, 9] */
+ 134530 , /* 7002 (527) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 6] */
+ 9396481 , /* 7003 (527) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 3, 3, 9] */
+ 1420480 , /* 7004 (527) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 6, 0] */
+ 16484 , /* 7005 (528) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 7006 (528) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 893633 , /* 7007 (528) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 3, 9] */
+ 897519 , /* 7008 (528) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 3, 9] */
+ 26339054, /* 7009 (528) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 3, 6] */
+ 26352336, /* 7010 (528) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 3, 6] */
+ 25580003, /* 7011 (528) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 0, 3] */
+ 25576113, /* 7012 (528) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 0, 3] */
+ 783957 , /* 7013 (528) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 3, 3] */
+ 770999 , /* 7014 (528) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 3] */
+ 125508 , /* 7015 (528) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 6] */
+ 130370 , /* 7016 (528) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 6] */
+ 25689675, /* 7017 (528) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 0, 9] */
+ 25702637, /* 7018 (528) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 0, 9] */
+ 26230026, /* 7019 (528) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 0] */
+ 26225168, /* 7020 (528) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 0] */
+ 10816 , /* 7021 (528) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 7022 (528) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 25578715, /* 7023 (528) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 0, 3] */
+ 25577401, /* 7024 (528) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 9, 0, 3] */
+ 19201249, /* 7025 (528) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 9, 3] */
+ 19200283, /* 7026 (528) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 9, 3] */
+ 10639462, /* 7027 (528) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 0] */
+ 10637860, /* 7028 (528) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 3, 9, 0] */
+ 8571457 , /* 7029 (528) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 3, 0, 3] */
+ 8572435 , /* 7030 (528) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 0, 3] */
+ 17015134, /* 7031 (528) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 0, 0] */
+ 17016772, /* 7032 (528) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 0, 0] */
+ 27643804, /* 7033 (528) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 9, 9, 0] */
+ 27645742, /* 7034 (528) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 9, 0] */
+ 2194015 , /* 7035 (528) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 9, 3] */
+ 2195293 , /* 7036 (528) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 9, 3] */
+ 12064 , /* 7037 (528) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 7038 (528) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 10645246, /* 7039 (528) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 0] */
+ 10632076, /* 7040 (528) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 0] */
+ 10105051, /* 7041 (528) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 3, 6, 9] */
+ 10109389, /* 7042 (528) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 6, 9] */
+ 889045 , /* 7043 (528) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 3, 9] */
+ 902107 , /* 7044 (528) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 3, 9] */
+ 9219280 , /* 7045 (528) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 3, 3, 0] */
+ 9223690 , /* 7046 (528) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 3, 0] */
+ 1420426 , /* 7047 (528) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 6, 0] */
+ 1433608 , /* 7048 (528) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 6, 0] */
+ 2314903 , /* 7049 (528) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 9, 9] */
+ 2310601 , /* 7050 (528) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 9, 9] */
+ 8696581 , /* 7051 (528) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 0, 9] */
+ 8683507 , /* 7052 (528) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 0, 9] */
+ 1551758 , /* 7053 (528) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 6, 6] */
+ 1538472 , /* 7054 (528) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 6, 6] */
+ 2192711 , /* 7055 (528) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 9, 3] */
+ 2196597 , /* 7056 (528) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 9, 3] */
+ 27638132, /* 7057 (528) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 9, 0] */
+ 27651414, /* 7058 (528) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 9, 0] */
+ 27115277, /* 7059 (528) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 6, 9] */
+ 27111387, /* 7060 (528) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 6, 9] */
+ 2319231 , /* 7061 (528) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 9, 9] */
+ 2306273 , /* 7062 (528) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 9] */
+ 1424586 , /* 7063 (528) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 6, 0] */
+ 1429448 , /* 7064 (528) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 6, 0] */
+ 26988753, /* 7065 (528) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 9, 6, 3] */
+ 27001715, /* 7066 (528) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 9, 6, 3] */
+ 27765300, /* 7067 (528) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 6] */
+ 27760442, /* 7068 (528) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 6] */
+ 1546090 , /* 7069 (528) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 1544140 , /* 7070 (528) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 27113989, /* 7071 (528) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 6, 9] */
+ 27112675, /* 7072 (528) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 9, 6, 9] */
+ 17902171, /* 7073 (528) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 3, 9] */
+ 17901205, /* 7074 (528) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 3, 9] */
+ 9340384 , /* 7075 (528) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 3, 6] */
+ 9338782 , /* 7076 (528) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 3, 3, 6] */
+ 10106731, /* 7077 (528) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 3, 6, 9] */
+ 10107709, /* 7078 (528) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 3, 6, 9] */
+ 18550408, /* 7079 (528) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18552046, /* 7080 (528) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 26344726, /* 7081 (528) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 9, 3, 6] */
+ 26346664, /* 7082 (528) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 9, 3, 6] */
+ 894937 , /* 7083 (528) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 3, 9] */
+ 896215 , /* 7084 (528) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 3, 9] */
+ 1547338 , /* 7085 (528) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 6, 6] */
+ 1542892 , /* 7086 (528) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 6, 6] */
+ 9346168 , /* 7087 (528) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 6] */
+ 9332998 , /* 7088 (528) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 6] */
+ 8569777 , /* 7089 (528) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 3, 0, 3] */
+ 8574115 , /* 7090 (528) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 3, 0, 3] */
+ 2188123 , /* 7091 (528) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 9, 3] */
+ 2201185 , /* 7092 (528) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 9, 3] */
+ 10754554, /* 7093 (528) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 3, 9, 6] */
+ 10758964, /* 7094 (528) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 3, 9, 6] */
+ 121348 , /* 7095 (528) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 6] */
+ 134530 , /* 7096 (528) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 6] */
+ 779629 , /* 7097 (528) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 3, 3] */
+ 775327 , /* 7098 (528) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 3, 3] */
+ 9995659 , /* 7099 (528) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 6, 3] */
+ 9982585 , /* 7100 (528) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 6, 3] */
+ 17140694, /* 7101 (528) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 0, 6] */
+ 17127408, /* 7102 (528) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 0, 6] */
+ 17781647, /* 7103 (528) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 3, 3] */
+ 17785533, /* 7104 (528) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 3, 3] */
+ 9214844 , /* 7105 (528) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 3, 0] */
+ 9228126 , /* 7106 (528) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 3, 0] */
+ 8691989 , /* 7107 (528) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 0, 9] */
+ 8688099 , /* 7108 (528) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 0, 9] */
+ 17908167, /* 7109 (528) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 3, 9] */
+ 17895209, /* 7110 (528) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 3, 9] */
+ 17013522, /* 7111 (528) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 0, 0] */
+ 17018384, /* 7112 (528) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 0, 0] */
+ 8565465 , /* 7113 (528) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 0, 3] */
+ 8578427 , /* 7114 (528) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 0, 3] */
+ 9342012 , /* 7115 (528) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 6] */
+ 9337154 , /* 7116 (528) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 6] */
+ 17135026, /* 7117 (528) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17133076, /* 7118 (528) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 8690701 , /* 7119 (528) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 0, 9] */
+ 8689387 , /* 7120 (528) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 3, 0, 9] */
+ 2313235 , /* 7121 (528) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 9, 9] */
+ 2312269 , /* 7122 (528) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 9, 9] */
+ 27763672, /* 7123 (528) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 9, 6] */
+ 27762070, /* 7124 (528) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 9, 9, 6] */
+ 25695667, /* 7125 (528) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 9, 0, 9] */
+ 25696645, /* 7126 (528) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 0, 9] */
+ 127120 , /* 7127 (528) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 6] */
+ 128758 , /* 7128 (528) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 6] */
+ 10755790, /* 7129 (528) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 3, 9, 6] */
+ 10757728, /* 7130 (528) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 9, 6] */
+ 19318225, /* 7131 (528) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 9, 9] */
+ 19319503, /* 7132 (528) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 9, 9] */
+ 17136274, /* 7133 (528) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 0, 6] */
+ 17131828, /* 7134 (528) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 0, 6] */
+ 27769456, /* 7135 (528) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 6] */
+ 27756286, /* 7136 (528) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 6] */
+ 26993065, /* 7137 (528) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 9, 6, 3] */
+ 26997403, /* 7138 (528) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 6, 3] */
+ 17777059, /* 7139 (528) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 3, 3] */
+ 17790121, /* 7140 (528) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 3, 3] */
+ 26343490, /* 7141 (528) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 9, 3, 6] */
+ 26347900, /* 7142 (528) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 3, 6] */
+ 18544636, /* 7143 (528) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18557818, /* 7144 (528) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 19202917, /* 7145 (528) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 9, 3] */
+ 19198615, /* 7146 (528) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 9, 3] */
+ 25584595, /* 7147 (528) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 0, 3] */
+ 25571521, /* 7148 (528) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 0, 3] */
+ 18439772, /* 7149 (528) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 18426486, /* 7150 (528) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 19316921, /* 7151 (528) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 9, 9] */
+ 19320807, /* 7152 (528) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 9, 9] */
+ 10750118, /* 7153 (528) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 9, 6] */
+ 10763400, /* 7154 (528) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 9, 6] */
+ 9991067 , /* 7155 (528) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 6, 3] */
+ 9987177 , /* 7156 (528) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 6, 3] */
+ 19207245, /* 7157 (528) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 9, 3] */
+ 19194287, /* 7158 (528) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 9, 3] */
+ 18548796, /* 7159 (528) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 7160 (528) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 10100739, /* 7161 (528) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 3, 6, 9] */
+ 10113701, /* 7162 (528) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 3, 6, 9] */
+ 10641090, /* 7163 (528) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 0] */
+ 10636232, /* 7164 (528) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 0] */
+ 18434104, /* 7165 (528) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 18432154, /* 7166 (528) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 9989779 , /* 7167 (528) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 6, 3] */
+ 9988465 , /* 7168 (528) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 3, 6, 3] */
+ 777961 , /* 7169 (528) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 3, 3] */
+ 776995 , /* 7170 (528) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 3, 3] */
+ 26228398, /* 7171 (528) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 0] */
+ 26226796, /* 7172 (528) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 9, 3, 0] */
+ 26994745, /* 7173 (528) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 9, 6, 3] */
+ 26995723, /* 7174 (528) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 9, 6, 3] */
+ 1426198 , /* 7175 (528) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 6, 0] */
+ 1427836 , /* 7176 (528) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 6, 0] */
+ 9220516 , /* 7177 (528) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 3, 3, 0] */
+ 9222454 , /* 7178 (528) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 3, 3, 0] */
+ 17782951, /* 7179 (528) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 3, 3] */
+ 17784229, /* 7180 (528) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 3, 3] */
+ 18435352, /* 7181 (528) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 18430906, /* 7182 (528) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 26234182, /* 7183 (528) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 0] */
+ 26221012, /* 7184 (528) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 0] */
+ 25693987, /* 7185 (528) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 9, 0, 9] */
+ 25698325, /* 7186 (528) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 9, 0, 9] */
+ 19312333, /* 7187 (528) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 9, 9] */
+ 19325395, /* 7188 (528) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 9, 9] */
+ 27642568, /* 7189 (528) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 9, 9, 0] */
+ 27646978, /* 7190 (528) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 9, 9, 0] */
+ 17009362, /* 7191 (528) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 0, 0] */
+ 17022544, /* 7192 (528) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 0, 0] */
+ 17903839, /* 7193 (528) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 3, 9] */
+ 17899537, /* 7194 (528) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 3, 9] */
+ 27119869, /* 7195 (528) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 6, 9] */
+ 27106795, /* 7196 (528) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 6, 9] */
+ 16484 , /* 7197 (529) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 7198 (529) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 7898 , /* 7199 (529) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 11784 , /* 7200 (529) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 3200 , /* 7201 (529) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 16482 , /* 7202 (529) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 11786 , /* 7203 (529) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 7896 , /* 7204 (529) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 16320 , /* 7205 (529) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 3362 , /* 7206 (529) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 7410 , /* 7207 (529) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 12272 , /* 7208 (529) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 3360 , /* 7209 (529) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 0, 0] */
+ 16322 , /* 7210 (529) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 0, 0] */
+ 12270 , /* 7211 (529) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 0, 0, 0] */
+ 7412 , /* 7212 (529) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 0, 0, 0] */
+ 10816 , /* 7213 (529) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 7214 (529) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10498 , /* 7215 (529) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9184 , /* 7216 (529) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 10324 , /* 7217 (529) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9358 , /* 7218 (529) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10642 , /* 7219 (529) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 0, 0, 0] */
+ 9040 , /* 7220 (529) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 0, 0, 0] */
+ 9352 , /* 7221 (529) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 10330 , /* 7222 (529) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 9022 , /* 7223 (529) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 10660 , /* 7224 (529) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 8872 , /* 7225 (529) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 10810 , /* 7226 (529) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9202 , /* 7227 (529) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 0, 0, 0] */
+ 10480 , /* 7228 (529) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 0, 0, 0] */
+ 12064 , /* 7229 (529) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 7230 (529) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 16426 , /* 7231 (529) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 3256 , /* 7232 (529) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 7672 , /* 7233 (529) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 12010 , /* 7234 (529) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 3310 , /* 7235 (529) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 16372 , /* 7236 (529) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 7636 , /* 7237 (529) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 0, 0] */
+ 12046 , /* 7238 (529) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 0, 0] */
+ 3250 , /* 7239 (529) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 0, 0, 0] */
+ 16432 , /* 7240 (529) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0] */
+ 11992 , /* 7241 (529) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 7690 , /* 7242 (529) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 16378 , /* 7243 (529) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 0, 0, 0] */
+ 3304 , /* 7244 (529) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 0, 0, 0] */
+ 18557870, /* 7245 (529) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 7246 (529) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18549284, /* 7247 (529) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18553170, /* 7248 (529) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18544586, /* 7249 (529) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18557868, /* 7250 (529) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18553172, /* 7251 (529) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18549282, /* 7252 (529) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18557706, /* 7253 (529) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 18544748, /* 7254 (529) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18548796, /* 7255 (529) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18553658, /* 7256 (529) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18544746, /* 7257 (529) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 6, 6] */
+ 18557708, /* 7258 (529) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 6, 6] */
+ 18553656, /* 7259 (529) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 6, 6, 6] */
+ 18548798, /* 7260 (529) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 6, 6, 6] */
+ 18552202, /* 7261 (529) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550252, /* 7262 (529) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18551884, /* 7263 (529) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550570, /* 7264 (529) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18551710, /* 7265 (529) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550744, /* 7266 (529) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18552028, /* 7267 (529) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 6, 6, 6] */
+ 18550426, /* 7268 (529) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550738, /* 7269 (529) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18551716, /* 7270 (529) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550408, /* 7271 (529) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18552046, /* 7272 (529) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18550258, /* 7273 (529) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18552196, /* 7274 (529) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 18550588, /* 7275 (529) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 6, 6, 6] */
+ 18551866, /* 7276 (529) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 6, 6, 6] */
+ 18553450, /* 7277 (529) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18549004, /* 7278 (529) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18557812, /* 7279 (529) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 18544642, /* 7280 (529) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18549058, /* 7281 (529) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18553396, /* 7282 (529) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18544696, /* 7283 (529) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18557758, /* 7284 (529) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18549022, /* 7285 (529) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 6, 6] */
+ 18553432, /* 7286 (529) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 6, 6] */
+ 18544636, /* 7287 (529) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 6, 6, 6] */
+ 18557818, /* 7288 (529) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 6, 6, 6] */
+ 18553378, /* 7289 (529) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 18549076, /* 7290 (529) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18557764, /* 7291 (529) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 6, 6, 6] */
+ 18544690, /* 7292 (529) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 6, 6, 6] */
+ 16484 , /* 7293 (530) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0] */
+ 3198 , /* 7294 (530) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 0] */
+ 10695767, /* 7295 (530) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 3, 9, 3] */
+ 10699653, /* 7296 (530) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 3, 9, 3] */
+ 17127410, /* 7297 (530) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 6] */
+ 17140692, /* 7298 (530) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 6] */
+ 9400577 , /* 7299 (530) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 3, 3, 9] */
+ 9396687 , /* 7300 (530) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 3, 3, 9] */
+ 134418 , /* 7301 (530) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 0, 0, 6] */
+ 121460 , /* 7302 (530) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6] */
+ 9278103 , /* 7303 (530) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 3, 3, 3] */
+ 9282965 , /* 7304 (530) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 3, 3, 3] */
+ 17009472, /* 7305 (530) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 6, 0, 0] */
+ 17022434, /* 7306 (530) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 6, 0, 0] */
+ 10818237, /* 7307 (530) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 3, 9, 9] */
+ 10813379, /* 7308 (530) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 3, 9, 9] */
+ 10816 , /* 7309 (530) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0] */
+ 8866 , /* 7310 (530) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 0, 0, 0] */
+ 9399289 , /* 7311 (530) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 3, 3, 9] */
+ 9397975 , /* 7312 (530) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 3, 3, 9] */
+ 18433612, /* 7313 (530) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 6, 6, 0] */
+ 18432646, /* 7314 (530) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 6, 6, 0] */
+ 26287447, /* 7315 (530) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 9, 3, 3] */
+ 26285845, /* 7316 (530) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 9, 3, 3] */
+ 17015464, /* 7317 (530) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 6, 0, 0] */
+ 17016442, /* 7318 (530) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 6, 0, 0] */
+ 9279715 , /* 7319 (530) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 3, 3, 3] */
+ 9281353 , /* 7320 (530) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 3, 3, 3] */
+ 1426048 , /* 7321 (530) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 0, 6, 0] */
+ 1427986 , /* 7322 (530) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 0, 6, 0] */
+ 26404105, /* 7323 (530) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 9, 3, 9] */
+ 26405383, /* 7324 (530) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 9, 3, 9] */
+ 12064 , /* 7325 (530) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0] */
+ 7618 , /* 7326 (530) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 0] */
+ 26293231, /* 7327 (530) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 3, 3] */
+ 26280061, /* 7328 (530) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 3, 3] */
+ 1542946 , /* 7329 (530) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 6] */
+ 1547284 , /* 7330 (530) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 6] */
+ 10691179, /* 7331 (530) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 9, 3] */
+ 10704241, /* 7332 (530) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 9, 3] */
+ 1424812 , /* 7333 (530) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 0, 6, 0] */
+ 1429222 , /* 7334 (530) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 0, 6, 0] */
+ 9273943 , /* 7335 (530) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 3, 3, 3] */
+ 9287125 , /* 7336 (530) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 3, 3, 3] */
+ 130090 , /* 7337 (530) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 0, 0, 6] */
+ 125788 , /* 7338 (530) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 6] */
+ 27710359, /* 7339 (530) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 9, 9, 3] */
+ 27697285, /* 7340 (530) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 9, 9, 3] */
+ 18557870, /* 7341 (530) [ 1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 6] */
+ 18544584, /* 7342 (530) [ -1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 6] */
+ 26402801, /* 7343 (530) [ 0,-1, 0, 1, 0, 0, 0, 0, 1, 9, 3, 9] */
+ 26406687, /* 7344 (530) [ 0, 1, 0,-1, 0, 0, 0, 0,-1, 9, 3, 9] */
+ 1420376 , /* 7345 (530) [ -1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 0] */
+ 1433658 , /* 7346 (530) [ 1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 0] */
+ 27705767, /* 7347 (530) [ 0, 1, 0,-1, 0, 0, 0, 0, 1, 9, 9, 3] */
+ 27701877, /* 7348 (530) [ 0,-1, 0, 1, 0, 0, 0, 0,-1, 9, 9, 3] */
+ 18439608, /* 7349 (530) [ 1, 0, 0, 0,-1, 0, 0, 0,-1, 6, 6, 0] */
+ 18426650, /* 7350 (530) [ -1, 0, 0, 0, 1, 0, 0, 0, 1, 6, 6, 0] */
+ 27819489, /* 7351 (530) [ 0,-1, 0,-1, 0, 0, 0, 0,-1, 9, 9, 9] */
+ 27824351, /* 7352 (530) [ 0, 1, 0, 1, 0, 0, 0, 0, 1, 9, 9, 9] */
+ 1538634 , /* 7353 (530) [ -1, 0, 0, 0, 1, 0, 0, 0,-1, 0, 6, 6] */
+ 1551596 , /* 7354 (530) [ 1, 0, 0, 0,-1, 0, 0, 0, 1, 0, 6, 6] */
+ 26289075, /* 7355 (530) [ 0, 1, 0, 1, 0, 0, 0, 0,-1, 9, 3, 3] */
+ 26284217, /* 7356 (530) [ 0,-1, 0,-1, 0, 0, 0, 0, 1, 9, 3, 3] */
+ 18552202, /* 7357 (530) [ 0, 0, 1, 1, 0, 0, 0, 1, 0, 6, 6, 6] */
+ 18550252, /* 7358 (530) [ 0, 0,-1,-1, 0, 0, 0,-1, 0, 6, 6, 6] */
+ 27704479, /* 7359 (530) [ 0, 0, 1, 0,-1, 0, 1, 0, 0, 9, 9, 3] */
+ 27703165, /* 7360 (530) [ 0, 0,-1, 0, 1, 0,-1, 0, 0, 9, 9, 3] */
+ 128422 , /* 7361 (530) [ 0, 0, 1,-1, 0, 0, 0,-1, 0, 0, 0, 6] */
+ 127456 , /* 7362 (530) [ 0, 0,-1, 1, 0, 0, 0, 1, 0, 0, 0, 6] */
+ 10816609, /* 7363 (530) [ 0, 0, 1, 0, 1, 0,-1, 0, 0, 3, 9, 9] */
+ 10815007, /* 7364 (530) [ 0, 0,-1, 0,-1, 0, 1, 0, 0, 3, 9, 9] */
+ 1544626 , /* 7365 (530) [ 0, 0,-1, 1, 0, 0, 0,-1, 0, 0, 6, 6] */
+ 1545604 , /* 7366 (530) [ 0, 0, 1,-1, 0, 0, 0, 1, 0, 0, 6, 6] */
+ 27821101, /* 7367 (530) [ 0, 0,-1, 0,-1, 0,-1, 0, 0, 9, 9, 9] */
+ 27822739, /* 7368 (530) [ 0, 0, 1, 0, 1, 0, 1, 0, 0, 9, 9, 9] */
+ 17133082, /* 7369 (530) [ 0, 0,-1,-1, 0, 0, 0, 1, 0, 6, 0, 6] */
+ 17135020, /* 7370 (530) [ 0, 0, 1, 1, 0, 0, 0,-1, 0, 6, 0, 6] */
+ 10697071, /* 7371 (530) [ 0, 0,-1, 0, 1, 0, 1, 0, 0, 3, 9, 3] */
+ 10698349, /* 7372 (530) [ 0, 0, 1, 0,-1, 0,-1, 0, 0, 3, 9, 3] */
+ 18553450, /* 7373 (530) [ 0, 1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 6] */
+ 18549004, /* 7374 (530) [ 0,-1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 6] */
+ 10822393, /* 7375 (530) [ 1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 9, 9] */
+ 10809223, /* 7376 (530) [ -1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 9, 9] */
+ 17013784, /* 7377 (530) [ 0,-1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 0] */
+ 17018122, /* 7378 (530) [ 0, 1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 0] */
+ 26398213, /* 7379 (530) [ -1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 3, 9] */
+ 26411275, /* 7380 (530) [ 1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 3, 9] */
+ 17131846, /* 7381 (530) [ 0,-1, 0, 0, 0,-1, 1, 0, 0, 6, 0, 6] */
+ 17136256, /* 7382 (530) [ 0, 1, 0, 0, 0, 1,-1, 0, 0, 6, 0, 6] */
+ 27815329, /* 7383 (530) [ -1, 0, 0, 0, 0,-1, 0,-1, 0, 9, 9, 9] */
+ 27828511, /* 7384 (530) [ 1, 0, 0, 0, 0, 1, 0, 1, 0, 9, 9, 9] */
+ 18435280, /* 7385 (530) [ 0, 1, 0, 0, 0,-1,-1, 0, 0, 6, 6, 0] */
+ 18430978, /* 7386 (530) [ 0,-1, 0, 0, 0, 1, 1, 0, 0, 6, 6, 0] */
+ 9405169 , /* 7387 (530) [ 1, 0, 0, 0, 0,-1, 0, 1, 0, 3, 3, 9] */
+ 9392095 , /* 7388 (530) [ -1, 0, 0, 0, 0, 1, 0,-1, 0, 3, 3, 9] */
+};
+
+static const int symmetry_operation_index[][2] = {
+ { 0, 0}, /* 0 */
+ { 1, 1}, /* 1 */
+ { 2, 2}, /* 2 */
+ { 2, 4}, /* 3 */
+ { 2, 6}, /* 4 */
+ { 2, 8}, /* 5 */
+ { 2, 10}, /* 6 */
+ { 2, 12}, /* 7 */
+ { 2, 14}, /* 8 */
+ { 4, 16}, /* 9 */
+ { 4, 20}, /* 10 */
+ { 4, 24}, /* 11 */
+ { 4, 28}, /* 12 */
+ { 4, 32}, /* 13 */
+ { 4, 36}, /* 14 */
+ { 4, 40}, /* 15 */
+ { 4, 44}, /* 16 */
+ { 4, 48}, /* 17 */
+ { 2, 52}, /* 18 */
+ { 2, 54}, /* 19 */
+ { 2, 56}, /* 20 */
+ { 2, 58}, /* 21 */
+ { 2, 60}, /* 22 */
+ { 2, 62}, /* 23 */
+ { 2, 64}, /* 24 */
+ { 2, 66}, /* 25 */
+ { 2, 68}, /* 26 */
+ { 2, 70}, /* 27 */
+ { 2, 72}, /* 28 */
+ { 2, 74}, /* 29 */
+ { 4, 76}, /* 30 */
+ { 4, 80}, /* 31 */
+ { 4, 84}, /* 32 */
+ { 4, 88}, /* 33 */
+ { 4, 92}, /* 34 */
+ { 4, 96}, /* 35 */
+ { 4, 100}, /* 36 */
+ { 4, 104}, /* 37 */
+ { 4, 108}, /* 38 */
+ { 4, 112}, /* 39 */
+ { 4, 116}, /* 40 */
+ { 4, 120}, /* 41 */
+ { 4, 124}, /* 42 */
+ { 4, 128}, /* 43 */
+ { 4, 132}, /* 44 */
+ { 4, 136}, /* 45 */
+ { 4, 140}, /* 46 */
+ { 4, 144}, /* 47 */
+ { 4, 148}, /* 48 */
+ { 4, 152}, /* 49 */
+ { 4, 156}, /* 50 */
+ { 4, 160}, /* 51 */
+ { 4, 164}, /* 52 */
+ { 4, 168}, /* 53 */
+ { 4, 172}, /* 54 */
+ { 4, 176}, /* 55 */
+ { 4, 180}, /* 56 */
+ { 4, 184}, /* 57 */
+ { 4, 188}, /* 58 */
+ { 4, 192}, /* 59 */
+ { 4, 196}, /* 60 */
+ { 4, 200}, /* 61 */
+ { 4, 204}, /* 62 */
+ { 8, 208}, /* 63 */
+ { 8, 216}, /* 64 */
+ { 8, 224}, /* 65 */
+ { 8, 232}, /* 66 */
+ { 8, 240}, /* 67 */
+ { 8, 248}, /* 68 */
+ { 8, 256}, /* 69 */
+ { 8, 264}, /* 70 */
+ { 8, 272}, /* 71 */
+ { 4, 280}, /* 72 */
+ { 4, 284}, /* 73 */
+ { 4, 288}, /* 74 */
+ { 4, 292}, /* 75 */
+ { 4, 296}, /* 76 */
+ { 4, 300}, /* 77 */
+ { 4, 304}, /* 78 */
+ { 4, 308}, /* 79 */
+ { 4, 312}, /* 80 */
+ { 4, 316}, /* 81 */
+ { 4, 320}, /* 82 */
+ { 4, 324}, /* 83 */
+ { 4, 328}, /* 84 */
+ { 4, 332}, /* 85 */
+ { 4, 336}, /* 86 */
+ { 4, 340}, /* 87 */
+ { 4, 344}, /* 88 */
+ { 4, 348}, /* 89 */
+ { 8, 352}, /* 90 */
+ { 8, 360}, /* 91 */
+ { 8, 368}, /* 92 */
+ { 8, 376}, /* 93 */
+ { 8, 384}, /* 94 */
+ { 8, 392}, /* 95 */
+ { 8, 400}, /* 96 */
+ { 8, 408}, /* 97 */
+ { 8, 416}, /* 98 */
+ { 8, 424}, /* 99 */
+ { 8, 432}, /* 100 */
+ { 8, 440}, /* 101 */
+ { 8, 448}, /* 102 */
+ { 8, 456}, /* 103 */
+ { 8, 464}, /* 104 */
+ { 8, 472}, /* 105 */
+ { 8, 480}, /* 106 */
+ { 8, 488}, /* 107 */
+ { 4, 496}, /* 108 */
+ { 4, 500}, /* 109 */
+ { 4, 504}, /* 110 */
+ { 4, 508}, /* 111 */
+ { 4, 512}, /* 112 */
+ { 4, 516}, /* 113 */
+ { 4, 520}, /* 114 */
+ { 4, 524}, /* 115 */
+ { 8, 528}, /* 116 */
+ { 8, 536}, /* 117 */
+ { 8, 544}, /* 118 */
+ { 8, 552}, /* 119 */
+ { 8, 560}, /* 120 */
+ { 8, 568}, /* 121 */
+ { 16, 576}, /* 122 */
+ { 8, 592}, /* 123 */
+ { 8, 600}, /* 124 */
+ { 4, 608}, /* 125 */
+ { 4, 612}, /* 126 */
+ { 4, 616}, /* 127 */
+ { 4, 620}, /* 128 */
+ { 4, 624}, /* 129 */
+ { 4, 628}, /* 130 */
+ { 4, 632}, /* 131 */
+ { 4, 636}, /* 132 */
+ { 4, 640}, /* 133 */
+ { 4, 644}, /* 134 */
+ { 4, 648}, /* 135 */
+ { 4, 652}, /* 136 */
+ { 4, 656}, /* 137 */
+ { 4, 660}, /* 138 */
+ { 4, 664}, /* 139 */
+ { 4, 668}, /* 140 */
+ { 4, 672}, /* 141 */
+ { 4, 676}, /* 142 */
+ { 4, 680}, /* 143 */
+ { 4, 684}, /* 144 */
+ { 4, 688}, /* 145 */
+ { 4, 692}, /* 146 */
+ { 4, 696}, /* 147 */
+ { 4, 700}, /* 148 */
+ { 4, 704}, /* 149 */
+ { 4, 708}, /* 150 */
+ { 4, 712}, /* 151 */
+ { 4, 716}, /* 152 */
+ { 4, 720}, /* 153 */
+ { 4, 724}, /* 154 */
+ { 4, 728}, /* 155 */
+ { 4, 732}, /* 156 */
+ { 4, 736}, /* 157 */
+ { 4, 740}, /* 158 */
+ { 4, 744}, /* 159 */
+ { 4, 748}, /* 160 */
+ { 4, 752}, /* 161 */
+ { 4, 756}, /* 162 */
+ { 4, 760}, /* 163 */
+ { 4, 764}, /* 164 */
+ { 4, 768}, /* 165 */
+ { 4, 772}, /* 166 */
+ { 4, 776}, /* 167 */
+ { 4, 780}, /* 168 */
+ { 4, 784}, /* 169 */
+ { 4, 788}, /* 170 */
+ { 4, 792}, /* 171 */
+ { 4, 796}, /* 172 */
+ { 8, 800}, /* 173 */
+ { 8, 808}, /* 174 */
+ { 8, 816}, /* 175 */
+ { 8, 824}, /* 176 */
+ { 8, 832}, /* 177 */
+ { 8, 840}, /* 178 */
+ { 8, 848}, /* 179 */
+ { 8, 856}, /* 180 */
+ { 8, 864}, /* 181 */
+ { 8, 872}, /* 182 */
+ { 8, 880}, /* 183 */
+ { 8, 888}, /* 184 */
+ { 8, 896}, /* 185 */
+ { 8, 904}, /* 186 */
+ { 8, 912}, /* 187 */
+ { 8, 920}, /* 188 */
+ { 8, 928}, /* 189 */
+ { 8, 936}, /* 190 */
+ { 8, 944}, /* 191 */
+ { 8, 952}, /* 192 */
+ { 8, 960}, /* 193 */
+ { 8, 968}, /* 194 */
+ { 8, 976}, /* 195 */
+ { 8, 984}, /* 196 */
+ { 8, 992}, /* 197 */
+ { 8, 1000}, /* 198 */
+ { 8, 1008}, /* 199 */
+ { 8, 1016}, /* 200 */
+ { 8, 1024}, /* 201 */
+ { 8, 1032}, /* 202 */
+ { 8, 1040}, /* 203 */
+ { 8, 1048}, /* 204 */
+ { 8, 1056}, /* 205 */
+ { 8, 1064}, /* 206 */
+ { 8, 1072}, /* 207 */
+ { 8, 1080}, /* 208 */
+ { 16, 1088}, /* 209 */
+ { 16, 1104}, /* 210 */
+ { 16, 1120}, /* 211 */
+ { 16, 1136}, /* 212 */
+ { 16, 1152}, /* 213 */
+ { 16, 1168}, /* 214 */
+ { 8, 1184}, /* 215 */
+ { 8, 1192}, /* 216 */
+ { 8, 1200}, /* 217 */
+ { 8, 1208}, /* 218 */
+ { 8, 1216}, /* 219 */
+ { 8, 1224}, /* 220 */
+ { 8, 1232}, /* 221 */
+ { 8, 1240}, /* 222 */
+ { 8, 1248}, /* 223 */
+ { 8, 1256}, /* 224 */
+ { 8, 1264}, /* 225 */
+ { 8, 1272}, /* 226 */
+ { 8, 1280}, /* 227 */
+ { 8, 1288}, /* 228 */
+ { 8, 1296}, /* 229 */
+ { 8, 1304}, /* 230 */
+ { 8, 1312}, /* 231 */
+ { 8, 1320}, /* 232 */
+ { 8, 1328}, /* 233 */
+ { 8, 1336}, /* 234 */
+ { 8, 1344}, /* 235 */
+ { 8, 1352}, /* 236 */
+ { 8, 1360}, /* 237 */
+ { 8, 1368}, /* 238 */
+ { 8, 1376}, /* 239 */
+ { 8, 1384}, /* 240 */
+ { 8, 1392}, /* 241 */
+ { 8, 1400}, /* 242 */
+ { 8, 1408}, /* 243 */
+ { 8, 1416}, /* 244 */
+ { 8, 1424}, /* 245 */
+ { 8, 1432}, /* 246 */
+ { 8, 1440}, /* 247 */
+ { 8, 1448}, /* 248 */
+ { 8, 1456}, /* 249 */
+ { 8, 1464}, /* 250 */
+ { 8, 1472}, /* 251 */
+ { 8, 1480}, /* 252 */
+ { 8, 1488}, /* 253 */
+ { 8, 1496}, /* 254 */
+ { 8, 1504}, /* 255 */
+ { 8, 1512}, /* 256 */
+ { 8, 1520}, /* 257 */
+ { 8, 1528}, /* 258 */
+ { 8, 1536}, /* 259 */
+ { 8, 1544}, /* 260 */
+ { 8, 1552}, /* 261 */
+ { 8, 1560}, /* 262 */
+ { 8, 1568}, /* 263 */
+ { 8, 1576}, /* 264 */
+ { 8, 1584}, /* 265 */
+ { 8, 1592}, /* 266 */
+ { 8, 1600}, /* 267 */
+ { 8, 1608}, /* 268 */
+ { 8, 1616}, /* 269 */
+ { 8, 1624}, /* 270 */
+ { 8, 1632}, /* 271 */
+ { 8, 1640}, /* 272 */
+ { 8, 1648}, /* 273 */
+ { 8, 1656}, /* 274 */
+ { 8, 1664}, /* 275 */
+ { 8, 1672}, /* 276 */
+ { 8, 1680}, /* 277 */
+ { 8, 1688}, /* 278 */
+ { 8, 1696}, /* 279 */
+ { 8, 1704}, /* 280 */
+ { 8, 1712}, /* 281 */
+ { 8, 1720}, /* 282 */
+ { 8, 1728}, /* 283 */
+ { 8, 1736}, /* 284 */
+ { 8, 1744}, /* 285 */
+ { 8, 1752}, /* 286 */
+ { 8, 1760}, /* 287 */
+ { 8, 1768}, /* 288 */
+ { 8, 1776}, /* 289 */
+ { 8, 1784}, /* 290 */
+ { 8, 1792}, /* 291 */
+ { 8, 1800}, /* 292 */
+ { 8, 1808}, /* 293 */
+ { 8, 1816}, /* 294 */
+ { 8, 1824}, /* 295 */
+ { 8, 1832}, /* 296 */
+ { 8, 1840}, /* 297 */
+ { 16, 1848}, /* 298 */
+ { 16, 1864}, /* 299 */
+ { 16, 1880}, /* 300 */
+ { 16, 1896}, /* 301 */
+ { 16, 1912}, /* 302 */
+ { 16, 1928}, /* 303 */
+ { 16, 1944}, /* 304 */
+ { 16, 1960}, /* 305 */
+ { 16, 1976}, /* 306 */
+ { 16, 1992}, /* 307 */
+ { 16, 2008}, /* 308 */
+ { 16, 2024}, /* 309 */
+ { 16, 2040}, /* 310 */
+ { 16, 2056}, /* 311 */
+ { 16, 2072}, /* 312 */
+ { 16, 2088}, /* 313 */
+ { 16, 2104}, /* 314 */
+ { 16, 2120}, /* 315 */
+ { 16, 2136}, /* 316 */
+ { 16, 2152}, /* 317 */
+ { 16, 2168}, /* 318 */
+ { 16, 2184}, /* 319 */
+ { 16, 2200}, /* 320 */
+ { 16, 2216}, /* 321 */
+ { 16, 2232}, /* 322 */
+ { 16, 2248}, /* 323 */
+ { 16, 2264}, /* 324 */
+ { 16, 2280}, /* 325 */
+ { 16, 2296}, /* 326 */
+ { 16, 2312}, /* 327 */
+ { 16, 2328}, /* 328 */
+ { 16, 2344}, /* 329 */
+ { 16, 2360}, /* 330 */
+ { 16, 2376}, /* 331 */
+ { 16, 2392}, /* 332 */
+ { 16, 2408}, /* 333 */
+ { 32, 2424}, /* 334 */
+ { 32, 2456}, /* 335 */
+ { 32, 2488}, /* 336 */
+ { 16, 2520}, /* 337 */
+ { 16, 2536}, /* 338 */
+ { 16, 2552}, /* 339 */
+ { 16, 2568}, /* 340 */
+ { 16, 2584}, /* 341 */
+ { 16, 2600}, /* 342 */
+ { 16, 2616}, /* 343 */
+ { 16, 2632}, /* 344 */
+ { 16, 2648}, /* 345 */
+ { 16, 2664}, /* 346 */
+ { 16, 2680}, /* 347 */
+ { 16, 2696}, /* 348 */
+ { 4, 2712}, /* 349 */
+ { 4, 2716}, /* 350 */
+ { 4, 2720}, /* 351 */
+ { 4, 2724}, /* 352 */
+ { 8, 2728}, /* 353 */
+ { 8, 2736}, /* 354 */
+ { 4, 2744}, /* 355 */
+ { 8, 2748}, /* 356 */
+ { 8, 2756}, /* 357 */
+ { 8, 2764}, /* 358 */
+ { 8, 2772}, /* 359 */
+ { 8, 2780}, /* 360 */
+ { 8, 2788}, /* 361 */
+ { 8, 2796}, /* 362 */
+ { 16, 2804}, /* 363 */
+ { 16, 2820}, /* 364 */
+ { 16, 2836}, /* 365 */
+ { 8, 2852}, /* 366 */
+ { 8, 2860}, /* 367 */
+ { 8, 2868}, /* 368 */
+ { 8, 2876}, /* 369 */
+ { 8, 2884}, /* 370 */
+ { 8, 2892}, /* 371 */
+ { 8, 2900}, /* 372 */
+ { 8, 2908}, /* 373 */
+ { 16, 2916}, /* 374 */
+ { 16, 2932}, /* 375 */
+ { 8, 2948}, /* 376 */
+ { 8, 2956}, /* 377 */
+ { 8, 2964}, /* 378 */
+ { 8, 2972}, /* 379 */
+ { 8, 2980}, /* 380 */
+ { 8, 2988}, /* 381 */
+ { 8, 2996}, /* 382 */
+ { 8, 3004}, /* 383 */
+ { 16, 3012}, /* 384 */
+ { 16, 3028}, /* 385 */
+ { 16, 3044}, /* 386 */
+ { 16, 3060}, /* 387 */
+ { 8, 3076}, /* 388 */
+ { 8, 3084}, /* 389 */
+ { 8, 3092}, /* 390 */
+ { 8, 3100}, /* 391 */
+ { 8, 3108}, /* 392 */
+ { 8, 3116}, /* 393 */
+ { 8, 3124}, /* 394 */
+ { 8, 3132}, /* 395 */
+ { 16, 3140}, /* 396 */
+ { 16, 3156}, /* 397 */
+ { 16, 3172}, /* 398 */
+ { 16, 3188}, /* 399 */
+ { 16, 3204}, /* 400 */
+ { 16, 3220}, /* 401 */
+ { 16, 3236}, /* 402 */
+ { 16, 3252}, /* 403 */
+ { 16, 3268}, /* 404 */
+ { 16, 3284}, /* 405 */
+ { 16, 3300}, /* 406 */
+ { 16, 3316}, /* 407 */
+ { 16, 3332}, /* 408 */
+ { 16, 3348}, /* 409 */
+ { 16, 3364}, /* 410 */
+ { 16, 3380}, /* 411 */
+ { 16, 3396}, /* 412 */
+ { 16, 3412}, /* 413 */
+ { 16, 3428}, /* 414 */
+ { 16, 3444}, /* 415 */
+ { 16, 3460}, /* 416 */
+ { 16, 3476}, /* 417 */
+ { 16, 3492}, /* 418 */
+ { 16, 3508}, /* 419 */
+ { 16, 3524}, /* 420 */
+ { 16, 3540}, /* 421 */
+ { 16, 3556}, /* 422 */
+ { 16, 3572}, /* 423 */
+ { 32, 3588}, /* 424 */
+ { 32, 3620}, /* 425 */
+ { 32, 3652}, /* 426 */
+ { 32, 3684}, /* 427 */
+ { 32, 3716}, /* 428 */
+ { 32, 3748}, /* 429 */
+ { 3, 3780}, /* 430 */
+ { 3, 3783}, /* 431 */
+ { 3, 3786}, /* 432 */
+ { 9, 3789}, /* 433 */
+ { 3, 3798}, /* 434 */
+ { 6, 3801}, /* 435 */
+ { 18, 3807}, /* 436 */
+ { 6, 3825}, /* 437 */
+ { 6, 3831}, /* 438 */
+ { 6, 3837}, /* 439 */
+ { 6, 3843}, /* 440 */
+ { 6, 3849}, /* 441 */
+ { 6, 3855}, /* 442 */
+ { 6, 3861}, /* 443 */
+ { 18, 3867}, /* 444 */
+ { 6, 3885}, /* 445 */
+ { 6, 3891}, /* 446 */
+ { 6, 3897}, /* 447 */
+ { 6, 3903}, /* 448 */
+ { 6, 3909}, /* 449 */
+ { 18, 3915}, /* 450 */
+ { 6, 3933}, /* 451 */
+ { 18, 3939}, /* 452 */
+ { 6, 3957}, /* 453 */
+ { 12, 3963}, /* 454 */
+ { 12, 3975}, /* 455 */
+ { 12, 3987}, /* 456 */
+ { 12, 3999}, /* 457 */
+ { 36, 4011}, /* 458 */
+ { 12, 4047}, /* 459 */
+ { 36, 4059}, /* 460 */
+ { 12, 4095}, /* 461 */
+ { 6, 4107}, /* 462 */
+ { 6, 4113}, /* 463 */
+ { 6, 4119}, /* 464 */
+ { 6, 4125}, /* 465 */
+ { 6, 4131}, /* 466 */
+ { 6, 4137}, /* 467 */
+ { 6, 4143}, /* 468 */
+ { 12, 4149}, /* 469 */
+ { 12, 4161}, /* 470 */
+ { 12, 4173}, /* 471 */
+ { 12, 4185}, /* 472 */
+ { 12, 4197}, /* 473 */
+ { 12, 4209}, /* 474 */
+ { 12, 4221}, /* 475 */
+ { 12, 4233}, /* 476 */
+ { 12, 4245}, /* 477 */
+ { 12, 4257}, /* 478 */
+ { 12, 4269}, /* 479 */
+ { 12, 4281}, /* 480 */
+ { 12, 4293}, /* 481 */
+ { 12, 4305}, /* 482 */
+ { 12, 4317}, /* 483 */
+ { 12, 4329}, /* 484 */
+ { 24, 4341}, /* 485 */
+ { 24, 4365}, /* 486 */
+ { 24, 4389}, /* 487 */
+ { 24, 4413}, /* 488 */
+ { 12, 4437}, /* 489 */
+ { 48, 4449}, /* 490 */
+ { 24, 4497}, /* 491 */
+ { 12, 4521}, /* 492 */
+ { 24, 4533}, /* 493 */
+ { 24, 4557}, /* 494 */
+ { 24, 4581}, /* 495 */
+ { 24, 4605}, /* 496 */
+ { 96, 4629}, /* 497 */
+ { 96, 4725}, /* 498 */
+ { 96, 4821}, /* 499 */
+ { 48, 4917}, /* 500 */
+ { 24, 4965}, /* 501 */
+ { 48, 4989}, /* 502 */
+ { 24, 5037}, /* 503 */
+ { 24, 5061}, /* 504 */
+ { 96, 5085}, /* 505 */
+ { 96, 5181}, /* 506 */
+ { 48, 5277}, /* 507 */
+ { 24, 5325}, /* 508 */
+ { 24, 5349}, /* 509 */
+ { 48, 5373}, /* 510 */
+ { 24, 5421}, /* 511 */
+ { 96, 5445}, /* 512 */
+ { 48, 5541}, /* 513 */
+ { 24, 5589}, /* 514 */
+ { 96, 5613}, /* 515 */
+ { 48, 5709}, /* 516 */
+ { 48, 5757}, /* 517 */
+ { 48, 5805}, /* 518 */
+ { 48, 5853}, /* 519 */
+ { 48, 5901}, /* 520 */
+ { 48, 5949}, /* 521 */
+ { 48, 5997}, /* 522 */
+ { 192, 6045}, /* 523 */
+ { 192, 6237}, /* 524 */
+ { 192, 6429}, /* 525 */
+ { 192, 6621}, /* 526 */
+ { 192, 6813}, /* 527 */
+ { 192, 7005}, /* 528 */
+ { 96, 7197}, /* 529 */
+ { 96, 7293}, /* 530 */
+};
+
+int spgdb_get_operation( int rot[3][3],
+ double trans[3],
+ const int index )
+{
+ int i, j, r, t, degit;
+
+ /* A space group operation is compressed using ternary numerical system for */
+ /* rotation and duodecimal system for translation. This is achieved because */
+ /* each element of rotation matrix can have only one of {-1,0,1}, and */
+ /* the translation can have one of {0,2,3,4,6,8,9,10} divided by */
+ /* 12. Therefore 3^9 * 12^3 = 34012224 different values can map space */
+ /* group operations. In principle, octal numerical system can be used */
+ /* for translation, but duodecimal system is more convenient. */
+
+ r = symmetry_operations[index] % 19683; /* 19683 = 3**9 */
+ degit = 6561; /* 6561 = 3**8 */
+ for ( i = 0; i < 3; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ rot[i][j] = ( r % ( degit * 3 ) ) / degit - 1;
+ degit /= 3;
+ }
+ }
+
+ t = symmetry_operations[index] / 19683; /* 19683 = 3**9 */
+ degit = 144;
+ for ( i = 0; i < 3; i++ ) {
+ trans[i] = ( (double) ( ( t % ( degit * 12 ) ) / degit ) ) / 12;
+ degit /= 12;
+ }
+
+ return 1;
+}
+
+void spgdb_get_operation_index( int indices[2], const int hall_number )
+{
+ indices[0] = symmetry_operation_index[ hall_number ][0];
+ indices[1] = symmetry_operation_index[ hall_number ][1];
+}
+
+SpacegroupType spgdb_get_spacegroup_type( int index )
+{
+ return spacegroup_types[index];
+}
+
diff --git a/src/spg_database.h b/src/spg_database.h
new file mode 100644
index 0000000..3abb265
--- /dev/null
+++ b/src/spg_database.h
@@ -0,0 +1,26 @@
+/* spg_database.h */
+/* Copyright (C) 2010 Atsushi Togo */
+
+#ifndef __spg_database_H__
+#define __spg_database_H__
+
+#include "lattice.h"
+#include "pointgroup.h"
+
+typedef struct {
+ int number;
+ char schoenflies[7];
+ char hall_symbol[17];
+ char international[32];
+ char international_full[20];
+ char international_short[11];
+ Holohedry holohedry;
+} SpacegroupType;
+
+int spgdb_get_operation( int rot[3][3],
+ double trans[3],
+ const int index );
+void spgdb_get_operation_index( int indices[2], const int hall_number );
+SpacegroupType spgdb_get_spacegroup_type( int index );
+
+#endif
diff --git a/src/spglib.c b/src/spglib.c
new file mode 100644
index 0000000..e45350c
--- /dev/null
+++ b/src/spglib.c
@@ -0,0 +1,1136 @@
+/* spglib.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "spglib.h"
+#include "refinement.h"
+#include "cell.h"
+#include "lattice.h"
+#include "mathfunc.h"
+#include "pointgroup.h"
+#include "primitive.h"
+#include "spacegroup.h"
+#include "symmetry.h"
+#include "kpoint.h"
+#include "spin.h"
+
+static SpglibDataset * get_dataset(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+static int get_symmetry(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+static int get_symmetry_with_collinear_spin(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const double spins[],
+ const int num_atom,
+ const double symprec);
+
+static int get_multiplicity(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+static int find_primitive(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec);
+
+static int get_international(char symbol[11],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+static int get_schoenflies(char symbol[10],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[], const int num_atom,
+ const double symprec);
+
+static int refine_cell(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec);
+
+static int get_ir_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const int is_time_reversal,
+ const double symprec);
+
+static int get_ir_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+static int get_stabilized_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3],
+ const int num_q,
+ SPGCONST double qpoints[][3]);
+
+static SpglibTriplets * get_triplets_reciprocal_mesh(const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3]);
+
+static int get_triplets_reciprocal_mesh_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3]);
+
+static int extract_triplets_reciprocal_mesh_at_q(int triplets_at_q[][3],
+ int weight_triplets_at_q[],
+ const int fixed_grid_number,
+ const int num_triplets,
+ SPGCONST int triplets[][3],
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3]);
+
+
+SpglibDataset * spg_get_dataset(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_dataset(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+SpglibDataset * spgat_get_dataset(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return get_dataset(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+void spg_free_dataset(SpglibDataset *dataset)
+{
+ if (dataset->n_operations > 0) {
+ free(dataset->rotations);
+ dataset->rotations = NULL;
+ free(dataset->translations);
+ dataset->translations = NULL;
+ }
+
+ if (! (dataset->wyckoffs == NULL)) {
+ free(dataset->wyckoffs);
+ dataset->wyckoffs = NULL;
+ }
+
+ if (! (dataset->equivalent_atoms == NULL)) {
+ free(dataset->equivalent_atoms);
+ dataset->equivalent_atoms = NULL;
+ }
+
+ free(dataset);
+ dataset = NULL;
+}
+
+int spg_get_symmetry(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_symmetry(rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spgat_get_symmetry(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return get_symmetry(rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_symmetry_with_collinear_spin(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const double spins[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_symmetry_with_collinear_spin(rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ spins,
+ num_atom,
+ symprec);
+}
+
+int spgat_get_symmetry_with_collinear_spin(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const double spins[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return get_symmetry_with_collinear_spin(rotation,
+ translation,
+ max_size,
+ lattice,
+ position,
+ types,
+ spins,
+ num_atom,
+ symprec);
+}
+
+int spg_get_multiplicity(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_multiplicity(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spgat_get_multiplicity(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return get_multiplicity(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_smallest_lattice(double smallest_lattice[3][3],
+ SPGCONST double lattice[3][3],
+ const double symprec)
+{
+ return lat_smallest_lattice_vector(smallest_lattice, lattice, symprec);
+}
+
+int spg_find_primitive(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return find_primitive(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spgat_find_primitive(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return find_primitive(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_international(char symbol[11],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_international(symbol,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spgat_get_international(char symbol[11],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return get_international(symbol,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_schoenflies(char symbol[10],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_schoenflies(symbol,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spgat_get_schoenflies(char symbol[10],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return get_schoenflies(symbol,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_pointgroup(char symbol[6],
+ int trans_mat[3][3],
+ SPGCONST int rotations[][3][3],
+ const int num_rotations)
+{
+ int ptg_num;
+ double tmp_trans_mat[3][3];
+ Pointgroup ptgroup;
+
+ ptg_num = ptg_get_pointgroup_number_by_rotations(rotations,
+ num_rotations);
+ ptgroup = ptg_get_pointgroup(ptg_num);
+ strcpy(symbol, ptgroup.symbol);
+ ptg_get_transformation_matrix(tmp_trans_mat,
+ rotations,
+ num_rotations);
+ mat_cast_matrix_3d_to_3i(trans_mat, tmp_trans_mat);
+ return ptg_num + 1;
+}
+
+int spg_refine_cell(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return refine_cell(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spgat_refine_cell(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance)
+{
+ sym_set_angle_tolerance(angle_tolerance);
+
+ return refine_cell(lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_ir_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const int is_time_reversal,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_ir_kpoints(map,
+ kpoints,
+ num_kpoint,
+ lattice,
+ position,
+ types,
+ num_atom,
+ is_time_reversal,
+ symprec);
+}
+
+int spg_get_ir_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ sym_set_angle_tolerance(-1.0);
+
+ return get_ir_reciprocal_mesh(grid_point,
+ map,
+ mesh,
+ is_shift,
+ is_time_reversal,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec);
+}
+
+int spg_get_stabilized_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3],
+ const int num_q,
+ SPGCONST double qpoints[][3])
+{
+ return get_stabilized_reciprocal_mesh(grid_point,
+ map,
+ mesh,
+ is_shift,
+ is_time_reversal,
+ num_rot,
+ rotations,
+ num_q,
+ qpoints);
+}
+
+SpglibTriplets * spg_get_triplets_reciprocal_mesh(const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3])
+{
+ return get_triplets_reciprocal_mesh(mesh,
+ is_time_reversal,
+ num_rot,
+ rotations);
+}
+
+void spg_free_triplets(SpglibTriplets * spg_triplets)
+{
+ free(spg_triplets->triplets);
+ spg_triplets->triplets = NULL;
+ free(spg_triplets->weights);
+ spg_triplets->weights = NULL;
+ free(spg_triplets);
+ free(spg_triplets->mesh_points);
+ spg_triplets->mesh_points = NULL;
+ spg_triplets = NULL;
+}
+
+int spg_get_triplets_reciprocal_mesh_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3])
+{
+ return get_triplets_reciprocal_mesh_at_q(weights,
+ grid_points,
+ third_q,
+ grid_point,
+ mesh,
+ is_time_reversal,
+ num_rot,
+ rotations);
+}
+
+int spg_extract_triplets_reciprocal_mesh_at_q(int triplets_at_q[][3],
+ int weight_triplets_at_q[],
+ const int fixed_grid_number,
+ const int num_triplets,
+ SPGCONST int triplets[][3],
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3])
+{
+ return extract_triplets_reciprocal_mesh_at_q(triplets_at_q,
+ weight_triplets_at_q,
+ fixed_grid_number,
+ num_triplets,
+ triplets,
+ mesh,
+ is_time_reversal,
+ num_rot,
+ rotations);
+}
+
+
+static SpglibDataset * get_dataset(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ int i, j;
+ int *mapping_table, *wyckoffs, *equiv_atoms, *equiv_atoms_prim;
+ double tolerance;
+ Spacegroup spacegroup;
+ SpglibDataset *dataset;
+ Cell *cell, *primitive;
+ double inv_mat[3][3];
+ Symmetry *symmetry;
+
+ dataset = (SpglibDataset*) malloc(sizeof(SpglibDataset));
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+
+ mapping_table = (int*) malloc(sizeof(int) * cell->size);
+ primitive = prm_get_primitive_with_mapping_table(mapping_table,
+ cell,
+ symprec);
+ tolerance = prm_get_current_tolerance();
+ spacegroup = spa_get_spacegroup_with_primitive(primitive, tolerance);
+
+ if (spacegroup.number > 0) {
+ /* Spacegroup type, transformation matrix, origin shift */
+ dataset->spacegroup_number = spacegroup.number;
+ dataset->hall_number = spacegroup.hall_number;
+ strcpy(dataset->international_symbol, spacegroup.international_short);
+ strcpy(dataset->hall_symbol, spacegroup.hall_symbol);
+ mat_inverse_matrix_d3(inv_mat, lattice, tolerance);
+ mat_multiply_matrix_d3(dataset->transformation_matrix,
+ inv_mat,
+ spacegroup.bravais_lattice);
+ mat_copy_vector_d3(dataset->origin_shift, spacegroup.origin_shift);
+
+ /* Wyckoff positions */
+ wyckoffs = (int*) malloc(sizeof(int) * primitive->size);
+ equiv_atoms_prim = (int*) malloc(sizeof(int) * primitive->size);
+ for (i = 0; i < primitive->size; i++) {
+ wyckoffs[i] = -1;
+ equiv_atoms_prim[i] = -1;
+ }
+ ref_get_Wyckoff_positions(wyckoffs,
+ equiv_atoms_prim,
+ primitive,
+ &spacegroup,
+ tolerance);
+ dataset->n_atoms = cell->size;
+ dataset->wyckoffs = (int*) malloc(sizeof(int) * cell->size);
+ for (i = 0; i < cell->size; i++) {
+ dataset->wyckoffs[i] = wyckoffs[mapping_table[i]];
+ }
+
+ free(wyckoffs);
+ wyckoffs = NULL;
+
+ /* Equivalent atoms */
+ dataset->equivalent_atoms = (int*) malloc(sizeof(int) * cell->size);
+ equiv_atoms = (int*) malloc(sizeof(int) * primitive->size);
+ for (i = 0; i < primitive->size; i++) {
+ for (j = 0; j < cell->size; j++) {
+ if (mapping_table[j] == equiv_atoms_prim[i]) {
+ equiv_atoms[i] = j;
+ break;
+ }
+ }
+ }
+ for (i = 0; i < cell->size; i++) {
+ dataset->equivalent_atoms[i] = equiv_atoms[mapping_table[i]];
+ }
+ free(equiv_atoms);
+ equiv_atoms = NULL;
+
+ free(equiv_atoms_prim);
+ equiv_atoms_prim = NULL;
+
+ /* Symmetry operations */
+ symmetry = ref_get_refined_symmetry_operations(cell,
+ primitive,
+ &spacegroup,
+ tolerance);
+ dataset->rotations = (int (*)[3][3]) malloc(sizeof(int[3][3]) * symmetry->size);
+ dataset->translations = (double (*)[3]) malloc(sizeof(double[3]) * symmetry->size);
+ dataset->n_operations = symmetry->size;
+ for (i = 0; i < symmetry->size; i++) {
+ mat_copy_matrix_i3(dataset->rotations[i], symmetry->rot[i]);
+ mat_copy_vector_d3(dataset->translations[i], symmetry->trans[i]);
+ }
+ sym_free_symmetry(symmetry);
+
+ } else {
+ dataset->spacegroup_number = 0;
+ }
+
+ free(mapping_table);
+ mapping_table = NULL;
+
+ cel_free_cell(primitive);
+
+ if (dataset->spacegroup_number == 0) {
+ strcpy(dataset->international_symbol, "");
+ strcpy(dataset->hall_symbol, "");
+ dataset->origin_shift[0] = 0;
+ dataset->origin_shift[1] = 0;
+ dataset->origin_shift[2] = 0;
+ dataset->n_atoms = 0;
+ dataset->wyckoffs = NULL;
+ dataset->equivalent_atoms = NULL;
+ dataset->n_operations = 0;
+ dataset->rotations = NULL;
+ dataset->translations = NULL;
+ }
+
+ cel_free_cell(cell);
+ return dataset;
+}
+
+static int get_symmetry(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ int i, j, size;
+ Symmetry *symmetry;
+ Cell *cell;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+ symmetry = sym_get_operation(cell, symprec);
+
+ if (symmetry->size > max_size) {
+ fprintf(stderr, "spglib: Indicated max size(=%d) is less than number ", max_size);
+ fprintf(stderr, "spglib: of symmetry operations(=%d).\n", symmetry->size);
+ sym_free_symmetry(symmetry);
+ return 0;
+ }
+
+ for (i = 0; i < symmetry->size; i++) {
+ mat_copy_matrix_i3(rotation[i], symmetry->rot[i]);
+ for (j = 0; j < 3; j++) {
+ translation[i][j] = symmetry->trans[i][j];
+ }
+ }
+
+ size = symmetry->size;
+
+ cel_free_cell(cell);
+ sym_free_symmetry(symmetry);
+
+ return size;
+}
+
+static int get_symmetry_with_collinear_spin(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const double spins[],
+ const int num_atom,
+ const double symprec)
+{
+ int i, j, size;
+ Symmetry *symmetry;
+ Cell *cell;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+ symmetry = spn_get_collinear_operation(cell, spins, symprec);
+
+ if (symmetry->size > max_size) {
+ fprintf(stderr, "spglib: Indicated max size(=%d) is less than number ", max_size);
+ fprintf(stderr, "spglib: of symmetry operations(=%d).\n", symmetry->size);
+ sym_free_symmetry(symmetry);
+ return 0;
+ }
+
+ for (i = 0; i < symmetry->size; i++) {
+ mat_copy_matrix_i3(rotation[i], symmetry->rot[i]);
+ for (j = 0; j < 3; j++) {
+ translation[i][j] = symmetry->trans[i][j];
+ }
+ }
+
+ size = symmetry->size;
+
+ cel_free_cell(cell);
+ sym_free_symmetry(symmetry);
+
+ return size;
+}
+
+static int get_multiplicity(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ Symmetry *symmetry;
+ Cell *cell;
+ int size;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+ symmetry = sym_get_operation(cell, symprec);
+
+ size = symmetry->size;
+
+ cel_free_cell(cell);
+ sym_free_symmetry(symmetry);
+
+ return size;
+}
+
+static int find_primitive(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec)
+{
+ int i, j, num_prim_atom=0;
+ Cell *cell, *primitive;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+
+ /* find primitive cell */
+ primitive = prm_get_primitive(cell, symprec);
+ if (primitive->size == cell->size) { /* Already primitive */
+ num_prim_atom = 0;
+ } else { /* Primitive cell was found. */
+ num_prim_atom = primitive->size;
+ if (num_prim_atom < num_atom && num_prim_atom > 0 ) {
+ mat_copy_matrix_d3(lattice, primitive->lattice);
+ for (i = 0; i < primitive->size; i++) {
+ types[i] = primitive->types[i];
+ for (j=0; j<3; j++) {
+ position[i][j] = primitive->position[i][j];
+ }
+ }
+ }
+ }
+
+ cel_free_cell(primitive);
+ cel_free_cell(cell);
+
+ return num_prim_atom;
+}
+
+static int get_international(char symbol[11],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ Cell *cell;
+ Spacegroup spacegroup;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+ spacegroup = spa_get_spacegroup(cell, symprec);
+ if (spacegroup.number > 0) {
+ strcpy(symbol, spacegroup.international_short);
+ }
+
+ cel_free_cell(cell);
+
+ return spacegroup.number;
+}
+
+static int get_schoenflies(char symbol[10],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ Cell *cell;
+ Spacegroup spacegroup;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+
+ spacegroup = spa_get_spacegroup(cell, symprec);
+ if (spacegroup.number > 0) {
+ strcpy(symbol, spacegroup.schoenflies);
+ }
+
+ cel_free_cell(cell);
+
+ return spacegroup.number;
+}
+
+static int refine_cell(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec)
+{
+ int i, num_atom_bravais;
+ Cell *cell, *bravais;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+
+ bravais = ref_refine_cell(cell, symprec);
+ cel_free_cell(cell);
+
+ if (bravais->size > 0) {
+ mat_copy_matrix_d3(lattice, bravais->lattice);
+ num_atom_bravais = bravais->size;
+ for (i = 0; i < bravais->size; i++) {
+ types[i] = bravais->types[i];
+ mat_copy_vector_d3(position[i], bravais->position[i]);
+ }
+ } else {
+ num_atom_bravais = 0;
+ }
+
+ cel_free_cell(bravais);
+
+ return num_atom_bravais;
+}
+
+static int get_ir_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoint,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const int is_time_reversal,
+ const double symprec)
+{
+ Symmetry *symmetry;
+ Cell *cell;
+ int num_ir_kpoint;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+ symmetry = sym_get_operation(cell, symprec);
+
+ num_ir_kpoint = kpt_get_irreducible_kpoints(map,
+ kpoints,
+ num_kpoint,
+ symmetry,
+ is_time_reversal,
+ symprec);
+
+
+ cel_free_cell(cell);
+ sym_free_symmetry(symmetry);
+
+ return num_ir_kpoint;
+}
+
+static int get_ir_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec)
+{
+ Symmetry *symmetry;
+ Cell *cell;
+ int num_ir;
+
+ cell = cel_alloc_cell(num_atom);
+ cel_set_cell(cell, lattice, position, types);
+ symmetry = sym_get_operation(cell, symprec);
+
+ num_ir = kpt_get_irreducible_reciprocal_mesh(grid_point,
+ map,
+ mesh,
+ is_shift,
+ is_time_reversal,
+ symmetry);
+
+
+ cel_free_cell(cell);
+ sym_free_symmetry(symmetry);
+
+ return num_ir;
+}
+
+static int get_stabilized_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3],
+ const int num_q,
+ SPGCONST double qpoints[][3])
+{
+ MatINT *rot_real;
+ int i, num_ir;
+
+ rot_real = mat_alloc_MatINT(num_rot);
+ for (i = 0; i < num_rot; i++) {
+ mat_copy_matrix_i3(rot_real->mat[i], rotations[i]);
+ }
+
+ num_ir = kpt_get_stabilized_reciprocal_mesh(grid_point,
+ map,
+ mesh,
+ is_shift,
+ is_time_reversal,
+ rot_real,
+ num_q,
+ qpoints);
+
+ mat_free_MatINT(rot_real);
+
+ return num_ir;
+}
+
+static SpglibTriplets * get_triplets_reciprocal_mesh(const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3])
+{
+ int i, j, num_grid;
+ MatINT *rot_real;
+ Triplets *tps;
+ SpglibTriplets *spg_triplets;
+
+ num_grid = mesh[0] * mesh[1] * mesh[2];
+ rot_real = mat_alloc_MatINT(num_rot);
+ for (i = 0; i < num_rot; i++) {
+ mat_copy_matrix_i3(rot_real->mat[i], rotations[i]);
+ }
+
+ tps = kpt_get_triplets_reciprocal_mesh(mesh,
+ is_time_reversal,
+ rot_real);
+ mat_free_MatINT(rot_real);
+
+ spg_triplets = (SpglibTriplets*) malloc(sizeof(SpglibTriplets));
+ spg_triplets->size = tps->size;
+ spg_triplets->triplets = (int (*)[3]) malloc(sizeof(int[3]) * tps->size);
+ spg_triplets->weights = (int*) malloc(sizeof(int) * tps->size);
+ spg_triplets->mesh_points = (int (*)[3]) malloc(sizeof(int[3]) * num_grid);
+
+ for (i = 0; i < 3; i++) {
+ spg_triplets->mesh[i] = tps->mesh[i];
+ }
+ for (i = 0; i < num_grid; i++) {
+ for (j = 0; j < 3; j++) {
+ spg_triplets->mesh_points[i][j] = tps->mesh_points[i][j];
+ }
+ }
+
+ for (i = 0; i < tps->size; i++) {
+ for (j = 0; j < 3; j++) {
+ spg_triplets->triplets[i][j] = tps->triplets[i][j];
+ }
+ spg_triplets->weights[i] = tps->weights[i];
+ }
+ kpt_free_triplets(tps);
+
+ return spg_triplets;
+}
+
+static int get_triplets_reciprocal_mesh_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3])
+{
+ MatINT *rot_real;
+ int i, num_ir;
+
+ rot_real = mat_alloc_MatINT(num_rot);
+ for (i = 0; i < num_rot; i++) {
+ mat_copy_matrix_i3(rot_real->mat[i], rotations[i]);
+ }
+
+ num_ir = kpt_get_ir_triplets_at_q(weights,
+ grid_points,
+ third_q,
+ grid_point,
+ mesh,
+ is_time_reversal,
+ rot_real);
+
+ mat_free_MatINT(rot_real);
+
+ return num_ir;
+}
+
+static int extract_triplets_reciprocal_mesh_at_q(int triplets_at_q[][3],
+ int weight_triplets_at_q[],
+ const int fixed_grid_number,
+ const int num_triplets,
+ SPGCONST int triplets[][3],
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3])
+{
+ MatINT *rot_real;
+ int i, num_ir;
+
+ rot_real = mat_alloc_MatINT(num_rot);
+ for (i = 0; i < num_rot; i++) {
+ mat_copy_matrix_i3(rot_real->mat[i], rotations[i]);
+ }
+
+ num_ir = kpt_extract_triplets_reciprocal_mesh_at_q(triplets_at_q,
+ weight_triplets_at_q,
+ fixed_grid_number,
+ num_triplets,
+ triplets,
+ mesh,
+ is_time_reversal,
+ rot_real);
+
+
+ mat_free_MatINT(rot_real);
+
+ return num_ir;
+}
diff --git a/src/spglib.h b/src/spglib.h
new file mode 100644
index 0000000..dfc90be
--- /dev/null
+++ b/src/spglib.h
@@ -0,0 +1,340 @@
+/* spglib.h version 1.4.1 */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __spglib_H__
+#define __spglib_H__
+
+/* SPGCONST is used instead of 'const' so to avoid gcc warning. */
+/* However there should be better way than this way.... */
+#define SPGCONST
+
+/*
+ ------------------------------------------------------------------
+
+ lattice: Lattice vectors (in Cartesian)
+
+ [ [ a_x, b_x, c_x ],
+ [ a_y, b_y, c_y ],
+ [ a_z, b_z, c_z ] ]
+
+ position: Atomic positions (in fractional coordinates)
+
+ [ [ x1_a, x1_b, x1_c ],
+ [ x2_a, x2_b, x2_c ],
+ [ x3_a, x3_b, x3_c ],
+ ... ]
+
+ types: Atom types, i.e., species identified by number
+
+ [ type_1, type_2, type_3, ... ]
+
+ rotation: Rotation matricies of symmetry operations
+
+ each rotation is:
+ [ [ r_aa, r_ab, r_ac ],
+ [ r_ba, r_bb, r_bc ],
+ [ r_ca, r_cb, r_cc ] ]
+
+ translation: Translation vectors of symmetry operations
+
+ each translation is:
+ [ t_a, t_b, t_c ]
+
+ symprec: Tolerance of atomic positions (in fractional coordinate)
+ in finding symmetry operations
+
+ ------------------------------------------------------------------
+
+ Definitio of the operation:
+ r : rotation 3x3 matrix
+ t : translation vector
+
+ x_new = r * x + t:
+ [ x_new_a ] [ r_aa, r_ab, r_ac ] [ x_a ] [ t_a ]
+ [ x_new_b ] = [ r_ba, r_bb, r_bc ] * [ x_b ] + [ t_b ]
+ [ x_new_c ] [ r_ca, r_cb, r_cc ] [ x_c ] [ t_c ]
+
+ ------------------------------------------------------------------
+*/
+
+typedef struct {
+ int spacegroup_number;
+ int hall_number;
+ char international_symbol[11];
+ char hall_symbol[17];
+ double transformation_matrix[3][3]; /* bravais_lattice = T * original_lattice */
+ double origin_shift[3]; /* Origin shift in Bravais lattice */
+ int n_operations; /* Symmetry operations from database */
+ int (*rotations)[3][3];
+ double (*translations)[3];
+ int n_atoms;
+ int *wyckoffs; /* Wyckoff letters */
+ int *equivalent_atoms;
+} SpglibDataset;
+
+typedef struct {
+ int size;
+ int (*triplets)[3];
+ int *weights;
+ int mesh[3];
+ int (*mesh_points)[3];
+} SpglibTriplets;
+
+SpglibDataset * spg_get_dataset(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+SpglibDataset * spgat_get_dataset(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+void spg_free_dataset(SpglibDataset *dataset);
+
+/* Find symmetry operations. The operations are stored in */
+/* ``rotatiion`` and ``translation``. The number of operations is */
+/* return as the return value. Rotations and translations are */
+/* given in fractional coordinates, and ``rotation[i]`` and */
+/* ``translation[i]`` with same index give a symmetry oprations, */
+/* i.e., these have to be used togather. */
+int spg_get_symmetry(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_get_symmetry(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Find symmetry operations with collinear spins on atoms. */
+int spg_get_symmetry_with_collinear_spin(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const double spins[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_get_symmetry_with_collinear_spin(int rotation[][3][3],
+ double translation[][3],
+ const int max_size,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const double spins[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Return exact number of symmetry operations. This function may */
+/* be used in advance to allocate memoery space for symmetry */
+/* operations. Only upper bound is required, */
+/* ``spg_get_max_multiplicity`` can be used instead of this */
+/* function and ``spg_get_max_multiplicity`` is faster than this */
+/* function. */
+int spg_get_multiplicity(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_get_multiplicity(SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Considering periodicity of crystal, one of the possible smallest */
+/* lattice is searched. The lattice is stored in ``smallest_lattice``. */
+int spg_get_smallest_lattice(double smallest_lattice[3][3],
+ SPGCONST double lattice[3][3],
+ const double symprec);
+
+/* A primitive cell is found from an input cell. Be careful that */
+/* ``lattice``, ``position``, and ``types`` are overwritten. */
+/* ``num_atom`` is returned as return value. */
+/* When any primitive cell is not found, 0 is returned. */
+int spg_find_primitive(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_find_primitive(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Space group is found in international table symbol (``symbol``) and */
+/* number (return value). 0 is returned when it fails. */
+int spg_get_international(char symbol[11],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_get_international(char symbol[11],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Space group is found in schoenflies (``symbol``) and as number (return */
+/* value). 0 is returned when it fails. */
+int spg_get_schoenflies(char symbol[10],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_get_schoenflies(char symbol[10],
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Point group symbol is obtained from the rotation part of */
+/* symmetry operations */
+int spg_get_pointgroup(char symbol[6],
+ int trans_mat[3][3],
+ SPGCONST int rotations[][3][3],
+ const int num_rotations);
+
+/* Bravais lattice with internal atomic points are returned. */
+/* The arrays are require to have 4 times larger memory space */
+/* those of input cell. */
+/* When bravais lattice could not be found, or could not be */
+/* symmetrized, 0 is returned. */
+int spg_refine_cell(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec);
+
+int spgat_refine_cell(double lattice[3][3],
+ double position[][3],
+ int types[],
+ const int num_atom,
+ const double symprec,
+ const double angle_tolerance);
+
+/* Irreducible k-points are searched from the input k-points */
+/* (``kpoints``). The result is returned as a map of */
+/* numbers (``map``), where ``kpoints`` and ``map`` have to have */
+/* the same number of elements. The array index of ``map`` */
+/* corresponds to the reducible k-point numbering. After finding */
+/* irreducible k-points, the indices of the irreducible k-points */
+/* are mapped to the elements of ``map``, i.e., number of unique */
+/* values in ``map`` is the number of the irreducible k-points. */
+/* The number of the irreducible k-points is also returned as the */
+/* return value. */
+int spg_get_ir_kpoints(int map[],
+ SPGCONST double kpoints[][3],
+ const int num_kpoints,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const int is_time_reversal,
+ const double symprec);
+
+/* Irreducible reciprocal grid points are searched from uniform */
+/* mesh grid points specified by ``mesh`` and ``is_shift``. */
+/* ``mesh`` stores three integers. Reciprocal primitive vectors */
+/* are divided by the number stored in ``mesh`` with (0,0,0) point */
+/* centering. The centering can be shifted only half of one mesh */
+/* by setting 1 for each ``is_shift`` element. If 0 is set for */
+/* ``is_shift``, it means there is no shift. This limitation of */
+/* shifting enables the irreducible k-point search significantly */
+/* faster when the mesh is very dense. */
+
+/* The reducible uniform grid points are returned in reduced */
+/* coordinates as ``grid_point``. A map between reducible and */
+/* irreducible points are returned as ``map`` as in the indices of */
+/* ``grid_point``. The number of the irreducible k-points are */
+/* returned as the return value. The time reversal symmetry is */
+/* imposed by setting ``is_time_reversal`` 1. */
+int spg_get_ir_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ SPGCONST double lattice[3][3],
+ SPGCONST double position[][3],
+ const int types[],
+ const int num_atom,
+ const double symprec);
+
+/* The irreducible k-points are searched from unique k-point mesh */
+/* grids from real space lattice vectors and rotation matrices of */
+/* symmetry operations in real space with stabilizers. The */
+/* stabilizers are written in reduced coordinates. Number of the */
+/* stabilizers are given by ``num_q``. Reduced k-points are stored */
+/* in ``map`` as indices of ``grid_point``. The number of the */
+/* reduced k-points with stabilizers are returned as the return */
+/* value. */
+int spg_get_stabilized_reciprocal_mesh(int grid_point[][3],
+ int map[],
+ const int mesh[3],
+ const int is_shift[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3],
+ const int num_q,
+ SPGCONST double qpoints[][3]);
+
+/* Irreducible triplets of k-points are searched under conservation of */
+/* :math:``\mathbf{k}_1 + \mathbf{k}_2 + \mathbf{k}_3 = \mathbf{G}``. */
+/* Don't forget to free memory space of triplets using spg_free_triplets */
+SpglibTriplets * spg_get_triplets_reciprocal_mesh(const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3]);
+
+void spg_free_triplets(SpglibTriplets * triplets);
+
+int spg_get_triplets_reciprocal_mesh_at_q(int weights[],
+ int grid_points[][3],
+ int third_q[],
+ const int grid_point,
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3]);
+
+int spg_extract_triplets_reciprocal_mesh_at_q(int triplets_at_q[][3],
+ int weight_triplets_at_q[],
+ const int fixed_grid_number,
+ const int num_triplets,
+ SPGCONST int triplets[][3],
+ const int mesh[3],
+ const int is_time_reversal,
+ const int num_rot,
+ SPGCONST int rotations[][3][3]);
+
+#endif
diff --git a/src/spglib_f.c b/src/spglib_f.c
new file mode 100644
index 0000000..a848df9
--- /dev/null
+++ b/src/spglib_f.c
@@ -0,0 +1,198 @@
+#include "spglib.h"
+#include <string.h>
+
+void spg_get_multiplicity_(int *size,
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+void spg_get_symmetry_(int *nsym,
+ int rot[][3][3],
+ double trans[][3],
+ int *size,
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+void spg_get_smallest_lattice_(double smallest_lattice[3][3],
+ double lattice[3][3],
+ double *symprec);
+void spg_get_international_(int *spacegroup,
+ char symbol[11],
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+void spg_refine_cell_(double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+void spg_get_schoenflies_(int *spacegroup,
+ char symbol[7],
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+void spg_find_primitive_(double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+void spg_get_ir_reciprocal_mesh_(int *num_ir_grid,
+ int grid_point[][3],
+ int map[],
+ int mesh[3],
+ int is_shift[3],
+ int *is_time_reversal,
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec);
+
+
+
+
+
+void spg_get_multiplicity_(int *size,
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+ *size = spg_get_multiplicity(lattice, position, types, *num_atom, *symprec);
+}
+
+void spg_get_symmetry_(int *nsym,
+ int rot[][3][3],
+ double trans[][3],
+ int *size,
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+ *nsym = spg_get_symmetry(rot, trans, *size, lattice, position,
+ types, *num_atom, *symprec);
+}
+
+void spg_get_smallest_lattice_(double smallest_lattice[3][3],
+ double lattice[3][3],
+ double *symprec)
+{
+ spg_get_smallest_lattice(smallest_lattice, lattice, *symprec);
+}
+
+void spg_get_international_(int *spacegroup,
+ char symbol[11],
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+ char symbol_c[11];
+ int i, length;
+
+ *spacegroup = spg_get_international(symbol_c, lattice, position, types,
+ *num_atom, *symprec);
+ if (*spacegroup > 0) {
+ length = strlen(symbol_c);
+ strncpy(symbol, symbol_c, length);
+ } else {
+ length = 0;
+ }
+
+ for (i = length; i < 11; i++) {
+ symbol[i] = ' ';
+ }
+}
+
+void spg_refine_cell_(double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+ int num_atom_bravais;
+
+ num_atom_bravais = spg_refine_cell(lattice,
+ position,
+ types,
+ *num_atom,
+ *symprec);
+ *num_atom = num_atom_bravais;
+}
+
+
+void spg_get_schoenflies_(int *spacegroup,
+ char symbol[7],
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+ char symbol_c[7];
+ int i, length;
+
+ *spacegroup = spg_get_schoenflies(symbol_c, lattice, position, types,
+ *num_atom, *symprec);
+ if (*spacegroup > 0) {
+ length = strlen(symbol_c);
+ strncpy(symbol, symbol_c, length);
+ } else {
+ length = 0;
+ }
+
+ for (i = length; i < 7; i++) {
+ symbol[i] = ' ';
+ }
+}
+
+void spg_find_primitive_(double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+
+ *num_atom = spg_find_primitive(lattice, position, types, *num_atom,
+ *symprec);
+}
+
+void spg_get_ir_reciprocal_mesh_(int *num_ir_grid,
+ int grid_point[][3],
+ int map[],
+ int mesh[3],
+ int is_shift[3],
+ int *is_time_reversal,
+ double lattice[3][3],
+ double position[][3],
+ int types[],
+ int *num_atom,
+ double *symprec)
+{
+ int i;
+ *num_ir_grid = spg_get_ir_reciprocal_mesh(grid_point,
+ map,
+ mesh,
+ is_shift,
+ *is_time_reversal,
+ lattice,
+ position,
+ types,
+ *num_atom,
+ *symprec);
+
+ for (i = 0; i < mesh[0] * mesh[1] * mesh[2]; i++) {
+ map[i]++;
+ }
+}
diff --git a/src/spin.c b/src/spin.c
new file mode 100644
index 0000000..239d0be
--- /dev/null
+++ b/src/spin.c
@@ -0,0 +1,93 @@
+/* spin.c */
+/* Copyright (C) 2012 Atsushi Togo */
+
+#include <stdio.h>
+#include "mathfunc.h"
+#include "symmetry.h"
+#include "cell.h"
+
+Symmetry * spn_get_collinear_operation_with_symmetry(SPGCONST Symmetry *sym_nonspin,
+ SPGCONST Cell *cell,
+ const double spins[],
+ const double symprec) {
+ Symmetry *symmetry;
+ int i, j, k, sign, is_found, num_sym;
+ double pos[3];
+ MatINT * rot;
+ VecDBL * trans;
+
+ rot = mat_alloc_MatINT(sym_nonspin->size);
+ trans = mat_alloc_VecDBL(sym_nonspin->size);
+ num_sym = 0;
+
+ for (i = 0; i < sym_nonspin->size; i++) {
+ sign = 0; /* Set sign as undetermined */
+ is_found = 1;
+ for (j = 0; j < cell->size; j++) {
+ mat_multiply_matrix_vector_id3(pos, sym_nonspin->rot[i], cell->position[j]);
+ for (k = 0; k < 3; k++) {
+ pos[k] += sym_nonspin->trans[i][k];
+ }
+ for (k = 0; k < cell->size; k++) {
+ if (cel_is_overlap(cell->position[k],
+ pos,
+ cell->lattice,
+ symprec)) {
+ if (sign == 0) {
+ if (mat_Dabs(spins[j] - spins[k]) < symprec) {
+ sign = 1;
+ break;
+ }
+ if (mat_Dabs(spins[j] + spins[k]) < symprec) {
+ sign = -1;
+ break;
+ }
+ is_found = 0;
+ break;
+ } else {
+ if (mat_Dabs(spins[j] - spins[k] * sign) < symprec) {
+ break;
+ } else {
+ is_found = 0;
+ break;
+ }
+ }
+ }
+ }
+ if (! is_found) {
+ break;
+ }
+ }
+ if (is_found) {
+ mat_copy_matrix_i3(rot->mat[ num_sym ], sym_nonspin->rot[i]);
+ mat_copy_vector_d3(trans->vec[ num_sym ], sym_nonspin->trans[i]);
+ num_sym++;
+ }
+ }
+
+ symmetry = sym_alloc_symmetry(num_sym);
+ for (i = 0; i < num_sym; i++) {
+ mat_copy_matrix_i3(symmetry->rot[i], rot->mat[ i ]);
+ mat_copy_vector_d3(symmetry->trans[i], trans->vec[ i ]);
+ }
+
+ mat_free_MatINT(rot);
+ mat_free_VecDBL(trans);
+
+ return symmetry;
+}
+
+Symmetry * spn_get_collinear_operation(SPGCONST Cell *cell,
+ const double spins[],
+ const double symprec) {
+ Symmetry *sym_nonspin, *symmetry;
+
+ sym_nonspin = sym_get_operation(cell, symprec);
+ symmetry = spn_get_collinear_operation_with_symmetry(sym_nonspin,
+ cell,
+ spins,
+ symprec);
+ sym_free_symmetry(sym_nonspin);
+
+ return symmetry;
+}
diff --git a/src/spin.h b/src/spin.h
new file mode 100644
index 0000000..0b93b10
--- /dev/null
+++ b/src/spin.h
@@ -0,0 +1,19 @@
+/* spin.h */
+/* Copyright (C) 2012 Atsushi Togo */
+
+#ifndef __spin_H__
+#define __spin_H__
+
+#include "mathfunc.h"
+#include "symmetry.h"
+#include "cell.h"
+
+Symmetry * spn_get_collinear_operation_with_symmetry(SPGCONST Symmetry *sym_nonspin,
+ SPGCONST Cell *cell,
+ const double spins[],
+ const double symprec);
+Symmetry * spn_get_collinear_operation(SPGCONST Cell *cell,
+ const double spins[],
+ const double symprec);
+
+#endif
diff --git a/src/symmetry.c b/src/symmetry.c
new file mode 100644
index 0000000..93b4d25
--- /dev/null
+++ b/src/symmetry.c
@@ -0,0 +1,832 @@
+/* symmetry.c */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#include <math.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <omp.h>
+#include "cell.h"
+#include "debug.h"
+#include "lattice.h"
+#include "mathfunc.h"
+#include "pointgroup.h"
+#include "primitive.h"
+#include "symmetry.h"
+
+#include "debug.h"
+#define NUM_ATOMS_CRITERION_FOR_OPENMP 1000
+#define REDUCE_RATE 0.95
+#define PI 3.14159265358979323846
+/* Tolerance of angle between lattice vectors in degrees */
+/* Negative value invokes converter from symprec. */
+static double angle_tolerance = -1.0;
+
+static int relative_axes[][3] = {
+ { 1, 0, 0},
+ { 0, 1, 0},
+ { 0, 0, 1},
+ {-1, 0, 0},
+ { 0,-1, 0}, /* 5 */
+ { 0, 0,-1},
+ { 0, 1, 1},
+ { 1, 0, 1},
+ { 1, 1, 0},
+ { 0,-1,-1}, /* 10 */
+ {-1, 0,-1},
+ {-1,-1, 0},
+ { 0, 1,-1},
+ {-1, 0, 1},
+ { 1,-1, 0}, /* 15 */
+ { 0,-1, 1},
+ { 1, 0,-1},
+ {-1, 1, 0},
+ { 1, 1, 1},
+ {-1,-1,-1}, /* 20 */
+ {-1, 1, 1},
+ { 1,-1, 1},
+ { 1, 1,-1},
+ { 1,-1,-1},
+ {-1, 1,-1}, /* 25 */
+ {-1,-1, 1},
+};
+
+static int identity[3][3] = {{1, 0, 0},
+ {0, 1, 0},
+ {0, 0, 1}};
+
+static int get_index_with_least_atoms(const Cell *cell);
+static VecDBL * get_translation(SPGCONST int rot[3][3],
+ SPGCONST Cell *cell,
+ const double symprec,
+ const int is_identity);
+static Symmetry * get_operations(SPGCONST Cell * cell,
+ const double symprec);
+static Symmetry * reduce_operation(SPGCONST Cell * cell,
+ SPGCONST Symmetry * symmetry,
+ const double symprec);
+static void search_translation_part(int lat_point_atoms[],
+ SPGCONST Cell * cell,
+ SPGCONST int rot[3][3],
+ const int min_atom_index,
+ const double origin[3],
+ const double symprec,
+ const int is_identity);
+static int is_overlap_all_atoms(const double test_trans[3],
+ SPGCONST int rot[3][3],
+ SPGCONST Cell * cell,
+ const double symprec,
+ const int is_identity);
+static PointSymmetry
+transform_pointsymmetry(SPGCONST PointSymmetry * point_sym_prim,
+ SPGCONST double new_lattice[3][3],
+ SPGCONST double original_lattice[3][3]);
+static Symmetry *
+get_space_group_operations(SPGCONST PointSymmetry *lattice_sym,
+ SPGCONST Cell *primitive,
+ const double symprec);
+static Symmetry * recover_operations_original(SPGCONST Symmetry *symmetry,
+ const VecDBL * pure_trans,
+ SPGCONST Cell *cell,
+ SPGCONST Cell *primitive);
+static void set_axes(int axes[3][3],
+ const int a1, const int a2, const int a3);
+static PointSymmetry get_lattice_symmetry(SPGCONST Cell *cell,
+ const double symprec);
+static int is_identity_metric(SPGCONST double metric_rotated[3][3],
+ SPGCONST double metric_orig[3][3],
+ const double symprec);
+static double get_angle(SPGCONST double metric[3][3],
+ const int i,
+ const int j);
+
+Symmetry * sym_alloc_symmetry(const int size)
+{
+ Symmetry *symmetry;
+
+ symmetry = (Symmetry*) malloc(sizeof(Symmetry));
+ symmetry->size = size;
+ if (size > 0) {
+ if ((symmetry->rot =
+ (int (*)[3][3]) malloc(sizeof(int[3][3]) * size)) == NULL) {
+ warning_print("spglib: Memory could not be allocated ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ exit(1);
+ }
+ if ((symmetry->trans =
+ (double (*)[3]) malloc(sizeof(double[3]) * size)) == NULL) {
+ warning_print("spglib: Memory could not be allocated ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ exit(1);
+ }
+ }
+ return symmetry;
+}
+
+void sym_free_symmetry(Symmetry *symmetry)
+{
+ if (symmetry->size > 0) {
+ free(symmetry->rot);
+ symmetry->rot = NULL;
+ free(symmetry->trans);
+ symmetry->trans = NULL;
+ }
+ free(symmetry);
+ symmetry = NULL;
+}
+
+Symmetry * sym_get_operation(SPGCONST Cell *cell,
+ const double symprec) {
+ Symmetry *symmetry;
+
+ symmetry = get_operations(cell, symprec);
+
+ return symmetry;
+}
+
+/* Number of operations may be reduced with smaller symprec. */
+Symmetry * sym_reduce_operation(SPGCONST Cell * cell,
+ SPGCONST Symmetry * symmetry,
+ const double symprec)
+{
+ return reduce_operation(cell, symmetry, symprec);
+}
+
+int sym_get_multiplicity(SPGCONST Cell *cell,
+ const double symprec)
+{
+ int multi;
+ VecDBL * trans;
+
+ trans = get_translation(identity, cell, symprec, 1);
+ multi = trans->size;
+ mat_free_VecDBL(trans);
+ return multi;
+}
+
+VecDBL * sym_get_pure_translation(SPGCONST Cell *cell,
+ const double symprec)
+{
+ int multi;
+ VecDBL * pure_trans;
+
+ pure_trans = get_translation(identity, cell, symprec, 1);
+ multi = pure_trans->size;
+ if ((cell->size / multi) * multi == cell->size) {
+ debug_print("sym_get_pure_translation: pure_trans->size = %d\n", multi);
+ } else {
+ ;
+ warning_print("spglib: Finding pure translation failed (line %d, %s).\n", __LINE__, __FILE__);
+ warning_print(" cell->size %d, multi %d\n", cell->size, multi);
+ }
+
+ return pure_trans;
+}
+
+VecDBL * sym_reduce_pure_translation(SPGCONST Cell * cell,
+ const VecDBL * pure_trans,
+ const double symprec)
+{
+ int i, multi;
+ Symmetry *symmetry, *symmetry_reduced;
+ VecDBL * pure_trans_reduced;
+
+ multi = pure_trans->size;
+ symmetry = sym_alloc_symmetry(multi);
+ for (i = 0; i < multi; i++) {
+ mat_copy_matrix_i3(symmetry->rot[i], identity);
+ mat_copy_vector_d3(symmetry->trans[i], pure_trans->vec[i]);
+ }
+
+ symmetry_reduced = reduce_operation(cell, symmetry, symprec);
+ sym_free_symmetry(symmetry);
+
+ multi = symmetry_reduced->size;
+ pure_trans_reduced = mat_alloc_VecDBL(multi);
+
+ for (i = 0; i < multi; i++) {
+ mat_copy_vector_d3(pure_trans_reduced->vec[i], symmetry_reduced->trans[i]);
+ }
+ sym_free_symmetry(symmetry_reduced);
+
+ return pure_trans_reduced;
+}
+
+void sym_set_angle_tolerance(double tolerance)
+{
+ angle_tolerance = tolerance;
+}
+
+double sym_get_angle_tolerance(void)
+{
+ return angle_tolerance;
+}
+
+
+/* 1) A primitive cell of the input cell is searched. */
+/* 2) Pointgroup operations of the primitive cell are obtained. */
+/* These are constrained by the input cell lattice pointgroup, */
+/* i.e., even if the lattice of the primitive cell has higher */
+/* symmetry than that of the input cell, it is not considered. */
+/* 3) Spacegroup operations are searched for the primitive cell */
+/* using the constrained point group operations. */
+/* 4) The spacegroup operations for the primitive cell are */
+/* transformed to those of original input cells, if the input cell */
+/* was not a primitive cell. */
+static Symmetry * get_operations(SPGCONST Cell *cell,
+ const double symprec)
+{
+ int i, j, attempt;
+ double tolerance;
+ PointSymmetry lattice_sym;
+ Symmetry *symmetry, *symmetry_orig, *symmetry_reduced;
+ Primitive primitive;
+
+ debug_print("get_operations:\n");
+
+ symmetry_orig = NULL;
+
+ lattice_sym = get_lattice_symmetry(cell, symprec);
+ if (lattice_sym.size == 0) {
+ debug_print("get_lattice_symmetry failed.\n");
+ goto end;
+ }
+
+ primitive = prm_get_primitive_and_pure_translations(cell, symprec);
+ if (primitive.cell->size == 0) {
+ goto deallocate_and_end;
+ }
+
+ lattice_sym = transform_pointsymmetry(&lattice_sym,
+ primitive.cell->lattice,
+ cell->lattice);
+ if (lattice_sym.size == 0) {
+ goto deallocate_and_end;
+ }
+
+
+ symmetry = get_space_group_operations(&lattice_sym,
+ primitive.cell,
+ symprec);
+ if (symmetry->size > 48) {
+ tolerance = symprec;
+ for (attempt = 0; attempt < 100; attempt++) {
+ tolerance *= REDUCE_RATE;
+ warning_print("spglib: number of symmetry operations for primitive cell > 48 was found. (line %d, %s).\n", __LINE__, __FILE__);
+ warning_print("tolerance is reduced to %f\n", tolerance);
+ symmetry_reduced = reduce_operation(primitive.cell,
+ symmetry,
+ tolerance);
+ sym_free_symmetry(symmetry);
+ symmetry = symmetry_reduced;
+ if (symmetry_reduced->size > 48) {
+ ;
+ } else {
+ break;
+ }
+ }
+ }
+
+ symmetry_orig = recover_operations_original(symmetry,
+ primitive.pure_trans,
+ cell,
+ primitive.cell);
+ sym_free_symmetry(symmetry);
+
+ for (i = 0; i < symmetry_orig->size; i++) {
+ for (j = 0; j < 3; j++) {
+ symmetry_orig->trans[i][j] -= mat_Nint(symmetry_orig->trans[i][j]);
+ }
+ }
+
+ deallocate_and_end:
+ cel_free_cell(primitive.cell);
+ mat_free_VecDBL(primitive.pure_trans);
+
+ end:
+ if (! symmetry_orig) {
+ symmetry_orig = sym_alloc_symmetry(0);
+ }
+ return symmetry_orig;
+}
+
+static Symmetry * reduce_operation(SPGCONST Cell * cell,
+ SPGCONST Symmetry * symmetry,
+ const double symprec)
+{
+ int i, j, num_sym;
+ Symmetry * sym_reduced;
+ PointSymmetry point_symmetry;
+ MatINT *rot;
+ VecDBL *trans;
+
+ debug_print("reduce_operation:\n");
+
+ point_symmetry = get_lattice_symmetry(cell, symprec);
+ rot = mat_alloc_MatINT(symmetry->size);
+ trans = mat_alloc_VecDBL(symmetry->size);
+
+ num_sym = 0;
+ for (i = 0; i < point_symmetry.size; i++) {
+ for (j = 0; j < symmetry->size; j++) {
+ if (mat_check_identity_matrix_i3(point_symmetry.rot[i],
+ symmetry->rot[j])) {
+ if (is_overlap_all_atoms(symmetry->trans[j],
+ symmetry->rot[j],
+ cell,
+ symprec,
+ 0)) {
+ mat_copy_matrix_i3(rot->mat[num_sym], symmetry->rot[j]);
+ mat_copy_vector_d3(trans->vec[num_sym], symmetry->trans[j]);
+ num_sym++;
+ }
+ }
+ }
+ }
+
+ sym_reduced = sym_alloc_symmetry(num_sym);
+ for (i = 0; i < num_sym; i++) {
+ mat_copy_matrix_i3(sym_reduced->rot[i], rot->mat[i]);
+ mat_copy_vector_d3(sym_reduced->trans[i], trans->vec[i]);
+ }
+
+ mat_free_MatINT(rot);
+ mat_free_VecDBL(trans);
+
+ debug_print(" num_sym %d -> %d\n", symmetry->size, num_sym);
+
+ return sym_reduced;
+}
+
+/* Look for the translations which satisfy the input symmetry operation. */
+/* This function is heaviest in this code. */
+static VecDBL * get_translation(SPGCONST int rot[3][3],
+ SPGCONST Cell *cell,
+ const double symprec,
+ const int is_identity)
+{
+ int i, j, min_atom_index, num_trans = 0;
+ int *is_found;
+ double origin[3];
+ VecDBL *trans;
+
+#ifdef _OPENMP
+ int num_min_type_atoms;
+ int *min_type_atoms;
+ double vec[3];
+#endif
+
+ is_found = (int*) malloc(sizeof(int)*cell->size);
+ for (i = 0; i < cell->size; i++) {
+ is_found[i] = 0;
+ }
+
+ /* Look for the atom index with least number of atoms within same type */
+ min_atom_index = get_index_with_least_atoms(cell);
+
+ /* Set min_atom_index as the origin to measure the distance between atoms. */
+ mat_multiply_matrix_vector_id3(origin, rot, cell->position[min_atom_index]);
+
+#ifdef _OPENMP
+ if (cell->size < NUM_ATOMS_CRITERION_FOR_OPENMP) {
+ search_translation_part(is_found,
+ cell,
+ rot,
+ min_atom_index,
+ origin,
+ symprec,
+ is_identity);
+ } else {
+ /* Collect indices of atoms with the type where the minimum number */
+ /* of atoms belong. */
+ min_type_atoms = (int*) malloc(sizeof(int)*cell->size);
+ num_min_type_atoms = 0;
+ for (i = 0; i < cell->size; i++) {
+ if (cell->types[i] == cell->types[min_atom_index]) {
+ min_type_atoms[num_min_type_atoms] = i;
+ num_min_type_atoms++;
+ }
+ }
+#pragma omp parallel for private(j, vec)
+ for (i = 0; i < num_min_type_atoms; i++) {
+ for (j = 0; j < 3; j++) {
+ vec[j] = cell->position[min_type_atoms[i]][j] - origin[j];
+ }
+ if (is_overlap_all_atoms(vec,
+ rot,
+ cell,
+ symprec,
+ is_identity)) {
+ is_found[min_type_atoms[i]] = 1;
+ }
+ }
+
+ free(min_type_atoms);
+ }
+#else
+ search_translation_part(is_found,
+ cell,
+ rot,
+ min_atom_index,
+ origin,
+ symprec,
+ is_identity);
+#endif
+
+
+ for (i = 0; i < cell->size; i++) {
+ num_trans += is_found[i];
+ }
+ trans = mat_alloc_VecDBL(num_trans);
+ num_trans = 0;
+ for (i = 0; i < cell->size; i++) {
+ if (is_found[i]) {
+ for (j = 0; j < 3; j++) {
+ trans->vec[num_trans][j] = cell->position[i][j] - origin[j];
+ }
+ num_trans++;
+ }
+ }
+
+ free(is_found);
+ is_found = NULL;
+
+ return trans;
+}
+
+static void search_translation_part(int lat_point_atoms[],
+ SPGCONST Cell * cell,
+ SPGCONST int rot[3][3],
+ const int min_atom_index,
+ const double origin[3],
+ const double symprec,
+ const int is_identity)
+{
+ int i, j;
+ double vec[3];
+
+ for (i = 0; i < cell->size; i++) {
+ if (cell->types[i] != cell->types[min_atom_index]) {
+ continue;
+ }
+
+ for (j = 0; j < 3; j++) {
+ vec[j] = cell->position[i][j] - origin[j];
+ }
+ if (is_overlap_all_atoms(vec,
+ rot,
+ cell,
+ symprec,
+ is_identity)) {
+ lat_point_atoms[i] = 1;
+ }
+ }
+}
+
+static int is_overlap_all_atoms(const double trans[3],
+ SPGCONST int rot[3][3],
+ SPGCONST Cell * cell,
+ const double symprec,
+ const int is_identity)
+{
+ int i, j, k, is_found;
+ double symprec2;
+ double pos_rot[3], d[3];
+
+ symprec2 = symprec*symprec;
+
+ for (i = 0; i < cell->size; i++) {
+ if (is_identity) { /* Identity matrix is treated as special for speed. */
+ for (j = 0; j < 3; j++) {
+ pos_rot[j] = cell->position[i][j] + trans[j];
+ }
+ } else {
+ mat_multiply_matrix_vector_id3(pos_rot,
+ rot,
+ cell->position[i]);
+ for (j = 0; j < 3; j++) {
+ pos_rot[j] += trans[j];
+ }
+ }
+
+ is_found = 0;
+ for (j = 0; j < cell->size; j++) {
+ if (cell->types[i] == cell->types[j]) {
+ /* here cel_is_overlap can be used, but for the tuning */
+ /* purpose, write it again */
+ for (k = 0; k < 3; k++) {
+ d[k] = pos_rot[k] - cell->position[j][k];
+ d[k] -= mat_Nint(d[k]);
+ }
+ mat_multiply_matrix_vector_d3(d, cell->lattice, d);
+ if (d[0]*d[0]+d[1]*d[1]+d[2]*d[2] < symprec2) {
+ is_found = 1;
+ break;
+ }
+ }
+ }
+
+ if (! is_found) {
+ goto not_found;
+ }
+ }
+
+ return 1; /* found */
+
+ not_found:
+ return 0;
+}
+
+static int get_index_with_least_atoms(const Cell *cell)
+{
+ int i, j, min, min_index;
+ int *mapping;
+ mapping = (int *) malloc(sizeof(int) * cell->size);
+
+ for (i = 0; i < cell->size; i++) {
+ mapping[i] = 0;
+ }
+
+ for (i = 0; i < cell->size; i++) {
+ for (j = 0; j < cell->size; j++) {
+ if (cell->types[i] == cell->types[j]) {
+ mapping[j]++;
+ break;
+ }
+ }
+ }
+
+ min = mapping[0];
+ min_index = 0;
+ for (i = 0; i < cell->size; i++) {
+ if (min > mapping[i] && mapping[i] >0) {
+ min = mapping[i];
+ min_index = i;
+ }
+ }
+
+ free(mapping);
+ mapping = NULL;
+
+ return min_index;
+}
+
+static Symmetry *
+get_space_group_operations(SPGCONST PointSymmetry *lattice_sym,
+ SPGCONST Cell *cell,
+ const double symprec)
+{
+ int i, j, k, num_sym, total_num_sym;
+ VecDBL **trans;
+ Symmetry *symmetry;
+
+ debug_print("get_space_group_operations:\n");
+
+ trans = (VecDBL**) malloc(sizeof(VecDBL*) * lattice_sym->size);
+ total_num_sym = 0;
+ for (i = 0; i < lattice_sym->size; i++) {
+ trans[i] = get_translation(lattice_sym->rot[i], cell, symprec, 0);
+ total_num_sym += trans[i]->size;
+ }
+
+ symmetry = sym_alloc_symmetry(total_num_sym);
+ num_sym = 0;
+ for (i = 0; i < lattice_sym->size; i++) {
+ for (j = 0; j < trans[i]->size; j++) {
+ mat_copy_vector_d3(symmetry->trans[num_sym + j], trans[i]->vec[j]);
+ mat_copy_matrix_i3(symmetry->rot[num_sym + j], lattice_sym->rot[i]);
+ }
+ num_sym += trans[i]->size;
+ }
+
+ for (i = 0; i < lattice_sym->size; i++) {
+ mat_free_VecDBL(trans[i]);
+ }
+ free(trans);
+ trans = NULL;
+
+ return symmetry;
+}
+
+static Symmetry * recover_operations_original(SPGCONST Symmetry *symmetry,
+ const VecDBL * pure_trans,
+ SPGCONST Cell *cell,
+ SPGCONST Cell *primitive)
+{
+ int i, j, k, multi;
+ double inv_prim_lat[3][3], drot[3][3], trans_mat[3][3], trans_mat_inv[3][3];
+ Symmetry *symmetry_orig, *sym_tmp;
+
+ debug_print("recover_operations_original:\n");
+
+ multi = pure_trans->size;
+ sym_tmp = sym_alloc_symmetry(symmetry->size);
+ symmetry_orig = sym_alloc_symmetry(symmetry->size * multi);
+
+ mat_inverse_matrix_d3(inv_prim_lat, primitive->lattice, 0);
+ mat_multiply_matrix_d3(trans_mat, inv_prim_lat, cell->lattice);
+ mat_inverse_matrix_d3(trans_mat_inv, trans_mat, 0);
+
+ for(i = 0; i < symmetry->size; i++) {
+ mat_copy_matrix_i3(sym_tmp->rot[i], symmetry->rot[i]);
+ mat_copy_vector_d3(sym_tmp->trans[i], symmetry->trans[i]);
+ }
+
+ for(i = 0; i < symmetry->size; i++) {
+ mat_cast_matrix_3i_to_3d(drot, sym_tmp->rot[i]);
+ mat_get_similar_matrix_d3(drot, drot, trans_mat, 0);
+ mat_cast_matrix_3d_to_3i(sym_tmp->rot[i], drot);
+
+ mat_multiply_matrix_vector_d3(sym_tmp->trans[i],
+ trans_mat_inv,
+ sym_tmp->trans[i]);
+ }
+
+
+ for(i = 0; i < symmetry->size; i++) {
+ for(j = 0; j < multi; j++) {
+ mat_copy_matrix_i3(symmetry_orig->rot[i * multi + j], sym_tmp->rot[i]);
+ for (k = 0; k < 3; k++) {
+ symmetry_orig->trans[i * multi + j][k] =
+ sym_tmp->trans[i][k] + pure_trans->vec[j][k];
+ }
+ }
+ }
+
+ sym_free_symmetry(sym_tmp);
+
+ return symmetry_orig;
+}
+
+static PointSymmetry get_lattice_symmetry(SPGCONST Cell *cell,
+ const double symprec)
+{
+ int i, j, k, num_sym;
+ int axes[3][3];
+ double lattice[3][3], min_lattice[3][3];
+ double metric[3][3], metric_orig[3][3];
+ PointSymmetry lattice_sym;
+
+ debug_print("get_lattice_symmetry:\n");
+
+ if (! lat_smallest_lattice_vector(min_lattice,
+ cell->lattice,
+ symprec)) {
+ goto err;
+ }
+
+ mat_get_metric(metric_orig, min_lattice);
+
+ num_sym = 0;
+ for (i = 0; i < 26; i++) {
+ for (j = 0; j < 26; j++) {
+ for (k = 0; k < 26; k++) {
+ set_axes(axes, i, j, k);
+ if (! ((mat_get_determinant_i3(axes) == 1) ||
+ (mat_get_determinant_i3(axes) == -1))) {
+ continue;
+ }
+ mat_multiply_matrix_di3(lattice, min_lattice, axes);
+ mat_get_metric(metric, lattice);
+
+ if (is_identity_metric(metric, metric_orig, symprec)) {
+ mat_copy_matrix_i3(lattice_sym.rot[num_sym], axes);
+ num_sym++;
+ }
+
+ if (num_sym > 48) {
+ warning_print("spglib: Too many lattice symmetries was found.\n");
+ warning_print(" Tolerance may be too large ");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ goto err;
+ }
+ }
+ }
+ }
+
+ lattice_sym.size = num_sym;
+ return transform_pointsymmetry(&lattice_sym,
+ cell->lattice,
+ min_lattice);
+
+ err:
+ lattice_sym.size = 0;
+ return lattice_sym;
+}
+
+static int is_identity_metric(SPGCONST double metric_rotated[3][3],
+ SPGCONST double metric_orig[3][3],
+ const double symprec)
+{
+ int i, j, k;
+ int elem_sets[3][2] = {{0, 1},
+ {0, 2},
+ {1, 2}};
+ double cos1, cos2, x, length_ave2, sin_dtheta2;
+ double length_orig[3], length_rot[3];
+
+ for (i = 0; i < 3; i++) {
+ length_orig[i] = sqrt(metric_orig[i][i]);
+ length_rot[i] = sqrt(metric_rotated[i][i]);
+ if (mat_Dabs(length_orig[i] - length_rot[i]) > symprec) {
+ goto fail;
+ }
+ }
+
+ for (i = 0; i < 3; i++) {
+ j = elem_sets[i][0];
+ k = elem_sets[i][1];
+ if (angle_tolerance > 0) {
+ if (mat_Dabs(get_angle(metric_orig, j, k) -
+ get_angle(metric_rotated, j, k)) > angle_tolerance) {
+ goto fail;
+ }
+ } else {
+ /* dtheta = arccos(cos(theta1) - arccos(cos(theta2))) */
+ /* = arccos(c1) - arccos(c2) */
+ /* = arccos(c1c2 + sqrt((1-c1^2)(1-c2^2))) */
+ /* sin(dtheta) = sin(arccos(x)) = sqrt(1 - x^2) */
+ cos1 = metric_orig[j][k] / length_orig[j] / length_orig[k];
+ cos2 = metric_rotated[j][k] / length_rot[j] / length_rot[k];
+ x = cos1 * cos2 + sqrt(1 - cos1 * cos1) * sqrt(1 - cos2 * cos2);
+ sin_dtheta2 = 1 - x * x;
+ length_ave2 = ((length_orig[j] + length_rot[j]) *
+ (length_orig[k] + length_rot[k])) / 4;
+ if (sin_dtheta2 > 1e-12) {
+ if (sin_dtheta2 * length_ave2 > symprec * symprec) {
+ goto fail;
+ }
+ }
+ }
+ }
+
+ return 1;
+
+ fail:
+ return 0;
+}
+
+static double get_angle(SPGCONST double metric[3][3],
+ const int i,
+ const int j)
+{
+ double length_i, length_j;
+
+ length_i = sqrt(metric[i][i]);
+ length_j = sqrt(metric[j][j]);
+
+ return acos(metric[i][j] / length_i / length_j) / PI * 180;
+}
+
+static PointSymmetry
+transform_pointsymmetry(SPGCONST PointSymmetry * lat_sym_orig,
+ SPGCONST double new_lattice[3][3],
+ SPGCONST double original_lattice[3][3])
+{
+ int i, size;
+ double trans_mat[3][3], inv_mat[3][3], drot[3][3];
+ PointSymmetry lat_sym_new;
+
+ mat_inverse_matrix_d3(inv_mat, original_lattice, 0);
+ mat_multiply_matrix_d3(trans_mat, inv_mat, new_lattice);
+
+ size = 0;
+ for (i = 0; i < lat_sym_orig->size; i++) {
+ mat_cast_matrix_3i_to_3d(drot, lat_sym_orig->rot[i]);
+ mat_get_similar_matrix_d3(drot, drot, trans_mat, 0);
+
+ /* new_lattice may have lower point symmetry than original_lattice.*/
+ /* The operations that have non-integer elements are not counted. */
+ if (mat_is_int_matrix(drot, mat_Dabs(mat_get_determinant_d3(trans_mat)) / 10)) {
+ mat_cast_matrix_3d_to_3i(lat_sym_new.rot[size], drot);
+ if (! abs(mat_get_determinant_i3(lat_sym_new.rot[size])) == 1) {
+ warning_print("spglib: A point symmetry operation is not unimodular.");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ goto err;
+ }
+ size++;
+ }
+ }
+
+#ifdef SPGWARNING
+ if (! (lat_sym_orig->size == size)) {
+ warning_print("spglib: Some of point symmetry operations were dropped.");
+ warning_print("(line %d, %s).\n", __LINE__, __FILE__);
+ }
+#endif
+
+ lat_sym_new.size = size;
+ return lat_sym_new;
+
+ err:
+ lat_sym_new.size = 0;
+ return lat_sym_new;
+}
+
+static void set_axes(int axes[3][3],
+ const int a1, const int a2, const int a3)
+{
+ int i;
+ for (i = 0; i < 3; i++) {axes[i][0] = relative_axes[a1][i]; }
+ for (i = 0; i < 3; i++) {axes[i][1] = relative_axes[a2][i]; }
+ for (i = 0; i < 3; i++) {axes[i][2] = relative_axes[a3][i]; }
+}
diff --git a/src/symmetry.h b/src/symmetry.h
new file mode 100644
index 0000000..6f82b64
--- /dev/null
+++ b/src/symmetry.h
@@ -0,0 +1,38 @@
+/* symmetry.h */
+/* Copyright (C) 2008 Atsushi Togo */
+
+#ifndef __symmetry_H__
+#define __symmetry_H__
+
+#include "cell.h"
+#include "mathfunc.h"
+
+typedef struct {
+ int size;
+ int (*rot)[3][3];
+ double (*trans)[3];
+} Symmetry;
+
+typedef struct {
+ int rot[48][3][3];
+ int size;
+} PointSymmetry;
+
+Symmetry * sym_alloc_symmetry( const int size );
+void sym_free_symmetry( Symmetry * symmetry );
+int sym_get_multiplicity( SPGCONST Cell * cell,
+ const double symprec );
+Symmetry * sym_get_operation( SPGCONST Cell * cell,
+ const double symprec );
+Symmetry * sym_reduce_operation( SPGCONST Cell * cell,
+ SPGCONST Symmetry * symmetry,
+ const double symprec );
+VecDBL * sym_get_pure_translation( SPGCONST Cell *cell,
+ const double symprec );
+VecDBL * sym_reduce_pure_translation( SPGCONST Cell * cell,
+ const VecDBL * pure_trans,
+ const double symprec );
+void sym_set_angle_tolerance(double tolerance);
+double sym_get_angle_tolerance(void);
+
+#endif
diff --git a/test/README b/test/README
new file mode 100644
index 0000000..0447429
--- /dev/null
+++ b/test/README
@@ -0,0 +1,10 @@
+Spglib test is made by symPoscar.rb. Structure data are in the data directory.
+The space group number is written in the last of filename. Cross check is
+done by findsym which is available at (http://stokes.byu.edu/isotropy.html).
+
+How to make ruby module for symPoscar.rb.
+
+% ruby extconf.rb --with-getspg-include=../src --with-getspg-lib=../src/.libs
+% make
+% export LD_LIBRARY_PATH=directory_containing_libsymspg.so
+% export RUBYLIB=current_directory
diff --git a/test/check_consistency.py b/test/check_consistency.py
new file mode 100755
index 0000000..2c2dea7
--- /dev/null
+++ b/test/check_consistency.py
@@ -0,0 +1,68 @@
+#!/usr/bin/python
+from numpy import *
+import sys
+import datetime
+from phonopy.structure.spglib import *
+from phonopy.structure.atoms import Atoms
+from phonopy.interface.vasp import read_vasp
+
+# lattice = array([[4.,0.,0.], [0.,4.,0.], [0.,0.,6.]])
+# position = array([
+# [0.0, 0.0, 0.0],
+# [0.5, 0.5, 0.25],
+# [0.3, 0.3, 0.0],
+# [0.7, 0.7, 0.0],
+# [0.2, 0.8, 0.25],
+# [0.8, 0.2, 0.25],
+# [0.0, 0.0, 0.5],
+# [0.5, 0.5, 0.75],
+# [0.3, 0.3, 0.5],
+# [0.7, 0.7, 0.5],
+# [0.2, 0.8, 0.75],
+# [0.8, 0.2, 0.75]
+# ])
+# atom_type = array([1,1,2,2,2,2,1,1,2,2,2,2])
+# atoms = Atoms( cell=lattice, scaled_positions=position, numbers=atom_type )
+atoms = read_vasp( sys.argv[1] )
+# print datetime.datetime.now()
+# print "get_symmetry_dataset"
+dataset = get_symmetry_dataset(atoms, 1e-5)
+# for i, (r,t) in enumerate( zip( dataset['rotations'], dataset['translations'] ) ):
+# print "--- %d ---" % (i+1)
+# print r
+# print t
+
+# print
+# print dataset['transformation_matrix']
+# print dataset['origin_shift']
+# print dataset['international'], dataset['number']
+# print dataset['hall']
+
+# print datetime.datetime.now()
+# print "get_symmetry"
+symmetry = get_symmetry(atoms, 1e-5)
+# print datetime.datetime.now()
+
+count = 0
+# print "Check consistency"
+for r1, t1 in zip( dataset['rotations'],
+ dataset['translations'] ):
+
+ for r2, t2 in zip( symmetry['rotations'],
+ symmetry['translations'] ):
+
+
+ if ( (r1 - r2) == 0 ).all():
+ diff = t1 - t2
+ diff -= diff.round()
+ if ( abs(diff) < 1e-5 ).all():
+ count += 1
+ # print count
+ # print r1
+ # print t1
+ break
+
+if ( count==len(dataset['rotations']) ):
+ print "OK"
+else:
+ print "BAD"
diff --git a/test/data/cubic/POSCAR-195 b/test/data/cubic/POSCAR-195
new file mode 100644
index 0000000..f3b62f5
--- /dev/null
+++ b/test/data/cubic/POSCAR-195
@@ -0,0 +1,95 @@
+$cell vectors
+1.0
+ 10.3499951298926707 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.3499951298926707 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.3499951298926707
+ 4 4 32 48
+Direct
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Na1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Na2
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Na3
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Na4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Co1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Co2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Co3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Co4
+ 0.2900000000000001 0.2900000000000001 0.2900000000000001 # N1
+ 0.2100000000000000 0.2100000000000000 0.2100000000000000 # N2
+ 0.1999999999999999 0.0000000000000000 0.0000000000000000 # N3
+ 0.7000000000000000 0.0000000000000000 0.5000000000000000 # N4
+ 0.7000000000000000 0.5000000000000000 0.0000000000000000 # N5
+ 0.1999999999999999 0.5000000000000000 0.5000000000000000 # N6
+ 0.0000000000000000 0.1999999999999999 0.0000000000000000 # N7
+ 0.5000000000000000 0.7000000000000000 0.0000000000000000 # N8
+ 0.0000000000000000 0.7000000000000000 0.5000000000000000 # N9
+ 0.5000000000000000 0.1999999999999999 0.5000000000000000 # N10
+ 0.0000000000000000 0.0000000000000000 0.1999999999999999 # N11
+ 0.0000000000000000 0.5000000000000000 0.7000000000000000 # N12
+ 0.5000000000000000 0.0000000000000000 0.7000000000000000 # N13
+ 0.5000000000000000 0.5000000000000000 0.1999999999999999 # N14
+ 0.7100000000000001 0.7100000000000001 0.2900000000000001 # N15
+ 0.7900000000000000 0.7900000000000000 0.2100000000000000 # N16
+ 0.2900000000000001 0.7100000000000001 0.7100000000000001 # N17
+ 0.2100000000000000 0.7900000000000000 0.7900000000000000 # N18
+ 0.0000000000000000 -0.1999999999999999 0.0000000000000000 # N19
+ 0.5000000000000000 0.3000000000000001 0.0000000000000000 # N20
+ 0.0000000000000000 0.3000000000000001 0.5000000000000000 # N21
+ 0.5000000000000000 -0.1999999999999999 0.5000000000000000 # N22
+ 0.7100000000000001 0.2900000000000001 0.7100000000000001 # N23
+ 0.7900000000000000 0.2100000000000000 0.7900000000000000 # N24
+ 0.0000000000000000 0.0000000000000000 -0.1999999999999999 # N25
+ 0.0000000000000000 0.5000000000000000 0.3000000000000001 # N26
+ 0.5000000000000000 0.0000000000000000 0.3000000000000001 # N27
+ 0.5000000000000000 0.5000000000000000 -0.1999999999999999 # N28
+ -0.1999999999999999 0.0000000000000000 0.0000000000000000 # N29
+ 0.3000000000000001 0.0000000000000000 0.5000000000000000 # N30
+ 0.3000000000000001 0.5000000000000000 0.0000000000000000 # N31
+ -0.1999999999999999 0.5000000000000000 0.5000000000000000 # N32
+ 0.0000000000000000 0.1000000000000002 0.2499999999999998 # O1
+ 0.5000000000000000 0.5999999999999996 0.2499999999999998 # O2
+ 0.5000000000000000 0.1000000000000002 0.7499999999999999 # O3
+ 0.0000000000000000 0.6000000000000002 0.7499999999999999 # O4
+ 0.2499999999999998 0.0000000000000000 0.1000000000000002 # O5
+ 0.2500000000000003 0.5000000000000000 0.5999999999999996 # O6
+ 0.7499999999999999 0.5000000000000000 0.1000000000000002 # O7
+ 0.7499999999999999 0.0000000000000000 0.5999999999999996 # O8
+ 0.1000000000000002 0.2499999999999998 0.0000000000000000 # O9
+ 0.5999999999999996 0.2499999999999998 0.5000000000000000 # O10
+ 0.1000000000000002 0.7499999999999999 0.5000000000000000 # O11
+ 0.6000000000000002 0.7499999999999999 0.0000000000000000 # O12
+ -0.1000000000000002 -0.2499999999999998 0.0000000000000000 # O13
+ 0.3999999999999999 -0.2499999999999998 0.5000000000000000 # O14
+ -0.0999999999999997 0.2499999999999998 0.5000000000000000 # O15
+ 0.3999999999999999 0.2499999999999998 0.0000000000000000 # O16
+ 0.2499999999999998 0.0000000000000000 -0.1000000000000002 # O17
+ 0.2500000000000003 0.5000000000000000 0.3999999999999999 # O18
+ 0.7499999999999999 0.5000000000000000 -0.1000000000000002 # O19
+ 0.7499999999999999 0.0000000000000000 0.3999999999999999 # O20
+ -0.1000000000000002 0.2499999999999998 0.0000000000000000 # O21
+ 0.3999999999999999 0.2499999999999998 0.5000000000000000 # O22
+ -0.0999999999999997 0.7499999999999999 0.5000000000000000 # O23
+ 0.3999999999999999 0.7499999999999999 0.0000000000000000 # O24
+ -0.2499999999999998 0.0000000000000000 0.1000000000000002 # O25
+ -0.2499999999999998 0.5000000000000000 0.5999999999999996 # O26
+ 0.2499999999999998 0.5000000000000000 0.1000000000000002 # O27
+ 0.2499999999999998 0.0000000000000000 0.5999999999999996 # O28
+ -0.2499999999999998 0.0000000000000000 -0.1000000000000002 # O29
+ -0.2499999999999998 0.5000000000000000 0.3999999999999999 # O30
+ 0.2499999999999998 0.5000000000000000 -0.1000000000000002 # O31
+ 0.2499999999999998 0.0000000000000000 0.3999999999999999 # O32
+ 0.1000000000000002 -0.2499999999999998 0.0000000000000000 # O33
+ 0.5999999999999996 -0.2499999999999998 0.5000000000000000 # O34
+ 0.1000000000000002 0.2499999999999998 0.5000000000000000 # O35
+ 0.5999999999999996 0.2499999999999998 0.0000000000000000 # O36
+ 0.0000000000000000 -0.1000000000000002 0.2499999999999998 # O37
+ 0.5000000000000000 0.3999999999999999 0.2499999999999998 # O38
+ 0.5000000000000000 -0.0999999999999997 0.7499999999999999 # O39
+ 0.0000000000000000 0.3999999999999999 0.7499999999999999 # O40
+ 0.0000000000000000 -0.1000000000000002 -0.2499999999999998 # O41
+ 0.5000000000000000 0.3999999999999999 -0.2499999999999998 # O42
+ 0.5000000000000000 -0.1000000000000002 0.2499999999999998 # O43
+ 0.0000000000000000 0.3999999999999999 0.2499999999999998 # O44
+ 0.0000000000000000 0.1000000000000002 -0.2499999999999998 # O45
+ 0.5000000000000000 0.5999999999999996 -0.2499999999999998 # O46
+ 0.5000000000000000 0.1000000000000002 0.2499999999999998 # O47
+ 0.0000000000000000 0.5999999999999996 0.2499999999999998 # O48
diff --git a/test/data/cubic/POSCAR-195-2 b/test/data/cubic/POSCAR-195-2
new file mode 100644
index 0000000..60c28ef
--- /dev/null
+++ b/test/data/cubic/POSCAR-195-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 7.2659965810434937 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.2659965810434937 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.2659965810434937
+ 12 7 1
+Direct
+ 0.2170000000000001 0.2170000000000001 0.2170000000000001 # Cd1
+ 0.7157999999999998 0.7157999999999998 0.7157999999999998 # Cd2
+ 0.7636999999999997 0.7636999999999997 0.7636999999999997 # Cd3
+ 0.7829999999999997 0.7829999999999997 0.2170000000000001 # Cd4
+ 0.2842000000000001 0.2842000000000001 0.7157999999999998 # Cd5
+ 0.2363000000000002 0.2363000000000002 0.7636999999999997 # Cd6
+ 0.2170000000000001 0.7829999999999997 0.7829999999999997 # Cd7
+ 0.7157999999999998 0.2842000000000001 0.2842000000000001 # Cd8
+ 0.7636999999999997 0.2363000000000002 0.2363000000000002 # Cd9
+ 0.7829999999999997 0.2170000000000001 0.7829999999999997 # Cd10
+ 0.2842000000000001 0.7157999999999998 0.2842000000000001 # Cd11
+ 0.2363000000000002 0.7636999999999997 0.2363000000000002 # Cd12
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # As1
+ 0.5000000000000000 0.0000000000000000 0.3327999999999998 # As2
+ 0.3327999999999998 0.5000000000000000 0.0000000000000000 # As3
+ 0.0000000000000000 0.3327999999999998 0.5000000000000000 # As4
+ 0.0000000000000000 0.6672000000000000 0.5000000000000000 # As5
+ 0.6672000000000000 0.5000000000000000 0.0000000000000000 # As6
+ 0.5000000000000000 0.0000000000000000 0.6672000000000000 # As7
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Cl1
diff --git a/test/data/cubic/POSCAR-196 b/test/data/cubic/POSCAR-196
new file mode 100644
index 0000000..ced4ed3
--- /dev/null
+++ b/test/data/cubic/POSCAR-196
@@ -0,0 +1,247 @@
+$cell vectors
+1.0
+ 12.1539942810353114 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.1539942810353114 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.1539942810353114
+ 80 56 96 8
+Direct
+ 0.2500000000000002 0.2500000000000002 0.0420000000000002 # Li1
+ 0.2500000000000002 0.2500000000000002 -0.0130000000000001 # Li2
+ 0.3610000000000000 0.3610000000000000 0.3610000000000000 # Li3
+ 0.3710000000000004 0.3710000000000004 0.8710000000000002 # Li4
+ 0.2500000000000002 0.7500000000000003 0.5419999999999999 # Li5
+ 0.2500000000000002 0.7500000000000003 0.4870000000000002 # Li6
+ 0.3610000000000004 0.8610000000000003 0.8610000000000003 # Li7
+ 0.3710000000000004 0.8710000000000002 0.3709999999999999 # Li8
+ 0.7500000000000003 0.2500000000000002 0.5419999999999999 # Li9
+ 0.7500000000000003 0.2500000000000002 0.4870000000000002 # Li10
+ 0.8610000000000003 0.3610000000000000 0.8610000000000003 # Li11
+ 0.7500000000000003 0.7500000000000003 0.0420000000000002 # Li12
+ 0.7500000000000003 0.7500000000000003 -0.0130000000000001 # Li13
+ 0.8610000000000003 0.8610000000000003 0.3610000000000000 # Li14
+ 0.8710000000000002 0.8710000000000002 0.8710000000000002 # Li15
+ 0.0420000000000002 0.2500000000000002 0.2500000000000002 # Li16
+ -0.0130000000000001 0.2500000000000002 0.2500000000000002 # Li17
+ 0.8710000000000002 0.3710000000000004 0.3709999999999999 # Li18
+ 0.0420000000000002 0.7500000000000003 0.7500000000000003 # Li19
+ -0.0129999999999997 0.7500000000000003 0.7500000000000003 # Li20
+ 0.5420000000000004 0.2500000000000002 0.7500000000000003 # Li21
+ 0.4870000000000002 0.2500000000000002 0.7500000000000003 # Li22
+ 0.5420000000000004 0.7500000000000003 0.2500000000000002 # Li23
+ 0.4870000000000002 0.7500000000000003 0.2500000000000002 # Li24
+ 0.2500000000000002 0.0420000000000002 0.2500000000000002 # Li25
+ 0.2500000000000002 -0.0130000000000001 0.2500000000000002 # Li26
+ 0.2500000000000002 0.5420000000000004 0.7500000000000003 # Li27
+ 0.2500000000000002 0.4870000000000002 0.7500000000000003 # Li28
+ 0.7500000000000003 0.0420000000000002 0.7500000000000003 # Li29
+ 0.7500000000000003 -0.0130000000000001 0.7500000000000003 # Li30
+ 0.7500000000000003 0.5419999999999999 0.2500000000000002 # Li31
+ 0.7500000000000003 0.4870000000000002 0.2500000000000002 # Li32
+ 0.7500000000000003 0.9580000000000000 0.2500000000000002 # Li33
+ 0.7500000000000003 1.0130000000000003 0.2500000000000002 # Li34
+ 0.6390000000000001 0.6390000000000001 0.3610000000000000 # Li35
+ 0.6290000000000002 0.1289999999999999 0.3709999999999999 # Li36
+ 0.7500000000000003 0.4580000000000001 0.7500000000000003 # Li37
+ 0.7500000000000003 0.5130000000000003 0.7500000000000003 # Li38
+ 0.6390000000000001 0.1390000000000003 0.8610000000000003 # Li39
+ 0.6290000000000002 0.6290000000000002 0.8710000000000002 # Li40
+ 0.2500000000000002 0.9580000000000004 0.7500000000000003 # Li41
+ 0.2500000000000002 1.0130000000000003 0.7500000000000003 # Li42
+ 0.1390000000000003 0.6390000000000001 0.8610000000000003 # Li43
+ 0.1289999999999999 0.1289999999999999 0.8710000000000002 # Li44
+ 0.2500000000000002 0.4580000000000001 0.2500000000000002 # Li45
+ 0.2500000000000002 0.5129999999999999 0.2500000000000002 # Li46
+ 0.1390000000000003 0.1390000000000003 0.3610000000000000 # Li47
+ 0.1289999999999999 0.6290000000000002 0.3709999999999999 # Li48
+ 0.3610000000000004 0.6390000000000001 0.6390000000000001 # Li49
+ 0.8710000000000002 0.6290000000000002 0.6290000000000002 # Li50
+ 0.3610000000000000 0.1390000000000003 0.1389999999999998 # Li51
+ 0.8710000000000002 0.1289999999999999 0.1289999999999999 # Li52
+ 0.8610000000000003 0.6390000000000001 0.1389999999999998 # Li53
+ 0.3710000000000004 0.6290000000000002 0.1289999999999999 # Li54
+ 0.8610000000000003 0.1390000000000003 0.6390000000000001 # Li55
+ 0.3710000000000004 0.1289999999999999 0.6290000000000002 # Li56
+ 0.6390000000000001 0.3610000000000000 0.6390000000000001 # Li57
+ 0.6290000000000002 0.8710000000000002 0.6290000000000002 # Li58
+ 0.6390000000000001 0.8610000000000003 0.1389999999999998 # Li59
+ 0.6290000000000002 0.3709999999999999 0.1289999999999999 # Li60
+ 0.1390000000000003 0.3610000000000000 0.1389999999999998 # Li61
+ 0.1289999999999999 0.8710000000000002 0.1289999999999999 # Li62
+ 0.1390000000000003 0.8610000000000003 0.6390000000000001 # Li63
+ 0.1289999999999999 0.3710000000000004 0.6290000000000002 # Li64
+ 0.9580000000000000 0.7500000000000003 0.2500000000000002 # Li65
+ 1.0130000000000003 0.7500000000000003 0.2500000000000002 # Li66
+ 0.9580000000000000 0.2500000000000002 0.7500000000000003 # Li67
+ 1.0130000000000003 0.2500000000000002 0.7500000000000003 # Li68
+ 0.4580000000000001 0.7500000000000003 0.7500000000000003 # Li69
+ 0.5130000000000003 0.7500000000000003 0.7500000000000003 # Li70
+ 0.4580000000000001 0.2500000000000002 0.2500000000000002 # Li71
+ 0.5129999999999999 0.2500000000000002 0.2500000000000002 # Li72
+ 0.2500000000000002 0.7500000000000003 0.9580000000000000 # Li73
+ 0.2500000000000002 0.7500000000000003 1.0130000000000003 # Li74
+ 0.2500000000000002 0.2500000000000002 0.4580000000000001 # Li75
+ 0.2500000000000002 0.2500000000000002 0.5129999999999999 # Li76
+ 0.7500000000000003 0.7500000000000003 0.4580000000000001 # Li77
+ 0.7500000000000003 0.7500000000000003 0.5129999999999999 # Li78
+ 0.7500000000000003 0.2500000000000002 0.9580000000000000 # Li79
+ 0.7500000000000003 0.2500000000000002 1.0130000000000003 # Li80
+ 0.0000000000000000 0.0000000000000000 0.2500000000000002 # B1
+ 0.0994000000000000 0.0994000000000000 0.0994000000000000 # B2
+ 0.1005000000000001 0.1005000000000001 0.6005000000000000 # B3
+ 0.0000000000000000 0.5000000000000003 0.7500000000000003 # B4
+ 0.0994000000000000 0.5994000000000003 0.5994000000000003 # B5
+ 0.1005000000000001 0.6005000000000000 0.1005000000000001 # B6
+ 0.5000000000000003 0.0000000000000000 0.7500000000000003 # B7
+ 0.5994000000000003 0.0994000000000000 0.5994000000000003 # B8
+ 0.5000000000000003 0.5000000000000003 0.2500000000000002 # B9
+ 0.5994000000000003 0.5994000000000003 0.0994000000000000 # B10
+ 0.6005000000000004 0.6005000000000004 0.6005000000000000 # B11
+ 0.2500000000000002 0.0000000000000000 0.0000000000000000 # B12
+ 0.6005000000000000 0.1005000000000001 0.1005000000000001 # B13
+ 0.2500000000000002 0.5000000000000003 0.4999999999999998 # B14
+ 0.7500000000000003 0.0000000000000000 0.5000000000000003 # B15
+ 0.7500000000000003 0.5000000000000003 0.0000000000000000 # B16
+ 0.0000000000000000 0.2500000000000002 0.0000000000000000 # B17
+ 0.0000000000000000 0.7500000000000003 0.4999999999999998 # B18
+ 0.5000000000000003 0.2500000000000002 0.5000000000000003 # B19
+ 0.5000000000000003 0.7500000000000003 0.0000000000000000 # B20
+ 0.0000000000000000 0.7500000000000003 0.0000000000000000 # B21
+ 0.9006000000000001 0.9006000000000001 0.0994000000000000 # B22
+ 0.8995000000000003 0.3995000000000001 0.1005000000000001 # B23
+ 0.0000000000000000 0.2500000000000002 0.4999999999999998 # B24
+ 0.9006000000000001 0.4006000000000002 0.5994000000000003 # B25
+ 0.8995000000000003 0.8995000000000003 0.6005000000000000 # B26
+ 0.5000000000000003 0.7500000000000003 0.5000000000000003 # B27
+ 0.4006000000000002 0.9006000000000001 0.5994000000000003 # B28
+ 0.3995000000000001 0.3995000000000001 0.6005000000000000 # B29
+ 0.5000000000000003 0.2500000000000002 0.0000000000000000 # B30
+ 0.4006000000000002 0.4006000000000002 0.0994000000000000 # B31
+ 0.3995000000000001 0.8995000000000003 0.1005000000000001 # B32
+ 0.0994000000000000 0.9006000000000005 0.9006000000000001 # B33
+ 0.6005000000000004 0.8995000000000003 0.8995000000000003 # B34
+ 0.0994000000000000 0.4006000000000002 0.4006000000000002 # B35
+ 0.6005000000000000 0.3995000000000001 0.3995000000000001 # B36
+ 0.5994000000000003 0.9006000000000001 0.4006000000000002 # B37
+ 0.1005000000000001 0.8995000000000003 0.3995000000000001 # B38
+ 0.5994000000000003 0.4006000000000002 0.9006000000000001 # B39
+ 0.1005000000000001 0.3995000000000001 0.8995000000000003 # B40
+ 0.9006000000000001 0.0994000000000000 0.9006000000000001 # B41
+ 0.8995000000000003 0.6005000000000004 0.8995000000000003 # B42
+ 0.9006000000000001 0.5994000000000003 0.4006000000000002 # B43
+ 0.8995000000000003 0.1005000000000001 0.3995000000000001 # B44
+ 0.4006000000000002 0.0994000000000000 0.4006000000000002 # B45
+ 0.3995000000000001 0.6005000000000004 0.3995000000000001 # B46
+ 0.4006000000000002 0.5994000000000003 0.9006000000000001 # B47
+ 0.3995000000000001 0.1005000000000001 0.8995000000000003 # B48
+ 0.7500000000000003 0.0000000000000000 0.0000000000000000 # B49
+ 0.7500000000000003 0.5000000000000003 0.4999999999999998 # B50
+ 0.2500000000000002 0.0000000000000000 0.5000000000000003 # B51
+ 0.2500000000000002 0.5000000000000003 0.0000000000000000 # B52
+ 0.0000000000000000 0.0000000000000000 0.7500000000000003 # B53
+ 0.0000000000000000 0.5000000000000003 0.2500000000000002 # B54
+ 0.5000000000000003 0.0000000000000000 0.2500000000000002 # B55
+ 0.5000000000000003 0.5000000000000003 0.7500000000000003 # B56
+ 0.0232000000000001 0.0985000000000000 0.1823000000000003 # O1
+ 0.0217999999999999 0.1811000000000001 0.5977999999999999 # O2
+ 0.0232000000000001 0.5985000000000003 0.6823000000000001 # O3
+ 0.0217999999999999 0.6811000000000003 0.0978000000000001 # O4
+ 0.5232000000000004 0.0985000000000000 0.6823000000000001 # O5
+ 0.5218000000000002 0.1811000000000001 0.0978000000000001 # O6
+ 0.5232000000000004 0.5985000000000003 0.1823000000000003 # O7
+ 0.5218000000000002 0.6811000000000003 0.5978000000000003 # O8
+ 0.1823000000000003 0.0232000000000001 0.0985000000000000 # O9
+ 0.5978000000000003 0.0217999999999999 0.1811000000000001 # O10
+ 0.1823000000000003 0.5232000000000004 0.5985000000000003 # O11
+ 0.5978000000000003 0.5218000000000002 0.6811000000000003 # O12
+ 0.6823000000000001 0.0232000000000001 0.5985000000000003 # O13
+ 0.0978000000000001 0.0218000000000003 0.6811000000000003 # O14
+ 0.6823000000000001 0.5232000000000004 0.0985000000000000 # O15
+ 0.0978000000000001 0.5218000000000002 0.1811000000000001 # O16
+ 0.0985000000000000 0.1823000000000003 0.0232000000000001 # O17
+ 0.1811000000000001 0.5978000000000003 0.0217999999999999 # O18
+ 0.0985000000000000 0.6823000000000001 0.5232000000000000 # O19
+ 0.1811000000000001 0.0978000000000001 0.5218000000000002 # O20
+ 0.5985000000000003 0.1823000000000003 0.5232000000000004 # O21
+ 0.6811000000000003 0.5978000000000003 0.5218000000000002 # O22
+ 0.5985000000000003 0.6823000000000001 0.0232000000000001 # O23
+ 0.6811000000000003 0.0978000000000001 0.0217999999999999 # O24
+ 0.9015000000000003 0.8177000000000001 0.0232000000000001 # O25
+ 0.8189000000000001 0.4022000000000002 0.0217999999999999 # O26
+ 0.9015000000000003 0.3177000000000000 0.5232000000000000 # O27
+ 0.8189000000000001 0.9022000000000001 0.5218000000000002 # O28
+ 0.4015000000000002 0.8177000000000001 0.5232000000000004 # O29
+ 0.3189000000000001 0.4022000000000002 0.5218000000000002 # O30
+ 0.4015000000000002 0.3177000000000000 0.0232000000000001 # O31
+ 0.3189000000000001 0.9022000000000001 0.0217999999999999 # O32
+ 0.1823000000000003 0.9768000000000003 0.9015000000000003 # O33
+ 0.5978000000000003 0.9782000000000003 0.8189000000000001 # O34
+ 0.1823000000000003 0.4768000000000002 0.4014999999999999 # O35
+ 0.5978000000000003 0.4782000000000004 0.3188999999999997 # O36
+ 0.6823000000000001 0.9768000000000003 0.4015000000000002 # O37
+ 0.0978000000000001 0.9782000000000003 0.3189000000000001 # O38
+ 0.6823000000000001 0.4768000000000002 0.9015000000000003 # O39
+ 0.0978000000000001 0.4782000000000004 0.8189000000000001 # O40
+ 0.9015000000000003 0.1823000000000003 0.9768000000000003 # O41
+ 0.8189000000000001 0.5978000000000003 0.9782000000000003 # O42
+ 0.9015000000000005 0.6823000000000001 0.4768000000000002 # O43
+ 0.8189000000000001 0.0978000000000001 0.4782000000000000 # O44
+ 0.4015000000000002 0.1823000000000003 0.4768000000000002 # O45
+ 0.3189000000000001 0.5978000000000003 0.4782000000000000 # O46
+ 0.4015000000000002 0.6823000000000006 0.9768000000000003 # O47
+ 0.3189000000000001 0.0978000000000001 0.9782000000000003 # O48
+ 0.8177000000000001 0.9768000000000003 0.0985000000000000 # O49
+ 0.4022000000000002 0.9782000000000003 0.1811000000000001 # O50
+ 0.8177000000000001 0.4768000000000002 0.5985000000000003 # O51
+ 0.4022000000000002 0.4782000000000000 0.6811000000000003 # O52
+ 0.3177000000000000 0.9768000000000003 0.5985000000000003 # O53
+ 0.9022000000000001 0.9782000000000003 0.6811000000000003 # O54
+ 0.3177000000000000 0.4768000000000002 0.0985000000000000 # O55
+ 0.9022000000000001 0.4782000000000000 0.1811000000000001 # O56
+ 0.8177000000000001 0.0232000000000001 0.9015000000000003 # O57
+ 0.4022000000000002 0.0218000000000003 0.8189000000000001 # O58
+ 0.8177000000000001 0.5232000000000004 0.4014999999999999 # O59
+ 0.4022000000000002 0.5218000000000002 0.3188999999999997 # O60
+ 0.3177000000000000 0.0232000000000001 0.4015000000000002 # O61
+ 0.9022000000000001 0.0217999999999999 0.3189000000000001 # O62
+ 0.3177000000000000 0.5232000000000004 0.9015000000000005 # O63
+ 0.9022000000000001 0.5218000000000002 0.8189000000000001 # O64
+ 0.0985000000000000 0.8177000000000001 0.9768000000000003 # O65
+ 0.1811000000000001 0.4022000000000002 0.9782000000000003 # O66
+ 0.0985000000000000 0.3177000000000000 0.4768000000000002 # O67
+ 0.1811000000000001 0.9022000000000001 0.4782000000000000 # O68
+ 0.5985000000000003 0.8177000000000001 0.4768000000000002 # O69
+ 0.6811000000000003 0.4022000000000002 0.4782000000000000 # O70
+ 0.5985000000000003 0.3177000000000000 0.9768000000000003 # O71
+ 0.6811000000000003 0.9022000000000003 0.9782000000000003 # O72
+ 0.9768000000000003 0.9015000000000003 0.1823000000000003 # O73
+ 0.9782000000000003 0.8189000000000001 0.5977999999999999 # O74
+ 0.9768000000000003 0.4015000000000002 0.6823000000000001 # O75
+ 0.9782000000000003 0.3189000000000001 0.0978000000000001 # O76
+ 0.4768000000000002 0.9015000000000005 0.6823000000000001 # O77
+ 0.4782000000000004 0.8189000000000001 0.0978000000000001 # O78
+ 0.4768000000000002 0.4015000000000002 0.1823000000000003 # O79
+ 0.4782000000000004 0.3189000000000001 0.5978000000000003 # O80
+ 0.0232000000000001 0.9015000000000005 0.8177000000000001 # O81
+ 0.0218000000000003 0.8189000000000001 0.4022000000000002 # O82
+ 0.0232000000000001 0.4015000000000002 0.3177000000000000 # O83
+ 0.0218000000000003 0.3189000000000001 0.9022000000000001 # O84
+ 0.5232000000000004 0.9015000000000003 0.3177000000000000 # O85
+ 0.5218000000000002 0.8189000000000004 0.9022000000000001 # O86
+ 0.5232000000000004 0.4015000000000002 0.8177000000000001 # O87
+ 0.5218000000000002 0.3189000000000001 0.4022000000000002 # O88
+ 0.9768000000000003 0.0985000000000000 0.8177000000000001 # O89
+ 0.9782000000000003 0.1811000000000001 0.4022000000000002 # O90
+ 0.9768000000000003 0.5985000000000003 0.3177000000000000 # O91
+ 0.9782000000000003 0.6811000000000003 0.9022000000000001 # O92
+ 0.4768000000000002 0.0985000000000000 0.3177000000000000 # O93
+ 0.4782000000000004 0.1811000000000001 0.9022000000000001 # O94
+ 0.4768000000000006 0.5985000000000003 0.8177000000000001 # O95
+ 0.4782000000000004 0.6811000000000003 0.4022000000000002 # O96
+ 0.2500000000000002 0.2500000000000002 0.2500000000000002 # Cl1
+ 0.7500000000000003 0.7500000000000003 0.7500000000000003 # Cl2
+ 0.2500000000000002 0.7500000000000003 0.7500000000000003 # Cl3
+ 0.7500000000000003 0.2500000000000002 0.2500000000000002 # Cl4
+ 0.7500000000000003 0.2500000000000002 0.7500000000000003 # Cl5
+ 0.2500000000000002 0.7500000000000003 0.2500000000000002 # Cl6
+ 0.7500000000000003 0.7500000000000003 0.2500000000000002 # Cl7
+ 0.2500000000000002 0.2500000000000002 0.7500000000000003 # Cl8
diff --git a/test/data/cubic/POSCAR-196-2 b/test/data/cubic/POSCAR-196-2
new file mode 100644
index 0000000..6897206
--- /dev/null
+++ b/test/data/cubic/POSCAR-196-2
@@ -0,0 +1,439 @@
+$cell vectors
+1.0
+ 18.7499911773417942 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 18.7499911773417942 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 18.7499911773417942
+ 80 352
+Direct
+ 0.9139999999999999 0.9140000000000004 0.9139999999999999 # Si1
+ 0.6649999999999998 0.6649999999999998 0.6649999999999998 # Si2
+ 0.3220000000000000 0.0000000000000000 0.0000000000000000 # Si3
+ 0.0720000000000001 0.2500000000000002 0.2499999999999999 # Si4
+ 0.9139999999999999 0.4140000000000003 0.4140000000000003 # Si5
+ 0.6649999999999998 0.1650000000000001 0.1650000000000001 # Si6
+ 0.3220000000000000 0.5000000000000001 0.5000000000000001 # Si7
+ 0.0720000000000001 0.7500000000000000 0.7500000000000000 # Si8
+ 0.4140000000000003 0.9139999999999999 0.4140000000000003 # Si9
+ 0.1650000000000001 0.6649999999999998 0.1650000000000001 # Si10
+ 0.8220000000000001 0.0000000000000000 0.5000000000000001 # Si11
+ 0.5719999999999998 0.2500000000000002 0.7500000000000000 # Si12
+ 0.4140000000000003 0.4140000000000003 0.9139999999999999 # Si13
+ 0.1650000000000001 0.1650000000000001 0.6649999999999998 # Si14
+ 0.8220000000000001 0.5000000000000001 0.0000000000000000 # Si15
+ 0.5719999999999998 0.7500000000000000 0.2499999999999999 # Si16
+ 0.0000000000000000 0.3220000000000000 0.0000000000000000 # Si17
+ 0.2499999999999999 0.0720000000000001 0.2499999999999999 # Si18
+ 0.0000000000000000 0.8220000000000001 0.5000000000000001 # Si19
+ 0.2500000000000002 0.5720000000000002 0.7500000000000000 # Si20
+ 0.5000000000000001 0.3220000000000000 0.5000000000000001 # Si21
+ 0.7500000000000000 0.0720000000000001 0.7500000000000000 # Si22
+ 0.5000000000000001 0.8220000000000001 0.0000000000000000 # Si23
+ 0.7500000000000000 0.5719999999999998 0.2499999999999999 # Si24
+ 0.0000000000000000 0.0000000000000000 0.3220000000000000 # Si25
+ 0.2499999999999999 0.2499999999999999 0.0720000000000001 # Si26
+ 0.0000000000000000 0.5000000000000001 0.8220000000000001 # Si27
+ 0.2500000000000002 0.7500000000000000 0.5719999999999998 # Si28
+ 0.5000000000000001 0.0000000000000000 0.8220000000000001 # Si29
+ 0.7500000000000000 0.2500000000000002 0.5719999999999998 # Si30
+ 0.5000000000000001 0.5000000000000001 0.3220000000000000 # Si31
+ 0.7500000000000000 0.7500000000000000 0.0720000000000001 # Si32
+ 0.0860000000000002 0.0860000000000002 0.9139999999999999 # Si33
+ 0.3349999999999999 0.3349999999999999 0.6649999999999998 # Si34
+ 0.0860000000000002 0.5859999999999999 0.4140000000000003 # Si35
+ 0.3349999999999999 0.8350000000000000 0.1650000000000001 # Si36
+ 0.5859999999999999 0.0859999999999999 0.4140000000000003 # Si37
+ 0.8350000000000000 0.3349999999999999 0.1650000000000001 # Si38
+ 0.5859999999999999 0.5859999999999999 0.9139999999999999 # Si39
+ 0.8350000000000000 0.8350000000000000 0.6649999999999998 # Si40
+ 0.9139999999999999 0.0859999999999999 0.0859999999999999 # Si41
+ 0.6649999999999998 0.3349999999999999 0.3349999999999999 # Si42
+ 0.0000000000000000 0.6779999999999999 0.0000000000000000 # Si43
+ 0.2500000000000002 0.9280000000000002 0.7500000000000000 # Si44
+ 0.9139999999999999 0.5859999999999999 0.5859999999999999 # Si45
+ 0.6650000000000001 0.8350000000000000 0.8350000000000000 # Si46
+ 0.0000000000000000 0.1780000000000001 0.5000000000000001 # Si47
+ 0.2500000000000002 0.4280000000000000 0.2499999999999999 # Si48
+ 0.4140000000000003 0.0860000000000002 0.5859999999999999 # Si49
+ 0.1650000000000001 0.3349999999999999 0.8350000000000000 # Si50
+ 0.5000000000000001 0.6780000000000002 0.5000000000000001 # Si51
+ 0.7500000000000000 0.9280000000000002 0.2499999999999999 # Si52
+ 0.4140000000000003 0.5859999999999999 0.0859999999999999 # Si53
+ 0.1650000000000001 0.8350000000000000 0.3349999999999999 # Si54
+ 0.5000000000000001 0.1780000000000001 0.0000000000000000 # Si55
+ 0.7500000000000000 0.4280000000000000 0.7500000000000000 # Si56
+ 0.0860000000000002 0.9139999999999999 0.0859999999999999 # Si57
+ 0.3349999999999999 0.6649999999999998 0.3349999999999999 # Si58
+ 0.0000000000000000 0.0000000000000000 0.6779999999999999 # Si59
+ 0.7500000000000000 0.2500000000000002 0.9280000000000002 # Si60
+ 0.0860000000000002 0.4140000000000003 0.5859999999999999 # Si61
+ 0.3349999999999999 0.1650000000000001 0.8350000000000000 # Si62
+ 0.0000000000000000 0.5000000000000001 0.1780000000000001 # Si63
+ 0.7500000000000000 0.7500000000000000 0.4280000000000000 # Si64
+ 0.5859999999999999 0.9139999999999999 0.5859999999999999 # Si65
+ 0.8350000000000000 0.6649999999999998 0.8350000000000000 # Si66
+ 0.5000000000000001 0.0000000000000000 0.1780000000000001 # Si67
+ 0.2500000000000002 0.2500000000000002 0.4280000000000000 # Si68
+ 0.5859999999999999 0.4140000000000003 0.0859999999999999 # Si69
+ 0.8350000000000000 0.1650000000000001 0.3349999999999999 # Si70
+ 0.5000000000000001 0.5000000000000001 0.6779999999999999 # Si71
+ 0.2500000000000002 0.7500000000000000 0.9280000000000002 # Si72
+ 0.6779999999999999 0.0000000000000000 0.0000000000000000 # Si73
+ 0.9280000000000002 0.7500000000000000 0.2499999999999999 # Si74
+ 0.6779999999999999 0.5000000000000001 0.5000000000000001 # Si75
+ 0.9280000000000002 0.2500000000000002 0.7500000000000000 # Si76
+ 0.1780000000000001 0.0000000000000000 0.5000000000000001 # Si77
+ 0.4280000000000000 0.7500000000000000 0.7500000000000000 # Si78
+ 0.1780000000000001 0.5000000000000001 0.0000000000000000 # Si79
+ 0.4280000000000000 0.2500000000000002 0.2499999999999999 # Si80
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Li1
+ 0.5000000000000001 0.5000000000000001 0.5000000000000001 # Li2
+ 0.2499999999999999 0.2500000000000002 0.2499999999999999 # Li3
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Li4
+ 0.0800000000000001 0.0800000000000001 0.0800000000000001 # Li5
+ 0.1669999999999999 0.1669999999999999 0.1669999999999999 # Li6
+ 0.3300000000000000 0.3300000000000000 0.3300000000000000 # Li7
+ 0.4200000000000002 0.4199999999999999 0.4199999999999999 # Li8
+ 0.5829999999999999 0.5830000000000002 0.5829999999999999 # Li9
+ 0.8330000000000000 0.8330000000000000 0.8330000000000000 # Li10
+ 0.1669999999999999 0.0000000000000000 0.0000000000000000 # Li11
+ 0.5829999999999999 0.2500000000000002 0.2499999999999999 # Li12
+ 0.8390000000000000 0.1670000000000002 0.9950000000000001 # Li13
+ 0.6580000000000000 0.1670000000000002 0.9970000000000000 # Li14
+ 0.2499999999999999 0.0870000000000000 0.0870000000000000 # Li15
+ 0.7500000000000000 0.0830000000000000 0.0830000000000000 # Li16
+ 0.0000000000000000 0.5000000000000001 0.5000000000000001 # Li17
+ 0.5000000000000001 0.0000000000000000 0.0000000000000000 # Li18
+ 0.2500000000000002 0.7500000000000000 0.7500000000000000 # Li19
+ 0.7500000000000000 0.2500000000000002 0.2499999999999999 # Li20
+ 0.0800000000000001 0.5800000000000000 0.5800000000000000 # Li21
+ 0.1670000000000002 0.6669999999999998 0.6669999999999998 # Li22
+ 0.3300000000000000 0.8300000000000002 0.8300000000000002 # Li23
+ 0.4200000000000002 0.9199999999999998 0.9199999999999998 # Li24
+ 0.5829999999999999 0.0830000000000000 0.0830000000000000 # Li25
+ 0.8330000000000000 0.3329999999999999 0.3329999999999999 # Li26
+ 0.1670000000000002 0.5000000000000001 0.5000000000000001 # Li27
+ 0.5829999999999999 0.7500000000000000 0.7500000000000000 # Li28
+ 0.8390000000000000 0.6669999999999998 0.4950000000000003 # Li29
+ 0.6580000000000000 0.6669999999999998 0.4970000000000000 # Li30
+ 0.2500000000000002 0.5870000000000001 0.5869999999999999 # Li31
+ 0.7500000000000000 0.5830000000000002 0.5829999999999999 # Li32
+ 0.5000000000000001 0.0000000000000000 0.5000000000000001 # Li33
+ 0.0000000000000000 0.5000000000000001 0.0000000000000000 # Li34
+ 0.7500000000000000 0.2500000000000002 0.7500000000000000 # Li35
+ 0.2500000000000002 0.7500000000000000 0.2499999999999999 # Li36
+ 0.5800000000000000 0.0800000000000001 0.5800000000000000 # Li37
+ 0.6669999999999998 0.1670000000000002 0.6669999999999998 # Li38
+ 0.8300000000000002 0.3300000000000000 0.8300000000000002 # Li39
+ 0.9199999999999998 0.4200000000000002 0.9199999999999998 # Li40
+ 0.0830000000000000 0.5829999999999999 0.0830000000000000 # Li41
+ 0.3329999999999999 0.8330000000000000 0.3329999999999999 # Li42
+ 0.6669999999999998 0.0000000000000000 0.5000000000000001 # Li43
+ 0.0830000000000000 0.2500000000000002 0.7500000000000000 # Li44
+ 0.3390000000000000 0.1670000000000002 0.4950000000000003 # Li45
+ 0.1580000000000000 0.1670000000000002 0.4970000000000000 # Li46
+ 0.7500000000000000 0.0870000000000000 0.5869999999999999 # Li47
+ 0.2500000000000002 0.0830000000000000 0.5829999999999999 # Li48
+ 0.5000000000000001 0.5000000000000001 0.0000000000000000 # Li49
+ 0.0000000000000000 0.0000000000000000 0.5000000000000001 # Li50
+ 0.7500000000000000 0.7500000000000000 0.2499999999999999 # Li51
+ 0.2500000000000002 0.2500000000000002 0.7500000000000000 # Li52
+ 0.5800000000000000 0.5800000000000000 0.0800000000000001 # Li53
+ 0.6669999999999998 0.6669999999999998 0.1669999999999999 # Li54
+ 0.8300000000000002 0.8300000000000002 0.3300000000000000 # Li55
+ 0.9199999999999998 0.9199999999999998 0.4199999999999999 # Li56
+ 0.0830000000000000 0.0830000000000000 0.5829999999999999 # Li57
+ 0.3329999999999999 0.3330000000000002 0.8330000000000000 # Li58
+ 0.6669999999999998 0.5000000000000001 0.0000000000000000 # Li59
+ 0.0830000000000000 0.7500000000000000 0.2499999999999999 # Li60
+ 0.3390000000000000 0.6669999999999998 0.9950000000000001 # Li61
+ 0.1580000000000000 0.6669999999999998 0.9970000000000000 # Li62
+ 0.7500000000000000 0.5869999999999999 0.0870000000000000 # Li63
+ 0.2500000000000002 0.5829999999999999 0.0830000000000000 # Li64
+ 0.0000000000000000 0.1669999999999999 0.0000000000000000 # Li65
+ 0.2500000000000002 0.5829999999999999 0.2499999999999999 # Li66
+ 0.9950000000000001 0.8390000000000000 0.1669999999999999 # Li67
+ 0.9970000000000000 0.6580000000000000 0.1669999999999999 # Li68
+ 0.0870000000000000 0.2499999999999999 0.0870000000000000 # Li69
+ 0.0830000000000000 0.7500000000000000 0.0830000000000000 # Li70
+ 0.0000000000000000 0.6669999999999998 0.5000000000000001 # Li71
+ 0.2500000000000002 0.0830000000000000 0.7500000000000000 # Li72
+ 0.9950000000000001 0.3390000000000000 0.6669999999999998 # Li73
+ 0.9970000000000000 0.1580000000000000 0.6669999999999998 # Li74
+ 0.0870000000000000 0.7500000000000000 0.5869999999999999 # Li75
+ 0.0830000000000000 0.2500000000000002 0.5829999999999999 # Li76
+ 0.5000000000000001 0.1670000000000002 0.5000000000000001 # Li77
+ 0.7500000000000000 0.5830000000000002 0.7500000000000000 # Li78
+ 0.4950000000000003 0.8390000000000000 0.6669999999999998 # Li79
+ 0.4970000000000000 0.6580000000000000 0.6669999999999998 # Li80
+ 0.5869999999999999 0.2500000000000002 0.5869999999999999 # Li81
+ 0.5829999999999999 0.7500000000000000 0.5829999999999999 # Li82
+ 0.5000000000000001 0.6669999999999998 0.0000000000000000 # Li83
+ 0.7500000000000000 0.0830000000000000 0.2499999999999999 # Li84
+ 0.4950000000000003 0.3390000000000000 0.1669999999999999 # Li85
+ 0.4970000000000000 0.1580000000000000 0.1669999999999999 # Li86
+ 0.5869999999999999 0.7500000000000000 0.0870000000000000 # Li87
+ 0.5829999999999999 0.2499999999999999 0.0830000000000000 # Li88
+ 0.0000000000000000 0.0000000000000000 0.1669999999999999 # Li89
+ 0.2500000000000002 0.2500000000000002 0.5829999999999999 # Li90
+ 0.1670000000000002 0.9950000000000001 0.8390000000000000 # Li91
+ 0.1670000000000002 0.9970000000000000 0.6580000000000000 # Li92
+ 0.0870000000000000 0.0870000000000000 0.2499999999999999 # Li93
+ 0.0830000000000000 0.0830000000000000 0.7500000000000000 # Li94
+ 0.0000000000000000 0.5000000000000001 0.6669999999999998 # Li95
+ 0.2500000000000002 0.7500000000000000 0.0830000000000000 # Li96
+ 0.1670000000000002 0.4950000000000003 0.3390000000000000 # Li97
+ 0.1669999999999999 0.4970000000000000 0.1580000000000000 # Li98
+ 0.0870000000000000 0.5870000000000001 0.7500000000000000 # Li99
+ 0.0830000000000000 0.5829999999999999 0.2499999999999999 # Li100
+ 0.5000000000000001 0.0000000000000000 0.6669999999999998 # Li101
+ 0.7500000000000000 0.2499999999999999 0.0830000000000000 # Li102
+ 0.6669999999999998 0.9950000000000001 0.3390000000000000 # Li103
+ 0.6669999999999998 0.9970000000000000 0.1580000000000000 # Li104
+ 0.5869999999999999 0.0870000000000000 0.7500000000000000 # Li105
+ 0.5829999999999999 0.0830000000000000 0.2499999999999999 # Li106
+ 0.5000000000000001 0.5000000000000001 0.1669999999999999 # Li107
+ 0.7500000000000000 0.7500000000000000 0.5829999999999999 # Li108
+ 0.6669999999999998 0.4950000000000003 0.8390000000000000 # Li109
+ 0.6669999999999998 0.4970000000000000 0.6580000000000000 # Li110
+ 0.5869999999999999 0.5869999999999999 0.2499999999999999 # Li111
+ 0.5829999999999999 0.5830000000000002 0.7500000000000000 # Li112
+ 0.9199999999999998 0.9199999999999998 0.0800000000000001 # Li113
+ 0.8330000000000000 0.8330000000000000 0.1669999999999999 # Li114
+ 0.6699999999999998 0.6699999999999998 0.3300000000000000 # Li115
+ 0.5800000000000000 0.5800000000000000 0.4199999999999999 # Li116
+ 0.4170000000000001 0.4170000000000001 0.5829999999999999 # Li117
+ 0.1670000000000002 0.1670000000000002 0.8330000000000000 # Li118
+ 0.8330000000000000 0.0050000000000002 0.8390000000000000 # Li119
+ 0.8330000000000000 0.0030000000000002 0.6580000000000000 # Li120
+ 0.9130000000000000 0.9130000000000000 0.2499999999999999 # Li121
+ 0.9170000000000000 0.9170000000000000 0.7500000000000000 # Li122
+ 0.9199999999999998 0.4199999999999999 0.5800000000000000 # Li123
+ 0.8330000000000000 0.3330000000000002 0.6669999999999998 # Li124
+ 0.6699999999999998 0.1700000000000000 0.8300000000000002 # Li125
+ 0.5800000000000002 0.0800000000000001 0.9199999999999998 # Li126
+ 0.4170000000000001 0.9170000000000000 0.0830000000000000 # Li127
+ 0.1670000000000002 0.6669999999999998 0.3329999999999999 # Li128
+ 0.8330000000000000 0.5049999999999999 0.3390000000000000 # Li129
+ 0.8330000000000000 0.5029999999999999 0.1580000000000000 # Li130
+ 0.9130000000000000 0.4130000000000000 0.7500000000000000 # Li131
+ 0.9170000000000000 0.4170000000000001 0.2499999999999999 # Li132
+ 0.4200000000000002 0.9199999999999998 0.5800000000000000 # Li133
+ 0.3330000000000002 0.8330000000000000 0.6669999999999998 # Li134
+ 0.1700000000000000 0.6699999999999998 0.8300000000000002 # Li135
+ 0.0800000000000001 0.5800000000000002 0.9199999999999998 # Li136
+ 0.9170000000000000 0.4170000000000001 0.0830000000000000 # Li137
+ 0.6669999999999998 0.1670000000000002 0.3329999999999999 # Li138
+ 0.3329999999999999 0.0050000000000002 0.3390000000000000 # Li139
+ 0.3329999999999999 0.0030000000000002 0.1580000000000000 # Li140
+ 0.4130000000000000 0.9130000000000000 0.7500000000000000 # Li141
+ 0.4170000000000001 0.9170000000000000 0.2499999999999999 # Li142
+ 0.4199999999999999 0.4199999999999999 0.0800000000000001 # Li143
+ 0.3329999999999999 0.3329999999999999 0.1669999999999999 # Li144
+ 0.1700000000000000 0.1700000000000000 0.3300000000000000 # Li145
+ 0.0800000000000001 0.0800000000000001 0.4199999999999999 # Li146
+ 0.9170000000000000 0.9170000000000000 0.5829999999999999 # Li147
+ 0.6669999999999998 0.6669999999999998 0.8330000000000000 # Li148
+ 0.3330000000000002 0.5049999999999999 0.8390000000000000 # Li149
+ 0.3330000000000002 0.5029999999999999 0.6580000000000000 # Li150
+ 0.4130000000000000 0.4130000000000000 0.2499999999999999 # Li151
+ 0.4170000000000001 0.4170000000000001 0.7500000000000000 # Li152
+ 0.0800000000000001 0.9199999999999998 0.9199999999999998 # Li153
+ 0.1670000000000002 0.8330000000000000 0.8330000000000000 # Li154
+ 0.3300000000000000 0.6699999999999998 0.6699999999999998 # Li155
+ 0.4200000000000002 0.5800000000000002 0.5800000000000000 # Li156
+ 0.5829999999999999 0.4170000000000001 0.4170000000000001 # Li157
+ 0.8330000000000000 0.1670000000000002 0.1669999999999999 # Li158
+ 0.0000000000000000 0.8330000000000000 0.0000000000000000 # Li159
+ 0.2500000000000002 0.4170000000000001 0.7500000000000000 # Li160
+ 0.9950000000000001 0.1610000000000001 0.8330000000000000 # Li161
+ 0.9970000000000000 0.3420000000000001 0.8330000000000000 # Li162
+ 0.0870000000000000 0.7500000000000000 0.9130000000000000 # Li163
+ 0.0830000000000000 0.2500000000000002 0.9170000000000000 # Li164
+ 0.0800000000000001 0.4199999999999999 0.4199999999999999 # Li165
+ 0.1670000000000002 0.3329999999999999 0.3329999999999999 # Li166
+ 0.3300000000000000 0.1700000000000000 0.1700000000000000 # Li167
+ 0.4199999999999999 0.0800000000000001 0.0800000000000001 # Li168
+ 0.5830000000000002 0.9170000000000000 0.9170000000000000 # Li169
+ 0.8330000000000000 0.6669999999999998 0.6669999999999998 # Li170
+ 0.0000000000000000 0.3329999999999999 0.5000000000000001 # Li171
+ 0.2500000000000002 0.9170000000000000 0.2499999999999999 # Li172
+ 0.9950000000000001 0.6609999999999999 0.3329999999999999 # Li173
+ 0.9970000000000000 0.8420000000000000 0.3329999999999999 # Li174
+ 0.0870000000000000 0.2500000000000002 0.4130000000000000 # Li175
+ 0.0830000000000000 0.7500000000000000 0.4170000000000001 # Li176
+ 0.5800000000000000 0.9199999999999998 0.4199999999999999 # Li177
+ 0.6669999999999998 0.8330000000000000 0.3329999999999999 # Li178
+ 0.8300000000000002 0.6699999999999998 0.1700000000000000 # Li179
+ 0.9199999999999998 0.5800000000000000 0.0800000000000001 # Li180
+ 0.0830000000000000 0.4170000000000001 0.9170000000000000 # Li181
+ 0.3329999999999999 0.1670000000000002 0.6669999999999998 # Li182
+ 0.5000000000000001 0.8330000000000000 0.5000000000000001 # Li183
+ 0.7500000000000000 0.4170000000000001 0.2499999999999999 # Li184
+ 0.4950000000000003 0.1610000000000001 0.3329999999999999 # Li185
+ 0.4970000000000000 0.3420000000000001 0.3329999999999999 # Li186
+ 0.5869999999999999 0.7500000000000000 0.4130000000000000 # Li187
+ 0.5829999999999999 0.2500000000000002 0.4170000000000001 # Li188
+ 0.5800000000000000 0.4200000000000002 0.9199999999999998 # Li189
+ 0.6669999999999998 0.3330000000000002 0.8330000000000000 # Li190
+ 0.8300000000000002 0.1700000000000000 0.6699999999999998 # Li191
+ 0.9199999999999998 0.0800000000000001 0.5800000000000000 # Li192
+ 0.0830000000000000 0.9170000000000000 0.4170000000000001 # Li193
+ 0.3329999999999999 0.6669999999999998 0.1669999999999999 # Li194
+ 0.5000000000000001 0.3329999999999999 0.0000000000000000 # Li195
+ 0.7500000000000000 0.9170000000000000 0.7500000000000000 # Li196
+ 0.4950000000000003 0.6610000000000001 0.8330000000000000 # Li197
+ 0.4970000000000000 0.8420000000000003 0.8330000000000000 # Li198
+ 0.5870000000000001 0.2500000000000002 0.9130000000000000 # Li199
+ 0.5830000000000002 0.7500000000000000 0.9170000000000000 # Li200
+ 0.9199999999999998 0.0800000000000001 0.9199999999999998 # Li201
+ 0.8330000000000000 0.1670000000000002 0.8330000000000000 # Li202
+ 0.6699999999999998 0.3300000000000000 0.6699999999999998 # Li203
+ 0.5800000000000000 0.4199999999999999 0.5800000000000000 # Li204
+ 0.4170000000000001 0.5829999999999999 0.4170000000000001 # Li205
+ 0.1670000000000002 0.8330000000000000 0.1669999999999999 # Li206
+ 0.0000000000000000 0.0000000000000000 0.8330000000000000 # Li207
+ 0.7500000000000000 0.2500000000000002 0.4170000000000001 # Li208
+ 0.8330000000000000 0.9950000000000001 0.1610000000000001 # Li209
+ 0.8330000000000000 0.9970000000000000 0.3420000000000001 # Li210
+ 0.9130000000000000 0.0870000000000000 0.7500000000000000 # Li211
+ 0.9170000000000000 0.0830000000000000 0.2499999999999999 # Li212
+ 0.9199999999999998 0.5800000000000000 0.4199999999999999 # Li213
+ 0.8330000000000000 0.6669999999999998 0.3329999999999999 # Li214
+ 0.6699999999999998 0.8300000000000002 0.1700000000000000 # Li215
+ 0.5800000000000002 0.9199999999999998 0.0800000000000001 # Li216
+ 0.4170000000000001 0.0830000000000000 0.9170000000000000 # Li217
+ 0.1670000000000002 0.3330000000000002 0.6669999999999998 # Li218
+ 0.0000000000000000 0.5000000000000001 0.3329999999999999 # Li219
+ 0.7500000000000000 0.7500000000000000 0.9170000000000000 # Li220
+ 0.8330000000000000 0.4950000000000003 0.6609999999999999 # Li221
+ 0.8330000000000000 0.4970000000000000 0.8420000000000000 # Li222
+ 0.9130000000000000 0.5869999999999999 0.2499999999999999 # Li223
+ 0.9170000000000000 0.5830000000000002 0.7500000000000000 # Li224
+ 0.4199999999999999 0.0800000000000001 0.4199999999999999 # Li225
+ 0.3329999999999999 0.1670000000000002 0.3329999999999999 # Li226
+ 0.1700000000000000 0.3300000000000000 0.1700000000000000 # Li227
+ 0.0800000000000001 0.4199999999999999 0.0800000000000001 # Li228
+ 0.9170000000000000 0.5830000000000002 0.9170000000000000 # Li229
+ 0.6669999999999998 0.8330000000000000 0.6669999999999998 # Li230
+ 0.5000000000000001 0.0000000000000000 0.3329999999999999 # Li231
+ 0.2500000000000002 0.2500000000000002 0.9170000000000000 # Li232
+ 0.3330000000000002 0.9950000000000001 0.6609999999999999 # Li233
+ 0.3330000000000002 0.9970000000000000 0.8420000000000000 # Li234
+ 0.4130000000000000 0.0870000000000000 0.2499999999999999 # Li235
+ 0.4170000000000001 0.0830000000000000 0.7500000000000000 # Li236
+ 0.4200000000000002 0.5800000000000000 0.9199999999999998 # Li237
+ 0.3330000000000002 0.6669999999999998 0.8330000000000000 # Li238
+ 0.1700000000000000 0.8300000000000002 0.6699999999999998 # Li239
+ 0.0800000000000001 0.9199999999999998 0.5800000000000000 # Li240
+ 0.9170000000000000 0.0830000000000000 0.4170000000000001 # Li241
+ 0.6669999999999998 0.3329999999999999 0.1669999999999999 # Li242
+ 0.5000000000000001 0.5000000000000001 0.8330000000000000 # Li243
+ 0.2500000000000002 0.7500000000000000 0.4170000000000001 # Li244
+ 0.3329999999999999 0.4950000000000003 0.1610000000000001 # Li245
+ 0.3329999999999999 0.4970000000000000 0.3420000000000001 # Li246
+ 0.4130000000000000 0.5870000000000001 0.7500000000000000 # Li247
+ 0.4170000000000001 0.5829999999999999 0.2499999999999999 # Li248
+ 0.0049999999999999 0.1610000000000001 0.1669999999999999 # Li249
+ 0.0030000000000002 0.3420000000000001 0.1669999999999999 # Li250
+ 0.9130000000000000 0.7500000000000000 0.0870000000000000 # Li251
+ 0.9170000000000000 0.2499999999999999 0.0830000000000000 # Li252
+ 0.0050000000000002 0.6610000000000001 0.6669999999999998 # Li253
+ 0.0030000000000002 0.8420000000000003 0.6669999999999998 # Li254
+ 0.9130000000000000 0.2500000000000002 0.5869999999999999 # Li255
+ 0.9170000000000000 0.7500000000000000 0.5829999999999999 # Li256
+ 0.5049999999999999 0.1610000000000001 0.6669999999999998 # Li257
+ 0.5029999999999999 0.3420000000000001 0.6669999999999998 # Li258
+ 0.4130000000000000 0.7500000000000000 0.5869999999999999 # Li259
+ 0.4170000000000001 0.2500000000000002 0.5829999999999999 # Li260
+ 0.5049999999999999 0.6609999999999999 0.1669999999999999 # Li261
+ 0.5029999999999999 0.8420000000000000 0.1669999999999999 # Li262
+ 0.4130000000000000 0.2499999999999999 0.0870000000000000 # Li263
+ 0.4170000000000001 0.7500000000000000 0.0830000000000000 # Li264
+ 0.0050000000000002 0.8390000000000000 0.8330000000000000 # Li265
+ 0.0030000000000002 0.6580000000000000 0.8330000000000000 # Li266
+ 0.9130000000000000 0.2500000000000002 0.9130000000000000 # Li267
+ 0.9170000000000000 0.7500000000000000 0.9170000000000000 # Li268
+ 0.0050000000000002 0.3390000000000000 0.3329999999999999 # Li269
+ 0.0030000000000002 0.1580000000000000 0.3329999999999999 # Li270
+ 0.9130000000000000 0.7500000000000000 0.4130000000000000 # Li271
+ 0.9170000000000000 0.2500000000000002 0.4170000000000001 # Li272
+ 0.5049999999999999 0.8390000000000000 0.3329999999999999 # Li273
+ 0.5029999999999999 0.6580000000000000 0.3329999999999999 # Li274
+ 0.4130000000000000 0.2500000000000002 0.4130000000000000 # Li275
+ 0.4170000000000001 0.7500000000000000 0.4170000000000001 # Li276
+ 0.5049999999999999 0.3390000000000000 0.8330000000000000 # Li277
+ 0.5029999999999999 0.1580000000000000 0.8330000000000000 # Li278
+ 0.4130000000000000 0.7500000000000000 0.9130000000000000 # Li279
+ 0.4170000000000001 0.2500000000000002 0.9170000000000000 # Li280
+ 0.1669999999999999 0.0049999999999999 0.1610000000000001 # Li281
+ 0.1669999999999999 0.0030000000000002 0.3420000000000001 # Li282
+ 0.0870000000000000 0.9130000000000000 0.7500000000000000 # Li283
+ 0.0830000000000000 0.9170000000000000 0.2499999999999999 # Li284
+ 0.1670000000000002 0.5049999999999999 0.6609999999999999 # Li285
+ 0.1670000000000002 0.5029999999999999 0.8420000000000000 # Li286
+ 0.0870000000000000 0.4130000000000000 0.2499999999999999 # Li287
+ 0.0830000000000000 0.4170000000000001 0.7500000000000000 # Li288
+ 0.6669999999999998 0.0050000000000002 0.6609999999999999 # Li289
+ 0.6669999999999998 0.0030000000000002 0.8420000000000000 # Li290
+ 0.5870000000000001 0.9130000000000000 0.2499999999999999 # Li291
+ 0.5830000000000002 0.9170000000000000 0.7500000000000000 # Li292
+ 0.6669999999999998 0.5049999999999999 0.1610000000000001 # Li293
+ 0.6669999999999998 0.5029999999999999 0.3420000000000001 # Li294
+ 0.5869999999999999 0.4130000000000000 0.7500000000000000 # Li295
+ 0.5829999999999999 0.4170000000000001 0.2499999999999999 # Li296
+ 0.8330000000000000 0.0000000000000000 0.0000000000000000 # Li297
+ 0.4170000000000001 0.7500000000000000 0.2499999999999999 # Li298
+ 0.1610000000000001 0.8330000000000000 0.9950000000000001 # Li299
+ 0.3420000000000001 0.8330000000000000 0.9970000000000000 # Li300
+ 0.7500000000000000 0.9130000000000000 0.0870000000000000 # Li301
+ 0.2500000000000002 0.9170000000000000 0.0830000000000000 # Li302
+ 0.8330000000000000 0.5000000000000001 0.5000000000000001 # Li303
+ 0.4170000000000001 0.2500000000000002 0.7500000000000000 # Li304
+ 0.1610000000000001 0.3329999999999999 0.4950000000000003 # Li305
+ 0.3420000000000001 0.3329999999999999 0.4970000000000000 # Li306
+ 0.7500000000000000 0.4130000000000000 0.5869999999999999 # Li307
+ 0.2500000000000002 0.4170000000000001 0.5829999999999999 # Li308
+ 0.3329999999999999 0.0000000000000000 0.5000000000000001 # Li309
+ 0.9170000000000000 0.7500000000000000 0.7500000000000000 # Li310
+ 0.6610000000000001 0.8330000000000000 0.4950000000000003 # Li311
+ 0.8420000000000003 0.8330000000000000 0.4970000000000000 # Li312
+ 0.2500000000000002 0.9130000000000000 0.5869999999999999 # Li313
+ 0.7500000000000000 0.9170000000000000 0.5829999999999999 # Li314
+ 0.3329999999999999 0.5000000000000001 0.0000000000000000 # Li315
+ 0.9170000000000000 0.2500000000000002 0.2499999999999999 # Li316
+ 0.6610000000000001 0.3330000000000002 0.9950000000000001 # Li317
+ 0.8420000000000003 0.3330000000000002 0.9970000000000000 # Li318
+ 0.2500000000000002 0.4130000000000000 0.0870000000000000 # Li319
+ 0.7500000000000000 0.4170000000000001 0.0830000000000000 # Li320
+ 0.8390000000000000 0.8330000000000000 0.0049999999999999 # Li321
+ 0.6580000000000000 0.8330000000000000 0.0029999999999999 # Li322
+ 0.2500000000000002 0.9130000000000000 0.9130000000000000 # Li323
+ 0.7500000000000002 0.9170000000000000 0.9170000000000000 # Li324
+ 0.8390000000000000 0.3329999999999999 0.5049999999999999 # Li325
+ 0.6580000000000000 0.3329999999999999 0.5029999999999999 # Li326
+ 0.2500000000000002 0.4130000000000000 0.4130000000000000 # Li327
+ 0.7500000000000000 0.4170000000000001 0.4170000000000001 # Li328
+ 0.3390000000000000 0.8330000000000000 0.5049999999999999 # Li329
+ 0.1580000000000000 0.8330000000000000 0.5029999999999999 # Li330
+ 0.7500000000000000 0.9130000000000000 0.4130000000000000 # Li331
+ 0.2500000000000002 0.9170000000000000 0.4170000000000001 # Li332
+ 0.3390000000000000 0.3329999999999999 0.0049999999999999 # Li333
+ 0.1580000000000000 0.3329999999999999 0.0029999999999999 # Li334
+ 0.7500000000000000 0.4130000000000000 0.9130000000000000 # Li335
+ 0.2500000000000002 0.4170000000000001 0.9170000000000000 # Li336
+ 0.1610000000000001 0.1669999999999999 0.0049999999999999 # Li337
+ 0.3420000000000001 0.1669999999999999 0.0029999999999999 # Li338
+ 0.7500000000000000 0.0870000000000000 0.9130000000000000 # Li339
+ 0.2500000000000002 0.0830000000000000 0.9170000000000000 # Li340
+ 0.1610000000000001 0.6669999999999998 0.5049999999999999 # Li341
+ 0.3420000000000001 0.6669999999999998 0.5029999999999999 # Li342
+ 0.7500000000000000 0.5869999999999999 0.4130000000000000 # Li343
+ 0.2500000000000002 0.5829999999999999 0.4170000000000001 # Li344
+ 0.6609999999999999 0.1670000000000002 0.5049999999999999 # Li345
+ 0.8420000000000000 0.1670000000000002 0.5029999999999999 # Li346
+ 0.2500000000000002 0.0870000000000000 0.4130000000000000 # Li347
+ 0.7500000000000000 0.0830000000000000 0.4170000000000001 # Li348
+ 0.6609999999999999 0.6669999999999998 0.0049999999999999 # Li349
+ 0.8420000000000000 0.6669999999999998 0.0029999999999999 # Li350
+ 0.2500000000000002 0.5870000000000001 0.9130000000000000 # Li351
+ 0.7500000000000000 0.5830000000000002 0.9170000000000000 # Li352
diff --git a/test/data/cubic/POSCAR-197 b/test/data/cubic/POSCAR-197
new file mode 100644
index 0000000..f99c19f
--- /dev/null
+++ b/test/data/cubic/POSCAR-197
@@ -0,0 +1,73 @@
+$cell vectors
+1.0
+ 10.1453952261655171 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1453952261655171 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1453952261655171
+ 24 2 40
+Direct
+ 0.1758000000000000 0.3183000000000002 0.0160000000000001 # Bi1
+ 0.6758000000000003 0.8182999999999999 0.5160000000000000 # Bi2
+ 0.0160000000000001 0.1758000000000000 0.3183000000000002 # Bi3
+ 0.5160000000000000 0.6758000000000003 0.8182999999999999 # Bi4
+ 0.3183000000000002 0.0160000000000001 0.1758000000000000 # Bi5
+ 0.8182999999999999 0.5160000000000000 0.6757999999999997 # Bi6
+ 0.6817000000000003 0.9839999999999997 0.1758000000000000 # Bi7
+ 0.1817000000000001 0.4840000000000002 0.6757999999999997 # Bi8
+ 0.0160000000000001 0.8241999999999999 0.6816999999999998 # Bi9
+ 0.5160000000000000 0.3241999999999997 0.1817000000000001 # Bi10
+ 0.6817000000000003 0.0160000000000001 0.8241999999999999 # Bi11
+ 0.1817000000000001 0.5160000000000000 0.3242000000000002 # Bi12
+ 0.9839999999999997 0.8241999999999999 0.3183000000000002 # Bi13
+ 0.4840000000000002 0.3242000000000002 0.8182999999999999 # Bi14
+ 0.9839999999999997 0.1758000000000000 0.6816999999999998 # Bi15
+ 0.4840000000000002 0.6757999999999997 0.1817000000000001 # Bi16
+ 0.3183000000000002 0.9839999999999997 0.8241999999999999 # Bi17
+ 0.8182999999999999 0.4840000000000002 0.3242000000000002 # Bi18
+ 0.8241999999999999 0.6816999999999998 0.0160000000000001 # Bi19
+ 0.3242000000000002 0.1817000000000001 0.5160000000000000 # Bi20
+ 0.1758000000000000 0.6817000000000003 0.9839999999999997 # Bi21
+ 0.6757999999999997 0.1817000000000001 0.4840000000000002 # Bi22
+ 0.8241999999999999 0.3183000000000002 0.9839999999999997 # Bi23
+ 0.3242000000000002 0.8182999999999999 0.4840000000000002 # Bi24
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ge1
+ 0.5000000000000003 0.5000000000000003 0.5000000000000003 # Ge2
+ 0.1349000000000000 0.2513999999999999 0.4866000000000000 # O1
+ 0.1953000000000001 0.1953000000000001 0.1953000000000001 # O2
+ -0.1002000000000002 -0.1002000000000002 -0.1002000000000002 # O3
+ 0.6349000000000002 0.7514000000000001 0.9865999999999997 # O4
+ 0.6952999999999998 0.6952999999999998 0.6952999999999998 # O5
+ 0.3998000000000001 0.3998000000000001 0.3998000000000001 # O6
+ 0.4866000000000000 0.1349000000000000 0.2513999999999999 # O7
+ 0.9865999999999997 0.6349000000000002 0.7514000000000001 # O8
+ 0.2513999999999999 0.4866000000000000 0.1349000000000000 # O9
+ 0.7514000000000001 0.9865999999999997 0.6348999999999998 # O10
+ 0.7486000000000000 0.5134000000000001 0.1349000000000000 # O11
+ 0.8046999999999997 0.8046999999999997 0.1953000000000001 # O12
+ 0.1002000000000002 0.1002000000000002 -0.1002000000000002 # O13
+ 0.2485999999999999 0.0134000000000003 0.6348999999999998 # O14
+ 0.3047000000000001 0.3047000000000001 0.6952999999999998 # O15
+ 0.6002000000000000 0.6002000000000000 0.3998000000000001 # O16
+ 0.4866000000000000 0.8651000000000000 0.7486000000000000 # O17
+ 0.1953000000000001 0.8047000000000005 0.8046999999999997 # O18
+ -0.1002000000000002 0.1002000000000002 0.1002000000000002 # O19
+ 0.9865999999999997 0.3651000000000002 0.2485999999999999 # O20
+ 0.6952999999999998 0.3047000000000001 0.3047000000000001 # O21
+ 0.3998000000000001 0.6002000000000000 0.6002000000000000 # O22
+ 0.7486000000000000 0.4866000000000000 0.8651000000000000 # O23
+ 0.8046999999999997 0.1953000000000001 0.8046999999999997 # O24
+ 0.1002000000000002 -0.1002000000000002 0.1002000000000002 # O25
+ 0.2485999999999999 0.9865999999999997 0.3650999999999997 # O26
+ 0.3047000000000001 0.6952999999999998 0.3047000000000001 # O27
+ 0.6002000000000000 0.3998000000000001 0.6002000000000000 # O28
+ 0.5134000000000001 0.8651000000000000 0.2513999999999999 # O29
+ 0.0134000000000003 0.3651000000000002 0.7514000000000001 # O30
+ 0.5134000000000001 0.1349000000000000 0.7486000000000000 # O31
+ 0.0133999999999998 0.6348999999999998 0.2485999999999999 # O32
+ 0.2513999999999999 0.5134000000000001 0.8651000000000000 # O33
+ 0.7514000000000001 0.0134000000000003 0.3650999999999997 # O34
+ 0.8651000000000000 0.7486000000000000 0.4866000000000000 # O35
+ 0.3651000000000002 0.2485999999999999 0.9865999999999997 # O36
+ 0.1349000000000000 0.7486000000000000 0.5134000000000001 # O37
+ 0.6348999999999998 0.2485999999999999 0.0133999999999998 # O38
+ 0.8651000000000000 0.2513999999999999 0.5134000000000001 # O39
+ 0.3651000000000002 0.7514000000000001 0.0133999999999998 # O40
diff --git a/test/data/cubic/POSCAR-197-2 b/test/data/cubic/POSCAR-197-2
new file mode 100644
index 0000000..23c9b12
--- /dev/null
+++ b/test/data/cubic/POSCAR-197-2
@@ -0,0 +1,73 @@
+$cell vectors
+1.0
+ 10.2499951769468431 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.2499951769468431 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.2499951769468431
+ 26 40
+Direct
+ 0.8580000000000002 0.6869999999999999 -0.0280000000000000 # Bi1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Bi2
+ 0.3580000000000002 0.1870000000000000 0.4720000000000001 # Bi3
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Bi4
+ 0.9720000000000002 0.8580000000000002 -0.3130000000000001 # Bi5
+ 0.4720000000000001 0.3580000000000002 0.1870000000000000 # Bi6
+ 0.6870000000000005 0.9720000000000002 -0.1420000000000004 # Bi7
+ 0.1870000000000000 0.4720000000000001 0.3580000000000002 # Bi8
+ 1.3130000000000002 1.0280000000000007 -0.1419999999999999 # Bi9
+ 0.8130000000000002 0.5279999999999999 0.3580000000000002 # Bi10
+ 0.9720000000000002 1.1420000000000006 0.3130000000000001 # Bi11
+ 0.4720000000000001 0.6420000000000005 0.8130000000000002 # Bi12
+ 1.3130000000000002 0.9720000000000002 0.1419999999999999 # Bi13
+ 0.8130000000000002 0.4720000000000001 0.6420000000000000 # Bi14
+ 1.0280000000000007 1.1420000000000006 -0.3130000000000001 # Bi15
+ 0.5279999999999999 0.6420000000000000 0.1870000000000000 # Bi16
+ 1.0280000000000007 0.8580000000000002 0.3130000000000001 # Bi17
+ 0.5279999999999999 0.3580000000000002 0.8130000000000002 # Bi18
+ 0.6870000000000005 1.0280000000000007 0.1419999999999999 # Bi19
+ 0.1870000000000000 0.5279999999999999 0.6420000000000000 # Bi20
+ 1.1420000000000006 1.3130000000000002 -0.0280000000000000 # Bi21
+ 0.6420000000000005 0.8130000000000002 0.4720000000000001 # Bi22
+ 0.8580000000000002 1.3130000000000002 0.0280000000000000 # Bi23
+ 0.3580000000000002 0.8130000000000002 0.5279999999999999 # Bi24
+ 1.1420000000000006 0.6869999999999999 0.0280000000000000 # Bi25
+ 0.6420000000000000 0.1870000000000000 0.5279999999999999 # Bi26
+ 0.9210000000000002 0.7380000000000000 -0.4860000000000003 # O1
+ 0.7160000000000003 0.7160000000000003 0.7160000000000003 # O2
+ 1.1480000000000001 1.1480000000000001 0.1480000000000002 # O3
+ 0.4210000000000002 0.2380000000000004 0.0140000000000002 # O4
+ 1.2160000000000004 1.2160000000000004 0.2160000000000002 # O5
+ 0.6480000000000002 0.6480000000000002 0.6480000000000002 # O6
+ 0.5140000000000003 0.9210000000000002 -0.2620000000000002 # O7
+ 0.0140000000000002 0.4210000000000002 0.2380000000000004 # O8
+ 0.7380000000000003 0.5140000000000003 -0.0789999999999999 # O9
+ 0.2380000000000004 0.0140000000000002 0.4210000000000002 # O10
+ 1.2620000000000009 1.4860000000000004 -0.0789999999999999 # O11
+ 0.2840000000000003 0.2840000000000003 0.7160000000000003 # O12
+ 0.8520000000000005 0.8520000000000005 0.1480000000000002 # O13
+ 0.7620000000000002 0.9860000000000004 0.4210000000000002 # O14
+ 0.7840000000000004 0.7840000000000004 0.2160000000000002 # O15
+ 0.3520000000000003 0.3520000000000003 0.6480000000000002 # O16
+ 0.5140000000000003 1.0790000000000004 0.2620000000000002 # O17
+ 0.7160000000000003 0.2840000000000003 0.2839999999999998 # O18
+ 1.1480000000000001 0.8520000000000005 -0.1480000000000002 # O19
+ 0.0140000000000002 0.5790000000000004 0.7620000000000002 # O20
+ 1.2160000000000004 0.7840000000000004 -0.2160000000000002 # O21
+ 0.6480000000000002 0.3520000000000003 0.3519999999999999 # O22
+ 1.2620000000000002 0.5140000000000003 0.0789999999999999 # O23
+ 0.2840000000000003 0.7160000000000003 0.2839999999999998 # O24
+ 0.8520000000000005 1.1480000000000001 -0.1480000000000002 # O25
+ 0.7620000000000002 0.0140000000000002 0.5790000000000000 # O26
+ 0.7840000000000004 1.2160000000000004 -0.2160000000000002 # O27
+ 0.3520000000000003 0.6480000000000002 0.3519999999999999 # O28
+ 1.4860000000000004 1.0790000000000004 -0.2620000000000002 # O29
+ 0.9860000000000004 0.5790000000000000 0.2380000000000004 # O30
+ 1.4860000000000004 0.9210000000000002 0.2620000000000002 # O31
+ 0.9860000000000004 0.4210000000000002 0.7620000000000002 # O32
+ 0.7380000000000003 1.4860000000000004 0.0789999999999999 # O33
+ 0.2380000000000004 0.9860000000000004 0.5790000000000000 # O34
+ 1.0790000000000004 1.2620000000000002 -0.4860000000000003 # O35
+ 0.5790000000000004 0.7620000000000002 0.0140000000000002 # O36
+ 0.9210000000000002 1.2620000000000002 0.4860000000000003 # O37
+ 0.4210000000000002 0.7620000000000002 0.9860000000000004 # O38
+ 1.0790000000000004 0.7380000000000003 0.4860000000000003 # O39
+ 0.5790000000000004 0.2380000000000004 0.9860000000000004 # O40
diff --git a/test/data/cubic/POSCAR-198 b/test/data/cubic/POSCAR-198
new file mode 100644
index 0000000..e94146a
--- /dev/null
+++ b/test/data/cubic/POSCAR-198
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 7.8399963109525155 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.8399963109525155 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.8399963109525155
+ 8 4 12
+Direct
+ 0.3175999999999998 0.3175999999999998 0.3175999999999998 # Sn1
+ 0.6490000000000004 0.6490000000000004 0.6490000000000004 # Sn2
+ 0.1824000000000001 0.6824000000000001 0.8175999999999998 # Sn3
+ 0.8509999999999994 0.3509999999999996 0.1490000000000003 # Sn4
+ 0.8175999999999998 0.1824000000000001 0.6824000000000001 # Sn5
+ 0.1490000000000003 0.8509999999999994 0.3509999999999996 # Sn6
+ 0.6824000000000001 0.8175999999999998 0.1824000000000001 # Sn7
+ 0.3509999999999996 0.1490000000000003 0.8509999999999994 # Sn8
+ 0.9889999999999998 0.9889999999999998 0.9889999999999998 # Cl1
+ 0.5110000000000001 0.0110000000000002 0.4889999999999997 # Cl2
+ 0.4889999999999997 0.5110000000000001 0.0110000000000002 # Cl3
+ 0.0110000000000002 0.4889999999999997 0.5110000000000001 # Cl4
+ 0.3749999999999996 0.1349999999999998 0.1189999999999998 # F1
+ 0.1189999999999998 0.3749999999999996 0.1349999999999998 # F2
+ 0.1349999999999998 0.1189999999999998 0.3749999999999996 # F3
+ 0.3650000000000002 0.8810000000000001 0.8749999999999996 # F4
+ 0.6189999999999999 0.1250000000000003 0.8650000000000000 # F5
+ 0.8650000000000000 0.6189999999999999 0.1249999999999997 # F6
+ 0.3810000000000001 0.6250000000000003 0.6349999999999998 # F7
+ 0.8810000000000001 0.8749999999999996 0.3650000000000002 # F8
+ 0.6349999999999998 0.3810000000000001 0.6250000000000003 # F9
+ 0.1250000000000003 0.8650000000000000 0.6189999999999999 # F10
+ 0.8749999999999996 0.3650000000000002 0.8810000000000001 # F11
+ 0.6250000000000003 0.6349999999999998 0.3810000000000001 # F12
diff --git a/test/data/cubic/POSCAR-198-2 b/test/data/cubic/POSCAR-198-2
new file mode 100644
index 0000000..6beb303
--- /dev/null
+++ b/test/data/cubic/POSCAR-198-2
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 12.7529939991807950 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.7529939991807950 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.7529939991807950
+ 32 32
+Direct
+ 0.1960000000000002 0.4360000000000001 0.9949999999999998 # Sr1
+ 0.4769999999999998 0.2939999999999999 0.0629999999999999 # Sr2
+ 0.1859999999999998 0.1859999999999998 0.1859999999999998 # Sr3
+ 0.8189999999999998 0.8189999999999998 0.8189999999999998 # Sr4
+ 0.9949999999999998 0.1959999999999998 0.4360000000000001 # Sr5
+ 0.0629999999999999 0.4769999999999998 0.2939999999999999 # Sr6
+ 0.4360000000000001 0.9949999999999998 0.1959999999999998 # Sr7
+ 0.2939999999999999 0.0629999999999999 0.4769999999999998 # Sr8
+ 0.0640000000000000 0.0050000000000002 0.6960000000000001 # Sr9
+ 0.2060000000000002 0.9369999999999999 0.9770000000000001 # Sr10
+ 0.3139999999999999 0.8140000000000001 0.6860000000000001 # Sr11
+ 0.6810000000000002 0.1810000000000000 0.3189999999999997 # Sr12
+ 0.4950000000000000 0.3039999999999999 0.5640000000000003 # Sr13
+ 0.5630000000000002 0.0229999999999999 0.7060000000000000 # Sr14
+ 0.6860000000000001 0.3139999999999999 0.8140000000000001 # Sr15
+ 0.3190000000000001 0.6810000000000002 0.1810000000000000 # Sr16
+ 0.5640000000000003 0.4950000000000000 0.3039999999999999 # Sr17
+ 0.7060000000000000 0.5629999999999997 0.0229999999999999 # Sr18
+ 0.8140000000000001 0.6860000000000001 0.3139999999999999 # Sr19
+ 0.1810000000000000 0.3190000000000001 0.6810000000000002 # Sr20
+ 0.5049999999999999 0.8040000000000000 0.9359999999999999 # Sr21
+ 0.4369999999999998 0.5230000000000001 0.7940000000000000 # Sr22
+ 0.0050000000000002 0.6960000000000001 0.0640000000000000 # Sr23
+ 0.9369999999999999 0.9770000000000001 0.2059999999999998 # Sr24
+ 0.9359999999999999 0.5049999999999999 0.8040000000000000 # Sr25
+ 0.7940000000000000 0.4369999999999998 0.5230000000000001 # Sr26
+ 0.3039999999999999 0.5640000000000003 0.4950000000000000 # Sr27
+ 0.0229999999999999 0.7060000000000000 0.5629999999999997 # Sr28
+ 0.6960000000000001 0.0640000000000000 0.0050000000000002 # Sr29
+ 0.9770000000000001 0.2060000000000002 0.9369999999999999 # Sr30
+ 0.8040000000000000 0.9359999999999999 0.5049999999999999 # Sr31
+ 0.5230000000000001 0.7940000000000000 0.4369999999999998 # Sr32
+ 0.2410000000000000 0.8110000000000003 0.4260000000000002 # Al1
+ 0.2520000000000001 0.3210000000000000 0.4160000000000001 # Al2
+ 0.5760000000000001 0.5760000000000001 0.5760000000000001 # Al3
+ 0.9619999999999997 0.9619999999999997 0.9619999999999997 # Al4
+ 0.4260000000000002 0.2410000000000000 0.8110000000000003 # Al5
+ 0.4160000000000001 0.2520000000000001 0.3210000000000000 # Al6
+ 0.8110000000000003 0.4260000000000002 0.2410000000000000 # Al7
+ 0.3210000000000000 0.4160000000000001 0.2520000000000001 # Al8
+ 0.6889999999999998 0.5740000000000002 0.7409999999999999 # Al9
+ 0.1790000000000002 0.5840000000000002 0.7520000000000000 # Al10
+ 0.9239999999999999 0.4239999999999999 0.0759999999999999 # Al11
+ 0.5379999999999999 0.0380000000000002 0.4620000000000000 # Al12
+ 0.9259999999999994 0.2590000000000002 0.1889999999999998 # Al13
+ 0.9159999999999998 0.2480000000000000 0.6789999999999998 # Al14
+ 0.0760000000000003 0.9239999999999999 0.4239999999999999 # Al15
+ 0.4620000000000000 0.5379999999999999 0.0380000000000002 # Al16
+ 0.1889999999999998 0.9259999999999994 0.2590000000000002 # Al17
+ 0.6789999999999998 0.9159999999999998 0.2480000000000000 # Al18
+ 0.4240000000000003 0.0760000000000003 0.9239999999999999 # Al19
+ 0.0380000000000002 0.4620000000000000 0.5379999999999999 # Al20
+ 0.0740000000000000 0.7589999999999999 0.3109999999999999 # Al21
+ 0.0840000000000000 0.7480000000000002 0.8209999999999997 # Al22
+ 0.5740000000000002 0.7410000000000001 0.6889999999999998 # Al23
+ 0.5840000000000002 0.7520000000000000 0.1789999999999998 # Al24
+ 0.3109999999999999 0.0740000000000000 0.7589999999999999 # Al25
+ 0.8209999999999997 0.0840000000000000 0.7479999999999998 # Al26
+ 0.2590000000000002 0.1890000000000002 0.9259999999999994 # Al27
+ 0.2480000000000000 0.6789999999999998 0.9159999999999998 # Al28
+ 0.7409999999999999 0.6889999999999998 0.5740000000000002 # Al29
+ 0.7520000000000000 0.1790000000000002 0.5840000000000002 # Al30
+ 0.7589999999999999 0.3109999999999999 0.0740000000000000 # Al31
+ 0.7479999999999998 0.8209999999999997 0.0840000000000000 # Al32
diff --git a/test/data/cubic/POSCAR-199 b/test/data/cubic/POSCAR-199
new file mode 100644
index 0000000..7a39fb1
--- /dev/null
+++ b/test/data/cubic/POSCAR-199
@@ -0,0 +1,87 @@
+$cell vectors
+1.0
+ 10.9299948569784409 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.9299948569784409 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.9299948569784409
+ 32 48
+Direct
+ 0.2519999999999999 0.2519999999999999 0.2519999999999999 # Sm1
+ 0.9469999999999997 0.0000000000000000 0.2500000000000001 # Sm2
+ 0.4750000000000003 0.0000000000000000 0.2500000000000001 # Sm3
+ 0.7520000000000002 0.7520000000000002 0.7520000000000002 # Sm4
+ 0.4470000000000000 0.5000000000000002 0.7499999999999999 # Sm5
+ 0.9750000000000000 0.5000000000000002 0.7499999999999999 # Sm6
+ 0.2500000000000001 0.9470000000000003 0.0000000000000000 # Sm7
+ 0.2500000000000001 0.4750000000000003 0.0000000000000000 # Sm8
+ 0.7499999999999999 0.4470000000000000 0.5000000000000002 # Sm9
+ 0.7499999999999999 0.9750000000000000 0.5000000000000002 # Sm10
+ 0.0000000000000000 0.2500000000000001 0.9469999999999997 # Sm11
+ 0.0000000000000000 0.2500000000000001 0.4750000000000003 # Sm12
+ 0.5000000000000002 0.7499999999999999 0.4470000000000000 # Sm13
+ 0.5000000000000002 0.7500000000000004 0.9750000000000000 # Sm14
+ 0.7480000000000001 0.2479999999999999 0.2519999999999999 # Sm15
+ 0.2479999999999999 0.7480000000000001 0.7520000000000002 # Sm16
+ 0.2519999999999999 0.7480000000000001 0.2479999999999999 # Sm17
+ 0.2500000000000001 0.0530000000000003 0.5000000000000002 # Sm18
+ 0.2500000000000001 0.5250000000000002 0.5000000000000002 # Sm19
+ 0.7520000000000002 0.2479999999999999 0.7480000000000001 # Sm20
+ 0.7499999999999999 0.5530000000000000 0.0000000000000000 # Sm21
+ 0.7499999999999999 0.0250000000000000 0.0000000000000000 # Sm22
+ 0.2479999999999999 0.2519999999999999 0.7480000000000001 # Sm23
+ 0.5000000000000002 0.2500000000000001 0.0529999999999998 # Sm24
+ 0.5000000000000002 0.2500000000000001 0.5250000000000002 # Sm25
+ 0.7480000000000001 0.7520000000000002 0.2479999999999999 # Sm26
+ 0.0000000000000000 0.7499999999999999 0.5530000000000000 # Sm27
+ 0.0000000000000000 0.7499999999999999 0.0250000000000000 # Sm28
+ 0.0530000000000003 0.5000000000000002 0.2500000000000001 # Sm29
+ 0.5250000000000002 0.5000000000000002 0.2500000000000001 # Sm30
+ 0.5530000000000006 0.0000000000000000 0.7499999999999999 # Sm31
+ 0.0250000000000000 0.0000000000000000 0.7499999999999999 # Sm32
+ 0.4000000000000000 0.1450000000000002 0.4000000000000000 # O1
+ 0.6090000000000001 0.8410000000000003 0.6550000000000001 # O2
+ 0.9000000000000002 0.6450000000000005 0.9000000000000002 # O3
+ 0.1089999999999999 0.3409999999999999 0.1549999999999999 # O4
+ 0.4000000000000000 0.4000000000000000 0.1450000000000002 # O5
+ 0.6550000000000001 0.6090000000000001 0.8410000000000003 # O6
+ 0.9000000000000002 0.9000000000000002 0.6449999999999999 # O7
+ 0.1549999999999999 0.1089999999999999 0.3409999999999999 # O8
+ 0.1450000000000002 0.4000000000000000 0.4000000000000000 # O9
+ 0.8410000000000003 0.6550000000000001 0.6090000000000001 # O10
+ 0.6450000000000005 0.9000000000000002 0.9000000000000002 # O11
+ 0.3409999999999999 0.1549999999999999 0.1089999999999999 # O12
+ 0.8549999999999999 0.0999999999999999 0.4000000000000000 # O13
+ 0.1590000000000003 0.8450000000000002 0.6090000000000001 # O14
+ 0.3550000000000000 0.6000000000000002 0.9000000000000002 # O15
+ 0.6590000000000001 0.3449999999999999 0.1089999999999999 # O16
+ 0.4000000000000000 0.6000000000000002 0.3550000000000000 # O17
+ 0.6550000000000001 0.3910000000000003 0.6590000000000001 # O18
+ 0.9000000000000002 0.0999999999999999 0.8549999999999999 # O19
+ 0.1549999999999999 0.8910000000000000 0.1589999999999999 # O20
+ 0.3550000000000000 0.4000000000000000 0.6000000000000002 # O21
+ 0.6590000000000001 0.6550000000000001 0.3909999999999998 # O22
+ 0.8549999999999999 0.9000000000000002 0.0999999999999999 # O23
+ 0.1590000000000003 0.1550000000000004 0.8910000000000000 # O24
+ 0.6000000000000002 0.0999999999999999 0.1450000000000002 # O25
+ 0.3449999999999999 0.8910000000000000 0.8410000000000003 # O26
+ 0.0999999999999999 0.6000000000000002 0.6449999999999999 # O27
+ 0.8450000000000002 0.3909999999999998 0.3409999999999999 # O28
+ 0.0999999999999999 0.4000000000000000 0.8549999999999999 # O29
+ 0.8450000000000002 0.6090000000000001 0.1589999999999999 # O30
+ 0.6000000000000002 0.9000000000000002 0.3550000000000000 # O31
+ 0.3449999999999999 0.1089999999999999 0.6590000000000001 # O32
+ 0.1450000000000002 0.6000000000000002 0.0999999999999999 # O33
+ 0.8410000000000003 0.3449999999999999 0.8910000000000000 # O34
+ 0.6449999999999999 0.0999999999999999 0.6000000000000002 # O35
+ 0.3409999999999999 0.8450000000000002 0.3909999999999998 # O36
+ 0.6000000000000002 0.3550000000000000 0.4000000000000000 # O37
+ 0.3909999999999998 0.6590000000000001 0.6550000000000001 # O38
+ 0.1000000000000004 0.8550000000000005 0.9000000000000002 # O39
+ 0.8910000000000000 0.1589999999999999 0.1549999999999999 # O40
+ 0.4000000000000000 0.8549999999999999 0.0999999999999999 # O41
+ 0.6090000000000001 0.1590000000000003 0.8450000000000002 # O42
+ 0.9000000000000002 0.3550000000000000 0.6000000000000002 # O43
+ 0.1089999999999999 0.6590000000000001 0.3449999999999999 # O44
+ 0.0999999999999999 0.1450000000000002 0.6000000000000002 # O45
+ 0.8910000000000000 0.8410000000000003 0.3449999999999999 # O46
+ 0.6000000000000002 0.6449999999999999 0.0999999999999999 # O47
+ 0.3910000000000003 0.3409999999999999 0.8450000000000002 # O48
diff --git a/test/data/cubic/POSCAR-199-2 b/test/data/cubic/POSCAR-199-2
new file mode 100644
index 0000000..f91e625
--- /dev/null
+++ b/test/data/cubic/POSCAR-199-2
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 8.4189960385088316 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4189960385088316 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4189960385088316
+ 8 8 12
+Direct
+ 0.5232000000000002 0.5232000000000002 0.5232000000000002 # K1
+ 0.0232000000000002 0.0232000000000002 0.0232000000000002 # K2
+ 0.4767999999999998 0.9767999999999998 0.5232000000000002 # K3
+ 0.9767999999999998 0.4767999999999998 0.0232000000000002 # K4
+ 0.5232000000000002 0.4767999999999998 0.9767999999999998 # K5
+ 0.0232000000000002 0.9767999999999998 0.4767999999999998 # K6
+ 0.9767999999999998 0.5232000000000002 0.4767999999999998 # K7
+ 0.4767999999999998 0.0232000000000002 0.9767999999999998 # K8
+ 0.2561999999999997 0.2561999999999997 0.2561999999999997 # Pb1
+ 0.7561999999999998 0.7561999999999998 0.7561999999999998 # Pb2
+ 0.7437999999999997 0.2437999999999997 0.2561999999999997 # Pb3
+ 0.2438000000000003 0.7437999999999997 0.7561999999999998 # Pb4
+ 0.2561999999999997 0.7437999999999997 0.2437999999999997 # Pb5
+ 0.7561999999999998 0.2438000000000003 0.7437999999999997 # Pb6
+ 0.2437999999999997 0.2562000000000004 0.7437999999999997 # Pb7
+ 0.7437999999999997 0.7561999999999998 0.2437999999999997 # Pb8
+ 0.2887000000000001 0.0000000000000000 0.2500000000000000 # O1
+ 0.7887000000000002 0.5000000000000000 0.7500000000000000 # O2
+ 0.2500000000000000 0.2887000000000001 0.0000000000000000 # O3
+ 0.7500000000000000 0.7887000000000002 0.5000000000000000 # O4
+ 0.0000000000000000 0.2500000000000000 0.2887000000000001 # O5
+ 0.5000000000000000 0.7500000000000000 0.7887000000000002 # O6
+ 0.2500000000000000 0.7113000000000000 0.5000000000000000 # O7
+ 0.7500000000000000 0.2112999999999999 0.0000000000000000 # O8
+ 0.5000000000000000 0.2500000000000000 0.7113000000000000 # O9
+ 0.0000000000000000 0.7500000000000000 0.2112999999999999 # O10
+ 0.7113000000000000 0.5000000000000000 0.2500000000000000 # O11
+ 0.2112999999999999 0.0000000000000000 0.7500000000000000 # O12
diff --git a/test/data/cubic/POSCAR-200 b/test/data/cubic/POSCAR-200
new file mode 100644
index 0000000..424f3c7
--- /dev/null
+++ b/test/data/cubic/POSCAR-200
@@ -0,0 +1,45 @@
+$cell vectors
+1.0
+ 7.4869964770537605 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.4869964770537605 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4869964770537605
+ 6 8 24
+Direct
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Cu1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Cu2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Cu3
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Cu4
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cu5
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Cu6
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Ta1
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Ta2
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000 # Ta3
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000 # Ta4
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000 # Ta5
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000 # Ta6
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000 # Ta7
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000 # Ta8
+ 0.0000000000000000 0.2978000000000000 0.1812000000000000 # O1
+ 0.5000000000000000 0.1849999999999997 0.3048999999999998 # O2
+ 0.0000000000000000 0.7022000000000002 0.8188000000000001 # O3
+ 0.5000000000000000 0.8150000000000004 0.6951000000000004 # O4
+ 0.1812000000000000 0.0000000000000000 0.2978000000000000 # O5
+ 0.8188000000000001 0.0000000000000000 0.7022000000000002 # O6
+ 0.6951000000000004 0.5000000000000000 0.8149999999999996 # O7
+ 0.2978000000000000 0.1812000000000000 0.0000000000000000 # O8
+ 0.1849999999999997 0.3048999999999998 0.5000000000000000 # O9
+ 0.7022000000000002 0.8188000000000001 0.0000000000000000 # O10
+ 0.8149999999999996 0.6951000000000004 0.5000000000000000 # O11
+ 0.1812000000000000 0.0000000000000000 0.7022000000000002 # O12
+ 0.3048999999999998 0.5000000000000000 0.8149999999999996 # O13
+ 0.8188000000000001 0.0000000000000000 0.2978000000000000 # O14
+ 0.6951000000000004 0.5000000000000000 0.1849999999999997 # O15
+ 0.2978000000000000 0.8188000000000001 0.0000000000000000 # O16
+ 0.3048999999999998 0.5000000000000000 0.1849999999999997 # O17
+ 0.1849999999999997 0.6951000000000004 0.5000000000000000 # O18
+ 0.7022000000000002 0.1812000000000000 0.0000000000000000 # O19
+ 0.8149999999999996 0.3048999999999998 0.5000000000000000 # O20
+ 0.0000000000000000 0.7022000000000002 0.1812000000000000 # O21
+ 0.5000000000000000 0.8149999999999996 0.3048999999999998 # O22
+ 0.0000000000000000 0.2978000000000000 0.8188000000000001 # O23
+ 0.5000000000000000 0.1850000000000004 0.6951000000000004 # O24
diff --git a/test/data/cubic/POSCAR-200-2 b/test/data/cubic/POSCAR-200-2
new file mode 100644
index 0000000..3812fb3
--- /dev/null
+++ b/test/data/cubic/POSCAR-200-2
@@ -0,0 +1,18 @@
+$cell vectors
+1.0
+ 5.4499974355473464 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4499974355473464 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.4499974355473464
+ 1 1 3 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Rb1
+ 0.5000000000000004 0.5000000000000004 0.5000000000000004 # Hg1
+ 0.0000000000000000 0.5000000000000004 0.5000000000000004 # N1
+ 0.5000000000000004 0.0000000000000000 0.5000000000000004 # N2
+ 0.5000000000000004 0.5000000000000004 0.0000000000000000 # N3
+ 0.0000000000000000 0.2399999999999999 0.5000000000000004 # O1
+ 0.0000000000000000 0.7600000000000000 0.5000000000000004 # O2
+ 0.5000000000000004 0.0000000000000000 0.2399999999999999 # O3
+ 0.5000000000000004 0.0000000000000000 0.7600000000000000 # O4
+ 0.2399999999999999 0.5000000000000004 0.0000000000000000 # O5
+ 0.7600000000000000 0.5000000000000004 0.0000000000000000 # O6
diff --git a/test/data/cubic/POSCAR-205 b/test/data/cubic/POSCAR-205
new file mode 100644
index 0000000..c95d5cd
--- /dev/null
+++ b/test/data/cubic/POSCAR-205
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.62399735367308 0.00000000000000 0.00000000000000
+ 0.00000000000000 5.62399735367308 0.00000000000000
+ 0.00000000000000 0.00000000000000 5.62399735367308
+ 4 8
+Direct
+ 0.00000000000000 0.00000000000000 0.00000000000000 # C1
+ 0.50000000000000 0.00000000000000 0.50000000000000 # C2
+ 0.50000000000000 0.50000000000000 0.00000000000000 # C3
+ 0.00000000000000 0.50000000000000 0.50000000000000 # C4
+ 0.11850000000000 0.11850000000000 0.11850000000000 # O1
+ -0.11850000000000 -0.11850000000000 -0.11850000000000 # O2
+ 0.38150000000000 -0.11850000000000 0.61850000000000 # O3
+ 0.61850000000000 0.11850000000000 0.38150000000000 # O4
+ 0.61850000000000 0.38150000000000 -0.11850000000000 # O5
+ 0.38150000000000 0.61850000000000 0.11850000000000 # O6
+ -0.11850000000000 0.61850000000000 0.38150000000000 # O7
+ 0.11850000000000 0.38150000000000 0.61850000000000 # O8
diff --git a/test/data/cubic/POSCAR-205-3 b/test/data/cubic/POSCAR-205-3
new file mode 100644
index 0000000..c95d5cd
--- /dev/null
+++ b/test/data/cubic/POSCAR-205-3
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.62399735367308 0.00000000000000 0.00000000000000
+ 0.00000000000000 5.62399735367308 0.00000000000000
+ 0.00000000000000 0.00000000000000 5.62399735367308
+ 4 8
+Direct
+ 0.00000000000000 0.00000000000000 0.00000000000000 # C1
+ 0.50000000000000 0.00000000000000 0.50000000000000 # C2
+ 0.50000000000000 0.50000000000000 0.00000000000000 # C3
+ 0.00000000000000 0.50000000000000 0.50000000000000 # C4
+ 0.11850000000000 0.11850000000000 0.11850000000000 # O1
+ -0.11850000000000 -0.11850000000000 -0.11850000000000 # O2
+ 0.38150000000000 -0.11850000000000 0.61850000000000 # O3
+ 0.61850000000000 0.11850000000000 0.38150000000000 # O4
+ 0.61850000000000 0.38150000000000 -0.11850000000000 # O5
+ 0.38150000000000 0.61850000000000 0.11850000000000 # O6
+ -0.11850000000000 0.61850000000000 0.38150000000000 # O7
+ 0.11850000000000 0.38150000000000 0.61850000000000 # O8
diff --git a/test/data/cubic/POSCAR-206 b/test/data/cubic/POSCAR-206
new file mode 100644
index 0000000..24895ed
--- /dev/null
+++ b/test/data/cubic/POSCAR-206
@@ -0,0 +1,87 @@
+$cell vectors
+1.0
+ 10.9799948334513537 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.9799948334513537 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.9799948334513537
+ 32 48
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Pu1
+ 0.2849999999999998 0.0000000000000000 0.2499999999999998 # Pu2
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Pu3
+ 0.7849999999999998 0.5000000000000000 0.7499999999999998 # Pu4
+ 0.7150000000000003 0.0000000000000000 0.7499999999999998 # Pu5
+ 0.2150000000000003 0.5000000000000000 0.2499999999999998 # Pu6
+ 0.2499999999999998 0.2849999999999998 0.0000000000000000 # Pu7
+ 0.7499999999999998 0.7849999999999998 0.5000000000000000 # Pu8
+ 0.7499999999999998 0.7150000000000003 0.0000000000000000 # Pu9
+ 0.2500000000000003 0.2150000000000003 0.5000000000000000 # Pu10
+ 0.0000000000000000 0.2500000000000003 0.2849999999999998 # Pu11
+ 0.5000000000000000 0.7500000000000004 0.7849999999999998 # Pu12
+ 0.0000000000000000 0.7499999999999998 0.7150000000000003 # Pu13
+ 0.5000000000000000 0.2500000000000003 0.2149999999999998 # Pu14
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Pu15
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Pu16
+ 0.2500000000000003 0.7150000000000003 0.5000000000000000 # Pu17
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Pu18
+ 0.7499999999999998 0.2149999999999998 0.0000000000000000 # Pu19
+ 0.7499999999999998 0.2849999999999998 0.5000000000000000 # Pu20
+ 0.2500000000000003 0.7849999999999998 0.0000000000000000 # Pu21
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Pu22
+ 0.5000000000000000 0.2500000000000003 0.7150000000000003 # Pu23
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Pu24
+ 0.0000000000000000 0.7499999999999998 0.2149999999999998 # Pu25
+ 0.5000000000000000 0.7499999999999998 0.2849999999999998 # Pu26
+ 0.0000000000000000 0.2500000000000003 0.7849999999999998 # Pu27
+ 0.7150000000000003 0.5000000000000000 0.2499999999999998 # Pu28
+ 0.2150000000000003 0.0000000000000000 0.7499999999999998 # Pu29
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Pu30
+ 0.2850000000000002 0.5000000000000000 0.7499999999999998 # Pu31
+ 0.7849999999999998 0.0000000000000000 0.2499999999999998 # Pu32
+ 0.1290000000000001 0.1470000000000001 0.9170000000000000 # O1
+ 0.6290000000000001 0.6470000000000002 0.4169999999999998 # O2
+ 0.8710000000000001 0.8530000000000000 0.0830000000000002 # O3
+ 0.3710000000000000 0.3529999999999999 0.5830000000000003 # O4
+ 0.9170000000000000 0.1290000000000001 0.1470000000000001 # O5
+ 0.4169999999999998 0.6290000000000001 0.6470000000000002 # O6
+ 0.0830000000000002 0.8710000000000001 0.8530000000000000 # O7
+ 0.5830000000000003 0.3710000000000000 0.3529999999999999 # O8
+ 0.1470000000000001 0.9170000000000000 0.1290000000000001 # O9
+ 0.6470000000000002 0.4170000000000003 0.6290000000000001 # O10
+ 0.8530000000000000 0.0830000000000002 0.8710000000000001 # O11
+ 0.3529999999999999 0.5830000000000003 0.3710000000000000 # O12
+ 0.8530000000000000 0.5830000000000003 0.1290000000000001 # O13
+ 0.3529999999999999 0.0830000000000002 0.6290000000000001 # O14
+ 0.1470000000000001 0.4170000000000003 0.8710000000000001 # O15
+ 0.6470000000000002 0.9170000000000000 0.3710000000000000 # O16
+ 0.9170000000000000 0.8710000000000001 0.3529999999999999 # O17
+ 0.4170000000000003 0.3710000000000000 0.8530000000000000 # O18
+ 0.0830000000000002 0.1290000000000001 0.6470000000000002 # O19
+ 0.5830000000000003 0.6290000000000001 0.1470000000000001 # O20
+ 0.3529999999999999 0.9170000000000005 0.8710000000000001 # O21
+ 0.8530000000000000 0.4170000000000003 0.3710000000000000 # O22
+ 0.6470000000000002 0.0830000000000002 0.1290000000000001 # O23
+ 0.1470000000000001 0.5830000000000003 0.6290000000000001 # O24
+ 0.0830000000000002 0.3710000000000000 0.1470000000000001 # O25
+ 0.5830000000000003 0.8710000000000001 0.6470000000000002 # O26
+ 0.9170000000000000 0.6290000000000001 0.8530000000000000 # O27
+ 0.4169999999999998 0.1290000000000001 0.3529999999999999 # O28
+ 0.5830000000000003 0.1290000000000001 0.8530000000000000 # O29
+ 0.0830000000000002 0.6290000000000001 0.3529999999999999 # O30
+ 0.4170000000000003 0.8710000000000001 0.1470000000000001 # O31
+ 0.9170000000000000 0.3710000000000000 0.6470000000000002 # O32
+ 0.1470000000000001 0.0830000000000002 0.3710000000000000 # O33
+ 0.6470000000000002 0.5830000000000003 0.8710000000000001 # O34
+ 0.8530000000000000 0.9170000000000000 0.6290000000000001 # O35
+ 0.3529999999999999 0.4169999999999998 0.1290000000000001 # O36
+ 0.8710000000000001 0.3529999999999999 0.9170000000000000 # O37
+ 0.3710000000000000 0.8530000000000000 0.4169999999999998 # O38
+ 0.1290000000000001 0.6470000000000002 0.0830000000000002 # O39
+ 0.6290000000000001 0.1470000000000001 0.5830000000000003 # O40
+ 0.1290000000000001 0.8530000000000000 0.5830000000000003 # O41
+ 0.6290000000000001 0.3529999999999999 0.0830000000000002 # O42
+ 0.8710000000000001 0.1470000000000001 0.4169999999999998 # O43
+ 0.3710000000000000 0.6470000000000002 0.9170000000000000 # O44
+ 0.3710000000000000 0.1470000000000001 0.0830000000000002 # O45
+ 0.8710000000000001 0.6470000000000002 0.5830000000000003 # O46
+ 0.6290000000000001 0.8530000000000000 0.9170000000000000 # O47
+ 0.1290000000000001 0.3529999999999999 0.4169999999999998 # O48
diff --git a/test/data/cubic/POSCAR-206-2 b/test/data/cubic/POSCAR-206-2
new file mode 100644
index 0000000..42ee7f6
--- /dev/null
+++ b/test/data/cubic/POSCAR-206-2
@@ -0,0 +1,87 @@
+$cell vectors
+1.0
+ 11.0299948099242631 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.0299948099242631 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.0299948099242631
+ 32 48
+Direct
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Am1
+ 0.9700000000000002 0.0000000000000000 0.2500000000000000 # Am2
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Am3
+ 0.4700000000000003 0.5000000000000000 0.7500000000000000 # Am4
+ 0.0300000000000002 0.0000000000000000 0.7500000000000000 # Am5
+ 0.5300000000000001 0.5000000000000000 0.2500000000000000 # Am6
+ 0.2500000000000000 0.9700000000000002 0.0000000000000000 # Am7
+ 0.7500000000000000 0.4700000000000003 0.5000000000000000 # Am8
+ 0.7500000000000000 0.0300000000000002 0.0000000000000000 # Am9
+ 0.2500000000000000 0.5300000000000001 0.5000000000000000 # Am10
+ 0.0000000000000000 0.2500000000000000 0.9700000000000002 # Am11
+ 0.5000000000000000 0.7500000000000000 0.4699999999999997 # Am12
+ 0.0000000000000000 0.7500000000000000 0.0300000000000002 # Am13
+ 0.5000000000000000 0.2500000000000000 0.5300000000000001 # Am14
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000 # Am15
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000 # Am16
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000 # Am17
+ 0.2500000000000000 0.0300000000000002 0.5000000000000000 # Am18
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000 # Am19
+ 0.7500000000000000 0.5300000000000001 0.0000000000000000 # Am20
+ 0.7500000000000000 0.9700000000000002 0.5000000000000000 # Am21
+ 0.2500000000000000 0.4699999999999997 0.0000000000000000 # Am22
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000 # Am23
+ 0.5000000000000000 0.2500000000000000 0.0300000000000002 # Am24
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000 # Am25
+ 0.0000000000000000 0.7500000000000000 0.5300000000000001 # Am26
+ 0.5000000000000004 0.7500000000000000 0.9700000000000002 # Am27
+ 0.0000000000000000 0.2500000000000000 0.4699999999999997 # Am28
+ 0.0300000000000002 0.5000000000000000 0.2500000000000000 # Am29
+ 0.5300000000000001 0.0000000000000000 0.7500000000000000 # Am30
+ 0.9700000000000002 0.5000000000000000 0.7500000000000000 # Am31
+ 0.4699999999999997 0.0000000000000000 0.2500000000000000 # Am32
+ 0.3850000000000003 0.1450000000000000 0.3800000000000001 # O1
+ 0.8850000000000003 0.6449999999999999 0.8800000000000000 # O2
+ 0.6150000000000002 0.8550000000000000 0.6199999999999999 # O3
+ 0.1150000000000002 0.3550000000000000 0.1199999999999999 # O4
+ 0.3800000000000001 0.3850000000000003 0.1450000000000000 # O5
+ 0.8800000000000000 0.8850000000000003 0.6449999999999999 # O6
+ 0.6200000000000003 0.6150000000000002 0.8550000000000000 # O7
+ 0.1199999999999999 0.1150000000000002 0.3550000000000000 # O8
+ 0.1450000000000000 0.3800000000000001 0.3850000000000003 # O9
+ 0.6450000000000005 0.8800000000000006 0.8850000000000003 # O10
+ 0.8550000000000000 0.6200000000000003 0.6150000000000002 # O11
+ 0.3550000000000000 0.1199999999999999 0.1149999999999998 # O12
+ 0.8550000000000000 0.1199999999999999 0.3850000000000003 # O13
+ 0.3550000000000000 0.6200000000000003 0.8850000000000003 # O14
+ 0.1450000000000000 0.8800000000000000 0.6150000000000002 # O15
+ 0.6449999999999999 0.3800000000000001 0.1149999999999998 # O16
+ 0.3800000000000001 0.6150000000000002 0.3550000000000000 # O17
+ 0.8800000000000000 0.1150000000000002 0.8550000000000000 # O18
+ 0.6199999999999999 0.3850000000000003 0.6449999999999999 # O19
+ 0.1199999999999999 0.8850000000000003 0.1450000000000000 # O20
+ 0.3550000000000000 0.3800000000000001 0.6150000000000002 # O21
+ 0.8550000000000000 0.8800000000000000 0.1149999999999998 # O22
+ 0.6449999999999999 0.6200000000000003 0.3850000000000003 # O23
+ 0.1450000000000000 0.1199999999999999 0.8850000000000003 # O24
+ 0.6199999999999999 0.1150000000000002 0.1450000000000000 # O25
+ 0.1199999999999999 0.6150000000000002 0.6449999999999999 # O26
+ 0.3800000000000001 0.8850000000000003 0.8550000000000000 # O27
+ 0.8800000000000000 0.3850000000000003 0.3550000000000000 # O28
+ 0.1199999999999999 0.3850000000000003 0.8550000000000000 # O29
+ 0.6200000000000003 0.8850000000000003 0.3550000000000000 # O30
+ 0.8800000000000000 0.6150000000000002 0.1450000000000000 # O31
+ 0.3800000000000001 0.1150000000000002 0.6449999999999999 # O32
+ 0.1450000000000000 0.6199999999999999 0.1149999999999998 # O33
+ 0.6449999999999999 0.1199999999999999 0.6150000000000002 # O34
+ 0.8550000000000000 0.3800000000000001 0.8850000000000003 # O35
+ 0.3550000000000000 0.8800000000000000 0.3850000000000003 # O36
+ 0.6150000000000002 0.3550000000000000 0.3800000000000001 # O37
+ 0.1150000000000002 0.8550000000000004 0.8800000000000000 # O38
+ 0.3850000000000003 0.6449999999999999 0.6199999999999999 # O39
+ 0.8850000000000003 0.1450000000000000 0.1199999999999999 # O40
+ 0.3850000000000003 0.8550000000000000 0.1199999999999999 # O41
+ 0.8850000000000003 0.3550000000000000 0.6199999999999999 # O42
+ 0.6150000000000002 0.1450000000000000 0.8800000000000000 # O43
+ 0.1150000000000002 0.6449999999999999 0.3800000000000001 # O44
+ 0.1150000000000002 0.1450000000000000 0.6199999999999999 # O45
+ 0.6150000000000002 0.6449999999999999 0.1199999999999999 # O46
+ 0.8850000000000003 0.8550000000000000 0.3800000000000001 # O47
+ 0.3850000000000003 0.3550000000000000 0.8800000000000000 # O48
diff --git a/test/data/cubic/POSCAR-207 b/test/data/cubic/POSCAR-207
new file mode 100644
index 0000000..0ef7140
--- /dev/null
+++ b/test/data/cubic/POSCAR-207
@@ -0,0 +1,40 @@
+$cell vectors
+1.0
+ 4.3999979296162053 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.3999979296162053 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.3999979296162053
+ 1 8 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Rb1
+ 0.4440000000000008 0.4440000000000008 0.4439999999999997 # N1
+ 0.5560000000000005 0.4440000000000008 0.4439999999999997 # N2
+ 0.5560000000000005 0.5560000000000005 0.4439999999999997 # N3
+ 0.4440000000000008 0.5560000000000005 0.4439999999999997 # N4
+ 0.4440000000000008 0.5560000000000005 0.5560000000000005 # N5
+ 0.4440000000000008 0.4440000000000008 0.5560000000000005 # N6
+ 0.5560000000000005 0.4440000000000008 0.5560000000000005 # N7
+ 0.5560000000000005 0.5560000000000005 0.5560000000000005 # N8
+ 0.5330000000000001 0.5750000000000006 0.2310000000000004 # O1
+ 0.4250000000000006 0.5330000000000001 0.2310000000000004 # O2
+ 0.4670000000000000 0.4250000000000006 0.2310000000000004 # O3
+ 0.5750000000000006 0.4670000000000000 0.2310000000000004 # O4
+ 0.5330000000000001 0.7690000000000010 0.5750000000000006 # O5
+ 0.5330000000000001 0.4250000000000006 0.7690000000000010 # O6
+ 0.5330000000000001 0.2310000000000004 0.4250000000000006 # O7
+ 0.2310000000000004 0.5750000000000006 0.4670000000000000 # O8
+ 0.4670000000000000 0.5750000000000006 0.7690000000000010 # O9
+ 0.7690000000000010 0.5750000000000006 0.5330000000000001 # O10
+ 0.2310000000000004 0.5330000000000001 0.5750000000000006 # O11
+ 0.5750000000000006 0.2310000000000004 0.5330000000000001 # O12
+ 0.4250000000000006 0.7690000000000010 0.5330000000000001 # O13
+ 0.2310000000000004 0.4670000000000000 0.4250000000000006 # O14
+ 0.4250000000000006 0.2310000000000004 0.4670000000000000 # O15
+ 0.7690000000000010 0.4670000000000000 0.5750000000000006 # O16
+ 0.7690000000000010 0.5330000000000001 0.4250000000000006 # O17
+ 0.5750000000000006 0.7690000000000010 0.4670000000000000 # O18
+ 0.5750000000000006 0.5330000000000001 0.7690000000000010 # O19
+ 0.4250000000000006 0.4670000000000000 0.7690000000000010 # O20
+ 0.4670000000000000 0.2310000000000004 0.5750000000000006 # O21
+ 0.4670000000000000 0.7690000000000010 0.4250000000000006 # O22
+ 0.2310000000000004 0.4250000000000006 0.5330000000000001 # O23
+ 0.7690000000000010 0.4250000000000006 0.4670000000000000 # O24
diff --git a/test/data/cubic/POSCAR-208 b/test/data/cubic/POSCAR-208
new file mode 100644
index 0000000..7281bc2
--- /dev/null
+++ b/test/data/cubic/POSCAR-208
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 6.3099970308814211 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.3099970308814211 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3099970308814211
+ 4 12
+Direct
+ 0.2500000000000001 0.2500000000000001 0.2500000000000001 # P1
+ 0.2500000000000001 0.7500000000000009 0.7500000000000000 # P2
+ 0.7500000000000000 0.7500000000000000 0.2500000000000001 # P3
+ 0.7500000000000000 0.2500000000000001 0.7500000000000000 # P4
+ 0.1839999999999999 0.5000000000000001 0.0000000000000000 # H1
+ 0.0000000000000000 0.6840000000000005 0.5000000000000001 # H2
+ 0.8160000000000002 0.5000000000000001 0.0000000000000000 # H3
+ 0.0000000000000000 0.3160000000000002 0.5000000000000001 # H4
+ 0.6840000000000005 0.5000000000000001 0.0000000000000000 # H5
+ 0.5000000000000001 0.0000000000000000 0.3160000000000002 # H6
+ 0.5000000000000001 0.0000000000000000 0.6840000000000005 # H7
+ 0.0000000000000000 0.1839999999999999 0.5000000000000001 # H8
+ 0.5000000000000001 0.0000000000000000 0.1839999999999999 # H9
+ 0.0000000000000000 0.8160000000000002 0.5000000000000001 # H10
+ 0.5000000000000001 0.0000000000000000 0.8160000000000002 # H11
+ 0.3160000000000002 0.5000000000000001 0.0000000000000000 # H12
diff --git a/test/data/cubic/POSCAR-208-2 b/test/data/cubic/POSCAR-208-2
new file mode 100644
index 0000000..ea37ff8
--- /dev/null
+++ b/test/data/cubic/POSCAR-208-2
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 9.5429955096198782 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.5429955096198782 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.5429955096198782
+ 10 22 32
+Direct
+ 0.2500000000000002 0.2500000000000002 0.2500000000000002 # U1
+ 0.2500000000000002 0.4999999999999998 0.0000000000000000 # U2
+ 0.2500000000000002 0.7500000000000001 0.7500000000000001 # U3
+ 0.0000000000000000 0.7500000000000001 0.4999999999999998 # U4
+ 0.7500000000000001 0.7500000000000001 0.2500000000000002 # U5
+ 0.7500000000000001 0.4999999999999998 0.0000000000000000 # U6
+ 0.7500000000000001 0.2500000000000002 0.7500000000000001 # U7
+ 0.0000000000000000 0.2500000000000002 0.4999999999999998 # U8
+ 0.4999999999999998 0.0000000000000000 0.2500000000000002 # U9
+ 0.4999999999999998 0.0000000000000000 0.7500000000000001 # U10
+ 0.7500000000000001 0.7500000000000001 0.7500000000000001 # Na1
+ 0.2500000000000002 0.0000000000000000 0.4999999999999998 # Na2
+ 0.2500000000000002 0.0000000000000000 0.0000000000000000 # Na3
+ 0.7500000000000001 0.2500000000000002 0.2500000000000002 # Na4
+ 0.4999999999999998 0.7500000000000001 0.0000000000000000 # Na5
+ 0.4999999999999998 0.7500000000000001 0.4999999999999998 # Na6
+ 0.2500000000000002 0.2500000000000002 0.7500000000000001 # Na7
+ 0.7500000000000001 0.0000000000000000 0.4999999999999998 # Na8
+ 0.7500000000000001 0.0000000000000000 0.0000000000000000 # Na9
+ 0.2500000000000002 0.7500000000000001 0.2500000000000002 # Na10
+ 0.4999999999999998 0.2500000000000002 0.0000000000000000 # Na11
+ 0.4999999999999998 0.2500000000000002 0.4999999999999998 # Na12
+ 0.7500000000000001 0.4999999999999998 0.4999999999999998 # Na13
+ 0.0000000000000000 0.4999999999999998 0.2500000000000002 # Na14
+ 0.4999999999999998 0.4999999999999998 0.2500000000000002 # Na15
+ 0.0000000000000000 0.4999999999999998 0.7500000000000001 # Na16
+ 0.4999999999999998 0.4999999999999998 0.7500000000000001 # Na17
+ 0.0000000000000000 0.2500000000000002 0.0000000000000000 # Na18
+ 0.0000000000000000 0.0000000000000000 0.2500000000000002 # Na19
+ 0.0000000000000000 0.7500000000000001 0.0000000000000000 # Na20
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # Na21
+ 0.2500000000000002 0.4999999999999998 0.4999999999999998 # Na22
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # O1
+ 0.0000000000000000 0.4999999999999998 0.4999999999999998 # O2
+ 0.7500000000000001 0.2500000000000002 0.0000000000000000 # O3
+ 0.4999999999999998 0.4999999999999998 0.4999999999999998 # O4
+ 0.0000000000000000 0.4999999999999998 0.0000000000000000 # O5
+ 0.2500000000000002 0.2500000000000002 0.4999999999999998 # O6
+ 0.2500000000000002 0.7500000000000001 0.0000000000000000 # O7
+ 0.7500000000000001 0.7500000000000001 0.4999999999999998 # O8
+ 0.4999999999999998 0.0000000000000000 0.0000000000000000 # O9
+ 0.2500000000000002 0.4999999999999998 0.7500000000000001 # O10
+ 0.7500000000000001 0.7500000000000001 0.0000000000000000 # O11
+ 0.2500000000000002 0.4999999999999998 0.2500000000000002 # O12
+ 0.0000000000000000 0.0000000000000000 0.4999999999999998 # O13
+ 0.4999999999999998 0.7500000000000001 0.7500000000000001 # O14
+ 0.2500000000000002 0.2500000000000002 0.0000000000000000 # O15
+ 0.4999999999999998 0.7500000000000001 0.2500000000000002 # O16
+ 0.4999999999999998 0.0000000000000000 0.4999999999999998 # O17
+ 0.0000000000000000 0.7500000000000001 0.2500000000000002 # O18
+ 0.4999999999999998 0.4999999999999998 0.0000000000000000 # O19
+ 0.2500000000000002 0.0000000000000000 0.7500000000000001 # O20
+ 0.7500000000000001 0.0000000000000000 0.7500000000000001 # O21
+ 0.0000000000000000 0.2500000000000002 0.7500000000000001 # O22
+ 0.7500000000000001 0.0000000000000000 0.2500000000000002 # O23
+ 0.0000000000000000 0.2500000000000002 0.2500000000000002 # O24
+ 0.0000000000000000 0.7500000000000001 0.7500000000000001 # O25
+ 0.2500000000000002 0.0000000000000000 0.2500000000000002 # O26
+ 0.7500000000000001 0.2500000000000002 0.4999999999999998 # O27
+ 0.2500000000000002 0.7500000000000001 0.4999999999999998 # O28
+ 0.7500000000000001 0.4999999999999998 0.7500000000000001 # O29
+ 0.7500000000000001 0.4999999999999998 0.2500000000000002 # O30
+ 0.4999999999999998 0.2500000000000002 0.2500000000000002 # O31
+ 0.4999999999999998 0.2500000000000002 0.7500000000000001 # O32
diff --git a/test/data/cubic/POSCAR-209 b/test/data/cubic/POSCAR-209
new file mode 100644
index 0000000..fa38cff
--- /dev/null
+++ b/test/data/cubic/POSCAR-209
@@ -0,0 +1,515 @@
+$cell vectors
+1.0
+ 7.4229965071684347 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.4229965071684347 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4229965071684347
+ 4 312 192
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # P1
+ 0.0000000000000000 0.4999999999999996 0.4999999999999996 # P2
+ 0.4999999999999996 0.0000000000000000 0.4999999999999996 # P3
+ 0.4999999999999996 0.4999999999999996 0.0000000000000000 # P4
+ 0.0000000000000000 0.0000000000000000 0.7889999999999996 # O1
+ 0.8169999999999996 0.0749000000000001 0.0684000000000000 # O2
+ 0.0276000000000000 0.8039999999999996 0.0685999999999997 # O3
+ 0.1575999999999996 0.1216000000000002 0.0683000000000001 # O4
+ 0.0000000000000000 0.4999999999999996 0.2889999999999999 # O5
+ 0.8169999999999996 0.5748999999999996 0.5684000000000003 # O6
+ 0.0276000000000000 0.3039999999999999 0.5686000000000000 # O7
+ 0.1576000000000004 0.6215999999999999 0.5682999999999998 # O8
+ 0.4999999999999996 0.0000000000000000 0.2889999999999999 # O9
+ 0.3170000000000001 0.0749000000000001 0.5684000000000003 # O10
+ 0.5275999999999996 0.8039999999999996 0.5686000000000000 # O11
+ 0.6575999999999999 0.1216000000000002 0.5682999999999998 # O12
+ 0.5000000000000003 0.4999999999999996 0.7889999999999996 # O13
+ 0.3170000000000001 0.5748999999999996 0.0684000000000000 # O14
+ 0.5275999999999996 0.3039999999999999 0.0685999999999997 # O15
+ 0.6575999999999999 0.6215999999999999 0.0683000000000001 # O16
+ 0.9250999999999998 0.8169999999999996 0.0684000000000000 # O17
+ 0.1959999999999996 0.0276000000000000 0.0685999999999997 # O18
+ 0.8783999999999997 0.1575999999999996 0.0683000000000001 # O19
+ 0.9250999999999998 0.3170000000000001 0.5684000000000003 # O20
+ 0.1960000000000003 0.5275999999999996 0.5686000000000000 # O21
+ 0.8783999999999997 0.6575999999999999 0.5682999999999998 # O22
+ 0.4251000000000002 0.8169999999999996 0.5684000000000003 # O23
+ 0.6959999999999998 0.0276000000000000 0.5686000000000000 # O24
+ 0.3784000000000000 0.1576000000000004 0.5682999999999998 # O25
+ 0.4250999999999995 0.3170000000000001 0.0684000000000000 # O26
+ 0.6959999999999998 0.5275999999999996 0.0685999999999997 # O27
+ 0.3784000000000000 0.6575999999999999 0.0683000000000001 # O28
+ 0.1830000000000002 0.9250999999999998 0.0684000000000000 # O29
+ 0.9723999999999998 0.1959999999999996 0.0685999999999997 # O30
+ 0.8423999999999995 0.8783999999999997 0.0683000000000001 # O31
+ 0.1830000000000002 0.4251000000000002 0.5684000000000003 # O32
+ 0.9723999999999998 0.6959999999999998 0.5686000000000000 # O33
+ 0.8423999999999995 0.3784000000000000 0.5682999999999998 # O34
+ 0.6829999999999998 0.9250999999999998 0.5684000000000003 # O35
+ 0.4724000000000002 0.1960000000000003 0.5686000000000000 # O36
+ 0.3424000000000000 0.8783999999999997 0.5682999999999998 # O37
+ 0.6829999999999998 0.4250999999999995 0.0684000000000000 # O38
+ 0.4724000000000002 0.6959999999999998 0.0685999999999997 # O39
+ 0.3424000000000000 0.3784000000000000 0.0683000000000001 # O40
+ 0.0749000000000001 0.1830000000000002 0.0684000000000000 # O41
+ 0.8039999999999996 0.9723999999999998 0.0685999999999997 # O42
+ 0.1216000000000002 0.8423999999999995 0.0683000000000001 # O43
+ 0.0749000000000001 0.6829999999999998 0.5684000000000003 # O44
+ 0.8039999999999996 0.4724000000000002 0.5686000000000000 # O45
+ 0.1216000000000002 0.3424000000000000 0.5682999999999998 # O46
+ 0.5748999999999996 0.1830000000000002 0.5684000000000003 # O47
+ 0.3039999999999999 0.9723999999999998 0.5686000000000000 # O48
+ 0.6215999999999999 0.8424000000000004 0.5682999999999998 # O49
+ 0.5748999999999996 0.6829999999999998 0.0684000000000000 # O50
+ 0.3039999999999999 0.4723999999999995 0.0685999999999997 # O51
+ 0.6215999999999999 0.3424000000000000 0.0683000000000001 # O52
+ 0.0000000000000000 0.2109999999999996 0.0000000000000000 # O53
+ 0.8169999999999996 0.9315999999999998 0.0749000000000001 # O54
+ 0.0276000000000000 0.9314000000000001 0.8039999999999996 # O55
+ 0.1576000000000004 0.9316999999999996 0.1216000000000002 # O56
+ 0.0000000000000000 0.7110000000000000 0.4999999999999996 # O57
+ 0.8169999999999996 0.4315999999999996 0.5748999999999996 # O58
+ 0.0276000000000000 0.4313999999999999 0.3039999999999999 # O59
+ 0.1576000000000004 0.4317000000000002 0.6215999999999999 # O60
+ 0.4999999999999996 0.2110000000000003 0.4999999999999996 # O61
+ 0.3170000000000001 0.9315999999999998 0.5748999999999996 # O62
+ 0.5275999999999996 0.9313999999999995 0.3039999999999999 # O63
+ 0.6575999999999999 0.9316999999999996 0.6215999999999999 # O64
+ 0.4999999999999996 0.7110000000000000 0.0000000000000000 # O65
+ 0.3170000000000001 0.4315999999999996 0.0749000000000001 # O66
+ 0.5275999999999996 0.4313999999999999 0.8039999999999996 # O67
+ 0.6575999999999999 0.4317000000000002 0.1216000000000002 # O68
+ 0.0000000000000000 0.0000000000000000 0.2109999999999996 # O69
+ 0.8169999999999996 0.9250999999999998 0.9315999999999998 # O70
+ 0.0276000000000000 0.1960000000000003 0.9313999999999995 # O71
+ 0.1576000000000004 0.8783999999999997 0.9316999999999996 # O72
+ 0.0000000000000000 0.4999999999999996 0.7110000000000000 # O73
+ 0.8169999999999996 0.4251000000000002 0.4315999999999996 # O74
+ 0.0276000000000000 0.6959999999999998 0.4313999999999999 # O75
+ 0.1576000000000004 0.3784000000000000 0.4317000000000002 # O76
+ 0.4999999999999996 0.0000000000000000 0.7110000000000000 # O77
+ 0.3170000000000001 0.9250999999999998 0.4315999999999996 # O78
+ 0.5275999999999996 0.1960000000000003 0.4313999999999999 # O79
+ 0.6575999999999999 0.8783999999999997 0.4317000000000002 # O80
+ 0.4999999999999996 0.4999999999999996 0.2109999999999996 # O81
+ 0.3170000000000001 0.4251000000000002 0.9315999999999998 # O82
+ 0.5275999999999996 0.6959999999999998 0.9313999999999995 # O83
+ 0.6575999999999999 0.3784000000000000 0.9316999999999996 # O84
+ 0.0000000000000000 0.7889999999999996 0.0000000000000000 # O85
+ 0.8169999999999996 0.0684000000000000 0.9250999999999998 # O86
+ 0.0276000000000000 0.0685999999999997 0.1959999999999996 # O87
+ 0.1576000000000004 0.0683000000000001 0.8783999999999997 # O88
+ 0.0000000000000000 0.2889999999999999 0.4999999999999996 # O89
+ 0.8169999999999996 0.5684000000000003 0.4250999999999995 # O90
+ 0.0276000000000000 0.5686000000000000 0.6959999999999998 # O91
+ 0.1576000000000004 0.5682999999999998 0.3784000000000000 # O92
+ 0.5000000000000003 0.7889999999999996 0.4999999999999996 # O93
+ 0.3170000000000001 0.0684000000000000 0.4250999999999995 # O94
+ 0.5275999999999996 0.0686000000000004 0.6959999999999998 # O95
+ 0.6575999999999999 0.0683000000000001 0.3784000000000000 # O96
+ 0.4999999999999996 0.2889999999999999 0.0000000000000000 # O97
+ 0.3170000000000001 0.5684000000000003 0.9250999999999998 # O98
+ 0.5275999999999996 0.5686000000000000 0.1959999999999996 # O99
+ 0.6575999999999999 0.5682999999999998 0.8783999999999997 # O100
+ 0.7889999999999996 0.0000000000000000 0.0000000000000000 # O101
+ 0.0684000000000000 0.0749000000000001 0.1830000000000002 # O102
+ 0.0686000000000004 0.8040000000000003 0.9723999999999998 # O103
+ 0.0683000000000001 0.1216000000000002 0.8423999999999995 # O104
+ 0.7889999999999996 0.4999999999999996 0.4999999999999996 # O105
+ 0.0684000000000000 0.5748999999999996 0.6829999999999998 # O106
+ 0.0686000000000004 0.3039999999999999 0.4723999999999995 # O107
+ 0.0683000000000001 0.6215999999999999 0.3424000000000000 # O108
+ 0.2889999999999999 0.0000000000000000 0.4999999999999996 # O109
+ 0.5684000000000003 0.0749000000000001 0.6829999999999998 # O110
+ 0.5686000000000000 0.8039999999999996 0.4723999999999995 # O111
+ 0.5682999999999998 0.1216000000000002 0.3424000000000000 # O112
+ 0.2889999999999999 0.4999999999999996 0.0000000000000000 # O113
+ 0.5684000000000003 0.5748999999999996 0.1830000000000002 # O114
+ 0.5686000000000000 0.3039999999999999 0.9723999999999998 # O115
+ 0.5682999999999998 0.6215999999999999 0.8423999999999995 # O116
+ 0.1830000000000002 0.0749000000000001 0.9315999999999998 # O117
+ 0.9723999999999998 0.8040000000000003 0.9313999999999995 # O118
+ 0.8423999999999995 0.1216000000000002 0.9316999999999996 # O119
+ 0.1830000000000002 0.5748999999999996 0.4315999999999996 # O120
+ 0.9723999999999998 0.3039999999999999 0.4313999999999999 # O121
+ 0.8423999999999995 0.6215999999999999 0.4317000000000002 # O122
+ 0.6829999999999998 0.0749000000000001 0.4315999999999996 # O123
+ 0.4724000000000002 0.8039999999999996 0.4313999999999999 # O124
+ 0.3424000000000000 0.1216000000000002 0.4317000000000002 # O125
+ 0.6829999999999998 0.5748999999999996 0.9315999999999998 # O126
+ 0.4724000000000002 0.3039999999999999 0.9313999999999995 # O127
+ 0.3424000000000000 0.6215999999999999 0.9316999999999996 # O128
+ 0.2109999999999996 0.0000000000000000 0.0000000000000000 # O129
+ 0.9315999999999998 0.0749000000000001 0.8169999999999996 # O130
+ 0.9313999999999995 0.8039999999999996 0.0276000000000000 # O131
+ 0.9316999999999996 0.1216000000000002 0.1575999999999996 # O132
+ 0.2110000000000003 0.4999999999999996 0.4999999999999996 # O133
+ 0.9315999999999998 0.5748999999999996 0.3170000000000001 # O134
+ 0.9313999999999995 0.3039999999999999 0.5275999999999996 # O135
+ 0.9316999999999996 0.6215999999999999 0.6575999999999999 # O136
+ 0.7110000000000000 0.0000000000000000 0.4999999999999996 # O137
+ 0.4315999999999996 0.0749000000000001 0.3170000000000001 # O138
+ 0.4313999999999999 0.8039999999999996 0.5275999999999996 # O139
+ 0.4317000000000002 0.1216000000000002 0.6575999999999999 # O140
+ 0.7110000000000000 0.4999999999999996 0.0000000000000000 # O141
+ 0.4316000000000003 0.5748999999999996 0.8169999999999996 # O142
+ 0.4313999999999999 0.3039999999999999 0.0276000000000000 # O143
+ 0.4317000000000002 0.6215999999999999 0.1575999999999996 # O144
+ 0.0684000000000000 0.8169999999999996 0.0749000000000001 # O145
+ 0.0685999999999997 0.0276000000000000 0.8039999999999996 # O146
+ 0.0683000000000001 0.1575999999999996 0.1216000000000002 # O147
+ 0.0684000000000000 0.3170000000000001 0.5748999999999996 # O148
+ 0.0686000000000004 0.5275999999999996 0.3039999999999999 # O149
+ 0.0683000000000001 0.6575999999999999 0.6215999999999999 # O150
+ 0.5684000000000003 0.8169999999999996 0.5748999999999996 # O151
+ 0.5686000000000000 0.0276000000000000 0.3039999999999999 # O152
+ 0.5682999999999998 0.1576000000000004 0.6215999999999999 # O153
+ 0.5684000000000003 0.3170000000000001 0.0749000000000001 # O154
+ 0.5686000000000000 0.5275999999999996 0.8039999999999996 # O155
+ 0.5682999999999998 0.6575999999999999 0.1216000000000002 # O156
+ 0.0749000000000001 0.0684000000000000 0.8169999999999996 # O157
+ 0.8039999999999996 0.0685999999999997 0.0276000000000000 # O158
+ 0.1216000000000002 0.0683000000000001 0.1575999999999996 # O159
+ 0.0749000000000001 0.5684000000000003 0.3170000000000001 # O160
+ 0.8039999999999996 0.5686000000000000 0.5275999999999996 # O161
+ 0.1216000000000002 0.5682999999999998 0.6575999999999999 # O162
+ 0.5748999999999996 0.0684000000000000 0.3170000000000001 # O163
+ 0.3039999999999999 0.0686000000000004 0.5275999999999996 # O164
+ 0.6215999999999999 0.0683000000000001 0.6575999999999999 # O165
+ 0.5748999999999996 0.5684000000000003 0.8169999999999996 # O166
+ 0.3039999999999999 0.5686000000000000 0.0276000000000000 # O167
+ 0.6215999999999999 0.5682999999999998 0.1575999999999996 # O168
+ 0.9250999999999998 0.9315999999999998 0.8169999999999996 # O169
+ 0.1960000000000003 0.9313999999999995 0.0276000000000000 # O170
+ 0.8783999999999997 0.9316999999999996 0.1575999999999996 # O171
+ 0.9250999999999998 0.4315999999999996 0.3170000000000001 # O172
+ 0.1960000000000003 0.4313999999999999 0.5275999999999996 # O173
+ 0.8783999999999997 0.4317000000000002 0.6575999999999999 # O174
+ 0.4251000000000002 0.9315999999999998 0.3170000000000001 # O175
+ 0.6959999999999998 0.9313999999999995 0.5275999999999996 # O176
+ 0.3784000000000000 0.9316999999999996 0.6575999999999999 # O177
+ 0.4251000000000002 0.4316000000000003 0.8169999999999996 # O178
+ 0.6959999999999998 0.4313999999999999 0.0276000000000000 # O179
+ 0.3784000000000000 0.4317000000000002 0.1575999999999996 # O180
+ 0.0684000000000000 0.1830000000000002 0.9250999999999998 # O181
+ 0.0686000000000004 0.9723999999999998 0.1959999999999996 # O182
+ 0.0683000000000001 0.8424000000000004 0.8783999999999997 # O183
+ 0.0684000000000000 0.6829999999999998 0.4250999999999995 # O184
+ 0.0686000000000004 0.4724000000000002 0.6959999999999998 # O185
+ 0.0683000000000001 0.3424000000000000 0.3784000000000000 # O186
+ 0.5684000000000003 0.1830000000000002 0.4250999999999995 # O187
+ 0.5686000000000000 0.9723999999999998 0.6959999999999998 # O188
+ 0.5682999999999998 0.8423999999999995 0.3784000000000000 # O189
+ 0.5684000000000003 0.6829999999999998 0.9250999999999998 # O190
+ 0.5686000000000000 0.4723999999999995 0.1959999999999996 # O191
+ 0.5682999999999998 0.3424000000000000 0.8783999999999997 # O192
+ 0.9250999999999998 0.0684000000000000 0.1830000000000002 # O193
+ 0.1960000000000003 0.0686000000000004 0.9723999999999998 # O194
+ 0.8783999999999997 0.0683000000000001 0.8423999999999995 # O195
+ 0.9250999999999998 0.5684000000000003 0.6829999999999998 # O196
+ 0.1960000000000003 0.5686000000000000 0.4723999999999995 # O197
+ 0.8783999999999997 0.5682999999999998 0.3424000000000000 # O198
+ 0.4251000000000002 0.0684000000000000 0.6829999999999998 # O199
+ 0.6959999999999998 0.0686000000000004 0.4723999999999995 # O200
+ 0.3784000000000000 0.0683000000000001 0.3424000000000000 # O201
+ 0.4251000000000002 0.5684000000000003 0.1830000000000002 # O202
+ 0.6959999999999998 0.5686000000000000 0.9723999999999998 # O203
+ 0.3784000000000000 0.5682999999999998 0.8423999999999995 # O204
+ 0.9315999999999998 0.1830000000000002 0.0749000000000001 # O205
+ 0.9313999999999995 0.9723999999999998 0.8039999999999996 # O206
+ 0.9316999999999996 0.8423999999999995 0.1216000000000002 # O207
+ 0.9315999999999998 0.6829999999999998 0.5748999999999996 # O208
+ 0.9313999999999995 0.4724000000000002 0.3039999999999999 # O209
+ 0.9316999999999996 0.3424000000000000 0.6215999999999999 # O210
+ 0.4315999999999996 0.1830000000000002 0.5748999999999996 # O211
+ 0.4313999999999999 0.9723999999999998 0.3039999999999999 # O212
+ 0.4317000000000002 0.8424000000000004 0.6215999999999999 # O213
+ 0.4315999999999996 0.6829999999999998 0.0749000000000001 # O214
+ 0.4313999999999999 0.4724000000000002 0.8039999999999996 # O215
+ 0.4317000000000002 0.3424000000000000 0.1216000000000002 # O216
+ 0.9315999999999998 0.8169999999999996 0.9250999999999998 # O217
+ 0.9313999999999995 0.0276000000000000 0.1959999999999996 # O218
+ 0.9316999999999996 0.1576000000000004 0.8783999999999997 # O219
+ 0.9315999999999998 0.3170000000000001 0.4250999999999995 # O220
+ 0.9313999999999995 0.5275999999999996 0.6959999999999998 # O221
+ 0.9316999999999996 0.6575999999999999 0.3784000000000000 # O222
+ 0.4315999999999996 0.8169999999999996 0.4250999999999995 # O223
+ 0.4313999999999999 0.0276000000000000 0.6959999999999998 # O224
+ 0.4317000000000002 0.1576000000000004 0.3784000000000000 # O225
+ 0.4315999999999996 0.3170000000000001 0.9250999999999998 # O226
+ 0.4313999999999999 0.5275999999999996 0.1959999999999996 # O227
+ 0.4317000000000002 0.6575999999999999 0.8783999999999997 # O228
+ 0.0749000000000001 0.9315999999999998 0.1830000000000002 # O229
+ 0.8039999999999996 0.9314000000000001 0.9723999999999998 # O230
+ 0.1216000000000002 0.9316999999999996 0.8423999999999995 # O231
+ 0.0749000000000001 0.4315999999999996 0.6829999999999998 # O232
+ 0.8039999999999996 0.4313999999999999 0.4723999999999995 # O233
+ 0.1216000000000002 0.4317000000000002 0.3424000000000000 # O234
+ 0.5748999999999996 0.9315999999999998 0.6829999999999998 # O235
+ 0.3039999999999999 0.9313999999999995 0.4723999999999995 # O236
+ 0.6215999999999999 0.9316999999999996 0.3424000000000000 # O237
+ 0.5748999999999996 0.4315999999999996 0.1830000000000002 # O238
+ 0.3039999999999999 0.4313999999999999 0.9723999999999998 # O239
+ 0.6215999999999999 0.4317000000000002 0.8423999999999995 # O240
+ 0.0749000000000001 0.8169999999999996 0.9315999999999998 # O241
+ 0.8039999999999996 0.0276000000000000 0.9313999999999995 # O242
+ 0.1216000000000002 0.1576000000000004 0.9316999999999996 # O243
+ 0.0749000000000001 0.3170000000000001 0.4315999999999996 # O244
+ 0.8039999999999996 0.5275999999999996 0.4313999999999999 # O245
+ 0.1216000000000002 0.6575999999999999 0.4317000000000002 # O246
+ 0.5748999999999996 0.8169999999999996 0.4315999999999996 # O247
+ 0.3039999999999999 0.0276000000000000 0.4313999999999999 # O248
+ 0.6215999999999999 0.1576000000000004 0.4317000000000002 # O249
+ 0.5748999999999996 0.3170000000000001 0.9315999999999998 # O250
+ 0.3039999999999999 0.5275999999999996 0.9313999999999995 # O251
+ 0.6215999999999999 0.6575999999999999 0.9316999999999996 # O252
+ 0.9250999999999998 0.1830000000000002 0.9315999999999998 # O253
+ 0.1960000000000003 0.9723999999999998 0.9313999999999995 # O254
+ 0.8783999999999997 0.8424000000000004 0.9316999999999996 # O255
+ 0.9250999999999998 0.6829999999999998 0.4315999999999996 # O256
+ 0.1960000000000003 0.4724000000000002 0.4313999999999999 # O257
+ 0.8783999999999997 0.3424000000000000 0.4317000000000002 # O258
+ 0.4250999999999995 0.1830000000000002 0.4315999999999996 # O259
+ 0.6959999999999998 0.9723999999999998 0.4313999999999999 # O260
+ 0.3784000000000000 0.8423999999999995 0.4317000000000002 # O261
+ 0.4251000000000002 0.6829999999999998 0.9315999999999998 # O262
+ 0.6959999999999998 0.4724000000000002 0.9313999999999995 # O263
+ 0.3784000000000000 0.3424000000000000 0.9316999999999996 # O264
+ 0.1830000000000002 0.0684000000000000 0.0749000000000001 # O265
+ 0.9723999999999998 0.0686000000000004 0.8039999999999996 # O266
+ 0.8423999999999995 0.0683000000000001 0.1216000000000002 # O267
+ 0.1830000000000002 0.5684000000000003 0.5748999999999996 # O268
+ 0.9723999999999998 0.5686000000000000 0.3039999999999999 # O269
+ 0.8423999999999995 0.5682999999999998 0.6215999999999999 # O270
+ 0.6829999999999998 0.0684000000000000 0.5748999999999996 # O271
+ 0.4723999999999995 0.0685999999999997 0.3039999999999999 # O272
+ 0.3424000000000000 0.0683000000000001 0.6215999999999999 # O273
+ 0.6829999999999998 0.5684000000000003 0.0749000000000001 # O274
+ 0.4724000000000002 0.5686000000000000 0.8039999999999996 # O275
+ 0.3424000000000000 0.5682999999999998 0.1216000000000002 # O276
+ 0.1830000000000002 0.9315999999999998 0.9250999999999998 # O277
+ 0.9723999999999998 0.9313999999999995 0.1959999999999996 # O278
+ 0.8423999999999995 0.9316999999999996 0.8783999999999997 # O279
+ 0.1830000000000002 0.4315999999999996 0.4250999999999995 # O280
+ 0.9723999999999998 0.4313999999999999 0.6959999999999998 # O281
+ 0.8423999999999995 0.4317000000000002 0.3784000000000000 # O282
+ 0.6829999999999998 0.9315999999999998 0.4250999999999995 # O283
+ 0.4724000000000002 0.9314000000000001 0.6959999999999998 # O284
+ 0.3424000000000000 0.9316999999999996 0.3784000000000000 # O285
+ 0.6829999999999998 0.4316000000000003 0.9250999999999998 # O286
+ 0.4723999999999995 0.4313999999999999 0.1959999999999996 # O287
+ 0.3424000000000000 0.4317000000000002 0.8783999999999997 # O288
+ 0.0684000000000000 0.9250999999999998 0.8169999999999996 # O289
+ 0.0685999999999997 0.1959999999999996 0.0276000000000000 # O290
+ 0.0683000000000001 0.8783999999999997 0.1575999999999996 # O291
+ 0.0684000000000000 0.4251000000000002 0.3170000000000001 # O292
+ 0.0686000000000004 0.6959999999999998 0.5275999999999996 # O293
+ 0.0683000000000001 0.3784000000000000 0.6575999999999999 # O294
+ 0.5684000000000003 0.9250999999999998 0.3170000000000001 # O295
+ 0.5686000000000000 0.1960000000000003 0.5275999999999996 # O296
+ 0.5682999999999998 0.8783999999999997 0.6575999999999999 # O297
+ 0.5684000000000003 0.4251000000000002 0.8169999999999996 # O298
+ 0.5686000000000000 0.6959999999999998 0.0276000000000000 # O299
+ 0.5682999999999998 0.3784000000000000 0.1575999999999996 # O300
+ 0.9315999999999998 0.9250999999999998 0.1830000000000002 # O301
+ 0.9313999999999995 0.1960000000000003 0.9723999999999998 # O302
+ 0.9316999999999996 0.8783999999999997 0.8423999999999995 # O303
+ 0.9315999999999998 0.4251000000000002 0.6829999999999998 # O304
+ 0.9313999999999995 0.6959999999999998 0.4723999999999995 # O305
+ 0.9316999999999996 0.3784000000000000 0.3424000000000000 # O306
+ 0.4316000000000003 0.9250999999999998 0.6829999999999998 # O307
+ 0.4313999999999999 0.1960000000000003 0.4723999999999995 # O308
+ 0.4317000000000002 0.8783999999999997 0.3424000000000000 # O309
+ 0.4315999999999996 0.4250999999999995 0.1830000000000002 # O310
+ 0.4313999999999999 0.6959999999999998 0.9723999999999998 # O311
+ 0.4317000000000002 0.3784000000000000 0.8423999999999995 # O312
+ 0.5174000000000002 0.4885000000000000 0.5124000000000000 # Na1
+ 0.2585999999999999 0.2398000000000000 0.2706000000000001 # Na2
+ 0.5174000000000002 0.9884999999999995 1.0123999999999995 # Na3
+ 0.2585999999999999 0.7398000000000002 0.7705999999999997 # Na4
+ 1.0173999999999996 0.4885000000000000 1.0123999999999995 # Na5
+ 0.7585999999999994 0.2398000000000000 0.7705999999999997 # Na6
+ 1.0173999999999996 0.9884999999999995 0.5124000000000000 # Na7
+ 0.7585999999999994 0.7397999999999996 0.2706000000000001 # Na8
+ 0.5114999999999998 0.5174000000000002 0.5124000000000000 # Na9
+ 0.7601999999999999 0.2585999999999999 0.2706000000000001 # Na10
+ 0.5114999999999998 1.0173999999999996 1.0123999999999995 # Na11
+ 0.7601999999999999 0.7586000000000002 0.7705999999999997 # Na12
+ 1.0115000000000001 0.5174000000000002 1.0123999999999995 # Na13
+ 0.2602000000000003 0.2585999999999999 0.7705999999999997 # Na14
+ 1.0115000000000001 1.0173999999999996 0.5124000000000000 # Na15
+ 0.2602000000000003 0.7585999999999994 0.2706000000000001 # Na16
+ 0.4825999999999997 0.5114999999999998 0.5124000000000000 # Na17
+ 0.7414000000000001 0.7601999999999999 0.2706000000000001 # Na18
+ 0.4825999999999997 1.0115000000000001 1.0123999999999995 # Na19
+ 0.7414000000000001 0.2602000000000003 0.7705999999999997 # Na20
+ 0.9826000000000001 0.5114999999999998 1.0123999999999995 # Na21
+ 0.2414000000000004 0.7601999999999999 0.7705999999999997 # Na22
+ 0.9826000000000001 1.0114999999999996 0.5124000000000000 # Na23
+ 0.2413999999999997 0.2602000000000003 0.2706000000000001 # Na24
+ 0.4885000000000000 0.4825999999999997 0.5124000000000000 # Na25
+ 0.2398000000000000 0.7414000000000001 0.2706000000000001 # Na26
+ 0.4885000000000000 0.9826000000000001 1.0123999999999995 # Na27
+ 0.2398000000000000 0.2413999999999997 0.7705999999999997 # Na28
+ 0.9884999999999995 0.4825999999999997 1.0123999999999995 # Na29
+ 0.7397999999999996 0.7414000000000001 0.7705999999999997 # Na30
+ 0.9884999999999995 0.9826000000000001 0.5124000000000000 # Na31
+ 0.7397999999999996 0.2413999999999997 0.2706000000000001 # Na32
+ 0.5174000000000002 0.4875999999999999 0.4885000000000000 # Na33
+ 0.2585999999999999 0.7293999999999998 0.2398000000000000 # Na34
+ 0.5174000000000002 0.9876000000000001 0.9884999999999995 # Na35
+ 0.2585999999999999 0.2294000000000001 0.7397999999999996 # Na36
+ 1.0173999999999996 0.4875999999999999 0.9884999999999995 # Na37
+ 0.7585999999999994 0.7293999999999998 0.7397999999999996 # Na38
+ 1.0173999999999996 0.9875999999999996 0.4885000000000000 # Na39
+ 0.7585999999999994 0.2294000000000001 0.2398000000000000 # Na40
+ 0.5174000000000002 0.5114999999999998 0.4875999999999999 # Na41
+ 0.2585999999999999 0.7601999999999999 0.7293999999999998 # Na42
+ 0.5174000000000002 1.0115000000000001 0.9875999999999996 # Na43
+ 0.2585999999999999 0.2602000000000003 0.2294000000000001 # Na44
+ 1.0173999999999996 0.5114999999999998 0.9875999999999996 # Na45
+ 0.7585999999999994 0.7601999999999999 0.2294000000000001 # Na46
+ 1.0173999999999996 1.0114999999999996 0.4875999999999999 # Na47
+ 0.7585999999999994 0.2602000000000003 0.7293999999999998 # Na48
+ 0.5174000000000002 0.5124000000000000 0.5114999999999998 # Na49
+ 0.2585999999999999 0.2706000000000001 0.7601999999999999 # Na50
+ 0.5174000000000002 1.0123999999999995 1.0114999999999996 # Na51
+ 0.2585999999999999 0.7705999999999997 0.2601999999999996 # Na52
+ 1.0173999999999996 0.5124000000000000 1.0114999999999996 # Na53
+ 0.7585999999999994 0.2706000000000001 0.2601999999999996 # Na54
+ 1.0173999999999996 1.0123999999999995 0.5114999999999998 # Na55
+ 0.7585999999999994 0.7705999999999997 0.7601999999999999 # Na56
+ 0.5124000000000000 0.4885000000000000 0.4825999999999997 # Na57
+ 0.2706000000000001 0.2398000000000000 0.7414000000000001 # Na58
+ 0.5124000000000000 0.9884999999999995 0.9826000000000001 # Na59
+ 0.2706000000000001 0.7397999999999996 0.2413999999999997 # Na60
+ 1.0123999999999995 0.4885000000000000 0.9826000000000001 # Na61
+ 0.7705999999999997 0.2398000000000000 0.2413999999999997 # Na62
+ 1.0123999999999995 0.9884999999999995 0.4825999999999997 # Na63
+ 0.7705999999999997 0.7398000000000002 0.7414000000000001 # Na64
+ 0.4825999999999997 0.4885000000000000 0.4875999999999999 # Na65
+ 0.7414000000000001 0.2398000000000000 0.7293999999999998 # Na66
+ 0.4825999999999997 0.9884999999999995 0.9875999999999996 # Na67
+ 0.7414000000000001 0.7397999999999996 0.2294000000000001 # Na68
+ 0.9826000000000001 0.4885000000000000 0.9875999999999996 # Na69
+ 0.2413999999999997 0.2398000000000000 0.2294000000000001 # Na70
+ 0.9826000000000001 0.9884999999999995 0.4875999999999999 # Na71
+ 0.2413999999999997 0.7398000000000002 0.7293999999999998 # Na72
+ 0.4875999999999999 0.4885000000000000 0.5174000000000002 # Na73
+ 0.7293999999999998 0.2398000000000000 0.2585999999999999 # Na74
+ 0.4875999999999999 0.9884999999999995 1.0173999999999996 # Na75
+ 0.7293999999999998 0.7398000000000002 0.7585999999999994 # Na76
+ 0.9876000000000001 0.4885000000000000 1.0173999999999996 # Na77
+ 0.2294000000000001 0.2398000000000000 0.7585999999999994 # Na78
+ 0.9876000000000001 0.9884999999999995 0.5174000000000002 # Na79
+ 0.2294000000000001 0.7397999999999996 0.2585999999999999 # Na80
+ 0.5124000000000000 0.5174000000000002 0.4885000000000000 # Na81
+ 0.2706000000000001 0.2585999999999999 0.2398000000000000 # Na82
+ 0.5124000000000000 1.0173999999999996 0.9884999999999995 # Na83
+ 0.2706000000000001 0.7586000000000002 0.7397999999999996 # Na84
+ 1.0123999999999995 0.5174000000000002 0.9884999999999995 # Na85
+ 0.7705999999999997 0.2585999999999999 0.7397999999999996 # Na86
+ 1.0123999999999995 1.0173999999999996 0.4885000000000000 # Na87
+ 0.7705999999999997 0.7585999999999994 0.2398000000000000 # Na88
+ 0.4885000000000000 0.5124000000000000 0.5174000000000002 # Na89
+ 0.2398000000000000 0.2706000000000001 0.2585999999999999 # Na90
+ 0.4885000000000000 1.0123999999999995 1.0173999999999996 # Na91
+ 0.2398000000000000 0.7705999999999997 0.7585999999999994 # Na92
+ 0.9884999999999995 0.5124000000000000 1.0173999999999996 # Na93
+ 0.7397999999999996 0.2706000000000001 0.7585999999999994 # Na94
+ 0.9884999999999995 1.0123999999999995 0.5174000000000002 # Na95
+ 0.7397999999999996 0.7705999999999997 0.2585999999999999 # Na96
+ 0.5114999999999998 0.4875999999999999 0.5174000000000002 # Na97
+ 0.7601999999999999 0.7293999999999998 0.2585999999999999 # Na98
+ 0.5114999999999998 0.9876000000000001 1.0173999999999996 # Na99
+ 0.7601999999999999 0.2294000000000001 0.7585999999999994 # Na100
+ 1.0115000000000001 0.4875999999999999 1.0173999999999996 # Na101
+ 0.2602000000000003 0.7293999999999998 0.7585999999999994 # Na102
+ 1.0115000000000001 0.9875999999999996 0.5174000000000002 # Na103
+ 0.2602000000000003 0.2294000000000001 0.2585999999999999 # Na104
+ 0.5124000000000000 0.4825999999999997 0.5114999999999998 # Na105
+ 0.2706000000000001 0.7414000000000001 0.7601999999999999 # Na106
+ 0.5124000000000000 0.9826000000000001 1.0114999999999996 # Na107
+ 0.2706000000000001 0.2413999999999997 0.2601999999999996 # Na108
+ 1.0123999999999995 0.4825999999999997 1.0114999999999996 # Na109
+ 0.7705999999999997 0.7414000000000001 0.2601999999999996 # Na110
+ 1.0123999999999995 0.9826000000000001 0.5114999999999998 # Na111
+ 0.7705999999999997 0.2413999999999997 0.7601999999999999 # Na112
+ 0.5114999999999998 0.5124000000000000 0.4825999999999997 # Na113
+ 0.7601999999999999 0.2706000000000001 0.7414000000000001 # Na114
+ 0.5114999999999998 1.0123999999999995 0.9826000000000001 # Na115
+ 0.7601999999999999 0.7705999999999997 0.2413999999999997 # Na116
+ 1.0115000000000001 0.5124000000000000 0.9826000000000001 # Na117
+ 0.2602000000000003 0.2706000000000001 0.2413999999999997 # Na118
+ 1.0115000000000001 1.0123999999999995 0.4825999999999997 # Na119
+ 0.2602000000000003 0.7705999999999997 0.7414000000000001 # Na120
+ 0.4875999999999999 0.4825999999999997 0.4885000000000000 # Na121
+ 0.7293999999999998 0.7414000000000001 0.2398000000000000 # Na122
+ 0.4875999999999999 0.9826000000000001 0.9884999999999995 # Na123
+ 0.7293999999999998 0.2413999999999997 0.7397999999999996 # Na124
+ 0.9876000000000001 0.4825999999999997 0.9884999999999995 # Na125
+ 0.2294000000000001 0.7414000000000001 0.7397999999999996 # Na126
+ 0.9876000000000001 0.9826000000000001 0.4885000000000000 # Na127
+ 0.2294000000000001 0.2413999999999997 0.2398000000000000 # Na128
+ 0.4875999999999999 0.5174000000000002 0.5114999999999998 # Na129
+ 0.7293999999999998 0.2585999999999999 0.7601999999999999 # Na130
+ 0.4875999999999999 1.0173999999999996 1.0114999999999996 # Na131
+ 0.7293999999999998 0.7585999999999994 0.2601999999999996 # Na132
+ 0.9876000000000001 0.5174000000000002 1.0114999999999996 # Na133
+ 0.2294000000000001 0.2585999999999999 0.2601999999999996 # Na134
+ 0.9876000000000001 1.0173999999999996 0.5114999999999998 # Na135
+ 0.2294000000000001 0.7586000000000002 0.7601999999999999 # Na136
+ 0.4885000000000000 0.4875999999999999 0.4825999999999997 # Na137
+ 0.2398000000000000 0.7293999999999998 0.7414000000000001 # Na138
+ 0.4885000000000000 0.9876000000000001 0.9826000000000001 # Na139
+ 0.2398000000000000 0.2294000000000001 0.2413999999999997 # Na140
+ 0.9884999999999995 0.4875999999999999 0.9826000000000001 # Na141
+ 0.7397999999999996 0.7293999999999998 0.2413999999999997 # Na142
+ 0.9884999999999995 0.9875999999999996 0.4825999999999997 # Na143
+ 0.7397999999999996 0.2294000000000001 0.7414000000000001 # Na144
+ 0.4885000000000000 0.5174000000000002 0.4875999999999999 # Na145
+ 0.2398000000000000 0.2585999999999999 0.7293999999999998 # Na146
+ 0.4885000000000000 1.0173999999999996 0.9875999999999996 # Na147
+ 0.2398000000000000 0.7585999999999994 0.2294000000000001 # Na148
+ 0.9884999999999995 0.5174000000000002 0.9875999999999996 # Na149
+ 0.7397999999999996 0.2585999999999999 0.2294000000000001 # Na150
+ 0.9884999999999995 1.0173999999999996 0.4875999999999999 # Na151
+ 0.7397999999999996 0.7586000000000002 0.7293999999999998 # Na152
+ 0.5114999999999998 0.4825999999999997 0.4875999999999999 # Na153
+ 0.7601999999999999 0.7414000000000001 0.7293999999999998 # Na154
+ 0.5114999999999998 0.9826000000000001 0.9875999999999996 # Na155
+ 0.7601999999999999 0.2413999999999997 0.2294000000000001 # Na156
+ 1.0115000000000001 0.4825999999999997 0.9875999999999996 # Na157
+ 0.2602000000000003 0.7414000000000001 0.2294000000000001 # Na158
+ 1.0115000000000001 0.9826000000000001 0.4875999999999999 # Na159
+ 0.2602000000000003 0.2413999999999997 0.7293999999999998 # Na160
+ 0.4825999999999997 0.5124000000000000 0.4885000000000000 # Na161
+ 0.7414000000000001 0.2706000000000001 0.2398000000000000 # Na162
+ 0.4825999999999997 1.0123999999999995 0.9884999999999995 # Na163
+ 0.7414000000000001 0.7705999999999997 0.7397999999999996 # Na164
+ 0.9826000000000001 0.5124000000000000 0.9884999999999995 # Na165
+ 0.2413999999999997 0.2706000000000001 0.7397999999999996 # Na166
+ 0.9826000000000001 1.0123999999999995 0.4885000000000000 # Na167
+ 0.2413999999999997 0.7705999999999997 0.2398000000000000 # Na168
+ 0.4825999999999997 0.4875999999999999 0.5114999999999998 # Na169
+ 0.7414000000000001 0.7293999999999998 0.7601999999999999 # Na170
+ 0.4825999999999997 0.9876000000000001 1.0114999999999996 # Na171
+ 0.7414000000000001 0.2294000000000001 0.2601999999999996 # Na172
+ 0.9826000000000001 0.4875999999999999 1.0114999999999996 # Na173
+ 0.2413999999999997 0.7293999999999998 0.2601999999999996 # Na174
+ 0.9826000000000001 0.9875999999999996 0.5114999999999998 # Na175
+ 0.2413999999999997 0.2294000000000001 0.7601999999999999 # Na176
+ 0.5124000000000000 0.5114999999999998 0.5174000000000002 # Na177
+ 0.2706000000000001 0.7601999999999999 0.2585999999999999 # Na178
+ 0.5124000000000000 1.0115000000000001 1.0173999999999996 # Na179
+ 0.2706000000000001 0.2602000000000003 0.7585999999999994 # Na180
+ 1.0123999999999995 0.5114999999999998 1.0173999999999996 # Na181
+ 0.7705999999999997 0.7601999999999999 0.7585999999999994 # Na182
+ 1.0123999999999995 1.0114999999999996 0.5174000000000002 # Na183
+ 0.7705999999999997 0.2602000000000003 0.2585999999999999 # Na184
+ 0.4875999999999999 0.5114999999999998 0.4825999999999997 # Na185
+ 0.7293999999999998 0.7601999999999999 0.7414000000000001 # Na186
+ 0.4875999999999999 1.0115000000000001 0.9826000000000001 # Na187
+ 0.7293999999999998 0.2602000000000003 0.2413999999999997 # Na188
+ 0.9876000000000001 0.5114999999999998 0.9826000000000001 # Na189
+ 0.2294000000000001 0.7601999999999999 0.2413999999999997 # Na190
+ 0.9876000000000001 1.0114999999999996 0.4825999999999997 # Na191
+ 0.2294000000000001 0.2602000000000003 0.7414000000000001 # Na192
diff --git a/test/data/cubic/POSCAR-210 b/test/data/cubic/POSCAR-210
new file mode 100644
index 0000000..5e95d83
--- /dev/null
+++ b/test/data/cubic/POSCAR-210
@@ -0,0 +1,343 @@
+$cell vectors
+1.0
+ 19.9099906315133381 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 19.9099906315133381 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.9099906315133381
+ 48 48 48 96 96
+Direct
+ 0.1041000000000002 0.0000000000000000 0.0000000000000000 # Ta1
+ 0.1040999999999999 0.5000000000000002 0.4999999999999999 # Ta2
+ 0.6040999999999999 0.0000000000000000 0.4999999999999999 # Ta3
+ 0.6040999999999999 0.4999999999999999 0.0000000000000000 # Ta4
+ 0.2499999999999999 0.3540999999999999 0.2499999999999999 # Ta5
+ 0.2499999999999999 0.8540999999999999 0.7500000000000002 # Ta6
+ 0.7500000000000002 0.3541000000000002 0.7500000000000002 # Ta7
+ 0.7500000000000002 0.8540999999999999 0.2499999999999999 # Ta8
+ -0.1040999999999999 0.0000000000000000 0.0000000000000000 # Ta9
+ -0.1040999999999999 0.5000000000000002 0.4999999999999999 # Ta10
+ 0.3959000000000000 0.0000000000000000 0.4999999999999999 # Ta11
+ 0.3959000000000000 0.4999999999999999 0.0000000000000000 # Ta12
+ 0.2499999999999999 0.1459000000000000 0.2499999999999999 # Ta13
+ 0.2499999999999999 0.6459000000000003 0.7500000000000002 # Ta14
+ 0.7500000000000002 0.1459000000000000 0.7500000000000002 # Ta15
+ 0.7500000000000002 0.6458999999999999 0.2499999999999999 # Ta16
+ 0.3540999999999999 0.2499999999999999 0.2499999999999999 # Ta17
+ 0.3541000000000002 0.7500000000000002 0.7500000000000002 # Ta18
+ 0.8540999999999999 0.2499999999999999 0.7500000000000002 # Ta19
+ 0.8540999999999999 0.7500000000000002 0.2499999999999999 # Ta20
+ 0.2499999999999999 0.2499999999999999 0.1459000000000000 # Ta21
+ 0.2499999999999999 0.7500000000000002 0.6458999999999999 # Ta22
+ 0.7500000000000002 0.2499999999999999 0.6458999999999999 # Ta23
+ 0.7500000000000002 0.7500000000000002 0.1459000000000000 # Ta24
+ 0.2499999999999999 0.2499999999999999 0.3540999999999999 # Ta25
+ 0.2499999999999999 0.7500000000000002 0.8540999999999999 # Ta26
+ 0.7500000000000002 0.2499999999999999 0.8540999999999999 # Ta27
+ 0.7500000000000002 0.7500000000000002 0.3540999999999999 # Ta28
+ 0.0000000000000000 0.1040999999999999 0.0000000000000000 # Ta29
+ 0.0000000000000000 0.6041000000000001 0.4999999999999999 # Ta30
+ 0.4999999999999999 0.1040999999999999 0.4999999999999999 # Ta31
+ 0.4999999999999999 0.6040999999999999 0.0000000000000000 # Ta32
+ 0.0000000000000000 0.0000000000000000 0.1040999999999999 # Ta33
+ 0.0000000000000000 0.5000000000000002 0.6040999999999999 # Ta34
+ 0.4999999999999999 0.0000000000000000 0.6040999999999999 # Ta35
+ 0.4999999999999999 0.4999999999999999 0.1040999999999999 # Ta36
+ 0.0000000000000000 -0.1040999999999999 0.0000000000000000 # Ta37
+ 0.0000000000000000 0.3959000000000000 0.4999999999999999 # Ta38
+ 0.4999999999999999 -0.1040999999999999 0.4999999999999999 # Ta39
+ 0.4999999999999999 0.3959000000000000 0.0000000000000000 # Ta40
+ 0.0000000000000000 0.0000000000000000 -0.1040999999999999 # Ta41
+ 0.0000000000000000 0.4999999999999999 0.3959000000000000 # Ta42
+ 0.4999999999999999 0.0000000000000000 0.3959000000000000 # Ta43
+ 0.4999999999999999 0.4999999999999999 -0.1040999999999999 # Ta44
+ 0.1459000000000000 0.2499999999999999 0.2499999999999999 # Ta45
+ 0.1459000000000000 0.7500000000000002 0.7500000000000002 # Ta46
+ 0.6459000000000003 0.2499999999999999 0.7500000000000002 # Ta47
+ 0.6459000000000003 0.7500000000000002 0.2499999999999999 # Ta48
+ 0.2150000000000000 0.0000000000000000 0.0000000000000000 # C1
+ 0.2150000000000000 0.5000000000000002 0.4999999999999999 # C2
+ 0.7150000000000001 0.0000000000000000 0.4999999999999999 # C3
+ 0.7150000000000001 0.4999999999999999 0.0000000000000000 # C4
+ 0.2499999999999999 0.4650000000000000 0.2499999999999999 # C5
+ 0.2499999999999999 0.9650000000000000 0.7500000000000002 # C6
+ 0.7500000000000002 0.4650000000000000 0.7500000000000002 # C7
+ 0.7500000000000002 0.9650000000000000 0.2499999999999999 # C8
+ -0.2150000000000000 0.0000000000000000 0.0000000000000000 # C9
+ -0.2149999999999998 0.5000000000000002 0.4999999999999999 # C10
+ 0.2850000000000002 0.0000000000000000 0.4999999999999999 # C11
+ 0.2850000000000002 0.4999999999999999 0.0000000000000000 # C12
+ 0.2499999999999999 0.0349999999999999 0.2499999999999999 # C13
+ 0.2499999999999999 0.5350000000000001 0.7500000000000002 # C14
+ 0.7500000000000002 0.0350000000000002 0.7500000000000002 # C15
+ 0.7500000000000002 0.5350000000000001 0.2499999999999999 # C16
+ 0.4650000000000000 0.2499999999999999 0.2499999999999999 # C17
+ 0.4650000000000000 0.7500000000000002 0.7500000000000002 # C18
+ 0.9650000000000000 0.2499999999999999 0.7500000000000002 # C19
+ 0.9650000000000000 0.7500000000000002 0.2499999999999999 # C20
+ 0.2499999999999999 0.2499999999999999 0.0349999999999999 # C21
+ 0.2499999999999999 0.7500000000000002 0.5350000000000001 # C22
+ 0.7500000000000002 0.2499999999999999 0.5350000000000001 # C23
+ 0.7500000000000002 0.7500000000000002 0.0349999999999999 # C24
+ 0.2499999999999999 0.2499999999999999 0.4650000000000000 # C25
+ 0.2499999999999999 0.7500000000000002 0.9650000000000000 # C26
+ 0.7500000000000002 0.2499999999999999 0.9650000000000000 # C27
+ 0.7500000000000002 0.7500000000000002 0.4650000000000000 # C28
+ 0.0000000000000000 0.2150000000000000 0.0000000000000000 # C29
+ 0.0000000000000000 0.7150000000000001 0.4999999999999999 # C30
+ 0.4999999999999999 0.2150000000000000 0.4999999999999999 # C31
+ 0.4999999999999999 0.7150000000000001 0.0000000000000000 # C32
+ 0.0000000000000000 0.0000000000000000 0.2150000000000000 # C33
+ 0.0000000000000000 0.5000000000000002 0.7150000000000001 # C34
+ 0.4999999999999999 0.0000000000000000 0.7150000000000001 # C35
+ 0.4999999999999999 0.4999999999999999 0.2150000000000000 # C36
+ 0.0000000000000000 -0.2150000000000000 0.0000000000000000 # C37
+ 0.0000000000000000 0.2850000000000002 0.4999999999999999 # C38
+ 0.4999999999999999 -0.2150000000000000 0.4999999999999999 # C39
+ 0.4999999999999999 0.2849999999999999 0.0000000000000000 # C40
+ 0.0000000000000000 0.0000000000000000 -0.2150000000000000 # C41
+ 0.0000000000000000 0.4999999999999999 0.2849999999999999 # C42
+ 0.4999999999999999 0.0000000000000000 0.2849999999999999 # C43
+ 0.4999999999999999 0.4999999999999999 -0.2150000000000000 # C44
+ 0.0349999999999999 0.2499999999999999 0.2499999999999999 # C45
+ 0.0350000000000002 0.7500000000000002 0.7500000000000002 # C46
+ 0.5350000000000001 0.2499999999999999 0.7500000000000002 # C47
+ 0.5350000000000001 0.7500000000000002 0.2499999999999999 # C48
+ 0.2739999999999999 0.0000000000000000 0.0000000000000000 # N1
+ 0.2740000000000001 0.5000000000000002 0.4999999999999999 # N2
+ 0.7739999999999998 0.0000000000000000 0.4999999999999999 # N3
+ 0.7739999999999998 0.4999999999999999 0.0000000000000000 # N4
+ 0.2499999999999999 0.5240000000000001 0.2499999999999999 # N5
+ 0.2499999999999999 1.0240000000000000 0.7500000000000002 # N6
+ 0.7500000000000002 0.5240000000000001 0.7500000000000002 # N7
+ 0.7500000000000002 1.0240000000000000 0.2499999999999999 # N8
+ -0.2739999999999999 0.0000000000000000 0.0000000000000000 # N9
+ -0.2739999999999999 0.5000000000000002 0.4999999999999999 # N10
+ 0.2260000000000000 0.0000000000000000 0.4999999999999999 # N11
+ 0.2260000000000000 0.4999999999999999 0.0000000000000000 # N12
+ 0.2499999999999999 -0.0239999999999999 0.2499999999999999 # N13
+ 0.2499999999999999 0.4760000000000000 0.7500000000000002 # N14
+ 0.7500000000000002 -0.0239999999999999 0.7500000000000002 # N15
+ 0.7500000000000002 0.4760000000000000 0.2499999999999999 # N16
+ 0.5240000000000001 0.2499999999999999 0.2499999999999999 # N17
+ 0.5240000000000001 0.7500000000000002 0.7500000000000002 # N18
+ 1.0240000000000000 0.2499999999999999 0.7500000000000002 # N19
+ 1.0240000000000000 0.7500000000000002 0.2499999999999999 # N20
+ 0.2499999999999999 0.2499999999999999 -0.0239999999999999 # N21
+ 0.2499999999999999 0.7500000000000002 0.4760000000000000 # N22
+ 0.7500000000000002 0.2499999999999999 0.4760000000000000 # N23
+ 0.7500000000000002 0.7500000000000002 -0.0239999999999999 # N24
+ 0.2499999999999999 0.2499999999999999 0.5240000000000001 # N25
+ 0.2499999999999999 0.7500000000000002 1.0240000000000000 # N26
+ 0.7500000000000002 0.2500000000000003 1.0240000000000000 # N27
+ 0.7500000000000002 0.7500000000000002 0.5240000000000001 # N28
+ 0.0000000000000000 0.2739999999999999 0.0000000000000000 # N29
+ 0.0000000000000000 0.7740000000000001 0.4999999999999999 # N30
+ 0.4999999999999999 0.2740000000000001 0.4999999999999999 # N31
+ 0.5000000000000002 0.7739999999999998 0.0000000000000000 # N32
+ 0.0000000000000000 0.0000000000000000 0.2739999999999999 # N33
+ 0.0000000000000000 0.5000000000000002 0.7739999999999998 # N34
+ 0.5000000000000002 0.0000000000000000 0.7739999999999998 # N35
+ 0.4999999999999999 0.4999999999999999 0.2739999999999999 # N36
+ 0.0000000000000000 -0.2739999999999999 0.0000000000000000 # N37
+ 0.0000000000000000 0.2260000000000000 0.4999999999999999 # N38
+ 0.4999999999999999 -0.2739999999999999 0.4999999999999999 # N39
+ 0.4999999999999999 0.2260000000000000 0.0000000000000000 # N40
+ 0.0000000000000000 0.0000000000000000 -0.2739999999999999 # N41
+ 0.0000000000000000 0.4999999999999999 0.2260000000000000 # N42
+ 0.4999999999999999 0.0000000000000000 0.2260000000000000 # N43
+ 0.4999999999999999 0.4999999999999999 -0.2739999999999999 # N44
+ -0.0239999999999999 0.2499999999999999 0.2499999999999999 # N45
+ -0.0239999999999999 0.7500000000000002 0.7500000000000002 # N46
+ 0.4760000000000000 0.2499999999999999 0.7500000000000002 # N47
+ 0.4760000000000000 0.7500000000000002 0.2499999999999999 # N48
+ 0.1218999999999998 0.1212999999999999 -0.0010000000000001 # Cl1
+ 0.1219000000000001 0.6213000000000002 0.4990000000000002 # Cl2
+ 0.6219000000000000 0.1212999999999999 0.4990000000000002 # Cl3
+ 0.6219000000000000 0.6212999999999999 -0.0010000000000001 # Cl4
+ 0.1287000000000000 0.3719000000000001 0.2489999999999998 # Cl5
+ 0.1287000000000000 0.8719000000000001 0.7490000000000001 # Cl6
+ 0.6287000000000003 0.3719000000000001 0.7490000000000001 # Cl7
+ 0.6287000000000003 0.8719000000000001 0.2489999999999998 # Cl8
+ -0.1219000000000001 -0.1212999999999999 -0.0010000000000001 # Cl9
+ -0.1218999999999998 0.3786999999999999 0.4990000000000002 # Cl10
+ 0.3781000000000001 -0.1212999999999999 0.4990000000000002 # Cl11
+ 0.3781000000000001 0.3786999999999999 -0.0010000000000001 # Cl12
+ 0.3713000000000000 0.1281000000000001 0.2489999999999998 # Cl13
+ 0.3713000000000002 0.6281000000000000 0.7490000000000001 # Cl14
+ 0.8712999999999997 0.1281000000000001 0.7490000000000001 # Cl15
+ 0.8712999999999997 0.6281000000000000 0.2489999999999998 # Cl16
+ 0.3719000000000001 0.2510000000000001 0.3713000000000000 # Cl17
+ 0.3719000000000001 0.7510000000000000 0.8712999999999997 # Cl18
+ 0.8719000000000001 0.2510000000000001 0.8712999999999997 # Cl19
+ 0.8719000000000001 0.7510000000000000 0.3713000000000000 # Cl20
+ 0.1218999999999998 -0.1212999999999999 0.0010000000000001 # Cl21
+ 0.1219000000000001 0.3786999999999999 0.5010000000000000 # Cl22
+ 0.6219000000000000 -0.1212999999999999 0.5010000000000000 # Cl23
+ 0.6219000000000000 0.3786999999999999 0.0010000000000001 # Cl24
+ 0.3719000000000001 0.2489999999999998 0.1287000000000000 # Cl25
+ 0.3719000000000001 0.7490000000000001 0.6286999999999999 # Cl26
+ 0.8719000000000001 0.2490000000000001 0.6286999999999999 # Cl27
+ 0.8719000000000001 0.7490000000000001 0.1287000000000000 # Cl28
+ 0.2490000000000001 0.3713000000000000 0.1281000000000001 # Cl29
+ 0.2490000000000001 0.8712999999999997 0.6281000000000000 # Cl30
+ 0.7490000000000001 0.3713000000000002 0.6281000000000000 # Cl31
+ 0.7490000000000001 0.8712999999999997 0.1281000000000001 # Cl32
+ -0.1219000000000001 0.1212999999999999 0.0010000000000001 # Cl33
+ -0.1218999999999998 0.6213000000000002 0.5010000000000000 # Cl34
+ 0.3781000000000001 0.1212999999999999 0.5010000000000000 # Cl35
+ 0.3781000000000001 0.6212999999999999 0.0010000000000001 # Cl36
+ 0.2510000000000001 0.3713000000000000 0.3719000000000001 # Cl37
+ 0.2510000000000001 0.8713000000000002 0.8719000000000001 # Cl38
+ 0.7510000000000000 0.3713000000000002 0.8719000000000001 # Cl39
+ 0.7510000000000000 0.8712999999999997 0.3719000000000001 # Cl40
+ -0.0010000000000001 0.1219000000000001 0.1212999999999999 # Cl41
+ -0.0009999999999998 0.6219000000000000 0.6212999999999999 # Cl42
+ 0.4990000000000002 0.1219000000000001 0.6212999999999999 # Cl43
+ 0.4990000000000002 0.6219000000000000 0.1212999999999999 # Cl44
+ 0.1212999999999999 -0.0010000000000001 0.1219000000000001 # Cl45
+ 0.1212999999999999 0.4990000000000002 0.6219000000000000 # Cl46
+ 0.6212999999999999 -0.0009999999999998 0.6219000000000000 # Cl47
+ 0.6212999999999999 0.4990000000000002 0.1219000000000001 # Cl48
+ -0.1212999999999999 0.0010000000000001 0.1219000000000001 # Cl49
+ -0.1212999999999999 0.5010000000000000 0.6219000000000000 # Cl50
+ 0.3786999999999999 0.0010000000000001 0.6219000000000000 # Cl51
+ 0.3786999999999999 0.5010000000000000 0.1219000000000001 # Cl52
+ -0.0010000000000001 -0.1219000000000001 -0.1212999999999999 # Cl53
+ -0.0009999999999998 0.3781000000000001 0.3786999999999999 # Cl54
+ 0.4990000000000002 -0.1218999999999998 0.3786999999999999 # Cl55
+ 0.4990000000000002 0.3781000000000001 -0.1212999999999999 # Cl56
+ -0.1212999999999999 -0.0010000000000001 -0.1219000000000001 # Cl57
+ -0.1212999999999999 0.4990000000000002 0.3781000000000001 # Cl58
+ 0.3786999999999999 -0.0009999999999998 0.3781000000000001 # Cl59
+ 0.3786999999999999 0.4990000000000002 -0.1219000000000001 # Cl60
+ 0.0009999999999998 -0.1218999999999998 0.1212999999999999 # Cl61
+ 0.0010000000000001 0.3781000000000001 0.6212999999999999 # Cl62
+ 0.5010000000000000 -0.1218999999999998 0.6212999999999999 # Cl63
+ 0.5010000000000000 0.3781000000000001 0.1212999999999999 # Cl64
+ 0.0009999999999998 0.1218999999999998 -0.1212999999999999 # Cl65
+ 0.0010000000000001 0.6219000000000000 0.3786999999999999 # Cl66
+ 0.5010000000000000 0.1219000000000001 0.3786999999999999 # Cl67
+ 0.5010000000000000 0.6219000000000000 -0.1212999999999999 # Cl68
+ 0.1212999999999999 0.0010000000000001 -0.1219000000000001 # Cl69
+ 0.1212999999999999 0.5010000000000000 0.3781000000000001 # Cl70
+ 0.6212999999999999 0.0010000000000001 0.3781000000000001 # Cl71
+ 0.6212999999999999 0.5010000000000000 -0.1219000000000001 # Cl72
+ 0.3713000000000000 0.3719000000000001 0.2510000000000001 # Cl73
+ 0.3713000000000002 0.8719000000000001 0.7510000000000000 # Cl74
+ 0.8712999999999997 0.3719000000000001 0.7510000000000000 # Cl75
+ 0.8712999999999997 0.8719000000000001 0.2510000000000001 # Cl76
+ 0.1287000000000000 0.1281000000000001 0.2510000000000001 # Cl77
+ 0.1287000000000000 0.6281000000000000 0.7510000000000000 # Cl78
+ 0.6287000000000003 0.1281000000000001 0.7510000000000000 # Cl79
+ 0.6286999999999999 0.6281000000000000 0.2510000000000001 # Cl80
+ 0.1281000000000001 0.2490000000000001 0.3713000000000000 # Cl81
+ 0.1281000000000001 0.7490000000000001 0.8712999999999997 # Cl82
+ 0.6281000000000000 0.2490000000000001 0.8712999999999997 # Cl83
+ 0.6281000000000000 0.7490000000000001 0.3713000000000000 # Cl84
+ 0.1281000000000001 0.2510000000000001 0.1287000000000000 # Cl85
+ 0.1281000000000001 0.7510000000000000 0.6286999999999999 # Cl86
+ 0.6281000000000000 0.2510000000000001 0.6286999999999999 # Cl87
+ 0.6281000000000000 0.7510000000000000 0.1287000000000000 # Cl88
+ 0.2490000000000001 0.1287000000000000 0.3719000000000001 # Cl89
+ 0.2490000000000001 0.6287000000000003 0.8719000000000001 # Cl90
+ 0.7490000000000001 0.1287000000000000 0.8719000000000001 # Cl91
+ 0.7490000000000001 0.6286999999999999 0.3719000000000001 # Cl92
+ 0.2510000000000001 0.1287000000000000 0.1281000000000001 # Cl93
+ 0.2510000000000001 0.6287000000000003 0.6281000000000000 # Cl94
+ 0.7510000000000000 0.1287000000000000 0.6281000000000000 # Cl95
+ 0.7510000000000000 0.6286999999999999 0.1281000000000001 # Cl96
+ 0.4050000000000001 0.1360000000000001 0.0170000000000000 # O1
+ 0.4050000000000001 0.6360000000000000 0.5170000000000000 # O2
+ 0.9049999999999999 0.1360000000000001 0.5170000000000000 # O3
+ 0.9049999999999999 0.6360000000000000 0.0170000000000000 # O4
+ 0.1140000000000001 0.6550000000000001 0.2670000000000000 # O5
+ 0.1140000000000001 0.1550000000000001 0.7669999999999999 # O6
+ 0.6140000000000001 0.6550000000000001 0.7669999999999999 # O7
+ 0.6140000000000001 0.1550000000000001 0.2670000000000000 # O8
+ 0.5950000000000001 0.8640000000000000 0.0170000000000000 # O9
+ 0.5949999999999998 0.3640000000000001 0.5170000000000000 # O10
+ 0.0950000000000001 0.8640000000000000 0.5170000000000000 # O11
+ 0.0949999999999999 0.3640000000000001 0.0170000000000000 # O12
+ 0.3860000000000001 0.8450000000000001 0.2670000000000000 # O13
+ 0.3860000000000001 0.3450000000000001 0.7669999999999999 # O14
+ 0.8860000000000001 0.8450000000000001 0.7669999999999999 # O15
+ 0.8860000000000001 0.3450000000000001 0.2670000000000000 # O16
+ 0.6550000000000001 0.2329999999999999 0.3860000000000001 # O17
+ 0.6550000000000004 0.7330000000000002 0.8860000000000001 # O18
+ 0.1550000000000001 0.2330000000000002 0.8860000000000001 # O19
+ 0.1550000000000001 0.7329999999999999 0.3860000000000001 # O20
+ 0.4050000000000002 0.8640000000000003 0.9830000000000000 # O21
+ 0.4050000000000001 0.3640000000000001 0.4829999999999998 # O22
+ 0.9049999999999999 0.8640000000000000 0.4829999999999998 # O23
+ 0.9049999999999999 0.3640000000000001 0.9830000000000000 # O24
+ 0.6550000000000001 0.2670000000000000 0.1139999999999998 # O25
+ 0.6550000000000001 0.7670000000000002 0.6140000000000001 # O26
+ 0.1550000000000001 0.2670000000000000 0.6140000000000001 # O27
+ 0.1550000000000001 0.7669999999999999 0.1139999999999998 # O28
+ 0.2670000000000000 0.3860000000000001 0.8450000000000001 # O29
+ 0.2670000000000000 0.8860000000000001 0.3449999999999998 # O30
+ 0.7669999999999999 0.3860000000000001 0.3449999999999998 # O31
+ 0.7670000000000002 0.8860000000000003 0.8450000000000001 # O32
+ 0.5950000000000001 0.1360000000000001 0.9830000000000000 # O33
+ 0.5949999999999998 0.6360000000000000 0.4829999999999998 # O34
+ 0.0950000000000001 0.1360000000000001 0.4829999999999998 # O35
+ 0.0950000000000001 0.6360000000000000 0.9830000000000000 # O36
+ 0.2330000000000002 0.3860000000000001 0.6550000000000001 # O37
+ 0.2329999999999999 0.8860000000000001 0.1550000000000001 # O38
+ 0.7329999999999999 0.3860000000000001 0.1550000000000001 # O39
+ 0.7330000000000002 0.8860000000000001 0.6550000000000001 # O40
+ 0.0170000000000000 0.4050000000000001 0.1360000000000001 # O41
+ 0.0170000000000000 0.9049999999999999 0.6360000000000000 # O42
+ 0.5170000000000000 0.4050000000000001 0.6360000000000000 # O43
+ 0.5170000000000000 0.9049999999999999 0.1360000000000001 # O44
+ 0.1360000000000001 0.0170000000000000 0.4050000000000001 # O45
+ 0.1360000000000001 0.5170000000000000 0.9049999999999999 # O46
+ 0.6360000000000000 0.0170000000000000 0.9049999999999999 # O47
+ 0.6360000000000000 0.5170000000000000 0.4050000000000001 # O48
+ 0.8640000000000000 0.9830000000000000 0.4050000000000001 # O49
+ 0.8640000000000000 0.4830000000000001 0.9049999999999999 # O50
+ 0.3640000000000001 0.9830000000000000 0.9049999999999999 # O51
+ 0.3640000000000001 0.4830000000000001 0.4050000000000001 # O52
+ 0.0170000000000000 0.5950000000000001 0.8640000000000000 # O53
+ 0.0170000000000000 0.0950000000000001 0.3640000000000001 # O54
+ 0.5170000000000000 0.5949999999999998 0.3640000000000001 # O55
+ 0.5170000000000000 0.0950000000000001 0.8640000000000000 # O56
+ 0.8640000000000000 0.0170000000000000 0.5949999999999998 # O57
+ 0.8640000000000000 0.5170000000000000 0.0949999999999999 # O58
+ 0.3640000000000001 0.0170000000000000 0.0949999999999999 # O59
+ 0.3640000000000001 0.5170000000000000 0.5949999999999998 # O60
+ 0.9830000000000000 0.5949999999999998 0.1360000000000001 # O61
+ 0.9830000000000000 0.0950000000000001 0.6360000000000000 # O62
+ 0.4829999999999998 0.5950000000000001 0.6360000000000000 # O63
+ 0.4829999999999998 0.0949999999999999 0.1360000000000001 # O64
+ 0.9830000000000000 0.4050000000000001 0.8640000000000000 # O65
+ 0.9830000000000000 0.9049999999999999 0.3640000000000001 # O66
+ 0.4829999999999998 0.4050000000000001 0.3640000000000001 # O67
+ 0.4830000000000001 0.9050000000000002 0.8640000000000000 # O68
+ 0.1360000000000001 0.9830000000000000 0.5949999999999998 # O69
+ 0.1360000000000001 0.4829999999999998 0.0949999999999999 # O70
+ 0.6360000000000000 0.9830000000000000 0.0949999999999999 # O71
+ 0.6360000000000000 0.4830000000000001 0.5949999999999998 # O72
+ 0.3860000000000001 0.6550000000000001 0.2329999999999999 # O73
+ 0.3860000000000001 0.1550000000000001 0.7329999999999999 # O74
+ 0.8860000000000001 0.6550000000000001 0.7329999999999999 # O75
+ 0.8860000000000001 0.1550000000000001 0.2329999999999999 # O76
+ 0.1140000000000001 0.8450000000000001 0.2329999999999999 # O77
+ 0.1140000000000001 0.3450000000000001 0.7329999999999999 # O78
+ 0.6140000000000003 0.8450000000000001 0.7329999999999999 # O79
+ 0.6140000000000001 0.3450000000000001 0.2329999999999999 # O80
+ 0.8450000000000001 0.2670000000000000 0.3860000000000001 # O81
+ 0.8450000000000001 0.7670000000000002 0.8860000000000001 # O82
+ 0.3450000000000001 0.2670000000000000 0.8860000000000001 # O83
+ 0.3450000000000001 0.7669999999999999 0.3860000000000001 # O84
+ 0.8450000000000001 0.2329999999999999 0.1139999999999998 # O85
+ 0.8450000000000001 0.7330000000000002 0.6140000000000001 # O86
+ 0.3450000000000001 0.2330000000000002 0.6140000000000001 # O87
+ 0.3450000000000001 0.7329999999999999 0.1139999999999998 # O88
+ 0.2670000000000000 0.1140000000000001 0.6550000000000001 # O89
+ 0.2670000000000000 0.6140000000000001 0.1550000000000001 # O90
+ 0.7669999999999999 0.1140000000000001 0.1550000000000001 # O91
+ 0.7669999999999999 0.6140000000000001 0.6550000000000001 # O92
+ 0.2329999999999999 0.1140000000000001 0.8450000000000001 # O93
+ 0.2329999999999999 0.6140000000000001 0.3449999999999998 # O94
+ 0.7329999999999999 0.1140000000000001 0.3449999999999998 # O95
+ 0.7330000000000002 0.6140000000000001 0.8450000000000001 # O96
diff --git a/test/data/cubic/POSCAR-210-2 b/test/data/cubic/POSCAR-210-2
new file mode 100644
index 0000000..5017df8
--- /dev/null
+++ b/test/data/cubic/POSCAR-210-2
@@ -0,0 +1,615 @@
+$cell vectors
+1.0
+ 15.6989926129647372 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 15.6989926129647372 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.6989926129647372
+ 32 192 384
+Direct
+ 0.3771000000000001 0.3771000000000001 0.3771000000000001 # Te1
+ 0.3771000000000001 0.8771000000000000 0.8770999999999997 # Te2
+ 0.8770999999999997 0.3771000000000001 0.8770999999999997 # Te3
+ 0.8770999999999997 0.8770999999999997 0.3771000000000001 # Te4
+ 0.8728999999999998 0.6271000000000001 0.6270999999999998 # Te5
+ 0.8728999999999998 0.1271000000000001 0.1271000000000001 # Te6
+ 0.3728999999999998 0.6270999999999998 0.1271000000000001 # Te7
+ 0.3728999999999998 0.1271000000000001 0.6270999999999998 # Te8
+ 0.6228999999999998 0.6228999999999998 0.3771000000000001 # Te9
+ 0.6228999999999998 0.1229000000000002 0.8770999999999997 # Te10
+ 0.1229000000000002 0.6229000000000001 0.8770999999999997 # Te11
+ 0.1228999999999998 0.1228999999999998 0.3771000000000001 # Te12
+ 0.6270999999999998 0.8728999999999998 0.6270999999999998 # Te13
+ 0.6270999999999998 0.3728999999999998 0.1271000000000001 # Te14
+ 0.1271000000000001 0.8728999999999998 0.1271000000000001 # Te15
+ 0.1271000000000001 0.3728999999999998 0.6270999999999998 # Te16
+ 0.3771000000000001 0.6229000000000001 0.6228999999999998 # Te17
+ 0.3771000000000001 0.1228999999999998 0.1228999999999998 # Te18
+ 0.8770999999999997 0.6228999999999998 0.1228999999999998 # Te19
+ 0.8770999999999997 0.1229000000000002 0.6228999999999998 # Te20
+ 0.6270999999999998 0.6271000000000001 0.8728999999999998 # Te21
+ 0.6270999999999998 0.1271000000000001 0.3728999999999998 # Te22
+ 0.1271000000000001 0.6270999999999998 0.3728999999999998 # Te23
+ 0.1271000000000001 0.1271000000000001 0.8728999999999998 # Te24
+ 0.6228999999999998 0.3771000000000001 0.6228999999999998 # Te25
+ 0.6228999999999998 0.8770999999999997 0.1228999999999998 # Te26
+ 0.1228999999999998 0.3771000000000001 0.1228999999999998 # Te27
+ 0.1229000000000002 0.8771000000000000 0.6228999999999998 # Te28
+ 0.8728999999999998 0.8728999999999998 0.8728999999999998 # Te29
+ 0.8728999999999998 0.3728999999999998 0.3728999999999998 # Te30
+ 0.3728999999999998 0.8728999999999998 0.3728999999999998 # Te31
+ 0.3728999999999998 0.3729000000000002 0.8728999999999998 # Te32
+ 0.4072000000000000 0.3384000000000001 0.2606999999999998 # O1
+ 0.3502999999999998 0.4207000000000000 0.4806000000000000 # O2
+ 0.4072000000000000 0.8384000000000000 0.7606999999999998 # O3
+ 0.3502999999999998 0.9206999999999999 0.9805999999999999 # O4
+ 0.9071999999999999 0.3384000000000001 0.7606999999999998 # O5
+ 0.8502999999999999 0.4207000000000000 0.9805999999999999 # O6
+ 0.9071999999999999 0.8383999999999997 0.2606999999999998 # O7
+ 0.8502999999999999 0.9206999999999999 0.4806000000000000 # O8
+ 0.9115999999999999 0.6572000000000002 0.5106999999999997 # O9
+ 0.8292999999999998 0.6003000000000002 0.7305999999999998 # O10
+ 0.9115999999999999 0.1571999999999999 0.0107000000000001 # O11
+ 0.8292999999999998 0.1002999999999999 0.2306000000000000 # O12
+ 0.4115999999999999 0.6571999999999998 0.0107000000000001 # O13
+ 0.3293000000000000 0.6002999999999998 0.2306000000000000 # O14
+ 0.4115999999999999 0.1571999999999999 0.5106999999999997 # O15
+ 0.3293000000000000 0.1002999999999999 0.7305999999999998 # O16
+ 0.5928000000000001 0.6615999999999997 0.2606999999999998 # O17
+ 0.6496999999999997 0.5792999999999999 0.4806000000000000 # O18
+ 0.5928000000000001 0.1616000000000002 0.7606999999999998 # O19
+ 0.6497000000000001 0.0793000000000000 0.9805999999999999 # O20
+ 0.0928000000000001 0.6615999999999997 0.7606999999999998 # O21
+ 0.1497000000000001 0.5792999999999999 0.9805999999999999 # O22
+ 0.0928000000000001 0.1616000000000002 0.2606999999999998 # O23
+ 0.1497000000000001 0.0793000000000000 0.4806000000000000 # O24
+ 0.5883999999999997 0.8428000000000000 0.5106999999999997 # O25
+ 0.6706999999999999 0.8997000000000001 0.7305999999999998 # O26
+ 0.5883999999999997 0.3428000000000000 0.0107000000000001 # O27
+ 0.6706999999999999 0.3996999999999997 0.2306000000000000 # O28
+ 0.0884000000000001 0.8427999999999997 0.0107000000000001 # O29
+ 0.1707000000000000 0.8996999999999997 0.2306000000000000 # O30
+ 0.0884000000000001 0.3428000000000000 0.5106999999999997 # O31
+ 0.1707000000000000 0.3997000000000000 0.7305999999999998 # O32
+ 0.6572000000000002 0.9893000000000001 0.5883999999999997 # O33
+ 0.6002999999999998 0.7693999999999999 0.6706999999999999 # O34
+ 0.6571999999999998 0.4893000000000001 0.0884000000000001 # O35
+ 0.6002999999999998 0.2694000000000000 0.1707000000000000 # O36
+ 0.1571999999999999 0.9892999999999997 0.0884000000000001 # O37
+ 0.1002999999999999 0.7693999999999999 0.1707000000000000 # O38
+ 0.1571999999999999 0.4893000000000001 0.5883999999999997 # O39
+ 0.1002999999999999 0.2694000000000000 0.6706999999999999 # O40
+ 0.4072000000000000 0.6615999999999997 0.7393000000000002 # O41
+ 0.3502999999999998 0.5792999999999999 0.5193999999999999 # O42
+ 0.4072000000000000 0.1616000000000002 0.2392999999999998 # O43
+ 0.3502999999999998 0.0793000000000000 0.0194000000000000 # O44
+ 0.9071999999999999 0.6615999999999997 0.2392999999999998 # O45
+ 0.8502999999999999 0.5792999999999999 0.0194000000000000 # O46
+ 0.9071999999999999 0.1616000000000002 0.7393000000000002 # O47
+ 0.8502999999999999 0.0793000000000000 0.5193999999999999 # O48
+ 0.6571999999999998 0.5106999999999997 0.9115999999999999 # O49
+ 0.6002999999999998 0.7305999999999998 0.8292999999999998 # O50
+ 0.6571999999999998 0.0107000000000001 0.4115999999999999 # O51
+ 0.6002999999999998 0.2306000000000000 0.3293000000000000 # O52
+ 0.1571999999999999 0.5106999999999997 0.4115999999999999 # O53
+ 0.1002999999999999 0.7305999999999998 0.3293000000000000 # O54
+ 0.1571999999999999 0.0107000000000001 0.9115999999999999 # O55
+ 0.1002999999999999 0.2306000000000000 0.8292999999999998 # O56
+ 0.5106999999999997 0.5884000000000001 0.8427999999999997 # O57
+ 0.7305999999999998 0.6706999999999999 0.8996999999999997 # O58
+ 0.5106999999999997 0.0884000000000001 0.3428000000000000 # O59
+ 0.7305999999999998 0.1707000000000000 0.3996999999999997 # O60
+ 0.0107000000000001 0.5883999999999997 0.3428000000000000 # O61
+ 0.2306000000000000 0.6706999999999999 0.3996999999999997 # O62
+ 0.0107000000000001 0.0884000000000001 0.8427999999999997 # O63
+ 0.2306000000000000 0.1707000000000000 0.8996999999999997 # O64
+ 0.5928000000000001 0.3384000000000001 0.7393000000000002 # O65
+ 0.6496999999999997 0.4207000000000000 0.5193999999999999 # O66
+ 0.5928000000000001 0.8383999999999997 0.2392999999999998 # O67
+ 0.6496999999999997 0.9206999999999999 0.0194000000000000 # O68
+ 0.0928000000000001 0.3383999999999997 0.2392999999999998 # O69
+ 0.1497000000000001 0.4207000000000000 0.0194000000000000 # O70
+ 0.0928000000000001 0.8384000000000000 0.7393000000000002 # O71
+ 0.1497000000000001 0.9206999999999999 0.5193999999999999 # O72
+ 0.9892999999999997 0.5884000000000001 0.6571999999999998 # O73
+ 0.7693999999999999 0.6706999999999999 0.6002999999999998 # O74
+ 0.9892999999999997 0.0884000000000001 0.1571999999999999 # O75
+ 0.7693999999999999 0.1707000000000000 0.1002999999999999 # O76
+ 0.4893000000000001 0.5883999999999997 0.1571999999999999 # O77
+ 0.2694000000000000 0.6706999999999999 0.1002999999999999 # O78
+ 0.4893000000000001 0.0884000000000001 0.6571999999999998 # O79
+ 0.2694000000000000 0.1707000000000000 0.6002999999999998 # O80
+ 0.2606999999999998 0.4072000000000000 0.3383999999999997 # O81
+ 0.4806000000000000 0.3502999999999998 0.4207000000000000 # O82
+ 0.2607000000000001 0.9071999999999999 0.8383999999999997 # O83
+ 0.4806000000000000 0.8502999999999999 0.9206999999999999 # O84
+ 0.7606999999999998 0.4072000000000000 0.8383999999999997 # O85
+ 0.9805999999999999 0.3502999999999998 0.9206999999999999 # O86
+ 0.7606999999999998 0.9071999999999999 0.3383999999999997 # O87
+ 0.9805999999999999 0.8502999999999999 0.4207000000000000 # O88
+ 0.3383999999999997 0.2607000000000001 0.4072000000000000 # O89
+ 0.4207000000000000 0.4806000000000000 0.3502999999999998 # O90
+ 0.3384000000000001 0.7606999999999998 0.9071999999999999 # O91
+ 0.4207000000000000 0.9805999999999999 0.8502999999999999 # O92
+ 0.8383999999999997 0.2607000000000001 0.9071999999999999 # O93
+ 0.9206999999999999 0.4806000000000000 0.8502999999999999 # O94
+ 0.8383999999999997 0.7606999999999998 0.4072000000000000 # O95
+ 0.9206999999999999 0.9805999999999999 0.3502999999999998 # O96
+ 0.6615999999999997 0.7393000000000002 0.4072000000000000 # O97
+ 0.5792999999999999 0.5193999999999999 0.3502999999999998 # O98
+ 0.6615999999999997 0.2393000000000002 0.9071999999999999 # O99
+ 0.5792999999999999 0.0194000000000000 0.8502999999999999 # O100
+ 0.1616000000000002 0.7393000000000002 0.9071999999999999 # O101
+ 0.0793000000000000 0.5193999999999999 0.8502999999999999 # O102
+ 0.1616000000000002 0.2393000000000002 0.4072000000000000 # O103
+ 0.0793000000000000 0.0194000000000000 0.3502999999999998 # O104
+ 0.2607000000000001 0.5928000000000001 0.6615999999999997 # O105
+ 0.4806000000000000 0.6497000000000001 0.5792999999999999 # O106
+ 0.2606999999999998 0.0928000000000001 0.1615999999999999 # O107
+ 0.4806000000000000 0.1497000000000001 0.0793000000000000 # O108
+ 0.7606999999999998 0.5928000000000001 0.1615999999999999 # O109
+ 0.9805999999999999 0.6496999999999997 0.0793000000000000 # O110
+ 0.7606999999999998 0.0928000000000001 0.6615999999999997 # O111
+ 0.9805999999999999 0.1497000000000001 0.5792999999999999 # O112
+ 0.6615999999999997 0.2607000000000001 0.5928000000000001 # O113
+ 0.5792999999999999 0.4806000000000000 0.6496999999999997 # O114
+ 0.6615999999999997 0.7606999999999998 0.0928000000000001 # O115
+ 0.5792999999999999 0.9805999999999999 0.1497000000000001 # O116
+ 0.1616000000000002 0.2606999999999998 0.0928000000000001 # O117
+ 0.0793000000000000 0.4806000000000000 0.1497000000000001 # O118
+ 0.1616000000000002 0.7606999999999998 0.5928000000000001 # O119
+ 0.0793000000000000 0.9805999999999999 0.6496999999999997 # O120
+ 0.7393000000000002 0.5928000000000001 0.3383999999999997 # O121
+ 0.5193999999999999 0.6496999999999997 0.4207000000000000 # O122
+ 0.7393000000000002 0.0928000000000001 0.8383999999999997 # O123
+ 0.5193999999999999 0.1497000000000001 0.9206999999999999 # O124
+ 0.2393000000000002 0.5928000000000001 0.8383999999999997 # O125
+ 0.0194000000000000 0.6497000000000001 0.9206999999999999 # O126
+ 0.2393000000000002 0.0928000000000001 0.3383999999999997 # O127
+ 0.0194000000000000 0.1497000000000001 0.4207000000000000 # O128
+ 0.7393000000000002 0.4072000000000000 0.6615999999999997 # O129
+ 0.5193999999999999 0.3502999999999998 0.5792999999999999 # O130
+ 0.7393000000000002 0.9071999999999999 0.1615999999999999 # O131
+ 0.5193999999999999 0.8502999999999999 0.0793000000000000 # O132
+ 0.2393000000000002 0.4072000000000000 0.1615999999999999 # O133
+ 0.0194000000000000 0.3502999999999998 0.0793000000000000 # O134
+ 0.2393000000000002 0.9071999999999999 0.6615999999999997 # O135
+ 0.0194000000000000 0.8502999999999999 0.5792999999999999 # O136
+ 0.3384000000000001 0.7393000000000002 0.5928000000000001 # O137
+ 0.4207000000000000 0.5193999999999999 0.6496999999999997 # O138
+ 0.3383999999999997 0.2392999999999998 0.0928000000000001 # O139
+ 0.4207000000000000 0.0194000000000000 0.1497000000000001 # O140
+ 0.8383999999999997 0.7393000000000002 0.0928000000000001 # O141
+ 0.9206999999999999 0.5193999999999999 0.1497000000000001 # O142
+ 0.8383999999999997 0.2393000000000002 0.5928000000000001 # O143
+ 0.9206999999999999 0.0194000000000000 0.6496999999999997 # O144
+ 0.5884000000000001 0.6572000000000002 0.9892999999999997 # O145
+ 0.6706999999999999 0.6003000000000002 0.7693999999999999 # O146
+ 0.5883999999999997 0.1571999999999999 0.4893000000000001 # O147
+ 0.6706999999999999 0.1002999999999999 0.2694000000000000 # O148
+ 0.0884000000000001 0.6571999999999998 0.4893000000000001 # O149
+ 0.1707000000000000 0.6002999999999998 0.2694000000000000 # O150
+ 0.0884000000000001 0.1571999999999999 0.9892999999999997 # O151
+ 0.1707000000000000 0.1002999999999999 0.7693999999999999 # O152
+ 0.9116000000000001 0.8428000000000000 0.9892999999999997 # O153
+ 0.8292999999999998 0.8997000000000001 0.7693999999999999 # O154
+ 0.9115999999999999 0.3428000000000000 0.4893000000000001 # O155
+ 0.8292999999999998 0.3997000000000000 0.2694000000000000 # O156
+ 0.4115999999999999 0.8427999999999997 0.4893000000000001 # O157
+ 0.3293000000000000 0.8996999999999997 0.2694000000000000 # O158
+ 0.4115999999999999 0.3428000000000000 0.9892999999999997 # O159
+ 0.3293000000000000 0.3997000000000000 0.7693999999999999 # O160
+ 0.8427999999999997 0.5106999999999997 0.5883999999999997 # O161
+ 0.8996999999999997 0.7305999999999998 0.6706999999999999 # O162
+ 0.8427999999999997 0.0107000000000001 0.0884000000000001 # O163
+ 0.8996999999999997 0.2306000000000000 0.1707000000000000 # O164
+ 0.3428000000000000 0.5106999999999997 0.0884000000000001 # O165
+ 0.3997000000000000 0.7305999999999998 0.1707000000000000 # O166
+ 0.3428000000000000 0.0107000000000001 0.5883999999999997 # O167
+ 0.3997000000000000 0.2306000000000000 0.6706999999999999 # O168
+ 0.8428000000000000 0.9893000000000001 0.9115999999999999 # O169
+ 0.8996999999999997 0.7693999999999999 0.8292999999999998 # O170
+ 0.8427999999999997 0.4893000000000001 0.4115999999999999 # O171
+ 0.8996999999999997 0.2694000000000000 0.3293000000000000 # O172
+ 0.3428000000000000 0.9892999999999997 0.4115999999999999 # O173
+ 0.3997000000000000 0.7693999999999999 0.3293000000000000 # O174
+ 0.3428000000000000 0.4893000000000001 0.9115999999999999 # O175
+ 0.3997000000000000 0.2694000000000000 0.8292999999999998 # O176
+ 0.5106999999999997 0.9116000000000001 0.6571999999999998 # O177
+ 0.7305999999999998 0.8292999999999998 0.6002999999999998 # O178
+ 0.5106999999999997 0.4115999999999999 0.1571999999999999 # O179
+ 0.7305999999999998 0.3293000000000000 0.1002999999999999 # O180
+ 0.0107000000000001 0.9115999999999999 0.1571999999999999 # O181
+ 0.2306000000000000 0.8292999999999998 0.1002999999999999 # O182
+ 0.0107000000000001 0.4115999999999999 0.6571999999999998 # O183
+ 0.2306000000000000 0.3293000000000000 0.6002999999999998 # O184
+ 0.9892999999999997 0.9116000000000001 0.8427999999999997 # O185
+ 0.7693999999999999 0.8292999999999998 0.8996999999999997 # O186
+ 0.9892999999999997 0.4115999999999999 0.3428000000000000 # O187
+ 0.7693999999999999 0.3293000000000000 0.3996999999999997 # O188
+ 0.4893000000000001 0.9115999999999999 0.3428000000000000 # O189
+ 0.2694000000000000 0.8292999999999998 0.3996999999999997 # O190
+ 0.4893000000000001 0.4115999999999999 0.8427999999999997 # O191
+ 0.2694000000000000 0.3293000000000000 0.8996999999999997 # O192
+ 0.4508999999999999 0.3723999999999998 0.2342999999999999 # H1
+ 0.4051000000000000 0.2775000000000002 0.2595999999999998 # H2
+ 0.3575000000000001 0.4712999999999998 0.5067999999999999 # H3
+ 0.3215000000000001 0.3882999999999999 0.5223999999999999 # H4
+ 0.4509000000000002 0.8723999999999997 0.7342999999999998 # H5
+ 0.4051000000000000 0.7775000000000002 0.7596000000000001 # H6
+ 0.3575000000000001 0.9713000000000002 1.0067999999999997 # H7
+ 0.3215000000000001 0.8882999999999999 1.0223999999999998 # H8
+ 0.9508999999999996 0.3724000000000002 0.7342999999999998 # H9
+ 0.9050999999999999 0.2775000000000002 0.7596000000000001 # H10
+ 0.8575000000000000 0.4713000000000002 1.0067999999999997 # H11
+ 0.8215000000000000 0.3882999999999999 1.0223999999999998 # H12
+ 0.9508999999999996 0.8723999999999997 0.2342999999999999 # H13
+ 0.9050999999999999 0.7775000000000002 0.2595999999999998 # H14
+ 0.8575000000000000 0.9713000000000002 0.5067999999999999 # H15
+ 0.8215000000000000 0.8882999999999999 0.5223999999999999 # H16
+ 0.8775999999999996 0.7008999999999999 0.4842999999999999 # H17
+ 0.9724999999999997 0.6550999999999998 0.5095999999999997 # H18
+ 0.7786999999999997 0.6074999999999998 0.7567999999999998 # H19
+ 0.8616999999999997 0.5715000000000001 0.7723999999999998 # H20
+ 0.8775999999999996 0.2009000000000002 -0.0157000000000001 # H21
+ 0.9724999999999997 0.1551000000000000 0.0095999999999998 # H22
+ 0.7786999999999997 0.1075000000000001 0.2567999999999999 # H23
+ 0.8616999999999997 0.0715000000000001 0.2723999999999999 # H24
+ 0.3776000000000001 0.7008999999999999 -0.0157000000000001 # H25
+ 0.4724999999999998 0.6550999999999998 0.0095999999999998 # H26
+ 0.2786999999999998 0.6074999999999998 0.2567999999999999 # H27
+ 0.3617000000000000 0.5715000000000001 0.2723999999999999 # H28
+ 0.3776000000000001 0.2009000000000002 0.4842999999999999 # H29
+ 0.4724999999999998 0.1551000000000000 0.5095999999999997 # H30
+ 0.2786999999999998 0.1075000000000001 0.7567999999999998 # H31
+ 0.3617000000000000 0.0715000000000001 0.7723999999999998 # H32
+ 0.5490999999999997 0.6275999999999996 0.2342999999999999 # H33
+ 0.5948999999999999 0.7224999999999997 0.2595999999999998 # H34
+ 0.6424999999999998 0.5286999999999997 0.5067999999999999 # H35
+ 0.6784999999999999 0.6116999999999999 0.5223999999999999 # H36
+ 0.5490999999999997 0.1276000000000001 0.7342999999999998 # H37
+ 0.5948999999999999 0.2225000000000001 0.7596000000000001 # H38
+ 0.6425000000000001 0.0287000000000002 1.0067999999999997 # H39
+ 0.6784999999999999 0.1117000000000001 1.0223999999999998 # H40
+ 0.0491000000000001 0.6276000000000000 0.7342999999999998 # H41
+ 0.0949000000000000 0.7225000000000001 0.7596000000000001 # H42
+ 0.1425000000000002 0.5287000000000001 1.0067999999999997 # H43
+ 0.1784999999999999 0.6116999999999999 1.0223999999999998 # H44
+ 0.0491000000000001 0.1276000000000001 0.2342999999999999 # H45
+ 0.0949000000000000 0.2225000000000001 0.2595999999999998 # H46
+ 0.1424999999999998 0.0287000000000002 0.5067999999999999 # H47
+ 0.1784999999999999 0.1117000000000001 0.5223999999999999 # H48
+ 0.6223999999999997 0.7990999999999997 0.4842999999999999 # H49
+ 0.5275000000000002 0.8448999999999999 0.5095999999999997 # H50
+ 0.7212999999999997 0.8925000000000002 0.7567999999999998 # H51
+ 0.6382999999999999 0.9284999999999999 0.7723999999999998 # H52
+ 0.6223999999999997 0.2990999999999998 -0.0157000000000001 # H53
+ 0.5275000000000002 0.3449000000000000 0.0095999999999998 # H54
+ 0.7212999999999997 0.3925000000000002 0.2567999999999999 # H55
+ 0.6382999999999999 0.4284999999999998 0.2723999999999999 # H56
+ 0.1223999999999999 0.7990999999999997 -0.0157000000000001 # H57
+ 0.0275000000000002 0.8448999999999999 0.0095999999999998 # H58
+ 0.2213000000000002 0.8924999999999998 0.2567999999999999 # H59
+ 0.1382999999999999 0.9284999999999999 0.2723999999999999 # H60
+ 0.1223999999999999 0.2990999999999998 0.4842999999999999 # H61
+ 0.0275000000000002 0.3449000000000000 0.5095999999999997 # H62
+ 0.2213000000000002 0.3925000000000002 0.7567999999999998 # H63
+ 0.1382999999999999 0.4285000000000002 0.7723999999999998 # H64
+ 0.7009000000000001 1.0157000000000000 0.6223999999999997 # H65
+ 0.6550999999999998 0.9904000000000002 0.5275000000000002 # H66
+ 0.6074999999999998 0.7431999999999996 0.7212999999999997 # H67
+ 0.5715000000000001 0.7276000000000000 0.6382999999999999 # H68
+ 0.7008999999999999 0.5157000000000000 0.1223999999999999 # H69
+ 0.6550999999999998 0.4903999999999998 0.0274999999999999 # H70
+ 0.6074999999999998 0.2432000000000001 0.2212999999999998 # H71
+ 0.5715000000000001 0.2276000000000000 0.1382999999999999 # H72
+ 0.2009000000000002 1.0157000000000000 0.1223999999999999 # H73
+ 0.1551000000000000 0.9903999999999998 0.0274999999999999 # H74
+ 0.1075000000000001 0.7431999999999996 0.2212999999999998 # H75
+ 0.0715000000000001 0.7276000000000000 0.1382999999999999 # H76
+ 0.2009000000000002 0.5157000000000000 0.6223999999999997 # H77
+ 0.1551000000000000 0.4903999999999998 0.5275000000000002 # H78
+ 0.1075000000000001 0.2432000000000001 0.7212999999999997 # H79
+ 0.0715000000000001 0.2276000000000000 0.6382999999999999 # H80
+ 0.4509000000000002 0.6276000000000000 0.7656999999999999 # H81
+ 0.4051000000000000 0.7225000000000001 0.7403999999999997 # H82
+ 0.3575000000000001 0.5286999999999997 0.4931999999999997 # H83
+ 0.3215000000000001 0.6116999999999996 0.4776000000000001 # H84
+ 0.4508999999999999 0.1276000000000001 0.2657000000000000 # H85
+ 0.4051000000000000 0.2225000000000001 0.2403999999999998 # H86
+ 0.3574999999999998 0.0286999999999998 -0.0067999999999999 # H87
+ 0.3215000000000001 0.1117000000000001 -0.0223999999999999 # H88
+ 0.9508999999999996 0.6275999999999996 0.2657000000000000 # H89
+ 0.9050999999999999 0.7224999999999997 0.2403999999999998 # H90
+ 0.8574999999999997 0.5286999999999997 -0.0067999999999999 # H91
+ 0.8215000000000000 0.6116999999999996 -0.0223999999999999 # H92
+ 0.9508999999999996 0.1276000000000001 0.7656999999999999 # H93
+ 0.9050999999999999 0.2225000000000001 0.7403999999999997 # H94
+ 0.8574999999999997 0.0287000000000002 0.4931999999999997 # H95
+ 0.8215000000000000 0.1117000000000001 0.4776000000000001 # H96
+ 0.7008999999999999 0.4842999999999999 0.8775999999999996 # H97
+ 0.6550999999999998 0.5096000000000002 0.9724999999999997 # H98
+ 0.6074999999999998 0.7568000000000001 0.7786999999999997 # H99
+ 0.5715000000000001 0.7723999999999998 0.8616999999999997 # H100
+ 0.7008999999999999 -0.0157000000000001 0.3775999999999997 # H101
+ 0.6550999999999998 0.0096000000000002 0.4724999999999998 # H102
+ 0.6074999999999998 0.2568000000000002 0.2786999999999998 # H103
+ 0.5715000000000001 0.2723999999999999 0.3617000000000000 # H104
+ 0.2009000000000002 0.4842999999999999 0.3775999999999997 # H105
+ 0.1551000000000000 0.5095999999999997 0.4724999999999998 # H106
+ 0.1075000000000001 0.7567999999999998 0.2786999999999998 # H107
+ 0.0715000000000001 0.7723999999999998 0.3617000000000000 # H108
+ 0.2009000000000002 -0.0157000000000001 0.8775999999999996 # H109
+ 0.1551000000000000 0.0096000000000002 0.9724999999999997 # H110
+ 0.1075000000000001 0.2568000000000002 0.7786999999999997 # H111
+ 0.0715000000000001 0.2723999999999999 0.8616999999999997 # H112
+ 0.4842999999999999 0.6224000000000001 0.7990999999999997 # H113
+ 0.5095999999999997 0.5275000000000002 0.8448999999999999 # H114
+ 0.7567999999999998 0.7213000000000001 0.8924999999999998 # H115
+ 0.7723999999999998 0.6382999999999999 0.9284999999999999 # H116
+ 0.4842999999999999 0.1223999999999999 0.2990999999999998 # H117
+ 0.5095999999999997 0.0275000000000002 0.3449000000000000 # H118
+ 0.7567999999999998 0.2213000000000002 0.3925000000000002 # H119
+ 0.7723999999999998 0.1382999999999999 0.4284999999999998 # H120
+ -0.0157000000000001 0.6223999999999997 0.2990999999999998 # H121
+ 0.0096000000000002 0.5275000000000002 0.3449000000000000 # H122
+ 0.2568000000000002 0.7212999999999997 0.3925000000000002 # H123
+ 0.2723999999999999 0.6382999999999999 0.4284999999999998 # H124
+ -0.0157000000000001 0.1224000000000002 0.7990999999999997 # H125
+ 0.0096000000000002 0.0275000000000002 0.8448999999999999 # H126
+ 0.2568000000000002 0.2213000000000002 0.8924999999999998 # H127
+ 0.2723999999999999 0.1382999999999999 0.9284999999999999 # H128
+ 0.5490999999999997 0.3724000000000002 0.7656999999999999 # H129
+ 0.5948999999999999 0.2775000000000002 0.7403999999999997 # H130
+ 0.6424999999999998 0.4712999999999998 0.4931999999999997 # H131
+ 0.6784999999999999 0.3882999999999999 0.4776000000000001 # H132
+ 0.5490999999999997 0.8723999999999997 0.2657000000000000 # H133
+ 0.5948999999999999 0.7775000000000002 0.2403999999999998 # H134
+ 0.6425000000000001 0.9713000000000002 -0.0067999999999999 # H135
+ 0.6784999999999999 0.8882999999999999 -0.0223999999999999 # H136
+ 0.0491000000000001 0.3724000000000002 0.2657000000000000 # H137
+ 0.0949000000000000 0.2775000000000002 0.2403999999999998 # H138
+ 0.1424999999999998 0.4712999999999998 -0.0067999999999999 # H139
+ 0.1784999999999999 0.3882999999999999 -0.0223999999999999 # H140
+ 0.0491000000000001 0.8723999999999997 0.7656999999999999 # H141
+ 0.0949000000000000 0.7775000000000002 0.7403999999999997 # H142
+ 0.1425000000000002 0.9713000000000002 0.4931999999999997 # H143
+ 0.1784999999999999 0.8882999999999999 0.4776000000000001 # H144
+ 1.0157000000000000 0.6224000000000001 0.7008999999999999 # H145
+ 0.9903999999999998 0.5275000000000002 0.6550999999999998 # H146
+ 0.7431999999999996 0.7213000000000001 0.6074999999999998 # H147
+ 0.7276000000000000 0.6382999999999999 0.5715000000000001 # H148
+ 1.0157000000000000 0.1223999999999999 0.2009000000000002 # H149
+ 0.9903999999999998 0.0275000000000002 0.1551000000000000 # H150
+ 0.7431999999999996 0.2212999999999998 0.1075000000000001 # H151
+ 0.7276000000000000 0.1382999999999999 0.0715000000000001 # H152
+ 0.5157000000000000 0.6223999999999997 0.2009000000000002 # H153
+ 0.4903999999999998 0.5275000000000002 0.1551000000000000 # H154
+ 0.2432000000000001 0.7212999999999997 0.1075000000000001 # H155
+ 0.2276000000000000 0.6382999999999999 0.0715000000000001 # H156
+ 0.5157000000000000 0.1224000000000002 0.7008999999999999 # H157
+ 0.4903999999999998 0.0275000000000002 0.6550999999999998 # H158
+ 0.2432000000000001 0.2213000000000002 0.6074999999999998 # H159
+ 0.2276000000000000 0.1382999999999999 0.5715000000000001 # H160
+ 0.2342999999999999 0.4509000000000002 0.3723999999999998 # H161
+ 0.2595999999999998 0.4051000000000000 0.2775000000000002 # H162
+ 0.5068000000000001 0.3575000000000001 0.4712999999999998 # H163
+ 0.5223999999999999 0.3215000000000001 0.3882999999999999 # H164
+ 0.2342999999999999 0.9509000000000000 0.8723999999999997 # H165
+ 0.2596000000000001 0.9050999999999999 0.7775000000000002 # H166
+ 0.5068000000000001 0.8575000000000000 0.9713000000000002 # H167
+ 0.5223999999999999 0.8215000000000000 0.8882999999999999 # H168
+ 0.7342999999999998 0.4509000000000002 0.8723999999999997 # H169
+ 0.7596000000000001 0.4051000000000000 0.7775000000000002 # H170
+ 1.0068000000000001 0.3575000000000001 0.9713000000000002 # H171
+ 1.0223999999999998 0.3215000000000001 0.8882999999999999 # H172
+ 0.7342999999999998 0.9508999999999996 0.3723999999999998 # H173
+ 0.7596000000000001 0.9050999999999999 0.2775000000000002 # H174
+ 1.0067999999999997 0.8574999999999997 0.4712999999999998 # H175
+ 1.0223999999999998 0.8215000000000000 0.3882999999999999 # H176
+ 0.3723999999999998 0.2342999999999999 0.4508999999999999 # H177
+ 0.2775000000000002 0.2596000000000001 0.4051000000000000 # H178
+ 0.4712999999999998 0.5068000000000001 0.3574999999999998 # H179
+ 0.3882999999999999 0.5223999999999999 0.3215000000000001 # H180
+ 0.3724000000000002 0.7342999999999998 0.9508999999999996 # H181
+ 0.2775000000000002 0.7596000000000001 0.9050999999999999 # H182
+ 0.4713000000000002 1.0068000000000001 0.8574999999999997 # H183
+ 0.3882999999999999 1.0223999999999998 0.8215000000000000 # H184
+ 0.8723999999999997 0.2342999999999999 0.9508999999999996 # H185
+ 0.7775000000000002 0.2596000000000001 0.9050999999999999 # H186
+ 0.9713000000000002 0.5068000000000001 0.8574999999999997 # H187
+ 0.8882999999999999 0.5223999999999999 0.8215000000000000 # H188
+ 0.8723999999999997 0.7342999999999998 0.4508999999999999 # H189
+ 0.7775000000000002 0.7596000000000001 0.4051000000000000 # H190
+ 0.9713000000000002 1.0067999999999997 0.3574999999999998 # H191
+ 0.8882999999999999 1.0223999999999998 0.3215000000000001 # H192
+ 0.6275999999999996 0.7656999999999999 0.4508999999999999 # H193
+ 0.7224999999999997 0.7403999999999997 0.4051000000000000 # H194
+ 0.5286999999999997 0.4932000000000001 0.3574999999999998 # H195
+ 0.6116999999999996 0.4776000000000001 0.3215000000000001 # H196
+ 0.6276000000000000 0.2657000000000000 0.9508999999999996 # H197
+ 0.7224999999999997 0.2404000000000001 0.9050999999999999 # H198
+ 0.5286999999999997 -0.0067999999999999 0.8574999999999997 # H199
+ 0.6116999999999996 -0.0223999999999999 0.8215000000000000 # H200
+ 0.1276000000000001 0.7656999999999999 0.9508999999999996 # H201
+ 0.2225000000000001 0.7404000000000001 0.9050999999999999 # H202
+ 0.0287000000000002 0.4932000000000001 0.8574999999999997 # H203
+ 0.1117000000000001 0.4776000000000001 0.8215000000000000 # H204
+ 0.1276000000000001 0.2657000000000000 0.4508999999999999 # H205
+ 0.2225000000000001 0.2404000000000001 0.4051000000000000 # H206
+ 0.0287000000000002 -0.0067999999999999 0.3574999999999998 # H207
+ 0.1117000000000001 -0.0223999999999999 0.3215000000000001 # H208
+ 0.2342999999999999 0.5491000000000001 0.6275999999999996 # H209
+ 0.2596000000000001 0.5948999999999999 0.7224999999999997 # H210
+ 0.5068000000000001 0.6425000000000001 0.5286999999999997 # H211
+ 0.5223999999999999 0.6784999999999999 0.6116999999999996 # H212
+ 0.2342999999999999 0.0490999999999998 0.1276000000000001 # H213
+ 0.2595999999999998 0.0949000000000000 0.2224999999999998 # H214
+ 0.5067999999999999 0.1424999999999998 0.0286999999999998 # H215
+ 0.5223999999999999 0.1784999999999999 0.1117000000000001 # H216
+ 0.7342999999999998 0.5490999999999997 0.1276000000000001 # H217
+ 0.7596000000000001 0.5948999999999999 0.2224999999999998 # H218
+ 1.0067999999999997 0.6424999999999998 0.0286999999999998 # H219
+ 1.0223999999999998 0.6784999999999999 0.1117000000000001 # H220
+ 0.7342999999999998 0.0491000000000001 0.6275999999999996 # H221
+ 0.7596000000000001 0.0949000000000000 0.7224999999999997 # H222
+ 1.0067999999999997 0.1425000000000002 0.5286999999999997 # H223
+ 1.0223999999999998 0.1784999999999999 0.6116999999999996 # H224
+ 0.6275999999999996 0.2342999999999999 0.5490999999999997 # H225
+ 0.7224999999999997 0.2596000000000001 0.5948999999999999 # H226
+ 0.5286999999999997 0.5068000000000001 0.6424999999999998 # H227
+ 0.6116999999999996 0.5223999999999999 0.6784999999999999 # H228
+ 0.6275999999999996 0.7342999999999998 0.0490999999999998 # H229
+ 0.7224999999999997 0.7596000000000001 0.0949000000000000 # H230
+ 0.5287000000000001 1.0067999999999997 0.1424999999999998 # H231
+ 0.6116999999999999 1.0223999999999998 0.1784999999999999 # H232
+ 0.1276000000000001 0.2342999999999999 0.0490999999999998 # H233
+ 0.2225000000000001 0.2595999999999998 0.0949000000000000 # H234
+ 0.0287000000000002 0.5067999999999999 0.1424999999999998 # H235
+ 0.1117000000000001 0.5223999999999999 0.1784999999999999 # H236
+ 0.1276000000000001 0.7342999999999998 0.5490999999999997 # H237
+ 0.2225000000000001 0.7596000000000001 0.5948999999999999 # H238
+ 0.0287000000000002 1.0068000000000001 0.6424999999999998 # H239
+ 0.1117000000000001 1.0223999999999998 0.6784999999999999 # H240
+ 0.7656999999999999 0.5490999999999997 0.3723999999999998 # H241
+ 0.7403999999999997 0.5948999999999999 0.2775000000000002 # H242
+ 0.4932000000000001 0.6424999999999998 0.4712999999999998 # H243
+ 0.4776000000000001 0.6784999999999999 0.3882999999999999 # H244
+ 0.7656999999999999 0.0491000000000001 0.8723999999999997 # H245
+ 0.7403999999999997 0.0949000000000000 0.7775000000000002 # H246
+ 0.4932000000000001 0.1425000000000002 0.9713000000000002 # H247
+ 0.4776000000000001 0.1784999999999999 0.8882999999999999 # H248
+ 0.2657000000000000 0.5491000000000001 0.8723999999999997 # H249
+ 0.2404000000000001 0.5948999999999999 0.7775000000000002 # H250
+ -0.0067999999999999 0.6425000000000001 0.9713000000000002 # H251
+ -0.0223999999999999 0.6784999999999999 0.8882999999999999 # H252
+ 0.2657000000000000 0.0491000000000001 0.3723999999999998 # H253
+ 0.2404000000000001 0.0949000000000000 0.2775000000000002 # H254
+ -0.0067999999999999 0.1425000000000002 0.4712999999999998 # H255
+ -0.0223999999999999 0.1784999999999999 0.3882999999999999 # H256
+ 0.7656999999999999 0.4509000000000002 0.6275999999999996 # H257
+ 0.7403999999999997 0.4051000000000000 0.7224999999999997 # H258
+ 0.4932000000000001 0.3575000000000001 0.5286999999999997 # H259
+ 0.4776000000000001 0.3215000000000001 0.6116999999999996 # H260
+ 0.7656999999999999 0.9508999999999996 0.1276000000000001 # H261
+ 0.7403999999999997 0.9050999999999999 0.2224999999999998 # H262
+ 0.4932000000000001 0.8574999999999997 0.0286999999999998 # H263
+ 0.4776000000000001 0.8215000000000000 0.1117000000000001 # H264
+ 0.2657000000000000 0.4508999999999999 0.1276000000000001 # H265
+ 0.2404000000000001 0.4051000000000000 0.2224999999999998 # H266
+ -0.0067999999999999 0.3574999999999998 0.0286999999999998 # H267
+ -0.0223999999999999 0.3215000000000001 0.1117000000000001 # H268
+ 0.2657000000000000 0.9509000000000000 0.6275999999999996 # H269
+ 0.2404000000000001 0.9050999999999999 0.7224999999999997 # H270
+ -0.0067999999999999 0.8575000000000000 0.5286999999999997 # H271
+ -0.0223999999999999 0.8215000000000000 0.6116999999999996 # H272
+ 0.3724000000000002 0.7656999999999999 0.5490999999999997 # H273
+ 0.2775000000000002 0.7404000000000001 0.5948999999999999 # H274
+ 0.4713000000000002 0.4932000000000001 0.6424999999999998 # H275
+ 0.3882999999999999 0.4776000000000001 0.6784999999999999 # H276
+ 0.3723999999999998 0.2657000000000000 0.0490999999999998 # H277
+ 0.2775000000000002 0.2403999999999998 0.0949000000000000 # H278
+ 0.4712999999999998 -0.0067999999999999 0.1424999999999998 # H279
+ 0.3882999999999999 -0.0223999999999999 0.1784999999999999 # H280
+ 0.8723999999999997 0.7656999999999999 0.0490999999999998 # H281
+ 0.7775000000000002 0.7403999999999997 0.0949000000000000 # H282
+ 0.9713000000000002 0.4931999999999997 0.1424999999999998 # H283
+ 0.8882999999999999 0.4776000000000001 0.1784999999999999 # H284
+ 0.8723999999999997 0.2657000000000000 0.5490999999999997 # H285
+ 0.7775000000000002 0.2404000000000001 0.5948999999999999 # H286
+ 0.9713000000000002 -0.0067999999999999 0.6424999999999998 # H287
+ 0.8882999999999999 -0.0223999999999999 0.6784999999999999 # H288
+ 0.6224000000000001 0.7009000000000001 1.0157000000000000 # H289
+ 0.5275000000000002 0.6550999999999998 0.9903999999999998 # H290
+ 0.7212999999999997 0.6074999999999998 0.7431999999999996 # H291
+ 0.6382999999999999 0.5715000000000001 0.7276000000000000 # H292
+ 0.6223999999999997 0.2009000000000002 0.5157000000000000 # H293
+ 0.5275000000000002 0.1551000000000000 0.4903999999999998 # H294
+ 0.7212999999999997 0.1075000000000001 0.2432000000000001 # H295
+ 0.6382999999999999 0.0715000000000001 0.2276000000000000 # H296
+ 0.1224000000000002 0.7009000000000001 0.5157000000000000 # H297
+ 0.0275000000000002 0.6550999999999998 0.4903999999999998 # H298
+ 0.2213000000000002 0.6074999999999998 0.2432000000000001 # H299
+ 0.1382999999999999 0.5715000000000001 0.2276000000000000 # H300
+ 0.1224000000000002 0.2009000000000002 1.0157000000000000 # H301
+ 0.0275000000000002 0.1551000000000000 0.9903999999999998 # H302
+ 0.2213000000000002 0.1075000000000001 0.7431999999999996 # H303
+ 0.1382999999999999 0.0715000000000001 0.7276000000000000 # H304
+ 0.8775999999999999 0.7991000000000000 1.0157000000000000 # H305
+ 0.9724999999999999 0.8448999999999999 0.9903999999999998 # H306
+ 0.7786999999999997 0.8925000000000002 0.7431999999999996 # H307
+ 0.8617000000000000 0.9284999999999999 0.7276000000000000 # H308
+ 0.8775999999999996 0.2990999999999998 0.5157000000000000 # H309
+ 0.9724999999999997 0.3449000000000000 0.4903999999999998 # H310
+ 0.7786999999999997 0.3925000000000002 0.2432000000000001 # H311
+ 0.8616999999999997 0.4284999999999998 0.2276000000000000 # H312
+ 0.3776000000000001 0.7991000000000000 0.5157000000000000 # H313
+ 0.4725000000000001 0.8448999999999999 0.4903999999999998 # H314
+ 0.2786999999999998 0.8924999999999998 0.2432000000000001 # H315
+ 0.3617000000000000 0.9284999999999999 0.2276000000000000 # H316
+ 0.3776000000000001 0.2991000000000001 1.0157000000000000 # H317
+ 0.4724999999999998 0.3449000000000000 0.9903999999999998 # H318
+ 0.2786999999999998 0.3925000000000002 0.7431999999999996 # H319
+ 0.3617000000000000 0.4284999999999998 0.7276000000000000 # H320
+ 0.7990999999999997 0.4842999999999999 0.6223999999999997 # H321
+ 0.8448999999999999 0.5096000000000002 0.5275000000000002 # H322
+ 0.8924999999999998 0.7568000000000001 0.7212999999999997 # H323
+ 0.9284999999999999 0.7723999999999998 0.6382999999999999 # H324
+ 0.7990999999999997 -0.0157000000000001 0.1223999999999999 # H325
+ 0.8448999999999999 0.0096000000000002 0.0274999999999999 # H326
+ 0.8924999999999998 0.2567999999999999 0.2212999999999998 # H327
+ 0.9284999999999999 0.2723999999999999 0.1382999999999999 # H328
+ 0.2990999999999998 0.4842999999999999 0.1223999999999999 # H329
+ 0.3449000000000000 0.5095999999999997 0.0274999999999999 # H330
+ 0.3925000000000002 0.7567999999999998 0.2212999999999998 # H331
+ 0.4284999999999998 0.7723999999999998 0.1382999999999999 # H332
+ 0.2990999999999998 -0.0157000000000001 0.6223999999999997 # H333
+ 0.3449000000000000 0.0096000000000002 0.5275000000000002 # H334
+ 0.3925000000000002 0.2568000000000002 0.7212999999999997 # H335
+ 0.4284999999999998 0.2723999999999999 0.6382999999999999 # H336
+ 0.7991000000000000 1.0157000000000000 0.8775999999999996 # H337
+ 0.8448999999999999 0.9904000000000002 0.9724999999999997 # H338
+ 0.8924999999999998 0.7431999999999996 0.7786999999999997 # H339
+ 0.9284999999999999 0.7276000000000000 0.8616999999999997 # H340
+ 0.7990999999999997 0.5157000000000000 0.3775999999999997 # H341
+ 0.8448999999999999 0.4903999999999998 0.4724999999999998 # H342
+ 0.8924999999999998 0.2432000000000001 0.2786999999999998 # H343
+ 0.9284999999999999 0.2276000000000000 0.3617000000000000 # H344
+ 0.2990999999999998 1.0157000000000000 0.3775999999999997 # H345
+ 0.3449000000000000 0.9903999999999998 0.4724999999999998 # H346
+ 0.3925000000000002 0.7431999999999996 0.2786999999999998 # H347
+ 0.4284999999999998 0.7276000000000000 0.3617000000000000 # H348
+ 0.2991000000000001 0.5157000000000000 0.8775999999999996 # H349
+ 0.3449000000000000 0.4904000000000001 0.9724999999999997 # H350
+ 0.3925000000000002 0.2432000000000001 0.7786999999999997 # H351
+ 0.4284999999999998 0.2276000000000000 0.8616999999999997 # H352
+ 0.4842999999999999 0.8775999999999999 0.7008999999999999 # H353
+ 0.5096000000000002 0.9724999999999999 0.6550999999999998 # H354
+ 0.7567999999999998 0.7786999999999997 0.6074999999999998 # H355
+ 0.7723999999999998 0.8617000000000000 0.5715000000000001 # H356
+ 0.4842999999999999 0.3775999999999997 0.2009000000000002 # H357
+ 0.5095999999999997 0.4724999999999998 0.1551000000000000 # H358
+ 0.7567999999999998 0.2786999999999998 0.1075000000000001 # H359
+ 0.7723999999999998 0.3617000000000000 0.0715000000000001 # H360
+ -0.0157000000000001 0.8775999999999996 0.2009000000000002 # H361
+ 0.0096000000000002 0.9724999999999997 0.1551000000000000 # H362
+ 0.2568000000000002 0.7786999999999997 0.1075000000000001 # H363
+ 0.2723999999999999 0.8616999999999997 0.0715000000000001 # H364
+ -0.0157000000000001 0.3776000000000001 0.7008999999999999 # H365
+ 0.0096000000000002 0.4724999999999998 0.6550999999999998 # H366
+ 0.2568000000000002 0.2786999999999998 0.6074999999999998 # H367
+ 0.2723999999999999 0.3617000000000000 0.5715000000000001 # H368
+ 1.0157000000000000 0.8775999999999999 0.7990999999999997 # H369
+ 0.9904000000000002 0.9724999999999999 0.8448999999999999 # H370
+ 0.7431999999999996 0.7786999999999997 0.8924999999999998 # H371
+ 0.7276000000000000 0.8617000000000000 0.9284999999999999 # H372
+ 1.0157000000000000 0.3776000000000001 0.2990999999999998 # H373
+ 0.9903999999999998 0.4724999999999998 0.3449000000000000 # H374
+ 0.7431999999999996 0.2786999999999998 0.3925000000000002 # H375
+ 0.7276000000000000 0.3617000000000000 0.4284999999999998 # H376
+ 0.5157000000000000 0.8775999999999996 0.2990999999999998 # H377
+ 0.4903999999999998 0.9724999999999997 0.3449000000000000 # H378
+ 0.2432000000000001 0.7786999999999997 0.3925000000000002 # H379
+ 0.2276000000000000 0.8616999999999997 0.4284999999999998 # H380
+ 0.5157000000000000 0.3776000000000001 0.7990999999999997 # H381
+ 0.4904000000000001 0.4725000000000001 0.8448999999999999 # H382
+ 0.2432000000000001 0.2787000000000001 0.8924999999999998 # H383
+ 0.2276000000000000 0.3617000000000000 0.9284999999999999 # H384
diff --git a/test/data/cubic/POSCAR-211 b/test/data/cubic/POSCAR-211
new file mode 100644
index 0000000..f101137
--- /dev/null
+++ b/test/data/cubic/POSCAR-211
@@ -0,0 +1,79 @@
+POSCAR generated by cell class
+1.0
+ 9.6887954410148893 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.6887954410148893 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.6887954410148893
+ 24 48
+Direct
+ 0.7500000000000000 0.8823479083333333 0.6176437500000000 # 11
+ 0.2500000000000000 0.3823479083333334 0.1176437500000000 # 12
+ 0.1176500000000000 0.7499979083333334 0.6176437500000000 # 13
+ 0.6176500000000000 0.2499979083333334 0.1176437500000000 # 14
+ 0.2500000000000000 0.1176479083333333 0.6176437500000000 # 15
+ 0.7500000000000000 0.6176479083333334 0.1176437500000000 # 16
+ 0.8823500000000000 0.2499979083333334 0.6176437500000000 # 17
+ 0.3823500000000001 0.7499979083333334 0.1176437500000000 # 18
+ 0.7500000000000000 0.3823479083333334 0.8823437500000000 # 19
+ 0.2500000000000000 0.8823479083333333 0.3823437500000000 # 110
+ 0.7500000000000000 0.1176479083333333 0.3823437500000000 # 111
+ 0.2500000000000000 0.6176479083333334 0.8823437500000000 # 112
+ 0.6176500000000000 0.8823479083333333 0.2499937500000000 # 113
+ 0.1176500000000000 0.3823479083333334 0.7499937500000000 # 114
+ 0.3823500000000001 0.8823479083333333 0.7499937500000000 # 115
+ 0.8823500000000000 0.3823479083333334 0.2499937500000000 # 116
+ 0.6176500000000000 0.7499979083333334 0.8823437500000000 # 117
+ 0.1176500000000000 0.2499979083333334 0.3823437500000000 # 118
+ 0.8823500000000000 0.6176479083333334 0.7499937500000000 # 119
+ 0.3823500000000001 0.1176479083333333 0.2499937500000000 # 120
+ 0.1176500000000000 0.6176479083333334 0.2499937500000000 # 121
+ 0.6176500000000000 0.1176479083333333 0.7499937500000000 # 122
+ 0.3823500000000001 0.2499979083333334 0.8823437500000000 # 123
+ 0.8823500000000000 0.7499979083333334 0.3823437500000000 # 124
+ 0.3733000000000001 0.3732979083333333 0.9999937500000000 # 21
+ 0.3413500000000000 0.2499979083333334 0.1586437500000000 # 22
+ 0.8733000000000000 0.8732979083333333 0.4999937500000000 # 23
+ 0.8413500000000000 0.7499979083333334 0.6586437500000000 # 24
+ 0.6267000000000000 0.3732979083333333 0.9999937500000000 # 25
+ 0.7500000000000000 0.3413479083333334 0.1586437500000000 # 26
+ 0.1267000000000000 0.8732979083333333 0.4999937500000000 # 27
+ 0.2500000000000000 0.8413479083333334 0.6586437500000000 # 28
+ 0.6267000000000000 0.6266979083333334 0.9999937500000000 # 29
+ 0.6586500000000000 0.7499979083333334 0.1586437500000000 # 210
+ 0.1267000000000000 0.1266979083333333 0.4999937500000000 # 211
+ 0.1586500000000000 0.2499979083333334 0.6586437500000000 # 212
+ 0.3733000000000001 0.6266979083333334 0.9999937500000000 # 213
+ 0.2500000000000000 0.6586479083333333 0.1586437500000000 # 214
+ 0.8733000000000000 0.1266979083333333 0.4999937500000000 # 215
+ 0.7500000000000000 0.1586479083333333 0.6586437500000000 # 216
+ 0.3733000000000001 0.9999979083333334 0.3732937500000000 # 217
+ 0.3413500000000000 0.8413479083333334 0.2499937500000000 # 218
+ 0.8733000000000000 0.4999979083333334 0.8732937500000000 # 219
+ 0.8413500000000000 0.3413479083333334 0.7499937500000000 # 220
+ 0.3413500000000000 0.7499979083333334 0.8413437500000001 # 221
+ 0.8413500000000000 0.2499979083333334 0.3413437500000000 # 222
+ 0.3733000000000001 0.9999979083333334 0.6266937500000000 # 223
+ 0.3413500000000000 0.1586479083333333 0.7499937500000000 # 224
+ 0.8733000000000000 0.4999979083333334 0.1266937500000000 # 225
+ 0.8413500000000000 0.6586479083333333 0.2499937500000000 # 226
+ 0.0000000000000000 0.3732979083333333 0.6266937500000000 # 227
+ 0.5000000000000000 0.8732979083333333 0.1266937500000000 # 228
+ 0.6586500000000000 0.2499979083333334 0.8413437500000001 # 229
+ 0.1586500000000000 0.7499979083333334 0.3413437500000000 # 230
+ 0.0000000000000000 0.3732979083333333 0.3732937500000000 # 231
+ 0.5000000000000000 0.8732979083333333 0.8732937500000000 # 232
+ 0.1586500000000000 0.3413479083333334 0.2499937500000000 # 233
+ 0.6586500000000000 0.8413479083333334 0.7499937500000000 # 234
+ 0.2500000000000000 0.1586479083333333 0.3413437500000000 # 235
+ 0.7500000000000000 0.6586479083333333 0.8413437500000001 # 236
+ 0.6267000000000000 0.9999979083333334 0.3732937500000000 # 237
+ 0.7500000000000000 0.8413479083333334 0.3413437500000000 # 238
+ 0.1267000000000000 0.4999979083333334 0.8732937500000000 # 239
+ 0.2500000000000000 0.3413479083333334 0.8413437500000001 # 240
+ 0.0000000000000000 0.6266979083333334 0.6266937500000000 # 241
+ 0.1586500000000000 0.6586479083333333 0.7499937500000000 # 242
+ 0.5000000000000000 0.1266979083333333 0.1266937500000000 # 243
+ 0.6586500000000000 0.1586479083333333 0.2499937500000000 # 244
+ 0.6267000000000000 0.9999979083333334 0.6266937500000000 # 245
+ 0.1267000000000000 0.4999979083333334 0.1266937500000000 # 246
+ 0.0000000000000000 0.6266979083333334 0.3732937500000000 # 247
+ 0.5000000000000000 0.1266979083333333 0.8732937500000000 # 248
diff --git a/test/data/cubic/POSCAR-212 b/test/data/cubic/POSCAR-212
new file mode 100644
index 0000000..a15a877
--- /dev/null
+++ b/test/data/cubic/POSCAR-212
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 6.7149968403120077 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.7149968403120077 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.7149968403120077
+ 4 8
+Direct
+ 0.1249999999999997 0.1249999999999997 0.1249999999999997 # Ba1
+ 0.6250000000000001 0.3749999999999999 0.8750000000000003 # Ba2
+ 0.3749999999999999 0.8750000000000003 0.6250000000000001 # Ba3
+ 0.8750000000000003 0.6250000000000001 0.3749999999999999 # Ba4
+ 0.4190000000000000 0.4190000000000000 0.4190000000000000 # Si1
+ 0.3309999999999998 0.6690000000000004 0.1689999999999998 # Si2
+ 0.0810000000000004 0.5810000000000001 0.9190000000000005 # Si3
+ 0.1689999999999998 0.3309999999999998 0.6690000000000004 # Si4
+ 0.9190000000000005 0.0810000000000004 0.5810000000000001 # Si5
+ 0.6690000000000004 0.1689999999999998 0.3309999999999998 # Si6
+ 0.5810000000000001 0.9190000000000005 0.0810000000000004 # Si7
+ 0.8310000000000003 0.8310000000000003 0.8310000000000003 # Si8
diff --git a/test/data/cubic/POSCAR-212-2 b/test/data/cubic/POSCAR-212-2
new file mode 100644
index 0000000..a15a877
--- /dev/null
+++ b/test/data/cubic/POSCAR-212-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 6.7149968403120077 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.7149968403120077 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.7149968403120077
+ 4 8
+Direct
+ 0.1249999999999997 0.1249999999999997 0.1249999999999997 # Ba1
+ 0.6250000000000001 0.3749999999999999 0.8750000000000003 # Ba2
+ 0.3749999999999999 0.8750000000000003 0.6250000000000001 # Ba3
+ 0.8750000000000003 0.6250000000000001 0.3749999999999999 # Ba4
+ 0.4190000000000000 0.4190000000000000 0.4190000000000000 # Si1
+ 0.3309999999999998 0.6690000000000004 0.1689999999999998 # Si2
+ 0.0810000000000004 0.5810000000000001 0.9190000000000005 # Si3
+ 0.1689999999999998 0.3309999999999998 0.6690000000000004 # Si4
+ 0.9190000000000005 0.0810000000000004 0.5810000000000001 # Si5
+ 0.6690000000000004 0.1689999999999998 0.3309999999999998 # Si6
+ 0.5810000000000001 0.9190000000000005 0.0810000000000004 # Si7
+ 0.8310000000000003 0.8310000000000003 0.8310000000000003 # Si8
diff --git a/test/data/cubic/POSCAR-213 b/test/data/cubic/POSCAR-213
new file mode 100644
index 0000000..d5c6c79
--- /dev/null
+++ b/test/data/cubic/POSCAR-213
@@ -0,0 +1,79 @@
+$cell vectors
+1.0
+ 10.2799951628305930 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.2799951628305930 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.2799951628305930
+ 20 4 48
+Direct
+ 0.1250000000000002 0.1989000000000002 0.4489000000000000 # Te1
+ 0.0521000000000001 0.0521000000000001 0.0521000000000001 # Te2
+ 0.0511000000000002 0.8749999999999999 0.6988999999999999 # Te3
+ 0.1979000000000003 0.8021000000000001 0.3020999999999999 # Te4
+ 0.4479000000000001 0.9478999999999996 0.5521000000000004 # Te5
+ 0.4489000000000000 0.1250000000000002 0.1988999999999997 # Te6
+ 0.3750000000000000 0.8011000000000003 0.9488999999999999 # Te7
+ 0.3020999999999999 0.1979000000000003 0.8021000000000001 # Te8
+ 0.6249999999999998 0.3011000000000000 0.5511000000000005 # Te9
+ 0.5521000000000004 0.4479000000000001 0.9478999999999996 # Te10
+ 0.8749999999999999 0.6988999999999999 0.0511000000000002 # Te11
+ 0.8020999999999996 0.3020999999999999 0.1978999999999998 # Te12
+ 0.1989000000000002 0.4489000000000000 0.1250000000000002 # Te13
+ 0.9478999999999996 0.5521000000000004 0.4479000000000001 # Te14
+ 0.8011000000000003 0.9488999999999999 0.3750000000000000 # Te15
+ 0.3011000000000000 0.5510999999999998 0.6249999999999998 # Te16
+ 0.9489000000000002 0.3750000000000000 0.8011000000000003 # Te17
+ 0.5510999999999998 0.6249999999999998 0.3011000000000000 # Te18
+ 0.6988999999999999 0.0511000000000002 0.8749999999999999 # Te19
+ 0.6979000000000000 0.6979000000000000 0.6979000000000000 # Te20
+ 0.3750000000000000 0.3750000000000000 0.3750000000000000 # Ca1
+ 0.1250000000000002 0.6249999999999998 0.8749999999999999 # Ca2
+ 0.6249999999999998 0.8749999999999999 0.1250000000000002 # Ca3
+ 0.8749999999999999 0.1250000000000002 0.6249999999999998 # Ca4
+ 0.2719999999999999 0.9530000000000001 0.1204999999999997 # Al1
+ 0.7426000000000004 0.7134000000000003 0.4445000000000002 # Al2
+ 0.2970000000000002 0.0220000000000000 0.3705000000000001 # Al3
+ 0.5366000000000001 0.4926000000000000 0.6945000000000000 # Al4
+ 0.2279999999999998 0.0469999999999999 0.6204999999999999 # Al5
+ 0.7573999999999997 0.2866000000000002 0.9445000000000000 # Al6
+ 0.2030000000000000 0.9780000000000004 0.8705000000000003 # Al7
+ 0.9633999999999999 0.5073999999999999 0.1944999999999998 # Al8
+ 0.5220000000000004 0.1295000000000001 0.7029999999999996 # Al9
+ 0.9926000000000004 0.8055000000000001 0.4633999999999999 # Al10
+ 0.7720000000000001 0.5470000000000000 0.8794999999999997 # Al11
+ 0.2426000000000001 0.7865999999999999 0.5555000000000003 # Al12
+ 0.0220000000000000 0.3705000000000001 0.2970000000000002 # Al13
+ 0.4926000000000000 0.6945000000000000 0.5366000000000001 # Al14
+ 0.8704999999999998 0.2030000000000000 0.9779999999999999 # Al15
+ 0.1945000000000003 0.9633999999999999 0.5073999999999999 # Al16
+ 0.7280000000000000 0.4529999999999999 0.3794999999999999 # Al17
+ 0.2574000000000001 0.2134000000000000 0.0555000000000001 # Al18
+ 0.1295000000000001 0.7030000000000002 0.5219999999999997 # Al19
+ 0.8055000000000001 0.4633999999999999 0.9926000000000004 # Al20
+ 0.1205000000000002 0.2720000000000004 0.9530000000000001 # Al21
+ 0.4445000000000002 0.7426000000000004 0.7134000000000003 # Al22
+ 0.9530000000000001 0.1205000000000002 0.2719999999999999 # Al23
+ 0.7134000000000003 0.4445000000000002 0.7425999999999999 # Al24
+ 0.5470000000000000 0.8794999999999997 0.7720000000000001 # Al25
+ 0.7865999999999999 0.5555000000000003 0.2426000000000001 # Al26
+ 0.6204999999999999 0.2279999999999998 0.0469999999999999 # Al27
+ 0.9445000000000000 0.7573999999999997 0.2865999999999997 # Al28
+ 0.0469999999999999 0.6204999999999999 0.2279999999999998 # Al29
+ 0.2866000000000002 0.9445000000000000 0.7573999999999997 # Al30
+ 0.3794999999999999 0.7280000000000000 0.4529999999999999 # Al31
+ 0.0555000000000001 0.2574000000000001 0.2134000000000000 # Al32
+ 0.8794999999999997 0.7720000000000001 0.5470000000000000 # Al33
+ 0.5555000000000003 0.2426000000000001 0.7865999999999999 # Al34
+ 0.4529999999999999 0.3794999999999999 0.7280000000000000 # Al35
+ 0.2134000000000000 0.0555000000000001 0.2574000000000001 # Al36
+ 0.7029999999999996 0.5220000000000004 0.1295000000000001 # Al37
+ 0.4634000000000004 0.9926000000000004 0.8055000000000001 # Al38
+ 0.7969999999999998 0.4780000000000001 0.6294999999999998 # Al39
+ 0.0365999999999999 0.0074000000000002 0.3054999999999999 # Al40
+ 0.9779999999999999 0.8704999999999998 0.2030000000000000 # Al41
+ 0.5073999999999999 0.1945000000000003 0.9633999999999999 # Al42
+ 0.4780000000000001 0.6294999999999998 0.7969999999999998 # Al43
+ 0.0074000000000002 0.3054999999999999 0.0365999999999999 # Al44
+ 0.3705000000000001 0.2970000000000002 0.0220000000000000 # Al45
+ 0.6945000000000000 0.5366000000000001 0.4926000000000000 # Al46
+ 0.6294999999999998 0.7969999999999998 0.4780000000000001 # Al47
+ 0.3054999999999999 0.0365999999999999 0.0074000000000002 # Al48
diff --git a/test/data/cubic/POSCAR-213-2 b/test/data/cubic/POSCAR-213-2
new file mode 100644
index 0000000..05fa43a
--- /dev/null
+++ b/test/data/cubic/POSCAR-213-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 7.9359962657805072 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.9359962657805072 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.9359962657805072
+ 4 8 20
+Direct
+ 0.3750000000000002 0.3750000000000002 0.3750000000000002 # Cs1
+ 0.8749999999999996 0.1249999999999998 0.6249999999999998 # Cs2
+ 0.1249999999999998 0.6249999999999998 0.8749999999999996 # Cs3
+ 0.6249999999999998 0.8749999999999996 0.1249999999999998 # Cs4
+ 0.1005999999999999 0.1005999999999999 0.1005999999999999 # Be1
+ 0.1493999999999998 0.8505999999999996 0.3506000000000003 # Be2
+ 0.3994000000000001 0.8994000000000001 0.6006000000000000 # Be3
+ 0.3506000000000003 0.1493999999999998 0.8505999999999996 # Be4
+ 0.6006000000000000 0.3994000000000001 0.8994000000000001 # Be5
+ 0.8505999999999996 0.3506000000000003 0.1493999999999998 # Be6
+ 0.8994000000000001 0.6006000000000000 0.3994000000000001 # Be7
+ 0.6493999999999999 0.6493999999999999 0.6493999999999999 # Be8
+ 0.9910000000000002 0.9910000000000002 0.9909999999999994 # F1
+ 0.1249999999999998 0.0328999999999999 0.2828999999999996 # F2
+ 0.2590000000000003 0.7409999999999998 0.2409999999999997 # F3
+ 0.2170999999999997 0.8750000000000001 0.5328999999999999 # F4
+ 0.5089999999999999 0.0089999999999999 0.4910000000000000 # F5
+ 0.3750000000000002 0.9671000000000002 0.7828999999999997 # F6
+ 0.2410000000000004 0.2590000000000003 0.7409999999999998 # F7
+ 0.2828999999999996 0.1249999999999998 0.0328999999999999 # F8
+ 0.4910000000000000 0.5089999999999999 0.0089999999999999 # F9
+ 0.6249999999999998 0.4671000000000001 0.7170999999999997 # F10
+ 0.7409999999999998 0.2409999999999997 0.2589999999999996 # F11
+ 0.8749999999999996 0.5328999999999999 0.2170999999999997 # F12
+ 0.0328999999999999 0.2828999999999996 0.1249999999999998 # F13
+ 0.0089999999999999 0.4910000000000000 0.5089999999999999 # F14
+ 0.9671000000000002 0.7828999999999997 0.3750000000000002 # F15
+ 0.4671000000000001 0.7170999999999997 0.6249999999999998 # F16
+ 0.7828999999999997 0.3750000000000002 0.9670999999999995 # F17
+ 0.7170999999999997 0.6249999999999998 0.4671000000000001 # F18
+ 0.5328999999999999 0.2170999999999997 0.8749999999999996 # F19
+ 0.7589999999999995 0.7589999999999995 0.7589999999999995 # F20
diff --git a/test/data/cubic/POSCAR-214 b/test/data/cubic/POSCAR-214
new file mode 100644
index 0000000..3ef9651
--- /dev/null
+++ b/test/data/cubic/POSCAR-214
@@ -0,0 +1,839 @@
+$cell vectors
+1.0
+ 21.7599897610110631 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 21.7599897610110631 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 21.7599897610110631
+ 256 576
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2499999999999999 # U1
+ 0.5000000000000000 0.0000000000000000 0.2499999999999999 # U2
+ 0.0000000000000000 0.1249999999999999 0.1249999999999999 # U3
+ 0.5000000000000000 0.1249999999999999 0.1249999999999999 # U4
+ 0.0000000000000000 0.6250000000000000 0.1249999999999999 # U5
+ 0.0000000000000000 0.1249999999999999 0.6250000000000000 # U6
+ 0.9879999999999997 0.9880000000000000 0.9879999999999997 # U7
+ 0.5000000000000000 0.5000000000000000 0.7499999999999999 # U8
+ 0.0000000000000000 0.5000000000000000 0.7499999999999999 # U9
+ 0.5000000000000000 0.6250000000000000 0.6250000000000000 # U10
+ 0.0000000000000000 0.6250000000000000 0.6250000000000000 # U11
+ 0.5000000000000000 0.1249999999999999 0.6250000000000000 # U12
+ 0.5000000000000000 0.6250000000000000 0.1249999999999999 # U13
+ 0.4880000000000000 0.4880000000000000 0.4880000000000000 # U14
+ 0.2500000000000001 0.7499999999999999 0.5000000000000000 # U15
+ 0.2500000000000001 0.2500000000000001 0.5000000000000000 # U16
+ 0.1249999999999999 0.7499999999999999 0.3749999999999998 # U17
+ 0.1249999999999999 0.2500000000000001 0.3749999999999998 # U18
+ 0.6250000000000000 0.7499999999999999 0.3749999999999998 # U19
+ 0.1250000000000002 0.7500000000000002 0.8750000000000001 # U20
+ 0.2619999999999999 0.7380000000000000 0.2380000000000001 # U21
+ 0.7499999999999999 0.2499999999999999 0.0000000000000000 # U22
+ 0.7499999999999999 0.7499999999999999 0.0000000000000000 # U23
+ 0.6250000000000000 0.2500000000000001 0.8750000000000001 # U24
+ 0.6250000000000002 0.7500000000000002 0.8750000000000001 # U25
+ 0.1250000000000002 0.2500000000000001 0.8750000000000001 # U26
+ 0.6250000000000000 0.2500000000000001 0.3749999999999998 # U27
+ 0.7620000000000000 0.2380000000000001 0.7380000000000000 # U28
+ 0.0000000000000000 0.5000000000000000 0.2499999999999999 # U29
+ 0.5000000000000000 0.5000000000000000 0.2499999999999999 # U30
+ 0.0000000000000000 0.3749999999999998 0.1249999999999999 # U31
+ 0.5000000000000000 0.3749999999999998 0.1249999999999999 # U32
+ 0.0000000000000000 0.8750000000000001 0.1249999999999999 # U33
+ 0.0000000000000000 0.3750000000000001 0.6250000000000000 # U34
+ 0.0120000000000000 0.5120000000000000 0.9879999999999997 # U35
+ 0.5000000000000000 0.0000000000000000 0.7499999999999999 # U36
+ 0.0000000000000000 0.0000000000000000 0.7499999999999999 # U37
+ 0.5000000000000000 0.8750000000000001 0.6250000000000000 # U38
+ 0.0000000000000000 0.8750000000000001 0.6250000000000000 # U39
+ 0.5000000000000000 0.3750000000000001 0.6250000000000000 # U40
+ 0.5000000000000000 0.8750000000000001 0.1249999999999999 # U41
+ 0.5120000000000000 0.0120000000000000 0.4880000000000000 # U42
+ 0.2499999999999999 0.2499999999999999 0.0000000000000000 # U43
+ 0.2500000000000001 0.7499999999999999 0.0000000000000000 # U44
+ 0.3750000000000001 0.2500000000000001 0.8750000000000001 # U45
+ 0.3750000000000001 0.7500000000000002 0.8750000000000001 # U46
+ 0.8750000000000001 0.2500000000000001 0.8750000000000001 # U47
+ 0.3749999999999998 0.2500000000000001 0.3749999999999998 # U48
+ 0.2380000000000001 0.2620000000000002 0.7380000000000000 # U49
+ 0.7499999999999999 0.7499999999999999 0.5000000000000000 # U50
+ 0.7499999999999999 0.2500000000000001 0.5000000000000000 # U51
+ 0.8750000000000001 0.7499999999999999 0.3749999999999998 # U52
+ 0.8750000000000001 0.2500000000000001 0.3749999999999998 # U53
+ 0.3750000000000001 0.7499999999999999 0.3749999999999998 # U54
+ 0.8750000000000001 0.7500000000000002 0.8750000000000001 # U55
+ 0.7380000000000000 0.7620000000000000 0.2380000000000001 # U56
+ 0.2500000000000001 0.0000000000000000 0.7499999999999999 # U57
+ 0.7499999999999999 0.0000000000000000 0.7499999999999999 # U58
+ 0.2500000000000001 0.1250000000000002 0.8750000000000001 # U59
+ 0.7499999999999999 0.1250000000000002 0.8750000000000001 # U60
+ 0.2500000000000001 0.1249999999999999 0.3749999999999998 # U61
+ 0.2500000000000001 0.6250000000000000 0.8750000000000001 # U62
+ 0.7499999999999999 0.5000000000000000 0.2499999999999999 # U63
+ 0.2500000000000001 0.5000000000000000 0.2499999999999999 # U64
+ 0.7499999999999999 0.6250000000000000 0.3749999999999998 # U65
+ 0.2500000000000001 0.6250000000000000 0.3749999999999998 # U66
+ 0.7499999999999999 0.6250000000000000 0.8750000000000001 # U67
+ 0.7499999999999999 0.1249999999999999 0.3749999999999998 # U68
+ 0.0000000000000000 0.8750000000000001 0.3749999999999998 # U69
+ 0.5000000000000000 0.8750000000000001 0.3749999999999998 # U70
+ 0.0000000000000000 0.3750000000000001 0.3749999999999998 # U71
+ 0.0000000000000000 0.8750000000000002 0.8750000000000001 # U72
+ 0.9879999999999997 0.0120000000000000 0.5120000000000000 # U73
+ 0.5000000000000000 0.3750000000000001 0.8750000000000001 # U74
+ 0.0000000000000000 0.3750000000000001 0.8750000000000001 # U75
+ 0.5000000000000003 0.8750000000000002 0.8750000000000001 # U76
+ 0.5000000000000000 0.3750000000000001 0.3749999999999998 # U77
+ 0.4880000000000000 0.5120000000000000 0.0120000000000000 # U78
+ 0.7499999999999999 0.3749999999999998 0.1249999999999999 # U79
+ 0.2500000000000001 0.3749999999999998 0.1249999999999999 # U80
+ 0.7499999999999999 0.3750000000000001 0.6250000000000000 # U81
+ 0.7499999999999999 0.8750000000000001 0.1249999999999999 # U82
+ 0.7380000000000000 0.2380000000000001 0.2619999999999999 # U83
+ 0.2500000000000001 0.8750000000000001 0.6250000000000000 # U84
+ 0.7499999999999999 0.8750000000000001 0.6250000000000000 # U85
+ 0.2500000000000001 0.8750000000000001 0.1249999999999999 # U86
+ 0.2500000000000001 0.3750000000000001 0.6250000000000000 # U87
+ 0.2380000000000001 0.7380000000000001 0.7620000000000000 # U88
+ 0.0000000000000000 0.2500000000000001 0.2499999999999999 # U89
+ 0.0000000000000000 0.2500000000000001 0.7499999999999999 # U90
+ 0.8750000000000001 0.3749999999999998 0.2499999999999999 # U91
+ 0.8750000000000001 0.3750000000000001 0.7499999999999999 # U92
+ 0.8750000000000001 0.8750000000000001 0.2499999999999999 # U93
+ 0.3749999999999998 0.3749999999999998 0.2499999999999999 # U94
+ 0.5000000000000003 0.7500000000000002 0.7499999999999999 # U95
+ 0.5000000000000000 0.7499999999999999 0.2499999999999999 # U96
+ 0.3750000000000001 0.8750000000000002 0.7499999999999999 # U97
+ 0.3750000000000001 0.8750000000000001 0.2499999999999999 # U98
+ 0.3750000000000001 0.3750000000000001 0.7499999999999999 # U99
+ 0.8750000000000001 0.8750000000000002 0.7499999999999999 # U100
+ 0.5000000000000000 0.1250000000000002 0.8750000000000001 # U101
+ 0.0000000000000000 0.1250000000000002 0.8750000000000001 # U102
+ 0.5000000000000000 0.6250000000000000 0.8750000000000001 # U103
+ 0.5000000000000000 0.1249999999999999 0.3749999999999998 # U104
+ 0.5120000000000000 0.9879999999999997 0.0120000000000000 # U105
+ 0.0000000000000000 0.6250000000000000 0.3749999999999998 # U106
+ 0.5000000000000000 0.6250000000000000 0.3749999999999998 # U107
+ 0.0000000000000000 0.1249999999999999 0.3749999999999998 # U108
+ 0.0000000000000000 0.6250000000000000 0.8750000000000001 # U109
+ 0.0120000000000000 0.4880000000000000 0.5120000000000000 # U110
+ 0.0000000000000000 0.7499999999999999 0.2499999999999999 # U111
+ 0.0000000000000000 0.7500000000000002 0.7499999999999999 # U112
+ 0.1250000000000002 0.8750000000000001 0.2499999999999999 # U113
+ 0.1250000000000002 0.8750000000000002 0.7499999999999999 # U114
+ 0.1249999999999999 0.3749999999999998 0.2499999999999999 # U115
+ 0.6250000000000000 0.8750000000000001 0.2499999999999999 # U116
+ 0.5000000000000000 0.2500000000000001 0.7499999999999999 # U117
+ 0.5000000000000000 0.2500000000000001 0.2499999999999999 # U118
+ 0.6250000000000000 0.3750000000000001 0.7499999999999999 # U119
+ 0.6250000000000000 0.3749999999999998 0.2499999999999999 # U120
+ 0.6250000000000002 0.8750000000000002 0.7499999999999999 # U121
+ 0.1249999999999999 0.3750000000000001 0.7499999999999999 # U122
+ 0.2499999999999999 0.0000000000000000 0.0000000000000000 # U123
+ 0.2500000000000001 0.5000000000000000 0.0000000000000000 # U124
+ 0.1249999999999999 0.0000000000000000 0.1249999999999999 # U125
+ 0.1249999999999999 0.5000000000000000 0.1249999999999999 # U126
+ 0.1249999999999999 0.0000000000000000 0.6250000000000000 # U127
+ 0.6250000000000000 0.0000000000000000 0.1249999999999999 # U128
+ 0.7499999999999999 0.5000000000000000 0.5000000000000000 # U129
+ 0.7499999999999999 0.0000000000000000 0.5000000000000000 # U130
+ 0.6250000000000000 0.5000000000000000 0.6250000000000000 # U131
+ 0.6250000000000000 0.0000000000000000 0.6250000000000000 # U132
+ 0.6250000000000000 0.5000000000000000 0.1249999999999999 # U133
+ 0.1250000000000002 0.5000000000000000 0.6250000000000000 # U134
+ 0.0000000000000000 0.2499999999999999 0.0000000000000000 # U135
+ 0.0000000000000000 0.2500000000000001 0.5000000000000000 # U136
+ 0.1249999999999999 0.1249999999999999 0.0000000000000000 # U137
+ 0.1249999999999999 0.1249999999999999 0.5000000000000000 # U138
+ 0.6250000000000000 0.1249999999999999 0.0000000000000000 # U139
+ 0.1249999999999999 0.6250000000000000 0.0000000000000000 # U140
+ 0.5000000000000000 0.7499999999999999 0.5000000000000000 # U141
+ 0.5000000000000000 0.7499999999999999 0.0000000000000000 # U142
+ 0.6250000000000000 0.6250000000000000 0.5000000000000000 # U143
+ 0.6250000000000000 0.6250000000000000 0.0000000000000000 # U144
+ 0.1250000000000002 0.6250000000000000 0.5000000000000000 # U145
+ 0.6250000000000000 0.1249999999999999 0.5000000000000000 # U146
+ 0.8750000000000001 0.3749999999999998 0.0000000000000000 # U147
+ 0.8750000000000001 0.3750000000000001 0.5000000000000000 # U148
+ 0.3749999999999998 0.3749999999999998 0.0000000000000000 # U149
+ 0.8750000000000001 0.8750000000000001 0.0000000000000000 # U150
+ 0.3750000000000001 0.8750000000000001 0.5000000000000000 # U151
+ 0.3750000000000001 0.8750000000000001 0.0000000000000000 # U152
+ 0.8750000000000001 0.8750000000000001 0.5000000000000000 # U153
+ 0.3749999999999998 0.3750000000000001 0.5000000000000000 # U154
+ 0.2500000000000001 0.0000000000000000 0.5000000000000000 # U155
+ 0.2500000000000001 0.5000000000000000 0.5000000000000000 # U156
+ 0.1249999999999999 0.0000000000000000 0.3749999999999998 # U157
+ 0.1249999999999999 0.5000000000000000 0.3749999999999998 # U158
+ 0.1249999999999999 0.0000000000000000 0.8750000000000001 # U159
+ 0.6250000000000000 0.0000000000000000 0.3749999999999998 # U160
+ 0.7499999999999999 0.5000000000000000 0.0000000000000000 # U161
+ 0.7499999999999999 0.0000000000000000 0.0000000000000000 # U162
+ 0.6250000000000000 0.5000000000000000 0.8750000000000001 # U163
+ 0.6250000000000000 0.0000000000000000 0.8750000000000001 # U164
+ 0.6250000000000000 0.5000000000000000 0.3749999999999998 # U165
+ 0.1250000000000002 0.5000000000000000 0.8750000000000001 # U166
+ 0.5000000000000000 0.2499999999999999 0.0000000000000000 # U167
+ 0.5000000000000000 0.2500000000000001 0.5000000000000000 # U168
+ 0.3749999999999998 0.1249999999999999 0.0000000000000000 # U169
+ 0.3749999999999998 0.1249999999999999 0.5000000000000000 # U170
+ 0.8750000000000001 0.1249999999999999 0.0000000000000000 # U171
+ 0.3749999999999998 0.6250000000000000 0.0000000000000000 # U172
+ 0.0000000000000000 0.7499999999999999 0.5000000000000000 # U173
+ 0.0000000000000000 0.7499999999999999 0.0000000000000000 # U174
+ 0.8750000000000001 0.6250000000000000 0.5000000000000000 # U175
+ 0.8750000000000001 0.6250000000000000 0.0000000000000000 # U176
+ 0.3749999999999998 0.6250000000000000 0.5000000000000000 # U177
+ 0.8750000000000001 0.1249999999999999 0.5000000000000000 # U178
+ 0.8750000000000001 0.5000000000000000 0.1249999999999999 # U179
+ 0.8750000000000001 0.0000000000000000 0.1249999999999999 # U180
+ 0.8750000000000001 0.5000000000000000 0.6250000000000000 # U181
+ 0.3749999999999998 0.5000000000000000 0.1249999999999999 # U182
+ 0.3749999999999998 0.0000000000000000 0.6250000000000000 # U183
+ 0.3749999999999998 0.5000000000000000 0.6250000000000000 # U184
+ 0.3749999999999998 0.0000000000000000 0.1249999999999999 # U185
+ 0.8750000000000001 0.0000000000000000 0.6250000000000000 # U186
+ 0.3750000000000001 0.0000000000000000 0.8750000000000001 # U187
+ 0.3750000000000001 0.5000000000000000 0.8750000000000001 # U188
+ 0.3749999999999998 0.0000000000000000 0.3749999999999998 # U189
+ 0.8750000000000001 0.0000000000000000 0.8750000000000001 # U190
+ 0.8750000000000001 0.5000000000000000 0.3749999999999998 # U191
+ 0.8750000000000001 0.0000000000000000 0.3749999999999998 # U192
+ 0.8750000000000001 0.5000000000000000 0.8750000000000001 # U193
+ 0.3749999999999998 0.5000000000000000 0.3749999999999998 # U194
+ 0.1250000000000002 0.8750000000000001 0.5000000000000000 # U195
+ 0.1249999999999999 0.8750000000000001 0.0000000000000000 # U196
+ 0.6250000000000000 0.8750000000000001 0.5000000000000000 # U197
+ 0.1249999999999999 0.3750000000000001 0.5000000000000000 # U198
+ 0.6250000000000000 0.3749999999999998 0.0000000000000000 # U199
+ 0.6250000000000000 0.3750000000000001 0.5000000000000000 # U200
+ 0.1249999999999999 0.3749999999999998 0.0000000000000000 # U201
+ 0.6250000000000000 0.8750000000000001 0.0000000000000000 # U202
+ 0.8750000000000001 0.2499999999999999 0.1249999999999999 # U203
+ 0.8750000000000001 0.7499999999999999 0.1249999999999999 # U204
+ 0.3749999999999998 0.2499999999999999 0.1249999999999999 # U205
+ 0.8750000000000001 0.2500000000000001 0.6250000000000000 # U206
+ 0.3750000000000001 0.7499999999999999 0.6250000000000000 # U207
+ 0.3749999999999998 0.2500000000000001 0.6250000000000000 # U208
+ 0.8750000000000001 0.7499999999999999 0.6250000000000000 # U209
+ 0.3750000000000001 0.7499999999999999 0.1249999999999999 # U210
+ 0.1249999999999999 0.2499999999999999 0.1249999999999999 # U211
+ 0.1249999999999999 0.7499999999999999 0.1249999999999999 # U212
+ 0.6250000000000000 0.2499999999999999 0.1249999999999999 # U213
+ 0.1249999999999999 0.2500000000000001 0.6250000000000000 # U214
+ 0.2619999999999999 0.2619999999999999 0.2619999999999999 # U215
+ 0.6250000000000000 0.7499999999999999 0.6250000000000000 # U216
+ 0.6250000000000000 0.2500000000000001 0.6250000000000000 # U217
+ 0.1250000000000002 0.7499999999999999 0.6250000000000000 # U218
+ 0.6250000000000000 0.7499999999999999 0.1249999999999999 # U219
+ 0.7620000000000000 0.7620000000000002 0.7620000000000000 # U220
+ 0.2499999999999999 0.0000000000000000 0.2499999999999999 # U221
+ 0.7499999999999999 0.0000000000000000 0.2499999999999999 # U222
+ 0.2500000000000001 0.8750000000000001 0.3749999999999998 # U223
+ 0.7499999999999999 0.8750000000000001 0.3749999999999998 # U224
+ 0.2500000000000001 0.8750000000000002 0.8750000000000001 # U225
+ 0.2500000000000001 0.3750000000000001 0.3749999999999998 # U226
+ 0.7499999999999999 0.5000000000000000 0.7499999999999999 # U227
+ 0.2500000000000001 0.5000000000000000 0.7499999999999999 # U228
+ 0.7499999999999999 0.3750000000000001 0.8750000000000001 # U229
+ 0.2500000000000001 0.3750000000000001 0.8750000000000001 # U230
+ 0.7499999999999999 0.3750000000000001 0.3749999999999998 # U231
+ 0.7499999999999999 0.8750000000000002 0.8750000000000001 # U232
+ 0.2499999999999999 0.1249999999999999 0.1249999999999999 # U233
+ 0.7499999999999999 0.1249999999999999 0.1249999999999999 # U234
+ 0.2500000000000001 0.1249999999999999 0.6250000000000000 # U235
+ 0.2500000000000001 0.6250000000000000 0.1249999999999999 # U236
+ 0.7499999999999999 0.6250000000000000 0.6250000000000000 # U237
+ 0.2500000000000001 0.6250000000000000 0.6250000000000000 # U238
+ 0.7499999999999999 0.6250000000000000 0.1249999999999999 # U239
+ 0.7499999999999999 0.1249999999999999 0.6250000000000000 # U240
+ 0.3750000000000001 0.1250000000000002 0.7499999999999999 # U241
+ 0.3749999999999998 0.1249999999999999 0.2499999999999999 # U242
+ 0.3750000000000001 0.6250000000000000 0.7499999999999999 # U243
+ 0.8750000000000001 0.1250000000000002 0.7499999999999999 # U244
+ 0.8750000000000001 0.6250000000000000 0.2499999999999999 # U245
+ 0.8750000000000001 0.6250000000000000 0.7499999999999999 # U246
+ 0.8750000000000001 0.1249999999999999 0.2499999999999999 # U247
+ 0.3749999999999998 0.6250000000000000 0.2499999999999999 # U248
+ 0.1249999999999999 0.1249999999999999 0.2499999999999999 # U249
+ 0.1249999999999999 0.1250000000000002 0.7499999999999999 # U250
+ 0.1249999999999999 0.6250000000000000 0.2499999999999999 # U251
+ 0.6250000000000000 0.1249999999999999 0.2499999999999999 # U252
+ 0.6250000000000000 0.6250000000000000 0.7499999999999999 # U253
+ 0.6250000000000000 0.6250000000000000 0.2499999999999999 # U254
+ 0.6250000000000000 0.1250000000000002 0.7499999999999999 # U255
+ 0.1250000000000002 0.6250000000000000 0.7499999999999999 # U256
+ 0.6874999999999998 0.4374999999999999 0.1875000000000001 # O1
+ 0.6874999999999998 0.4375000000000001 0.4374999999999999 # O2
+ 0.6875000000000000 0.6874999999999998 0.1875000000000001 # O3
+ 0.6875000000000000 0.6875000000000000 0.4374999999999999 # O4
+ 0.6875000000000000 0.9375000000000001 0.1875000000000001 # O5
+ 0.6875000000000000 0.9375000000000001 0.4374999999999999 # O6
+ 0.9375000000000001 0.4374999999999999 0.1875000000000001 # O7
+ 0.9375000000000001 0.4375000000000001 0.4374999999999999 # O8
+ 0.1875000000000001 0.4374999999999999 0.1875000000000001 # O9
+ 0.1875000000000001 0.4375000000000001 0.4374999999999999 # O10
+ 0.1875000000000001 0.1875000000000001 0.1875000000000001 # O11
+ 0.4374999999999999 0.4375000000000001 0.4374999999999999 # O12
+ 0.1249999999999999 0.1249999999999999 0.1249999999999999 # O13
+ 0.8750000000000001 0.8750000000000002 0.8750000000000001 # O14
+ 0.1249999999999999 0.0000000000000000 0.2499999999999999 # O15
+ 0.6250000000000000 0.0000000000000000 0.2499999999999999 # O16
+ 0.1249999999999999 0.1080000000000001 0.3579999999999999 # O17
+ 0.1875000000000001 0.9375000000000001 0.6874999999999998 # O18
+ 0.1875000000000001 0.9375000000000002 0.9375000000000001 # O19
+ 0.1875000000000001 0.1875000000000001 0.6874999999999998 # O20
+ 0.1875000000000001 0.1875000000000001 0.9375000000000001 # O21
+ 0.1875000000000001 0.4375000000000001 0.6874999999999998 # O22
+ 0.1875000000000001 0.4375000000000001 0.9375000000000001 # O23
+ 0.4375000000000001 0.9375000000000001 0.6874999999999998 # O24
+ 0.4375000000000001 0.9375000000000002 0.9375000000000001 # O25
+ 0.6875000000000000 0.9375000000000001 0.6874999999999998 # O26
+ 0.6875000000000000 0.9375000000000002 0.9375000000000001 # O27
+ 0.6875000000000000 0.6875000000000000 0.6874999999999998 # O28
+ 0.9375000000000001 0.9375000000000002 0.9375000000000001 # O29
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000 # O30
+ 0.3749999999999998 0.3750000000000001 0.3749999999999998 # O31
+ 0.6250000000000000 0.5000000000000000 0.7499999999999999 # O32
+ 0.1250000000000002 0.5000000000000000 0.7499999999999999 # O33
+ 0.6250000000000000 0.6080000000000001 0.8579999999999999 # O34
+ 0.8125000000000000 0.4375000000000001 0.4374999999999999 # O35
+ 0.8125000000000000 0.4375000000000001 0.6874999999999998 # O36
+ 0.5624999999999999 0.4375000000000001 0.4374999999999999 # O37
+ 0.5625000000000001 0.4375000000000001 0.6874999999999998 # O38
+ 0.3125000000000000 0.4375000000000001 0.4374999999999999 # O39
+ 0.3125000000000000 0.4375000000000001 0.6874999999999998 # O40
+ 0.8125000000000000 0.6875000000000000 0.4374999999999999 # O41
+ 0.8125000000000000 0.6875000000000000 0.6874999999999998 # O42
+ 0.8125000000000000 0.9375000000000001 0.4374999999999999 # O43
+ 0.8125000000000000 0.9375000000000001 0.6874999999999998 # O44
+ 0.0625000000000001 0.9375000000000001 0.4374999999999999 # O45
+ 0.8125000000000000 0.1875000000000001 0.6874999999999998 # O46
+ 0.1250000000000002 0.8750000000000001 0.3749999999999998 # O47
+ 0.3749999999999998 0.6250000000000000 0.1249999999999999 # O48
+ 0.2500000000000001 0.8750000000000001 0.5000000000000000 # O49
+ 0.2500000000000001 0.3750000000000001 0.5000000000000000 # O50
+ 0.1420000000000001 0.8750000000000001 0.6079999999999999 # O51
+ 0.3125000000000000 0.9375000000000002 0.9375000000000001 # O52
+ 0.3125000000000000 0.9375000000000001 0.1875000000000001 # O53
+ 0.0625000000000001 0.9375000000000002 0.9375000000000001 # O54
+ 0.0625000000000001 0.9375000000000001 0.1875000000000001 # O55
+ 0.8125000000000000 0.9375000000000002 0.9375000000000001 # O56
+ 0.8125000000000000 0.9375000000000001 0.1875000000000001 # O57
+ 0.3125000000000000 0.1875000000000001 0.9375000000000001 # O58
+ 0.3125000000000000 0.1875000000000001 0.1875000000000001 # O59
+ 0.3125000000000000 0.4375000000000001 0.9375000000000001 # O60
+ 0.3125000000000000 0.4374999999999999 0.1875000000000001 # O61
+ 0.5625000000000001 0.4375000000000001 0.9375000000000001 # O62
+ 0.3125000000000000 0.6874999999999998 0.1875000000000001 # O63
+ 0.6250000000000000 0.3750000000000001 0.8750000000000001 # O64
+ 0.8750000000000001 0.1249999999999999 0.6250000000000000 # O65
+ 0.7499999999999999 0.3749999999999998 0.0000000000000000 # O66
+ 0.7499999999999999 0.8750000000000001 0.0000000000000000 # O67
+ 0.6419999999999998 0.3749999999999998 0.1080000000000001 # O68
+ 0.3125000000000000 0.0625000000000001 0.1875000000000001 # O69
+ 0.3125000000000000 0.0625000000000001 0.4374999999999999 # O70
+ 0.3125000000000000 0.8125000000000000 0.1875000000000001 # O71
+ 0.3125000000000000 0.8125000000000000 0.4374999999999999 # O72
+ 0.3125000000000000 0.5624999999999999 0.1875000000000001 # O73
+ 0.3125000000000000 0.5625000000000001 0.4374999999999999 # O74
+ 0.0625000000000001 0.0625000000000001 0.1875000000000001 # O75
+ 0.0625000000000001 0.0625000000000001 0.4374999999999999 # O76
+ 0.8125000000000000 0.0625000000000001 0.1875000000000001 # O77
+ 0.8125000000000000 0.0625000000000001 0.4374999999999999 # O78
+ 0.8125000000000000 0.3125000000000000 0.1875000000000001 # O79
+ 0.5624999999999999 0.0625000000000001 0.4374999999999999 # O80
+ 0.8750000000000001 0.3749999999999998 0.1249999999999999 # O81
+ 0.1250000000000002 0.6250000000000000 0.8750000000000001 # O82
+ 0.8750000000000001 0.5000000000000000 0.2499999999999999 # O83
+ 0.3749999999999998 0.5000000000000000 0.2499999999999999 # O84
+ 0.8750000000000001 0.3920000000000000 0.3579999999999999 # O85
+ 0.8125000000000000 0.5625000000000001 0.6874999999999998 # O86
+ 0.8125000000000000 0.5625000000000001 0.9375000000000001 # O87
+ 0.8125000000000000 0.3125000000000000 0.6874999999999998 # O88
+ 0.8125000000000000 0.3125000000000002 0.9375000000000001 # O89
+ 0.8125000000000000 0.0625000000000001 0.6874999999999998 # O90
+ 0.8125000000000000 0.0625000000000001 0.9375000000000001 # O91
+ 0.5625000000000001 0.5625000000000001 0.6874999999999998 # O92
+ 0.5625000000000001 0.5625000000000001 0.9375000000000001 # O93
+ 0.3125000000000000 0.5625000000000001 0.6874999999999998 # O94
+ 0.3125000000000000 0.5625000000000001 0.9375000000000001 # O95
+ 0.3125000000000000 0.8125000000000000 0.6874999999999998 # O96
+ 0.0625000000000001 0.5625000000000001 0.9375000000000001 # O97
+ 0.3750000000000001 0.8750000000000001 0.6250000000000000 # O98
+ 0.6250000000000000 0.1249999999999999 0.3749999999999998 # O99
+ 0.3750000000000001 0.0000000000000000 0.7499999999999999 # O100
+ 0.8750000000000001 0.0000000000000000 0.7499999999999999 # O101
+ 0.3750000000000001 0.8920000000000003 0.8579999999999999 # O102
+ 0.6875000000000000 0.5625000000000001 0.9375000000000001 # O103
+ 0.6874999999999998 0.5624999999999999 0.1875000000000001 # O104
+ 0.9375000000000001 0.5625000000000001 0.9375000000000001 # O105
+ 0.9375000000000001 0.5624999999999999 0.1875000000000001 # O106
+ 0.1875000000000001 0.5625000000000001 0.9375000000000001 # O107
+ 0.1875000000000001 0.5624999999999999 0.1875000000000001 # O108
+ 0.6875000000000000 0.3125000000000002 0.9375000000000001 # O109
+ 0.6874999999999998 0.3125000000000000 0.1875000000000001 # O110
+ 0.6875000000000000 0.0625000000000001 0.9375000000000001 # O111
+ 0.6874999999999998 0.0625000000000001 0.1875000000000001 # O112
+ 0.4375000000000001 0.0625000000000001 0.9375000000000001 # O113
+ 0.6875000000000000 0.8125000000000000 0.1875000000000001 # O114
+ 0.3750000000000001 0.1250000000000002 0.8750000000000001 # O115
+ 0.1249999999999999 0.3750000000000001 0.6250000000000000 # O116
+ 0.2499999999999999 0.1249999999999999 0.0000000000000000 # O117
+ 0.2500000000000001 0.6250000000000000 0.0000000000000000 # O118
+ 0.3579999999999999 0.1249999999999999 0.1080000000000001 # O119
+ 0.1875000000000001 0.0625000000000001 0.4374999999999999 # O120
+ 0.1875000000000001 0.0625000000000001 0.6874999999999998 # O121
+ 0.4374999999999999 0.0625000000000001 0.4374999999999999 # O122
+ 0.4375000000000001 0.0625000000000001 0.6874999999999998 # O123
+ 0.6874999999999998 0.0625000000000001 0.4374999999999999 # O124
+ 0.6875000000000000 0.0625000000000001 0.6874999999999998 # O125
+ 0.1875000000000001 0.8125000000000000 0.4374999999999999 # O126
+ 0.1875000000000001 0.8125000000000000 0.6874999999999998 # O127
+ 0.1875000000000001 0.5625000000000001 0.4374999999999999 # O128
+ 0.1875000000000001 0.5625000000000001 0.6874999999999998 # O129
+ 0.9375000000000001 0.5625000000000001 0.4374999999999999 # O130
+ 0.1875000000000001 0.3125000000000000 0.6874999999999998 # O131
+ 0.8750000000000001 0.6250000000000000 0.3749999999999998 # O132
+ 0.6250000000000000 0.8750000000000001 0.1249999999999999 # O133
+ 0.7499999999999999 0.6250000000000000 0.5000000000000000 # O134
+ 0.7499999999999999 0.1249999999999999 0.5000000000000000 # O135
+ 0.8579999999999999 0.6250000000000000 0.6079999999999999 # O136
+ 0.9375000000000001 0.0625000000000001 0.1875000000000001 # O137
+ 0.9375000000000001 0.8125000000000000 0.1875000000000001 # O138
+ 0.9375000000000001 0.0625000000000001 0.4374999999999999 # O139
+ 0.9375000000000001 0.8125000000000000 0.4374999999999999 # O140
+ 0.9375000000000001 0.0625000000000001 0.6874999999999998 # O141
+ 0.9375000000000001 0.8125000000000000 0.6874999999999998 # O142
+ 0.1875000000000001 0.0625000000000001 0.1875000000000001 # O143
+ 0.1875000000000001 0.8125000000000000 0.1875000000000001 # O144
+ 0.4374999999999999 0.0625000000000001 0.1875000000000001 # O145
+ 0.4375000000000001 0.8125000000000000 0.1875000000000001 # O146
+ 0.4375000000000001 0.5625000000000001 0.6874999999999998 # O147
+ 0.4375000000000001 0.3125000000000000 0.6874999999999998 # O148
+ 0.4375000000000001 0.5625000000000001 0.9375000000000001 # O149
+ 0.4375000000000001 0.3125000000000002 0.9375000000000001 # O150
+ 0.4374999999999999 0.5624999999999999 0.1875000000000001 # O151
+ 0.4374999999999999 0.3125000000000000 0.1875000000000001 # O152
+ 0.6875000000000000 0.5625000000000001 0.6874999999999998 # O153
+ 0.6875000000000000 0.3125000000000000 0.6874999999999998 # O154
+ 0.9375000000000001 0.5625000000000001 0.6874999999999998 # O155
+ 0.9375000000000001 0.3125000000000000 0.6874999999999998 # O156
+ 0.6874999999999998 0.5624999999999999 0.3125000000000000 # O157
+ 0.6874999999999998 0.5624999999999999 0.0625000000000001 # O158
+ 0.6874999999999998 0.3125000000000000 0.3125000000000000 # O159
+ 0.6874999999999998 0.3125000000000000 0.0625000000000001 # O160
+ 0.6874999999999998 0.0625000000000001 0.3125000000000000 # O161
+ 0.6874999999999998 0.0625000000000001 0.0625000000000001 # O162
+ 0.9375000000000001 0.5624999999999999 0.3125000000000000 # O163
+ 0.9375000000000001 0.5624999999999999 0.0625000000000001 # O164
+ 0.1875000000000001 0.5624999999999999 0.3125000000000000 # O165
+ 0.1875000000000001 0.5624999999999999 0.0625000000000001 # O166
+ 0.1875000000000001 0.8125000000000000 0.3125000000000000 # O167
+ 0.4374999999999999 0.5624999999999999 0.0625000000000001 # O168
+ 0.1249999999999999 0.8920000000000001 0.1420000000000001 # O169
+ 0.1875000000000001 0.0625000000000001 0.8125000000000000 # O170
+ 0.1875000000000001 0.0625000000000001 0.5624999999999999 # O171
+ 0.1875000000000001 0.8125000000000000 0.8125000000000000 # O172
+ 0.1875000000000001 0.8125000000000000 0.5624999999999999 # O173
+ 0.1875000000000001 0.5625000000000001 0.8125000000000000 # O174
+ 0.1875000000000001 0.5625000000000001 0.5624999999999999 # O175
+ 0.4375000000000001 0.0625000000000001 0.8125000000000000 # O176
+ 0.4374999999999999 0.0625000000000001 0.5624999999999999 # O177
+ 0.6875000000000000 0.0625000000000001 0.8125000000000000 # O178
+ 0.6874999999999998 0.0625000000000001 0.5624999999999999 # O179
+ 0.6875000000000000 0.3125000000000000 0.8125000000000000 # O180
+ 0.9375000000000001 0.0625000000000001 0.5624999999999999 # O181
+ 0.6250000000000000 0.3920000000000000 0.6419999999999998 # O182
+ 0.4375000000000001 0.4375000000000001 0.8125000000000000 # O183
+ 0.4375000000000001 0.6875000000000000 0.8125000000000000 # O184
+ 0.4374999999999999 0.4375000000000001 0.5624999999999999 # O185
+ 0.4375000000000001 0.6875000000000000 0.5624999999999999 # O186
+ 0.4374999999999999 0.4374999999999999 0.3125000000000000 # O187
+ 0.4375000000000001 0.6874999999999998 0.3125000000000000 # O188
+ 0.6875000000000000 0.4375000000000001 0.8125000000000000 # O189
+ 0.6875000000000000 0.6875000000000000 0.8125000000000000 # O190
+ 0.9375000000000001 0.4375000000000001 0.8125000000000000 # O191
+ 0.9375000000000001 0.6875000000000000 0.8125000000000000 # O192
+ 0.9375000000000001 0.4374999999999999 0.0625000000000001 # O193
+ 0.1875000000000001 0.6875000000000000 0.8125000000000000 # O194
+ 0.8750000000000001 0.6079999999999999 0.1420000000000001 # O195
+ 0.9375000000000001 0.9375000000000001 0.3125000000000000 # O196
+ 0.9375000000000001 0.1875000000000001 0.3125000000000000 # O197
+ 0.9375000000000001 0.9375000000000001 0.0625000000000001 # O198
+ 0.9375000000000001 0.1875000000000001 0.0625000000000001 # O199
+ 0.9375000000000001 0.9375000000000002 0.8125000000000000 # O200
+ 0.9375000000000001 0.1875000000000001 0.8125000000000000 # O201
+ 0.1875000000000001 0.9375000000000001 0.3125000000000000 # O202
+ 0.1875000000000001 0.1875000000000001 0.3125000000000000 # O203
+ 0.4375000000000001 0.9375000000000001 0.3125000000000000 # O204
+ 0.4374999999999999 0.1875000000000001 0.3125000000000000 # O205
+ 0.4375000000000001 0.9375000000000001 0.5624999999999999 # O206
+ 0.6874999999999998 0.1875000000000001 0.3125000000000000 # O207
+ 0.3749999999999998 0.1080000000000001 0.6419999999999998 # O208
+ 0.9375000000000001 0.6875000000000000 0.5624999999999999 # O209
+ 0.1875000000000001 0.6875000000000000 0.5624999999999999 # O210
+ 0.9375000000000001 0.9375000000000001 0.5624999999999999 # O211
+ 0.1875000000000001 0.9375000000000001 0.5624999999999999 # O212
+ 0.9375000000000001 0.1875000000000001 0.5624999999999999 # O213
+ 0.1875000000000001 0.1875000000000001 0.5624999999999999 # O214
+ 0.9375000000000001 0.6874999999999998 0.3125000000000000 # O215
+ 0.1875000000000001 0.6874999999999998 0.3125000000000000 # O216
+ 0.9375000000000001 0.6874999999999998 0.0625000000000001 # O217
+ 0.1875000000000001 0.6874999999999998 0.0625000000000001 # O218
+ 0.0000000000000000 0.2499999999999999 0.1249999999999999 # O219
+ 0.0000000000000000 0.2500000000000001 0.6250000000000000 # O220
+ 0.1080000000000001 0.3579999999999999 0.1249999999999999 # O221
+ 0.4374999999999999 0.1875000000000001 0.0625000000000001 # O222
+ 0.6874999999999998 0.1875000000000001 0.0625000000000001 # O223
+ 0.4374999999999999 0.4374999999999999 0.0625000000000001 # O224
+ 0.6874999999999998 0.4374999999999999 0.0625000000000001 # O225
+ 0.4375000000000001 0.6874999999999998 0.0625000000000001 # O226
+ 0.6875000000000000 0.6874999999999998 0.0625000000000001 # O227
+ 0.4375000000000001 0.1875000000000001 0.8125000000000000 # O228
+ 0.6875000000000000 0.1875000000000001 0.8125000000000000 # O229
+ 0.4374999999999999 0.1875000000000001 0.5624999999999999 # O230
+ 0.6874999999999998 0.1875000000000001 0.5624999999999999 # O231
+ 0.5000000000000000 0.7499999999999999 0.6250000000000000 # O232
+ 0.5000000000000000 0.7499999999999999 0.1249999999999999 # O233
+ 0.6080000000000001 0.8579999999999999 0.6250000000000000 # O234
+ 0.8125000000000000 0.4375000000000001 0.8125000000000000 # O235
+ 0.8125000000000000 0.4375000000000001 0.5624999999999999 # O236
+ 0.8125000000000000 0.6875000000000000 0.8125000000000000 # O237
+ 0.8125000000000000 0.6875000000000000 0.5624999999999999 # O238
+ 0.8125000000000000 0.9375000000000002 0.8125000000000000 # O239
+ 0.8125000000000000 0.9375000000000001 0.5624999999999999 # O240
+ 0.5625000000000001 0.4375000000000001 0.8125000000000000 # O241
+ 0.5624999999999999 0.4375000000000001 0.5624999999999999 # O242
+ 0.3125000000000000 0.4375000000000001 0.8125000000000000 # O243
+ 0.3125000000000000 0.4375000000000001 0.5624999999999999 # O244
+ 0.3125000000000000 0.1875000000000001 0.8125000000000000 # O245
+ 0.0625000000000001 0.4375000000000001 0.5624999999999999 # O246
+ 0.3125000000000000 0.9375000000000001 0.3125000000000000 # O247
+ 0.3125000000000000 0.9375000000000001 0.0625000000000001 # O248
+ 0.3125000000000000 0.1875000000000001 0.3125000000000000 # O249
+ 0.3125000000000000 0.1875000000000001 0.0625000000000001 # O250
+ 0.3125000000000000 0.4374999999999999 0.3125000000000000 # O251
+ 0.3125000000000000 0.4374999999999999 0.0625000000000001 # O252
+ 0.0625000000000001 0.9375000000000001 0.3125000000000000 # O253
+ 0.0625000000000001 0.9375000000000001 0.0625000000000001 # O254
+ 0.8125000000000000 0.9375000000000001 0.3125000000000000 # O255
+ 0.8125000000000000 0.9375000000000001 0.0625000000000001 # O256
+ 0.8125000000000000 0.6874999999999998 0.3125000000000000 # O257
+ 0.5625000000000001 0.9375000000000001 0.0625000000000001 # O258
+ 0.0625000000000001 0.1875000000000001 0.9375000000000001 # O259
+ 0.8125000000000000 0.1875000000000001 0.9375000000000001 # O260
+ 0.0625000000000001 0.4375000000000001 0.9375000000000001 # O261
+ 0.8125000000000000 0.4375000000000001 0.9375000000000001 # O262
+ 0.0625000000000001 0.6875000000000000 0.9375000000000001 # O263
+ 0.8125000000000000 0.6875000000000000 0.9375000000000001 # O264
+ 0.0625000000000001 0.1875000000000001 0.1875000000000001 # O265
+ 0.8125000000000000 0.1875000000000001 0.1875000000000001 # O266
+ 0.0625000000000001 0.1875000000000001 0.4374999999999999 # O267
+ 0.8125000000000000 0.1875000000000001 0.4374999999999999 # O268
+ 0.0000000000000000 0.7499999999999999 0.3749999999999998 # O269
+ 0.0000000000000000 0.7500000000000002 0.8750000000000001 # O270
+ 0.8920000000000001 0.8579999999999999 0.3749999999999998 # O271
+ 0.5625000000000001 0.6875000000000000 0.4374999999999999 # O272
+ 0.3125000000000000 0.6875000000000000 0.4374999999999999 # O273
+ 0.5625000000000001 0.9375000000000001 0.4374999999999999 # O274
+ 0.3125000000000000 0.9375000000000001 0.4374999999999999 # O275
+ 0.5624999999999999 0.1875000000000001 0.4374999999999999 # O276
+ 0.3125000000000000 0.1875000000000001 0.4374999999999999 # O277
+ 0.5625000000000001 0.6875000000000000 0.6874999999999998 # O278
+ 0.3125000000000000 0.6875000000000000 0.6874999999999998 # O279
+ 0.5625000000000001 0.6875000000000000 0.9375000000000001 # O280
+ 0.3125000000000000 0.6875000000000000 0.9375000000000001 # O281
+ 0.5000000000000000 0.2500000000000001 0.8750000000000001 # O282
+ 0.5000000000000000 0.2500000000000001 0.3749999999999998 # O283
+ 0.3920000000000000 0.3579999999999999 0.8750000000000001 # O284
+ 0.1875000000000001 0.6875000000000000 0.4374999999999999 # O285
+ 0.4375000000000001 0.6875000000000000 0.4374999999999999 # O286
+ 0.1875000000000001 0.6875000000000000 0.6874999999999998 # O287
+ 0.4375000000000001 0.6875000000000000 0.6874999999999998 # O288
+ 0.1875000000000001 0.6875000000000000 0.9375000000000001 # O289
+ 0.4375000000000001 0.6875000000000000 0.9375000000000001 # O290
+ 0.1875000000000001 0.9375000000000001 0.4374999999999999 # O291
+ 0.4375000000000001 0.9375000000000001 0.4374999999999999 # O292
+ 0.1875000000000001 0.1875000000000001 0.4374999999999999 # O293
+ 0.4374999999999999 0.1875000000000001 0.4374999999999999 # O294
+ 0.6875000000000000 0.1875000000000001 0.9375000000000001 # O295
+ 0.9375000000000001 0.1875000000000001 0.9375000000000001 # O296
+ 0.6874999999999998 0.1875000000000001 0.1875000000000001 # O297
+ 0.9375000000000001 0.1875000000000001 0.1875000000000001 # O298
+ 0.6874999999999998 0.1875000000000001 0.4374999999999999 # O299
+ 0.9375000000000001 0.1875000000000001 0.4374999999999999 # O300
+ 0.6875000000000000 0.4375000000000001 0.9375000000000001 # O301
+ 0.9375000000000001 0.4375000000000001 0.9375000000000001 # O302
+ 0.6875000000000000 0.6875000000000000 0.9375000000000001 # O303
+ 0.9375000000000001 0.6875000000000000 0.9375000000000001 # O304
+ 0.4375000000000001 0.1875000000000001 0.6874999999999998 # O305
+ 0.4375000000000001 0.4375000000000001 0.6874999999999998 # O306
+ 0.6875000000000000 0.1875000000000001 0.6874999999999998 # O307
+ 0.6875000000000000 0.4375000000000001 0.6874999999999998 # O308
+ 0.9375000000000001 0.1875000000000001 0.6874999999999998 # O309
+ 0.9375000000000001 0.4375000000000001 0.6874999999999998 # O310
+ 0.4375000000000001 0.1875000000000001 0.9375000000000001 # O311
+ 0.4375000000000001 0.4375000000000001 0.9375000000000001 # O312
+ 0.4374999999999999 0.1875000000000001 0.1875000000000001 # O313
+ 0.4374999999999999 0.4374999999999999 0.1875000000000001 # O314
+ 0.9375000000000001 0.6874999999999998 0.1875000000000001 # O315
+ 0.9375000000000001 0.9375000000000001 0.1875000000000001 # O316
+ 0.1875000000000001 0.6874999999999998 0.1875000000000001 # O317
+ 0.1875000000000001 0.9375000000000001 0.1875000000000001 # O318
+ 0.4375000000000001 0.6874999999999998 0.1875000000000001 # O319
+ 0.4375000000000001 0.9375000000000001 0.1875000000000001 # O320
+ 0.9375000000000001 0.6875000000000000 0.4374999999999999 # O321
+ 0.9375000000000001 0.9375000000000001 0.4374999999999999 # O322
+ 0.9375000000000001 0.6875000000000000 0.6874999999999998 # O323
+ 0.9375000000000001 0.9375000000000001 0.6874999999999998 # O324
+ 0.5625000000000001 0.3125000000000000 0.6874999999999998 # O325
+ 0.5625000000000001 0.0625000000000001 0.6874999999999998 # O326
+ 0.3125000000000000 0.3125000000000000 0.6874999999999998 # O327
+ 0.3125000000000000 0.0625000000000001 0.6874999999999998 # O328
+ 0.0625000000000001 0.3125000000000000 0.6874999999999998 # O329
+ 0.0625000000000001 0.0625000000000001 0.6874999999999998 # O330
+ 0.5625000000000001 0.3125000000000002 0.9375000000000001 # O331
+ 0.5625000000000001 0.0625000000000001 0.9375000000000001 # O332
+ 0.5624999999999999 0.3125000000000000 0.1875000000000001 # O333
+ 0.5624999999999999 0.0625000000000001 0.1875000000000001 # O334
+ 0.8920000000000001 0.1420000000000001 0.1249999999999999 # O335
+ 0.0625000000000001 0.8125000000000000 0.1875000000000001 # O336
+ 0.0625000000000001 0.5624999999999999 0.1875000000000001 # O337
+ 0.8125000000000000 0.8125000000000000 0.1875000000000001 # O338
+ 0.8125000000000000 0.5624999999999999 0.1875000000000001 # O339
+ 0.5625000000000001 0.8125000000000000 0.1875000000000001 # O340
+ 0.5624999999999999 0.5624999999999999 0.1875000000000001 # O341
+ 0.0625000000000001 0.8125000000000000 0.4374999999999999 # O342
+ 0.0625000000000001 0.5625000000000001 0.4374999999999999 # O343
+ 0.0625000000000001 0.8125000000000000 0.6874999999999998 # O344
+ 0.0625000000000001 0.5625000000000001 0.6874999999999998 # O345
+ 0.3920000000000000 0.6420000000000000 0.6250000000000000 # O346
+ 0.1875000000000001 0.3125000000000000 0.0625000000000001 # O347
+ 0.4374999999999999 0.3125000000000000 0.0625000000000001 # O348
+ 0.1875000000000001 0.3125000000000000 0.8125000000000000 # O349
+ 0.4375000000000001 0.3125000000000000 0.8125000000000000 # O350
+ 0.1875000000000001 0.3125000000000000 0.5624999999999999 # O351
+ 0.4374999999999999 0.3125000000000000 0.5624999999999999 # O352
+ 0.1875000000000001 0.0625000000000001 0.0625000000000001 # O353
+ 0.4374999999999999 0.0625000000000001 0.0625000000000001 # O354
+ 0.1875000000000001 0.8125000000000000 0.0625000000000001 # O355
+ 0.4375000000000001 0.8125000000000000 0.0625000000000001 # O356
+ 0.3579999999999999 0.8750000000000001 0.3920000000000000 # O357
+ 0.6875000000000000 0.8125000000000000 0.5624999999999999 # O358
+ 0.9375000000000001 0.8125000000000000 0.5624999999999999 # O359
+ 0.6875000000000000 0.8125000000000000 0.3125000000000000 # O360
+ 0.9375000000000001 0.8125000000000000 0.3125000000000000 # O361
+ 0.6875000000000000 0.8125000000000000 0.0625000000000001 # O362
+ 0.9375000000000001 0.8125000000000000 0.0625000000000001 # O363
+ 0.6874999999999998 0.5625000000000001 0.5624999999999999 # O364
+ 0.9375000000000001 0.5625000000000001 0.5624999999999999 # O365
+ 0.6874999999999998 0.3125000000000000 0.5624999999999999 # O366
+ 0.9375000000000001 0.3125000000000000 0.5624999999999999 # O367
+ 0.8579999999999999 0.3750000000000001 0.8920000000000001 # O368
+ 0.0625000000000001 0.1875000000000001 0.3125000000000000 # O369
+ 0.0625000000000001 0.4374999999999999 0.3125000000000000 # O370
+ 0.8125000000000000 0.1875000000000001 0.3125000000000000 # O371
+ 0.8125000000000000 0.4374999999999999 0.3125000000000000 # O372
+ 0.5624999999999999 0.1875000000000001 0.3125000000000000 # O373
+ 0.5624999999999999 0.4374999999999999 0.3125000000000000 # O374
+ 0.0625000000000001 0.1875000000000001 0.0625000000000001 # O375
+ 0.0625000000000001 0.4374999999999999 0.0625000000000001 # O376
+ 0.0625000000000001 0.1875000000000001 0.8125000000000000 # O377
+ 0.0625000000000001 0.4375000000000001 0.8125000000000000 # O378
+ 0.5625000000000001 0.6875000000000000 0.8125000000000000 # O379
+ 0.5625000000000001 0.9375000000000002 0.8125000000000000 # O380
+ 0.3125000000000000 0.6875000000000000 0.8125000000000000 # O381
+ 0.3125000000000000 0.9375000000000002 0.8125000000000000 # O382
+ 0.0625000000000001 0.6875000000000000 0.8125000000000000 # O383
+ 0.0625000000000001 0.9375000000000002 0.8125000000000000 # O384
+ 0.5625000000000001 0.6875000000000000 0.5624999999999999 # O385
+ 0.5625000000000001 0.9375000000000001 0.5624999999999999 # O386
+ 0.5625000000000001 0.6874999999999998 0.3125000000000000 # O387
+ 0.5625000000000001 0.9375000000000001 0.3125000000000000 # O388
+ 0.8125000000000000 0.8125000000000000 0.4374999999999999 # O389
+ 0.5625000000000001 0.8125000000000000 0.4374999999999999 # O390
+ 0.8125000000000000 0.8125000000000000 0.6874999999999998 # O391
+ 0.5625000000000001 0.8125000000000000 0.6874999999999998 # O392
+ 0.8125000000000000 0.8125000000000000 0.9375000000000001 # O393
+ 0.5625000000000001 0.8125000000000000 0.9375000000000001 # O394
+ 0.8125000000000000 0.5625000000000001 0.4374999999999999 # O395
+ 0.5624999999999999 0.5625000000000001 0.4374999999999999 # O396
+ 0.8125000000000000 0.3125000000000000 0.4374999999999999 # O397
+ 0.5624999999999999 0.3125000000000000 0.4374999999999999 # O398
+ 0.3125000000000000 0.3125000000000002 0.9375000000000001 # O399
+ 0.0625000000000001 0.3125000000000002 0.9375000000000001 # O400
+ 0.3125000000000000 0.3125000000000000 0.1875000000000001 # O401
+ 0.0625000000000001 0.3125000000000000 0.1875000000000001 # O402
+ 0.3125000000000000 0.3125000000000000 0.4374999999999999 # O403
+ 0.0625000000000001 0.3125000000000000 0.4374999999999999 # O404
+ 0.3125000000000000 0.0625000000000001 0.9375000000000001 # O405
+ 0.0625000000000001 0.0625000000000001 0.9375000000000001 # O406
+ 0.3125000000000000 0.8125000000000000 0.9375000000000001 # O407
+ 0.0625000000000001 0.8125000000000000 0.9375000000000001 # O408
+ 0.3125000000000000 0.6875000000000000 0.5624999999999999 # O409
+ 0.0625000000000001 0.6875000000000000 0.5624999999999999 # O410
+ 0.3125000000000000 0.6874999999999998 0.3125000000000000 # O411
+ 0.0625000000000001 0.6874999999999998 0.3125000000000000 # O412
+ 0.3125000000000000 0.6874999999999998 0.0625000000000001 # O413
+ 0.0625000000000001 0.6874999999999998 0.0625000000000001 # O414
+ 0.3125000000000000 0.9375000000000001 0.5624999999999999 # O415
+ 0.0625000000000001 0.9375000000000001 0.5624999999999999 # O416
+ 0.3125000000000000 0.1875000000000001 0.5624999999999999 # O417
+ 0.0625000000000001 0.1875000000000001 0.5624999999999999 # O418
+ 0.1420000000000001 0.1250000000000002 0.8920000000000001 # O419
+ 0.8125000000000000 0.1875000000000001 0.0625000000000001 # O420
+ 0.5624999999999999 0.1875000000000001 0.0625000000000001 # O421
+ 0.8125000000000000 0.1875000000000001 0.8125000000000000 # O422
+ 0.5625000000000001 0.1875000000000001 0.8125000000000000 # O423
+ 0.8125000000000000 0.1875000000000001 0.5624999999999999 # O424
+ 0.5624999999999999 0.1875000000000001 0.5624999999999999 # O425
+ 0.8125000000000000 0.4374999999999999 0.0625000000000001 # O426
+ 0.5624999999999999 0.4374999999999999 0.0625000000000001 # O427
+ 0.8125000000000000 0.6874999999999998 0.0625000000000001 # O428
+ 0.5625000000000001 0.6874999999999998 0.0625000000000001 # O429
+ 0.6419999999999998 0.6250000000000000 0.3920000000000000 # O430
+ 0.4375000000000001 0.8125000000000000 0.8125000000000000 # O431
+ 0.4375000000000001 0.5625000000000001 0.8125000000000000 # O432
+ 0.6875000000000000 0.8125000000000000 0.8125000000000000 # O433
+ 0.6875000000000000 0.5625000000000001 0.8125000000000000 # O434
+ 0.9375000000000001 0.8125000000000000 0.8125000000000000 # O435
+ 0.9375000000000001 0.5625000000000001 0.8125000000000000 # O436
+ 0.4375000000000001 0.8125000000000000 0.5624999999999999 # O437
+ 0.4374999999999999 0.5625000000000001 0.5624999999999999 # O438
+ 0.4375000000000001 0.8125000000000000 0.3125000000000000 # O439
+ 0.4374999999999999 0.5624999999999999 0.3125000000000000 # O440
+ 0.1080000000000001 0.6420000000000000 0.3749999999999998 # O441
+ 0.9375000000000001 0.3125000000000000 0.3125000000000000 # O442
+ 0.9375000000000001 0.0625000000000001 0.3125000000000000 # O443
+ 0.1875000000000001 0.3125000000000000 0.3125000000000000 # O444
+ 0.1875000000000001 0.0625000000000001 0.3125000000000000 # O445
+ 0.4374999999999999 0.3125000000000000 0.3125000000000000 # O446
+ 0.4374999999999999 0.0625000000000001 0.3125000000000000 # O447
+ 0.9375000000000001 0.3125000000000000 0.0625000000000001 # O448
+ 0.9375000000000001 0.0625000000000001 0.0625000000000001 # O449
+ 0.9375000000000001 0.3125000000000000 0.8125000000000000 # O450
+ 0.9375000000000001 0.0625000000000001 0.8125000000000000 # O451
+ 0.6080000000000001 0.1420000000000001 0.8750000000000001 # O452
+ 0.1875000000000001 0.9375000000000001 0.0625000000000001 # O453
+ 0.1875000000000001 0.9375000000000002 0.8125000000000000 # O454
+ 0.4375000000000001 0.9375000000000001 0.0625000000000001 # O455
+ 0.4375000000000001 0.9375000000000002 0.8125000000000000 # O456
+ 0.6875000000000000 0.9375000000000001 0.0625000000000001 # O457
+ 0.6875000000000000 0.9375000000000002 0.8125000000000000 # O458
+ 0.1875000000000001 0.1875000000000001 0.0625000000000001 # O459
+ 0.1875000000000001 0.1875000000000001 0.8125000000000000 # O460
+ 0.1875000000000001 0.4374999999999999 0.0625000000000001 # O461
+ 0.1875000000000001 0.4375000000000001 0.8125000000000000 # O462
+ 0.6874999999999998 0.4375000000000001 0.5624999999999999 # O463
+ 0.6874999999999998 0.4374999999999999 0.3125000000000000 # O464
+ 0.9375000000000001 0.4375000000000001 0.5624999999999999 # O465
+ 0.9375000000000001 0.4374999999999999 0.3125000000000000 # O466
+ 0.1875000000000001 0.4375000000000001 0.5624999999999999 # O467
+ 0.1875000000000001 0.4374999999999999 0.3125000000000000 # O468
+ 0.6875000000000000 0.6875000000000000 0.5624999999999999 # O469
+ 0.6875000000000000 0.6874999999999998 0.3125000000000000 # O470
+ 0.6875000000000000 0.9375000000000001 0.5624999999999999 # O471
+ 0.6875000000000000 0.9375000000000001 0.3125000000000000 # O472
+ 0.8125000000000000 0.5624999999999999 0.0625000000000001 # O473
+ 0.8125000000000000 0.5625000000000001 0.8125000000000000 # O474
+ 0.5624999999999999 0.5624999999999999 0.0625000000000001 # O475
+ 0.5625000000000001 0.5625000000000001 0.8125000000000000 # O476
+ 0.3125000000000000 0.5624999999999999 0.0625000000000001 # O477
+ 0.3125000000000000 0.5625000000000001 0.8125000000000000 # O478
+ 0.8125000000000000 0.3125000000000000 0.0625000000000001 # O479
+ 0.8125000000000000 0.3125000000000000 0.8125000000000000 # O480
+ 0.8125000000000000 0.0625000000000001 0.0625000000000001 # O481
+ 0.8125000000000000 0.0625000000000001 0.8125000000000000 # O482
+ 0.0625000000000001 0.0625000000000001 0.0625000000000001 # O483
+ 0.8125000000000000 0.8125000000000000 0.8125000000000000 # O484
+ 0.3125000000000000 0.0625000000000001 0.5624999999999999 # O485
+ 0.3125000000000000 0.0625000000000001 0.3125000000000000 # O486
+ 0.0625000000000001 0.0625000000000001 0.5624999999999999 # O487
+ 0.0625000000000001 0.0625000000000001 0.3125000000000000 # O488
+ 0.8125000000000000 0.0625000000000001 0.5624999999999999 # O489
+ 0.8125000000000000 0.0625000000000001 0.3125000000000000 # O490
+ 0.3125000000000000 0.8125000000000000 0.5624999999999999 # O491
+ 0.3125000000000000 0.8125000000000000 0.3125000000000000 # O492
+ 0.3125000000000000 0.5625000000000001 0.5624999999999999 # O493
+ 0.3125000000000000 0.5624999999999999 0.3125000000000000 # O494
+ 0.5624999999999999 0.5625000000000001 0.5624999999999999 # O495
+ 0.3125000000000000 0.3125000000000000 0.3125000000000000 # O496
+ 0.5625000000000001 0.9375000000000001 0.6874999999999998 # O497
+ 0.5625000000000001 0.1875000000000001 0.6874999999999998 # O498
+ 0.5625000000000001 0.9375000000000002 0.9375000000000001 # O499
+ 0.5625000000000001 0.1875000000000001 0.9375000000000001 # O500
+ 0.5625000000000001 0.9375000000000001 0.1875000000000001 # O501
+ 0.5624999999999999 0.1875000000000001 0.1875000000000001 # O502
+ 0.3125000000000000 0.9375000000000001 0.6874999999999998 # O503
+ 0.3125000000000000 0.1875000000000001 0.6874999999999998 # O504
+ 0.0625000000000001 0.9375000000000001 0.6874999999999998 # O505
+ 0.0625000000000001 0.1875000000000001 0.6874999999999998 # O506
+ 0.0625000000000001 0.4374999999999999 0.1875000000000001 # O507
+ 0.0625000000000001 0.6874999999999998 0.1875000000000001 # O508
+ 0.0625000000000001 0.4375000000000001 0.4374999999999999 # O509
+ 0.0625000000000001 0.6875000000000000 0.4374999999999999 # O510
+ 0.0625000000000001 0.4375000000000001 0.6874999999999998 # O511
+ 0.0625000000000001 0.6875000000000000 0.6874999999999998 # O512
+ 0.8125000000000000 0.4374999999999999 0.1875000000000001 # O513
+ 0.8125000000000000 0.6874999999999998 0.1875000000000001 # O514
+ 0.5624999999999999 0.4374999999999999 0.1875000000000001 # O515
+ 0.5625000000000001 0.6874999999999998 0.1875000000000001 # O516
+ 0.5625000000000001 0.0625000000000001 0.8125000000000000 # O517
+ 0.5625000000000001 0.8125000000000000 0.8125000000000000 # O518
+ 0.5624999999999999 0.0625000000000001 0.5624999999999999 # O519
+ 0.5625000000000001 0.8125000000000000 0.5624999999999999 # O520
+ 0.5624999999999999 0.0625000000000001 0.3125000000000000 # O521
+ 0.5625000000000001 0.8125000000000000 0.3125000000000000 # O522
+ 0.3125000000000000 0.0625000000000001 0.8125000000000000 # O523
+ 0.3125000000000000 0.8125000000000000 0.8125000000000000 # O524
+ 0.0625000000000001 0.0625000000000001 0.8125000000000000 # O525
+ 0.0625000000000001 0.8125000000000000 0.8125000000000000 # O526
+ 0.0625000000000001 0.5624999999999999 0.3125000000000000 # O527
+ 0.0625000000000001 0.3125000000000000 0.3125000000000000 # O528
+ 0.0625000000000001 0.5624999999999999 0.0625000000000001 # O529
+ 0.0625000000000001 0.3125000000000000 0.0625000000000001 # O530
+ 0.0625000000000001 0.5625000000000001 0.8125000000000000 # O531
+ 0.0625000000000001 0.3125000000000000 0.8125000000000000 # O532
+ 0.8125000000000000 0.5624999999999999 0.3125000000000000 # O533
+ 0.8125000000000000 0.3125000000000000 0.3125000000000000 # O534
+ 0.5624999999999999 0.5624999999999999 0.3125000000000000 # O535
+ 0.5624999999999999 0.3125000000000000 0.3125000000000000 # O536
+ 0.4375000000000001 0.8125000000000000 0.4374999999999999 # O537
+ 0.6875000000000000 0.8125000000000000 0.4374999999999999 # O538
+ 0.4374999999999999 0.5625000000000001 0.4374999999999999 # O539
+ 0.6874999999999998 0.5625000000000001 0.4374999999999999 # O540
+ 0.4374999999999999 0.3125000000000000 0.4374999999999999 # O541
+ 0.6874999999999998 0.3125000000000000 0.4374999999999999 # O542
+ 0.4375000000000001 0.8125000000000000 0.6874999999999998 # O543
+ 0.6875000000000000 0.8125000000000000 0.6874999999999998 # O544
+ 0.4375000000000001 0.8125000000000000 0.9375000000000001 # O545
+ 0.6875000000000000 0.8125000000000000 0.9375000000000001 # O546
+ 0.9375000000000001 0.3125000000000002 0.9375000000000001 # O547
+ 0.1875000000000001 0.3125000000000002 0.9375000000000001 # O548
+ 0.9375000000000001 0.0625000000000001 0.9375000000000001 # O549
+ 0.1875000000000001 0.0625000000000001 0.9375000000000001 # O550
+ 0.9375000000000001 0.8125000000000000 0.9375000000000001 # O551
+ 0.1875000000000001 0.8125000000000000 0.9375000000000001 # O552
+ 0.9375000000000001 0.3125000000000000 0.1875000000000001 # O553
+ 0.1875000000000001 0.3125000000000000 0.1875000000000001 # O554
+ 0.9375000000000001 0.3125000000000000 0.4374999999999999 # O555
+ 0.1875000000000001 0.3125000000000000 0.4374999999999999 # O556
+ 0.0625000000000001 0.8125000000000000 0.5624999999999999 # O557
+ 0.8125000000000000 0.8125000000000000 0.5624999999999999 # O558
+ 0.0625000000000001 0.5625000000000001 0.5624999999999999 # O559
+ 0.8125000000000000 0.5625000000000001 0.5624999999999999 # O560
+ 0.0625000000000001 0.3125000000000000 0.5624999999999999 # O561
+ 0.8125000000000000 0.3125000000000000 0.5624999999999999 # O562
+ 0.0625000000000001 0.8125000000000000 0.3125000000000000 # O563
+ 0.8125000000000000 0.8125000000000000 0.3125000000000000 # O564
+ 0.0625000000000001 0.8125000000000000 0.0625000000000001 # O565
+ 0.8125000000000000 0.8125000000000000 0.0625000000000001 # O566
+ 0.5624999999999999 0.3125000000000000 0.0625000000000001 # O567
+ 0.3125000000000000 0.3125000000000000 0.0625000000000001 # O568
+ 0.5624999999999999 0.0625000000000001 0.0625000000000001 # O569
+ 0.3125000000000000 0.0625000000000001 0.0625000000000001 # O570
+ 0.5625000000000001 0.8125000000000000 0.0625000000000001 # O571
+ 0.3125000000000000 0.8125000000000000 0.0625000000000001 # O572
+ 0.5625000000000001 0.3125000000000000 0.8125000000000000 # O573
+ 0.3125000000000000 0.3125000000000000 0.8125000000000000 # O574
+ 0.5624999999999999 0.3125000000000000 0.5624999999999999 # O575
+ 0.3125000000000000 0.3125000000000000 0.5624999999999999 # O576
diff --git a/test/data/cubic/POSCAR-214-2 b/test/data/cubic/POSCAR-214-2
new file mode 100644
index 0000000..0893177
--- /dev/null
+++ b/test/data/cubic/POSCAR-214-2
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 12.3149942052780883 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.3149942052780883 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.3149942052780883
+ 8 24 24
+Direct
+ 0.1250000000000000 0.1250000000000000 0.1250000000000000 # P1
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000 # P2
+ 0.1250000000000000 0.8750000000000001 0.3750000000000001 # P3
+ 0.6250000000000000 0.3750000000000001 0.8750000000000001 # P4
+ 0.8750000000000001 0.3750000000000001 0.1250000000000000 # P5
+ 0.3750000000000001 0.8750000000000001 0.6250000000000000 # P6
+ 0.3750000000000001 0.1250000000000000 0.8750000000000001 # P7
+ 0.8750000000000001 0.6250000000000000 0.3750000000000001 # P8
+ 0.1250000000000000 0.3840000000000002 0.8660000000000002 # I1
+ 0.6250000000000000 0.8839999999999998 0.3659999999999998 # I2
+ 0.8660000000000002 0.8750000000000001 0.1160000000000002 # I3
+ 0.3660000000000002 0.3750000000000001 0.6159999999999998 # I4
+ 0.8750000000000001 0.1160000000000002 0.8660000000000002 # I5
+ 0.3750000000000001 0.6160000000000002 0.3659999999999998 # I6
+ 0.6340000000000001 0.1250000000000000 0.6159999999999998 # I7
+ 0.1340000000000002 0.6250000000000000 0.1160000000000002 # I8
+ 0.3750000000000001 0.3840000000000002 0.1339999999999998 # I9
+ 0.8750000000000001 0.8839999999999998 0.6340000000000001 # I10
+ 0.1250000000000000 0.6160000000000002 0.6340000000000001 # I11
+ 0.6250000000000000 0.1160000000000002 0.1339999999999998 # I12
+ 0.6160000000000002 0.6340000000000001 0.1250000000000000 # I13
+ 0.1160000000000002 0.1340000000000002 0.6250000000000000 # I14
+ 0.3840000000000002 0.1340000000000002 0.3750000000000001 # I15
+ 0.8839999999999998 0.6340000000000001 0.8750000000000001 # I16
+ 0.8660000000000002 0.1250000000000000 0.3840000000000002 # I17
+ 0.3660000000000002 0.6250000000000000 0.8839999999999998 # I18
+ 0.3840000000000002 0.8660000000000002 0.1250000000000000 # I19
+ 0.8839999999999998 0.3660000000000002 0.6250000000000000 # I20
+ 0.1160000000000002 0.8660000000000002 0.8750000000000001 # I21
+ 0.6159999999999998 0.3660000000000002 0.3750000000000001 # I22
+ 0.1340000000000002 0.3750000000000001 0.3840000000000002 # I23
+ 0.6340000000000001 0.8750000000000001 0.8839999999999998 # I24
+ 0.1250000000000000 0.1080000000000000 0.3580000000000000 # Ca1
+ 0.6250000000000000 0.6080000000000000 0.8580000000000001 # Ca2
+ 0.1420000000000000 0.8750000000000001 0.6080000000000000 # Ca3
+ 0.6420000000000000 0.3750000000000001 0.1080000000000000 # Ca4
+ 0.8750000000000001 0.3920000000000000 0.3580000000000000 # Ca5
+ 0.3750000000000001 0.8920000000000001 0.8580000000000001 # Ca6
+ 0.3580000000000000 0.1250000000000000 0.1080000000000000 # Ca7
+ 0.8580000000000001 0.6250000000000000 0.6080000000000000 # Ca8
+ 0.1250000000000000 0.8920000000000001 0.1420000000000000 # Ca9
+ 0.6250000000000000 0.3920000000000000 0.6420000000000000 # Ca10
+ 0.8750000000000001 0.6080000000000000 0.1420000000000000 # Ca11
+ 0.3750000000000001 0.1080000000000000 0.6420000000000000 # Ca12
+ 0.1080000000000000 0.3580000000000000 0.1250000000000000 # Ca13
+ 0.6080000000000000 0.8580000000000001 0.6250000000000000 # Ca14
+ 0.8920000000000001 0.8580000000000001 0.3750000000000001 # Ca15
+ 0.3920000000000000 0.3580000000000000 0.8750000000000001 # Ca16
+ 0.8920000000000001 0.1420000000000000 0.1250000000000000 # Ca17
+ 0.3920000000000000 0.6420000000000000 0.6250000000000000 # Ca18
+ 0.3580000000000000 0.8750000000000001 0.3920000000000000 # Ca19
+ 0.8580000000000001 0.3750000000000001 0.8920000000000001 # Ca20
+ 0.1420000000000000 0.1250000000000000 0.8920000000000001 # Ca21
+ 0.6420000000000000 0.6250000000000000 0.3920000000000000 # Ca22
+ 0.1080000000000000 0.6420000000000000 0.3750000000000001 # Ca23
+ 0.6080000000000000 0.1420000000000000 0.8750000000000001 # Ca24
diff --git a/test/data/cubic/POSCAR-215 b/test/data/cubic/POSCAR-215
new file mode 100644
index 0000000..e9731b6
--- /dev/null
+++ b/test/data/cubic/POSCAR-215
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 5.3929974623682275 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.3929974623682275 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3929974623682275
+ 1 3 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # V1
+ 0.5000000000000004 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.0000000000000000 0.5000000000000004 0.0000000000000000 # Cu2
+ 0.0000000000000000 0.0000000000000000 0.5000000000000004 # Cu3
+ 0.2371999999999996 0.2372000000000005 0.2371999999999996 # S1
+ 0.2372000000000005 0.7628000000000003 0.7628000000000003 # S2
+ 0.7628000000000003 0.7628000000000003 0.2371999999999996 # S3
+ 0.7628000000000003 0.2372000000000005 0.7628000000000003 # S4
diff --git a/test/data/cubic/POSCAR-215-2 b/test/data/cubic/POSCAR-215-2
new file mode 100644
index 0000000..6086b8c
--- /dev/null
+++ b/test/data/cubic/POSCAR-215-2
@@ -0,0 +1,60 @@
+$cell vectors
+1.0
+ 8.3199960850924626 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.3199960850924626 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3199960850924626
+ 7 32 14
+Direct
+ 0.3560000000000004 0.3560000000000004 0.3560000000000004 # W1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # W2
+ 0.3560000000000004 0.6440000000000002 0.6440000000000002 # W3
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # W4
+ 0.6440000000000002 0.6440000000000002 0.3560000000000004 # W5
+ 0.6440000000000002 0.3560000000000004 0.6440000000000002 # W6
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # W7
+ 0.1250000000000000 0.1250000000000000 0.6250000000000001 # O1
+ 0.3679999999999998 0.3679999999999998 0.1320000000000003 # O2
+ 0.6200000000000003 0.6200000000000003 0.6200000000000003 # O3
+ 0.1299999999999998 0.1299999999999998 0.1299999999999998 # O4
+ 0.1250000000000000 -0.1250000000000000 0.3750000000000001 # O5
+ 0.3680000000000004 0.6320000000000002 0.8680000000000005 # O6
+ 0.6200000000000003 0.3800000000000004 0.3799999999999998 # O7
+ 0.1300000000000004 0.8700000000000002 0.8700000000000002 # O8
+ -0.1250000000000000 -0.1250000000000000 0.6250000000000001 # O9
+ 0.6320000000000002 0.6320000000000002 0.1320000000000003 # O10
+ 0.3800000000000004 0.3800000000000004 0.6200000000000003 # O11
+ 0.8700000000000002 0.8700000000000002 0.1299999999999998 # O12
+ -0.1250000000000000 0.1250000000000000 0.3750000000000001 # O13
+ 0.6320000000000002 0.3680000000000004 0.8680000000000005 # O14
+ 0.3800000000000004 0.6200000000000003 0.3799999999999998 # O15
+ 0.8700000000000002 0.1300000000000004 0.8700000000000002 # O16
+ -0.1250000000000000 0.6250000000000001 -0.1250000000000000 # O17
+ 0.6320000000000002 0.1320000000000003 0.6320000000000002 # O18
+ -0.1250000000000000 0.3750000000000001 0.1250000000000000 # O19
+ 0.6320000000000002 0.8680000000000005 0.3679999999999998 # O20
+ 0.3750000000000001 -0.1250000000000000 0.1250000000000000 # O21
+ 0.8680000000000005 0.6320000000000002 0.3679999999999998 # O22
+ 0.6250000000000001 -0.1250000000000000 -0.1250000000000000 # O23
+ 0.1320000000000003 0.6320000000000002 0.6320000000000002 # O24
+ 0.6250000000000001 0.1250000000000000 0.1250000000000000 # O25
+ 0.1320000000000003 0.3680000000000004 0.3679999999999998 # O26
+ 0.1250000000000000 0.6250000000000001 0.1250000000000000 # O27
+ 0.3679999999999998 0.1320000000000003 0.3679999999999998 # O28
+ 0.3750000000000001 0.1250000000000000 -0.1250000000000000 # O29
+ 0.8680000000000005 0.3680000000000004 0.6320000000000002 # O30
+ 0.1250000000000000 0.3750000000000001 -0.1250000000000000 # O31
+ 0.3680000000000004 0.8680000000000005 0.6320000000000002 # O32
+ 0.2300000000000002 0.0000000000000000 0.0000000000000000 # Li1
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Li2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Li3
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Li4
+ 0.0000000000000000 0.7700000000000006 0.0000000000000000 # Li5
+ 0.2500000000000000 0.7500000000000001 0.7500000000000001 # Li6
+ 0.7700000000000006 0.0000000000000000 0.0000000000000000 # Li7
+ 0.7500000000000001 0.7500000000000001 0.2500000000000000 # Li8
+ 0.0000000000000000 0.2300000000000002 0.0000000000000000 # Li9
+ 0.7500000000000001 0.2500000000000000 0.7500000000000001 # Li10
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Li11
+ 0.0000000000000000 0.0000000000000000 0.2300000000000002 # Li12
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Li13
+ 0.0000000000000000 0.0000000000000000 0.7700000000000006 # Li14
diff --git a/test/data/cubic/POSCAR-216 b/test/data/cubic/POSCAR-216
new file mode 100644
index 0000000..33e92ac
--- /dev/null
+++ b/test/data/cubic/POSCAR-216
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 7.1759966233922485 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.1759966233922485 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.1759966233922485
+ 4 4 16
+Direct
+ 0.7500000000000000 0.7500000000000006 0.7500000000000000 # Zn1
+ 0.2500000000000002 0.7500000000000000 0.2500000000000002 # Zn2
+ 0.2500000000000002 0.2500000000000002 0.7500000000000000 # Zn3
+ 0.7500000000000000 0.2500000000000002 0.2500000000000002 # Zn4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # S1
+ 0.5000000000000004 0.5000000000000004 0.0000000000000000 # S2
+ 0.0000000000000000 0.5000000000000004 0.5000000000000004 # S3
+ 0.5000000000000004 0.0000000000000000 0.5000000000000004 # S4
+ 0.8750000000000004 0.8750000000000004 0.8750000000000004 # O1
+ 0.8750000000000004 0.3750000000000000 0.3750000000000000 # O2
+ 0.3750000000000000 0.8750000000000004 0.3750000000000000 # O3
+ 0.3750000000000000 0.3750000000000000 0.8750000000000004 # O4
+ 0.8750000000000004 0.6250000000000000 0.6250000000000000 # O5
+ 0.1249999999999997 0.8750000000000004 0.1249999999999997 # O6
+ 0.1249999999999997 0.3750000000000000 0.6250000000000000 # O7
+ 0.6250000000000000 0.8750000000000004 0.6250000000000000 # O8
+ 0.6250000000000000 0.3750000000000000 0.1249999999999997 # O9
+ 0.8750000000000004 0.1249999999999997 0.1249999999999997 # O10
+ 0.3750000000000000 0.1250000000000005 0.6250000000000000 # O11
+ 0.3750000000000000 0.6250000000000000 0.1249999999999997 # O12
+ 0.1249999999999997 0.1250000000000005 0.8750000000000004 # O13
+ 0.1249999999999997 0.6250000000000000 0.3750000000000000 # O14
+ 0.6250000000000000 0.1249999999999997 0.3750000000000000 # O15
+ 0.6250000000000000 0.6250000000000000 0.8750000000000004 # O16
diff --git a/test/data/cubic/POSCAR-216-2 b/test/data/cubic/POSCAR-216-2
new file mode 100644
index 0000000..e5b4c0b
--- /dev/null
+++ b/test/data/cubic/POSCAR-216-2
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 7.5769964347050003 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.5769964347050003 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.5769964347050003
+ 4 16 28
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Te1
+ 0.0000000000000000 0.4999999999999999 0.4999999999999999 # Te2
+ 0.4999999999999999 0.0000000000000000 0.4999999999999999 # Te3
+ 0.4999999999999999 0.4999999999999999 0.0000000000000000 # Te4
+ 0.6270000000000000 0.6270000000000000 0.6270000000000000 # Be1
+ 0.6270000000000000 0.1270000000000001 0.1270000000000001 # Be2
+ 0.1270000000000001 0.6270000000000000 0.1270000000000001 # Be3
+ 0.1270000000000001 0.1270000000000001 0.6270000000000000 # Be4
+ 0.6270000000000000 0.3729999999999998 0.3729999999999998 # Be5
+ 0.6270000000000000 0.8730000000000003 0.8730000000000003 # Be6
+ 0.1270000000000001 0.3729999999999998 0.8730000000000003 # Be7
+ 0.1270000000000001 0.8730000000000003 0.3729999999999998 # Be8
+ 0.3729999999999998 0.3729999999999998 0.6270000000000000 # Be9
+ 0.3729999999999998 0.8730000000000003 0.1270000000000001 # Be10
+ 0.8730000000000003 0.3729999999999998 0.1270000000000001 # Be11
+ 0.8730000000000003 0.8730000000000003 0.6270000000000000 # Be12
+ 0.3729999999999998 0.6270000000000000 0.3729999999999998 # Be13
+ 0.3729999999999998 0.1270000000000001 0.8730000000000003 # Be14
+ 0.8730000000000003 0.6270000000000000 0.8730000000000003 # Be15
+ 0.8730000000000003 0.1270000000000001 0.3729999999999998 # Be16
+ 0.2531999999999996 0.0000000000000000 0.0000000000000000 # O1
+ 0.7500000000000002 0.7500000000000002 0.7500000000000002 # O2
+ 0.2532000000000003 0.4999999999999999 0.4999999999999999 # O3
+ 0.7500000000000002 0.2500000000000003 0.2500000000000003 # O4
+ 0.7532000000000001 0.0000000000000000 0.4999999999999999 # O5
+ 0.2500000000000003 0.7500000000000002 0.2500000000000003 # O6
+ 0.7532000000000001 0.4999999999999999 0.0000000000000000 # O7
+ 0.2500000000000003 0.2500000000000003 0.7500000000000002 # O8
+ 0.0000000000000000 -0.2531999999999996 0.0000000000000000 # O9
+ 0.0000000000000000 0.2468000000000003 0.4999999999999999 # O10
+ 0.4999999999999999 -0.2531999999999996 0.4999999999999999 # O11
+ 0.4999999999999999 0.2468000000000003 0.0000000000000000 # O12
+ -0.2531999999999996 0.0000000000000000 0.0000000000000000 # O13
+ -0.2531999999999996 0.4999999999999999 0.4999999999999999 # O14
+ 0.2468000000000003 0.0000000000000000 0.4999999999999999 # O15
+ 0.2468000000000003 0.4999999999999999 0.0000000000000000 # O16
+ 0.0000000000000000 0.2531999999999996 0.0000000000000000 # O17
+ 0.0000000000000000 0.7532000000000001 0.4999999999999999 # O18
+ 0.4999999999999999 0.2532000000000003 0.4999999999999999 # O19
+ 0.4999999999999999 0.7532000000000001 0.0000000000000000 # O20
+ 0.0000000000000000 0.0000000000000000 0.2531999999999996 # O21
+ 0.0000000000000000 0.4999999999999999 0.7532000000000001 # O22
+ 0.4999999999999999 0.0000000000000000 0.7532000000000001 # O23
+ 0.4999999999999999 0.4999999999999999 0.2531999999999996 # O24
+ 0.0000000000000000 0.0000000000000000 -0.2531999999999996 # O25
+ 0.0000000000000000 0.4999999999999999 0.2468000000000003 # O26
+ 0.4999999999999999 0.0000000000000000 0.2468000000000003 # O27
+ 0.4999999999999999 0.4999999999999999 -0.2531999999999996 # O28
diff --git a/test/data/cubic/POSCAR-217 b/test/data/cubic/POSCAR-217
new file mode 100644
index 0000000..877eb45
--- /dev/null
+++ b/test/data/cubic/POSCAR-217
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 12.6999940241195048 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.6999940241195048 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.6999940241195048
+ 8 24 32
+Direct
+ 0.2713000000000002 0.2713000000000002 0.2713000000000002 # Te1
+ 0.7712999999999997 0.7713000000000001 0.7712999999999997 # Te2
+ 0.2713000000000002 0.7287000000000001 0.7287000000000001 # Te3
+ 0.7712999999999997 0.2287000000000002 0.2287000000000002 # Te4
+ 0.7287000000000001 0.7287000000000001 0.2713000000000002 # Te5
+ 0.2287000000000002 0.2287000000000002 0.7712999999999997 # Te6
+ 0.7287000000000001 0.2713000000000002 0.7287000000000001 # Te7
+ 0.2287000000000002 0.7712999999999997 0.2287000000000002 # Te8
+ 0.4999999999999999 0.2500000000000000 0.0000000000000000 # K1
+ 0.0000000000000000 0.0000000000000000 0.2503000000000001 # K2
+ 0.0000000000000000 0.7499999999999998 0.4999999999999999 # K3
+ 0.4999999999999999 0.4999999999999999 0.7503000000000001 # K4
+ 0.2500000000000000 0.4999999999999999 0.0000000000000000 # K5
+ 0.0000000000000000 0.0000000000000000 0.7497000000000000 # K6
+ 0.7499999999999998 0.0000000000000000 0.4999999999999999 # K7
+ 0.4999999999999999 0.4999999999999999 0.2497000000000002 # K8
+ 0.4999999999999999 0.7499999999999998 0.0000000000000000 # K9
+ 0.0000000000000000 0.2500000000000000 0.4999999999999999 # K10
+ 0.7499999999999998 0.4999999999999999 0.0000000000000000 # K11
+ 0.2500000000000000 0.0000000000000000 0.4999999999999999 # K12
+ 0.4999999999999999 0.0000000000000000 0.7499999999999998 # K13
+ 0.0000000000000000 0.2503000000000001 0.0000000000000000 # K14
+ 0.0000000000000000 0.4999999999999999 0.2500000000000000 # K15
+ 0.4999999999999999 0.7503000000000001 0.4999999999999999 # K16
+ 0.4999999999999999 0.0000000000000000 0.2500000000000000 # K17
+ 0.0000000000000000 0.7497000000000000 0.0000000000000000 # K18
+ 0.0000000000000000 0.4999999999999999 0.7499999999999998 # K19
+ 0.4999999999999999 0.2497000000000002 0.4999999999999999 # K20
+ 0.7497000000000000 0.0000000000000000 0.0000000000000000 # K21
+ 0.2497000000000002 0.4999999999999999 0.4999999999999999 # K22
+ 0.2503000000000001 0.0000000000000000 0.0000000000000000 # K23
+ 0.7503000000000001 0.4999999999999999 0.4999999999999999 # K24
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # S1
+ 0.4999999999999999 0.4999999999999999 0.0000000000000000 # S2
+ 0.2500000000000000 0.2500000000000000 0.4536999999999999 # S3
+ 0.7499999999999998 0.7500000000000002 0.9536999999999999 # S4
+ 0.2500000000000000 0.7499999999999998 0.5463000000000002 # S5
+ 0.4999999999999999 0.4999999999999999 0.4999999999999999 # S6
+ 0.0000000000000000 0.0000000000000000 0.4999999999999999 # S7
+ 0.7499999999999998 0.2500000000000000 0.0462999999999999 # S8
+ 0.7499999999999998 0.7499999999999998 0.4536999999999999 # S9
+ 0.2500000000000000 0.2500000000000000 0.9536999999999999 # S10
+ 0.7499999999999998 0.2500000000000000 0.5463000000000002 # S11
+ 0.2500000000000000 0.7499999999999998 0.0462999999999999 # S12
+ 0.4999999999999999 0.0000000000000000 0.4999999999999999 # S13
+ 0.7499999999999998 0.4536999999999999 0.7499999999999998 # S14
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # S15
+ 0.2500000000000000 0.9536999999999999 0.2500000000000000 # S16
+ 0.7499999999999998 0.5463000000000002 0.2500000000000000 # S17
+ 0.2500000000000000 0.0462999999999999 0.7499999999999998 # S18
+ 0.0000000000000000 0.4999999999999999 0.4999999999999999 # S19
+ 0.5463000000000002 0.7499999999999998 0.2500000000000000 # S20
+ 0.4999999999999999 0.0000000000000000 0.0000000000000000 # S21
+ 0.0462999999999999 0.2500000000000000 0.7499999999999998 # S22
+ 0.4536999999999999 0.7500000000000002 0.7499999999999998 # S23
+ 0.9536999999999999 0.2500000000000000 0.2500000000000000 # S24
+ 0.4536999999999999 0.2500000000000000 0.2500000000000000 # S25
+ 0.9536999999999999 0.7500000000000002 0.7499999999999998 # S26
+ 0.2500000000000000 0.4536999999999999 0.2500000000000000 # S27
+ 0.7499999999999998 0.9537000000000004 0.7499999999999998 # S28
+ 0.5463000000000002 0.2500000000000000 0.7499999999999998 # S29
+ 0.0462999999999999 0.7499999999999998 0.2500000000000000 # S30
+ 0.2500000000000000 0.5463000000000002 0.7499999999999998 # S31
+ 0.7499999999999998 0.0462999999999999 0.2500000000000000 # S32
diff --git a/test/data/cubic/POSCAR-217-2 b/test/data/cubic/POSCAR-217-2
new file mode 100644
index 0000000..77a8f2e
--- /dev/null
+++ b/test/data/cubic/POSCAR-217-2
@@ -0,0 +1,65 @@
+$cell vectors
+1.0
+ 10.1679952155312687 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1679952155312687 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1679952155312687
+ 12 12 34
+Direct
+ 0.2899000000000003 0.0000000000000000 0.0000000000000000 # La1
+ 0.7899000000000002 0.5000000000000003 0.5000000000000003 # La2
+ 0.0000000000000000 0.7101000000000004 0.0000000000000000 # La3
+ 0.5000000000000003 0.2101000000000001 0.5000000000000003 # La4
+ 0.7101000000000004 0.0000000000000000 0.0000000000000000 # La5
+ 0.2101000000000001 0.5000000000000003 0.5000000000000003 # La6
+ 0.0000000000000000 0.2899000000000003 0.0000000000000000 # La7
+ 0.5000000000000003 0.7899000000000002 0.5000000000000003 # La8
+ 0.0000000000000000 0.0000000000000000 0.2899000000000003 # La9
+ 0.5000000000000003 0.5000000000000003 0.7899000000000002 # La10
+ 0.0000000000000000 0.0000000000000000 0.7101000000000004 # La11
+ 0.5000000000000003 0.5000000000000003 0.2101000000000001 # La12
+ 0.2499999999999999 0.5000000000000003 0.0000000000000000 # Ni1
+ 0.7500000000000003 0.0000000000000000 0.5000000000000003 # Ni2
+ 0.5000000000000003 0.7500000000000003 0.0000000000000000 # Ni3
+ 0.0000000000000000 0.2499999999999999 0.5000000000000003 # Ni4
+ 0.7500000000000003 0.5000000000000003 0.0000000000000000 # Ni5
+ 0.2499999999999999 0.0000000000000000 0.5000000000000003 # Ni6
+ 0.5000000000000003 0.2499999999999999 0.0000000000000000 # Ni7
+ 0.0000000000000000 0.7500000000000003 0.5000000000000003 # Ni8
+ 0.0000000000000000 0.5000000000000003 0.2499999999999999 # Ni9
+ 0.5000000000000003 0.0000000000000000 0.7500000000000003 # Ni10
+ 0.0000000000000000 0.5000000000000003 0.7500000000000003 # Ni11
+ 0.5000000000000003 0.0000000000000000 0.2499999999999999 # Ni12
+ 0.2014000000000002 0.2014000000000002 0.4322000000000004 # P1
+ 0.2148000000000000 0.2148000000000000 0.2148000000000000 # P2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # P3
+ 0.7014000000000001 0.7014000000000001 0.9322000000000001 # P4
+ 0.7148000000000003 0.7148000000000003 0.7148000000000003 # P5
+ 0.5000000000000003 0.5000000000000003 0.5000000000000003 # P6
+ 0.2014000000000002 0.7986000000000001 0.5678000000000004 # P7
+ 0.2148000000000000 0.7852000000000002 0.7852000000000002 # P8
+ 0.7014000000000001 0.2986000000000001 0.0678000000000001 # P9
+ 0.7148000000000003 0.2852000000000004 0.2851999999999998 # P10
+ 0.7986000000000001 0.7986000000000001 0.4322000000000004 # P11
+ 0.7852000000000002 0.7852000000000002 0.2148000000000000 # P12
+ 0.2986000000000001 0.2986000000000001 0.9322000000000001 # P13
+ 0.2852000000000004 0.2852000000000004 0.7148000000000003 # P14
+ 0.7986000000000001 0.2014000000000002 0.5678000000000004 # P15
+ 0.7852000000000002 0.2148000000000000 0.7852000000000002 # P16
+ 0.2986000000000001 0.7014000000000001 0.0678000000000001 # P17
+ 0.2852000000000004 0.7148000000000003 0.2851999999999998 # P18
+ 0.7986000000000001 0.4322000000000004 0.7986000000000001 # P19
+ 0.2986000000000001 0.9322000000000001 0.2986000000000001 # P20
+ 0.7986000000000001 0.5678000000000004 0.2014000000000002 # P21
+ 0.2986000000000001 0.0678000000000001 0.7014000000000001 # P22
+ 0.5678000000000004 0.7986000000000001 0.2014000000000002 # P23
+ 0.0678000000000001 0.2986000000000001 0.7014000000000001 # P24
+ 0.4322000000000004 0.7986000000000004 0.7986000000000001 # P25
+ 0.9322000000000001 0.2986000000000001 0.2986000000000001 # P26
+ 0.4322000000000004 0.2014000000000002 0.2014000000000002 # P27
+ 0.9322000000000001 0.7014000000000001 0.7014000000000001 # P28
+ 0.2014000000000002 0.4322000000000004 0.2014000000000002 # P29
+ 0.7014000000000001 0.9322000000000001 0.7014000000000001 # P30
+ 0.5678000000000004 0.2014000000000002 0.7986000000000001 # P31
+ 0.0678000000000001 0.7014000000000001 0.2986000000000001 # P32
+ 0.2014000000000002 0.5678000000000004 0.7986000000000001 # P33
+ 0.7014000000000001 0.0678000000000001 0.2986000000000001 # P34
diff --git a/test/data/cubic/POSCAR-218 b/test/data/cubic/POSCAR-218
new file mode 100644
index 0000000..e116a66
--- /dev/null
+++ b/test/data/cubic/POSCAR-218
@@ -0,0 +1,53 @@
+$cell vectors
+1.0
+ 8.2939960973265503 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2939960973265503 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2939960973265503
+ 24 8 6 6 2
+Direct
+ 0.1418000000000003 0.1403999999999999 0.4171000000000003 # O1
+ 0.6404000000000002 0.3582000000000000 0.0829000000000000 # O2
+ 0.8581999999999996 0.8596000000000000 0.4171000000000003 # O3
+ 0.3596000000000004 0.6418000000000000 0.0829000000000000 # O4
+ 0.3582000000000000 0.9171000000000000 0.3595999999999998 # O5
+ 0.1418000000000003 0.8596000000000000 0.5829000000000003 # O6
+ 0.3582000000000000 0.0829000000000000 0.6404000000000002 # O7
+ 0.0829000000000000 0.3596000000000004 0.6418000000000000 # O8
+ 0.8581999999999996 0.1403999999999999 0.5829000000000003 # O9
+ 0.9171000000000000 0.3596000000000004 0.3582000000000000 # O10
+ 0.4171000000000003 0.1418000000000003 0.1403999999999999 # O11
+ 0.1403999999999999 0.4171000000000003 0.1418000000000003 # O12
+ 0.8596000000000000 0.5829000000000003 0.1418000000000003 # O13
+ 0.4171000000000003 0.8582000000000004 0.8596000000000000 # O14
+ 0.8596000000000000 0.4171000000000003 0.8581999999999996 # O15
+ 0.5829000000000003 0.8581999999999996 0.1403999999999999 # O16
+ 0.5829000000000003 0.1418000000000003 0.8596000000000000 # O17
+ 0.1403999999999999 0.5829000000000003 0.8581999999999996 # O18
+ 0.3596000000000004 0.3582000000000000 0.9171000000000000 # O19
+ 0.6404000000000002 0.6418000000000000 0.9171000000000000 # O20
+ 0.6418000000000000 0.0829000000000000 0.3595999999999998 # O21
+ 0.6418000000000000 0.9171000000000000 0.6404000000000002 # O22
+ 0.0829000000000000 0.6404000000000002 0.3582000000000000 # O23
+ 0.9171000000000000 0.6404000000000002 0.6418000000000000 # O24
+ 0.1693000000000001 0.1693000000000001 0.1693000000000001 # Mn1
+ 0.6692999999999998 0.3307000000000002 0.3307000000000002 # Mn2
+ 0.8306999999999999 0.8306999999999999 0.1693000000000001 # Mn3
+ 0.3307000000000002 0.6692999999999998 0.3307000000000002 # Mn4
+ 0.1693000000000001 0.8306999999999999 0.8306999999999999 # Mn5
+ 0.3307000000000002 0.3307000000000002 0.6692999999999998 # Mn6
+ 0.8306999999999999 0.1693000000000001 0.8306999999999999 # Mn7
+ 0.6692999999999998 0.6693000000000003 0.6692999999999998 # Mn8
+ 0.0000000000000000 0.5000000000000003 0.2500000000000002 # Si1
+ 0.5000000000000003 0.7499999999999998 0.0000000000000000 # Si2
+ 0.0000000000000000 0.5000000000000003 0.7499999999999998 # Si3
+ 0.5000000000000003 0.2500000000000002 0.0000000000000000 # Si4
+ 0.2500000000000002 0.0000000000000000 0.5000000000000003 # Si5
+ 0.7499999999999998 0.0000000000000000 0.5000000000000003 # Si6
+ 0.5000000000000003 0.0000000000000000 0.2500000000000002 # Be1
+ 0.0000000000000000 0.7500000000000004 0.5000000000000003 # Be2
+ 0.5000000000000003 0.0000000000000000 0.7499999999999998 # Be3
+ 0.0000000000000000 0.2500000000000002 0.5000000000000003 # Be4
+ 0.2500000000000002 0.5000000000000003 0.0000000000000000 # Be5
+ 0.7499999999999998 0.5000000000000003 0.0000000000000000 # Be6
+ 0.5000000000000003 0.5000000000000003 0.5000000000000003 # S1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # S2
diff --git a/test/data/cubic/POSCAR-218-2 b/test/data/cubic/POSCAR-218-2
new file mode 100644
index 0000000..14d7ac2
--- /dev/null
+++ b/test/data/cubic/POSCAR-218-2
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 6.0259971645152861 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.0259971645152861 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.0259971645152861
+ 6 2 8
+Direct
+ 0.2500000000000003 0.0000000000000000 0.5000000000000006 # Ag1
+ 0.5000000000000006 0.2500000000000003 0.0000000000000000 # Ag2
+ 0.7499999999999998 0.0000000000000000 0.5000000000000006 # Ag3
+ 0.5000000000000006 0.7499999999999998 0.0000000000000000 # Ag4
+ 0.0000000000000000 0.5000000000000006 0.7499999999999998 # Ag5
+ 0.0000000000000000 0.5000000000000006 0.2500000000000003 # Ag6
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # P1
+ 0.5000000000000006 0.5000000000000006 0.5000000000000006 # P2
+ 0.1485999999999999 0.1485999999999999 0.1485999999999999 # O1
+ 0.6486000000000003 0.3513999999999997 0.3513999999999997 # O2
+ 0.8514000000000002 0.8514000000000002 0.1485999999999999 # O3
+ 0.3513999999999997 0.6486000000000003 0.3513999999999997 # O4
+ 0.1485999999999999 0.8514000000000002 0.8514000000000002 # O5
+ 0.3513999999999997 0.3513999999999997 0.6486000000000003 # O6
+ 0.8514000000000002 0.1485999999999999 0.8514000000000002 # O7
+ 0.6486000000000003 0.6486000000000003 0.6486000000000003 # O8
diff --git a/test/data/cubic/POSCAR-219 b/test/data/cubic/POSCAR-219
new file mode 100644
index 0000000..6aea46b
--- /dev/null
+++ b/test/data/cubic/POSCAR-219
@@ -0,0 +1,183 @@
+$cell vectors
+1.0
+ 17.3439918389235253 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 17.3439918389235253 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.3439918389235253
+ 48 128
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Si1
+ 0.1722999999999999 0.1723000000000002 0.1722999999999999 # Si2
+ 0.2499999999999999 0.2499999999999999 0.2499999999999999 # Si3
+ 0.0000000000000000 0.5000000000000001 0.4999999999999997 # Si4
+ 0.1723000000000002 0.6723000000000000 0.6723000000000000 # Si5
+ 0.2500000000000002 0.7500000000000000 0.7500000000000000 # Si6
+ 0.4999999999999997 0.0000000000000000 0.4999999999999997 # Si7
+ 0.6723000000000000 0.1723000000000002 0.6723000000000000 # Si8
+ 0.4999999999999997 0.4999999999999997 0.0000000000000000 # Si9
+ 0.6723000000000000 0.6723000000000000 0.1722999999999999 # Si10
+ 0.7500000000000000 0.7500000000000000 0.2499999999999999 # Si11
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # Si12
+ 0.1723000000000002 0.8277000000000001 0.3277000000000000 # Si13
+ 0.2499999999999999 0.7500000000000000 0.2499999999999999 # Si14
+ 0.0000000000000000 0.4999999999999997 0.0000000000000000 # Si15
+ 0.1723000000000002 0.3277000000000000 0.8277000000000001 # Si16
+ 0.2499999999999999 0.2500000000000002 0.7500000000000000 # Si17
+ 0.4999999999999997 0.0000000000000000 0.0000000000000000 # Si18
+ 0.6723000000000000 0.8277000000000001 0.8277000000000001 # Si19
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Si20
+ 0.4999999999999997 0.5000000000000001 0.4999999999999997 # Si21
+ 0.6723000000000000 0.3277000000000000 0.3277000000000000 # Si22
+ 0.7500000000000000 0.2499999999999999 0.2499999999999999 # Si23
+ 0.8277000000000001 0.8277000000000001 0.1722999999999999 # Si24
+ 0.3277000000000000 0.8277000000000001 0.6723000000000000 # Si25
+ 0.3277000000000000 0.3277000000000000 0.1722999999999999 # Si26
+ 0.8277000000000001 0.1723000000000002 0.3277000000000000 # Si27
+ 0.8277000000000001 0.6723000000000000 0.8277000000000001 # Si28
+ 0.3277000000000000 0.1723000000000002 0.8277000000000001 # Si29
+ 0.3277000000000000 0.6723000000000000 0.3277000000000000 # Si30
+ 0.1723000000000002 0.8277000000000001 0.8277000000000001 # Si31
+ 0.1723000000000002 0.3277000000000000 0.3277000000000000 # Si32
+ 0.6723000000000000 0.8277000000000001 0.3277000000000000 # Si33
+ 0.6723000000000000 0.3277000000000000 0.8277000000000001 # Si34
+ 0.8277000000000001 0.8277000000000001 0.6723000000000000 # Si35
+ 0.8277000000000001 0.3277000000000000 0.1722999999999999 # Si36
+ 0.3277000000000000 0.8277000000000001 0.1722999999999999 # Si37
+ 0.3277000000000000 0.3277000000000000 0.6723000000000000 # Si38
+ 0.8277000000000001 0.1723000000000002 0.8277000000000001 # Si39
+ 0.8277000000000001 0.6723000000000000 0.3277000000000000 # Si40
+ 0.3277000000000000 0.1723000000000002 0.3277000000000000 # Si41
+ 0.3277000000000000 0.6723000000000000 0.8277000000000001 # Si42
+ 0.8277000000000001 0.3277000000000000 0.6723000000000000 # Si43
+ 0.7500000000000000 0.2500000000000002 0.7500000000000000 # Si44
+ 0.1723000000000002 0.1723000000000002 0.6723000000000000 # Si45
+ 0.1723000000000002 0.6723000000000000 0.1722999999999999 # Si46
+ 0.6723000000000000 0.1723000000000002 0.1722999999999999 # Si47
+ 0.6723000000000000 0.6723000000000000 0.6723000000000000 # Si48
+ -0.0650000000000001 -0.0650000000000001 -0.0650000000000001 # Cl1
+ 0.2321999999999999 0.1344000000000001 0.0818000000000000 # Cl2
+ -0.0649999999999998 0.4350000000000001 0.4350000000000001 # Cl3
+ 0.2322000000000002 0.6344000000000000 0.5817999999999999 # Cl4
+ 0.4350000000000001 -0.0649999999999998 0.4350000000000001 # Cl5
+ 0.7322000000000000 0.1344000000000001 0.5817999999999999 # Cl6
+ 0.4350000000000001 0.4350000000000001 -0.0650000000000001 # Cl7
+ 0.7322000000000000 0.6344000000000000 0.0818000000000000 # Cl8
+ -0.0649999999999998 0.0650000000000001 0.5649999999999999 # Cl9
+ 0.1344000000000001 0.7678000000000001 0.4181999999999999 # Cl10
+ -0.0649999999999998 0.5649999999999999 0.0650000000000001 # Cl11
+ 0.1344000000000001 0.2678000000000003 0.9182000000000000 # Cl12
+ 0.4350000000000001 0.0650000000000001 0.0650000000000001 # Cl13
+ 0.6344000000000000 0.7678000000000001 0.9182000000000000 # Cl14
+ 0.4350000000000001 0.5649999999999999 0.5649999999999999 # Cl15
+ 0.6344000000000000 0.2678000000000003 0.4181999999999999 # Cl16
+ 0.0650000000000001 0.0649999999999998 -0.0650000000000001 # Cl17
+ 0.7678000000000001 0.8655999999999999 0.0818000000000000 # Cl18
+ 0.0650000000000001 0.5649999999999999 0.4350000000000001 # Cl19
+ 0.7678000000000001 0.3656000000000000 0.5817999999999999 # Cl20
+ 0.5649999999999999 0.0650000000000001 0.4350000000000001 # Cl21
+ 0.2678000000000003 0.8656000000000003 0.5817999999999999 # Cl22
+ 0.5649999999999999 0.5649999999999999 -0.0650000000000001 # Cl23
+ 0.2677999999999999 0.3656000000000000 0.0818000000000000 # Cl24
+ 0.0650000000000001 -0.0649999999999998 0.5649999999999999 # Cl25
+ 0.8655999999999999 0.2321999999999999 0.4181999999999999 # Cl26
+ 0.0650000000000001 0.4350000000000001 0.0650000000000001 # Cl27
+ 0.8656000000000003 0.7322000000000000 0.9182000000000000 # Cl28
+ 0.5649999999999999 -0.0649999999999998 0.0650000000000001 # Cl29
+ 0.3656000000000000 0.2322000000000002 0.9182000000000000 # Cl30
+ 0.5649999999999999 0.4350000000000001 0.5649999999999999 # Cl31
+ 0.3656000000000000 0.7322000000000000 0.4181999999999999 # Cl32
+ 0.7678000000000001 0.0818000000000000 0.3656000000000000 # Cl33
+ 0.7678000000000001 0.5818000000000001 0.8655999999999999 # Cl34
+ 0.2678000000000003 0.0818000000000000 0.8655999999999999 # Cl35
+ 0.2678000000000003 0.5817999999999999 0.3656000000000000 # Cl36
+ -0.0650000000000001 0.0650000000000001 0.0650000000000001 # Cl37
+ 0.2322000000000002 0.8656000000000003 0.9182000000000000 # Cl38
+ -0.0649999999999998 0.5649999999999999 0.5649999999999999 # Cl39
+ 0.2321999999999999 0.3656000000000000 0.4181999999999999 # Cl40
+ 0.4350000000000001 0.0650000000000001 0.5649999999999999 # Cl41
+ 0.7322000000000000 0.8655999999999999 0.4181999999999999 # Cl42
+ 0.4350000000000001 0.5649999999999999 0.0650000000000001 # Cl43
+ 0.7322000000000000 0.3656000000000000 0.9182000000000000 # Cl44
+ 0.0650000000000001 0.0650000000000001 0.4350000000000001 # Cl45
+ 0.7678000000000001 0.9182000000000000 0.6344000000000000 # Cl46
+ 0.0650000000000001 0.5649999999999999 -0.0650000000000001 # Cl47
+ 0.7678000000000001 0.4181999999999999 0.1344000000000001 # Cl48
+ 0.5649999999999999 0.0649999999999998 -0.0650000000000001 # Cl49
+ 0.2678000000000003 0.9182000000000000 0.1344000000000001 # Cl50
+ 0.5649999999999999 0.5649999999999999 0.4350000000000001 # Cl51
+ 0.2678000000000003 0.4181999999999999 0.6344000000000000 # Cl52
+ 0.9182000000000000 0.8656000000000003 0.7322000000000000 # Cl53
+ 0.9182000000000000 0.3656000000000000 0.2321999999999999 # Cl54
+ 0.4181999999999999 0.8655999999999999 0.2321999999999999 # Cl55
+ 0.4181999999999999 0.3656000000000000 0.7322000000000000 # Cl56
+ 0.0650000000000001 -0.0649999999999998 0.0650000000000001 # Cl57
+ 0.7678000000000001 0.1344000000000001 0.9182000000000000 # Cl58
+ 0.0650000000000001 0.4350000000000001 0.5649999999999999 # Cl59
+ 0.7678000000000001 0.6344000000000000 0.4181999999999999 # Cl60
+ 0.5649999999999999 -0.0649999999999998 0.5649999999999999 # Cl61
+ 0.2678000000000003 0.1344000000000001 0.4181999999999999 # Cl62
+ 0.5649999999999999 0.4350000000000001 0.0650000000000001 # Cl63
+ 0.2678000000000003 0.6344000000000000 0.9182000000000000 # Cl64
+ 0.0818000000000000 0.8655999999999999 0.2677999999999999 # Cl65
+ 0.0818000000000000 0.3656000000000000 0.7678000000000001 # Cl66
+ 0.5818000000000001 0.8656000000000003 0.7678000000000001 # Cl67
+ 0.5817999999999999 0.3656000000000000 0.2677999999999999 # Cl68
+ 0.0818000000000000 0.2321999999999999 0.1344000000000001 # Cl69
+ 0.0818000000000000 0.7322000000000000 0.6344000000000000 # Cl70
+ 0.5817999999999999 0.2321999999999999 0.6344000000000000 # Cl71
+ 0.5817999999999999 0.7322000000000000 0.1344000000000001 # Cl72
+ 0.1344000000000001 0.0818000000000000 0.2321999999999999 # Cl73
+ 0.1344000000000001 0.5818000000000001 0.7322000000000000 # Cl74
+ 0.6344000000000000 0.0818000000000000 0.7322000000000000 # Cl75
+ 0.6344000000000000 0.5817999999999999 0.2321999999999999 # Cl76
+ 0.8656000000000003 0.9182000000000000 0.2321999999999999 # Cl77
+ 0.8655999999999999 0.4182000000000002 0.7322000000000000 # Cl78
+ 0.3656000000000000 0.9182000000000000 0.7322000000000000 # Cl79
+ 0.3656000000000000 0.4181999999999999 0.2321999999999999 # Cl80
+ 0.0818000000000000 0.7678000000000001 0.8655999999999999 # Cl81
+ 0.0818000000000000 0.2678000000000003 0.3656000000000000 # Cl82
+ 0.5817999999999999 0.7678000000000001 0.3656000000000000 # Cl83
+ 0.5818000000000001 0.2678000000000003 0.8655999999999999 # Cl84
+ 0.8655999999999999 0.0818000000000000 0.7678000000000001 # Cl85
+ 0.8655999999999999 0.5817999999999999 0.2677999999999999 # Cl86
+ 0.3656000000000000 0.0818000000000000 0.2677999999999999 # Cl87
+ 0.3656000000000000 0.5818000000000001 0.7678000000000001 # Cl88
+ 0.9182000000000000 0.7678000000000001 0.1344000000000001 # Cl89
+ 0.9182000000000000 0.2678000000000003 0.6344000000000000 # Cl90
+ 0.4182000000000002 0.7678000000000001 0.6344000000000000 # Cl91
+ 0.4181999999999999 0.2677999999999999 0.1344000000000001 # Cl92
+ 0.9182000000000000 0.2322000000000002 0.8655999999999999 # Cl93
+ 0.9182000000000000 0.7322000000000000 0.3656000000000000 # Cl94
+ 0.4181999999999999 0.2321999999999999 0.3656000000000000 # Cl95
+ 0.4182000000000002 0.7322000000000000 0.8655999999999999 # Cl96
+ 0.1344000000000001 0.9182000000000000 0.7678000000000001 # Cl97
+ 0.1344000000000001 0.4181999999999999 0.2677999999999999 # Cl98
+ 0.6344000000000000 0.9182000000000000 0.2677999999999999 # Cl99
+ 0.6344000000000000 0.4182000000000002 0.7678000000000001 # Cl100
+ 0.8655999999999999 0.7678000000000001 0.5817999999999999 # Cl101
+ 0.8655999999999999 0.2677999999999999 0.0818000000000000 # Cl102
+ 0.3656000000000000 0.7678000000000001 0.0818000000000000 # Cl103
+ 0.3656000000000000 0.2678000000000003 0.5817999999999999 # Cl104
+ -0.0649999999999998 -0.0649999999999998 0.4350000000000001 # Cl105
+ 0.1344000000000001 0.2321999999999999 0.5817999999999999 # Cl106
+ -0.0649999999999998 0.4350000000000001 -0.0650000000000001 # Cl107
+ 0.1344000000000001 0.7322000000000000 0.0818000000000000 # Cl108
+ 0.4350000000000001 -0.0650000000000001 -0.0650000000000001 # Cl109
+ 0.6344000000000000 0.2321999999999999 0.0818000000000000 # Cl110
+ 0.4350000000000001 0.4350000000000001 0.4350000000000001 # Cl111
+ 0.6344000000000000 0.7322000000000000 0.5817999999999999 # Cl112
+ 0.2321999999999999 0.9182000000000000 0.3656000000000000 # Cl113
+ 0.2322000000000002 0.4182000000000002 0.8655999999999999 # Cl114
+ 0.7322000000000000 0.9182000000000000 0.8655999999999999 # Cl115
+ 0.7322000000000000 0.4181999999999999 0.3656000000000000 # Cl116
+ 0.2321999999999999 0.0818000000000000 0.6344000000000000 # Cl117
+ 0.2321999999999999 0.5817999999999999 0.1344000000000001 # Cl118
+ 0.7322000000000000 0.0818000000000000 0.1344000000000001 # Cl119
+ 0.7322000000000000 0.5818000000000001 0.6344000000000000 # Cl120
+ 0.9182000000000000 0.1344000000000001 0.2677999999999999 # Cl121
+ 0.9182000000000000 0.6344000000000000 0.7678000000000001 # Cl122
+ 0.4181999999999999 0.1344000000000001 0.7678000000000001 # Cl123
+ 0.4181999999999999 0.6344000000000000 0.2677999999999999 # Cl124
+ 0.0818000000000000 0.1344000000000001 0.7322000000000000 # Cl125
+ 0.0818000000000000 0.6344000000000000 0.2321999999999999 # Cl126
+ 0.5817999999999999 0.1344000000000001 0.2321999999999999 # Cl127
+ 0.5817999999999999 0.6344000000000000 0.7322000000000000 # Cl128
diff --git a/test/data/cubic/POSCAR-219-2 b/test/data/cubic/POSCAR-219-2
new file mode 100644
index 0000000..531cd6b
--- /dev/null
+++ b/test/data/cubic/POSCAR-219-2
@@ -0,0 +1,223 @@
+$cell vectors
+1.0
+ 12.1409942871523580 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.1409942871523580 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.1409942871523580
+ 56 56 96 8
+Direct
+ 0.8707000000000000 0.8707000000000005 0.8707000000000000 # Li1
+ 0.0000000000000000 0.2500000000000001 0.2500000000000001 # Li2
+ 0.8707000000000000 0.3707000000000001 0.3707000000000001 # Li3
+ 0.0000000000000000 0.7500000000000004 0.7500000000000000 # Li4
+ 0.3707000000000001 0.8707000000000000 0.3707000000000001 # Li5
+ 0.5000000000000002 0.2500000000000001 0.7500000000000000 # Li6
+ 0.3707000000000001 0.3707000000000001 0.8707000000000000 # Li7
+ 0.5000000000000002 0.7500000000000000 0.2500000000000001 # Li8
+ 0.8707000000000000 0.1293000000000002 0.6293000000000000 # Li9
+ 0.2500000000000001 0.0000000000000000 0.2500000000000001 # Li10
+ 0.8707000000000000 0.6293000000000000 0.1293000000000002 # Li11
+ 0.2500000000000001 0.5000000000000002 0.7500000000000000 # Li12
+ 0.3707000000000001 0.1293000000000002 0.1293000000000002 # Li13
+ 0.7500000000000000 0.0000000000000000 0.7500000000000000 # Li14
+ 0.3707000000000001 0.6293000000000000 0.6293000000000000 # Li15
+ 0.7500000000000000 0.4999999999999997 0.2500000000000001 # Li16
+ 0.1293000000000002 0.1293000000000002 0.8707000000000000 # Li17
+ 0.0000000000000000 0.7500000000000000 0.2500000000000001 # Li18
+ 0.1293000000000002 0.6293000000000000 0.3707000000000001 # Li19
+ 0.0000000000000000 0.2500000000000001 0.7500000000000000 # Li20
+ 0.6293000000000000 0.1293000000000002 0.3707000000000001 # Li21
+ 0.5000000000000002 0.7500000000000004 0.7500000000000000 # Li22
+ 0.6293000000000000 0.6293000000000000 0.8707000000000000 # Li23
+ 0.4999999999999997 0.2500000000000001 0.2500000000000001 # Li24
+ 0.1293000000000002 0.8707000000000000 0.6293000000000000 # Li25
+ 0.7500000000000000 0.0000000000000000 0.2500000000000001 # Li26
+ 0.1293000000000002 0.3707000000000001 0.1293000000000002 # Li27
+ 0.7500000000000000 0.5000000000000002 0.7500000000000000 # Li28
+ 0.6293000000000000 0.8707000000000000 0.1293000000000002 # Li29
+ 0.2500000000000001 0.0000000000000000 0.7500000000000000 # Li30
+ 0.6293000000000000 0.3707000000000001 0.6293000000000000 # Li31
+ 0.2500000000000001 0.4999999999999997 0.2500000000000001 # Li32
+ 0.8707000000000000 0.1293000000000002 0.1293000000000002 # Li33
+ 0.8707000000000000 0.6293000000000000 0.6293000000000000 # Li34
+ 0.3707000000000001 0.1293000000000002 0.6293000000000000 # Li35
+ 0.3707000000000001 0.6293000000000000 0.1293000000000002 # Li36
+ 0.1293000000000002 0.1293000000000002 0.3707000000000001 # Li37
+ 0.1293000000000002 0.6293000000000000 0.8707000000000000 # Li38
+ 0.6293000000000000 0.1293000000000002 0.8707000000000000 # Li39
+ 0.6293000000000000 0.6293000000000000 0.3707000000000001 # Li40
+ 0.7500000000000000 0.7500000000000000 0.4999999999999997 # Li41
+ 0.7500000000000000 0.2500000000000001 0.0000000000000000 # Li42
+ 0.2500000000000001 0.7500000000000000 0.0000000000000000 # Li43
+ 0.2500000000000001 0.2500000000000001 0.4999999999999997 # Li44
+ 0.1293000000000002 0.8707000000000000 0.1293000000000002 # Li45
+ 0.1293000000000002 0.3707000000000001 0.6293000000000000 # Li46
+ 0.6293000000000000 0.8707000000000000 0.6293000000000000 # Li47
+ 0.6293000000000000 0.3707000000000001 0.1293000000000002 # Li48
+ 0.2500000000000001 0.7500000000000000 0.4999999999999997 # Li49
+ 0.2500000000000001 0.2500000000000001 0.0000000000000000 # Li50
+ 0.7500000000000000 0.7500000000000000 0.0000000000000000 # Li51
+ 0.7500000000000000 0.2500000000000001 0.4999999999999997 # Li52
+ 0.8707000000000000 0.8707000000000000 0.3707000000000001 # Li53
+ 0.8707000000000000 0.3707000000000001 0.8707000000000000 # Li54
+ 0.3707000000000001 0.8707000000000005 0.8707000000000000 # Li55
+ 0.3707000000000001 0.3707000000000001 0.3707000000000001 # Li56
+ 0.2500000000000001 0.0000000000000000 0.0000000000000000 # B1
+ 0.1002999999999999 0.1002999999999999 0.1002999999999999 # B2
+ 0.2500000000000001 0.5000000000000002 0.4999999999999997 # B3
+ 0.1002999999999999 0.6003000000000001 0.6003000000000001 # B4
+ 0.7500000000000000 0.0000000000000000 0.4999999999999997 # B5
+ 0.6003000000000001 0.1002999999999999 0.6003000000000001 # B6
+ 0.7500000000000000 0.4999999999999997 0.0000000000000000 # B7
+ 0.6003000000000001 0.6003000000000001 0.1002999999999999 # B8
+ 0.0000000000000000 0.7500000000000000 0.4999999999999997 # B9
+ 0.1002999999999999 0.8997000000000001 0.3996999999999999 # B10
+ 0.0000000000000000 0.2500000000000001 0.0000000000000000 # B11
+ 0.1002999999999999 0.3996999999999999 0.8997000000000001 # B12
+ 0.5000000000000002 0.7500000000000000 0.0000000000000000 # B13
+ 0.6003000000000001 0.8997000000000001 0.8997000000000001 # B14
+ 0.4999999999999997 0.2500000000000001 0.4999999999999997 # B15
+ 0.6003000000000001 0.3996999999999999 0.3996999999999999 # B16
+ 0.7500000000000000 0.0000000000000000 0.0000000000000000 # B17
+ 0.8997000000000001 0.8997000000000001 0.1002999999999999 # B18
+ 0.7500000000000000 0.5000000000000002 0.4999999999999997 # B19
+ 0.8997000000000001 0.3996999999999999 0.6003000000000001 # B20
+ 0.2500000000000001 0.0000000000000000 0.4999999999999997 # B21
+ 0.3997000000000003 0.8997000000000001 0.6003000000000001 # B22
+ 0.2500000000000001 0.4999999999999997 0.0000000000000000 # B23
+ 0.3996999999999999 0.3996999999999999 0.1002999999999999 # B24
+ 0.0000000000000000 0.2500000000000001 0.4999999999999997 # B25
+ 0.8997000000000001 0.1002999999999999 0.3996999999999999 # B26
+ 0.0000000000000000 0.7500000000000000 0.0000000000000000 # B27
+ 0.8997000000000001 0.6003000000000001 0.8997000000000001 # B28
+ 0.4999999999999997 0.2500000000000001 0.0000000000000000 # B29
+ 0.3996999999999999 0.1002999999999999 0.8997000000000001 # B30
+ 0.5000000000000002 0.7500000000000000 0.4999999999999997 # B31
+ 0.3996999999999999 0.6003000000000001 0.3996999999999999 # B32
+ 0.1002999999999999 0.8997000000000001 0.8997000000000001 # B33
+ 0.1002999999999999 0.3996999999999999 0.3996999999999999 # B34
+ 0.6003000000000001 0.8997000000000001 0.3996999999999999 # B35
+ 0.6003000000000001 0.3996999999999999 0.8997000000000001 # B36
+ 0.8997000000000001 0.8997000000000001 0.6003000000000001 # B37
+ 0.8997000000000001 0.3996999999999999 0.1002999999999999 # B38
+ 0.3996999999999999 0.8997000000000001 0.1002999999999999 # B39
+ 0.3996999999999999 0.3996999999999999 0.6003000000000001 # B40
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # B41
+ 0.0000000000000000 0.4999999999999997 0.2500000000000001 # B42
+ 0.4999999999999997 0.0000000000000000 0.2500000000000001 # B43
+ 0.5000000000000002 0.5000000000000002 0.7500000000000000 # B44
+ 0.8997000000000001 0.1002999999999999 0.8997000000000001 # B45
+ 0.8997000000000001 0.6003000000000001 0.3996999999999999 # B46
+ 0.3996999999999999 0.1002999999999999 0.3996999999999999 # B47
+ 0.3997000000000003 0.6003000000000001 0.8997000000000001 # B48
+ 0.0000000000000000 0.0000000000000000 0.2500000000000001 # B49
+ 0.0000000000000000 0.5000000000000002 0.7500000000000000 # B50
+ 0.5000000000000002 0.0000000000000000 0.7500000000000000 # B51
+ 0.4999999999999997 0.4999999999999997 0.2500000000000001 # B52
+ 0.1002999999999999 0.1002999999999999 0.6003000000000001 # B53
+ 0.1002999999999999 0.6003000000000001 0.1002999999999999 # B54
+ 0.6003000000000001 0.1002999999999999 0.1002999999999999 # B55
+ 0.6003000000000001 0.6003000000000001 0.6003000000000001 # B56
+ 0.0225000000000002 0.0980999999999999 0.1817000000000000 # O1
+ 0.0225000000000002 0.5981000000000002 0.6816999999999999 # O2
+ 0.5225000000000000 0.0980999999999999 0.6816999999999999 # O3
+ 0.5225000000000000 0.5980999999999997 0.1817000000000000 # O4
+ 0.0980999999999999 0.9774999999999998 0.3182999999999998 # O5
+ 0.0980999999999999 0.4775000000000000 0.8183000000000001 # O6
+ 0.5981000000000002 0.9775000000000003 0.8183000000000001 # O7
+ 0.5980999999999997 0.4775000000000000 0.3182999999999998 # O8
+ 0.9774999999999998 0.9019000000000001 0.1817000000000000 # O9
+ 0.9774999999999998 0.4018999999999999 0.6816999999999999 # O10
+ 0.4775000000000000 0.9019000000000001 0.6816999999999999 # O11
+ 0.4775000000000000 0.4018999999999999 0.1817000000000000 # O12
+ 0.9018999999999997 0.0225000000000002 0.3182999999999998 # O13
+ 0.9019000000000001 0.5225000000000000 0.8183000000000001 # O14
+ 0.4018999999999999 0.0225000000000002 0.8183000000000001 # O15
+ 0.4018999999999999 0.5225000000000000 0.3182999999999998 # O16
+ 0.9774999999999998 0.1817000000000000 0.4018999999999999 # O17
+ 0.9774999999999998 0.6817000000000003 0.9019000000000001 # O18
+ 0.4775000000000000 0.1817000000000000 0.9019000000000001 # O19
+ 0.4775000000000000 0.6816999999999999 0.4018999999999999 # O20
+ 0.0225000000000002 0.9019000000000001 0.8183000000000001 # O21
+ 0.0225000000000002 0.4018999999999999 0.3182999999999998 # O22
+ 0.5225000000000000 0.9019000000000001 0.3182999999999998 # O23
+ 0.5225000000000000 0.4018999999999999 0.8183000000000001 # O24
+ 0.9774999999999998 0.8183000000000001 0.5980999999999997 # O25
+ 0.9774999999999998 0.3182999999999998 0.0980999999999999 # O26
+ 0.4775000000000000 0.8183000000000001 0.0980999999999999 # O27
+ 0.4775000000000000 0.3183000000000002 0.5980999999999997 # O28
+ 0.8183000000000001 0.9019000000000001 0.5225000000000000 # O29
+ 0.8183000000000001 0.4018999999999999 0.0224999999999997 # O30
+ 0.3183000000000002 0.9019000000000001 0.0225000000000002 # O31
+ 0.3183000000000002 0.4018999999999999 0.5225000000000000 # O32
+ 0.9774999999999998 0.0980999999999999 0.8183000000000001 # O33
+ 0.9774999999999998 0.5980999999999997 0.3182999999999998 # O34
+ 0.4775000000000000 0.0980999999999999 0.3182999999999998 # O35
+ 0.4775000000000000 0.5981000000000002 0.8183000000000001 # O36
+ 0.1817000000000000 0.9019000000000001 0.4775000000000000 # O37
+ 0.1817000000000000 0.4018999999999999 0.9774999999999998 # O38
+ 0.6816999999999999 0.9019000000000001 0.9774999999999998 # O39
+ 0.6816999999999999 0.4018999999999999 0.4775000000000000 # O40
+ 0.1817000000000000 0.0225000000000002 0.0980999999999999 # O41
+ 0.1817000000000000 0.5225000000000000 0.5980999999999997 # O42
+ 0.6816999999999999 0.0225000000000002 0.5980999999999997 # O43
+ 0.6816999999999999 0.5225000000000000 0.0980999999999999 # O44
+ 0.0980999999999999 0.1817000000000000 0.0225000000000002 # O45
+ 0.0980999999999999 0.6816999999999999 0.5225000000000000 # O46
+ 0.5980999999999997 0.1817000000000000 0.5225000000000000 # O47
+ 0.5981000000000002 0.6816999999999999 0.0225000000000002 # O48
+ 0.9019000000000001 0.8183000000000001 0.0225000000000002 # O49
+ 0.9018999999999997 0.3183000000000002 0.5225000000000000 # O50
+ 0.4018999999999999 0.8183000000000001 0.5225000000000000 # O51
+ 0.4018999999999999 0.3182999999999998 0.0225000000000002 # O52
+ 0.1817000000000000 0.9775000000000003 0.9019000000000001 # O53
+ 0.1817000000000000 0.4775000000000000 0.4018999999999999 # O54
+ 0.6816999999999999 0.9774999999999998 0.4018999999999999 # O55
+ 0.6816999999999999 0.4775000000000000 0.9019000000000001 # O56
+ 0.9019000000000001 0.1817000000000000 0.9774999999999998 # O57
+ 0.9018999999999997 0.6816999999999999 0.4775000000000000 # O58
+ 0.4018999999999999 0.1817000000000000 0.4775000000000000 # O59
+ 0.4019000000000003 0.6817000000000003 0.9774999999999998 # O60
+ 0.8183000000000001 0.9774999999999998 0.0980999999999999 # O61
+ 0.8183000000000001 0.4775000000000000 0.5980999999999997 # O62
+ 0.3183000000000002 0.9774999999999998 0.5980999999999997 # O63
+ 0.3183000000000002 0.4775000000000000 0.0980999999999999 # O64
+ 0.8183000000000001 0.0225000000000002 0.9019000000000001 # O65
+ 0.8183000000000001 0.5225000000000000 0.4018999999999999 # O66
+ 0.3183000000000002 0.0225000000000002 0.4018999999999999 # O67
+ 0.3183000000000002 0.5225000000000000 0.9019000000000001 # O68
+ 0.0980999999999999 0.8183000000000004 0.9774999999999998 # O69
+ 0.0980999999999999 0.3183000000000002 0.4775000000000000 # O70
+ 0.5981000000000002 0.8183000000000001 0.4775000000000000 # O71
+ 0.5981000000000002 0.3183000000000002 0.9774999999999998 # O72
+ 0.9018999999999997 0.9775000000000003 0.6816999999999999 # O73
+ 0.9019000000000001 0.4775000000000000 0.1817000000000000 # O74
+ 0.4018999999999999 0.9774999999999998 0.1817000000000000 # O75
+ 0.4018999999999999 0.4775000000000000 0.6816999999999999 # O76
+ 0.0980999999999999 0.0225000000000002 0.6816999999999999 # O77
+ 0.0980999999999999 0.5225000000000000 0.1817000000000000 # O78
+ 0.5980999999999997 0.0225000000000002 0.1817000000000000 # O79
+ 0.5981000000000002 0.5225000000000000 0.6816999999999999 # O80
+ 0.0225000000000002 0.8183000000000001 0.4018999999999999 # O81
+ 0.0225000000000002 0.3183000000000002 0.9018999999999997 # O82
+ 0.5225000000000000 0.8183000000000004 0.9019000000000001 # O83
+ 0.5225000000000000 0.3183000000000002 0.4018999999999999 # O84
+ 0.0225000000000002 0.1817000000000000 0.5980999999999997 # O85
+ 0.0225000000000002 0.6816999999999999 0.0980999999999999 # O86
+ 0.5225000000000000 0.1817000000000000 0.0980999999999999 # O87
+ 0.5225000000000000 0.6816999999999999 0.5980999999999997 # O88
+ 0.8183000000000001 0.0980999999999999 0.4775000000000000 # O89
+ 0.8183000000000001 0.5981000000000002 0.9774999999999998 # O90
+ 0.3183000000000002 0.0980999999999999 0.9774999999999998 # O91
+ 0.3183000000000002 0.5981000000000002 0.4775000000000000 # O92
+ 0.1817000000000000 0.0980999999999999 0.5225000000000000 # O93
+ 0.1817000000000000 0.5980999999999997 0.0225000000000002 # O94
+ 0.6816999999999999 0.0980999999999999 0.0225000000000002 # O95
+ 0.6816999999999999 0.5981000000000002 0.5225000000000000 # O96
+ 0.2500000000000001 0.2500000000000001 0.2500000000000001 # Cl1
+ 0.2500000000000001 0.7500000000000004 0.7500000000000000 # Cl2
+ 0.7500000000000000 0.2500000000000001 0.7500000000000000 # Cl3
+ 0.7500000000000000 0.7500000000000000 0.2500000000000001 # Cl4
+ 0.2500000000000001 0.7500000000000000 0.2500000000000001 # Cl5
+ 0.2500000000000001 0.2500000000000001 0.7500000000000000 # Cl6
+ 0.7500000000000000 0.7500000000000004 0.7500000000000000 # Cl7
+ 0.7500000000000000 0.2500000000000001 0.2500000000000001 # Cl8
diff --git a/test/data/cubic/POSCAR-220 b/test/data/cubic/POSCAR-220
new file mode 100644
index 0000000..3dea141
--- /dev/null
+++ b/test/data/cubic/POSCAR-220
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 9.8179953802208928 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.8179953802208928 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.8179953802208928
+ 12 12 16
+Direct
+ 0.3749999999999999 0.0000000000000000 0.2500000000000001 # Y1
+ 0.8750000000000002 0.5000000000000002 0.7499999999999999 # Y2
+ 0.2500000000000001 0.3749999999999999 0.0000000000000000 # Y3
+ 0.7499999999999999 0.8750000000000002 0.4999999999999998 # Y4
+ 0.6249999999999999 0.4999999999999998 0.2500000000000001 # Y5
+ 0.1249999999999998 0.0000000000000000 0.7499999999999999 # Y6
+ 0.2500000000000001 0.6249999999999999 0.4999999999999998 # Y7
+ 0.7499999999999999 0.1249999999999998 0.0000000000000000 # Y8
+ 0.4999999999999998 0.2500000000000001 0.6249999999999999 # Y9
+ 0.0000000000000000 0.7499999999999999 0.1249999999999998 # Y10
+ 0.5000000000000002 0.7499999999999999 0.8750000000000002 # Y11
+ 0.0000000000000000 0.2500000000000001 0.3749999999999999 # Y12
+ 0.8750000000000002 0.0000000000000000 0.2500000000000001 # Au1
+ 0.3749999999999999 0.5000000000000002 0.7499999999999999 # Au2
+ 0.2500000000000001 0.8750000000000002 0.0000000000000000 # Au3
+ 0.7499999999999999 0.3749999999999999 0.4999999999999998 # Au4
+ 0.1249999999999998 0.4999999999999998 0.2500000000000001 # Au5
+ 0.6249999999999999 0.0000000000000000 0.7499999999999999 # Au6
+ 0.2500000000000001 0.1249999999999998 0.4999999999999998 # Au7
+ 0.7499999999999999 0.6249999999999999 0.0000000000000000 # Au8
+ 0.4999999999999998 0.2500000000000001 0.1249999999999998 # Au9
+ 0.0000000000000000 0.7499999999999999 0.6249999999999999 # Au10
+ 0.5000000000000002 0.7499999999999999 0.3749999999999999 # Au11
+ 0.0000000000000000 0.2500000000000001 0.8749999999999997 # Au12
+ 0.0879999999999999 0.0879999999999999 0.0879999999999999 # Sb1
+ 0.5880000000000001 0.5880000000000001 0.5880000000000001 # Sb2
+ 0.3380000000000000 0.6619999999999999 0.1619999999999997 # Sb3
+ 0.8379999999999997 0.1620000000000003 0.6619999999999999 # Sb4
+ 0.9120000000000001 0.4119999999999999 0.0879999999999999 # Sb5
+ 0.4119999999999999 0.9120000000000001 0.5880000000000001 # Sb6
+ 0.1620000000000003 0.3380000000000000 0.6619999999999999 # Sb7
+ 0.6619999999999999 0.8379999999999997 0.1619999999999997 # Sb8
+ 0.0879999999999999 0.9120000000000001 0.4119999999999999 # Sb9
+ 0.5880000000000001 0.4119999999999999 0.9120000000000001 # Sb10
+ 0.6619999999999999 0.1620000000000003 0.3380000000000000 # Sb11
+ 0.1620000000000003 0.6619999999999999 0.8379999999999997 # Sb12
+ 0.4119999999999999 0.0879999999999999 0.9120000000000001 # Sb13
+ 0.9120000000000001 0.5880000000000001 0.4119999999999999 # Sb14
+ 0.3380000000000000 0.3380000000000000 0.3380000000000000 # Sb15
+ 0.8379999999999997 0.8380000000000003 0.8379999999999997 # Sb16
diff --git a/test/data/cubic/POSCAR-220-2 b/test/data/cubic/POSCAR-220-2
new file mode 100644
index 0000000..14591d2
--- /dev/null
+++ b/test/data/cubic/POSCAR-220-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 8.5339959843965243 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.5339959843965243 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.5339959843965243
+ 16 24
+Direct
+ 0.0516000000000001 0.0516000000000001 0.0516000000000001 # Nd1
+ 0.5515999999999999 0.5516000000000004 0.5515999999999999 # Nd2
+ 0.3016000000000000 0.6984000000000002 0.1983999999999998 # Nd3
+ 0.8016000000000002 0.1984000000000004 0.6984000000000002 # Nd4
+ 0.9484000000000001 0.4484000000000002 0.0516000000000001 # Nd5
+ 0.4484000000000002 0.9484000000000001 0.5515999999999999 # Nd6
+ 0.1984000000000004 0.3016000000000000 0.6984000000000002 # Nd7
+ 0.6984000000000002 0.8016000000000002 0.1983999999999998 # Nd8
+ 0.0516000000000001 0.9484000000000001 0.4484000000000002 # Nd9
+ 0.5516000000000004 0.4484000000000002 0.9484000000000001 # Nd10
+ 0.6984000000000002 0.1983999999999998 0.3016000000000000 # Nd11
+ 0.1984000000000004 0.6984000000000002 0.8016000000000002 # Nd12
+ 0.4484000000000002 0.0516000000000001 0.9484000000000001 # Nd13
+ 0.9484000000000001 0.5515999999999999 0.4484000000000002 # Nd14
+ 0.3016000000000000 0.3016000000000000 0.3016000000000000 # Nd15
+ 0.8016000000000002 0.8016000000000002 0.8016000000000002 # Nd16
+ 0.3024000000000002 0.0000000000000000 0.2499999999999999 # C1
+ 0.8023999999999999 0.5000000000000003 0.7500000000000003 # C2
+ 0.2499999999999999 0.4476000000000000 0.0000000000000000 # C3
+ 0.7500000000000003 0.9476000000000003 0.5000000000000003 # C4
+ 0.6976000000000006 0.5000000000000003 0.2499999999999999 # C5
+ 0.1976000000000001 0.0000000000000000 0.7500000000000003 # C6
+ 0.2499999999999999 0.5524000000000001 0.5000000000000003 # C7
+ 0.7500000000000003 0.0523999999999997 0.0000000000000000 # C8
+ 0.9476000000000003 0.5000000000000003 0.7500000000000003 # C9
+ 0.4476000000000000 0.0000000000000000 0.2499999999999999 # C10
+ 0.5000000000000003 0.2499999999999999 0.5524000000000001 # C11
+ 0.0000000000000000 0.7500000000000003 0.0523999999999997 # C12
+ 0.5000000000000003 0.7500000000000003 0.9476000000000003 # C13
+ 0.0000000000000000 0.2499999999999999 0.4476000000000000 # C14
+ 0.2499999999999999 0.3024000000000002 0.0000000000000000 # C15
+ 0.7500000000000003 0.8024000000000004 0.5000000000000003 # C16
+ 0.0000000000000000 0.2499999999999999 0.3024000000000002 # C17
+ 0.5000000000000003 0.7500000000000003 0.8023999999999999 # C18
+ 0.2499999999999999 0.6976000000000006 0.5000000000000003 # C19
+ 0.7500000000000003 0.1976000000000001 0.0000000000000000 # C20
+ 0.5000000000000003 0.2499999999999999 0.6976000000000006 # C21
+ 0.0000000000000000 0.7500000000000003 0.1976000000000001 # C22
+ 0.5524000000000001 0.5000000000000003 0.2499999999999999 # C23
+ 0.0524000000000003 0.0000000000000000 0.7500000000000003 # C24
diff --git a/test/data/cubic/POSCAR-221 b/test/data/cubic/POSCAR-221
new file mode 100644
index 0000000..9cc25e4
--- /dev/null
+++ b/test/data/cubic/POSCAR-221
@@ -0,0 +1,73 @@
+$cell vectors
+1.0
+ 9.6379954649184096 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.6379954649184096 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.6379954649184096
+ 16 14 36
+Direct
+ 0.2139999999999998 0.2139999999999998 0.2139999999999998 # Ba1
+ 0.2890000000000001 0.2890000000000001 0.2890000000000001 # Ba2
+ 0.7860000000000001 0.7860000000000001 0.7860000000000001 # Ba3
+ 0.7860000000000001 0.2139999999999998 0.2139999999999998 # Ba4
+ 0.7109999999999999 0.2890000000000001 0.2890000000000001 # Ba5
+ 0.2140000000000004 0.7860000000000001 0.7860000000000001 # Ba6
+ 0.2890000000000001 0.7110000000000004 0.7109999999999999 # Ba7
+ 0.7860000000000001 0.7860000000000001 0.2139999999999998 # Ba8
+ 0.7109999999999999 0.7109999999999999 0.2890000000000001 # Ba9
+ 0.2139999999999998 0.2140000000000004 0.7860000000000001 # Ba10
+ 0.2890000000000001 0.2890000000000001 0.7109999999999999 # Ba11
+ 0.2139999999999998 0.7860000000000001 0.2139999999999998 # Ba12
+ 0.2890000000000001 0.7109999999999999 0.2890000000000001 # Ba13
+ 0.7860000000000001 0.2140000000000004 0.7860000000000001 # Ba14
+ 0.7109999999999999 0.2890000000000001 0.7109999999999999 # Ba15
+ 0.7109999999999999 0.7110000000000004 0.7109999999999999 # Ba16
+ 0.2480000000000001 0.4999999999999999 0.0000000000000000 # Al1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Al2
+ 0.4999999999999999 0.4999999999999999 0.4999999999999999 # Al3
+ 0.7520000000000003 0.4999999999999999 0.0000000000000000 # Al4
+ 0.4999999999999999 0.2480000000000001 0.0000000000000000 # Al5
+ 0.4999999999999999 0.7520000000000003 0.0000000000000000 # Al6
+ 0.2480000000000001 0.0000000000000000 0.4999999999999999 # Al7
+ 0.7520000000000003 0.0000000000000000 0.4999999999999999 # Al8
+ 0.0000000000000000 0.4999999999999999 0.7520000000000003 # Al9
+ 0.0000000000000000 0.4999999999999999 0.2480000000000001 # Al10
+ 0.0000000000000000 0.2480000000000001 0.4999999999999999 # Al11
+ 0.0000000000000000 0.7520000000000003 0.4999999999999999 # Al12
+ 0.4999999999999999 0.0000000000000000 0.2480000000000001 # Al13
+ 0.4999999999999999 0.0000000000000000 0.7520000000000003 # Al14
+ 0.2180000000000001 0.0000000000000000 0.0000000000000000 # O1
+ 0.0000000000000000 0.3469999999999999 0.3469999999999999 # O2
+ 0.4999999999999999 0.1610000000000000 0.1610000000000000 # O3
+ 0.3170000000000000 0.4999999999999999 0.4999999999999999 # O4
+ 0.7819999999999998 0.0000000000000000 0.0000000000000000 # O5
+ 0.0000000000000000 0.6530000000000000 0.6530000000000000 # O6
+ 0.4999999999999999 0.8389999999999999 0.8389999999999999 # O7
+ 0.6829999999999999 0.4999999999999999 0.4999999999999999 # O8
+ 0.6530000000000000 0.0000000000000000 0.3469999999999999 # O9
+ 0.8389999999999999 0.4999999999999999 0.1610000000000000 # O10
+ 0.0000000000000000 0.7819999999999998 0.0000000000000000 # O11
+ 0.3469999999999999 0.0000000000000000 0.6530000000000000 # O12
+ 0.1610000000000000 0.4999999999999999 0.8389999999999999 # O13
+ 0.4999999999999999 0.6829999999999999 0.4999999999999999 # O14
+ 0.0000000000000000 0.6530000000000000 0.3469999999999999 # O15
+ 0.4999999999999999 0.8389999999999999 0.1610000000000000 # O16
+ 0.0000000000000000 0.3469999999999999 0.6530000000000000 # O17
+ 0.4999999999999999 0.1610000000000000 0.8389999999999999 # O18
+ 0.6530000000000000 0.0000000000000000 0.6530000000000000 # O19
+ 0.8389999999999999 0.4999999999999999 0.8389999999999999 # O20
+ 0.0000000000000000 0.0000000000000000 0.7819999999999998 # O21
+ 0.4999999999999999 0.4999999999999999 0.6829999999999999 # O22
+ 0.6530000000000000 0.6530000000000000 0.0000000000000000 # O23
+ 0.8389999999999999 0.8389999999999999 0.4999999999999999 # O24
+ 0.6530000000000000 0.3469999999999999 0.0000000000000000 # O25
+ 0.8389999999999999 0.1610000000000000 0.4999999999999999 # O26
+ 0.3469999999999999 0.6530000000000000 0.0000000000000000 # O27
+ 0.1610000000000000 0.8389999999999999 0.4999999999999999 # O28
+ 0.0000000000000000 0.2180000000000001 0.0000000000000000 # O29
+ 0.3469999999999999 0.0000000000000000 0.3469999999999999 # O30
+ 0.1610000000000000 0.4999999999999999 0.1610000000000000 # O31
+ 0.4999999999999999 0.3170000000000000 0.4999999999999999 # O32
+ 0.0000000000000000 0.0000000000000000 0.2180000000000001 # O33
+ 0.3469999999999999 0.3469999999999999 0.0000000000000000 # O34
+ 0.1610000000000000 0.1610000000000000 0.4999999999999999 # O35
+ 0.4999999999999999 0.4999999999999999 0.3170000000000000 # O36
diff --git a/test/data/cubic/POSCAR-221-2 b/test/data/cubic/POSCAR-221-2
new file mode 100644
index 0000000..07a4a1a
--- /dev/null
+++ b/test/data/cubic/POSCAR-221-2
@@ -0,0 +1,12 @@
+$cell vectors
+1.0
+ 5.7949972732104360 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7949972732104360 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.7949972732104360
+ 1 1 3
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cs1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Sn1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Br1
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Br2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Br3
diff --git a/test/data/cubic/POSCAR-222 b/test/data/cubic/POSCAR-222
new file mode 100644
index 0000000..69dbdf4
--- /dev/null
+++ b/test/data/cubic/POSCAR-222
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 10.9899948287459370 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.9899948287459370 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.9899948287459370
+ 20 12 64
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Nd1
+ 0.9800000000000001 0.2499999999999999 0.2499999999999999 # Nd2
+ 0.0200000000000001 0.7500000000000002 0.7499999999999996 # Nd3
+ 0.4999999999999998 0.0000000000000000 0.0000000000000000 # Nd4
+ 0.2499999999999999 0.9800000000000001 0.2499999999999999 # Nd5
+ 0.7499999999999996 0.0200000000000001 0.7499999999999996 # Nd6
+ 0.4999999999999998 0.4999999999999998 0.0000000000000000 # Nd7
+ 0.5200000000000000 0.2499999999999999 0.2499999999999999 # Nd8
+ 0.4800000000000001 0.7500000000000002 0.7499999999999996 # Nd9
+ 0.0000000000000000 0.4999999999999998 0.0000000000000000 # Nd10
+ 0.2499999999999999 0.5200000000000000 0.2499999999999999 # Nd11
+ 0.7499999999999996 0.4800000000000001 0.7499999999999996 # Nd12
+ 0.0000000000000000 0.4999999999999998 0.4999999999999998 # Nd13
+ 0.0000000000000000 0.0000000000000000 0.4999999999999998 # Nd14
+ 0.2499999999999999 0.2499999999999999 0.5200000000000000 # Nd15
+ 0.7499999999999996 0.7499999999999996 0.4800000000000001 # Nd16
+ 0.4999999999999998 0.0000000000000000 0.4999999999999998 # Nd17
+ 0.2499999999999999 0.2499999999999999 0.9800000000000001 # Nd18
+ 0.7499999999999996 0.7499999999999996 0.0200000000000001 # Nd19
+ 0.4999999999999998 0.4999999999999998 0.4999999999999998 # Nd20
+ 0.0000000000000000 0.7499999999999996 0.2499999999999999 # Mo1
+ 0.0000000000000000 0.2499999999999999 0.7499999999999996 # Mo2
+ 0.7499999999999996 0.0000000000000000 0.2499999999999999 # Mo3
+ 0.2500000000000004 0.0000000000000000 0.7499999999999996 # Mo4
+ 0.4999999999999998 0.7499999999999996 0.2499999999999999 # Mo5
+ 0.4999999999999998 0.2499999999999999 0.7499999999999996 # Mo6
+ 0.7499999999999996 0.4999999999999998 0.2499999999999999 # Mo7
+ 0.2499999999999999 0.4999999999999998 0.7499999999999996 # Mo8
+ 0.2499999999999999 0.7499999999999996 0.4999999999999998 # Mo9
+ 0.7499999999999996 0.2499999999999999 0.4999999999999998 # Mo10
+ 0.2499999999999999 0.7499999999999996 0.0000000000000000 # Mo11
+ 0.7499999999999996 0.2499999999999999 0.0000000000000000 # Mo12
+ 0.3299999999999999 0.0700000000000002 0.8699999999999999 # O1
+ 0.1279999999999998 0.1279999999999998 0.1279999999999998 # O2
+ 0.6700000000000002 0.9299999999999998 0.1300000000000001 # O3
+ 0.8720000000000002 0.8720000000000002 0.8720000000000002 # O4
+ 0.4300000000000001 0.3299999999999999 0.8699999999999999 # O5
+ 0.3719999999999999 0.1279999999999998 0.1279999999999998 # O6
+ 0.5700000000000000 0.6700000000000002 0.1300000000000001 # O7
+ 0.6280000000000001 0.8720000000000002 0.8720000000000002 # O8
+ 0.1699999999999999 0.4300000000000001 0.8699999999999999 # O9
+ 0.3719999999999999 0.3719999999999999 0.1279999999999998 # O10
+ 0.8300000000000003 0.5700000000000000 0.1300000000000001 # O11
+ 0.6280000000000001 0.6280000000000001 0.8720000000000002 # O12
+ 0.0700000000000002 0.1699999999999999 0.8699999999999999 # O13
+ 0.1279999999999998 0.3719999999999999 0.1279999999999998 # O14
+ 0.9299999999999998 0.8300000000000003 0.1300000000000001 # O15
+ 0.8720000000000002 0.6280000000000001 0.8720000000000002 # O16
+ 0.3299999999999999 0.6299999999999999 0.0700000000000002 # O17
+ 0.6700000000000002 0.3700000000000002 0.9299999999999998 # O18
+ 0.3299999999999999 0.4300000000000001 0.6299999999999999 # O19
+ 0.1279999999999998 0.3719999999999999 0.3719999999999999 # O20
+ 0.6700000000000002 0.5700000000000000 0.3700000000000002 # O21
+ 0.8720000000000002 0.6280000000000001 0.6280000000000001 # O22
+ 0.3299999999999999 0.8699999999999999 0.4300000000000001 # O23
+ 0.1279999999999998 0.1279999999999998 0.3719999999999999 # O24
+ 0.6700000000000002 0.1300000000000001 0.5700000000000000 # O25
+ 0.8720000000000002 0.8720000000000002 0.6280000000000001 # O26
+ 0.8699999999999999 0.0700000000000002 0.1699999999999999 # O27
+ 0.1300000000000001 0.9299999999999998 0.8300000000000003 # O28
+ 0.1699999999999999 0.0700000000000002 0.6299999999999999 # O29
+ 0.3719999999999999 0.1279999999999998 0.3719999999999999 # O30
+ 0.8300000000000003 0.9299999999999998 0.3700000000000002 # O31
+ 0.6280000000000001 0.8720000000000002 0.6280000000000001 # O32
+ 0.6299999999999999 0.0700000000000002 0.3299999999999999 # O33
+ 0.3700000000000002 0.9299999999999998 0.6700000000000002 # O34
+ 0.8699999999999999 0.3299999999999999 0.0700000000000002 # O35
+ 0.1300000000000001 0.6700000000000002 0.9299999999999998 # O36
+ 0.0700000000000002 0.8699999999999999 0.3299999999999999 # O37
+ 0.9299999999999998 0.1300000000000001 0.6700000000000002 # O38
+ 0.4300000000000001 0.6299999999999999 0.3299999999999999 # O39
+ 0.5700000000000000 0.3700000000000002 0.6700000000000002 # O40
+ 0.8699999999999999 0.1699999999999999 0.4300000000000001 # O41
+ 0.1300000000000001 0.8300000000000003 0.5700000000000000 # O42
+ 0.4300000000000001 0.8699999999999999 0.1699999999999999 # O43
+ 0.5700000000000000 0.1300000000000001 0.8300000000000003 # O44
+ 0.6299999999999999 0.1699999999999999 0.0700000000000002 # O45
+ 0.3700000000000002 0.8300000000000003 0.9299999999999998 # O46
+ 0.6299999999999999 0.3299999999999999 0.4300000000000001 # O47
+ 0.3700000000000002 0.6700000000000002 0.5700000000000000 # O48
+ 0.0700000000000002 0.6299999999999999 0.1699999999999999 # O49
+ 0.9299999999999998 0.3700000000000002 0.8300000000000003 # O50
+ 0.0700000000000002 0.3299999999999999 0.6299999999999999 # O51
+ 0.9299999999999998 0.6700000000000002 0.3700000000000002 # O52
+ 0.4300000000000001 0.1699999999999999 0.6299999999999999 # O53
+ 0.3719999999999999 0.3719999999999999 0.3719999999999999 # O54
+ 0.5700000000000000 0.8300000000000003 0.3700000000000002 # O55
+ 0.6280000000000001 0.6280000000000001 0.6280000000000001 # O56
+ 0.1699999999999999 0.8699999999999999 0.0700000000000002 # O57
+ 0.8300000000000003 0.1300000000000001 0.9299999999999998 # O58
+ 0.1699999999999999 0.6299999999999999 0.4300000000000001 # O59
+ 0.8300000000000003 0.3700000000000002 0.5700000000000000 # O60
+ 0.8699999999999999 0.4300000000000001 0.3299999999999999 # O61
+ 0.1300000000000001 0.5700000000000000 0.6700000000000002 # O62
+ 0.6299999999999999 0.4300000000000001 0.1699999999999999 # O63
+ 0.3700000000000002 0.5700000000000000 0.8300000000000003 # O64
diff --git a/test/data/cubic/POSCAR-222-2 b/test/data/cubic/POSCAR-222-2
new file mode 100644
index 0000000..dc0e252
--- /dev/null
+++ b/test/data/cubic/POSCAR-222-2
@@ -0,0 +1,271 @@
+$cell vectors
+1.0
+ 16.2559923508729689 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 16.2559923508729689 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 16.2559923508729689
+ 24 144 96
+Direct
+ 0.4980999999999999 0.4980999999999999 0.2499999999999999 # Zn1
+ 0.5018999999999999 0.5019000000000002 0.7499999999999999 # Zn2
+ 0.0019000000000002 0.4980999999999999 0.2499999999999999 # Zn3
+ 0.9980999999999999 0.5019000000000002 0.7499999999999999 # Zn4
+ 0.0018999999999999 0.0019000000000002 0.2499999999999999 # Zn5
+ 0.9980999999999999 0.9980999999999999 0.7499999999999999 # Zn6
+ 0.4980999999999999 0.0019000000000002 0.2499999999999999 # Zn7
+ 0.5019000000000002 0.9980999999999999 0.7499999999999999 # Zn8
+ 0.4980999999999999 0.2500000000000002 0.4980999999999999 # Zn9
+ 0.5018999999999999 0.7500000000000002 0.5018999999999999 # Zn10
+ 0.4980999999999999 0.2499999999999999 0.0018999999999999 # Zn11
+ 0.5019000000000002 0.7500000000000002 0.9980999999999999 # Zn12
+ 0.2500000000000002 0.4980999999999999 0.0018999999999999 # Zn13
+ 0.7500000000000002 0.5019000000000002 0.9980999999999999 # Zn14
+ 0.2500000000000002 0.4981000000000003 0.4980999999999999 # Zn15
+ 0.7499999999999999 0.5019000000000002 0.5018999999999999 # Zn16
+ 0.0019000000000002 0.2500000000000002 0.4980999999999999 # Zn17
+ 0.9980999999999999 0.7500000000000002 0.5018999999999999 # Zn18
+ 0.2499999999999999 0.0018999999999999 0.0018999999999999 # Zn19
+ 0.7500000000000002 0.9981000000000003 0.9980999999999999 # Zn20
+ 0.0018999999999999 0.2499999999999999 0.0018999999999999 # Zn21
+ 0.9980999999999999 0.7500000000000002 0.9980999999999999 # Zn22
+ 0.2499999999999999 0.0019000000000002 0.4980999999999999 # Zn23
+ 0.7500000000000002 0.9980999999999999 0.5018999999999999 # Zn24
+ 0.4615000000000001 0.5370000000000001 0.3632000000000001 # O1
+ 0.3803000000000002 0.4871000000000001 0.1977000000000002 # O2
+ 0.5039000000000001 0.6190000000000001 0.1998000000000001 # O3
+ 0.5385000000000001 0.4630000000000001 0.6368000000000000 # O4
+ 0.6196999999999999 0.5129000000000002 0.8023000000000000 # O5
+ 0.4961000000000000 0.3810000000000000 0.8002000000000001 # O6
+ 0.9630000000000000 0.4615000000000001 0.3632000000000001 # O7
+ 0.0128999999999999 0.3802999999999999 0.1977000000000002 # O8
+ 0.8810000000000002 0.5039000000000001 0.1998000000000001 # O9
+ 0.0369999999999999 0.5385000000000001 0.6368000000000000 # O10
+ 0.9870999999999999 0.6197000000000003 0.8023000000000000 # O11
+ 0.1190000000000001 0.4961000000000000 0.8002000000000001 # O12
+ 0.0385000000000000 0.9630000000000000 0.3632000000000001 # O13
+ 0.1197000000000001 0.0128999999999999 0.1977000000000002 # O14
+ 0.9960999999999999 0.8810000000000002 0.1998000000000001 # O15
+ 0.9615000000000001 0.0369999999999999 0.6368000000000000 # O16
+ 0.8803000000000003 0.9870999999999999 0.8023000000000000 # O17
+ 0.0039000000000003 0.1190000000000001 0.8002000000000001 # O18
+ 0.5370000000000001 0.0385000000000000 0.3632000000000001 # O19
+ 0.4871000000000001 0.1197000000000001 0.1977000000000002 # O20
+ 0.6190000000000001 0.9960999999999999 0.1998000000000001 # O21
+ 0.4630000000000001 0.9615000000000001 0.6368000000000000 # O22
+ 0.5128999999999999 0.8803000000000003 0.8023000000000000 # O23
+ 0.3810000000000000 0.0039000000000003 0.8002000000000001 # O24
+ 0.4615000000000001 0.1367999999999999 0.5370000000000001 # O25
+ 0.3803000000000002 0.3023000000000002 0.4871000000000001 # O26
+ 0.5039000000000001 0.3002000000000000 0.6190000000000001 # O27
+ 0.5385000000000001 0.8632000000000002 0.4630000000000001 # O28
+ 0.6196999999999999 0.6977000000000003 0.5128999999999999 # O29
+ 0.4961000000000000 0.6997999999999999 0.3810000000000000 # O30
+ 0.4615000000000001 0.9630000000000000 0.1367999999999999 # O31
+ 0.3802999999999999 0.0129000000000002 0.3023000000000000 # O32
+ 0.5039000000000001 0.8810000000000002 0.3002000000000000 # O33
+ 0.5385000000000001 0.0369999999999999 0.8632000000000002 # O34
+ 0.6197000000000003 0.9870999999999999 0.6977000000000003 # O35
+ 0.4961000000000000 0.1190000000000001 0.6997999999999999 # O36
+ 0.4615000000000001 0.3632000000000001 0.9630000000000000 # O37
+ 0.3802999999999999 0.1977000000000002 0.0128999999999999 # O38
+ 0.5039000000000001 0.1998000000000001 0.8810000000000002 # O39
+ 0.5385000000000001 0.6368000000000000 0.0369999999999999 # O40
+ 0.6197000000000003 0.8023000000000002 0.9870999999999999 # O41
+ 0.4961000000000000 0.8002000000000001 0.1190000000000001 # O42
+ 0.3632000000000001 0.5370000000000001 0.0385000000000000 # O43
+ 0.1977000000000002 0.4871000000000001 0.1197000000000001 # O44
+ 0.1998000000000001 0.6190000000000001 0.9960999999999999 # O45
+ 0.6368000000000000 0.4630000000000001 0.9615000000000001 # O46
+ 0.8023000000000000 0.5129000000000002 0.8803000000000003 # O47
+ 0.8002000000000001 0.3810000000000000 0.0038999999999999 # O48
+ 0.0385000000000000 0.5370000000000001 0.1367999999999999 # O49
+ 0.1197000000000001 0.4871000000000001 0.3023000000000000 # O50
+ 0.9960999999999999 0.6190000000000001 0.3002000000000000 # O51
+ 0.9615000000000001 0.4630000000000001 0.8632000000000002 # O52
+ 0.8803000000000003 0.5129000000000002 0.6977000000000003 # O53
+ 0.0038999999999999 0.3810000000000000 0.6997999999999999 # O54
+ 0.1367999999999999 0.5370000000000001 0.4615000000000001 # O55
+ 0.3023000000000002 0.4871000000000001 0.3802999999999999 # O56
+ 0.3002000000000003 0.6190000000000001 0.5039000000000001 # O57
+ 0.8632000000000002 0.4630000000000001 0.5385000000000001 # O58
+ 0.6977000000000003 0.5129000000000002 0.6196999999999999 # O59
+ 0.6997999999999999 0.3810000000000000 0.4961000000000000 # O60
+ 0.3632000000000001 0.4615000000000001 0.5370000000000001 # O61
+ 0.1977000000000002 0.3803000000000002 0.4871000000000001 # O62
+ 0.1998000000000001 0.5039000000000003 0.6190000000000001 # O63
+ 0.6368000000000000 0.5385000000000001 0.4630000000000001 # O64
+ 0.8023000000000000 0.6197000000000003 0.5128999999999999 # O65
+ 0.8002000000000001 0.4961000000000000 0.3810000000000000 # O66
+ 0.5370000000000001 0.3632000000000001 0.4615000000000001 # O67
+ 0.4871000000000001 0.1977000000000002 0.3802999999999999 # O68
+ 0.6190000000000001 0.1998000000000001 0.5039000000000001 # O69
+ 0.4630000000000001 0.6368000000000000 0.5385000000000001 # O70
+ 0.5128999999999999 0.8023000000000002 0.6196999999999999 # O71
+ 0.3810000000000000 0.8002000000000001 0.4961000000000000 # O72
+ 0.9630000000000000 0.1367999999999999 0.4615000000000001 # O73
+ 0.0128999999999999 0.3023000000000002 0.3802999999999999 # O74
+ 0.8810000000000002 0.3002000000000000 0.5039000000000001 # O75
+ 0.0369999999999999 0.8632000000000002 0.5385000000000001 # O76
+ 0.9870999999999999 0.6977000000000003 0.6196999999999999 # O77
+ 0.1190000000000001 0.6998000000000002 0.4961000000000000 # O78
+ 0.3632000000000001 0.0385000000000000 0.9630000000000000 # O79
+ 0.1977000000000002 0.1197000000000001 0.0128999999999999 # O80
+ 0.1998000000000001 0.9960999999999999 0.8810000000000002 # O81
+ 0.6368000000000000 0.9615000000000001 0.0369999999999999 # O82
+ 0.8023000000000002 0.8803000000000003 0.9870999999999999 # O83
+ 0.8002000000000001 0.0038999999999999 0.1190000000000001 # O84
+ 0.9630000000000000 0.3632000000000001 0.0385000000000000 # O85
+ 0.0128999999999999 0.1977000000000002 0.1197000000000001 # O86
+ 0.8810000000000002 0.1998000000000001 0.9960999999999999 # O87
+ 0.0369999999999999 0.6368000000000000 0.9615000000000001 # O88
+ 0.9870999999999999 0.8023000000000002 0.8803000000000003 # O89
+ 0.1190000000000001 0.8002000000000001 0.0039000000000003 # O90
+ 0.1367999999999999 0.0385000000000000 0.5370000000000001 # O91
+ 0.3023000000000002 0.1197000000000001 0.4871000000000001 # O92
+ 0.3002000000000003 0.9960999999999999 0.6190000000000001 # O93
+ 0.8632000000000002 0.9615000000000001 0.4630000000000001 # O94
+ 0.6977000000000003 0.8803000000000003 0.5128999999999999 # O95
+ 0.6997999999999999 0.0038999999999999 0.3810000000000000 # O96
+ 0.1367999999999999 0.4615000000000001 0.9630000000000000 # O97
+ 0.3023000000000000 0.3802999999999999 0.0128999999999999 # O98
+ 0.3002000000000003 0.5039000000000003 0.8810000000000002 # O99
+ 0.8632000000000002 0.5385000000000001 0.0369999999999999 # O100
+ 0.6977000000000003 0.6197000000000003 0.9870999999999999 # O101
+ 0.6997999999999999 0.4961000000000000 0.1190000000000001 # O102
+ 0.5370000000000001 0.1367999999999999 0.0385000000000000 # O103
+ 0.4871000000000001 0.3023000000000000 0.1197000000000001 # O104
+ 0.6190000000000001 0.3002000000000003 0.9960999999999999 # O105
+ 0.4630000000000001 0.8632000000000002 0.9615000000000001 # O106
+ 0.5128999999999999 0.6977000000000003 0.8803000000000003 # O107
+ 0.3810000000000000 0.6997999999999999 0.0038999999999999 # O108
+ 0.5370000000000001 0.4615000000000001 0.1367999999999999 # O109
+ 0.4871000000000001 0.3803000000000002 0.3023000000000000 # O110
+ 0.6190000000000001 0.5039000000000001 0.3002000000000000 # O111
+ 0.4630000000000001 0.5385000000000001 0.8632000000000002 # O112
+ 0.5128999999999999 0.6197000000000003 0.6977000000000003 # O113
+ 0.3810000000000000 0.4961000000000000 0.6997999999999999 # O114
+ 0.9630000000000000 0.0385000000000000 0.1367999999999999 # O115
+ 0.0128999999999999 0.1197000000000001 0.3023000000000000 # O116
+ 0.8810000000000002 0.9960999999999999 0.3002000000000000 # O117
+ 0.0369999999999999 0.9615000000000001 0.8632000000000002 # O118
+ 0.9870999999999999 0.8803000000000003 0.6977000000000003 # O119
+ 0.1190000000000001 0.0038999999999999 0.6997999999999999 # O120
+ 0.0385000000000000 0.3632000000000001 0.5370000000000001 # O121
+ 0.1197000000000001 0.1977000000000002 0.4871000000000001 # O122
+ 0.9960999999999999 0.1998000000000001 0.6190000000000001 # O123
+ 0.9615000000000001 0.6368000000000000 0.4630000000000001 # O124
+ 0.8803000000000003 0.8023000000000002 0.5128999999999999 # O125
+ 0.0039000000000003 0.8002000000000001 0.3810000000000000 # O126
+ 0.0385000000000000 0.1367999999999999 0.9630000000000000 # O127
+ 0.1197000000000001 0.3023000000000000 0.0128999999999999 # O128
+ 0.9960999999999999 0.3002000000000003 0.8810000000000002 # O129
+ 0.9615000000000001 0.8632000000000002 0.0369999999999999 # O130
+ 0.8803000000000003 0.6977000000000003 0.9870999999999999 # O131
+ 0.0039000000000003 0.6997999999999999 0.1190000000000001 # O132
+ 0.3632000000000001 0.9630000000000000 0.4615000000000001 # O133
+ 0.1977000000000002 0.0128999999999999 0.3802999999999999 # O134
+ 0.1998000000000001 0.8810000000000002 0.5039000000000001 # O135
+ 0.6368000000000004 0.0369999999999999 0.5385000000000001 # O136
+ 0.8023000000000002 0.9870999999999999 0.6196999999999999 # O137
+ 0.8002000000000001 0.1190000000000001 0.4961000000000000 # O138
+ 0.1367999999999999 0.9630000000000000 0.0385000000000000 # O139
+ 0.3023000000000000 0.0128999999999999 0.1197000000000001 # O140
+ 0.3002000000000003 0.8810000000000002 0.9960999999999999 # O141
+ 0.8632000000000002 0.0369999999999999 0.9615000000000001 # O142
+ 0.6977000000000003 0.9871000000000003 0.8803000000000003 # O143
+ 0.6997999999999999 0.1190000000000001 0.0039000000000003 # O144
+ 0.3092000000000000 0.4847000000000000 0.2271000000000000 # C1
+ 0.5008999999999999 0.6906000000000001 0.2281000000000000 # C2
+ 0.6908000000000002 0.5153000000000002 0.7729000000000001 # C3
+ 0.4990999999999999 0.3094000000000000 0.7719000000000001 # C4
+ 0.0153000000000001 0.3092000000000000 0.2271000000000000 # C5
+ 0.8094000000000001 0.5008999999999999 0.2281000000000000 # C6
+ 0.9847000000000000 0.6908000000000002 0.7729000000000001 # C7
+ 0.1906000000000000 0.4991000000000002 0.7719000000000001 # C8
+ 0.1908000000000001 0.0152999999999998 0.2271000000000000 # C9
+ 0.9990999999999999 0.8094000000000001 0.2281000000000000 # C10
+ 0.8092000000000004 0.9847000000000000 0.7729000000000001 # C11
+ 0.0009000000000002 0.1906000000000000 0.7719000000000001 # C12
+ 0.4847000000000000 0.1908000000000001 0.2271000000000000 # C13
+ 0.6906000000000001 0.9990999999999999 0.2281000000000000 # C14
+ 0.5153000000000002 0.8092000000000000 0.7728999999999998 # C15
+ 0.3094000000000000 0.0009000000000002 0.7718999999999997 # C16
+ 0.3092000000000000 0.2729000000000001 0.4847000000000000 # C17
+ 0.5008999999999999 0.2719000000000001 0.6906000000000001 # C18
+ 0.6908000000000002 0.7271000000000000 0.5153000000000002 # C19
+ 0.4990999999999999 0.7281000000000001 0.3094000000000000 # C20
+ 0.3092000000000000 0.0152999999999998 0.2729000000000001 # C21
+ 0.5008999999999999 0.8094000000000001 0.2719000000000001 # C22
+ 0.6908000000000002 0.9847000000000000 0.7271000000000000 # C23
+ 0.4990999999999999 0.1906000000000000 0.7281000000000001 # C24
+ 0.3092000000000000 0.2271000000000000 0.0153000000000001 # C25
+ 0.5008999999999999 0.2281000000000000 0.8094000000000001 # C26
+ 0.6908000000000002 0.7729000000000001 0.9847000000000000 # C27
+ 0.4990999999999999 0.7719000000000001 0.1906000000000000 # C28
+ 0.2271000000000000 0.4847000000000000 0.1908000000000001 # C29
+ 0.2281000000000000 0.6906000000000001 0.9990999999999999 # C30
+ 0.7729000000000001 0.5153000000000002 0.8092000000000000 # C31
+ 0.7719000000000001 0.3094000000000000 0.0009000000000002 # C32
+ 0.1908000000000001 0.4847000000000002 0.2729000000000001 # C33
+ 0.9990999999999999 0.6906000000000001 0.2719000000000001 # C34
+ 0.8092000000000000 0.5153000000000002 0.7271000000000000 # C35
+ 0.0009000000000002 0.3094000000000000 0.7281000000000001 # C36
+ 0.2729000000000001 0.4847000000000002 0.3092000000000000 # C37
+ 0.2719000000000001 0.6906000000000001 0.5008999999999999 # C38
+ 0.7271000000000000 0.5153000000000002 0.6908000000000002 # C39
+ 0.7281000000000001 0.3094000000000000 0.4990999999999999 # C40
+ 0.2271000000000000 0.3092000000000000 0.4847000000000000 # C41
+ 0.2281000000000000 0.5009000000000002 0.6906000000000001 # C42
+ 0.7729000000000001 0.6908000000000002 0.5153000000000002 # C43
+ 0.7719000000000001 0.4990999999999999 0.3094000000000000 # C44
+ 0.4847000000000000 0.2271000000000000 0.3092000000000000 # C45
+ 0.6906000000000001 0.2281000000000000 0.5008999999999999 # C46
+ 0.5153000000000002 0.7729000000000001 0.6908000000000002 # C47
+ 0.3094000000000000 0.7719000000000001 0.4990999999999999 # C48
+ 0.0153000000000001 0.2729000000000001 0.3092000000000000 # C49
+ 0.8094000000000001 0.2719000000000001 0.5008999999999999 # C50
+ 0.9847000000000000 0.7271000000000000 0.6908000000000002 # C51
+ 0.1906000000000000 0.7281000000000001 0.4990999999999999 # C52
+ 0.2271000000000000 0.1908000000000001 0.0153000000000001 # C53
+ 0.2281000000000000 0.9990999999999999 0.8094000000000001 # C54
+ 0.7729000000000001 0.8092000000000004 0.9847000000000000 # C55
+ 0.7719000000000001 0.0009000000000002 0.1906000000000000 # C56
+ 0.0153000000000001 0.2271000000000000 0.1908000000000001 # C57
+ 0.8094000000000001 0.2281000000000000 0.9990999999999999 # C58
+ 0.9847000000000000 0.7729000000000001 0.8092000000000000 # C59
+ 0.1906000000000000 0.7719000000000001 0.0009000000000002 # C60
+ 0.2729000000000001 0.1908000000000001 0.4847000000000000 # C61
+ 0.2719000000000001 0.9990999999999999 0.6906000000000001 # C62
+ 0.7271000000000000 0.8092000000000000 0.5153000000000002 # C63
+ 0.7281000000000001 0.0009000000000002 0.3094000000000000 # C64
+ 0.2729000000000001 0.3092000000000000 0.0153000000000001 # C65
+ 0.2719000000000001 0.5009000000000002 0.8094000000000001 # C66
+ 0.7271000000000000 0.6908000000000002 0.9847000000000000 # C67
+ 0.7281000000000001 0.4990999999999999 0.1906000000000000 # C68
+ 0.4847000000000000 0.2729000000000001 0.1908000000000001 # C69
+ 0.6906000000000001 0.2719000000000001 0.9990999999999999 # C70
+ 0.5153000000000002 0.7271000000000000 0.8092000000000000 # C71
+ 0.3094000000000000 0.7281000000000001 0.0009000000000002 # C72
+ 0.4847000000000000 0.3092000000000000 0.2729000000000001 # C73
+ 0.6906000000000001 0.5008999999999999 0.2719000000000001 # C74
+ 0.5153000000000002 0.6908000000000002 0.7271000000000000 # C75
+ 0.3094000000000000 0.4991000000000002 0.7281000000000001 # C76
+ 0.0153000000000001 0.1908000000000001 0.2729000000000001 # C77
+ 0.8094000000000001 0.9990999999999999 0.2719000000000001 # C78
+ 0.9847000000000000 0.8092000000000000 0.7271000000000000 # C79
+ 0.1906000000000000 0.0009000000000002 0.7281000000000001 # C80
+ 0.1908000000000001 0.2271000000000000 0.4847000000000000 # C81
+ 0.9990999999999999 0.2281000000000000 0.6906000000000001 # C82
+ 0.8092000000000000 0.7729000000000001 0.5153000000000002 # C83
+ 0.0009000000000002 0.7719000000000001 0.3094000000000000 # C84
+ 0.1908000000000001 0.2729000000000001 0.0153000000000001 # C85
+ 0.9990999999999999 0.2719000000000001 0.8094000000000001 # C86
+ 0.8092000000000000 0.7271000000000003 0.9847000000000000 # C87
+ 0.0009000000000002 0.7281000000000001 0.1906000000000000 # C88
+ 0.2271000000000000 0.0152999999999998 0.3092000000000000 # C89
+ 0.2281000000000000 0.8094000000000001 0.5008999999999999 # C90
+ 0.7729000000000001 0.9847000000000000 0.6908000000000002 # C91
+ 0.7719000000000001 0.1906000000000000 0.4990999999999999 # C92
+ 0.2729000000000001 0.0152999999999998 0.1908000000000001 # C93
+ 0.2719000000000001 0.8094000000000001 0.9990999999999999 # C94
+ 0.7271000000000000 0.9847000000000002 0.8092000000000000 # C95
+ 0.7281000000000001 0.1906000000000000 0.0009000000000002 # C96
diff --git a/test/data/cubic/POSCAR-223 b/test/data/cubic/POSCAR-223
new file mode 100644
index 0000000..fe40caf
--- /dev/null
+++ b/test/data/cubic/POSCAR-223
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 6.6699968614863874 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.6699968614863874 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.6699968614863874
+ 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # F1
+ 0.2500000000000004 0.5000000000000000 0.0000000000000000 # F2
+ 0.7499999999999997 0.5000000000000000 0.0000000000000000 # F3
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # F4
+ 0.0000000000000000 0.7499999999999997 0.5000000000000000 # F5
+ 0.0000000000000000 0.2500000000000004 0.5000000000000000 # F6
+ 0.5000000000000000 0.0000000000000000 0.2499999999999996 # F7
+ 0.5000000000000000 0.0000000000000000 0.7499999999999997 # F8
diff --git a/test/data/cubic/POSCAR-223-2 b/test/data/cubic/POSCAR-223-2
new file mode 100644
index 0000000..1058499
--- /dev/null
+++ b/test/data/cubic/POSCAR-223-2
@@ -0,0 +1,61 @@
+$cell vectors
+1.0
+ 10.2999951534197578 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.2999951534197578 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.2999951534197578
+ 46 8
+Direct
+ 0.2500000000000001 0.0000000000000000 0.5000000000000002 # Si1
+ 0.1850000000000001 0.1850000000000001 0.1850000000000001 # Si2
+ 0.0000000000000000 0.3060000000000000 0.1179999999999998 # Si3
+ 0.7499999999999999 0.0000000000000000 0.5000000000000002 # Si4
+ 0.8149999999999999 0.8150000000000005 0.8149999999999999 # Si5
+ 0.0000000000000000 0.6940000000000001 0.8820000000000002 # Si6
+ 0.5000000000000002 0.7499999999999999 0.0000000000000000 # Si7
+ 0.3150000000000002 0.6850000000000004 0.6850000000000004 # Si8
+ 0.1940000000000003 0.5000000000000002 0.6180000000000001 # Si9
+ 0.5000000000000002 0.2500000000000001 0.0000000000000000 # Si10
+ 0.6850000000000004 0.3150000000000002 0.3150000000000002 # Si11
+ 0.8060000000000002 0.5000000000000002 0.3820000000000000 # Si12
+ 0.8149999999999999 0.8149999999999999 0.1850000000000001 # Si13
+ 0.0000000000000000 0.6940000000000001 0.1179999999999998 # Si14
+ 0.1850000000000001 0.1850000000000001 0.8149999999999999 # Si15
+ 0.0000000000000000 0.3060000000000000 0.8820000000000002 # Si16
+ 0.6850000000000004 0.3150000000000002 0.6850000000000004 # Si17
+ 0.8060000000000002 0.5000000000000002 0.6180000000000001 # Si18
+ 0.3150000000000002 0.6850000000000004 0.3150000000000002 # Si19
+ 0.1940000000000003 0.5000000000000002 0.3820000000000000 # Si20
+ 0.5000000000000002 0.3820000000000000 0.8060000000000002 # Si21
+ 0.5000000000000002 0.6180000000000001 0.1939999999999998 # Si22
+ 0.1850000000000001 0.8150000000000005 0.8149999999999999 # Si23
+ 0.8149999999999999 0.1850000000000001 0.1850000000000001 # Si24
+ 0.6850000000000004 0.6850000000000004 0.3150000000000002 # Si25
+ 0.3150000000000002 0.3150000000000002 0.6850000000000004 # Si26
+ 0.0000000000000000 0.5000000000000002 0.2500000000000001 # Si27
+ 0.6180000000000001 0.8060000000000002 0.5000000000000002 # Si28
+ 0.0000000000000000 0.5000000000000002 0.7499999999999999 # Si29
+ 0.3820000000000000 0.1940000000000003 0.5000000000000002 # Si30
+ 0.8149999999999999 0.1850000000000001 0.8149999999999999 # Si31
+ 0.1850000000000001 0.8149999999999999 0.1850000000000001 # Si32
+ 0.3820000000000000 0.8060000000000002 0.5000000000000002 # Si33
+ 0.6180000000000001 0.1940000000000003 0.5000000000000002 # Si34
+ 0.1179999999999998 0.0000000000000000 0.3060000000000000 # Si35
+ 0.8820000000000002 0.0000000000000000 0.6940000000000001 # Si36
+ 0.3060000000000000 0.1179999999999998 0.0000000000000000 # Si37
+ 0.6940000000000001 0.8820000000000002 0.0000000000000000 # Si38
+ 0.1179999999999998 0.0000000000000000 0.6940000000000001 # Si39
+ 0.8820000000000002 0.0000000000000000 0.3060000000000000 # Si40
+ 0.6940000000000001 0.1179999999999998 0.0000000000000000 # Si41
+ 0.3060000000000000 0.8820000000000002 0.0000000000000000 # Si42
+ 0.3150000000000002 0.3150000000000002 0.3150000000000002 # Si43
+ 0.6850000000000004 0.6850000000000004 0.6850000000000004 # Si44
+ 0.5000000000000002 0.6180000000000001 0.8060000000000002 # Si45
+ 0.5000000000000002 0.3820000000000000 0.1939999999999998 # Si46
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # K1
+ 0.2500000000000001 0.5000000000000002 0.0000000000000000 # K2
+ 0.7499999999999999 0.5000000000000002 0.0000000000000000 # K3
+ 0.5000000000000002 0.5000000000000002 0.5000000000000002 # K4
+ 0.0000000000000000 0.7500000000000003 0.5000000000000002 # K5
+ 0.0000000000000000 0.2500000000000001 0.5000000000000002 # K6
+ 0.5000000000000002 0.0000000000000000 0.2500000000000001 # K7
+ 0.5000000000000002 0.0000000000000000 0.7499999999999999 # K8
diff --git a/test/data/cubic/POSCAR-224 b/test/data/cubic/POSCAR-224
new file mode 100644
index 0000000..558d8aa
--- /dev/null
+++ b/test/data/cubic/POSCAR-224
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 4.9039976924631548 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.9039976924631548 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.9039976924631548
+ 4 6
+Direct
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Ag1
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000 # Ag2
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000 # Ag3
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000 # Ag4
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # O1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # O2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # O3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # O4
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # O5
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # O6
diff --git a/test/data/cubic/POSCAR-224-2 b/test/data/cubic/POSCAR-224-2
new file mode 100644
index 0000000..558d8aa
--- /dev/null
+++ b/test/data/cubic/POSCAR-224-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 4.9039976924631548 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.9039976924631548 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.9039976924631548
+ 4 6
+Direct
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Ag1
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000 # Ag2
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000 # Ag3
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000 # Ag4
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # O1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # O2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # O3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # O4
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # O5
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # O6
diff --git a/test/data/cubic/POSCAR-225 b/test/data/cubic/POSCAR-225
new file mode 100644
index 0000000..536237d
--- /dev/null
+++ b/test/data/cubic/POSCAR-225
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 9.9899952992877097 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.9899952992877097 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.9899952992877097
+ 8 4 24
+Direct
+ 0.2499999999999999 0.2499999999999999 0.2499999999999999 # K1
+ 0.2499999999999999 0.7500000000000001 0.7499999999999997 # K2
+ 0.7500000000000001 0.2499999999999999 0.7499999999999997 # K3
+ 0.7500000000000001 0.7499999999999997 0.2499999999999999 # K4
+ 0.7500000000000001 0.7500000000000001 0.7499999999999997 # K5
+ 0.7499999999999997 0.2499999999999999 0.2499999999999999 # K6
+ 0.2499999999999999 0.7499999999999997 0.2499999999999999 # K7
+ 0.2499999999999999 0.2499999999999999 0.7499999999999997 # K8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Sn1
+ 0.0000000000000000 0.4999999999999998 0.4999999999999998 # Sn2
+ 0.4999999999999998 0.0000000000000000 0.4999999999999998 # Sn3
+ 0.4999999999999998 0.4999999999999998 0.0000000000000000 # Sn4
+ 0.2410999999999999 0.0000000000000000 0.0000000000000000 # Cl1
+ 0.2410999999999999 0.4999999999999998 0.4999999999999998 # Cl2
+ 0.7410999999999996 0.0000000000000000 0.4999999999999998 # Cl3
+ 0.7410999999999996 0.4999999999999998 0.0000000000000000 # Cl4
+ -0.2410999999999999 0.0000000000000000 0.0000000000000000 # Cl5
+ -0.2410999999999999 0.4999999999999998 0.4999999999999998 # Cl6
+ 0.2588999999999999 0.0000000000000000 0.4999999999999998 # Cl7
+ 0.2588999999999999 0.4999999999999998 0.0000000000000000 # Cl8
+ 0.0000000000000000 0.2410999999999999 0.0000000000000000 # Cl9
+ 0.0000000000000000 0.7411000000000002 0.4999999999999998 # Cl10
+ 0.4999999999999998 0.2410999999999999 0.4999999999999998 # Cl11
+ 0.4999999999999998 0.7410999999999996 0.0000000000000000 # Cl12
+ 0.0000000000000000 -0.2410999999999999 0.0000000000000000 # Cl13
+ 0.0000000000000000 0.2588999999999999 0.4999999999999998 # Cl14
+ 0.4999999999999998 -0.2410999999999999 0.4999999999999998 # Cl15
+ 0.4999999999999998 0.2588999999999999 0.0000000000000000 # Cl16
+ 0.0000000000000000 0.0000000000000000 -0.2410999999999999 # Cl17
+ 0.0000000000000000 0.4999999999999998 0.2588999999999999 # Cl18
+ 0.4999999999999998 0.0000000000000000 0.2588999999999999 # Cl19
+ 0.4999999999999998 0.4999999999999998 -0.2410999999999999 # Cl20
+ 0.0000000000000000 0.0000000000000000 0.2410999999999999 # Cl21
+ 0.0000000000000000 0.4999999999999998 0.7410999999999996 # Cl22
+ 0.4999999999999998 0.0000000000000000 0.7410999999999996 # Cl23
+ 0.4999999999999998 0.4999999999999998 0.2410999999999999 # Cl24
diff --git a/test/data/cubic/POSCAR-225-2 b/test/data/cubic/POSCAR-225-2
new file mode 100644
index 0000000..631dab9
--- /dev/null
+++ b/test/data/cubic/POSCAR-225-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 8.1929961448512696 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.1929961448512696 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.1929961448512696
+ 8 4 4 24
+Direct
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Ba1
+ 0.2500000000000000 0.7500000000000002 0.7500000000000002 # Ba2
+ 0.7500000000000002 0.2500000000000000 0.7500000000000002 # Ba3
+ 0.7500000000000002 0.7500000000000002 0.2500000000000000 # Ba4
+ 0.7500000000000002 0.7500000000000002 0.7500000000000002 # Ba5
+ 0.7500000000000002 0.2500000000000000 0.2500000000000000 # Ba6
+ 0.2500000000000000 0.7500000000000002 0.2500000000000000 # Ba7
+ 0.2500000000000000 0.2500000000000000 0.7500000000000002 # Ba8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mn1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Mn2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Mn3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Mn4
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # W1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # W2
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # W3
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # W4
+ 0.2500000000000000 0.0000000000000000 0.0000000000000000 # O1
+ 0.2500000000000000 0.5000000000000000 0.5000000000000000 # O2
+ 0.7500000000000002 0.0000000000000000 0.5000000000000000 # O3
+ 0.7500000000000002 0.5000000000000000 0.0000000000000000 # O4
+ 0.7500000000000002 0.0000000000000000 0.0000000000000000 # O5
+ 0.7500000000000002 0.5000000000000000 0.5000000000000000 # O6
+ 0.2500000000000000 0.0000000000000000 0.5000000000000000 # O7
+ 0.2500000000000000 0.5000000000000000 0.0000000000000000 # O8
+ 0.0000000000000000 0.2500000000000000 0.0000000000000000 # O9
+ 0.0000000000000000 0.7500000000000002 0.5000000000000000 # O10
+ 0.5000000000000000 0.2500000000000000 0.5000000000000000 # O11
+ 0.5000000000000000 0.7500000000000002 0.0000000000000000 # O12
+ 0.0000000000000000 0.7500000000000002 0.0000000000000000 # O13
+ 0.0000000000000000 0.2500000000000000 0.5000000000000000 # O14
+ 0.5000000000000000 0.7500000000000002 0.5000000000000000 # O15
+ 0.5000000000000000 0.2500000000000000 0.0000000000000000 # O16
+ 0.0000000000000000 0.0000000000000000 0.7500000000000002 # O17
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # O18
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # O19
+ 0.5000000000000000 0.5000000000000000 0.7500000000000002 # O20
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # O21
+ 0.0000000000000000 0.5000000000000000 0.7500000000000002 # O22
+ 0.5000000000000000 0.0000000000000000 0.7500000000000002 # O23
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000 # O24
diff --git a/test/data/cubic/POSCAR-226 b/test/data/cubic/POSCAR-226
new file mode 100644
index 0000000..360dc3b
--- /dev/null
+++ b/test/data/cubic/POSCAR-226
@@ -0,0 +1,1607 @@
+$cell vectors
+1.0
+ 25.0599882082232170 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 25.0599882082232170 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 25.0599882082232170
+ 144 1456
+Direct
+ 0.0841000000000001 -0.0000000000000001 0.3090999999999999 # Xe1
+ 0.1258000000000000 0.2500000000000001 0.2499999999999999 # Xe2
+ 0.1258000000000000 0.7500000000000000 0.7499999999999998 # Xe3
+ 0.6258000000000000 0.2499999999999999 0.7499999999999998 # Xe4
+ 0.6258000000000000 0.7499999999999998 0.2499999999999999 # Xe5
+ 0.9158999999999998 -0.0000000000000001 0.6909000000000002 # Xe6
+ 0.8741999999999999 0.7500000000000000 0.7499999999999998 # Xe7
+ 0.9158999999999998 0.4999999999999999 0.1909000000000001 # Xe8
+ 0.8741999999999999 0.2500000000000001 0.2499999999999999 # Xe9
+ 0.4159000000000000 0.0000000000000000 0.1909000000000001 # Xe10
+ 0.3741999999999999 0.7499999999999998 0.2499999999999999 # Xe11
+ 0.4159000000000000 0.4999999999999998 0.6909000000000002 # Xe12
+ 0.3741999999999999 0.2499999999999999 0.7499999999999998 # Xe13
+ 0.0000000000000000 0.0840999999999999 0.8090999999999998 # Xe14
+ 0.7499999999999998 0.1257999999999999 0.7499999999999998 # Xe15
+ 0.0000000000000000 0.5840999999999997 0.3090999999999999 # Xe16
+ 0.7499999999999998 0.6258000000000000 0.2499999999999999 # Xe17
+ 0.5000000000000000 0.0841000000000000 0.3090999999999999 # Xe18
+ 0.2499999999999999 0.1258000000000000 0.2499999999999999 # Xe19
+ 0.5000000000000002 0.5840999999999998 0.8090999999999998 # Xe20
+ 0.2500000000000001 0.6257999999999999 0.7499999999999998 # Xe21
+ 0.0000000000000000 0.9158999999999998 0.1909000000000001 # Xe22
+ 0.2500000000000001 0.8741999999999999 0.2499999999999999 # Xe23
+ 0.0000000000000000 0.4158999999999999 0.6909000000000002 # Xe24
+ 0.2500000000000001 0.3741999999999998 0.7499999999999998 # Xe25
+ 0.5000000000000002 0.9159000000000000 0.6909000000000002 # Xe26
+ 0.7499999999999998 0.8741999999999999 0.7499999999999998 # Xe27
+ 0.5000000000000000 0.4159000000000000 0.1909000000000001 # Xe28
+ 0.7499999999999998 0.3741999999999999 0.2499999999999999 # Xe29
+ 0.9158999999999998 -0.0000000000000001 0.3090999999999999 # Xe30
+ 0.8741999999999999 0.7499999999999998 0.2499999999999999 # Xe31
+ 0.9158999999999998 0.4999999999999998 0.8090999999999998 # Xe32
+ 0.8741999999999999 0.2499999999999999 0.7499999999999998 # Xe33
+ 0.4159000000000000 -0.0000000000000002 0.8090999999999998 # Xe34
+ 0.3742000000000001 0.7500000000000000 0.7499999999999998 # Xe35
+ 0.4159000000000000 0.4999999999999999 0.3090999999999999 # Xe36
+ 0.3741999999999999 0.2500000000000001 0.2499999999999999 # Xe37
+ 0.0841000000000001 -0.0000000000000001 0.6909000000000002 # Xe38
+ 0.0841000000000001 0.4999999999999999 0.1909000000000001 # Xe39
+ 0.1258000000000000 0.7499999999999998 0.2499999999999999 # Xe40
+ 0.5840999999999998 0.0000000000000000 0.1909000000000001 # Xe41
+ 0.5841000000000001 0.4999999999999998 0.6909000000000002 # Xe42
+ 0.0000000000000002 0.9158999999999999 0.8090999999999998 # Xe43
+ 0.2500000000000001 0.8741999999999999 0.7499999999999998 # Xe44
+ 0.0000000000000000 0.4159000000000000 0.3090999999999999 # Xe45
+ 0.2500000000000001 0.3741999999999999 0.2499999999999999 # Xe46
+ 0.5000000000000000 0.9158999999999997 0.3090999999999999 # Xe47
+ 0.7499999999999998 0.8741999999999999 0.2499999999999999 # Xe48
+ 0.5000000000000000 0.4158999999999999 0.8090999999999998 # Xe49
+ 0.7499999999999998 0.3741999999999998 0.7499999999999998 # Xe50
+ 0.0000000000000000 0.0841000000000000 0.1909000000000001 # Xe51
+ 0.7499999999999998 0.1258000000000000 0.2499999999999999 # Xe52
+ 0.0000000000000000 0.5841000000000000 0.6909000000000002 # Xe53
+ 0.7499999999999998 0.6257999999999999 0.7499999999999998 # Xe54
+ 0.5000000000000000 0.0840999999999999 0.6909000000000002 # Xe55
+ 0.2500000000000001 0.1257999999999999 0.7499999999999998 # Xe56
+ 0.5000000000000000 0.5840999999999998 0.1909000000000001 # Xe57
+ 0.2500000000000001 0.6258000000000000 0.2499999999999999 # Xe58
+ 0.0841000000000001 0.6909000000000001 0.5000000000000000 # Xe59
+ 0.0841000000000001 0.1909000000000001 0.0000000000000000 # Xe60
+ 0.5841000000000001 0.6909000000000002 0.0000000000000000 # Xe61
+ 0.5840999999999998 0.1909000000000000 0.5000000000000000 # Xe62
+ 0.9158999999999998 0.3091000000000000 0.5000000000000000 # Xe63
+ 0.9158999999999998 0.8090999999999998 0.0000000000000000 # Xe64
+ 0.4159000000000000 0.3090999999999999 0.0000000000000000 # Xe65
+ 0.4159000000000000 0.8090999999999997 0.5000000000000000 # Xe66
+ 0.0841000000000001 0.3091000000000000 0.5000000000000000 # Xe67
+ 0.0841000000000001 0.8090999999999998 0.0000000000000000 # Xe68
+ 0.5840999999999998 0.3090999999999999 0.0000000000000000 # Xe69
+ 0.5841000000000001 0.8090999999999997 0.5000000000000000 # Xe70
+ 0.9158999999999998 0.6909000000000001 0.5000000000000000 # Xe71
+ 0.9158999999999998 0.1909000000000001 0.0000000000000000 # Xe72
+ 0.4159000000000000 0.6909000000000002 0.0000000000000000 # Xe73
+ 0.4159000000000000 0.1909000000000000 0.5000000000000000 # Xe74
+ 0.3090999999999999 -0.0000000000000001 0.4159000000000000 # Xe75
+ 0.2500000000000001 0.2500000000000001 0.3741999999999999 # Xe76
+ 0.3091000000000001 0.4999999999999998 0.9158999999999998 # Xe77
+ 0.2500000000000001 0.7499999999999999 0.8741999999999999 # Xe78
+ 0.8090999999999998 -0.0000000000000002 0.9158999999999998 # Xe79
+ 0.7499999999999998 0.2499999999999999 0.8741999999999999 # Xe80
+ 0.8090999999999998 0.4999999999999999 0.4159000000000000 # Xe81
+ 0.7499999999999998 0.7499999999999997 0.3741999999999999 # Xe82
+ 0.7499999999999998 0.7499999999999997 0.6258000000000000 # Xe83
+ 0.7499999999999998 0.2499999999999999 0.1258000000000000 # Xe84
+ 0.2500000000000001 0.7499999999999998 0.1258000000000000 # Xe85
+ 0.1909000000000001 0.4999999999999999 0.5840999999999998 # Xe86
+ 0.2500000000000001 0.2500000000000000 0.6258000000000000 # Xe87
+ 0.0841000000000001 0.4999999999999998 0.8090999999999998 # Xe88
+ 0.1258000000000000 0.2499999999999999 0.7499999999999998 # Xe89
+ 0.5841000000000001 -0.0000000000000002 0.8090999999999998 # Xe90
+ 0.6258000000000002 0.7500000000000000 0.7499999999999998 # Xe91
+ 0.5840999999999998 0.4999999999999999 0.3090999999999999 # Xe92
+ 0.6258000000000000 0.2500000000000001 0.2499999999999999 # Xe93
+ 0.6909000000000002 -0.0000000000000001 0.5840999999999998 # Xe94
+ 0.7499999999999998 0.2500000000000000 0.6258000000000000 # Xe95
+ 0.6909000000000002 0.5000000000000000 0.0840999999999999 # Xe96
+ 0.7499999999999998 0.7499999999999998 0.1258000000000000 # Xe97
+ 0.1909000000000001 0.0000000000000000 0.0840999999999999 # Xe98
+ 0.2499999999999999 0.2499999999999999 0.1258000000000000 # Xe99
+ 0.2500000000000001 0.7499999999999997 0.6258000000000000 # Xe100
+ 0.2500000000000001 0.7499999999999997 0.3741999999999999 # Xe101
+ 0.2500000000000001 0.2499999999999999 0.8741999999999999 # Xe102
+ 0.7499999999999998 0.7499999999999999 0.8741999999999999 # Xe103
+ 0.7499999999999998 0.2500000000000001 0.3741999999999999 # Xe104
+ 0.3090999999999999 0.0840999999999999 0.0000000000000000 # Xe105
+ 0.3091000000000001 0.5841000000000000 0.5000000000000000 # Xe106
+ 0.8090999999999998 0.0841000000000000 0.5000000000000000 # Xe107
+ 0.8090999999999998 0.5840999999999998 0.0000000000000000 # Xe108
+ 0.6909000000000002 0.9158999999999998 0.0000000000000000 # Xe109
+ 0.6909000000000002 0.4158999999999999 0.5000000000000000 # Xe110
+ 0.1909000000000001 0.9158999999999997 0.5000000000000000 # Xe111
+ 0.1909000000000001 0.4159000000000000 0.0000000000000000 # Xe112
+ 0.0000000000000000 0.3090999999999999 0.0840999999999999 # Xe113
+ 0.0000000000000000 0.8090999999999997 0.5840999999999998 # Xe114
+ 0.5000000000000000 0.3091000000000000 0.5840999999999998 # Xe115
+ 0.5000000000000000 0.8090999999999998 0.0840999999999999 # Xe116
+ 0.0000000000000000 0.6909000000000000 0.9158999999999998 # Xe117
+ 0.0000000000000000 0.1909000000000000 0.4159000000000000 # Xe118
+ 0.5000000000000000 0.6909000000000001 0.4159000000000000 # Xe119
+ 0.5000000000000000 0.1908999999999999 0.9158999999999998 # Xe120
+ 0.0000000000000000 0.6909000000000002 0.0840999999999999 # Xe121
+ 0.0000000000000000 0.1909000000000000 0.5840999999999998 # Xe122
+ 0.5000000000000002 0.6909000000000001 0.5840999999999998 # Xe123
+ 0.5000000000000000 0.1909000000000000 0.0840999999999999 # Xe124
+ 0.0000000000000000 0.3090999999999999 0.9158999999999998 # Xe125
+ 0.0000000000000000 0.8090999999999997 0.4159000000000000 # Xe126
+ 0.5000000000000000 0.3090999999999998 0.4159000000000000 # Xe127
+ 0.5000000000000002 0.8090999999999998 0.9158999999999998 # Xe128
+ 0.3091000000000001 0.9158999999999998 0.0000000000000000 # Xe129
+ 0.3091000000000001 0.4158999999999999 0.5000000000000000 # Xe130
+ 0.8090999999999998 0.9158999999999997 0.5000000000000000 # Xe131
+ 0.8090999999999998 0.4159000000000000 0.0000000000000000 # Xe132
+ 0.6909000000000002 0.0840999999999999 0.0000000000000000 # Xe133
+ 0.6909000000000002 0.5841000000000000 0.5000000000000000 # Xe134
+ 0.1909000000000001 0.0841000000000000 0.5000000000000000 # Xe135
+ 0.1909000000000001 0.5840999999999998 0.0000000000000000 # Xe136
+ 0.3090999999999999 -0.0000000000000001 0.5840999999999998 # Xe137
+ 0.3090999999999999 0.5000000000000000 0.0840999999999999 # Xe138
+ 0.8090999999999998 0.0000000000000000 0.0840999999999999 # Xe139
+ 0.8090999999999998 0.4999999999999999 0.5840999999999998 # Xe140
+ 0.6909000000000002 -0.0000000000000001 0.4159000000000000 # Xe141
+ 0.6909000000000002 0.4999999999999998 0.9158999999999998 # Xe142
+ 0.1909000000000001 -0.0000000000000002 0.9158999999999998 # Xe143
+ 0.1909000000000001 0.4999999999999999 0.4159000000000000 # Xe144
+ 0.1400999999999999 0.0400999999999999 0.3355999999999999 # F1
+ 0.1406000000000000 -0.0140000000000001 0.2623999999999999 # F2
+ 0.0943000000000002 0.9389999999999997 0.3446999999999999 # F3
+ -0.0603000000000001 0.0708000000000000 0.3007000000000001 # F4
+ 0.0535000000000000 0.0199000000000000 0.3715999999999999 # F5
+ 0.0144000000000001 0.9489999999999998 0.2884000000000000 # F6
+ 0.0561000000000001 0.2500000000000001 0.2499999999999999 # F7
+ 0.1127000000000001 0.1846999999999999 0.2844999999999999 # F8
+ 0.2021000000000001 0.2021000000000000 0.2021000000000001 # F9
+ 0.1400999999999999 0.5400999999999997 0.8355999999999999 # F10
+ 0.1406000000000000 0.4859999999999998 0.7623999999999999 # F11
+ 0.0943000000000002 0.4389999999999997 0.8446999999999999 # F12
+ -0.0602999999999999 0.5707999999999998 0.8006999999999999 # F13
+ 0.0535000000000000 0.5198999999999998 0.8715999999999998 # F14
+ 0.0144000000000001 0.4489999999999997 0.7883999999999998 # F15
+ 0.0561000000000001 0.7500000000000000 0.7499999999999998 # F16
+ 0.1127000000000001 0.6846999999999999 0.7844999999999999 # F17
+ 0.2021000000000001 0.7021000000000001 0.7020999999999998 # F18
+ 0.6400999999999998 0.0401000000000000 0.8355999999999999 # F19
+ 0.6406000000000001 -0.0140000000000002 0.7623999999999999 # F20
+ 0.5943000000000002 0.9389999999999999 0.8446999999999999 # F21
+ 0.4397000000000001 0.0707999999999999 0.8006999999999999 # F22
+ 0.5535000000000000 0.0198999999999999 0.8715999999999998 # F23
+ 0.5144000000000001 0.9490000000000000 0.7883999999999998 # F24
+ 0.5561000000000000 0.2499999999999999 0.7499999999999998 # F25
+ 0.6127000000000000 0.1846999999999998 0.7844999999999999 # F26
+ 0.7020999999999998 0.2020999999999999 0.7020999999999998 # F27
+ 0.6400999999999998 0.5400999999999998 0.3355999999999999 # F28
+ 0.6406000000000001 0.4859999999999999 0.2623999999999999 # F29
+ 0.5942999999999999 0.4389999999999998 0.3446999999999999 # F30
+ 0.4396999999999999 0.5707999999999999 0.3007000000000001 # F31
+ 0.5535000000000000 0.5198999999999999 0.3715999999999999 # F32
+ 0.5143999999999999 0.4489999999999998 0.2884000000000000 # F33
+ 0.5561000000000000 0.7499999999999998 0.2499999999999999 # F34
+ 0.6127000000000000 0.6846999999999999 0.2844999999999999 # F35
+ 0.7020999999999998 0.7020999999999998 0.2021000000000001 # F36
+ -0.1400999999999999 0.9598999999999999 0.6643999999999998 # F37
+ 0.8594000000000001 0.0139999999999999 0.7375999999999998 # F38
+ -0.0943000000000000 0.0609999999999999 0.6552999999999998 # F39
+ 0.0603000000000001 0.9292000000000000 0.6992999999999999 # F40
+ 0.9464999999999997 -0.0199000000000000 0.6284000000000000 # F41
+ -0.0143999999999999 0.0509999999999999 0.7116000000000000 # F42
+ 0.9438999999999997 0.7500000000000000 0.7499999999999998 # F43
+ 0.8872999999999998 0.8152999999999999 0.7155000000000000 # F44
+ 0.7979000000000001 0.7978999999999998 0.7979000000000001 # F45
+ -0.1400999999999999 0.4599000000000000 0.1644000000000000 # F46
+ 0.8594000000000001 0.5140000000000000 0.2375999999999999 # F47
+ -0.0943000000000000 0.5609999999999998 0.1553000000000000 # F48
+ 0.0603000000000001 0.4291999999999999 0.1992999999999999 # F49
+ 0.9464999999999997 0.4800999999999999 0.1284000000000001 # F50
+ -0.0143999999999999 0.5510000000000000 0.2116000000000000 # F51
+ 0.9438999999999997 0.2500000000000001 0.2499999999999999 # F52
+ 0.8872999999999998 0.3152999999999999 0.2155000000000001 # F53
+ 0.7979000000000001 0.2978999999999999 0.2978999999999999 # F54
+ 0.3599000000000001 0.9598999999999998 0.1644000000000000 # F55
+ 0.3593999999999999 0.0140000000000000 0.2375999999999999 # F56
+ 0.4057000000000000 0.0610000000000000 0.1553000000000000 # F57
+ 0.5603000000000001 0.9291999999999998 0.1992999999999999 # F58
+ 0.4464999999999999 -0.0199000000000001 0.1284000000000001 # F59
+ 0.4856000000000001 0.0510000000000000 0.2116000000000000 # F60
+ 0.4439000000000001 0.7499999999999998 0.2499999999999999 # F61
+ 0.3873000000000000 0.8152999999999999 0.2155000000000001 # F62
+ 0.2978999999999999 0.7978999999999999 0.2978999999999999 # F63
+ 0.3599000000000001 0.4598999999999999 0.6643999999999998 # F64
+ 0.3593999999999999 0.5139999999999999 0.7375999999999998 # F65
+ 0.4057000000000000 0.5609999999999999 0.6552999999999998 # F66
+ 0.5603000000000001 0.4291999999999997 0.6992999999999999 # F67
+ 0.4464999999999999 0.4800999999999998 0.6284000000000000 # F68
+ 0.4856000000000001 0.5509999999999999 0.7116000000000000 # F69
+ 0.4439000000000001 0.2499999999999999 0.7499999999999998 # F70
+ 0.3873000000000000 0.3152999999999998 0.7155000000000000 # F71
+ 0.2978999999999999 0.2978999999999998 0.7979000000000001 # F72
+ 0.9598999999999998 0.1400999999999998 0.8355999999999999 # F73
+ 0.0140000000000000 0.1405999999999999 0.7623999999999999 # F74
+ 0.0610000000000001 0.0943000000000000 0.8446999999999999 # F75
+ 0.9291999999999998 -0.0603000000000000 0.8006999999999999 # F76
+ -0.0199000000000000 0.0534999999999998 0.8715999999999998 # F77
+ 0.0510000000000000 0.0143999999999999 0.7883999999999998 # F78
+ 0.7499999999999998 0.0560999999999999 0.7499999999999998 # F79
+ 0.8152999999999999 0.1126999999999999 0.7844999999999999 # F80
+ 0.7979000000000001 0.2020999999999999 0.7020999999999998 # F81
+ 0.9598999999999998 0.6400999999999997 0.3355999999999999 # F82
+ 0.0140000000000000 0.6406000000000001 0.2623999999999999 # F83
+ 0.0610000000000001 0.5942999999999998 0.3446999999999999 # F84
+ 0.9291999999999998 0.4396999999999998 0.3007000000000001 # F85
+ -0.0199000000000000 0.5534999999999999 0.3715999999999999 # F86
+ 0.0510000000000000 0.5143999999999997 0.2884000000000000 # F87
+ 0.7499999999999998 0.5561000000000000 0.2499999999999999 # F88
+ 0.8152999999999999 0.6126999999999999 0.2844999999999999 # F89
+ 0.4599000000000001 0.1400999999999998 0.3355999999999999 # F90
+ 0.5140000000000000 0.1406000000000000 0.2623999999999999 # F91
+ 0.5609999999999998 0.0943000000000001 0.3446999999999999 # F92
+ 0.4291999999999999 -0.0602999999999999 0.3007000000000001 # F93
+ 0.4800999999999999 0.0535000000000000 0.3715999999999999 # F94
+ 0.5510000000000000 0.0143999999999998 0.2884000000000000 # F95
+ 0.2499999999999999 0.0561000000000000 0.2499999999999999 # F96
+ 0.3153000000000000 0.1127000000000000 0.2844999999999999 # F97
+ 0.2978999999999999 0.2021000000000000 0.2021000000000001 # F98
+ 0.4599000000000001 0.6400999999999999 0.8355999999999999 # F99
+ 0.5140000000000000 0.6405999999999999 0.7623999999999999 # F100
+ 0.5610000000000001 0.5942999999999997 0.8446999999999999 # F101
+ 0.4291999999999999 0.4396999999999999 0.8006999999999999 # F102
+ 0.4800999999999999 0.5534999999999998 0.8715999999999998 # F103
+ 0.5510000000000000 0.5144000000000000 0.7883999999999998 # F104
+ 0.2500000000000001 0.5560999999999999 0.7499999999999998 # F105
+ 0.3153000000000000 0.6126999999999999 0.7844999999999999 # F106
+ 0.2978999999999999 0.7021000000000001 0.7020999999999998 # F107
+ 0.0401000000000000 -0.1400999999999999 0.1644000000000000 # F108
+ -0.0140000000000000 0.8594000000000001 0.2375999999999999 # F109
+ 0.9389999999999998 -0.0943000000000000 0.1553000000000000 # F110
+ 0.0708000000000000 0.0603000000000000 0.1992999999999999 # F111
+ 0.0199000000000000 0.9464999999999997 0.1284000000000001 # F112
+ 0.9490000000000000 -0.0143999999999999 0.2116000000000000 # F113
+ 0.2500000000000001 0.9438999999999997 0.2499999999999999 # F114
+ 0.1847000000000000 0.8872999999999998 0.2155000000000001 # F115
+ 0.2021000000000001 0.7978999999999999 0.2978999999999999 # F116
+ 0.0401000000000000 0.3598999999999999 0.6643999999999998 # F117
+ -0.0140000000000000 0.3593999999999997 0.7375999999999998 # F118
+ 0.9389999999999998 0.4056999999999999 0.6552999999999998 # F119
+ 0.0708000000000000 0.5603000000000000 0.6992999999999999 # F120
+ 0.0199000000000000 0.4464999999999998 0.6284000000000000 # F121
+ 0.9490000000000000 0.4855999999999999 0.7116000000000000 # F122
+ 0.2500000000000001 0.4439000000000000 0.7499999999999998 # F123
+ 0.1847000000000000 0.3872999999999998 0.7155000000000000 # F124
+ 0.2021000000000001 0.2978999999999998 0.7979000000000001 # F125
+ 0.5400999999999999 -0.1401000000000001 0.6643999999999998 # F126
+ 0.4860000000000002 0.8593999999999999 0.7375999999999998 # F127
+ 0.4389999999999999 -0.0943000000000001 0.6552999999999998 # F128
+ 0.5708000000000000 0.0602999999999999 0.6992999999999999 # F129
+ 0.5199000000000000 0.9464999999999996 0.6284000000000000 # F130
+ 0.4489999999999999 -0.0144000000000001 0.7116000000000000 # F131
+ 0.7499999999999998 0.9439000000000000 0.7499999999999998 # F132
+ 0.6847000000000000 0.8872999999999996 0.7155000000000000 # F133
+ 0.7020999999999998 0.7978999999999998 0.7979000000000001 # F134
+ 0.5400999999999999 0.3598999999999998 0.1644000000000000 # F135
+ 0.4860000000000000 0.3593999999999998 0.2375999999999999 # F136
+ 0.4389999999999999 0.4056999999999999 0.1553000000000000 # F137
+ 0.5708000000000000 0.5602999999999998 0.1992999999999999 # F138
+ 0.5199000000000000 0.4464999999999999 0.1284000000000001 # F139
+ 0.4489999999999999 0.4856000000000000 0.2116000000000000 # F140
+ 0.7499999999999998 0.4438999999999999 0.2499999999999999 # F141
+ 0.6847000000000000 0.3872999999999999 0.2155000000000001 # F142
+ 0.7020999999999998 0.2978999999999999 0.2978999999999999 # F143
+ -0.1400999999999999 0.9598999999999996 0.3355999999999999 # F144
+ 0.8594000000000001 0.0140000000000000 0.2623999999999999 # F145
+ -0.0943000000000000 0.0610000000000000 0.3446999999999999 # F146
+ 0.0603000000000001 0.9291999999999997 0.3007000000000001 # F147
+ 0.9464999999999997 -0.0199000000000001 0.3715999999999999 # F148
+ -0.0144000000000001 0.0510000000000000 0.2884000000000000 # F149
+ 0.9438999999999997 0.7499999999999998 0.2499999999999999 # F150
+ 0.8872999999999998 0.8152999999999998 0.2844999999999999 # F151
+ 0.7979000000000001 0.7979000000000001 0.2021000000000001 # F152
+ -0.1400999999999999 0.4598999999999999 0.8355999999999999 # F153
+ 0.8594000000000001 0.5139999999999999 0.7623999999999999 # F154
+ -0.0943000000000000 0.5609999999999998 0.8446999999999999 # F155
+ 0.0603000000000001 0.4291999999999997 0.8006999999999999 # F156
+ 0.9464999999999997 0.4800999999999997 0.8715999999999998 # F157
+ -0.0143999999999999 0.5509999999999999 0.7883999999999998 # F158
+ 0.9438999999999997 0.2499999999999999 0.7499999999999998 # F159
+ 0.8872999999999998 0.3152999999999998 0.7844999999999999 # F160
+ 0.7979000000000001 0.2978999999999998 0.7020999999999998 # F161
+ 0.3599000000000001 0.9598999999999998 0.8355999999999999 # F162
+ 0.3593999999999999 0.0139999999999998 0.7623999999999999 # F163
+ 0.4057000000000000 0.0609999999999999 0.8446999999999999 # F164
+ 0.5603000000000001 0.9291999999999999 0.8006999999999999 # F165
+ 0.4464999999999999 -0.0199000000000000 0.8715999999999998 # F166
+ 0.4856000000000001 0.0509999999999999 0.7883999999999998 # F167
+ 0.4439000000000001 0.7500000000000000 0.7499999999999998 # F168
+ 0.3873000000000002 0.8152999999999999 0.7844999999999999 # F169
+ 0.2978999999999999 0.7978999999999999 0.7020999999999998 # F170
+ 0.3598999999999999 0.4599000000000000 0.3355999999999999 # F171
+ 0.3593999999999999 0.5140000000000000 0.2623999999999999 # F172
+ 0.4057000000000000 0.5609999999999999 0.3446999999999999 # F173
+ 0.5602999999999998 0.4291999999999999 0.3007000000000001 # F174
+ 0.4464999999999999 0.4800999999999999 0.3715999999999999 # F175
+ 0.4855999999999999 0.5509999999999999 0.2884000000000000 # F176
+ 0.4439000000000000 0.2500000000000001 0.2499999999999999 # F177
+ 0.3873000000000000 0.3152999999999999 0.2844999999999999 # F178
+ 0.2978999999999999 0.2978999999999999 0.2021000000000001 # F179
+ 0.1401000000000001 0.0400999999999998 0.6643999999999998 # F180
+ 0.1406000000000000 -0.0140000000000002 0.7375999999999998 # F181
+ 0.0943000000000002 0.9390000000000001 0.6552999999999998 # F182
+ -0.0602999999999999 0.0707999999999999 0.6992999999999999 # F183
+ 0.0535000000000000 0.0198999999999999 0.6284000000000000 # F184
+ 0.0144000000000001 0.9490000000000000 0.7116000000000000 # F185
+ 0.1127000000000001 0.1846999999999999 0.7155000000000000 # F186
+ 0.2021000000000001 0.2020999999999999 0.7979000000000001 # F187
+ 0.1401000000000001 0.5400999999999999 0.1644000000000000 # F188
+ 0.1406000000000000 0.4859999999999999 0.2375999999999999 # F189
+ 0.0943000000000002 0.4389999999999998 0.1553000000000000 # F190
+ -0.0602999999999999 0.5708000000000000 0.1992999999999999 # F191
+ 0.0535000000000000 0.5199000000000000 0.1284000000000001 # F192
+ 0.0144000000000001 0.4489999999999998 0.2116000000000000 # F193
+ 0.0561000000000001 0.7499999999999998 0.2499999999999999 # F194
+ 0.1127000000000001 0.6847000000000000 0.2155000000000001 # F195
+ 0.2021000000000001 0.7020999999999997 0.2978999999999999 # F196
+ 0.6400999999999998 0.0400999999999999 0.1644000000000000 # F197
+ 0.6406000000000001 -0.0140000000000001 0.2375999999999999 # F198
+ 0.5942999999999999 0.9389999999999998 0.1553000000000000 # F199
+ 0.4396999999999999 0.0708000000000000 0.1992999999999999 # F200
+ 0.5535000000000000 0.0199000000000000 0.1284000000000001 # F201
+ 0.5144000000000001 0.9490000000000000 0.2116000000000000 # F202
+ 0.6127000000000000 0.1846999999999999 0.2155000000000001 # F203
+ 0.7020999999999998 0.2021000000000000 0.2978999999999999 # F204
+ 0.6400999999999998 0.5400999999999998 0.6643999999999998 # F205
+ 0.6406000000000001 0.4859999999999998 0.7375999999999998 # F206
+ 0.5942999999999999 0.4389999999999998 0.6552999999999998 # F207
+ 0.4397000000000001 0.5707999999999999 0.6992999999999999 # F208
+ 0.5535000000000000 0.5198999999999999 0.6284000000000000 # F209
+ 0.5144000000000001 0.4489999999999997 0.7116000000000000 # F210
+ 0.6127000000000000 0.6846999999999999 0.7155000000000000 # F211
+ 0.7020999999999998 0.7020999999999999 0.7979000000000001 # F212
+ 0.0401000000000000 -0.1401000000000001 0.8355999999999999 # F213
+ -0.0139999999999998 0.8593999999999999 0.7623999999999999 # F214
+ 0.9389999999999998 -0.0943000000000001 0.8446999999999999 # F215
+ 0.0708000000000000 0.0602999999999999 0.8006999999999999 # F216
+ 0.0199000000000000 0.9464999999999998 0.8715999999999998 # F217
+ 0.9490000000000000 -0.0144000000000001 0.7883999999999998 # F218
+ 0.2500000000000001 0.9439000000000000 0.7499999999999998 # F219
+ 0.1847000000000000 0.8872999999999996 0.7844999999999999 # F220
+ 0.2021000000000001 0.7978999999999999 0.7020999999999998 # F221
+ 0.0401000000000000 0.3598999999999998 0.3355999999999999 # F222
+ -0.0140000000000000 0.3593999999999998 0.2623999999999999 # F223
+ 0.9389999999999998 0.4056999999999999 0.3446999999999999 # F224
+ 0.0708000000000000 0.5602999999999997 0.3007000000000001 # F225
+ 0.0199000000000000 0.4464999999999998 0.3715999999999999 # F226
+ 0.9490000000000000 0.4855999999999998 0.2884000000000000 # F227
+ 0.2500000000000001 0.4438999999999999 0.2499999999999999 # F228
+ 0.1847000000000000 0.3872999999999999 0.2844999999999999 # F229
+ 0.2021000000000001 0.2978999999999999 0.2021000000000001 # F230
+ 0.5400999999999999 -0.1401000000000002 0.3355999999999999 # F231
+ 0.4860000000000000 0.8594000000000001 0.2623999999999999 # F232
+ 0.4389999999999999 -0.0943000000000000 0.3446999999999999 # F233
+ 0.5708000000000000 0.0603000000000000 0.3007000000000001 # F234
+ 0.5199000000000000 0.9464999999999996 0.3715999999999999 # F235
+ 0.4489999999999999 -0.0144000000000002 0.2884000000000000 # F236
+ 0.7499999999999998 0.9438999999999997 0.2499999999999999 # F237
+ 0.6847000000000000 0.8872999999999996 0.2844999999999999 # F238
+ 0.7020999999999998 0.7979000000000001 0.2021000000000001 # F239
+ 0.5400999999999999 0.3598999999999997 0.8355999999999999 # F240
+ 0.4860000000000000 0.3593999999999997 0.7623999999999999 # F241
+ 0.4389999999999999 0.4056999999999998 0.8446999999999999 # F242
+ 0.5708000000000000 0.5602999999999999 0.8006999999999999 # F243
+ 0.5199000000000000 0.4464999999999997 0.8715999999999998 # F244
+ 0.4489999999999999 0.4855999999999999 0.7883999999999998 # F245
+ 0.7499999999999998 0.4439000000000000 0.7499999999999998 # F246
+ 0.6847000000000000 0.3872999999999998 0.7844999999999999 # F247
+ 0.7020999999999998 0.2978999999999998 0.7020999999999998 # F248
+ 0.9598999999999998 0.1401000000000001 0.1644000000000000 # F249
+ 0.0140000000000000 0.1406000000000000 0.2375999999999999 # F250
+ 0.0610000000000001 0.0942999999999999 0.1553000000000000 # F251
+ 0.9291999999999998 -0.0603000000000001 0.1992999999999999 # F252
+ -0.0199000000000000 0.0535000000000000 0.1284000000000001 # F253
+ 0.0510000000000000 0.0144000000000001 0.2116000000000000 # F254
+ 0.7499999999999998 0.0561000000000000 0.2499999999999999 # F255
+ 0.8152999999999999 0.1127000000000000 0.2155000000000001 # F256
+ 0.7979000000000001 0.2021000000000000 0.2978999999999999 # F257
+ 0.9598999999999998 0.6401000000000000 0.6643999999999998 # F258
+ 0.0140000000000000 0.6405999999999999 0.7375999999999998 # F259
+ 0.0610000000000001 0.5942999999999998 0.6552999999999998 # F260
+ 0.9291999999999998 0.4396999999999999 0.6992999999999999 # F261
+ -0.0198999999999998 0.5534999999999999 0.6284000000000000 # F262
+ 0.0510000000000000 0.5144000000000000 0.7116000000000000 # F263
+ 0.7499999999999998 0.5560999999999999 0.7499999999999998 # F264
+ 0.8152999999999999 0.6126999999999999 0.7155000000000000 # F265
+ 0.7979000000000001 0.7020999999999999 0.7979000000000001 # F266
+ 0.4599000000000001 0.1401000000000000 0.6643999999999998 # F267
+ 0.5140000000000000 0.1405999999999999 0.7375999999999998 # F268
+ 0.5610000000000001 0.0943000000000000 0.6552999999999998 # F269
+ 0.4291999999999999 -0.0603000000000000 0.6992999999999999 # F270
+ 0.4800999999999999 0.0534999999999999 0.6284000000000000 # F271
+ 0.5510000000000000 0.0144000000000000 0.7116000000000000 # F272
+ 0.2500000000000001 0.0560999999999999 0.7499999999999998 # F273
+ 0.3153000000000000 0.1126999999999999 0.7155000000000000 # F274
+ 0.2978999999999999 0.2020999999999999 0.7979000000000001 # F275
+ 0.4599000000000001 0.6400999999999998 0.1644000000000000 # F276
+ 0.5140000000000000 0.6406000000000001 0.2375999999999999 # F277
+ 0.5610000000000001 0.5942999999999999 0.1553000000000000 # F278
+ 0.4291999999999999 0.4396999999999998 0.1992999999999999 # F279
+ 0.4800999999999999 0.5535000000000000 0.1284000000000001 # F280
+ 0.5510000000000000 0.5143999999999999 0.2116000000000000 # F281
+ 0.2500000000000001 0.5561000000000000 0.2499999999999999 # F282
+ 0.3153000000000000 0.6127000000000000 0.2155000000000001 # F283
+ 0.2978999999999999 0.7020999999999997 0.2978999999999999 # F284
+ 0.1400999999999999 0.6643999999999997 0.5400999999999999 # F285
+ 0.1406000000000000 0.7375999999999997 0.4860000000000000 # F286
+ 0.0943000000000002 0.6552999999999997 0.4389999999999999 # F287
+ -0.0602999999999999 0.6992999999999998 0.5708000000000000 # F288
+ 0.0535000000000000 0.6283999999999998 0.5199000000000000 # F289
+ 0.0144000000000001 0.7115999999999999 0.4489999999999999 # F290
+ 0.1127000000000001 0.7154999999999999 0.6847000000000000 # F291
+ 0.1400999999999999 0.1644000000000000 0.0401000000000000 # F292
+ 0.1406000000000000 0.2375999999999999 -0.0140000000000000 # F293
+ 0.0943000000000002 0.1552999999999999 0.9389999999999998 # F294
+ -0.0603000000000001 0.1992999999999999 0.0708000000000000 # F295
+ 0.0535000000000000 0.1284000000000001 0.0199000000000000 # F296
+ 0.0144000000000001 0.2116000000000000 0.9490000000000000 # F297
+ 0.1127000000000001 0.2155000000000001 0.1847000000000000 # F298
+ 0.6400999999999998 0.6643999999999998 0.0401000000000000 # F299
+ 0.6406000000000001 0.7375999999999998 -0.0140000000000000 # F300
+ 0.5943000000000002 0.6552999999999998 0.9389999999999998 # F301
+ 0.4397000000000001 0.6992999999999999 0.0708000000000000 # F302
+ 0.5535000000000000 0.6284000000000000 0.0199000000000000 # F303
+ 0.5144000000000001 0.7115999999999998 0.9490000000000000 # F304
+ 0.6127000000000000 0.7155000000000000 0.1847000000000000 # F305
+ 0.6400999999999998 0.1643999999999999 0.5400999999999999 # F306
+ 0.6406000000000001 0.2376000000000000 0.4860000000000000 # F307
+ 0.5942999999999999 0.1553000000000000 0.4389999999999999 # F308
+ 0.4396999999999999 0.1992999999999998 0.5708000000000000 # F309
+ 0.5535000000000000 0.1284000000000000 0.5199000000000000 # F310
+ 0.5143999999999999 0.2115999999999999 0.4489999999999999 # F311
+ 0.6127000000000000 0.2155000000000000 0.6847000000000000 # F312
+ -0.1400999999999999 0.3355999999999998 0.4599000000000001 # F313
+ 0.8594000000000001 0.2624000000000000 0.5140000000000000 # F314
+ -0.0943000000000000 0.3446999999999998 0.5609999999999998 # F315
+ 0.0603000000000001 0.3007000000000000 0.4291999999999999 # F316
+ 0.9464999999999997 0.3716000000000000 0.4800999999999999 # F317
+ -0.0143999999999999 0.2883999999999999 0.5510000000000000 # F318
+ 0.8872999999999998 0.2845000000000000 0.3153000000000000 # F319
+ -0.1400999999999999 0.8355999999999997 0.9598999999999998 # F320
+ 0.8594000000000001 0.7623999999999999 0.0140000000000000 # F321
+ -0.0943000000000000 0.8446999999999999 0.0610000000000001 # F322
+ 0.0603000000000001 0.8007000000000000 0.9291999999999998 # F323
+ 0.9464999999999997 0.8715999999999998 -0.0199000000000000 # F324
+ -0.0143999999999999 0.7883999999999998 0.0510000000000000 # F325
+ 0.8872999999999998 0.7845000000000000 0.8152999999999999 # F326
+ 0.3599000000000001 0.3355999999999999 0.9598999999999998 # F327
+ 0.3593999999999999 0.2623999999999999 0.0140000000000000 # F328
+ 0.4057000000000000 0.3446999999999999 0.0610000000000001 # F329
+ 0.5603000000000001 0.3006999999999999 0.9291999999999998 # F330
+ 0.4464999999999999 0.3715999999999999 -0.0199000000000000 # F331
+ 0.4856000000000001 0.2884000000000000 0.0510000000000000 # F332
+ 0.3873000000000000 0.2844999999999999 0.8152999999999999 # F333
+ 0.3599000000000001 0.8355999999999998 0.4599000000000001 # F334
+ 0.3593999999999999 0.7623999999999997 0.5140000000000000 # F335
+ 0.4057000000000000 0.8446999999999998 0.5609999999999998 # F336
+ 0.5603000000000001 0.8006999999999997 0.4291999999999999 # F337
+ 0.4464999999999999 0.8715999999999997 0.4800999999999999 # F338
+ 0.4856000000000001 0.7883999999999997 0.5510000000000000 # F339
+ 0.3873000000000000 0.7844999999999998 0.3153000000000000 # F340
+ 0.1401000000000001 0.9598999999999999 0.6643999999999998 # F341
+ 0.1406000000000000 0.0139999999999999 0.7375999999999998 # F342
+ 0.0943000000000002 0.0609999999999999 0.6552999999999998 # F343
+ -0.0602999999999999 0.9292000000000000 0.6992999999999999 # F344
+ 0.0535000000000000 -0.0199000000000000 0.6284000000000000 # F345
+ 0.0144000000000001 0.0509999999999999 0.7116000000000000 # F346
+ 0.1127000000000001 0.8152999999999999 0.7155000000000000 # F347
+ 0.2021000000000001 0.7978999999999998 0.7979000000000001 # F348
+ 0.1401000000000001 0.4599000000000000 0.1644000000000000 # F349
+ 0.1406000000000000 0.5140000000000000 0.2375999999999999 # F350
+ 0.0943000000000002 0.5609999999999998 0.1553000000000000 # F351
+ -0.0602999999999999 0.4291999999999999 0.1992999999999999 # F352
+ 0.0535000000000000 0.4800999999999999 0.1284000000000001 # F353
+ 0.0144000000000001 0.5510000000000000 0.2116000000000000 # F354
+ 0.1127000000000001 0.3152999999999999 0.2155000000000001 # F355
+ 0.2021000000000001 0.2978999999999999 0.2978999999999999 # F356
+ 0.6400999999999998 0.9598999999999998 0.1644000000000000 # F357
+ 0.6406000000000001 0.0140000000000000 0.2375999999999999 # F358
+ 0.5942999999999999 0.0610000000000000 0.1553000000000000 # F359
+ 0.4397000000000001 0.9291999999999998 0.1992999999999999 # F360
+ 0.5535000000000000 -0.0199000000000001 0.1284000000000001 # F361
+ 0.5143999999999999 0.0510000000000000 0.2116000000000000 # F362
+ 0.6127000000000000 0.8152999999999999 0.2155000000000001 # F363
+ 0.7020999999999998 0.7978999999999999 0.2978999999999999 # F364
+ 0.6400999999999998 0.4598999999999999 0.6643999999999998 # F365
+ 0.6406000000000001 0.5139999999999999 0.7375999999999998 # F366
+ 0.5942999999999999 0.5609999999999999 0.6552999999999998 # F367
+ 0.4397000000000001 0.4291999999999997 0.6992999999999999 # F368
+ 0.5535000000000000 0.4800999999999998 0.6284000000000000 # F369
+ 0.5144000000000001 0.5509999999999999 0.7116000000000000 # F370
+ 0.6127000000000000 0.3152999999999998 0.7155000000000000 # F371
+ 0.7020999999999998 0.2978999999999998 0.7979000000000001 # F372
+ -0.1401000000000001 0.0400999999999999 0.3355999999999999 # F373
+ 0.8594000000000001 -0.0140000000000001 0.2623999999999999 # F374
+ -0.0943000000000000 0.9389999999999997 0.3446999999999999 # F375
+ 0.0603000000000001 0.0708000000000000 0.3007000000000001 # F376
+ 0.9464999999999997 0.0199000000000000 0.3715999999999999 # F377
+ -0.0143999999999999 0.9489999999999998 0.2884000000000000 # F378
+ 0.8872999999999998 0.1846999999999999 0.2844999999999999 # F379
+ 0.7979000000000001 0.2021000000000000 0.2021000000000001 # F380
+ -0.1400999999999999 0.5400999999999997 0.8355999999999999 # F381
+ 0.8594000000000001 0.4859999999999998 0.7623999999999999 # F382
+ -0.0943000000000000 0.4389999999999997 0.8446999999999999 # F383
+ 0.0603000000000001 0.5707999999999998 0.8006999999999999 # F384
+ 0.9464999999999997 0.5198999999999998 0.8715999999999998 # F385
+ -0.0143999999999999 0.4489999999999997 0.7883999999999998 # F386
+ 0.8872999999999998 0.6846999999999999 0.7844999999999999 # F387
+ 0.7979000000000001 0.7021000000000001 0.7020999999999998 # F388
+ 0.3598999999999999 0.0401000000000000 0.8355999999999999 # F389
+ 0.3593999999999999 -0.0140000000000002 0.7623999999999999 # F390
+ 0.4057000000000000 0.9389999999999999 0.8446999999999999 # F391
+ 0.5603000000000001 0.0707999999999999 0.8006999999999999 # F392
+ 0.4464999999999999 0.0198999999999999 0.8715999999999998 # F393
+ 0.4856000000000001 0.9490000000000000 0.7883999999999998 # F394
+ 0.3873000000000000 0.1846999999999998 0.7844999999999999 # F395
+ 0.2978999999999999 0.2020999999999999 0.7020999999999998 # F396
+ 0.3598999999999999 0.5400999999999998 0.3355999999999999 # F397
+ 0.3593999999999999 0.4859999999999999 0.2623999999999999 # F398
+ 0.4057000000000000 0.4389999999999998 0.3446999999999999 # F399
+ 0.5602999999999998 0.5707999999999999 0.3007000000000001 # F400
+ 0.4464999999999999 0.5198999999999999 0.3715999999999999 # F401
+ 0.4855999999999999 0.4489999999999998 0.2884000000000000 # F402
+ 0.3873000000000000 0.6846999999999999 0.2844999999999999 # F403
+ 0.2978999999999999 0.7020999999999998 0.2021000000000001 # F404
+ 0.1401000000000001 0.3355999999999998 0.4599000000000001 # F405
+ 0.1406000000000000 0.2624000000000000 0.5140000000000000 # F406
+ 0.0943000000000002 0.3446999999999998 0.5609999999999998 # F407
+ -0.0602999999999999 0.3007000000000000 0.4291999999999999 # F408
+ 0.0535000000000000 0.3716000000000000 0.4800999999999999 # F409
+ 0.0144000000000001 0.2883999999999999 0.5510000000000000 # F410
+ 0.1127000000000001 0.2845000000000000 0.3153000000000000 # F411
+ 0.2021000000000001 0.2021000000000000 0.2978999999999999 # F412
+ 0.1401000000000001 0.8355999999999997 0.9598999999999998 # F413
+ 0.1406000000000000 0.7623999999999999 0.0140000000000000 # F414
+ 0.0943000000000002 0.8446999999999999 0.0610000000000001 # F415
+ -0.0602999999999999 0.8007000000000000 0.9291999999999998 # F416
+ 0.0535000000000000 0.8715999999999998 -0.0199000000000000 # F417
+ 0.0144000000000001 0.7883999999999998 0.0510000000000000 # F418
+ 0.1127000000000001 0.7845000000000000 0.8152999999999999 # F419
+ 0.2021000000000001 0.7020999999999999 0.7979000000000001 # F420
+ 0.6400999999999998 0.3355999999999999 0.9598999999999998 # F421
+ 0.6406000000000001 0.2623999999999999 0.0140000000000000 # F422
+ 0.5942999999999999 0.3446999999999999 0.0610000000000001 # F423
+ 0.4397000000000001 0.3006999999999999 0.9291999999999998 # F424
+ 0.5535000000000000 0.3715999999999999 -0.0199000000000000 # F425
+ 0.5143999999999999 0.2884000000000000 0.0510000000000000 # F426
+ 0.6127000000000000 0.2844999999999999 0.8152999999999999 # F427
+ 0.7020999999999998 0.2020999999999999 0.7979000000000001 # F428
+ 0.6400999999999998 0.8355999999999998 0.4599000000000001 # F429
+ 0.6406000000000001 0.7623999999999997 0.5140000000000000 # F430
+ 0.5942999999999999 0.8446999999999998 0.5609999999999998 # F431
+ 0.4397000000000001 0.8006999999999997 0.4291999999999999 # F432
+ 0.5535000000000000 0.8715999999999997 0.4800999999999999 # F433
+ 0.5144000000000001 0.7883999999999997 0.5510000000000000 # F434
+ 0.6127000000000000 0.7844999999999998 0.3153000000000000 # F435
+ 0.7020999999999998 0.7020999999999997 0.2978999999999999 # F436
+ -0.1400999999999999 0.6643999999999997 0.5400999999999999 # F437
+ 0.8594000000000001 0.7375999999999997 0.4860000000000000 # F438
+ -0.0943000000000000 0.6552999999999997 0.4389999999999999 # F439
+ 0.0603000000000001 0.6992999999999998 0.5708000000000000 # F440
+ 0.9464999999999997 0.6283999999999998 0.5199000000000000 # F441
+ -0.0143999999999999 0.7115999999999999 0.4489999999999999 # F442
+ 0.8872999999999998 0.7154999999999999 0.6847000000000000 # F443
+ 0.7979000000000001 0.7978999999999999 0.7020999999999998 # F444
+ -0.1401000000000001 0.1644000000000000 0.0401000000000000 # F445
+ 0.8594000000000001 0.2375999999999999 -0.0140000000000000 # F446
+ -0.0943000000000000 0.1552999999999999 0.9389999999999998 # F447
+ 0.0603000000000001 0.1992999999999999 0.0708000000000000 # F448
+ 0.9464999999999997 0.1284000000000001 0.0199000000000000 # F449
+ -0.0143999999999999 0.2116000000000000 0.9490000000000000 # F450
+ 0.8872999999999998 0.2155000000000001 0.1847000000000000 # F451
+ 0.7979000000000001 0.2978999999999999 0.2021000000000001 # F452
+ 0.3598999999999999 0.6643999999999998 0.0401000000000000 # F453
+ 0.3593999999999999 0.7375999999999998 -0.0140000000000000 # F454
+ 0.4057000000000000 0.6552999999999998 0.9389999999999998 # F455
+ 0.5603000000000001 0.6992999999999999 0.0708000000000000 # F456
+ 0.4464999999999999 0.6284000000000000 0.0199000000000000 # F457
+ 0.4856000000000001 0.7115999999999998 0.9490000000000000 # F458
+ 0.3873000000000000 0.7155000000000000 0.1847000000000000 # F459
+ 0.2978999999999999 0.7979000000000001 0.2021000000000001 # F460
+ 0.3598999999999999 0.1643999999999999 0.5400999999999999 # F461
+ 0.3593999999999999 0.2376000000000000 0.4860000000000000 # F462
+ 0.4057000000000000 0.1553000000000000 0.4389999999999999 # F463
+ 0.5602999999999998 0.1992999999999998 0.5708000000000000 # F464
+ 0.4464999999999999 0.1284000000000000 0.5199000000000000 # F465
+ 0.4855999999999999 0.2115999999999999 0.4489999999999999 # F466
+ 0.3873000000000000 0.2155000000000000 0.6847000000000000 # F467
+ 0.2978999999999999 0.2978999999999998 0.7020999999999998 # F468
+ 0.3355999999999999 0.0400999999999999 0.3598999999999999 # F469
+ 0.2624000000000001 -0.0140000000000001 0.3593999999999999 # F470
+ 0.3446999999999999 0.9389999999999997 0.4057000000000000 # F471
+ 0.3007000000000001 0.0707999999999999 0.5602999999999998 # F472
+ 0.3715999999999999 0.0199000000000000 0.4464999999999999 # F473
+ 0.2884000000000000 0.9489999999999998 0.4856000000000001 # F474
+ 0.2500000000000001 0.2500000000000000 0.4439000000000000 # F475
+ 0.2845000000000001 0.1846999999999999 0.3873000000000000 # F476
+ 0.3355999999999999 0.5400999999999999 -0.1400999999999999 # F477
+ 0.2624000000000001 0.4859999999999998 0.8594000000000001 # F478
+ 0.3446999999999999 0.4389999999999999 -0.0943000000000000 # F479
+ 0.3007000000000001 0.5708000000000000 0.0603000000000001 # F480
+ 0.3716000000000001 0.5198999999999998 0.9464999999999997 # F481
+ 0.2884000000000000 0.4489999999999999 -0.0143999999999999 # F482
+ 0.2500000000000001 0.7499999999999999 0.9438999999999997 # F483
+ 0.2845000000000001 0.6846999999999998 0.8872999999999998 # F484
+ 0.8355999999999999 0.0401000000000000 -0.1400999999999999 # F485
+ 0.7623999999999999 -0.0140000000000000 0.8594000000000001 # F486
+ 0.8446999999999999 0.9389999999999998 -0.0943000000000000 # F487
+ 0.8006999999999999 0.0708000000000000 0.0603000000000001 # F488
+ 0.8715999999999998 0.0198999999999998 0.9464999999999997 # F489
+ 0.7883999999999998 0.9490000000000000 -0.0143999999999999 # F490
+ 0.7499999999999998 0.2499999999999999 0.9438999999999997 # F491
+ 0.7844999999999999 0.1846999999999998 0.8872999999999998 # F492
+ 0.8355999999999999 0.5400999999999998 0.3598999999999999 # F493
+ 0.7623999999999999 0.4859999999999999 0.3593999999999999 # F494
+ 0.8446999999999999 0.4389999999999998 0.4057000000000000 # F495
+ 0.8006999999999999 0.5707999999999999 0.5602999999999998 # F496
+ 0.8715999999999998 0.5198999999999999 0.4464999999999999 # F497
+ 0.7883999999999998 0.4489999999999998 0.4856000000000001 # F498
+ 0.7499999999999998 0.7499999999999997 0.4439000000000000 # F499
+ 0.7844999999999999 0.6846999999999999 0.3873000000000000 # F500
+ 0.6643999999999998 0.9598999999999999 0.6400999999999998 # F501
+ 0.7375999999999998 0.0139999999999999 0.6406000000000001 # F502
+ 0.6552999999999998 0.0609999999999999 0.5942999999999999 # F503
+ 0.6992999999999999 0.9291999999999997 0.4396999999999999 # F504
+ 0.6284000000000000 -0.0199000000000000 0.5535000000000000 # F505
+ 0.7116000000000000 0.0509999999999999 0.5143999999999999 # F506
+ 0.7499999999999998 0.7499999999999997 0.5561000000000000 # F507
+ 0.7155000000000000 0.8152999999999998 0.6127000000000000 # F508
+ 0.6643999999999998 0.4599000000000000 0.1400999999999999 # F509
+ 0.7375999999999998 0.5140000000000000 0.1406000000000000 # F510
+ 0.6552999999999998 0.5609999999999998 0.0943000000000000 # F511
+ 0.6992999999999999 0.4291999999999999 -0.0603000000000001 # F512
+ 0.6284000000000000 0.4800999999999999 0.0535000000000000 # F513
+ 0.7116000000000000 0.5510000000000000 0.0143999999999999 # F514
+ 0.7499999999999998 0.2499999999999999 0.0561000000000001 # F515
+ 0.7155000000000000 0.3153000000000000 0.1127000000000001 # F516
+ 0.1644000000000000 0.9598999999999998 0.1400999999999999 # F517
+ 0.2375999999999999 0.0140000000000000 0.1406000000000000 # F518
+ 0.1553000000000000 0.0610000000000000 0.0943000000000000 # F519
+ 0.1992999999999999 0.9291999999999998 -0.0603000000000001 # F520
+ 0.1284000000000001 -0.0199000000000001 0.0535000000000000 # F521
+ 0.2116000000000000 0.0510000000000000 0.0143999999999999 # F522
+ 0.2500000000000001 0.7499999999999998 0.0561000000000001 # F523
+ 0.2155000000000001 0.8152999999999999 0.1127000000000001 # F524
+ 0.1644000000000000 0.4599000000000000 0.6400999999999998 # F525
+ 0.2376000000000001 0.5139999999999999 0.6406000000000001 # F526
+ 0.1553000000000000 0.5609999999999999 0.5942999999999999 # F527
+ 0.1992999999999999 0.4291999999999998 0.4396999999999999 # F528
+ 0.1284000000000001 0.4800999999999998 0.5535000000000000 # F529
+ 0.2116000000000001 0.5509999999999999 0.5143999999999999 # F530
+ 0.2500000000000001 0.2500000000000000 0.5561000000000000 # F531
+ 0.2155000000000001 0.3152999999999999 0.6127000000000000 # F532
+ -0.1400999999999999 0.0400999999999998 0.6643999999999998 # F533
+ 0.8594000000000001 -0.0140000000000002 0.7375999999999998 # F534
+ -0.0943000000000000 0.9390000000000001 0.6552999999999998 # F535
+ 0.0603000000000001 0.0707999999999999 0.6992999999999999 # F536
+ 0.9464999999999997 0.0198999999999999 0.6284000000000000 # F537
+ -0.0143999999999999 0.9490000000000000 0.7116000000000000 # F538
+ 0.8872999999999998 0.1846999999999999 0.7155000000000000 # F539
+ 0.7979000000000001 0.2020999999999999 0.7979000000000001 # F540
+ -0.1400999999999999 0.5400999999999999 0.1644000000000000 # F541
+ 0.8594000000000001 0.4859999999999999 0.2375999999999999 # F542
+ -0.0943000000000000 0.4389999999999998 0.1553000000000000 # F543
+ 0.0603000000000001 0.5708000000000000 0.1992999999999999 # F544
+ 0.9464999999999997 0.5199000000000000 0.1284000000000001 # F545
+ -0.0143999999999999 0.4489999999999998 0.2116000000000000 # F546
+ 0.8872999999999998 0.6847000000000000 0.2155000000000001 # F547
+ 0.7979000000000001 0.7020999999999997 0.2978999999999999 # F548
+ 0.3598999999999999 0.0400999999999999 0.1644000000000000 # F549
+ 0.3593999999999999 -0.0140000000000001 0.2375999999999999 # F550
+ 0.4057000000000000 0.9389999999999998 0.1553000000000000 # F551
+ 0.5602999999999998 0.0708000000000000 0.1992999999999999 # F552
+ 0.4464999999999999 0.0199000000000000 0.1284000000000001 # F553
+ 0.4856000000000001 0.9490000000000000 0.2116000000000000 # F554
+ 0.3873000000000000 0.1846999999999999 0.2155000000000001 # F555
+ 0.2978999999999999 0.2021000000000000 0.2978999999999999 # F556
+ 0.3599000000000001 0.5400999999999998 0.6643999999999998 # F557
+ 0.3593999999999999 0.4859999999999998 0.7375999999999998 # F558
+ 0.4057000000000000 0.4389999999999998 0.6552999999999998 # F559
+ 0.5603000000000001 0.5707999999999999 0.6992999999999999 # F560
+ 0.4464999999999999 0.5198999999999999 0.6284000000000000 # F561
+ 0.4856000000000001 0.4489999999999997 0.7116000000000000 # F562
+ 0.3873000000000002 0.6846999999999999 0.7155000000000000 # F563
+ 0.2978999999999999 0.7020999999999999 0.7979000000000001 # F564
+ 0.1400999999999999 0.9598999999999996 0.3355999999999999 # F565
+ 0.1406000000000000 0.0140000000000000 0.2623999999999999 # F566
+ 0.0943000000000000 0.0610000000000000 0.3446999999999999 # F567
+ -0.0602999999999999 0.9291999999999997 0.3007000000000001 # F568
+ 0.0535000000000000 -0.0199000000000001 0.3715999999999999 # F569
+ 0.0143999999999999 0.0510000000000000 0.2884000000000000 # F570
+ 0.1127000000000001 0.8152999999999998 0.2844999999999999 # F571
+ 0.2021000000000001 0.7979000000000001 0.2021000000000001 # F572
+ 0.1400999999999999 0.4598999999999999 0.8355999999999999 # F573
+ 0.1406000000000000 0.5139999999999999 0.7623999999999999 # F574
+ 0.0943000000000002 0.5609999999999998 0.8446999999999999 # F575
+ -0.0602999999999999 0.4291999999999997 0.8006999999999999 # F576
+ 0.0535000000000000 0.4800999999999997 0.8715999999999998 # F577
+ 0.0144000000000001 0.5509999999999999 0.7883999999999998 # F578
+ 0.0561000000000001 0.2499999999999999 0.7499999999999998 # F579
+ 0.1127000000000001 0.3152999999999998 0.7844999999999999 # F580
+ 0.2021000000000001 0.2978999999999998 0.7020999999999998 # F581
+ 0.6400999999999998 0.9598999999999998 0.8355999999999999 # F582
+ 0.6406000000000001 0.0139999999999998 0.7623999999999999 # F583
+ 0.5942999999999999 0.0609999999999999 0.8446999999999999 # F584
+ 0.4397000000000001 0.9291999999999999 0.8006999999999999 # F585
+ 0.5535000000000000 -0.0199000000000000 0.8715999999999998 # F586
+ 0.5144000000000001 0.0509999999999999 0.7883999999999998 # F587
+ 0.5561000000000003 0.7500000000000000 0.7499999999999998 # F588
+ 0.6127000000000000 0.8152999999999999 0.7844999999999999 # F589
+ 0.7020999999999998 0.7978999999999999 0.7020999999999998 # F590
+ 0.6400999999999998 0.4599000000000000 0.3355999999999999 # F591
+ 0.6406000000000001 0.5140000000000000 0.2623999999999999 # F592
+ 0.5942999999999999 0.5609999999999999 0.3446999999999999 # F593
+ 0.4396999999999999 0.4291999999999999 0.3007000000000001 # F594
+ 0.5535000000000000 0.4800999999999999 0.3715999999999999 # F595
+ 0.5143999999999999 0.5509999999999999 0.2884000000000000 # F596
+ 0.5561000000000000 0.2500000000000001 0.2499999999999999 # F597
+ 0.6127000000000000 0.3152999999999999 0.2844999999999999 # F598
+ 0.7020999999999998 0.2978999999999999 0.2021000000000001 # F599
+ 0.6643999999999998 0.0400999999999998 0.6400999999999998 # F600
+ 0.7375999999999998 -0.0140000000000001 0.6406000000000001 # F601
+ 0.6552999999999998 0.9389999999999997 0.5942999999999999 # F602
+ 0.6992999999999999 0.0707999999999999 0.4396999999999999 # F603
+ 0.6284000000000000 0.0198999999999999 0.5535000000000000 # F604
+ 0.7116000000000000 0.9489999999999998 0.5143999999999999 # F605
+ 0.7499999999999998 0.2500000000000000 0.5561000000000000 # F606
+ 0.7155000000000000 0.1846999999999999 0.6127000000000000 # F607
+ 0.6643999999999998 0.5400999999999999 0.1400999999999999 # F608
+ 0.7375999999999998 0.4859999999999999 0.1406000000000000 # F609
+ 0.6552999999999998 0.4389999999999999 0.0943000000000000 # F610
+ 0.6992999999999999 0.5708000000000000 -0.0603000000000001 # F611
+ 0.6284000000000000 0.5199000000000000 0.0535000000000000 # F612
+ 0.7116000000000000 0.4489999999999999 0.0143999999999999 # F613
+ 0.7499999999999998 0.7499999999999998 0.0561000000000001 # F614
+ 0.7155000000000000 0.6847000000000000 0.1127000000000001 # F615
+ 0.7979000000000001 0.7020999999999998 0.2021000000000001 # F616
+ 0.1644000000000000 0.0400999999999999 0.1400999999999999 # F617
+ 0.2375999999999999 -0.0140000000000000 0.1406000000000000 # F618
+ 0.1553000000000000 0.9389999999999998 0.0943000000000000 # F619
+ 0.1992999999999999 0.0708000000000001 -0.0603000000000001 # F620
+ 0.1284000000000001 0.0199000000000000 0.0535000000000000 # F621
+ 0.2116000000000001 0.9490000000000000 0.0143999999999999 # F622
+ 0.2499999999999999 0.2499999999999999 0.0561000000000001 # F623
+ 0.2155000000000001 0.1847000000000000 0.1127000000000001 # F624
+ 0.1644000000000000 0.5400999999999998 0.6400999999999998 # F625
+ 0.2376000000000001 0.4859999999999999 0.6406000000000001 # F626
+ 0.1553000000000000 0.4389999999999998 0.5942999999999999 # F627
+ 0.1992999999999999 0.5707999999999999 0.4396999999999999 # F628
+ 0.1284000000000001 0.5198999999999999 0.5535000000000000 # F629
+ 0.2116000000000001 0.4489999999999998 0.5143999999999999 # F630
+ 0.2500000000000001 0.7499999999999997 0.5561000000000000 # F631
+ 0.2155000000000001 0.6846999999999999 0.6127000000000000 # F632
+ 0.3355999999999999 0.9598999999999996 0.3598999999999999 # F633
+ 0.2624000000000001 0.0139999999999999 0.3593999999999999 # F634
+ 0.3446999999999999 0.0610000000000000 0.4057000000000000 # F635
+ 0.3007000000000001 0.9291999999999997 0.5602999999999998 # F636
+ 0.3715999999999999 -0.0199000000000001 0.4464999999999999 # F637
+ 0.2884000000000000 0.0509999999999999 0.4856000000000001 # F638
+ 0.2500000000000001 0.7499999999999997 0.4439000000000000 # F639
+ 0.2845000000000001 0.8152999999999998 0.3873000000000000 # F640
+ 0.3355999999999999 0.4599000000000001 -0.1400999999999999 # F641
+ 0.2624000000000001 0.5139999999999998 0.8594000000000001 # F642
+ 0.3446999999999999 0.5609999999999998 -0.0943000000000000 # F643
+ 0.3007000000000001 0.4291999999999999 0.0603000000000001 # F644
+ 0.3716000000000001 0.4800999999999997 0.9464999999999997 # F645
+ 0.2884000000000000 0.5510000000000000 -0.0143999999999999 # F646
+ 0.2500000000000001 0.2499999999999999 0.9438999999999997 # F647
+ 0.2845000000000001 0.3153000000000000 0.8872999999999998 # F648
+ 0.8355999999999999 0.9598999999999998 -0.1400999999999999 # F649
+ 0.7623999999999999 0.0139999999999998 0.8594000000000001 # F650
+ 0.8446999999999999 0.0610000000000001 -0.0943000000000000 # F651
+ 0.8006999999999999 0.9291999999999998 0.0603000000000001 # F652
+ 0.8715999999999998 -0.0199000000000000 0.9464999999999997 # F653
+ 0.7883999999999998 0.0510000000000000 -0.0143999999999999 # F654
+ 0.7499999999999998 0.7499999999999999 0.9438999999999997 # F655
+ 0.7844999999999999 0.8152999999999998 0.8872999999999998 # F656
+ 0.8355999999999999 0.4599000000000000 0.3598999999999999 # F657
+ 0.7623999999999999 0.5139999999999999 0.3593999999999999 # F658
+ 0.8446999999999999 0.5609999999999999 0.4057000000000000 # F659
+ 0.8006999999999999 0.4291999999999998 0.5602999999999998 # F660
+ 0.8715999999999998 0.4800999999999998 0.4464999999999999 # F661
+ 0.7883999999999998 0.5509999999999999 0.4856000000000001 # F662
+ 0.7499999999999998 0.2500000000000000 0.4439000000000000 # F663
+ 0.7844999999999999 0.3152999999999999 0.3873000000000000 # F664
+ 0.3355999999999999 0.1400999999999999 0.0401000000000000 # F665
+ 0.2623999999999999 0.1406000000000000 -0.0140000000000000 # F666
+ 0.3446999999999999 0.0943000000000000 0.9389999999999998 # F667
+ 0.3007000000000001 -0.0603000000000001 0.0708000000000000 # F668
+ 0.3715999999999999 0.0535000000000000 0.0199000000000000 # F669
+ 0.2884000000000000 0.0143999999999999 0.9490000000000000 # F670
+ 0.2844999999999999 0.1127000000000000 0.1847000000000000 # F671
+ 0.3355999999999999 0.6400999999999997 0.5400999999999999 # F672
+ 0.2624000000000001 0.6405999999999999 0.4860000000000000 # F673
+ 0.3446999999999999 0.5942999999999998 0.4389999999999999 # F674
+ 0.3007000000000001 0.4397000000000000 0.5708000000000000 # F675
+ 0.3715999999999999 0.5534999999999999 0.5199000000000000 # F676
+ 0.2884000000000000 0.5144000000000000 0.4489999999999999 # F677
+ 0.2845000000000001 0.6126999999999999 0.6847000000000000 # F678
+ 0.8355999999999999 0.1400999999999998 0.5400999999999999 # F679
+ 0.7623999999999999 0.1405999999999999 0.4860000000000000 # F680
+ 0.8446999999999999 0.0943000000000001 0.4389999999999999 # F681
+ 0.8006999999999999 -0.0603000000000000 0.5708000000000000 # F682
+ 0.8715999999999998 0.0534999999999999 0.5199000000000000 # F683
+ 0.7883999999999998 0.0144000000000000 0.4489999999999999 # F684
+ 0.7844999999999999 0.1126999999999999 0.6847000000000000 # F685
+ 0.8355999999999999 0.6400999999999998 0.0401000000000000 # F686
+ 0.7623999999999999 0.6406000000000001 -0.0140000000000000 # F687
+ 0.8446999999999999 0.5942999999999997 0.9389999999999998 # F688
+ 0.8006999999999999 0.4396999999999999 0.0708000000000000 # F689
+ 0.8715999999999998 0.5535000000000000 0.0199000000000000 # F690
+ 0.7883999999999998 0.5143999999999999 0.9490000000000000 # F691
+ 0.7844999999999999 0.6127000000000000 0.1847000000000000 # F692
+ 0.6643999999999998 -0.1401000000000001 0.9598999999999998 # F693
+ 0.7375999999999998 0.8594000000000001 0.0140000000000000 # F694
+ 0.6552999999999998 -0.0943000000000000 0.0610000000000001 # F695
+ 0.6992999999999999 0.0602999999999999 0.9291999999999998 # F696
+ 0.6284000000000000 0.9464999999999997 -0.0199000000000000 # F697
+ 0.7116000000000000 -0.0143999999999999 0.0510000000000000 # F698
+ 0.7155000000000000 0.8872999999999995 0.8152999999999999 # F699
+ 0.6643999999999998 0.3598999999999999 0.4599000000000001 # F700
+ 0.7375999999999998 0.3593999999999998 0.5140000000000000 # F701
+ 0.6552999999999998 0.4056999999999999 0.5609999999999998 # F702
+ 0.6992999999999999 0.5603000000000000 0.4291999999999999 # F703
+ 0.6284000000000000 0.4464999999999998 0.4800999999999999 # F704
+ 0.7116000000000000 0.4856000000000000 0.5510000000000000 # F705
+ 0.7155000000000000 0.3872999999999999 0.3153000000000000 # F706
+ 0.1644000000000000 -0.1401000000000000 0.4599000000000001 # F707
+ 0.2376000000000001 0.8593999999999999 0.5140000000000000 # F708
+ 0.1553000000000000 -0.0943000000000001 0.5609999999999998 # F709
+ 0.1992999999999999 0.0603000000000000 0.4291999999999999 # F710
+ 0.1284000000000001 0.9464999999999996 0.4800999999999999 # F711
+ 0.2116000000000000 -0.0144000000000000 0.5510000000000000 # F712
+ 0.2155000000000001 0.8872999999999996 0.3153000000000000 # F713
+ 0.1644000000000000 0.3598999999999998 0.9598999999999998 # F714
+ 0.2376000000000001 0.3593999999999999 0.0140000000000000 # F715
+ 0.1553000000000000 0.4057000000000000 0.0610000000000001 # F716
+ 0.1993000000000001 0.5602999999999999 0.9291999999999998 # F717
+ 0.1284000000000001 0.4464999999999999 -0.0199000000000000 # F718
+ 0.2116000000000000 0.4856000000000001 0.0510000000000000 # F719
+ 0.2155000000000001 0.3872999999999998 0.8152999999999999 # F720
+ 0.0401000000000000 0.3355999999999998 0.1400999999999999 # F721
+ -0.0140000000000000 0.2623999999999999 0.1406000000000000 # F722
+ 0.9389999999999998 0.3446999999999999 0.0943000000000000 # F723
+ 0.0708000000000000 0.3007000000000001 -0.0603000000000001 # F724
+ 0.0199000000000000 0.3715999999999999 0.0535000000000000 # F725
+ 0.9490000000000000 0.2884000000000000 0.0143999999999999 # F726
+ 0.1847000000000000 0.2844999999999999 0.1127000000000001 # F727
+ 0.0401000000000002 0.8355999999999998 0.6400999999999998 # F728
+ -0.0140000000000000 0.7623999999999999 0.6406000000000001 # F729
+ 0.9389999999999998 0.8446999999999998 0.5942999999999999 # F730
+ 0.0708000000000000 0.8006999999999997 0.4396999999999999 # F731
+ 0.0199000000000000 0.8715999999999997 0.5535000000000000 # F732
+ 0.9490000000000000 0.7883999999999997 0.5143999999999999 # F733
+ 0.1847000000000000 0.7844999999999998 0.6127000000000000 # F734
+ 0.5400999999999999 0.3355999999999998 0.6400999999999998 # F735
+ 0.4860000000000000 0.2624000000000000 0.6406000000000001 # F736
+ 0.4389999999999999 0.3446999999999998 0.5942999999999999 # F737
+ 0.5708000000000000 0.3007000000000000 0.4396999999999999 # F738
+ 0.5199000000000000 0.3716000000000000 0.5535000000000000 # F739
+ 0.4489999999999999 0.2883999999999999 0.5143999999999999 # F740
+ 0.6847000000000000 0.2845000000000000 0.6127000000000000 # F741
+ 0.5400999999999999 0.8355999999999999 0.1400999999999999 # F742
+ 0.4860000000000000 0.7623999999999999 0.1406000000000000 # F743
+ 0.4389999999999999 0.8446999999999999 0.0943000000000000 # F744
+ 0.5708000000000000 0.8006999999999999 -0.0603000000000001 # F745
+ 0.5199000000000000 0.8715999999999998 0.0535000000000000 # F746
+ 0.4489999999999999 0.7883999999999998 0.0143999999999999 # F747
+ 0.6847000000000000 0.7844999999999999 0.1127000000000001 # F748
+ 0.9598999999999998 0.6643999999999998 -0.1400999999999999 # F749
+ 0.0140000000000000 0.7375999999999997 0.8594000000000001 # F750
+ 0.0610000000000001 0.6552999999999998 -0.0943000000000000 # F751
+ 0.9291999999999998 0.6992999999999999 0.0603000000000001 # F752
+ -0.0198999999999998 0.6283999999999997 0.9464999999999997 # F753
+ 0.0510000000000000 0.7116000000000000 -0.0143999999999999 # F754
+ 0.8152999999999999 0.7154999999999998 0.8872999999999998 # F755
+ 0.9598999999999998 0.1644000000000000 0.3598999999999999 # F756
+ 0.0140000000000000 0.2376000000000000 0.3593999999999999 # F757
+ 0.0610000000000001 0.1553000000000000 0.4057000000000000 # F758
+ 0.9291999999999998 0.1992999999999998 0.5602999999999998 # F759
+ -0.0199000000000000 0.1284000000000000 0.4464999999999999 # F760
+ 0.0510000000000000 0.2116000000000000 0.4856000000000001 # F761
+ 0.8152999999999999 0.2155000000000000 0.3873000000000000 # F762
+ 0.4599000000000001 0.6643999999999997 0.3598999999999999 # F763
+ 0.5140000000000000 0.7375999999999997 0.3593999999999999 # F764
+ 0.5610000000000001 0.6552999999999997 0.4057000000000000 # F765
+ 0.4291999999999999 0.6992999999999998 0.5602999999999998 # F766
+ 0.4800999999999999 0.6283999999999998 0.4464999999999999 # F767
+ 0.5510000000000000 0.7115999999999999 0.4856000000000001 # F768
+ 0.3153000000000000 0.7154999999999999 0.3873000000000000 # F769
+ 0.4599000000000001 0.1644000000000001 -0.1400999999999999 # F770
+ 0.5140000000000000 0.2375999999999999 0.8594000000000001 # F771
+ 0.5609999999999998 0.1553000000000001 -0.0943000000000000 # F772
+ 0.4291999999999999 0.1992999999999999 0.0603000000000001 # F773
+ 0.4800999999999999 0.1283999999999999 0.9464999999999997 # F774
+ 0.5510000000000000 0.2116000000000000 -0.0143999999999999 # F775
+ 0.3153000000000000 0.2154999999999999 0.8872999999999998 # F776
+ 0.9598999999999998 0.6643999999999998 0.1401000000000001 # F777
+ 0.0140000000000000 0.7375999999999998 0.1406000000000000 # F778
+ 0.0610000000000001 0.6552999999999998 0.0943000000000000 # F779
+ 0.9291999999999998 0.6992999999999999 -0.0603000000000001 # F780
+ -0.0199000000000000 0.6284000000000000 0.0535000000000000 # F781
+ 0.0510000000000000 0.7116000000000000 0.0144000000000001 # F782
+ 0.8152999999999999 0.7155000000000000 0.1127000000000001 # F783
+ 0.9598999999999998 0.1643999999999999 0.6400999999999998 # F784
+ 0.0140000000000000 0.2376000000000000 0.6406000000000001 # F785
+ 0.0610000000000001 0.1552999999999999 0.5942999999999999 # F786
+ 0.9291999999999998 0.1992999999999999 0.4396999999999999 # F787
+ -0.0199000000000000 0.1284000000000000 0.5535000000000000 # F788
+ 0.0510000000000000 0.2116000000000000 0.5143999999999999 # F789
+ 0.8152999999999999 0.2155000000000000 0.6127000000000000 # F790
+ 0.4599000000000001 0.6643999999999999 0.6400999999999998 # F791
+ 0.5140000000000000 0.7375999999999998 0.6406000000000001 # F792
+ 0.5610000000000001 0.6552999999999997 0.5942999999999999 # F793
+ 0.4291999999999999 0.6992999999999998 0.4396999999999999 # F794
+ 0.4800999999999999 0.6283999999999998 0.5535000000000000 # F795
+ 0.5510000000000000 0.7115999999999999 0.5143999999999999 # F796
+ 0.3153000000000000 0.7154999999999999 0.6127000000000000 # F797
+ 0.4599000000000001 0.1644000000000000 0.1401000000000001 # F798
+ 0.5140000000000000 0.2375999999999999 0.1406000000000000 # F799
+ 0.5609999999999998 0.1553000000000000 0.0943000000000000 # F800
+ 0.4291999999999999 0.1992999999999999 -0.0603000000000001 # F801
+ 0.4800999999999999 0.1284000000000001 0.0535000000000000 # F802
+ 0.5510000000000000 0.2116000000000000 0.0144000000000001 # F803
+ 0.3153000000000000 0.2155000000000001 0.1127000000000001 # F804
+ 0.0401000000000000 0.3356000000000000 -0.1401000000000001 # F805
+ -0.0140000000000000 0.2623999999999999 0.8594000000000001 # F806
+ 0.9389999999999998 0.3446999999999999 -0.0943000000000000 # F807
+ 0.0708000000000000 0.3007000000000001 0.0603000000000001 # F808
+ 0.0199000000000000 0.3715999999999999 0.9464999999999997 # F809
+ 0.9490000000000000 0.2884000000000000 -0.0144000000000001 # F810
+ 0.1847000000000000 0.2844999999999999 0.8872999999999998 # F811
+ 0.0401000000000000 0.8355999999999998 0.3598999999999999 # F812
+ -0.0140000000000000 0.7623999999999997 0.3593999999999999 # F813
+ 0.9389999999999998 0.8446999999999998 0.4057000000000000 # F814
+ 0.0708000000000000 0.8006999999999997 0.5602999999999998 # F815
+ 0.0199000000000000 0.8715999999999997 0.4464999999999999 # F816
+ 0.9490000000000000 0.7883999999999997 0.4855999999999999 # F817
+ 0.1847000000000000 0.7844999999999998 0.3873000000000000 # F818
+ 0.5400999999999999 0.3355999999999998 0.3598999999999999 # F819
+ 0.4860000000000000 0.2624000000000000 0.3593999999999999 # F820
+ 0.4389999999999999 0.3446999999999998 0.4057000000000000 # F821
+ 0.5708000000000000 0.3007000000000000 0.5602999999999998 # F822
+ 0.5199000000000000 0.3716000000000000 0.4464999999999999 # F823
+ 0.4489999999999999 0.2883999999999999 0.4855999999999999 # F824
+ 0.6847000000000000 0.2845000000000000 0.3873000000000000 # F825
+ 0.5400999999999999 0.8355999999999999 -0.1401000000000001 # F826
+ 0.4860000000000002 0.7623999999999997 0.8594000000000001 # F827
+ 0.4389999999999999 0.8446999999999999 -0.0943000000000000 # F828
+ 0.5708000000000000 0.8006999999999999 0.0603000000000001 # F829
+ 0.5199000000000000 0.8715999999999999 0.9464999999999997 # F830
+ 0.4489999999999999 0.7883999999999998 -0.0144000000000001 # F831
+ 0.6847000000000000 0.7845000000000000 0.8872999999999998 # F832
+ 0.3355999999999999 -0.1401000000000001 0.9598999999999998 # F833
+ 0.2624000000000001 0.8594000000000001 0.0140000000000000 # F834
+ 0.3446999999999999 -0.0943000000000000 0.0610000000000001 # F835
+ 0.3007000000000001 0.0602999999999999 0.9291999999999998 # F836
+ 0.3716000000000001 0.9464999999999997 -0.0199000000000000 # F837
+ 0.2884000000000000 -0.0144000000000001 0.0510000000000000 # F838
+ 0.2845000000000001 0.8872999999999995 0.8152999999999999 # F839
+ 0.3355999999999999 0.3598999999999998 0.4599000000000001 # F840
+ 0.2624000000000001 0.3593999999999998 0.5140000000000000 # F841
+ 0.3446999999999999 0.4056999999999999 0.5609999999999998 # F842
+ 0.3007000000000001 0.5603000000000000 0.4291999999999999 # F843
+ 0.3715999999999999 0.4464999999999998 0.4800999999999999 # F844
+ 0.2884000000000000 0.4856000000000000 0.5510000000000000 # F845
+ 0.2845000000000001 0.3872999999999999 0.3153000000000000 # F846
+ 0.8355999999999999 -0.1401000000000002 0.4599000000000001 # F847
+ 0.7623999999999999 0.8593999999999999 0.5140000000000000 # F848
+ 0.8446999999999999 -0.0943000000000001 0.5609999999999998 # F849
+ 0.8006999999999999 0.0603000000000000 0.4291999999999999 # F850
+ 0.8715999999999998 0.9464999999999996 0.4800999999999999 # F851
+ 0.7883999999999998 -0.0144000000000002 0.5510000000000000 # F852
+ 0.7844999999999999 0.8872999999999996 0.3153000000000000 # F853
+ 0.8355999999999999 0.3598999999999998 0.9598999999999998 # F854
+ 0.7623999999999999 0.3593999999999999 0.0140000000000000 # F855
+ 0.8446999999999999 0.4057000000000000 0.0610000000000001 # F856
+ 0.8006999999999999 0.5602999999999999 0.9291999999999998 # F857
+ 0.8715999999999998 0.4464999999999999 -0.0199000000000000 # F858
+ 0.7883999999999998 0.4855999999999999 0.0510000000000000 # F859
+ 0.7844999999999999 0.3872999999999998 0.8152999999999999 # F860
+ 0.6643999999999998 0.1401000000000001 0.0401000000000000 # F861
+ 0.7375999999999998 0.1406000000000000 -0.0140000000000000 # F862
+ 0.6552999999999998 0.0943000000000000 0.9389999999999998 # F863
+ 0.6992999999999999 -0.0603000000000001 0.0708000000000000 # F864
+ 0.6284000000000000 0.0535000000000000 0.0199000000000000 # F865
+ 0.7116000000000000 0.0143999999999999 0.9490000000000000 # F866
+ 0.7155000000000000 0.1127000000000000 0.1847000000000000 # F867
+ 0.6643999999999998 0.6400999999999997 0.5400999999999999 # F868
+ 0.7375999999999998 0.6405999999999999 0.4860000000000000 # F869
+ 0.6552999999999998 0.5942999999999998 0.4389999999999999 # F870
+ 0.6992999999999999 0.4397000000000000 0.5708000000000000 # F871
+ 0.6284000000000000 0.5534999999999999 0.5199000000000000 # F872
+ 0.7116000000000000 0.5144000000000000 0.4489999999999999 # F873
+ 0.7155000000000000 0.6126999999999999 0.6847000000000000 # F874
+ 0.1644000000000000 0.1401000000000000 0.5400999999999999 # F875
+ 0.2376000000000001 0.1405999999999999 0.4860000000000000 # F876
+ 0.1553000000000000 0.0943000000000001 0.4389999999999999 # F877
+ 0.1992999999999999 -0.0603000000000000 0.5708000000000000 # F878
+ 0.1284000000000001 0.0534999999999999 0.5199000000000000 # F879
+ 0.2116000000000000 0.0144000000000000 0.4489999999999999 # F880
+ 0.2155000000000001 0.1126999999999999 0.6847000000000000 # F881
+ 0.1644000000000000 0.6400999999999998 0.0401000000000000 # F882
+ 0.2376000000000001 0.6406000000000001 -0.0140000000000000 # F883
+ 0.1553000000000000 0.5942999999999997 0.9389999999999998 # F884
+ 0.1992999999999999 0.4396999999999999 0.0708000000000000 # F885
+ 0.1284000000000001 0.5535000000000000 0.0199000000000000 # F886
+ 0.2116000000000001 0.5143999999999999 0.9490000000000000 # F887
+ 0.2155000000000001 0.6127000000000000 0.1847000000000000 # F888
+ 0.9598999999999998 0.3356000000000000 -0.1401000000000001 # F889
+ 0.0140000000000000 0.2623999999999999 0.8594000000000001 # F890
+ 0.0610000000000001 0.3446999999999999 -0.0943000000000000 # F891
+ 0.9291999999999998 0.3007000000000001 0.0603000000000001 # F892
+ -0.0198999999999998 0.3715999999999999 0.9464999999999997 # F893
+ 0.0510000000000000 0.2884000000000000 -0.0144000000000001 # F894
+ 0.8152999999999999 0.2844999999999999 0.8872999999999998 # F895
+ 0.9598999999999998 0.8355999999999998 0.3598999999999999 # F896
+ 0.0140000000000000 0.7623999999999997 0.3593999999999999 # F897
+ 0.0610000000000001 0.8446999999999998 0.4057000000000000 # F898
+ 0.9291999999999998 0.8006999999999997 0.5602999999999998 # F899
+ -0.0198999999999998 0.8715999999999997 0.4464999999999999 # F900
+ 0.0510000000000000 0.7883999999999997 0.4855999999999999 # F901
+ 0.8152999999999999 0.7844999999999998 0.3873000000000000 # F902
+ 0.4599000000000001 0.3355999999999998 0.3598999999999999 # F903
+ 0.5140000000000000 0.2624000000000000 0.3593999999999999 # F904
+ 0.5609999999999998 0.3446999999999998 0.4057000000000000 # F905
+ 0.4291999999999999 0.3007000000000000 0.5602999999999998 # F906
+ 0.4800999999999999 0.3716000000000000 0.4464999999999999 # F907
+ 0.5510000000000000 0.2883999999999999 0.4855999999999999 # F908
+ 0.3153000000000000 0.2845000000000000 0.3873000000000000 # F909
+ 0.4599000000000001 0.8355999999999999 -0.1401000000000001 # F910
+ 0.5140000000000000 0.7623999999999997 0.8594000000000001 # F911
+ 0.5610000000000001 0.8446999999999999 -0.0943000000000000 # F912
+ 0.4291999999999999 0.8006999999999999 0.0603000000000001 # F913
+ 0.4801000000000001 0.8715999999999999 0.9464999999999997 # F914
+ 0.5510000000000000 0.7883999999999998 -0.0144000000000001 # F915
+ 0.3153000000000002 0.7845000000000000 0.8872999999999998 # F916
+ 0.0401000000000000 0.6643999999999998 0.1401000000000001 # F917
+ -0.0140000000000000 0.7375999999999998 0.1406000000000000 # F918
+ 0.9389999999999998 0.6552999999999998 0.0943000000000000 # F919
+ 0.0708000000000000 0.6992999999999999 -0.0603000000000001 # F920
+ 0.0199000000000000 0.6284000000000000 0.0535000000000000 # F921
+ 0.9490000000000000 0.7116000000000000 0.0144000000000001 # F922
+ 0.1847000000000000 0.7155000000000000 0.1127000000000001 # F923
+ 0.0401000000000000 0.1643999999999999 0.6400999999999998 # F924
+ -0.0140000000000000 0.2376000000000000 0.6406000000000001 # F925
+ 0.9389999999999998 0.1552999999999999 0.5942999999999999 # F926
+ 0.0708000000000000 0.1992999999999999 0.4396999999999999 # F927
+ 0.0199000000000000 0.1284000000000000 0.5535000000000000 # F928
+ 0.9490000000000000 0.2116000000000000 0.5143999999999999 # F929
+ 0.1847000000000000 0.2155000000000000 0.6127000000000000 # F930
+ 0.5401000000000001 0.6643999999999999 0.6400999999999998 # F931
+ 0.4860000000000002 0.7375999999999998 0.6406000000000001 # F932
+ 0.4390000000000001 0.6552999999999997 0.5942999999999999 # F933
+ 0.5708000000000000 0.6992999999999998 0.4396999999999999 # F934
+ 0.5199000000000000 0.6283999999999998 0.5535000000000000 # F935
+ 0.4489999999999999 0.7115999999999999 0.5143999999999999 # F936
+ 0.6847000000000000 0.7154999999999999 0.6127000000000000 # F937
+ 0.5400999999999999 0.1644000000000000 0.1401000000000001 # F938
+ 0.4860000000000000 0.2375999999999999 0.1406000000000000 # F939
+ 0.4389999999999999 0.1553000000000000 0.0943000000000000 # F940
+ 0.5708000000000000 0.1992999999999999 -0.0603000000000001 # F941
+ 0.5199000000000000 0.1284000000000001 0.0535000000000000 # F942
+ 0.4489999999999999 0.2116000000000000 0.0144000000000001 # F943
+ 0.6847000000000000 0.2155000000000001 0.1127000000000001 # F944
+ 0.6643999999999998 -0.1400999999999999 0.0401000000000000 # F945
+ 0.7375999999999998 0.8594000000000001 -0.0140000000000000 # F946
+ 0.6552999999999998 -0.0943000000000002 0.9389999999999998 # F947
+ 0.6992999999999999 0.0603000000000001 0.0708000000000000 # F948
+ 0.6284000000000000 0.9464999999999997 0.0199000000000000 # F949
+ 0.7116000000000000 -0.0144000000000001 0.9490000000000000 # F950
+ 0.7155000000000000 0.8872999999999998 0.1847000000000000 # F951
+ 0.6643999999999998 0.3598999999999999 0.5400999999999999 # F952
+ 0.7375999999999998 0.3593999999999998 0.4860000000000000 # F953
+ 0.6552999999999998 0.4056999999999999 0.4389999999999999 # F954
+ 0.6992999999999999 0.5603000000000000 0.5708000000000000 # F955
+ 0.6284000000000000 0.4464999999999998 0.5199000000000000 # F956
+ 0.7116000000000000 0.4856000000000000 0.4489999999999999 # F957
+ 0.7155000000000000 0.3872999999999998 0.6847000000000000 # F958
+ 0.1644000000000000 -0.1401000000000000 0.5400999999999999 # F959
+ 0.2376000000000001 0.8593999999999999 0.4860000000000000 # F960
+ 0.1553000000000000 -0.0943000000000001 0.4389999999999999 # F961
+ 0.1992999999999999 0.0603000000000000 0.5708000000000000 # F962
+ 0.1284000000000001 0.9464999999999996 0.5199000000000000 # F963
+ 0.2116000000000000 -0.0144000000000000 0.4489999999999999 # F964
+ 0.2155000000000001 0.8872999999999996 0.6847000000000000 # F965
+ 0.1644000000000000 0.3598999999999999 0.0401000000000000 # F966
+ 0.2376000000000001 0.3593999999999999 -0.0140000000000000 # F967
+ 0.1553000000000000 0.4056999999999998 0.9389999999999998 # F968
+ 0.1992999999999999 0.5602999999999998 0.0708000000000000 # F969
+ 0.1284000000000001 0.4464999999999999 0.0199000000000000 # F970
+ 0.2116000000000001 0.4855999999999999 0.9490000000000000 # F971
+ 0.2155000000000001 0.3872999999999999 0.1847000000000000 # F972
+ 0.3355999999999999 0.1400999999999997 0.9598999999999998 # F973
+ 0.2623999999999999 0.1406000000000000 0.0140000000000000 # F974
+ 0.3446999999999999 0.0943000000000000 0.0610000000000001 # F975
+ 0.3007000000000001 -0.0603000000000001 0.9291999999999998 # F976
+ 0.3715999999999999 0.0535000000000000 -0.0199000000000000 # F977
+ 0.2884000000000000 0.0143999999999999 0.0510000000000000 # F978
+ 0.2845000000000001 0.1126999999999999 0.8152999999999999 # F979
+ 0.3355999999999999 0.6400999999999997 0.4599000000000001 # F980
+ 0.2624000000000001 0.6405999999999999 0.5140000000000000 # F981
+ 0.3446999999999999 0.5942999999999998 0.5609999999999998 # F982
+ 0.3007000000000001 0.4397000000000000 0.4291999999999999 # F983
+ 0.3715999999999999 0.5534999999999999 0.4800999999999999 # F984
+ 0.2884000000000000 0.5144000000000000 0.5510000000000000 # F985
+ 0.2845000000000001 0.6126999999999999 0.3153000000000000 # F986
+ 0.8355999999999999 0.1400999999999998 0.4599000000000001 # F987
+ 0.7623999999999999 0.1405999999999999 0.5140000000000000 # F988
+ 0.8446999999999999 0.0943000000000001 0.5609999999999998 # F989
+ 0.8006999999999999 -0.0603000000000000 0.4291999999999999 # F990
+ 0.8715999999999998 0.0534999999999999 0.4800999999999999 # F991
+ 0.7883999999999998 0.0144000000000000 0.5510000000000000 # F992
+ 0.7844999999999999 0.1127000000000000 0.3153000000000000 # F993
+ 0.8355999999999999 0.6400999999999999 0.9598999999999998 # F994
+ 0.7623999999999999 0.6406000000000001 0.0140000000000000 # F995
+ 0.8446999999999999 0.5942999999999999 0.0610000000000001 # F996
+ 0.8006999999999999 0.4396999999999999 0.9291999999999998 # F997
+ 0.8715999999999998 0.5535000000000000 -0.0199000000000000 # F998
+ 0.7883999999999998 0.5143999999999999 0.0510000000000000 # F999
+ 0.7844999999999999 0.6126999999999998 0.8152999999999999 # F1000
+ 0.6643999999999998 0.1400999999999999 0.9598999999999998 # F1001
+ 0.7375999999999998 0.1406000000000000 0.0140000000000000 # F1002
+ 0.6552999999999998 0.0943000000000000 0.0610000000000001 # F1003
+ 0.6992999999999999 -0.0603000000000001 0.9291999999999998 # F1004
+ 0.6284000000000000 0.0535000000000000 -0.0199000000000000 # F1005
+ 0.7116000000000000 0.0144000000000001 0.0510000000000000 # F1006
+ 0.7155000000000000 0.1126999999999999 0.8152999999999999 # F1007
+ 0.6643999999999998 0.6400999999999997 0.4599000000000001 # F1008
+ 0.7375999999999998 0.6405999999999999 0.5140000000000000 # F1009
+ 0.6552999999999998 0.5942999999999998 0.5609999999999998 # F1010
+ 0.6992999999999999 0.4397000000000000 0.4291999999999999 # F1011
+ 0.6284000000000000 0.5534999999999999 0.4800999999999999 # F1012
+ 0.7116000000000000 0.5144000000000000 0.5510000000000000 # F1013
+ 0.7155000000000000 0.6126999999999999 0.3153000000000000 # F1014
+ 0.1644000000000000 0.1401000000000000 0.4599000000000001 # F1015
+ 0.2376000000000001 0.1405999999999999 0.5140000000000000 # F1016
+ 0.1553000000000000 0.0943000000000001 0.5609999999999998 # F1017
+ 0.1992999999999999 -0.0603000000000000 0.4291999999999999 # F1018
+ 0.1284000000000001 0.0534999999999999 0.4800999999999999 # F1019
+ 0.2116000000000000 0.0144000000000000 0.5510000000000000 # F1020
+ 0.2155000000000001 0.1127000000000000 0.3153000000000000 # F1021
+ 0.1644000000000000 0.6400999999999999 0.9598999999999998 # F1022
+ 0.2376000000000001 0.6406000000000001 0.0140000000000000 # F1023
+ 0.1553000000000000 0.5942999999999999 0.0610000000000001 # F1024
+ 0.1993000000000001 0.4396999999999999 0.9291999999999998 # F1025
+ 0.1284000000000001 0.5535000000000000 -0.0199000000000000 # F1026
+ 0.2116000000000000 0.5143999999999999 0.0510000000000000 # F1027
+ 0.2155000000000001 0.6126999999999998 0.8152999999999999 # F1028
+ 0.3355999999999999 -0.1401000000000001 0.0401000000000000 # F1029
+ 0.2624000000000001 0.8594000000000001 -0.0140000000000000 # F1030
+ 0.3446999999999999 -0.0943000000000002 0.9389999999999998 # F1031
+ 0.3007000000000001 0.0603000000000001 0.0708000000000000 # F1032
+ 0.3716000000000001 0.9464999999999997 0.0199000000000000 # F1033
+ 0.2884000000000000 -0.0144000000000001 0.9490000000000000 # F1034
+ 0.2845000000000001 0.8872999999999998 0.1847000000000000 # F1035
+ 0.3355999999999999 0.3598999999999998 0.5400999999999999 # F1036
+ 0.2624000000000001 0.3593999999999998 0.4860000000000000 # F1037
+ 0.3446999999999999 0.4056999999999999 0.4389999999999999 # F1038
+ 0.3007000000000001 0.5603000000000000 0.5708000000000000 # F1039
+ 0.3715999999999999 0.4464999999999998 0.5199000000000000 # F1040
+ 0.2884000000000000 0.4856000000000000 0.4489999999999999 # F1041
+ 0.2845000000000001 0.3872999999999998 0.6847000000000000 # F1042
+ 0.8355999999999999 -0.1401000000000002 0.5400999999999999 # F1043
+ 0.7623999999999999 0.8593999999999999 0.4860000000000000 # F1044
+ 0.8446999999999999 -0.0943000000000001 0.4389999999999999 # F1045
+ 0.8006999999999999 0.0603000000000000 0.5708000000000000 # F1046
+ 0.8715999999999998 0.9464999999999996 0.5199000000000000 # F1047
+ 0.7883999999999998 -0.0144000000000002 0.4489999999999999 # F1048
+ 0.7844999999999999 0.8872999999999996 0.6847000000000000 # F1049
+ 0.8355999999999999 0.3598999999999999 0.0401000000000000 # F1050
+ 0.7623999999999999 0.3593999999999999 -0.0140000000000000 # F1051
+ 0.8446999999999999 0.4056999999999998 0.9389999999999998 # F1052
+ 0.8006999999999999 0.5602999999999998 0.0708000000000000 # F1053
+ 0.8715999999999998 0.4464999999999999 0.0199000000000000 # F1054
+ 0.7883999999999998 0.4855999999999999 0.9490000000000000 # F1055
+ 0.7844999999999999 0.3872999999999999 0.1847000000000000 # F1056
+ 0.0401000000000000 0.6643999999999998 -0.1400999999999999 # F1057
+ -0.0139999999999998 0.7375999999999997 0.8594000000000001 # F1058
+ 0.9389999999999998 0.6552999999999998 -0.0943000000000000 # F1059
+ 0.0708000000000000 0.6992999999999999 0.0603000000000001 # F1060
+ 0.0199000000000000 0.6283999999999997 0.9464999999999997 # F1061
+ 0.9490000000000000 0.7116000000000000 -0.0143999999999999 # F1062
+ 0.1847000000000000 0.7154999999999998 0.8872999999999998 # F1063
+ 0.0401000000000000 0.1644000000000000 0.3598999999999999 # F1064
+ -0.0140000000000000 0.2376000000000000 0.3593999999999999 # F1065
+ 0.9389999999999998 0.1553000000000000 0.4057000000000000 # F1066
+ 0.0708000000000000 0.1992999999999998 0.5602999999999998 # F1067
+ 0.0199000000000000 0.1284000000000000 0.4464999999999999 # F1068
+ 0.9490000000000000 0.2116000000000000 0.4856000000000001 # F1069
+ 0.1847000000000000 0.2155000000000000 0.3873000000000000 # F1070
+ 0.5400999999999999 0.6643999999999997 0.3598999999999999 # F1071
+ 0.4860000000000000 0.7375999999999997 0.3593999999999999 # F1072
+ 0.4389999999999999 0.6552999999999997 0.4057000000000000 # F1073
+ 0.5708000000000000 0.6992999999999998 0.5602999999999998 # F1074
+ 0.5199000000000000 0.6283999999999998 0.4464999999999999 # F1075
+ 0.4489999999999999 0.7115999999999999 0.4856000000000001 # F1076
+ 0.6847000000000000 0.7154999999999999 0.3873000000000000 # F1077
+ 0.5400999999999999 0.1644000000000001 -0.1400999999999999 # F1078
+ 0.4860000000000000 0.2375999999999999 0.8594000000000001 # F1079
+ 0.4389999999999999 0.1553000000000001 -0.0943000000000000 # F1080
+ 0.5708000000000000 0.1992999999999999 0.0603000000000001 # F1081
+ 0.5199000000000000 0.1283999999999999 0.9464999999999997 # F1082
+ 0.4489999999999999 0.2116000000000000 -0.0143999999999999 # F1083
+ 0.6847000000000000 0.2154999999999999 0.8872999999999998 # F1084
+ 0.9598999999999998 0.3355999999999998 0.1400999999999999 # F1085
+ 0.0140000000000000 0.2623999999999999 0.1406000000000000 # F1086
+ 0.0610000000000001 0.3446999999999999 0.0943000000000000 # F1087
+ 0.9291999999999998 0.3007000000000001 -0.0603000000000001 # F1088
+ -0.0199000000000000 0.3715999999999999 0.0535000000000000 # F1089
+ 0.0510000000000000 0.2884000000000000 0.0143999999999999 # F1090
+ 0.8152999999999999 0.2844999999999999 0.1127000000000001 # F1091
+ 0.9598999999999998 0.8355999999999998 0.6400999999999998 # F1092
+ 0.0140000000000000 0.7623999999999999 0.6406000000000001 # F1093
+ 0.0610000000000001 0.8446999999999998 0.5942999999999999 # F1094
+ 0.9291999999999998 0.8006999999999997 0.4396999999999999 # F1095
+ -0.0198999999999998 0.8715999999999997 0.5535000000000000 # F1096
+ 0.0510000000000000 0.7883999999999997 0.5143999999999999 # F1097
+ 0.8152999999999999 0.7844999999999998 0.6127000000000000 # F1098
+ 0.4599000000000001 0.3355999999999998 0.6400999999999998 # F1099
+ 0.5140000000000000 0.2624000000000000 0.6406000000000001 # F1100
+ 0.5610000000000001 0.3446999999999998 0.5942999999999999 # F1101
+ 0.4291999999999999 0.3007000000000000 0.4396999999999999 # F1102
+ 0.4800999999999999 0.3716000000000000 0.5535000000000000 # F1103
+ 0.5510000000000000 0.2883999999999999 0.5143999999999999 # F1104
+ 0.3153000000000000 0.2845000000000000 0.6127000000000000 # F1105
+ 0.4599000000000001 0.8355999999999999 0.1400999999999999 # F1106
+ 0.5140000000000000 0.7623999999999999 0.1406000000000000 # F1107
+ 0.5610000000000001 0.8446999999999999 0.0943000000000000 # F1108
+ 0.4291999999999999 0.8006999999999999 -0.0603000000000001 # F1109
+ 0.4800999999999999 0.8715999999999998 0.0535000000000000 # F1110
+ 0.5510000000000000 0.7883999999999998 0.0143999999999999 # F1111
+ 0.3153000000000000 0.7844999999999999 0.1127000000000001 # F1112
+ 0.0401000000000000 0.1401000000000001 0.1644000000000000 # F1113
+ -0.0140000000000000 0.1406000000000000 0.2375999999999999 # F1114
+ 0.9389999999999998 0.0942999999999999 0.1553000000000000 # F1115
+ 0.0708000000000000 -0.0603000000000001 0.1992999999999999 # F1116
+ 0.0199000000000000 0.0535000000000000 0.1284000000000001 # F1117
+ 0.9490000000000000 0.0144000000000001 0.2116000000000000 # F1118
+ 0.1847000000000000 0.1127000000000000 0.2155000000000001 # F1119
+ 0.0401000000000000 0.6401000000000000 0.6643999999999998 # F1120
+ -0.0140000000000000 0.6405999999999999 0.7375999999999998 # F1121
+ 0.9389999999999998 0.5942999999999998 0.6552999999999998 # F1122
+ 0.0708000000000000 0.4396999999999999 0.6992999999999999 # F1123
+ 0.0199000000000000 0.5534999999999999 0.6284000000000000 # F1124
+ 0.9490000000000000 0.5144000000000000 0.7116000000000000 # F1125
+ 0.1847000000000000 0.6126999999999999 0.7155000000000000 # F1126
+ 0.5400999999999999 0.1401000000000000 0.6643999999999998 # F1127
+ 0.4860000000000000 0.1405999999999999 0.7375999999999998 # F1128
+ 0.4389999999999999 0.0943000000000000 0.6552999999999998 # F1129
+ 0.5708000000000000 -0.0603000000000000 0.6992999999999999 # F1130
+ 0.5199000000000000 0.0534999999999999 0.6284000000000000 # F1131
+ 0.4489999999999999 0.0144000000000000 0.7116000000000000 # F1132
+ 0.6847000000000000 0.1126999999999999 0.7155000000000000 # F1133
+ 0.5400999999999999 0.6400999999999998 0.1644000000000000 # F1134
+ 0.4860000000000000 0.6406000000000001 0.2375999999999999 # F1135
+ 0.4389999999999999 0.5942999999999999 0.1553000000000000 # F1136
+ 0.5708000000000000 0.4396999999999998 0.1992999999999999 # F1137
+ 0.5199000000000000 0.5535000000000000 0.1284000000000001 # F1138
+ 0.4489999999999999 0.5143999999999999 0.2116000000000000 # F1139
+ 0.6847000000000000 0.6127000000000000 0.2155000000000001 # F1140
+ 0.9598999999999998 -0.1401000000000001 0.8355999999999999 # F1141
+ 0.0140000000000000 0.8593999999999999 0.7623999999999999 # F1142
+ 0.0610000000000001 -0.0943000000000001 0.8446999999999999 # F1143
+ 0.9291999999999998 0.0602999999999999 0.8006999999999999 # F1144
+ -0.0198999999999998 0.9464999999999998 0.8715999999999998 # F1145
+ 0.0510000000000000 -0.0144000000000001 0.7883999999999998 # F1146
+ 0.8152999999999999 0.8872999999999996 0.7844999999999999 # F1147
+ 0.9598999999999998 0.3598999999999998 0.3355999999999999 # F1148
+ 0.0140000000000000 0.3593999999999998 0.2623999999999999 # F1149
+ 0.0610000000000001 0.4056999999999999 0.3446999999999999 # F1150
+ 0.9291999999999998 0.5602999999999997 0.3007000000000001 # F1151
+ -0.0199000000000000 0.4464999999999998 0.3715999999999999 # F1152
+ 0.0510000000000000 0.4855999999999998 0.2884000000000000 # F1153
+ 0.8152999999999999 0.3872999999999999 0.2844999999999999 # F1154
+ 0.4599000000000001 -0.1401000000000002 0.3355999999999999 # F1155
+ 0.5140000000000000 0.8594000000000001 0.2623999999999999 # F1156
+ 0.5609999999999998 -0.0943000000000000 0.3446999999999999 # F1157
+ 0.4291999999999999 0.0603000000000000 0.3007000000000001 # F1158
+ 0.4800999999999999 0.9464999999999996 0.3715999999999999 # F1159
+ 0.5510000000000000 -0.0144000000000002 0.2884000000000000 # F1160
+ 0.3153000000000000 0.8872999999999996 0.2844999999999999 # F1161
+ 0.4599000000000001 0.3598999999999997 0.8355999999999999 # F1162
+ 0.5140000000000000 0.3593999999999997 0.7623999999999999 # F1163
+ 0.5610000000000001 0.4056999999999998 0.8446999999999999 # F1164
+ 0.4291999999999999 0.5602999999999999 0.8006999999999999 # F1165
+ 0.4800999999999999 0.4464999999999997 0.8715999999999998 # F1166
+ 0.5510000000000000 0.4855999999999999 0.7883999999999998 # F1167
+ 0.3153000000000000 0.3872999999999998 0.7844999999999999 # F1168
+ 0.9598999999999998 -0.1400999999999999 0.1644000000000000 # F1169
+ 0.0140000000000000 0.8594000000000001 0.2375999999999999 # F1170
+ 0.0610000000000001 -0.0943000000000000 0.1553000000000000 # F1171
+ 0.9291999999999998 0.0603000000000000 0.1992999999999999 # F1172
+ -0.0198999999999998 0.9464999999999997 0.1284000000000001 # F1173
+ 0.0510000000000000 -0.0143999999999999 0.2116000000000000 # F1174
+ 0.8152999999999999 0.8872999999999998 0.2155000000000001 # F1175
+ 0.7979000000000001 0.7978999999999999 0.2978999999999999 # F1176
+ 0.9598999999999998 0.3598999999999999 0.6643999999999998 # F1177
+ 0.0140000000000000 0.3593999999999997 0.7375999999999998 # F1178
+ 0.0610000000000001 0.4056999999999999 0.6552999999999998 # F1179
+ 0.9291999999999998 0.5603000000000000 0.6992999999999999 # F1180
+ -0.0198999999999998 0.4464999999999998 0.6284000000000000 # F1181
+ 0.0510000000000000 0.4855999999999999 0.7116000000000000 # F1182
+ 0.8152999999999999 0.3872999999999998 0.7155000000000000 # F1183
+ 0.7979000000000001 0.2978999999999998 0.7979000000000001 # F1184
+ 0.4599000000000001 -0.1401000000000001 0.6643999999999998 # F1185
+ 0.5140000000000000 0.8593999999999999 0.7375999999999998 # F1186
+ 0.5610000000000001 -0.0943000000000001 0.6552999999999998 # F1187
+ 0.4291999999999999 0.0602999999999999 0.6992999999999999 # F1188
+ 0.4801000000000001 0.9464999999999996 0.6284000000000000 # F1189
+ 0.5510000000000000 -0.0144000000000001 0.7116000000000000 # F1190
+ 0.3153000000000002 0.8872999999999996 0.7155000000000000 # F1191
+ 0.2978999999999999 0.7978999999999998 0.7979000000000001 # F1192
+ 0.4599000000000001 0.3598999999999998 0.1644000000000000 # F1193
+ 0.5140000000000000 0.3593999999999998 0.2375999999999999 # F1194
+ 0.5609999999999998 0.4056999999999999 0.1553000000000000 # F1195
+ 0.4291999999999999 0.5602999999999998 0.1992999999999999 # F1196
+ 0.4800999999999999 0.4464999999999999 0.1284000000000001 # F1197
+ 0.5510000000000000 0.4856000000000000 0.2116000000000000 # F1198
+ 0.3153000000000000 0.3872999999999999 0.2155000000000001 # F1199
+ 0.2978999999999999 0.2978999999999999 0.2978999999999999 # F1200
+ 0.0401000000000000 0.1400999999999998 0.8355999999999999 # F1201
+ -0.0140000000000000 0.1405999999999999 0.7623999999999999 # F1202
+ 0.9389999999999998 0.0943000000000000 0.8446999999999999 # F1203
+ 0.0708000000000000 -0.0603000000000000 0.8006999999999999 # F1204
+ 0.0199000000000000 0.0534999999999998 0.8715999999999998 # F1205
+ 0.9490000000000000 0.0143999999999999 0.7883999999999998 # F1206
+ 0.1847000000000000 0.1126999999999999 0.7844999999999999 # F1207
+ 0.2021000000000001 0.2020999999999999 0.7020999999999998 # F1208
+ 0.0401000000000000 0.6400999999999997 0.3355999999999999 # F1209
+ -0.0140000000000000 0.6406000000000001 0.2623999999999999 # F1210
+ 0.9389999999999998 0.5942999999999998 0.3446999999999999 # F1211
+ 0.0708000000000000 0.4396999999999998 0.3007000000000001 # F1212
+ 0.0199000000000000 0.5534999999999999 0.3715999999999999 # F1213
+ 0.9490000000000000 0.5143999999999997 0.2884000000000000 # F1214
+ 0.1847000000000000 0.6126999999999999 0.2844999999999999 # F1215
+ 0.2021000000000001 0.7020999999999998 0.2021000000000001 # F1216
+ 0.5400999999999999 0.1400999999999998 0.3355999999999999 # F1217
+ 0.4860000000000000 0.1406000000000000 0.2623999999999999 # F1218
+ 0.4389999999999999 0.0943000000000001 0.3446999999999999 # F1219
+ 0.5708000000000000 -0.0602999999999999 0.3007000000000001 # F1220
+ 0.5199000000000000 0.0535000000000000 0.3715999999999999 # F1221
+ 0.4489999999999999 0.0143999999999998 0.2884000000000000 # F1222
+ 0.6847000000000000 0.1127000000000000 0.2844999999999999 # F1223
+ 0.7020999999999998 0.2021000000000000 0.2021000000000001 # F1224
+ 0.5401000000000001 0.6400999999999999 0.8355999999999999 # F1225
+ 0.4860000000000002 0.6405999999999999 0.7623999999999999 # F1226
+ 0.4390000000000001 0.5942999999999997 0.8446999999999999 # F1227
+ 0.5708000000000000 0.4396999999999999 0.8006999999999999 # F1228
+ 0.5199000000000000 0.5534999999999998 0.8715999999999998 # F1229
+ 0.4489999999999999 0.5144000000000000 0.7883999999999998 # F1230
+ 0.6847000000000000 0.6126999999999999 0.7844999999999999 # F1231
+ 0.7020999999999998 0.7021000000000001 0.7020999999999998 # F1232
+ -0.1400999999999999 0.3355999999999998 0.5400999999999999 # F1233
+ 0.8594000000000001 0.2624000000000000 0.4860000000000000 # F1234
+ -0.0943000000000000 0.3446999999999998 0.4389999999999999 # F1235
+ 0.0603000000000001 0.3007000000000000 0.5708000000000000 # F1236
+ 0.9464999999999997 0.3716000000000000 0.5199000000000000 # F1237
+ -0.0143999999999999 0.2883999999999999 0.4489999999999999 # F1238
+ 0.8872999999999998 0.2844999999999999 0.6847000000000000 # F1239
+ -0.1400999999999999 0.8355999999999999 0.0401000000000000 # F1240
+ 0.8594000000000001 0.7623999999999999 -0.0140000000000000 # F1241
+ -0.0943000000000000 0.8446999999999999 0.9389999999999998 # F1242
+ 0.0603000000000001 0.8006999999999999 0.0708000000000000 # F1243
+ 0.9464999999999997 0.8715999999999998 0.0199000000000000 # F1244
+ -0.0143999999999999 0.7883999999999998 0.9490000000000000 # F1245
+ 0.8872999999999998 0.7844999999999999 0.1847000000000000 # F1246
+ 0.3598999999999999 0.3355999999999999 0.0401000000000000 # F1247
+ 0.3593999999999999 0.2623999999999999 -0.0140000000000000 # F1248
+ 0.4057000000000000 0.3446999999999997 0.9389999999999998 # F1249
+ 0.5602999999999998 0.3007000000000001 0.0708000000000000 # F1250
+ 0.4464999999999999 0.3715999999999999 0.0199000000000000 # F1251
+ 0.4856000000000001 0.2883999999999998 0.9490000000000000 # F1252
+ 0.3873000000000000 0.2845000000000000 0.1847000000000000 # F1253
+ 0.3599000000000001 0.8355999999999998 0.5400999999999999 # F1254
+ 0.3593999999999999 0.7623999999999997 0.4860000000000000 # F1255
+ 0.4057000000000000 0.8446999999999998 0.4389999999999999 # F1256
+ 0.5603000000000001 0.8006999999999997 0.5708000000000000 # F1257
+ 0.4464999999999999 0.8715999999999997 0.5199000000000000 # F1258
+ 0.4856000000000001 0.7883999999999997 0.4489999999999999 # F1259
+ 0.3873000000000002 0.7845000000000001 0.6847000000000000 # F1260
+ 0.1400999999999999 0.6643999999999997 0.4599000000000001 # F1261
+ 0.1406000000000000 0.7375999999999997 0.5140000000000000 # F1262
+ 0.0943000000000002 0.6552999999999997 0.5609999999999998 # F1263
+ -0.0602999999999999 0.6992999999999998 0.4291999999999999 # F1264
+ 0.0535000000000000 0.6283999999999998 0.4800999999999999 # F1265
+ 0.0144000000000001 0.7115999999999999 0.5510000000000000 # F1266
+ 0.1127000000000001 0.7154999999999999 0.3153000000000000 # F1267
+ 0.1400999999999999 0.1643999999999999 0.9598999999999998 # F1268
+ 0.1406000000000000 0.2375999999999999 0.0140000000000000 # F1269
+ 0.0943000000000000 0.1553000000000000 0.0610000000000001 # F1270
+ -0.0602999999999999 0.1992999999999999 0.9291999999999998 # F1271
+ 0.0535000000000000 0.1284000000000001 -0.0199000000000000 # F1272
+ 0.0143999999999999 0.2116000000000000 0.0510000000000000 # F1273
+ 0.1127000000000001 0.2154999999999999 0.8152999999999999 # F1274
+ 0.6400999999999998 0.6643999999999998 0.9598999999999998 # F1275
+ 0.6406000000000001 0.7375999999999998 0.0140000000000000 # F1276
+ 0.5942999999999999 0.6552999999999998 0.0610000000000001 # F1277
+ 0.4397000000000001 0.6992999999999998 0.9291999999999998 # F1278
+ 0.5535000000000000 0.6284000000000000 -0.0199000000000000 # F1279
+ 0.5144000000000001 0.7116000000000000 0.0510000000000000 # F1280
+ 0.6127000000000000 0.7154999999999998 0.8152999999999999 # F1281
+ 0.6400999999999998 0.1644000000000000 0.4599000000000001 # F1282
+ 0.6406000000000001 0.2376000000000000 0.5140000000000000 # F1283
+ 0.5942999999999999 0.1552999999999999 0.5609999999999998 # F1284
+ 0.4396999999999999 0.1992999999999999 0.4291999999999999 # F1285
+ 0.5535000000000000 0.1284000000000000 0.4800999999999999 # F1286
+ 0.5143999999999999 0.2116000000000000 0.5510000000000000 # F1287
+ 0.6127000000000000 0.2155000000000001 0.3153000000000000 # F1288
+ -0.1400999999999999 0.6643999999999997 0.4599000000000001 # F1289
+ 0.8594000000000001 0.7375999999999997 0.5140000000000000 # F1290
+ -0.0943000000000000 0.6552999999999997 0.5609999999999998 # F1291
+ 0.0603000000000001 0.6992999999999998 0.4291999999999999 # F1292
+ 0.9464999999999997 0.6283999999999998 0.4800999999999999 # F1293
+ -0.0143999999999999 0.7115999999999999 0.5510000000000000 # F1294
+ 0.8872999999999998 0.7154999999999999 0.3153000000000000 # F1295
+ -0.1400999999999999 0.1643999999999999 0.9598999999999998 # F1296
+ 0.8594000000000001 0.2375999999999999 0.0140000000000000 # F1297
+ -0.0943000000000000 0.1553000000000000 0.0610000000000001 # F1298
+ 0.0603000000000001 0.1992999999999999 0.9291999999999998 # F1299
+ 0.9464999999999997 0.1284000000000001 -0.0199000000000000 # F1300
+ -0.0144000000000001 0.2116000000000000 0.0510000000000000 # F1301
+ 0.8872999999999998 0.2154999999999999 0.8152999999999999 # F1302
+ 0.3599000000000001 0.6643999999999998 0.9598999999999998 # F1303
+ 0.3593999999999999 0.7375999999999998 0.0140000000000000 # F1304
+ 0.4057000000000000 0.6552999999999998 0.0610000000000001 # F1305
+ 0.5603000000000001 0.6992999999999998 0.9291999999999998 # F1306
+ 0.4464999999999999 0.6284000000000000 -0.0199000000000000 # F1307
+ 0.4856000000000001 0.7116000000000000 0.0510000000000000 # F1308
+ 0.3873000000000002 0.7154999999999998 0.8152999999999999 # F1309
+ 0.3598999999999999 0.1644000000000000 0.4599000000000001 # F1310
+ 0.3593999999999999 0.2376000000000000 0.5140000000000000 # F1311
+ 0.4057000000000000 0.1552999999999999 0.5609999999999998 # F1312
+ 0.5602999999999998 0.1992999999999999 0.4291999999999999 # F1313
+ 0.4464999999999999 0.1284000000000000 0.4800999999999999 # F1314
+ 0.4855999999999999 0.2116000000000000 0.5510000000000000 # F1315
+ 0.3873000000000000 0.2155000000000001 0.3153000000000000 # F1316
+ 0.1401000000000001 0.3355999999999998 0.5400999999999999 # F1317
+ 0.1406000000000000 0.2624000000000000 0.4860000000000000 # F1318
+ 0.0943000000000002 0.3446999999999998 0.4389999999999999 # F1319
+ -0.0602999999999999 0.3007000000000000 0.5708000000000000 # F1320
+ 0.0535000000000000 0.3716000000000000 0.5199000000000000 # F1321
+ 0.0144000000000001 0.2883999999999999 0.4489999999999999 # F1322
+ 0.1127000000000001 0.2844999999999999 0.6847000000000000 # F1323
+ 0.1401000000000001 0.8355999999999999 0.0401000000000000 # F1324
+ 0.1406000000000000 0.7623999999999999 -0.0140000000000000 # F1325
+ 0.0943000000000002 0.8446999999999999 0.9389999999999998 # F1326
+ -0.0602999999999999 0.8006999999999999 0.0708000000000000 # F1327
+ 0.0535000000000000 0.8715999999999998 0.0199000000000000 # F1328
+ 0.0144000000000001 0.7883999999999998 0.9490000000000000 # F1329
+ 0.1127000000000001 0.7844999999999999 0.1847000000000000 # F1330
+ 0.6400999999999998 0.3355999999999999 0.0401000000000000 # F1331
+ 0.6406000000000001 0.2623999999999999 -0.0140000000000000 # F1332
+ 0.5942999999999999 0.3446999999999997 0.9389999999999998 # F1333
+ 0.4396999999999999 0.3007000000000001 0.0708000000000000 # F1334
+ 0.5535000000000000 0.3715999999999999 0.0199000000000000 # F1335
+ 0.5144000000000001 0.2883999999999998 0.9490000000000000 # F1336
+ 0.6127000000000000 0.2845000000000000 0.1847000000000000 # F1337
+ 0.6400999999999998 0.8355999999999998 0.5400999999999999 # F1338
+ 0.6406000000000001 0.7623999999999997 0.4860000000000000 # F1339
+ 0.5942999999999999 0.8446999999999998 0.4389999999999999 # F1340
+ 0.4397000000000001 0.8006999999999997 0.5708000000000000 # F1341
+ 0.5535000000000000 0.8715999999999997 0.5199000000000000 # F1342
+ 0.5144000000000001 0.7883999999999997 0.4489999999999999 # F1343
+ 0.6127000000000000 0.7845000000000001 0.6847000000000000 # F1344
+ 0.3356000000000001 0.9598999999999999 0.6400999999999998 # F1345
+ 0.2624000000000001 0.0139999999999999 0.6406000000000001 # F1346
+ 0.3446999999999999 0.0609999999999999 0.5942999999999999 # F1347
+ 0.3007000000000001 0.9291999999999997 0.4396999999999999 # F1348
+ 0.3715999999999999 -0.0199000000000000 0.5535000000000000 # F1349
+ 0.2884000000000000 0.0509999999999999 0.5143999999999999 # F1350
+ 0.2845000000000001 0.8152999999999998 0.6127000000000000 # F1351
+ 0.3355999999999999 0.4599000000000000 0.1401000000000001 # F1352
+ 0.2624000000000001 0.5140000000000000 0.1406000000000000 # F1353
+ 0.3446999999999999 0.5609999999999998 0.0943000000000000 # F1354
+ 0.3007000000000001 0.4291999999999999 -0.0603000000000001 # F1355
+ 0.3715999999999999 0.4800999999999999 0.0535000000000000 # F1356
+ 0.2884000000000000 0.5510000000000000 0.0144000000000001 # F1357
+ 0.2845000000000001 0.3153000000000000 0.1127000000000001 # F1358
+ 0.8355999999999999 0.9598999999999998 0.1401000000000001 # F1359
+ 0.7623999999999999 0.0140000000000000 0.1406000000000000 # F1360
+ 0.8446999999999999 0.0610000000000000 0.0943000000000000 # F1361
+ 0.8006999999999999 0.9291999999999998 -0.0603000000000001 # F1362
+ 0.8715999999999998 -0.0199000000000001 0.0535000000000000 # F1363
+ 0.7883999999999998 0.0510000000000000 0.0144000000000001 # F1364
+ 0.7844999999999999 0.8152999999999999 0.1127000000000001 # F1365
+ 0.8355999999999999 0.4599000000000000 0.6400999999999998 # F1366
+ 0.7623999999999999 0.5139999999999999 0.6406000000000001 # F1367
+ 0.8446999999999999 0.5609999999999999 0.5942999999999999 # F1368
+ 0.8006999999999999 0.4291999999999998 0.4396999999999999 # F1369
+ 0.8715999999999998 0.4800999999999998 0.5535000000000000 # F1370
+ 0.7883999999999998 0.5509999999999999 0.5143999999999999 # F1371
+ 0.7844999999999999 0.3152999999999999 0.6127000000000000 # F1372
+ 0.6643999999999998 0.0400999999999999 0.3598999999999999 # F1373
+ 0.7375999999999998 -0.0140000000000001 0.3593999999999999 # F1374
+ 0.6552999999999998 0.9389999999999997 0.4057000000000000 # F1375
+ 0.6992999999999999 0.0707999999999999 0.5602999999999998 # F1376
+ 0.6284000000000000 0.0199000000000000 0.4464999999999999 # F1377
+ 0.7116000000000000 0.9489999999999998 0.4855999999999999 # F1378
+ 0.7155000000000000 0.1846999999999999 0.3873000000000000 # F1379
+ 0.6643999999999998 0.5400999999999999 -0.1401000000000001 # F1380
+ 0.7375999999999998 0.4859999999999998 0.8594000000000001 # F1381
+ 0.6552999999999998 0.4389999999999999 -0.0943000000000000 # F1382
+ 0.6992999999999999 0.5708000000000000 0.0603000000000001 # F1383
+ 0.6284000000000000 0.5198999999999998 0.9464999999999997 # F1384
+ 0.7116000000000000 0.4489999999999999 -0.0144000000000001 # F1385
+ 0.7155000000000000 0.6846999999999998 0.8872999999999998 # F1386
+ 0.1644000000000000 0.0401000000000000 -0.1401000000000001 # F1387
+ 0.2376000000000001 -0.0140000000000000 0.8594000000000001 # F1388
+ 0.1553000000000000 0.9389999999999998 -0.0943000000000000 # F1389
+ 0.1992999999999999 0.0708000000000000 0.0603000000000001 # F1390
+ 0.1284000000000001 0.0198999999999998 0.9464999999999997 # F1391
+ 0.2116000000000001 0.9490000000000000 -0.0144000000000001 # F1392
+ 0.2155000000000001 0.1846999999999998 0.8872999999999998 # F1393
+ 0.1644000000000000 0.5400999999999998 0.3598999999999999 # F1394
+ 0.2376000000000001 0.4859999999999999 0.3593999999999999 # F1395
+ 0.1553000000000000 0.4389999999999998 0.4057000000000000 # F1396
+ 0.1992999999999999 0.5707999999999999 0.5602999999999998 # F1397
+ 0.1284000000000001 0.5198999999999999 0.4464999999999999 # F1398
+ 0.2116000000000001 0.4489999999999998 0.4855999999999999 # F1399
+ 0.2155000000000001 0.6846999999999999 0.3873000000000000 # F1400
+ 0.6643999999999998 0.9598999999999996 0.3598999999999999 # F1401
+ 0.7375999999999998 0.0139999999999999 0.3593999999999999 # F1402
+ 0.6552999999999998 0.0610000000000000 0.4057000000000000 # F1403
+ 0.6992999999999999 0.9291999999999997 0.5602999999999998 # F1404
+ 0.6284000000000000 -0.0199000000000001 0.4464999999999999 # F1405
+ 0.7116000000000000 0.0509999999999999 0.4855999999999999 # F1406
+ 0.7155000000000000 0.8152999999999998 0.3873000000000000 # F1407
+ 0.6643999999999998 0.4599000000000001 -0.1401000000000001 # F1408
+ 0.7375999999999998 0.5139999999999998 0.8594000000000001 # F1409
+ 0.6552999999999998 0.5609999999999998 -0.0943000000000000 # F1410
+ 0.6992999999999999 0.4291999999999999 0.0603000000000001 # F1411
+ 0.6284000000000000 0.4800999999999997 0.9464999999999997 # F1412
+ 0.7116000000000000 0.5510000000000000 -0.0144000000000001 # F1413
+ 0.7155000000000000 0.3153000000000000 0.8872999999999998 # F1414
+ 0.1644000000000000 0.9598999999999998 -0.1401000000000001 # F1415
+ 0.2376000000000001 0.0139999999999998 0.8594000000000001 # F1416
+ 0.1553000000000000 0.0610000000000001 -0.0943000000000000 # F1417
+ 0.1992999999999999 0.9291999999999998 0.0603000000000001 # F1418
+ 0.1284000000000001 -0.0199000000000000 0.9464999999999997 # F1419
+ 0.2116000000000000 0.0510000000000000 -0.0144000000000001 # F1420
+ 0.2155000000000001 0.8152999999999998 0.8872999999999998 # F1421
+ 0.1644000000000000 0.4599000000000000 0.3598999999999999 # F1422
+ 0.2376000000000001 0.5139999999999999 0.3593999999999999 # F1423
+ 0.1553000000000000 0.5609999999999999 0.4057000000000000 # F1424
+ 0.1992999999999999 0.4291999999999998 0.5602999999999998 # F1425
+ 0.1284000000000001 0.4800999999999998 0.4464999999999999 # F1426
+ 0.2116000000000001 0.5509999999999999 0.4855999999999999 # F1427
+ 0.2155000000000001 0.3152999999999999 0.3873000000000000 # F1428
+ 0.3355999999999999 0.0400999999999998 0.6400999999999998 # F1429
+ 0.2624000000000001 -0.0140000000000001 0.6406000000000001 # F1430
+ 0.3447000000000001 0.9389999999999997 0.5942999999999999 # F1431
+ 0.3007000000000001 0.0707999999999999 0.4396999999999999 # F1432
+ 0.3715999999999999 0.0198999999999999 0.5535000000000000 # F1433
+ 0.2884000000000000 0.9489999999999998 0.5143999999999999 # F1434
+ 0.2845000000000001 0.1846999999999999 0.6127000000000000 # F1435
+ 0.3355999999999999 0.5400999999999999 0.1401000000000001 # F1436
+ 0.2624000000000001 0.4859999999999999 0.1406000000000000 # F1437
+ 0.3446999999999999 0.4389999999999999 0.0943000000000000 # F1438
+ 0.3007000000000001 0.5708000000000000 -0.0603000000000001 # F1439
+ 0.3715999999999999 0.5199000000000000 0.0535000000000000 # F1440
+ 0.2884000000000000 0.4489999999999999 0.0144000000000001 # F1441
+ 0.2845000000000001 0.6847000000000000 0.1127000000000001 # F1442
+ 0.8355999999999999 0.0400999999999999 0.1401000000000001 # F1443
+ 0.7623999999999999 -0.0140000000000000 0.1406000000000000 # F1444
+ 0.8446999999999999 0.9389999999999998 0.0943000000000000 # F1445
+ 0.8006999999999999 0.0708000000000001 -0.0603000000000001 # F1446
+ 0.8715999999999998 0.0199000000000000 0.0535000000000000 # F1447
+ 0.7883999999999998 0.9490000000000000 0.0144000000000001 # F1448
+ 0.7844999999999999 0.1847000000000000 0.1127000000000001 # F1449
+ 0.8355999999999999 0.5400999999999998 0.6400999999999998 # F1450
+ 0.7623999999999999 0.4859999999999999 0.6406000000000001 # F1451
+ 0.8446999999999999 0.4389999999999998 0.5942999999999999 # F1452
+ 0.8006999999999999 0.5707999999999999 0.4396999999999999 # F1453
+ 0.8715999999999998 0.5198999999999999 0.5535000000000000 # F1454
+ 0.7883999999999998 0.4489999999999998 0.5143999999999999 # F1455
+ 0.7844999999999999 0.6846999999999999 0.6127000000000000 # F1456
diff --git a/test/data/cubic/POSCAR-226-2 b/test/data/cubic/POSCAR-226-2
new file mode 100644
index 0000000..f0287e9
--- /dev/null
+++ b/test/data/cubic/POSCAR-226-2
@@ -0,0 +1,119 @@
+$cell vectors
+1.0
+ 10.0459952729373647 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0459952729373647 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0459952729373647
+ 8 104
+Direct
+ 0.2500000000000003 0.2500000000000003 0.2500000000000003 # Sb1
+ 0.2500000000000003 0.7500000000000003 0.7500000000000003 # Sb2
+ 0.7500000000000003 0.2500000000000003 0.7500000000000003 # Sb3
+ 0.7500000000000003 0.7500000000000003 0.2500000000000003 # Sb4
+ 0.7500000000000003 0.7500000000000003 0.7500000000000003 # Sb5
+ 0.7500000000000003 0.2500000000000003 0.2500000000000003 # Sb6
+ 0.2500000000000003 0.7500000000000003 0.2500000000000003 # Sb7
+ 0.2500000000000003 0.2500000000000003 0.7500000000000003 # Sb8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Be1
+ 0.0000000000000000 0.1780999999999998 0.1157000000000001 # Be2
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Be3
+ 0.0000000000000000 0.6781000000000004 0.6157000000000001 # Be4
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Be5
+ 0.5000000000000000 0.1781000000000004 0.6157000000000001 # Be6
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Be7
+ 0.5000000000000000 0.6781000000000004 0.1157000000000001 # Be8
+ 0.0000000000000000 0.8219000000000003 0.8843000000000002 # Be9
+ 0.0000000000000000 0.3219000000000002 0.3843000000000000 # Be10
+ 0.5000000000000000 0.8219000000000003 0.3843000000000000 # Be11
+ 0.5000000000000000 0.3219000000000002 0.8843000000000002 # Be12
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Be13
+ 0.8219000000000003 0.0000000000000000 0.6157000000000001 # Be14
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Be15
+ 0.8219000000000003 0.5000000000000000 0.1157000000000001 # Be16
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Be17
+ 0.3219000000000002 0.0000000000000000 0.1157000000000001 # Be18
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Be19
+ 0.3219000000000002 0.5000000000000000 0.6157000000000001 # Be20
+ 0.1780999999999998 0.0000000000000000 0.3843000000000000 # Be21
+ 0.1781000000000004 0.5000000000000000 0.8843000000000002 # Be22
+ 0.6781000000000004 0.0000000000000000 0.8843000000000002 # Be23
+ 0.6781000000000004 0.5000000000000000 0.3843000000000000 # Be24
+ 0.0000000000000000 0.8219000000000003 0.1157000000000001 # Be25
+ 0.0000000000000000 0.3219000000000002 0.6157000000000001 # Be26
+ 0.5000000000000000 0.8219000000000003 0.6157000000000001 # Be27
+ 0.5000000000000000 0.3219000000000002 0.1157000000000001 # Be28
+ 0.0000000000000000 0.1781000000000004 0.8843000000000002 # Be29
+ 0.0000000000000000 0.6781000000000004 0.3843000000000000 # Be30
+ 0.5000000000000000 0.1780999999999998 0.3843000000000000 # Be31
+ 0.5000000000000000 0.6781000000000004 0.8843000000000002 # Be32
+ 0.1780999999999998 0.0000000000000000 0.6157000000000001 # Be33
+ 0.1780999999999998 0.5000000000000000 0.1157000000000001 # Be34
+ 0.6781000000000004 0.0000000000000000 0.1157000000000001 # Be35
+ 0.6781000000000004 0.5000000000000000 0.6157000000000001 # Be36
+ 0.8219000000000003 0.0000000000000000 0.3843000000000000 # Be37
+ 0.8219000000000003 0.5000000000000000 0.8843000000000002 # Be38
+ 0.3219000000000002 0.0000000000000000 0.8843000000000002 # Be39
+ 0.3219000000000002 0.5000000000000000 0.3843000000000000 # Be40
+ 0.0000000000000000 0.8843000000000002 0.6781000000000004 # Be41
+ 0.0000000000000000 0.3843000000000000 0.1780999999999998 # Be42
+ 0.5000000000000000 0.8843000000000002 0.1780999999999998 # Be43
+ 0.5000000000000000 0.3843000000000000 0.6781000000000004 # Be44
+ 0.0000000000000000 0.1157000000000001 0.3219000000000002 # Be45
+ 0.0000000000000000 0.6157000000000001 0.8219000000000003 # Be46
+ 0.5000000000000000 0.1157000000000001 0.8219000000000003 # Be47
+ 0.5000000000000000 0.6157000000000001 0.3219000000000002 # Be48
+ 0.1157000000000001 0.1781000000000004 0.5000000000000000 # Be49
+ 0.1157000000000001 0.6781000000000004 0.0000000000000000 # Be50
+ 0.6157000000000001 0.1780999999999998 0.0000000000000000 # Be51
+ 0.6157000000000001 0.6781000000000004 0.5000000000000000 # Be52
+ 0.8843000000000002 0.8219000000000003 0.5000000000000000 # Be53
+ 0.8843000000000002 0.3219000000000002 0.0000000000000000 # Be54
+ 0.3843000000000000 0.8219000000000003 0.0000000000000000 # Be55
+ 0.3843000000000000 0.3219000000000002 0.5000000000000000 # Be56
+ 0.8843000000000002 0.1781000000000004 0.5000000000000000 # Be57
+ 0.8843000000000002 0.6781000000000004 0.0000000000000000 # Be58
+ 0.3843000000000000 0.1780999999999998 0.0000000000000000 # Be59
+ 0.3843000000000000 0.6781000000000004 0.5000000000000000 # Be60
+ 0.1157000000000001 0.8219000000000003 0.5000000000000000 # Be61
+ 0.1157000000000001 0.3219000000000002 0.0000000000000000 # Be62
+ 0.6157000000000001 0.8219000000000003 0.0000000000000000 # Be63
+ 0.6157000000000001 0.3219000000000002 0.5000000000000000 # Be64
+ 0.1157000000000001 0.0000000000000000 0.1780999999999998 # Be65
+ 0.1157000000000001 0.5000000000000000 0.6781000000000004 # Be66
+ 0.6157000000000001 0.0000000000000000 0.6781000000000004 # Be67
+ 0.6157000000000001 0.5000000000000000 0.1780999999999998 # Be68
+ 0.8843000000000002 0.0000000000000000 0.8219000000000003 # Be69
+ 0.8843000000000002 0.5000000000000000 0.3219000000000002 # Be70
+ 0.3843000000000000 0.0000000000000000 0.3219000000000002 # Be71
+ 0.3843000000000000 0.5000000000000000 0.8219000000000003 # Be72
+ 0.1780999999999998 0.1157000000000001 0.0000000000000000 # Be73
+ 0.1781000000000004 0.6157000000000001 0.5000000000000000 # Be74
+ 0.6781000000000004 0.1157000000000001 0.5000000000000000 # Be75
+ 0.6781000000000004 0.6157000000000001 0.0000000000000000 # Be76
+ 0.8219000000000003 0.8843000000000002 0.0000000000000000 # Be77
+ 0.8219000000000003 0.3843000000000000 0.5000000000000000 # Be78
+ 0.3219000000000002 0.8843000000000002 0.5000000000000000 # Be79
+ 0.3219000000000002 0.3843000000000000 0.0000000000000000 # Be80
+ 0.1157000000000001 0.0000000000000000 0.8219000000000003 # Be81
+ 0.1157000000000001 0.5000000000000000 0.3219000000000002 # Be82
+ 0.6157000000000001 0.0000000000000000 0.3219000000000002 # Be83
+ 0.6157000000000001 0.5000000000000000 0.8219000000000003 # Be84
+ 0.8843000000000002 0.0000000000000000 0.1780999999999998 # Be85
+ 0.8843000000000002 0.5000000000000000 0.6781000000000004 # Be86
+ 0.3843000000000000 0.0000000000000000 0.6781000000000004 # Be87
+ 0.3843000000000000 0.5000000000000000 0.1780999999999998 # Be88
+ 0.8219000000000003 0.1157000000000001 0.0000000000000000 # Be89
+ 0.8219000000000003 0.6157000000000001 0.5000000000000000 # Be90
+ 0.3219000000000002 0.1157000000000001 0.5000000000000000 # Be91
+ 0.3219000000000002 0.6157000000000001 0.0000000000000000 # Be92
+ 0.1780999999999998 0.8843000000000002 0.0000000000000000 # Be93
+ 0.1780999999999998 0.3843000000000000 0.5000000000000000 # Be94
+ 0.6781000000000004 0.8843000000000002 0.5000000000000000 # Be95
+ 0.6781000000000004 0.3843000000000000 0.0000000000000000 # Be96
+ 0.0000000000000000 0.1157000000000001 0.6781000000000004 # Be97
+ 0.0000000000000000 0.6157000000000001 0.1780999999999998 # Be98
+ 0.5000000000000000 0.1157000000000001 0.1780999999999998 # Be99
+ 0.5000000000000000 0.6157000000000001 0.6781000000000004 # Be100
+ 0.0000000000000000 0.8843000000000002 0.3219000000000002 # Be101
+ 0.0000000000000000 0.3843000000000000 0.8219000000000003 # Be102
+ 0.5000000000000000 0.8843000000000005 0.8219000000000003 # Be103
+ 0.5000000000000000 0.3843000000000000 0.3219000000000002 # Be104
diff --git a/test/data/cubic/POSCAR-227 b/test/data/cubic/POSCAR-227
new file mode 100644
index 0000000..247d214
--- /dev/null
+++ b/test/data/cubic/POSCAR-227
@@ -0,0 +1,167 @@
+$cell vectors
+1.0
+ 10.1299952334118579 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1299952334118579 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1299952334118579
+ 32 16 112
+Direct
+ 0.2609999999999999 0.2609999999999999 0.2609999999999999 # Ca1
+ 0.2609999999999999 0.7610000000000002 0.7610000000000002 # Ca2
+ 0.7610000000000002 0.2609999999999999 0.7610000000000002 # Ca3
+ 0.7610000000000002 0.7610000000000002 0.2609999999999999 # Ca4
+ 0.2390000000000003 0.2390000000000003 0.7390000000000001 # Ca5
+ 0.7390000000000001 0.5110000000000003 0.5110000000000003 # Ca6
+ 0.7390000000000007 1.0110000000000006 1.0110000000000001 # Ca7
+ 0.2390000000000003 0.5110000000000003 1.0110000000000001 # Ca8
+ 0.2390000000000003 1.0110000000000001 0.5110000000000003 # Ca9
+ 0.2609999999999999 0.4890000000000002 0.4890000000000002 # Ca10
+ 0.2609999999999999 -0.0110000000000000 -0.0110000000000000 # Ca11
+ 0.7610000000000002 0.4890000000000002 -0.0110000000000000 # Ca12
+ 0.7610000000000002 -0.0110000000000000 0.4890000000000002 # Ca13
+ 1.0110000000000001 1.0110000000000001 0.7390000000000001 # Ca14
+ 1.0110000000000001 0.5110000000000003 0.2389999999999998 # Ca15
+ 0.5110000000000003 1.0110000000000001 0.2389999999999998 # Ca16
+ 0.5110000000000003 0.5110000000000003 0.7390000000000001 # Ca17
+ 0.5110000000000003 0.7390000000000001 0.5110000000000003 # Ca18
+ 0.5110000000000003 0.2390000000000003 1.0110000000000001 # Ca19
+ 1.0110000000000001 0.7390000000000001 1.0110000000000001 # Ca20
+ 1.0110000000000001 0.2390000000000003 0.5110000000000003 # Ca21
+ 0.4890000000000002 0.2609999999999999 0.4890000000000002 # Ca22
+ 0.4890000000000002 0.7610000000000002 -0.0110000000000000 # Ca23
+ -0.0110000000000000 0.2609999999999999 -0.0110000000000000 # Ca24
+ -0.0110000000000000 0.7610000000000002 0.4890000000000002 # Ca25
+ 0.4890000000000002 0.4890000000000002 0.2609999999999999 # Ca26
+ 0.4890000000000002 -0.0110000000000000 0.7610000000000002 # Ca27
+ -0.0110000000000000 0.4890000000000002 0.7610000000000002 # Ca28
+ -0.0110000000000000 -0.0110000000000000 0.2609999999999999 # Ca29
+ 0.7390000000000007 0.7390000000000001 0.7390000000000001 # Ca30
+ 0.7390000000000001 0.2390000000000003 0.2389999999999998 # Ca31
+ 0.2390000000000003 0.7390000000000001 0.2389999999999998 # Ca32
+ 0.5000000000000003 0.5000000000000003 0.5000000000000003 # N1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000003 # N2
+ 0.5000000000000003 0.7500000000000001 0.7500000000000001 # N3
+ 0.5000000000000003 0.2499999999999998 0.2499999999999998 # N4
+ 0.0000000000000000 0.7500000000000001 0.2499999999999998 # N5
+ 0.0000000000000000 0.2500000000000003 0.7500000000000001 # N6
+ 0.7500000000000001 0.5000000000000003 0.7500000000000001 # N7
+ 0.7500000000000001 0.0000000000000000 0.2499999999999998 # N8
+ 0.2499999999999998 0.5000000000000003 0.2499999999999998 # N9
+ 0.2499999999999998 0.0000000000000000 0.7500000000000001 # N10
+ 0.2499999999999998 0.2499999999999998 0.5000000000000003 # N11
+ 0.2499999999999998 0.7500000000000001 0.0000000000000000 # N12
+ 0.7500000000000001 0.2499999999999998 0.0000000000000000 # N13
+ 0.7500000000000001 0.7500000000000001 0.5000000000000003 # N14
+ 0.5000000000000003 0.0000000000000000 0.0000000000000000 # N15
+ 0.0000000000000000 0.5000000000000003 0.0000000000000000 # N16
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # H1
+ 0.0710000000000001 0.1789999999999998 -0.0930000000000001 # H2
+ 0.5000000000000003 0.0000000000000000 0.5000000000000003 # H3
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # H4
+ 0.9289999999999999 0.3210000000000000 0.5929999999999997 # H5
+ 0.4290000000000002 0.8210000000000002 0.5929999999999997 # H6
+ 0.4290000000000002 0.3210000000000005 1.0930000000000002 # H7
+ 0.0000000000000000 0.2499999999999998 0.2499999999999998 # H8
+ 0.8210000000000002 0.3210000000000000 0.1570000000000003 # H9
+ 0.0000000000000000 0.7500000000000001 0.7500000000000001 # H10
+ 0.8210000000000002 0.8210000000000002 0.6570000000000000 # H11
+ 0.5000000000000003 0.2500000000000003 0.7500000000000001 # H12
+ 0.3210000000000000 0.3210000000000000 0.6570000000000000 # H13
+ 0.5000000000000003 0.7500000000000001 0.2499999999999998 # H14
+ 0.3210000000000000 0.8210000000000002 0.1570000000000003 # H15
+ 0.1790000000000003 0.6790000000000006 0.8430000000000002 # H16
+ 0.1790000000000003 0.1790000000000003 0.3430000000000000 # H17
+ 0.6789999999999999 0.6789999999999999 0.3430000000000000 # H18
+ 0.6790000000000006 0.1790000000000003 0.8430000000000002 # H19
+ 0.1789999999999998 0.0710000000000001 -0.0930000000000001 # H20
+ 0.1790000000000003 0.5710000000000004 0.4070000000000001 # H21
+ 0.6789999999999999 0.0710000000000001 0.4070000000000001 # H22
+ 0.6789999999999999 0.5710000000000004 -0.0930000000000001 # H23
+ 0.3210000000000005 0.4290000000000002 1.0930000000000002 # H24
+ 0.2499999999999998 0.0000000000000000 0.2499999999999998 # H25
+ 0.4290000000000002 0.9289999999999999 0.1570000000000003 # H26
+ 0.2500000000000003 0.5000000000000003 0.7500000000000001 # H27
+ 0.4290000000000002 0.4290000000000002 0.6570000000000000 # H28
+ 0.7500000000000001 0.0000000000000000 0.7500000000000001 # H29
+ 0.9289999999999999 0.9289999999999999 0.6570000000000000 # H30
+ 0.7500000000000001 0.5000000000000003 0.2499999999999998 # H31
+ 0.9289999999999999 0.4290000000000002 0.1570000000000003 # H32
+ 0.5710000000000004 0.0710000000000001 0.8430000000000002 # H33
+ 0.5710000000000004 0.5710000000000004 0.3430000000000000 # H34
+ 0.0710000000000001 0.0710000000000001 0.3430000000000000 # H35
+ 0.0710000000000001 0.5710000000000004 0.8430000000000002 # H36
+ 0.3210000000000005 1.0930000000000002 0.4290000000000002 # H37
+ 0.3210000000000000 0.5930000000000003 0.9289999999999999 # H38
+ 0.8210000000000002 1.0930000000000006 0.9289999999999999 # H39
+ 0.8210000000000002 0.5930000000000003 0.4290000000000002 # H40
+ 0.6789999999999999 -0.0930000000000001 0.5710000000000004 # H41
+ 0.6789999999999999 0.4070000000000001 0.0710000000000001 # H42
+ 0.1789999999999998 -0.0930000000000001 0.0710000000000001 # H43
+ 0.1790000000000003 0.4070000000000001 0.5710000000000004 # H44
+ 0.3210000000000000 0.1570000000000003 0.8210000000000002 # H45
+ 0.3210000000000000 0.6570000000000000 0.3210000000000000 # H46
+ 0.8210000000000002 0.1570000000000003 0.3210000000000000 # H47
+ 0.8210000000000002 0.6570000000000006 0.8210000000000002 # H48
+ 0.6790000000000006 0.8430000000000002 0.1789999999999998 # H49
+ 0.6789999999999999 0.3430000000000000 0.6789999999999999 # H50
+ 0.1790000000000003 0.8430000000000002 0.6789999999999999 # H51
+ 0.1790000000000003 0.3430000000000000 0.1789999999999998 # H52
+ 0.1570000000000003 0.4290000000000002 0.9289999999999999 # H53
+ 0.1570000000000003 0.9289999999999999 0.4290000000000002 # H54
+ 0.6570000000000000 0.4290000000000002 0.4290000000000002 # H55
+ 0.6570000000000006 0.9290000000000005 0.9289999999999999 # H56
+ 0.8430000000000002 0.5710000000000004 0.0710000000000001 # H57
+ 0.8430000000000002 0.0710000000000001 0.5710000000000004 # H58
+ 0.3430000000000000 0.5710000000000004 0.5710000000000004 # H59
+ 0.3430000000000000 0.0710000000000001 0.0710000000000001 # H60
+ 1.0930000000000002 0.4290000000000002 0.3210000000000000 # H61
+ 1.0930000000000002 0.9290000000000005 0.8210000000000002 # H62
+ 0.5930000000000003 0.4290000000000002 0.8210000000000002 # H63
+ 0.5930000000000003 0.9289999999999999 0.3210000000000000 # H64
+ -0.0930000000000001 0.5710000000000004 0.6789999999999999 # H65
+ -0.0930000000000001 0.0710000000000001 0.1789999999999998 # H66
+ 0.4070000000000001 0.5710000000000004 0.1789999999999998 # H67
+ 0.4070000000000001 0.0710000000000001 0.6789999999999999 # H68
+ 0.0710000000000001 0.3430000000000000 0.0710000000000001 # H69
+ 0.0710000000000001 0.8430000000000002 0.5710000000000004 # H70
+ 0.5710000000000004 0.3430000000000000 0.5710000000000004 # H71
+ 0.5710000000000004 0.8430000000000002 0.0710000000000001 # H72
+ 0.9289999999999999 0.6570000000000006 0.9289999999999999 # H73
+ 0.9289999999999999 0.1570000000000003 0.4290000000000002 # H74
+ 0.4290000000000002 0.6570000000000006 0.4290000000000002 # H75
+ 0.4290000000000002 0.1570000000000003 0.9289999999999999 # H76
+ -0.0930000000000001 0.1789999999999998 0.0710000000000001 # H77
+ -0.0930000000000001 0.6790000000000006 0.5710000000000004 # H78
+ 0.4070000000000001 0.1790000000000003 0.5710000000000004 # H79
+ 0.4070000000000001 0.6789999999999999 0.0710000000000001 # H80
+ 1.0930000000000002 0.8210000000000002 0.9289999999999999 # H81
+ 1.0930000000000002 0.3210000000000000 0.4290000000000002 # H82
+ 0.5930000000000003 0.8210000000000002 0.4290000000000002 # H83
+ 0.5930000000000003 0.3210000000000000 0.9289999999999999 # H84
+ 0.0710000000000001 -0.0930000000000001 0.1789999999999998 # H85
+ 0.0710000000000001 0.4070000000000001 0.6789999999999999 # H86
+ 0.5710000000000004 -0.0930000000000001 0.6789999999999999 # H87
+ 0.5710000000000004 0.4070000000000001 0.1789999999999998 # H88
+ 0.9289999999999999 1.0930000000000006 0.8210000000000002 # H89
+ 0.9289999999999999 0.5929999999999997 0.3210000000000000 # H90
+ 0.4290000000000002 1.0930000000000002 0.3210000000000000 # H91
+ 0.4290000000000002 0.5930000000000003 0.8210000000000002 # H92
+ 0.3430000000000000 0.1790000000000003 0.1789999999999998 # H93
+ 0.3430000000000000 0.6790000000000006 0.6789999999999999 # H94
+ 0.8430000000000002 0.1790000000000003 0.6789999999999999 # H95
+ 0.8430000000000002 0.6789999999999999 0.1789999999999998 # H96
+ 0.6570000000000006 0.8210000000000002 0.8210000000000002 # H97
+ 0.6570000000000000 0.3210000000000000 0.3210000000000000 # H98
+ 0.1570000000000003 0.8210000000000002 0.3210000000000000 # H99
+ 0.1570000000000003 0.3210000000000000 0.8210000000000002 # H100
+ 0.9289999999999999 0.8210000000000002 1.0930000000000002 # H101
+ 0.7500000000000001 0.7500000000000001 0.0000000000000000 # H102
+ 0.5710000000000004 0.6789999999999999 -0.0930000000000001 # H103
+ 0.7500000000000001 0.2499999999999998 0.5000000000000003 # H104
+ 0.5710000000000004 0.1790000000000003 0.4070000000000001 # H105
+ 0.2500000000000003 0.7500000000000001 0.5000000000000003 # H106
+ 0.0710000000000001 0.6790000000000006 0.4070000000000001 # H107
+ 0.2499999999999998 0.2499999999999998 0.0000000000000000 # H108
+ 0.8210000000000002 0.9290000000000005 1.0930000000000002 # H109
+ 0.0000000000000000 0.5000000000000003 0.5000000000000003 # H110
+ 0.8210000000000002 0.4290000000000002 0.5929999999999997 # H111
+ 0.3210000000000000 0.9289999999999999 0.5929999999999997 # H112
diff --git a/test/data/cubic/POSCAR-227-2 b/test/data/cubic/POSCAR-227-2
new file mode 100644
index 0000000..20aa1b6
--- /dev/null
+++ b/test/data/cubic/POSCAR-227-2
@@ -0,0 +1,479 @@
+$cell vectors
+1.0
+ 23.2549890575511107 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 23.2549890575511107 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 23.2549890575511107
+ 96 8 368
+Direct
+ 0.0168000000000000 0.0168000000000000 0.1295000000000000 # Mo1
+ 0.0168000000000000 0.5168000000000001 0.6295000000000001 # Mo2
+ 0.5168000000000001 0.0168000000000000 0.6295000000000001 # Mo3
+ 0.5168000000000001 0.5168000000000001 0.1295000000000000 # Mo4
+ 0.9832000000000002 0.9832000000000003 0.8705000000000001 # Mo5
+ 0.9832000000000002 0.4832000000000001 0.3705000000000001 # Mo6
+ 0.4832000000000001 0.9832000000000002 0.3705000000000001 # Mo7
+ 0.4832000000000001 0.4832000000000001 0.8705000000000001 # Mo8
+ 0.9832000000000002 0.2668000000000000 0.3795000000000002 # Mo9
+ 0.9832000000000002 0.7668000000000004 0.8795000000000001 # Mo10
+ 0.4832000000000001 0.2668000000000001 0.8795000000000001 # Mo11
+ 0.4832000000000001 0.7668000000000004 0.3795000000000002 # Mo12
+ 0.0168000000000000 0.7332000000000001 0.6205000000000002 # Mo13
+ 0.0168000000000000 0.2332000000000001 0.1204999999999999 # Mo14
+ 0.5168000000000001 0.7332000000000001 0.1204999999999999 # Mo15
+ 0.5168000000000001 0.2332000000000001 0.6205000000000002 # Mo16
+ 0.2332000000000001 0.2332000000000001 0.1295000000000000 # Mo17
+ 0.2332000000000001 0.7332000000000001 0.6295000000000001 # Mo18
+ 0.7332000000000001 0.2332000000000001 0.6295000000000001 # Mo19
+ 0.7332000000000001 0.7332000000000001 0.1295000000000000 # Mo20
+ 0.7668000000000004 0.7668000000000004 0.8705000000000001 # Mo21
+ 0.7668000000000004 0.2668000000000000 0.3705000000000001 # Mo22
+ 0.2668000000000001 0.7668000000000004 0.3705000000000001 # Mo23
+ 0.2668000000000000 0.2668000000000001 0.8705000000000001 # Mo24
+ 0.2668000000000001 0.9832000000000002 0.3795000000000002 # Mo25
+ 0.2668000000000001 0.4832000000000001 0.8795000000000001 # Mo26
+ 0.7668000000000004 0.9832000000000003 0.8795000000000001 # Mo27
+ 0.7668000000000004 0.4832000000000001 0.3795000000000002 # Mo28
+ 0.7332000000000001 0.0168000000000000 0.6205000000000002 # Mo29
+ 0.7332000000000001 0.5168000000000001 0.1204999999999999 # Mo30
+ 0.2332000000000001 0.0168000000000000 0.1204999999999999 # Mo31
+ 0.2332000000000001 0.5168000000000001 0.6205000000000002 # Mo32
+ 0.2668000000000000 0.8705000000000001 0.2668000000000000 # Mo33
+ 0.2668000000000001 0.3705000000000001 0.7668000000000004 # Mo34
+ 0.7668000000000004 0.8705000000000005 0.7668000000000004 # Mo35
+ 0.7668000000000004 0.3705000000000001 0.2668000000000000 # Mo36
+ 0.7332000000000001 0.1295000000000000 0.7332000000000001 # Mo37
+ 0.7332000000000001 0.6295000000000001 0.2332000000000001 # Mo38
+ 0.2332000000000001 0.1295000000000000 0.2332000000000001 # Mo39
+ 0.2332000000000001 0.6295000000000001 0.7332000000000001 # Mo40
+ 0.2668000000000001 0.3795000000000002 0.9832000000000002 # Mo41
+ 0.2668000000000001 0.8795000000000001 0.4832000000000001 # Mo42
+ 0.7668000000000004 0.3795000000000002 0.4832000000000001 # Mo43
+ 0.7668000000000004 0.8795000000000001 0.9832000000000002 # Mo44
+ 0.7332000000000001 0.6205000000000002 0.0168000000000000 # Mo45
+ 0.7332000000000001 0.1205000000000001 0.5168000000000001 # Mo46
+ 0.2332000000000001 0.6205000000000002 0.5168000000000001 # Mo47
+ 0.2332000000000001 0.1204999999999999 0.0168000000000000 # Mo48
+ 0.3795000000000002 0.2668000000000001 0.9832000000000002 # Mo49
+ 0.3795000000000002 0.7668000000000004 0.4832000000000001 # Mo50
+ 0.8795000000000001 0.2668000000000000 0.4832000000000001 # Mo51
+ 0.8795000000000001 0.7668000000000004 0.9832000000000002 # Mo52
+ 0.6205000000000002 0.7332000000000001 0.0168000000000000 # Mo53
+ 0.6205000000000002 0.2332000000000001 0.5168000000000001 # Mo54
+ 0.1205000000000001 0.7332000000000001 0.5168000000000001 # Mo55
+ 0.1205000000000001 0.2332000000000001 0.0168000000000000 # Mo56
+ 0.8705000000000001 0.2668000000000000 0.2668000000000000 # Mo57
+ 0.8705000000000001 0.7668000000000004 0.7668000000000004 # Mo58
+ 0.3705000000000001 0.2668000000000001 0.7668000000000004 # Mo59
+ 0.3705000000000001 0.7668000000000004 0.2668000000000000 # Mo60
+ 0.1295000000000000 0.7332000000000003 0.7332000000000001 # Mo61
+ 0.1295000000000000 0.2332000000000001 0.2332000000000001 # Mo62
+ 0.6295000000000001 0.7332000000000001 0.2332000000000001 # Mo63
+ 0.6295000000000001 0.2332000000000001 0.7332000000000001 # Mo64
+ 0.1295000000000000 0.0168000000000000 0.0168000000000000 # Mo65
+ 0.1295000000000000 0.5168000000000001 0.5168000000000004 # Mo66
+ 0.6295000000000001 0.0168000000000000 0.5168000000000004 # Mo67
+ 0.6295000000000001 0.5168000000000001 0.0168000000000000 # Mo68
+ 0.8705000000000001 0.9832000000000003 0.9832000000000002 # Mo69
+ 0.8705000000000001 0.4832000000000001 0.4832000000000001 # Mo70
+ 0.3705000000000001 0.9832000000000002 0.4832000000000001 # Mo71
+ 0.3705000000000001 0.4832000000000001 0.9832000000000002 # Mo72
+ 0.0168000000000000 0.1295000000000000 0.0168000000000000 # Mo73
+ 0.0168000000000000 0.6295000000000001 0.5168000000000004 # Mo74
+ 0.5168000000000001 0.1295000000000000 0.5168000000000004 # Mo75
+ 0.5168000000000001 0.6295000000000001 0.0168000000000000 # Mo76
+ 0.9832000000000002 0.8705000000000005 0.9832000000000002 # Mo77
+ 0.9832000000000002 0.3705000000000001 0.4832000000000001 # Mo78
+ 0.4832000000000001 0.8705000000000001 0.4832000000000001 # Mo79
+ 0.4832000000000001 0.3705000000000001 0.9832000000000002 # Mo80
+ 0.1205000000000001 0.0168000000000000 0.2332000000000001 # Mo81
+ 0.1205000000000001 0.5168000000000001 0.7332000000000001 # Mo82
+ 0.6205000000000002 0.0168000000000000 0.7332000000000001 # Mo83
+ 0.6205000000000002 0.5168000000000001 0.2332000000000001 # Mo84
+ 0.8795000000000001 0.9832000000000003 0.7668000000000004 # Mo85
+ 0.8795000000000001 0.4832000000000001 0.2668000000000000 # Mo86
+ 0.3795000000000002 0.9832000000000002 0.2668000000000000 # Mo87
+ 0.3795000000000002 0.4832000000000001 0.7668000000000004 # Mo88
+ 0.0168000000000000 0.1205000000000001 0.2332000000000001 # Mo89
+ 0.0168000000000000 0.6205000000000002 0.7332000000000001 # Mo90
+ 0.5168000000000001 0.1205000000000001 0.7332000000000001 # Mo91
+ 0.5168000000000001 0.6205000000000002 0.2332000000000001 # Mo92
+ 0.9832000000000002 0.8795000000000001 0.7668000000000004 # Mo93
+ 0.9832000000000002 0.3795000000000002 0.2668000000000000 # Mo94
+ 0.4832000000000001 0.8795000000000001 0.2668000000000000 # Mo95
+ 0.4832000000000001 0.3795000000000002 0.7668000000000004 # Mo96
+ 0.1250000000000001 0.1250000000000001 0.1250000000000001 # P1
+ 0.1250000000000001 0.6250000000000001 0.6250000000000001 # P2
+ 0.6250000000000001 0.1250000000000001 0.6250000000000001 # P3
+ 0.6250000000000001 0.6250000000000001 0.1250000000000001 # P4
+ 0.8750000000000000 0.8750000000000003 0.8750000000000000 # P5
+ 0.8750000000000000 0.3750000000000003 0.3750000000000001 # P6
+ 0.3750000000000003 0.8750000000000000 0.3750000000000001 # P7
+ 0.3750000000000003 0.3750000000000003 0.8750000000000000 # P8
+ 0.1738000000000001 0.1738000000000001 -0.0020000000000001 # O1
+ 0.0617000000000001 0.0617000000000001 0.2691000000000000 # O2
+ 0.2843000000000000 0.2843000000000000 0.1180000000000001 # O3
+ 0.1622000000000001 0.1622000000000001 0.1622000000000000 # O4
+ 0.1250000000000001 0.1250000000000001 0.8750000000000000 # O5
+ 0.1738000000000001 0.6738000000000002 0.4979999999999999 # O6
+ 0.0617000000000001 0.5617000000000002 0.7691000000000002 # O7
+ 0.2843000000000002 0.7843000000000000 0.6180000000000001 # O8
+ 0.1622000000000001 0.6622000000000002 0.6622000000000000 # O9
+ 0.1250000000000001 0.6250000000000001 0.3750000000000001 # O10
+ 0.6738000000000000 0.1738000000000001 0.4979999999999999 # O11
+ 0.5617000000000002 0.0617000000000001 0.7691000000000002 # O12
+ 0.7843000000000000 0.2843000000000002 0.6180000000000001 # O13
+ 0.6622000000000002 0.1622000000000001 0.6622000000000000 # O14
+ 0.6250000000000001 0.1250000000000001 0.3750000000000001 # O15
+ 0.6738000000000002 0.6738000000000000 -0.0020000000000001 # O16
+ 0.5617000000000002 0.5617000000000002 0.2691000000000000 # O17
+ 0.7843000000000000 0.7843000000000000 0.1180000000000001 # O18
+ 0.6622000000000002 0.6622000000000000 0.1622000000000000 # O19
+ 0.6250000000000003 0.6250000000000001 0.8750000000000000 # O20
+ 0.8262000000000000 0.8262000000000004 1.0020000000000002 # O21
+ 0.9383000000000004 0.9383000000000004 0.7309000000000001 # O22
+ 0.7157000000000001 0.7157000000000003 0.8820000000000001 # O23
+ 0.8377999999999999 0.8378000000000002 0.8377999999999999 # O24
+ 0.8750000000000000 0.8750000000000000 0.1250000000000001 # O25
+ 0.8262000000000000 0.3262000000000002 0.5020000000000002 # O26
+ 0.9383000000000004 0.4383000000000000 0.2309000000000000 # O27
+ 0.7157000000000001 0.2157000000000001 0.3820000000000000 # O28
+ 0.8377999999999999 0.3378000000000002 0.3378000000000002 # O29
+ 0.8750000000000000 0.3750000000000003 0.6250000000000001 # O30
+ 0.3262000000000002 0.8262000000000000 0.5020000000000002 # O31
+ 0.4383000000000002 0.9383000000000004 0.2309000000000000 # O32
+ 0.2157000000000001 0.7157000000000001 0.3820000000000000 # O33
+ 0.3378000000000002 0.8377999999999999 0.3378000000000002 # O34
+ 0.3750000000000003 0.8750000000000000 0.6250000000000001 # O35
+ 0.3262000000000002 0.3262000000000002 1.0020000000000002 # O36
+ 0.4383000000000002 0.4383000000000002 0.7309000000000001 # O37
+ 0.2157000000000001 0.2157000000000001 0.8820000000000001 # O38
+ 0.3378000000000002 0.3378000000000002 0.8377999999999999 # O39
+ 0.3750000000000001 0.3750000000000001 0.1250000000000001 # O40
+ 0.8262000000000000 0.4238000000000001 0.2480000000000001 # O41
+ 0.9383000000000004 0.3117000000000000 0.5191000000000002 # O42
+ 0.7157000000000001 0.5343000000000001 0.3680000000000000 # O43
+ 0.8377999999999999 0.4122000000000001 0.4122000000000001 # O44
+ 0.8750000000000000 0.3750000000000001 0.1250000000000001 # O45
+ 0.8262000000000000 0.9238000000000003 0.7480000000000001 # O46
+ 0.9383000000000004 0.8117000000000003 1.0191000000000001 # O47
+ 0.7157000000000001 1.0343000000000002 0.8679999999999999 # O48
+ 0.8377999999999999 0.9122000000000003 0.9122000000000003 # O49
+ 0.8750000000000000 0.8750000000000000 0.6250000000000001 # O50
+ 0.3262000000000002 0.4238000000000002 0.7480000000000001 # O51
+ 0.4383000000000002 0.3117000000000000 1.0191000000000001 # O52
+ 0.2157000000000001 0.5343000000000001 0.8679999999999999 # O53
+ 0.3378000000000002 0.4122000000000001 0.9122000000000003 # O54
+ 0.3750000000000003 0.3750000000000003 0.6250000000000001 # O55
+ 0.3262000000000002 0.9237999999999998 0.2480000000000001 # O56
+ 0.4383000000000002 0.8117000000000000 0.5191000000000002 # O57
+ 0.2157000000000001 1.0343000000000002 0.3680000000000000 # O58
+ 0.3378000000000002 0.9122000000000003 0.4122000000000001 # O59
+ 0.3750000000000003 0.8750000000000000 0.1250000000000001 # O60
+ 0.1738000000000001 0.5762000000000000 0.7520000000000001 # O61
+ 0.0617000000000001 0.6883000000000001 0.4808999999999999 # O62
+ 0.2843000000000002 0.4657000000000003 0.6320000000000001 # O63
+ 0.1622000000000001 0.5878000000000002 0.5878000000000000 # O64
+ 0.1250000000000001 0.6250000000000001 0.8750000000000000 # O65
+ 0.1738000000000001 0.0762000000000001 0.2520000000000000 # O66
+ 0.0617000000000001 0.1883000000000001 -0.0190999999999999 # O67
+ 0.2843000000000000 -0.0343000000000000 0.1320000000000001 # O68
+ 0.1622000000000000 0.0878000000000000 0.0878000000000000 # O69
+ 0.1250000000000001 0.1250000000000001 0.3750000000000001 # O70
+ 0.6738000000000000 0.5762000000000000 0.2520000000000000 # O71
+ 0.5617000000000002 0.6883000000000001 -0.0190999999999999 # O72
+ 0.7843000000000000 0.4657000000000000 0.1320000000000001 # O73
+ 0.6622000000000000 0.5878000000000000 0.0878000000000000 # O74
+ 0.6250000000000001 0.6250000000000001 0.3750000000000001 # O75
+ 0.6738000000000002 0.0762000000000001 0.7520000000000001 # O76
+ 0.5617000000000002 0.1883000000000001 0.4808999999999999 # O77
+ 0.7843000000000000 -0.0342999999999998 0.6320000000000001 # O78
+ 0.6622000000000000 0.0878000000000000 0.5878000000000000 # O79
+ 0.6250000000000001 0.1250000000000001 0.8750000000000000 # O80
+ 0.0762000000000001 0.0762000000000001 -0.0020000000000001 # O81
+ 0.1883000000000001 0.1883000000000001 0.2691000000000000 # O82
+ -0.0343000000000000 -0.0343000000000000 0.1180000000000001 # O83
+ 0.0878000000000000 0.0878000000000000 0.1622000000000000 # O84
+ 0.0762000000000001 0.5762000000000000 0.4980000000000001 # O85
+ 0.1883000000000001 0.6883000000000005 0.7691000000000002 # O86
+ -0.0343000000000000 0.4657000000000003 0.6180000000000001 # O87
+ 0.0878000000000000 0.5878000000000002 0.6622000000000000 # O88
+ 0.5762000000000000 0.0762000000000001 0.4980000000000001 # O89
+ 0.6883000000000001 0.1883000000000001 0.7691000000000002 # O90
+ 0.4657000000000000 -0.0343000000000000 0.6180000000000001 # O91
+ 0.5878000000000002 0.0878000000000000 0.6622000000000000 # O92
+ 0.5762000000000000 0.5762000000000000 -0.0020000000000001 # O93
+ 0.6883000000000001 0.6883000000000001 0.2691000000000000 # O94
+ 0.4657000000000000 0.4657000000000000 0.1180000000000001 # O95
+ 0.5878000000000000 0.5878000000000000 0.1622000000000000 # O96
+ 0.9237999999999998 0.9238000000000003 1.0020000000000002 # O97
+ 0.8117000000000000 0.8117000000000003 0.7309000000000001 # O98
+ 1.0343000000000002 1.0343000000000002 0.8820000000000001 # O99
+ 0.9122000000000003 0.9122000000000003 0.8377999999999999 # O100
+ 0.9237999999999998 0.4238000000000002 0.5020000000000002 # O101
+ 0.8117000000000000 0.3117000000000000 0.2309000000000000 # O102
+ 1.0343000000000002 0.5343000000000001 0.3820000000000000 # O103
+ 0.9122000000000003 0.4122000000000001 0.3378000000000002 # O104
+ 0.4238000000000002 0.9237999999999998 0.5020000000000002 # O105
+ 0.3117000000000000 0.8117000000000000 0.2309000000000000 # O106
+ 0.5343000000000001 1.0343000000000002 0.3820000000000000 # O107
+ 0.4122000000000001 0.9122000000000003 0.3378000000000002 # O108
+ 0.4238000000000002 0.4238000000000002 1.0020000000000002 # O109
+ 0.3117000000000000 0.3117000000000000 0.7309000000000001 # O110
+ 0.5343000000000001 0.5343000000000001 0.8820000000000001 # O111
+ 0.4122000000000001 0.4122000000000001 0.8377999999999999 # O112
+ 0.4238000000000002 0.8262000000000000 0.2480000000000001 # O113
+ 0.3117000000000000 0.9383000000000004 0.5191000000000002 # O114
+ 0.5343000000000001 0.7157000000000001 0.3680000000000000 # O115
+ 0.4122000000000001 0.8377999999999999 0.4122000000000001 # O116
+ 0.4238000000000002 0.3262000000000002 0.7480000000000001 # O117
+ 0.3117000000000000 0.4383000000000002 1.0191000000000001 # O118
+ 0.5343000000000001 0.2157000000000001 0.8679999999999999 # O119
+ 0.4122000000000001 0.3378000000000002 0.9122000000000003 # O120
+ 0.9237999999999998 0.8262000000000004 0.7480000000000001 # O121
+ 0.8117000000000000 0.9383000000000004 1.0191000000000001 # O122
+ 1.0343000000000002 0.7157000000000003 0.8679999999999999 # O123
+ 0.9122000000000003 0.8378000000000002 0.9122000000000003 # O124
+ 0.9237999999999998 0.3262000000000002 0.2480000000000001 # O125
+ 0.8117000000000000 0.4383000000000002 0.5191000000000002 # O126
+ 1.0343000000000002 0.2157000000000001 0.3680000000000000 # O127
+ 0.9122000000000003 0.3378000000000002 0.4122000000000001 # O128
+ 0.5762000000000000 0.1738000000000001 0.7520000000000001 # O129
+ 0.6883000000000001 0.0617000000000001 0.4808999999999999 # O130
+ 0.4657000000000003 0.2843000000000002 0.6320000000000001 # O131
+ 0.5878000000000000 0.1622000000000001 0.5878000000000000 # O132
+ 0.5762000000000000 0.6738000000000000 0.2520000000000000 # O133
+ 0.6883000000000001 0.5617000000000002 -0.0190999999999999 # O134
+ 0.4657000000000003 0.7843000000000000 0.1320000000000001 # O135
+ 0.5878000000000002 0.6622000000000000 0.0878000000000000 # O136
+ 0.0762000000000001 0.1738000000000001 0.2520000000000000 # O137
+ 0.1883000000000001 0.0617000000000001 -0.0190999999999999 # O138
+ -0.0343000000000000 0.2843000000000000 0.1320000000000001 # O139
+ 0.0878000000000000 0.1622000000000001 0.0878000000000000 # O140
+ 0.0762000000000001 0.6738000000000002 0.7520000000000001 # O141
+ 0.1883000000000001 0.5617000000000002 0.4808999999999999 # O142
+ -0.0342999999999998 0.7843000000000000 0.6320000000000001 # O143
+ 0.0878000000000000 0.6622000000000002 0.5878000000000000 # O144
+ 0.4238000000000002 1.0020000000000002 0.4238000000000001 # O145
+ 0.3117000000000000 0.7309000000000001 0.3117000000000000 # O146
+ 0.5343000000000001 0.8820000000000001 0.5343000000000001 # O147
+ 0.3750000000000001 0.1250000000000001 0.3750000000000001 # O148
+ 0.4238000000000002 0.5020000000000002 0.9237999999999998 # O149
+ 0.3117000000000000 0.2309000000000000 0.8117000000000000 # O150
+ 0.5343000000000001 0.3820000000000003 1.0343000000000002 # O151
+ 0.3750000000000003 0.6250000000000001 0.8750000000000000 # O152
+ 0.9237999999999998 1.0020000000000004 0.9237999999999998 # O153
+ 0.8117000000000000 0.7309000000000001 0.8117000000000000 # O154
+ 1.0343000000000002 0.8820000000000002 1.0343000000000002 # O155
+ 0.8750000000000000 0.1250000000000001 0.8750000000000000 # O156
+ 0.9237999999999998 0.5020000000000002 0.4238000000000001 # O157
+ 0.8117000000000000 0.2309000000000000 0.3117000000000000 # O158
+ 1.0343000000000002 0.3820000000000003 0.5343000000000001 # O159
+ 0.8750000000000000 0.6250000000000001 0.3750000000000001 # O160
+ 0.5762000000000000 -0.0019999999999999 0.5762000000000000 # O161
+ 0.6883000000000001 0.2691000000000000 0.6883000000000001 # O162
+ 0.4657000000000000 0.1180000000000001 0.4657000000000003 # O163
+ 0.6250000000000003 0.8750000000000000 0.6250000000000001 # O164
+ 0.5762000000000000 0.4979999999999999 0.0762000000000001 # O165
+ 0.6883000000000001 0.7691000000000002 0.1883000000000001 # O166
+ 0.4657000000000000 0.6180000000000001 -0.0343000000000000 # O167
+ 0.6250000000000001 0.3750000000000001 0.1250000000000001 # O168
+ 0.0762000000000001 -0.0020000000000001 0.0762000000000001 # O169
+ 0.1883000000000001 0.2691000000000000 0.1883000000000001 # O170
+ -0.0343000000000000 0.1180000000000001 -0.0343000000000000 # O171
+ 0.1250000000000001 0.8750000000000000 0.1250000000000001 # O172
+ 0.0762000000000001 0.4980000000000001 0.5762000000000000 # O173
+ 0.1883000000000001 0.7691000000000003 0.6883000000000001 # O174
+ -0.0343000000000000 0.6180000000000001 0.4657000000000003 # O175
+ 0.1250000000000001 0.3750000000000003 0.6250000000000001 # O176
+ 0.4238000000000002 0.2480000000000001 0.8262000000000000 # O177
+ 0.3117000000000000 0.5191000000000002 0.9383000000000004 # O178
+ 0.5343000000000001 0.3680000000000003 0.7157000000000001 # O179
+ 0.3750000000000003 0.1250000000000001 0.8750000000000000 # O180
+ 0.4238000000000002 0.7480000000000001 0.3262000000000000 # O181
+ 0.3117000000000000 1.0191000000000001 0.4383000000000000 # O182
+ 0.5343000000000001 0.8679999999999999 0.2157000000000001 # O183
+ 0.3750000000000003 0.6250000000000001 0.3750000000000001 # O184
+ 0.9237999999999998 0.2480000000000001 0.3262000000000000 # O185
+ 0.8117000000000000 0.5191000000000002 0.4383000000000000 # O186
+ 1.0343000000000002 0.3680000000000000 0.2157000000000001 # O187
+ 0.8750000000000000 0.1250000000000001 0.3750000000000001 # O188
+ 0.9237999999999998 0.7480000000000003 0.8262000000000000 # O189
+ 0.8117000000000000 1.0191000000000003 0.9383000000000004 # O190
+ 1.0343000000000002 0.8680000000000003 0.7157000000000001 # O191
+ 0.8750000000000000 0.6250000000000001 0.8750000000000000 # O192
+ 0.5762000000000000 0.7520000000000001 0.1738000000000001 # O193
+ 0.6883000000000001 0.4808999999999999 0.0617000000000001 # O194
+ 0.4657000000000003 0.6320000000000001 0.2843000000000000 # O195
+ 0.6250000000000001 0.8750000000000000 0.1250000000000001 # O196
+ 0.5762000000000000 0.2520000000000000 0.6738000000000000 # O197
+ 0.6883000000000001 -0.0190999999999999 0.5617000000000002 # O198
+ 0.4657000000000003 0.1320000000000001 0.7843000000000000 # O199
+ 0.6250000000000001 0.3750000000000003 0.6250000000000001 # O200
+ 0.0762000000000001 0.7520000000000001 0.6738000000000000 # O201
+ 0.1883000000000001 0.4809000000000002 0.5617000000000002 # O202
+ -0.0342999999999998 0.6320000000000001 0.7843000000000000 # O203
+ 0.1250000000000001 0.8750000000000000 0.6250000000000001 # O204
+ 0.0762000000000001 0.2520000000000000 0.1738000000000001 # O205
+ 0.1883000000000001 -0.0190999999999999 0.0617000000000001 # O206
+ -0.0343000000000000 0.1320000000000001 0.2843000000000000 # O207
+ 0.1250000000000001 0.3750000000000001 0.1250000000000001 # O208
+ 0.2480000000000001 0.4238000000000002 0.8262000000000000 # O209
+ 0.5191000000000002 0.3117000000000000 0.9383000000000004 # O210
+ 0.3680000000000003 0.5343000000000001 0.7157000000000001 # O211
+ 0.1250000000000001 0.3750000000000003 0.8750000000000000 # O212
+ 0.2480000000000001 0.9237999999999998 0.3262000000000000 # O213
+ 0.5191000000000002 0.8117000000000000 0.4383000000000000 # O214
+ 0.3680000000000003 1.0343000000000002 0.2157000000000001 # O215
+ 0.1250000000000001 0.8750000000000000 0.3750000000000001 # O216
+ 0.7480000000000001 0.4238000000000001 0.3262000000000000 # O217
+ 1.0191000000000001 0.3117000000000000 0.4383000000000000 # O218
+ 0.8679999999999999 0.5343000000000001 0.2157000000000001 # O219
+ 0.6250000000000001 0.3750000000000003 0.3750000000000001 # O220
+ 0.7480000000000001 0.9238000000000003 0.8262000000000000 # O221
+ 1.0191000000000001 0.8117000000000003 0.9383000000000004 # O222
+ 0.8679999999999999 1.0343000000000002 0.7157000000000001 # O223
+ 0.6250000000000003 0.8750000000000003 0.8750000000000000 # O224
+ 0.7520000000000001 0.5762000000000000 0.1738000000000001 # O225
+ 0.4809000000000002 0.6883000000000001 0.0617000000000001 # O226
+ 0.6320000000000001 0.4657000000000000 0.2843000000000000 # O227
+ 0.8750000000000000 0.6250000000000001 0.1250000000000001 # O228
+ 0.7520000000000001 0.0762000000000001 0.6738000000000000 # O229
+ 0.4808999999999999 0.1883000000000001 0.5617000000000002 # O230
+ 0.6320000000000001 -0.0342999999999998 0.7843000000000000 # O231
+ 0.8750000000000000 0.1250000000000001 0.6250000000000001 # O232
+ 0.2520000000000000 0.5762000000000000 0.6738000000000000 # O233
+ -0.0190999999999999 0.6883000000000001 0.5617000000000002 # O234
+ 0.1320000000000001 0.4657000000000003 0.7843000000000000 # O235
+ 0.3750000000000003 0.6250000000000001 0.6250000000000001 # O236
+ 0.2520000000000000 0.0762000000000001 0.1738000000000001 # O237
+ -0.0190999999999999 0.1883000000000001 0.0617000000000001 # O238
+ 0.1320000000000001 -0.0343000000000000 0.2843000000000000 # O239
+ 0.3750000000000001 0.1250000000000001 0.1250000000000001 # O240
+ 1.0020000000000002 0.4238000000000002 0.4238000000000001 # O241
+ 0.7309000000000001 0.3117000000000000 0.3117000000000000 # O242
+ 0.8820000000000001 0.5343000000000001 0.5343000000000001 # O243
+ 0.1250000000000001 0.3750000000000003 0.3750000000000001 # O244
+ 1.0020000000000002 0.9238000000000003 0.9237999999999998 # O245
+ 0.7309000000000001 0.8117000000000003 0.8117000000000000 # O246
+ 0.8820000000000001 1.0343000000000002 1.0343000000000002 # O247
+ 0.1250000000000001 0.8750000000000003 0.8750000000000000 # O248
+ 0.5020000000000002 0.4238000000000002 0.9237999999999998 # O249
+ 0.2309000000000000 0.3117000000000000 0.8117000000000000 # O250
+ 0.3820000000000003 0.5343000000000001 1.0343000000000002 # O251
+ 0.6250000000000001 0.3750000000000003 0.8750000000000000 # O252
+ 0.5020000000000002 0.9237999999999998 0.4238000000000001 # O253
+ 0.2309000000000000 0.8117000000000000 0.3117000000000000 # O254
+ 0.3820000000000003 1.0343000000000002 0.5343000000000001 # O255
+ 0.6250000000000001 0.8750000000000000 0.3750000000000001 # O256
+ -0.0019999999999999 0.5762000000000000 0.5762000000000000 # O257
+ 0.2691000000000000 0.6883000000000005 0.6883000000000001 # O258
+ 0.1180000000000001 0.4657000000000003 0.4657000000000003 # O259
+ 0.8750000000000000 0.6250000000000001 0.6250000000000001 # O260
+ -0.0020000000000001 0.0762000000000001 0.0762000000000001 # O261
+ 0.2691000000000000 0.1883000000000001 0.1883000000000001 # O262
+ 0.1180000000000001 -0.0343000000000000 -0.0343000000000000 # O263
+ 0.8750000000000000 0.1250000000000001 0.1250000000000001 # O264
+ 0.4979999999999999 0.5762000000000000 0.0762000000000001 # O265
+ 0.7691000000000002 0.6883000000000001 0.1883000000000001 # O266
+ 0.6180000000000001 0.4657000000000000 -0.0343000000000000 # O267
+ 0.3750000000000003 0.6250000000000001 0.1250000000000001 # O268
+ 0.4979999999999999 0.0762000000000001 0.5762000000000000 # O269
+ 0.7691000000000002 0.1883000000000001 0.6883000000000001 # O270
+ 0.6180000000000001 -0.0343000000000000 0.4657000000000003 # O271
+ 0.3750000000000003 0.1250000000000001 0.6250000000000001 # O272
+ -0.0019999999999999 0.1738000000000001 0.1738000000000001 # O273
+ 0.2691000000000000 0.0617000000000001 0.0617000000000001 # O274
+ 0.1180000000000001 0.2843000000000002 0.2843000000000000 # O275
+ -0.0019999999999999 0.6738000000000002 0.6738000000000000 # O276
+ 0.2691000000000000 0.5617000000000002 0.5617000000000002 # O277
+ 0.1180000000000001 0.7843000000000003 0.7843000000000000 # O278
+ 0.4980000000000001 0.1738000000000001 0.6738000000000000 # O279
+ 0.7691000000000002 0.0617000000000001 0.5617000000000002 # O280
+ 0.6180000000000001 0.2843000000000002 0.7843000000000000 # O281
+ 0.4980000000000001 0.6738000000000000 0.1738000000000001 # O282
+ 0.7691000000000002 0.5617000000000002 0.0617000000000001 # O283
+ 0.6180000000000001 0.7843000000000000 0.2843000000000000 # O284
+ 1.0020000000000002 0.8262000000000004 0.8262000000000000 # O285
+ 0.7309000000000001 0.9383000000000004 0.9383000000000004 # O286
+ 0.8820000000000001 0.7157000000000003 0.7157000000000001 # O287
+ 1.0020000000000002 0.3262000000000002 0.3262000000000000 # O288
+ 0.7309000000000001 0.4383000000000002 0.4383000000000000 # O289
+ 0.8820000000000001 0.2157000000000001 0.2157000000000001 # O290
+ 0.5020000000000002 0.8262000000000000 0.3262000000000000 # O291
+ 0.2309000000000003 0.9383000000000004 0.4383000000000000 # O292
+ 0.3820000000000003 0.7157000000000001 0.2157000000000001 # O293
+ 0.5020000000000002 0.3262000000000002 0.8262000000000000 # O294
+ 0.2309000000000003 0.4383000000000002 0.9383000000000004 # O295
+ 0.3820000000000003 0.2157000000000001 0.7157000000000001 # O296
+ 0.1738000000000001 -0.0019999999999999 0.1738000000000001 # O297
+ 0.0617000000000001 0.2691000000000000 0.0617000000000001 # O298
+ 0.2843000000000000 0.1180000000000001 0.2843000000000000 # O299
+ 0.1738000000000001 0.4980000000000001 0.6738000000000000 # O300
+ 0.0617000000000001 0.7691000000000002 0.5617000000000002 # O301
+ 0.2843000000000002 0.6180000000000001 0.7843000000000000 # O302
+ 0.6738000000000002 -0.0019999999999999 0.6738000000000000 # O303
+ 0.5617000000000002 0.2691000000000000 0.5617000000000002 # O304
+ 0.7843000000000000 0.1180000000000001 0.7843000000000000 # O305
+ 0.6738000000000000 0.4979999999999999 0.1738000000000001 # O306
+ 0.5617000000000002 0.7691000000000002 0.0617000000000001 # O307
+ 0.7843000000000000 0.6180000000000001 0.2843000000000000 # O308
+ 0.8262000000000000 1.0020000000000004 0.8262000000000000 # O309
+ 0.9383000000000004 0.7309000000000001 0.9383000000000004 # O310
+ 0.7157000000000001 0.8820000000000002 0.7157000000000001 # O311
+ 0.8262000000000000 0.5020000000000002 0.3262000000000000 # O312
+ 0.9383000000000004 0.2309000000000000 0.4383000000000000 # O313
+ 0.7157000000000001 0.3820000000000000 0.2157000000000001 # O314
+ 0.3262000000000002 1.0020000000000002 0.3262000000000000 # O315
+ 0.4383000000000002 0.7309000000000001 0.4383000000000000 # O316
+ 0.2157000000000001 0.8820000000000001 0.2157000000000001 # O317
+ 0.3262000000000002 0.5020000000000002 0.8262000000000000 # O318
+ 0.4383000000000002 0.2309000000000003 0.9383000000000004 # O319
+ 0.2157000000000001 0.3820000000000003 0.7157000000000001 # O320
+ 0.2520000000000000 0.1738000000000001 0.0762000000000001 # O321
+ -0.0190999999999999 0.0617000000000001 0.1883000000000001 # O322
+ 0.1320000000000001 0.2843000000000000 -0.0343000000000000 # O323
+ 0.2520000000000000 0.6738000000000002 0.5762000000000000 # O324
+ -0.0190999999999999 0.5617000000000002 0.6883000000000001 # O325
+ 0.1320000000000001 0.7843000000000000 0.4657000000000000 # O326
+ 0.7520000000000001 0.1738000000000001 0.5762000000000000 # O327
+ 0.4809000000000002 0.0617000000000001 0.6883000000000001 # O328
+ 0.6320000000000001 0.2843000000000002 0.4657000000000000 # O329
+ 0.7520000000000001 0.6738000000000000 0.0762000000000001 # O330
+ 0.4808999999999999 0.5617000000000002 0.1883000000000001 # O331
+ 0.6320000000000001 0.7843000000000000 -0.0343000000000000 # O332
+ 0.7480000000000001 0.8262000000000004 0.9237999999999998 # O333
+ 1.0191000000000001 0.9383000000000004 0.8117000000000000 # O334
+ 0.8679999999999999 0.7157000000000003 1.0343000000000002 # O335
+ 0.7480000000000001 0.3262000000000002 0.4238000000000001 # O336
+ 1.0191000000000001 0.4383000000000000 0.3117000000000000 # O337
+ 0.8679999999999999 0.2157000000000001 0.5343000000000001 # O338
+ 0.2480000000000001 0.8262000000000000 0.4238000000000001 # O339
+ 0.5191000000000002 0.9383000000000004 0.3117000000000000 # O340
+ 0.3680000000000003 0.7157000000000001 0.5343000000000001 # O341
+ 0.2480000000000001 0.3262000000000002 0.9237999999999998 # O342
+ 0.5191000000000002 0.4383000000000002 0.8117000000000000 # O343
+ 0.3680000000000003 0.2157000000000001 1.0343000000000002 # O344
+ 0.1738000000000001 0.2520000000000000 0.0762000000000001 # O345
+ 0.0617000000000001 -0.0190999999999999 0.1883000000000001 # O346
+ 0.2843000000000000 0.1320000000000001 -0.0343000000000000 # O347
+ 0.1738000000000001 0.7520000000000001 0.5762000000000000 # O348
+ 0.0617000000000001 0.4809000000000002 0.6883000000000001 # O349
+ 0.2843000000000002 0.6320000000000001 0.4657000000000000 # O350
+ 0.6738000000000000 0.2520000000000000 0.5762000000000000 # O351
+ 0.5617000000000002 -0.0190999999999999 0.6883000000000001 # O352
+ 0.7843000000000000 0.1320000000000001 0.4657000000000000 # O353
+ 0.6738000000000002 0.7520000000000001 0.0762000000000001 # O354
+ 0.5617000000000002 0.4808999999999999 0.1883000000000001 # O355
+ 0.7843000000000000 0.6320000000000001 -0.0343000000000000 # O356
+ 0.8262000000000000 0.7480000000000003 0.9237999999999998 # O357
+ 0.9383000000000004 1.0191000000000003 0.8117000000000000 # O358
+ 0.7157000000000001 0.8680000000000003 1.0343000000000002 # O359
+ 0.8262000000000000 0.2480000000000001 0.4238000000000001 # O360
+ 0.9383000000000004 0.5191000000000002 0.3117000000000000 # O361
+ 0.7157000000000001 0.3680000000000003 0.5343000000000001 # O362
+ 0.3262000000000002 0.7480000000000001 0.4238000000000001 # O363
+ 0.4383000000000002 1.0191000000000001 0.3117000000000000 # O364
+ 0.2157000000000001 0.8679999999999999 0.5343000000000001 # O365
+ 0.3262000000000002 0.2480000000000001 0.9237999999999998 # O366
+ 0.4383000000000002 0.5191000000000002 0.8117000000000000 # O367
+ 0.2157000000000001 0.3680000000000003 1.0343000000000002 # O368
diff --git a/test/data/cubic/POSCAR-228 b/test/data/cubic/POSCAR-228
new file mode 100644
index 0000000..36a26c5
--- /dev/null
+++ b/test/data/cubic/POSCAR-228
@@ -0,0 +1,231 @@
+$cell vectors
+1.0
+ 15.7049926101414830 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 15.7049926101414830 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.7049926101414830
+ 32 192
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Te1
+ 0.0000000000000000 0.5000000000000002 0.5000000000000002 # Te2
+ 0.5000000000000002 0.0000000000000000 0.5000000000000002 # Te3
+ 0.5000000000000002 0.5000000000000002 0.0000000000000000 # Te4
+ 0.5000000000000002 0.2500000000000001 0.2500000000000001 # Te5
+ 0.2500000000000001 0.2500000000000001 0.0000000000000000 # Te6
+ 0.2500000000000001 0.7500000000000001 0.5000000000000002 # Te7
+ 0.7500000000000001 0.2500000000000001 0.5000000000000002 # Te8
+ 0.7500000000000001 0.7500000000000001 0.0000000000000000 # Te9
+ 0.2500000000000001 1.0000000000000000 0.7500000000000001 # Te10
+ 0.2500000000000001 0.5000000000000002 0.2500000000000001 # Te11
+ 0.7500000000000004 1.0000000000000000 0.2500000000000001 # Te12
+ 0.7500000000000001 0.5000000000000002 0.7500000000000001 # Te13
+ 0.0000000000000000 0.2500000000000001 0.2500000000000001 # Te14
+ 0.0000000000000000 0.7500000000000004 0.7500000000000001 # Te15
+ 0.5000000000000002 0.2500000000000001 0.7500000000000001 # Te16
+ 0.5000000000000002 0.7500000000000001 0.2500000000000001 # Te17
+ 0.2500000000000001 0.7500000000000001 0.0000000000000000 # Te18
+ 0.2500000000000001 0.2500000000000001 0.5000000000000002 # Te19
+ 0.7500000000000001 0.7500000000000001 0.5000000000000002 # Te20
+ 0.7500000000000001 0.2500000000000001 0.0000000000000000 # Te21
+ 0.2500000000000001 0.0000000000000000 0.2500000000000001 # Te22
+ 0.2500000000000001 0.5000000000000002 0.7500000000000001 # Te23
+ 0.7500000000000001 0.0000000000000000 0.7500000000000001 # Te24
+ 0.7500000000000001 0.5000000000000002 0.2500000000000001 # Te25
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # Te26
+ 0.5000000000000002 0.7500000000000004 0.7500000000000001 # Te27
+ 0.0000000000000000 0.7500000000000001 0.2500000000000001 # Te28
+ 0.0000000000000000 0.2500000000000001 0.7500000000000001 # Te29
+ 0.5000000000000002 0.5000000000000002 0.5000000000000002 # Te30
+ 0.0000000000000000 1.0000000000000000 0.5000000000000002 # Te31
+ 0.5000000000000002 1.0000000000000000 0.0000000000000000 # Te32
+ 0.1402000000000002 0.5425000000000003 0.2809000000000001 # O1
+ 0.1402000000000002 1.0425000000000002 0.7809000000000001 # O2
+ 0.6402000000000001 0.5425000000000003 0.7809000000000001 # O3
+ 0.6402000000000001 1.0425000000000002 0.2809000000000001 # O4
+ 0.8598000000000000 0.4575000000000002 0.7191000000000004 # O5
+ 0.8598000000000003 0.9575000000000001 0.2191000000000001 # O6
+ 0.3598000000000001 0.4575000000000002 0.2191000000000001 # O7
+ 0.3598000000000001 0.9575000000000006 0.7191000000000004 # O8
+ 0.4575000000000002 0.3901999999999999 0.0309000000000001 # O9
+ 0.4575000000000002 -0.1097999999999999 0.5308999999999999 # O10
+ -0.0425000000000000 0.3901999999999999 0.5308999999999999 # O11
+ -0.0425000000000000 -0.1097999999999999 0.0309000000000001 # O12
+ 0.5425000000000003 0.6098000000000001 -0.0309000000000001 # O13
+ 0.5425000000000003 0.1097999999999999 0.4691000000000002 # O14
+ 0.0425000000000000 0.6098000000000001 0.4691000000000002 # O15
+ 0.0425000000000000 0.1097999999999999 -0.0309000000000001 # O16
+ 0.1097999999999999 0.7075000000000000 0.2809000000000001 # O17
+ 0.1097999999999999 0.2075000000000001 0.7809000000000001 # O18
+ 0.6098000000000001 0.7075000000000000 0.7809000000000001 # O19
+ 0.6098000000000001 0.2075000000000001 0.2809000000000001 # O20
+ -0.1097999999999999 0.2925000000000001 0.7191000000000004 # O21
+ -0.1097999999999999 0.7925000000000001 0.2191000000000001 # O22
+ 0.3901999999999999 0.2925000000000001 0.2191000000000001 # O23
+ 0.3902000000000003 0.7925000000000004 0.7191000000000004 # O24
+ 0.7925000000000001 0.8598000000000000 0.0309000000000001 # O25
+ 0.7925000000000001 0.3598000000000001 0.5308999999999999 # O26
+ 0.2925000000000001 0.8598000000000003 0.5308999999999999 # O27
+ 0.2925000000000001 0.3598000000000001 0.0309000000000001 # O28
+ 0.2075000000000001 0.1401999999999999 -0.0309000000000001 # O29
+ 0.2075000000000001 0.6402000000000001 0.4691000000000002 # O30
+ 0.7075000000000000 0.1402000000000002 0.4691000000000002 # O31
+ 0.7075000000000000 0.6402000000000001 -0.0309000000000001 # O32
+ 0.3901999999999999 0.7191000000000004 0.2925000000000001 # O33
+ 0.3901999999999999 0.2191000000000001 0.7925000000000001 # O34
+ -0.1097999999999999 0.7191000000000004 0.7925000000000001 # O35
+ -0.1097999999999999 0.2191000000000001 0.2925000000000001 # O36
+ 0.6098000000000001 0.2809000000000001 0.7075000000000000 # O37
+ 0.6098000000000001 0.7809000000000001 0.2075000000000001 # O38
+ 0.1097999999999999 0.2809000000000001 0.2075000000000001 # O39
+ 0.1098000000000003 0.7809000000000001 0.7075000000000000 # O40
+ 0.1402000000000002 0.7075000000000000 -0.0309000000000001 # O41
+ 0.1402000000000002 0.2075000000000001 0.4691000000000002 # O42
+ 0.6402000000000001 0.7075000000000000 0.4691000000000002 # O43
+ 0.6402000000000001 0.2075000000000001 -0.0309000000000001 # O44
+ 0.8598000000000000 0.2925000000000001 0.0309000000000001 # O45
+ 0.8598000000000000 0.7925000000000004 0.5308999999999999 # O46
+ 0.3598000000000001 0.2925000000000001 0.5308999999999999 # O47
+ 0.3598000000000001 0.7925000000000001 0.0309000000000001 # O48
+ 0.3901999999999999 0.0309000000000001 0.4575000000000002 # O49
+ 0.3901999999999999 0.5308999999999999 -0.0425000000000000 # O50
+ -0.1097999999999999 0.0309000000000001 -0.0425000000000000 # O51
+ -0.1097999999999999 0.5308999999999999 0.4575000000000002 # O52
+ 0.6098000000000001 -0.0309000000000001 0.5425000000000003 # O53
+ 0.6098000000000001 0.4691000000000002 0.0425000000000000 # O54
+ 0.1097999999999999 -0.0309000000000001 0.0425000000000000 # O55
+ 0.1097999999999999 0.4691000000000002 0.5425000000000003 # O56
+ 0.5308999999999999 0.2925000000000001 0.8598000000000000 # O57
+ 0.5308999999999999 0.7925000000000001 0.3598000000000001 # O58
+ 0.0309000000000001 0.2925000000000001 0.3598000000000001 # O59
+ 0.0309000000000001 0.7925000000000004 0.8598000000000000 # O60
+ 0.4691000000000002 0.7075000000000000 0.1401999999999999 # O61
+ 0.4691000000000002 0.2075000000000001 0.6402000000000001 # O62
+ -0.0309000000000001 0.7075000000000000 0.6402000000000001 # O63
+ -0.0309000000000001 0.2075000000000001 0.1401999999999999 # O64
+ 0.1097999999999999 0.5425000000000003 -0.0309000000000001 # O65
+ 0.1098000000000003 1.0425000000000002 0.4691000000000002 # O66
+ 0.6098000000000001 0.5425000000000003 0.4691000000000002 # O67
+ 0.6098000000000001 1.0425000000000002 -0.0309000000000001 # O68
+ -0.1097999999999999 0.4575000000000002 0.0309000000000001 # O69
+ -0.1097999999999999 0.9575000000000006 0.5308999999999999 # O70
+ 0.3901999999999999 0.4575000000000002 0.5308999999999999 # O71
+ 0.3901999999999999 0.9575000000000001 0.0309000000000001 # O72
+ 0.7191000000000004 0.7925000000000001 -0.1097999999999999 # O73
+ 0.7191000000000004 0.2925000000000001 0.3901999999999999 # O74
+ 0.2191000000000001 0.7925000000000001 0.3901999999999999 # O75
+ 0.2191000000000001 0.2925000000000001 -0.1097999999999999 # O76
+ 0.2809000000000001 0.2075000000000001 0.1097999999999999 # O77
+ 0.2809000000000001 0.7075000000000000 0.6098000000000001 # O78
+ 0.7809000000000001 0.2075000000000001 0.6098000000000001 # O79
+ 0.7809000000000001 0.7075000000000000 0.1097999999999999 # O80
+ 0.2809000000000001 0.1402000000000002 0.5425000000000003 # O81
+ 0.2809000000000001 0.6402000000000001 0.0425000000000000 # O82
+ 0.7809000000000001 0.1401999999999999 0.0425000000000000 # O83
+ 0.7809000000000001 0.6402000000000001 0.5425000000000003 # O84
+ 0.7191000000000004 0.8598000000000000 0.4575000000000002 # O85
+ 0.7191000000000004 0.3598000000000001 -0.0425000000000000 # O86
+ 0.2191000000000001 0.8598000000000000 -0.0425000000000000 # O87
+ 0.2191000000000001 0.3598000000000001 0.4575000000000002 # O88
+ 0.5425000000000003 0.2809000000000001 0.1401999999999999 # O89
+ 0.5425000000000003 0.7809000000000001 0.6402000000000001 # O90
+ 0.0425000000000000 0.2809000000000001 0.6402000000000001 # O91
+ 0.0425000000000000 0.7809000000000001 0.1401999999999999 # O92
+ 0.4575000000000002 0.7191000000000004 0.8598000000000000 # O93
+ 0.4575000000000002 0.2191000000000001 0.3598000000000001 # O94
+ -0.0425000000000000 0.7191000000000004 0.3598000000000001 # O95
+ -0.0425000000000000 0.2191000000000001 0.8598000000000000 # O96
+ 0.7075000000000000 0.9691000000000004 0.1401999999999999 # O97
+ 0.7075000000000000 0.4691000000000002 0.6402000000000001 # O98
+ 0.2075000000000001 0.9691000000000004 0.6402000000000001 # O99
+ 0.2075000000000001 0.4691000000000002 0.1401999999999999 # O100
+ 0.2925000000000001 1.0309000000000004 0.8598000000000000 # O101
+ 0.2925000000000001 0.5308999999999999 0.3598000000000001 # O102
+ 0.7925000000000004 1.0309000000000004 0.3598000000000001 # O103
+ 0.7925000000000001 0.5309000000000003 0.8598000000000000 # O104
+ 0.2809000000000001 1.1098000000000001 0.7075000000000000 # O105
+ 0.2809000000000001 0.6098000000000001 0.2075000000000001 # O106
+ 0.7809000000000001 1.1098000000000001 0.2075000000000001 # O107
+ 0.7809000000000001 0.6098000000000001 0.7075000000000000 # O108
+ 0.7191000000000004 0.8902000000000002 0.2925000000000001 # O109
+ 0.7191000000000004 0.3902000000000003 0.7925000000000001 # O110
+ 0.2191000000000001 0.8902000000000002 0.7925000000000001 # O111
+ 0.2191000000000001 0.3901999999999999 0.2925000000000001 # O112
+ 0.7075000000000000 0.2809000000000001 0.1097999999999999 # O113
+ 0.7075000000000000 0.7809000000000001 0.6098000000000001 # O114
+ 0.2075000000000001 0.2809000000000001 0.6098000000000001 # O115
+ 0.2075000000000001 0.7809000000000001 0.1097999999999999 # O116
+ 0.2925000000000001 0.7191000000000004 -0.1097999999999999 # O117
+ 0.2925000000000001 0.2191000000000001 0.3901999999999999 # O118
+ 0.7925000000000001 0.7191000000000004 0.3901999999999999 # O119
+ 0.7925000000000001 0.2191000000000001 -0.1097999999999999 # O120
+ -0.0309000000000001 1.1098000000000001 0.5425000000000003 # O121
+ -0.0309000000000001 0.6098000000000001 0.0425000000000000 # O122
+ 0.4691000000000002 1.1098000000000001 0.0425000000000000 # O123
+ 0.4691000000000002 0.6098000000000001 0.5425000000000003 # O124
+ 0.0309000000000001 0.8902000000000002 0.4575000000000002 # O125
+ 0.0309000000000001 0.3901999999999999 -0.0425000000000000 # O126
+ 0.5308999999999999 0.8902000000000002 -0.0425000000000000 # O127
+ 0.5308999999999999 0.3901999999999999 0.4575000000000002 # O128
+ -0.0309000000000001 0.1402000000000002 0.7075000000000000 # O129
+ -0.0309000000000001 0.6402000000000001 0.2075000000000001 # O130
+ 0.4691000000000002 0.1402000000000002 0.2075000000000001 # O131
+ 0.4691000000000002 0.6402000000000001 0.7075000000000000 # O132
+ 0.0309000000000001 0.8598000000000000 0.2925000000000001 # O133
+ 0.0309000000000001 0.3598000000000001 0.7925000000000001 # O134
+ 0.5308999999999999 0.8598000000000003 0.7925000000000001 # O135
+ 0.5308999999999999 0.3598000000000001 0.2925000000000001 # O136
+ 0.5425000000000003 0.9691000000000004 0.1097999999999999 # O137
+ 0.5425000000000003 0.4691000000000002 0.6098000000000001 # O138
+ 0.0425000000000000 0.9691000000000004 0.6098000000000001 # O139
+ 0.0425000000000000 0.4691000000000002 0.1097999999999999 # O140
+ 0.4575000000000002 1.0309000000000004 -0.1097999999999999 # O141
+ 0.4575000000000002 0.5308999999999999 0.3901999999999999 # O142
+ -0.0425000000000000 1.0309000000000004 0.3901999999999999 # O143
+ -0.0425000000000000 0.5308999999999999 -0.1097999999999999 # O144
+ 0.7925000000000001 -0.1097999999999999 0.7191000000000004 # O145
+ 0.7925000000000001 0.3901999999999999 0.2191000000000001 # O146
+ 0.2925000000000001 -0.1097999999999999 0.2191000000000001 # O147
+ 0.2925000000000001 0.3901999999999999 0.7191000000000004 # O148
+ 0.2075000000000001 0.1097999999999999 0.2809000000000001 # O149
+ 0.2075000000000001 0.6098000000000001 0.7809000000000001 # O150
+ 0.7075000000000000 0.1098000000000003 0.7809000000000001 # O151
+ 0.7075000000000000 0.6098000000000001 0.2809000000000001 # O152
+ 0.4575000000000002 0.8598000000000000 0.2191000000000001 # O153
+ 0.4575000000000002 0.3598000000000001 0.7191000000000004 # O154
+ -0.0425000000000000 0.8598000000000003 0.7191000000000004 # O155
+ -0.0425000000000000 0.3598000000000001 0.2191000000000001 # O156
+ 0.5425000000000003 0.1402000000000002 0.7809000000000001 # O157
+ 0.5425000000000003 0.6402000000000001 0.2809000000000001 # O158
+ 0.0425000000000000 0.1402000000000002 0.2809000000000001 # O159
+ 0.0425000000000000 0.6402000000000001 0.7809000000000001 # O160
+ 0.8598000000000000 0.5308999999999999 0.2925000000000001 # O161
+ 0.8598000000000000 0.0309000000000001 0.7925000000000001 # O162
+ 0.3598000000000001 0.5309000000000003 0.7925000000000001 # O163
+ 0.3598000000000001 0.0309000000000001 0.2925000000000001 # O164
+ 0.1402000000000002 0.4691000000000002 0.7075000000000000 # O165
+ 0.1401999999999999 -0.0309000000000001 0.2075000000000001 # O166
+ 0.6402000000000001 0.4691000000000002 0.2075000000000001 # O167
+ 0.6402000000000001 -0.0309000000000001 0.7075000000000000 # O168
+ 0.8598000000000000 0.7191000000000004 -0.0425000000000000 # O169
+ 0.8598000000000000 0.2191000000000001 0.4575000000000002 # O170
+ 0.3598000000000001 0.7191000000000004 0.4575000000000002 # O171
+ 0.3598000000000001 0.2191000000000001 -0.0425000000000000 # O172
+ 0.1402000000000002 0.2809000000000001 0.0425000000000000 # O173
+ 0.1402000000000002 0.7809000000000001 0.5425000000000003 # O174
+ 0.6402000000000001 0.2809000000000001 0.5425000000000003 # O175
+ 0.6402000000000001 0.7809000000000001 0.0425000000000000 # O176
+ 0.5308999999999999 0.4575000000000002 -0.1097999999999999 # O177
+ 0.5308999999999999 -0.0425000000000000 0.3901999999999999 # O178
+ 0.0309000000000001 0.4575000000000002 0.3901999999999999 # O179
+ 0.0309000000000001 -0.0425000000000000 -0.1097999999999999 # O180
+ 0.4691000000000002 0.5425000000000003 0.1097999999999999 # O181
+ 0.4691000000000002 0.0425000000000000 0.6098000000000001 # O182
+ -0.0309000000000001 0.5425000000000003 0.6098000000000001 # O183
+ -0.0309000000000001 0.0425000000000000 0.1097999999999999 # O184
+ 0.7191000000000004 0.4575000000000002 0.3598000000000001 # O185
+ 0.7191000000000004 -0.0425000000000000 0.8598000000000000 # O186
+ 0.2191000000000001 0.4575000000000002 0.8598000000000000 # O187
+ 0.2191000000000001 -0.0425000000000000 0.3598000000000001 # O188
+ 0.2809000000000001 0.5425000000000003 0.6402000000000001 # O189
+ 0.2809000000000001 0.0425000000000000 0.1401999999999999 # O190
+ 0.7809000000000001 0.5425000000000003 0.1401999999999999 # O191
+ 0.7809000000000001 0.0425000000000000 0.6402000000000001 # O192
diff --git a/test/data/cubic/POSCAR-228-2 b/test/data/cubic/POSCAR-228-2
new file mode 100644
index 0000000..505c75b
--- /dev/null
+++ b/test/data/cubic/POSCAR-228-2
@@ -0,0 +1,567 @@
+$cell vectors
+1.0
+ 21.8099897374839671 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 21.8099897374839671 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 21.8099897374839671
+ 32 80 256 192
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Co1
+ 0.0000000000000000 0.5000000000000001 0.5000000000000001 # Co2
+ 0.5000000000000001 0.0000000000000000 0.5000000000000001 # Co3
+ 0.5000000000000001 0.5000000000000001 0.0000000000000000 # Co4
+ 0.0000000000000000 0.2500000000000001 0.7500000000000002 # Co5
+ 0.0000000000000000 0.7500000000000002 0.2500000000000001 # Co6
+ 0.5000000000000001 0.2500000000000001 0.2500000000000001 # Co7
+ 0.5000000000000001 0.7500000000000002 0.7500000000000002 # Co8
+ 0.2500000000000001 0.2500000000000001 0.0000000000000000 # Co9
+ 0.2500000000000001 0.7500000000000002 0.5000000000000001 # Co10
+ 0.7500000000000002 0.2500000000000001 0.5000000000000001 # Co11
+ 0.7500000000000002 0.7500000000000002 0.0000000000000000 # Co12
+ 0.2500000000000001 0.0000000000000000 0.7500000000000002 # Co13
+ 0.2500000000000001 0.5000000000000001 0.2500000000000001 # Co14
+ 0.7500000000000002 0.0000000000000000 0.2500000000000001 # Co15
+ 0.7500000000000002 0.5000000000000001 0.7500000000000002 # Co16
+ 0.0000000000000000 0.2500000000000001 0.2500000000000001 # Co17
+ 0.0000000000000000 0.7500000000000002 0.7500000000000002 # Co18
+ 0.5000000000000001 0.2500000000000001 0.7500000000000002 # Co19
+ 0.5000000000000001 0.7500000000000002 0.2500000000000001 # Co20
+ 0.2500000000000001 0.7500000000000002 0.0000000000000000 # Co21
+ 0.2500000000000001 0.2500000000000001 0.5000000000000001 # Co22
+ 0.7500000000000002 0.7500000000000002 0.5000000000000001 # Co23
+ 0.7500000000000002 0.2500000000000001 0.0000000000000000 # Co24
+ 0.2500000000000001 0.0000000000000000 0.2500000000000001 # Co25
+ 0.2500000000000001 0.5000000000000001 0.7500000000000002 # Co26
+ 0.7500000000000002 0.0000000000000000 0.7500000000000002 # Co27
+ 0.7500000000000002 0.5000000000000001 0.2500000000000001 # Co28
+ 0.0000000000000000 0.0000000000000000 0.5000000000000001 # Co29
+ 0.0000000000000000 0.5000000000000001 0.0000000000000000 # Co30
+ 0.5000000000000001 0.0000000000000000 0.0000000000000000 # Co31
+ 0.5000000000000001 0.5000000000000001 0.5000000000000001 # Co32
+ 0.2550000000000001 0.2550000000000001 0.2550000000000001 # Cu1
+ 0.1250000000000000 0.1250000000000000 0.1250000000000000 # Cu2
+ 0.2550000000000001 0.7550000000000002 0.7550000000000002 # Cu3
+ 0.1250000000000000 0.6250000000000001 0.6250000000000001 # Cu4
+ 0.7550000000000002 0.2550000000000001 0.7550000000000002 # Cu5
+ 0.6250000000000001 0.1250000000000000 0.6250000000000001 # Cu6
+ 0.7550000000000002 0.7550000000000002 0.2550000000000001 # Cu7
+ 0.6250000000000001 0.6250000000000001 0.1250000000000000 # Cu8
+ 0.7450000000000000 0.7450000000000003 0.7450000000000000 # Cu9
+ 0.8749999999999999 0.8750000000000001 0.8749999999999999 # Cu10
+ 0.7450000000000000 0.2450000000000001 0.2450000000000001 # Cu11
+ 0.8749999999999999 0.3750000000000001 0.3750000000000001 # Cu12
+ 0.2450000000000004 0.7450000000000000 0.2450000000000001 # Cu13
+ 0.3750000000000003 0.8749999999999999 0.3750000000000001 # Cu14
+ 0.2450000000000004 0.2450000000000001 0.7450000000000000 # Cu15
+ 0.3750000000000003 0.3750000000000001 0.8749999999999999 # Cu16
+ 0.7450000000000000 0.5050000000000001 0.0050000000000000 # Cu17
+ 0.8749999999999999 0.3750000000000001 0.8749999999999999 # Cu18
+ 0.7450000000000000 0.0050000000000000 0.5050000000000001 # Cu19
+ 0.8749999999999999 0.8749999999999999 0.3750000000000001 # Cu20
+ 0.2450000000000001 0.5050000000000001 0.5050000000000001 # Cu21
+ 0.3750000000000001 0.3750000000000001 0.3750000000000001 # Cu22
+ 0.2450000000000001 0.0050000000000000 0.0050000000000000 # Cu23
+ 0.3750000000000001 0.8750000000000001 0.8749999999999999 # Cu24
+ 0.2550000000000005 0.4950000000000002 0.9950000000000002 # Cu25
+ 0.1249999999999998 0.6250000000000001 0.1249999999999998 # Cu26
+ 0.2550000000000005 0.9950000000000001 0.4949999999999999 # Cu27
+ 0.1249999999999998 0.1249999999999998 0.6250000000000001 # Cu28
+ 0.7550000000000002 0.4950000000000002 0.4950000000000002 # Cu29
+ 0.6250000000000001 0.6250000000000001 0.6250000000000001 # Cu30
+ 0.7550000000000002 0.9950000000000002 0.9950000000000002 # Cu31
+ 0.6250000000000001 0.1249999999999998 0.1249999999999998 # Cu32
+ 0.9950000000000002 0.9950000000000002 0.2550000000000001 # Cu33
+ 0.9950000000000002 0.4950000000000002 0.7550000000000002 # Cu34
+ 0.4950000000000002 0.9950000000000002 0.7550000000000002 # Cu35
+ 0.4950000000000002 0.4950000000000002 0.2550000000000001 # Cu36
+ 0.0050000000000000 0.0050000000000000 0.7450000000000000 # Cu37
+ 0.0050000000000000 0.5050000000000001 0.2450000000000001 # Cu38
+ 0.5050000000000003 0.0050000000000000 0.2450000000000001 # Cu39
+ 0.5050000000000003 0.5050000000000001 0.7450000000000000 # Cu40
+ 0.5050000000000001 0.7450000000000000 0.0050000000000000 # Cu41
+ 0.5050000000000001 0.2450000000000001 0.5050000000000001 # Cu42
+ 0.0050000000000000 0.7450000000000000 0.5050000000000001 # Cu43
+ 0.0050000000000000 0.2450000000000001 0.0050000000000000 # Cu44
+ 0.4950000000000002 0.2550000000000003 0.9950000000000002 # Cu45
+ 0.4950000000000002 0.7550000000000002 0.4950000000000002 # Cu46
+ 0.9950000000000001 0.2550000000000003 0.4949999999999999 # Cu47
+ 0.9950000000000002 0.7550000000000002 0.9950000000000002 # Cu48
+ 0.2550000000000001 0.9950000000000002 0.9950000000000002 # Cu49
+ 0.2550000000000001 0.4950000000000002 0.4950000000000002 # Cu50
+ 0.7550000000000002 0.9950000000000002 0.4950000000000002 # Cu51
+ 0.7550000000000002 0.4950000000000002 0.9950000000000002 # Cu52
+ 0.7450000000000000 0.0050000000000000 0.0050000000000000 # Cu53
+ 0.7450000000000000 0.5050000000000001 0.5050000000000001 # Cu54
+ 0.2450000000000004 0.0050000000000000 0.5050000000000001 # Cu55
+ 0.2450000000000004 0.5050000000000001 0.0050000000000000 # Cu56
+ 0.5050000000000001 0.0050000000000002 0.7450000000000000 # Cu57
+ 0.5050000000000001 0.5050000000000001 0.2450000000000001 # Cu58
+ 0.0050000000000000 0.0050000000000000 0.2450000000000001 # Cu59
+ 0.0050000000000000 0.5050000000000001 0.7450000000000000 # Cu60
+ 0.4950000000000002 0.9950000000000001 0.2550000000000001 # Cu61
+ 0.4950000000000002 0.4950000000000002 0.7550000000000002 # Cu62
+ 0.9950000000000002 0.9950000000000002 0.7550000000000002 # Cu63
+ 0.9950000000000001 0.4949999999999999 0.2550000000000001 # Cu64
+ 0.9950000000000002 0.2550000000000001 0.9950000000000002 # Cu65
+ 0.9950000000000002 0.7550000000000002 0.4950000000000002 # Cu66
+ 0.4950000000000002 0.2550000000000001 0.4950000000000002 # Cu67
+ 0.4950000000000002 0.7550000000000002 0.9950000000000002 # Cu68
+ 0.0050000000000000 0.7450000000000000 0.0050000000000000 # Cu69
+ 0.0050000000000000 0.2450000000000001 0.5050000000000001 # Cu70
+ 0.5050000000000003 0.7450000000000000 0.5050000000000001 # Cu71
+ 0.5050000000000003 0.2450000000000001 0.0050000000000000 # Cu72
+ 0.7450000000000000 0.7450000000000000 0.2450000000000001 # Cu73
+ 0.7450000000000000 0.2450000000000001 0.7450000000000000 # Cu74
+ 0.2450000000000001 0.7450000000000003 0.7450000000000000 # Cu75
+ 0.2450000000000001 0.2450000000000001 0.2450000000000001 # Cu76
+ 0.2550000000000005 0.2550000000000003 0.7550000000000002 # Cu77
+ 0.2550000000000005 0.7550000000000002 0.2550000000000001 # Cu78
+ 0.7550000000000002 0.2550000000000003 0.2550000000000001 # Cu79
+ 0.7550000000000002 0.7550000000000002 0.7550000000000002 # Cu80
+ 0.1880000000000001 0.1880000000000001 0.1880000000000001 # Cl1
+ 0.2621000000000001 0.0768000000000001 0.9250000000000005 # Cl2
+ 0.1880000000000001 0.6880000000000003 0.6879999999999999 # Cl3
+ 0.2621000000000001 0.5768000000000001 0.4250000000000002 # Cl4
+ 0.6880000000000003 0.1880000000000001 0.6879999999999999 # Cl5
+ 0.7621000000000003 0.0768000000000001 0.4250000000000002 # Cl6
+ 0.6880000000000003 0.6879999999999999 0.1880000000000001 # Cl7
+ 0.7621000000000003 0.5768000000000001 0.9250000000000005 # Cl8
+ 0.8120000000000003 0.8120000000000004 0.8120000000000003 # Cl9
+ 0.7379000000000001 0.9232000000000001 0.0749999999999999 # Cl10
+ 0.8119999999999999 0.3120000000000001 0.3120000000000001 # Cl11
+ 0.7379000000000001 0.4232000000000004 0.5750000000000001 # Cl12
+ 0.3120000000000003 0.8119999999999999 0.3120000000000001 # Cl13
+ 0.2379000000000005 0.9232000000000001 0.5750000000000001 # Cl14
+ 0.3120000000000003 0.3120000000000001 0.8120000000000003 # Cl15
+ 0.2379000000000005 0.4232000000000000 0.0749999999999999 # Cl16
+ 0.8120000000000003 0.4380000000000001 0.9380000000000001 # Cl17
+ 0.9232000000000001 0.5121000000000002 0.6750000000000000 # Cl18
+ 0.8120000000000003 0.9380000000000001 0.4380000000000001 # Cl19
+ 0.9232000000000001 0.0121000000000001 0.1749999999999999 # Cl20
+ 0.3120000000000001 0.4380000000000001 0.4380000000000001 # Cl21
+ 0.4232000000000000 0.5121000000000002 0.1749999999999999 # Cl22
+ 0.3120000000000001 0.9380000000000004 0.9380000000000001 # Cl23
+ 0.4232000000000004 0.0121000000000001 0.6750000000000000 # Cl24
+ 0.1879999999999999 0.5620000000000002 0.0619999999999997 # Cl25
+ 0.0768000000000001 0.4879000000000001 0.3250000000000002 # Cl26
+ 0.1879999999999999 0.0620000000000000 0.5620000000000002 # Cl27
+ 0.0768000000000001 0.9879000000000001 0.8250000000000002 # Cl28
+ 0.6879999999999999 0.5620000000000002 0.5620000000000002 # Cl29
+ 0.5768000000000003 0.4879000000000001 0.8250000000000002 # Cl30
+ 0.6879999999999999 0.0619999999999997 0.0619999999999997 # Cl31
+ 0.5768000000000003 0.9879000000000001 0.3250000000000002 # Cl32
+ 0.0620000000000000 0.0620000000000000 0.1880000000000001 # Cl33
+ 0.9879000000000001 0.1732000000000002 0.9250000000000005 # Cl34
+ 0.0620000000000000 0.5620000000000002 0.6879999999999999 # Cl35
+ 0.9879000000000001 0.6732000000000004 0.4250000000000002 # Cl36
+ 0.5620000000000002 0.0620000000000002 0.6879999999999999 # Cl37
+ 0.4879000000000001 0.1732000000000002 0.4250000000000002 # Cl38
+ 0.5620000000000002 0.5620000000000002 0.1880000000000001 # Cl39
+ 0.4879000000000002 0.6732000000000004 0.9250000000000005 # Cl40
+ 0.9380000000000001 0.9380000000000004 0.8120000000000003 # Cl41
+ 0.0121000000000001 0.8268000000000003 0.0749999999999999 # Cl42
+ 0.9380000000000001 0.4379999999999998 0.3120000000000001 # Cl43
+ 0.0121000000000001 0.3268000000000002 0.5750000000000001 # Cl44
+ 0.4380000000000003 0.9380000000000001 0.3120000000000001 # Cl45
+ 0.5121000000000004 0.8268000000000003 0.5750000000000001 # Cl46
+ 0.4380000000000003 0.4380000000000001 0.8120000000000003 # Cl47
+ 0.5121000000000002 0.3268000000000002 0.0749999999999999 # Cl48
+ 0.4380000000000001 0.8120000000000004 0.9380000000000001 # Cl49
+ 0.3268000000000002 0.7379000000000001 0.6750000000000000 # Cl50
+ 0.4380000000000001 0.3120000000000001 0.4380000000000001 # Cl51
+ 0.3267999999999999 0.2379000000000000 0.1749999999999999 # Cl52
+ 0.9380000000000001 0.8120000000000003 0.4380000000000001 # Cl53
+ 0.8268000000000003 0.7379000000000001 0.1749999999999999 # Cl54
+ 0.9380000000000001 0.3120000000000001 0.9380000000000001 # Cl55
+ 0.8268000000000003 0.2379000000000002 0.6750000000000000 # Cl56
+ 0.5620000000000002 0.1879999999999999 0.0619999999999997 # Cl57
+ 0.6732000000000001 0.2621000000000001 0.3250000000000002 # Cl58
+ 0.5620000000000002 0.6880000000000003 0.5620000000000002 # Cl59
+ 0.6732000000000004 0.7621000000000006 0.8250000000000002 # Cl60
+ 0.0620000000000000 0.1879999999999999 0.5620000000000002 # Cl61
+ 0.1732000000000004 0.2621000000000001 0.8250000000000002 # Cl62
+ 0.0620000000000000 0.6879999999999999 0.0619999999999997 # Cl63
+ 0.1732000000000004 0.7621000000000000 0.3250000000000002 # Cl64
+ 0.5121000000000002 0.0750000000000002 0.8268000000000003 # Cl65
+ 0.5121000000000002 0.5750000000000001 0.3267999999999999 # Cl66
+ 0.0121000000000001 0.0749999999999999 0.3267999999999999 # Cl67
+ 0.0121000000000001 0.5750000000000002 0.8268000000000003 # Cl68
+ 0.4879000000000002 0.9249999999999999 0.1732000000000002 # Cl69
+ 0.4879000000000002 0.4250000000000002 0.6732000000000001 # Cl70
+ 0.9879000000000000 0.9250000000000003 0.6732000000000001 # Cl71
+ 0.9879000000000001 0.4250000000000002 0.1732000000000002 # Cl72
+ 0.1880000000000001 0.0620000000000000 0.0620000000000000 # Cl73
+ 0.2621000000000001 0.1732000000000002 0.3250000000000000 # Cl74
+ 0.1880000000000001 0.5620000000000002 0.5620000000000002 # Cl75
+ 0.2621000000000001 0.6732000000000004 0.8250000000000002 # Cl76
+ 0.6879999999999999 0.0620000000000000 0.5620000000000002 # Cl77
+ 0.7621000000000000 0.1732000000000002 0.8250000000000002 # Cl78
+ 0.6879999999999999 0.5620000000000002 0.0620000000000000 # Cl79
+ 0.7621000000000000 0.6732000000000004 0.3250000000000000 # Cl80
+ 0.8120000000000003 0.9380000000000004 0.9380000000000001 # Cl81
+ 0.7379000000000001 0.8268000000000003 0.6750000000000000 # Cl82
+ 0.8119999999999999 0.4380000000000001 0.4379999999999998 # Cl83
+ 0.7379000000000001 0.3268000000000002 0.1750000000000002 # Cl84
+ 0.3120000000000005 0.9380000000000001 0.4379999999999998 # Cl85
+ 0.2379000000000005 0.8268000000000003 0.1750000000000002 # Cl86
+ 0.3120000000000005 0.4380000000000001 0.9380000000000001 # Cl87
+ 0.2379000000000005 0.3268000000000002 0.6750000000000000 # Cl88
+ 0.4380000000000001 0.9380000000000004 0.8120000000000003 # Cl89
+ 0.5121000000000002 0.6750000000000003 0.9232000000000001 # Cl90
+ 0.4380000000000001 0.4380000000000001 0.3120000000000001 # Cl91
+ 0.5121000000000002 0.1750000000000002 0.4232000000000000 # Cl92
+ 0.9380000000000001 0.9380000000000001 0.3120000000000001 # Cl93
+ 0.0121000000000001 0.6750000000000003 0.4232000000000000 # Cl94
+ 0.9380000000000001 0.4380000000000001 0.8120000000000003 # Cl95
+ 0.0121000000000001 0.1750000000000002 0.9232000000000001 # Cl96
+ 0.5620000000000002 0.0620000000000000 0.1879999999999999 # Cl97
+ 0.4879000000000002 0.3250000000000002 0.0767999999999999 # Cl98
+ 0.5620000000000002 0.5620000000000002 0.6879999999999999 # Cl99
+ 0.4879000000000002 0.8250000000000002 0.5768000000000001 # Cl100
+ 0.0620000000000000 0.0620000000000000 0.6879999999999999 # Cl101
+ 0.9879000000000001 0.3250000000000002 0.5767999999999998 # Cl102
+ 0.0620000000000000 0.5620000000000002 0.1879999999999999 # Cl103
+ 0.9879000000000001 0.8250000000000002 0.0767999999999999 # Cl104
+ 0.1750000000000002 0.8268000000000003 0.7379000000000001 # Cl105
+ 0.1750000000000002 0.3267999999999999 0.2379000000000000 # Cl106
+ 0.6750000000000000 0.8268000000000003 0.2379000000000000 # Cl107
+ 0.6750000000000000 0.3268000000000002 0.7379000000000001 # Cl108
+ 0.8250000000000002 0.1732000000000002 0.2621000000000001 # Cl109
+ 0.8250000000000002 0.6732000000000004 0.7621000000000003 # Cl110
+ 0.3250000000000005 0.1732000000000002 0.7621000000000003 # Cl111
+ 0.3250000000000005 0.6732000000000001 0.2621000000000001 # Cl112
+ 0.0620000000000000 0.1880000000000001 0.0620000000000000 # Cl113
+ 0.9879000000000001 0.0768000000000001 0.3250000000000000 # Cl114
+ 0.0620000000000000 0.6880000000000003 0.5620000000000002 # Cl115
+ 0.9879000000000001 0.5768000000000001 0.8250000000000002 # Cl116
+ 0.5620000000000002 0.1880000000000001 0.5620000000000002 # Cl117
+ 0.4879000000000002 0.0768000000000001 0.8250000000000002 # Cl118
+ 0.5620000000000002 0.6879999999999999 0.0620000000000000 # Cl119
+ 0.4879000000000001 0.5768000000000001 0.3250000000000000 # Cl120
+ 0.9380000000000001 0.8120000000000004 0.9380000000000001 # Cl121
+ 0.0120999999999998 0.9232000000000001 0.6750000000000000 # Cl122
+ 0.9380000000000001 0.3120000000000001 0.4379999999999998 # Cl123
+ 0.0120999999999998 0.4232000000000000 0.1750000000000002 # Cl124
+ 0.4380000000000003 0.8119999999999999 0.4379999999999998 # Cl125
+ 0.5121000000000004 0.9231999999999998 0.1750000000000002 # Cl126
+ 0.4380000000000003 0.3120000000000003 0.9380000000000001 # Cl127
+ 0.5121000000000002 0.4232000000000004 0.6750000000000000 # Cl128
+ 0.0749999999999999 0.3267999999999999 0.0121000000000001 # Cl129
+ 0.0750000000000002 0.8268000000000003 0.5121000000000002 # Cl130
+ 0.5750000000000001 0.3267999999999999 0.5121000000000002 # Cl131
+ 0.5750000000000001 0.8268000000000003 0.0121000000000001 # Cl132
+ 0.9250000000000005 0.6732000000000004 0.9879000000000001 # Cl133
+ 0.9250000000000003 0.1732000000000002 0.4879000000000001 # Cl134
+ 0.4250000000000002 0.6732000000000004 0.4879000000000001 # Cl135
+ 0.4250000000000002 0.1732000000000002 0.9879000000000001 # Cl136
+ 0.9250000000000005 0.2621000000000001 0.0768000000000001 # Cl137
+ 0.9250000000000005 0.7621000000000003 0.5768000000000001 # Cl138
+ 0.4250000000000002 0.2621000000000001 0.5768000000000001 # Cl139
+ 0.4250000000000002 0.7621000000000003 0.0768000000000001 # Cl140
+ 0.0750000000000002 0.7379000000000001 0.9232000000000001 # Cl141
+ 0.0749999999999999 0.2379000000000002 0.4232000000000000 # Cl142
+ 0.5750000000000002 0.7379000000000001 0.4232000000000000 # Cl143
+ 0.5750000000000002 0.2379000000000002 0.9232000000000001 # Cl144
+ 0.0768000000000001 0.9250000000000005 0.2621000000000001 # Cl145
+ 0.0768000000000001 0.4250000000000002 0.7621000000000000 # Cl146
+ 0.5768000000000001 0.9250000000000005 0.7621000000000000 # Cl147
+ 0.5768000000000001 0.4250000000000000 0.2621000000000001 # Cl148
+ 0.9232000000000001 0.0750000000000002 0.7379000000000001 # Cl149
+ 0.9231999999999998 0.5750000000000001 0.2379000000000002 # Cl150
+ 0.4232000000000004 0.0749999999999999 0.2379000000000002 # Cl151
+ 0.4232000000000004 0.5750000000000001 0.7379000000000001 # Cl152
+ 0.1732000000000002 0.3250000000000000 0.2621000000000001 # Cl153
+ 0.1732000000000002 0.8250000000000004 0.7621000000000000 # Cl154
+ 0.6732000000000004 0.3250000000000002 0.7621000000000000 # Cl155
+ 0.6732000000000004 0.8250000000000002 0.2621000000000001 # Cl156
+ 0.8268000000000003 0.6750000000000003 0.7379000000000001 # Cl157
+ 0.8268000000000003 0.1750000000000002 0.2379000000000002 # Cl158
+ 0.3268000000000005 0.6750000000000000 0.2379000000000002 # Cl159
+ 0.3268000000000005 0.1750000000000002 0.7379000000000001 # Cl160
+ 0.9250000000000005 0.9879000000000001 0.1731999999999999 # Cl161
+ 0.9250000000000005 0.4879000000000002 0.6732000000000004 # Cl162
+ 0.4250000000000002 0.9879000000000001 0.6732000000000004 # Cl163
+ 0.4250000000000000 0.4879000000000001 0.1731999999999999 # Cl164
+ 0.0749999999999999 0.0120999999999998 0.8268000000000003 # Cl165
+ 0.0749999999999999 0.5121000000000002 0.3268000000000002 # Cl166
+ 0.5750000000000002 0.0120999999999998 0.3268000000000002 # Cl167
+ 0.5750000000000002 0.5121000000000002 0.8268000000000003 # Cl168
+ 0.1732000000000002 0.9250000000000005 0.9879000000000001 # Cl169
+ 0.1732000000000002 0.4250000000000002 0.4879000000000001 # Cl170
+ 0.6732000000000004 0.9250000000000005 0.4879000000000001 # Cl171
+ 0.6732000000000004 0.4250000000000002 0.9879000000000001 # Cl172
+ 0.8268000000000003 0.0749999999999999 0.0121000000000001 # Cl173
+ 0.8268000000000003 0.5750000000000002 0.5121000000000002 # Cl174
+ 0.3268000000000005 0.0749999999999999 0.5121000000000002 # Cl175
+ 0.3268000000000005 0.5750000000000001 0.0121000000000001 # Cl176
+ 0.3250000000000000 0.9879000000000001 0.0768000000000001 # Cl177
+ 0.3250000000000002 0.4879000000000001 0.5768000000000001 # Cl178
+ 0.8250000000000002 0.9879000000000001 0.5768000000000001 # Cl179
+ 0.8250000000000002 0.4879000000000001 0.0768000000000001 # Cl180
+ 0.6750000000000000 0.0121000000000001 0.9232000000000001 # Cl181
+ 0.6750000000000000 0.5121000000000002 0.4232000000000000 # Cl182
+ 0.1750000000000004 0.0121000000000001 0.4232000000000000 # Cl183
+ 0.1750000000000004 0.5121000000000002 0.9232000000000001 # Cl184
+ 0.3250000000000000 0.2621000000000001 0.1731999999999999 # Cl185
+ 0.3250000000000002 0.7621000000000000 0.6732000000000004 # Cl186
+ 0.8250000000000002 0.2621000000000001 0.6732000000000004 # Cl187
+ 0.8250000000000002 0.7621000000000000 0.1731999999999999 # Cl188
+ 0.6750000000000003 0.7379000000000001 0.8268000000000003 # Cl189
+ 0.6750000000000000 0.2379000000000002 0.3268000000000002 # Cl190
+ 0.1750000000000004 0.7379000000000001 0.3268000000000002 # Cl191
+ 0.1750000000000004 0.2379000000000002 0.8268000000000003 # Cl192
+ 0.0768000000000001 0.3250000000000002 0.9879000000000001 # Cl193
+ 0.0768000000000001 0.8250000000000002 0.4879000000000001 # Cl194
+ 0.5768000000000001 0.3250000000000000 0.4879000000000001 # Cl195
+ 0.5768000000000003 0.8250000000000004 0.9879000000000001 # Cl196
+ 0.9232000000000001 0.6750000000000000 0.0121000000000001 # Cl197
+ 0.9232000000000001 0.1750000000000002 0.5121000000000002 # Cl198
+ 0.4232000000000004 0.6750000000000000 0.5121000000000002 # Cl199
+ 0.4232000000000004 0.1750000000000002 0.0121000000000001 # Cl200
+ 0.3267999999999999 0.0121000000000001 0.0749999999999999 # Cl201
+ 0.3268000000000002 0.5121000000000002 0.5750000000000001 # Cl202
+ 0.8268000000000003 0.0121000000000001 0.5750000000000001 # Cl203
+ 0.8268000000000003 0.5121000000000002 0.0749999999999999 # Cl204
+ 0.6732000000000004 0.9879000000000004 0.9250000000000005 # Cl205
+ 0.6732000000000004 0.4879000000000002 0.4250000000000002 # Cl206
+ 0.1732000000000004 0.9879000000000001 0.4250000000000000 # Cl207
+ 0.1732000000000004 0.4879000000000001 0.9250000000000005 # Cl208
+ 0.8120000000000003 0.8120000000000003 0.3120000000000001 # Cl209
+ 0.9232000000000001 0.7379000000000001 0.5750000000000001 # Cl210
+ 0.8120000000000003 0.3120000000000001 0.8120000000000003 # Cl211
+ 0.9232000000000001 0.2379000000000000 0.0749999999999999 # Cl212
+ 0.3120000000000001 0.8120000000000004 0.8120000000000003 # Cl213
+ 0.4232000000000004 0.7379000000000001 0.0749999999999999 # Cl214
+ 0.3120000000000001 0.3120000000000001 0.3120000000000001 # Cl215
+ 0.4232000000000000 0.2379000000000002 0.5750000000000001 # Cl216
+ 0.1879999999999999 0.1879999999999999 0.6879999999999999 # Cl217
+ 0.0768000000000001 0.2621000000000001 0.4250000000000000 # Cl218
+ 0.1879999999999999 0.6879999999999999 0.1879999999999999 # Cl219
+ 0.0768000000000001 0.7621000000000003 0.9250000000000005 # Cl220
+ 0.6879999999999999 0.1879999999999999 0.1879999999999999 # Cl221
+ 0.5768000000000001 0.2621000000000004 0.9250000000000005 # Cl222
+ 0.6880000000000003 0.6880000000000003 0.6879999999999999 # Cl223
+ 0.5768000000000001 0.7621000000000000 0.4250000000000002 # Cl224
+ 0.7379000000000001 0.1750000000000002 0.8268000000000003 # Cl225
+ 0.7379000000000001 0.6750000000000000 0.3267999999999999 # Cl226
+ 0.2379000000000000 0.1750000000000002 0.3267999999999999 # Cl227
+ 0.2379000000000002 0.6750000000000000 0.8268000000000003 # Cl228
+ 0.2621000000000004 0.8250000000000002 0.1732000000000002 # Cl229
+ 0.2621000000000004 0.3250000000000002 0.6732000000000001 # Cl230
+ 0.7621000000000003 0.8250000000000002 0.6732000000000001 # Cl231
+ 0.7621000000000000 0.3250000000000002 0.1732000000000002 # Cl232
+ 0.7379000000000001 0.0750000000000002 0.4232000000000000 # Cl233
+ 0.7379000000000001 0.5750000000000001 0.9232000000000001 # Cl234
+ 0.2379000000000002 0.0750000000000002 0.9232000000000001 # Cl235
+ 0.2379000000000002 0.5750000000000001 0.4232000000000000 # Cl236
+ 0.2621000000000004 0.9250000000000003 0.5767999999999998 # Cl237
+ 0.2621000000000004 0.4250000000000000 0.0767999999999999 # Cl238
+ 0.7621000000000000 0.9250000000000005 0.0767999999999999 # Cl239
+ 0.7621000000000000 0.4250000000000002 0.5768000000000001 # Cl240
+ 0.1750000000000002 0.9232000000000001 0.0121000000000001 # Cl241
+ 0.1750000000000002 0.4232000000000004 0.5121000000000002 # Cl242
+ 0.6750000000000003 0.9232000000000001 0.5121000000000002 # Cl243
+ 0.6750000000000000 0.4232000000000000 0.0121000000000001 # Cl244
+ 0.8250000000000002 0.0768000000000001 0.9879000000000001 # Cl245
+ 0.8250000000000002 0.5768000000000001 0.4879000000000001 # Cl246
+ 0.3250000000000005 0.0768000000000001 0.4879000000000001 # Cl247
+ 0.3250000000000005 0.5768000000000001 0.9879000000000001 # Cl248
+ 0.0749999999999999 0.9232000000000001 0.2379000000000000 # Cl249
+ 0.0749999999999999 0.4232000000000004 0.7379000000000001 # Cl250
+ 0.5750000000000002 0.9232000000000004 0.7379000000000001 # Cl251
+ 0.5750000000000001 0.4232000000000000 0.2379000000000000 # Cl252
+ 0.9250000000000003 0.0768000000000001 0.7621000000000003 # Cl253
+ 0.9249999999999999 0.5768000000000001 0.2621000000000001 # Cl254
+ 0.4250000000000002 0.0768000000000001 0.2621000000000001 # Cl255
+ 0.4250000000000002 0.5768000000000001 0.7621000000000003 # Cl256
+ 0.0707000000000001 0.0510999999999999 -0.0289999999999999 # N1
+ 0.0707000000000001 0.5511000000000003 0.4710000000000000 # N2
+ 0.5707000000000000 0.0510999999999999 0.4710000000000000 # N3
+ 0.5707000000000000 0.5510999999999999 -0.0289999999999999 # N4
+ -0.0707000000000001 -0.0510999999999999 0.0289999999999999 # N5
+ -0.0706999999999998 0.4489000000000002 0.5290000000000000 # N6
+ 0.4293000000000001 -0.0510999999999999 0.5290000000000000 # N7
+ 0.4293000000000001 0.4489000000000002 0.0289999999999999 # N8
+ -0.0510999999999999 0.3207000000000002 0.7210000000000001 # N9
+ -0.0510999999999999 0.8207000000000001 0.2210000000000001 # N10
+ 0.4489000000000002 0.3207000000000002 0.2210000000000001 # N11
+ 0.4489000000000002 0.8207000000000001 0.7210000000000001 # N12
+ 0.0511000000000002 0.6793000000000001 0.2790000000000000 # N13
+ 0.0511000000000002 0.1793000000000002 0.7790000000000001 # N14
+ 0.5511000000000003 0.6793000000000001 0.7790000000000001 # N15
+ 0.5510999999999999 0.1793000000000000 0.2790000000000000 # N16
+ 0.1793000000000000 0.1989000000000001 -0.0289999999999999 # N17
+ 0.1793000000000002 0.6989000000000002 0.4710000000000000 # N18
+ 0.6793000000000001 0.1989000000000001 0.4710000000000000 # N19
+ 0.6793000000000001 0.6989000000000002 -0.0289999999999999 # N20
+ 0.8207000000000001 0.8011000000000004 0.0289999999999999 # N21
+ 0.8207000000000001 0.3011000000000000 0.5290000000000000 # N22
+ 0.3207000000000002 0.8011000000000004 0.5290000000000000 # N23
+ 0.3206999999999999 0.3011000000000000 0.0289999999999999 # N24
+ 0.3011000000000000 -0.0706999999999998 0.7210000000000001 # N25
+ 0.3011000000000000 0.4293000000000001 0.2210000000000001 # N26
+ 0.8011000000000004 -0.0707000000000001 0.2210000000000001 # N27
+ 0.8011000000000004 0.4293000000000003 0.7210000000000001 # N28
+ 0.6989000000000002 0.0707000000000001 0.2790000000000000 # N29
+ 0.6989000000000002 0.5707000000000002 0.7790000000000001 # N30
+ 0.1989000000000001 0.0707000000000001 0.7790000000000001 # N31
+ 0.1989000000000001 0.5707000000000000 0.2790000000000000 # N32
+ 0.3207000000000002 0.0290000000000002 0.8011000000000004 # N33
+ 0.3207000000000002 0.5290000000000000 0.3011000000000000 # N34
+ 0.8207000000000001 0.0289999999999999 0.3011000000000000 # N35
+ 0.8207000000000001 0.5290000000000004 0.8011000000000004 # N36
+ 0.6793000000000001 -0.0289999999999999 0.1989000000000001 # N37
+ 0.6793000000000001 0.4710000000000002 0.6989000000000002 # N38
+ 0.1793000000000000 -0.0289999999999999 0.6989000000000002 # N39
+ 0.1793000000000000 0.4710000000000000 0.1989000000000001 # N40
+ 0.0707000000000001 0.1989000000000001 0.2790000000000000 # N41
+ 0.0707000000000001 0.6989000000000002 0.7790000000000001 # N42
+ 0.5707000000000002 0.1989000000000001 0.7790000000000001 # N43
+ 0.5707000000000002 0.6989000000000002 0.2790000000000000 # N44
+ -0.0706999999999998 0.8011000000000004 0.7210000000000001 # N45
+ -0.0706999999999998 0.3011000000000000 0.2210000000000001 # N46
+ 0.4293000000000003 0.8011000000000004 0.2210000000000001 # N47
+ 0.4293000000000003 0.3011000000000000 0.7210000000000001 # N48
+ 0.3207000000000002 0.7210000000000001 -0.0510999999999999 # N49
+ 0.3207000000000002 0.2210000000000001 0.4489000000000002 # N50
+ 0.8207000000000001 0.7210000000000003 0.4489000000000002 # N51
+ 0.8207000000000001 0.2210000000000001 -0.0510999999999999 # N52
+ 0.6793000000000001 0.2790000000000000 0.0510999999999999 # N53
+ 0.6793000000000001 0.7790000000000001 0.5510999999999999 # N54
+ 0.1793000000000002 0.2790000000000002 0.5510999999999999 # N55
+ 0.1793000000000000 0.7790000000000001 0.0510999999999999 # N56
+ 0.2210000000000001 0.8011000000000004 -0.0707000000000001 # N57
+ 0.2210000000000001 0.3011000000000000 0.4293000000000001 # N58
+ 0.7210000000000003 0.8011000000000004 0.4293000000000001 # N59
+ 0.7210000000000001 0.3011000000000000 -0.0707000000000001 # N60
+ 0.7790000000000001 0.1989000000000001 0.0707000000000001 # N61
+ 0.7790000000000001 0.6989000000000002 0.5707000000000000 # N62
+ 0.2790000000000000 0.1989000000000001 0.5707000000000000 # N63
+ 0.2790000000000000 0.6989000000000002 0.0707000000000001 # N64
+ 0.1793000000000000 0.0510999999999999 0.2790000000000000 # N65
+ 0.1793000000000002 0.5511000000000003 0.7790000000000001 # N66
+ 0.6793000000000001 0.0510999999999999 0.7790000000000001 # N67
+ 0.6793000000000001 0.5510999999999999 0.2790000000000000 # N68
+ 0.8207000000000001 -0.0510999999999999 0.7210000000000001 # N69
+ 0.8207000000000001 0.4489000000000002 0.2210000000000001 # N70
+ 0.3206999999999999 -0.0510999999999999 0.2210000000000001 # N71
+ 0.3207000000000002 0.4489000000000002 0.7210000000000001 # N72
+ 0.0290000000000002 0.3011000000000000 0.8207000000000001 # N73
+ 0.0290000000000002 0.8011000000000004 0.3206999999999999 # N74
+ 0.5290000000000000 0.3011000000000000 0.3206999999999999 # N75
+ 0.5290000000000004 0.8011000000000005 0.8207000000000001 # N76
+ -0.0289999999999999 0.6989000000000002 0.1793000000000000 # N77
+ -0.0289999999999999 0.1989000000000001 0.6793000000000001 # N78
+ 0.4710000000000002 0.6989000000000002 0.6793000000000001 # N79
+ 0.4710000000000000 0.1989000000000001 0.1793000000000000 # N80
+ -0.0289999999999999 0.0707000000000001 0.0510999999999999 # N81
+ -0.0289999999999999 0.5707000000000002 0.5510999999999999 # N82
+ 0.4710000000000000 0.0707000000000001 0.5510999999999999 # N83
+ 0.4710000000000000 0.5707000000000000 0.0510999999999999 # N84
+ 0.0289999999999999 -0.0707000000000001 -0.0510999999999999 # N85
+ 0.0290000000000002 0.4293000000000003 0.4489000000000002 # N86
+ 0.5290000000000000 -0.0706999999999998 0.4489000000000002 # N87
+ 0.5290000000000000 0.4293000000000001 -0.0510999999999999 # N88
+ 0.0510999999999999 -0.0289999999999999 0.0707000000000001 # N89
+ 0.0511000000000002 0.4710000000000002 0.5707000000000000 # N90
+ 0.5510999999999999 -0.0289999999999999 0.5707000000000000 # N91
+ 0.5510999999999999 0.4710000000000000 0.0707000000000001 # N92
+ -0.0510999999999999 0.0289999999999999 -0.0707000000000001 # N93
+ -0.0510999999999999 0.5290000000000004 0.4293000000000001 # N94
+ 0.4489000000000002 0.0290000000000002 0.4293000000000001 # N95
+ 0.4489000000000002 0.5290000000000000 -0.0707000000000001 # N96
+ 0.1989000000000001 0.2790000000000000 0.0707000000000001 # N97
+ 0.1989000000000001 0.7790000000000001 0.5707000000000000 # N98
+ 0.6989000000000002 0.2790000000000002 0.5707000000000000 # N99
+ 0.6989000000000002 0.7790000000000001 0.0707000000000001 # N100
+ 0.8011000000000004 0.7210000000000001 -0.0707000000000001 # N101
+ 0.8011000000000004 0.2210000000000001 0.4293000000000001 # N102
+ 0.3011000000000000 0.7210000000000003 0.4293000000000001 # N103
+ 0.3011000000000000 0.2210000000000001 -0.0707000000000001 # N104
+ -0.0289999999999999 0.1793000000000000 0.1989000000000001 # N105
+ -0.0289999999999999 0.6793000000000001 0.6989000000000002 # N106
+ 0.4710000000000002 0.1793000000000002 0.6989000000000002 # N107
+ 0.4710000000000002 0.6793000000000001 0.1989000000000001 # N108
+ 0.0289999999999999 0.8207000000000002 0.8011000000000004 # N109
+ 0.0289999999999999 0.3207000000000002 0.3011000000000000 # N110
+ 0.5290000000000004 0.8207000000000001 0.3011000000000000 # N111
+ 0.5290000000000004 0.3207000000000002 0.8011000000000004 # N112
+ 0.1989000000000001 -0.0289999999999999 0.1793000000000000 # N113
+ 0.1989000000000001 0.4710000000000002 0.6793000000000001 # N114
+ 0.6989000000000002 -0.0289999999999999 0.6793000000000001 # N115
+ 0.6989000000000002 0.4710000000000000 0.1793000000000000 # N116
+ 0.8011000000000004 0.0289999999999999 0.8207000000000001 # N117
+ 0.8011000000000004 0.5290000000000000 0.3206999999999999 # N118
+ 0.3011000000000000 0.0289999999999999 0.3206999999999999 # N119
+ 0.3011000000000000 0.5290000000000004 0.8207000000000001 # N120
+ 0.2790000000000000 0.1793000000000000 0.0510999999999999 # N121
+ 0.2790000000000002 0.6793000000000001 0.5510999999999999 # N122
+ 0.7790000000000001 0.1793000000000002 0.5510999999999999 # N123
+ 0.7790000000000001 0.6793000000000001 0.0510999999999999 # N124
+ 0.7210000000000003 0.8207000000000001 -0.0510999999999999 # N125
+ 0.7210000000000001 0.3207000000000002 0.4489000000000002 # N126
+ 0.2210000000000001 0.8207000000000001 0.4489000000000002 # N127
+ 0.2210000000000001 0.3206999999999999 -0.0510999999999999 # N128
+ 0.2790000000000000 0.0707000000000001 0.1989000000000001 # N129
+ 0.2790000000000002 0.5707000000000002 0.6989000000000002 # N130
+ 0.7790000000000001 0.0707000000000001 0.6989000000000002 # N131
+ 0.7790000000000001 0.5707000000000000 0.1989000000000001 # N132
+ 0.7210000000000003 -0.0706999999999998 0.8011000000000004 # N133
+ 0.7210000000000001 0.4293000000000001 0.3011000000000000 # N134
+ 0.2210000000000001 -0.0706999999999998 0.3011000000000000 # N135
+ 0.2210000000000001 0.4293000000000003 0.8011000000000004 # N136
+ 0.0510999999999999 0.2790000000000000 0.1793000000000000 # N137
+ 0.0510999999999999 0.7790000000000001 0.6793000000000001 # N138
+ 0.5511000000000003 0.2790000000000002 0.6793000000000001 # N139
+ 0.5511000000000003 0.7790000000000001 0.1793000000000000 # N140
+ -0.0510999999999999 0.7210000000000003 0.8207000000000001 # N141
+ -0.0510999999999999 0.2210000000000001 0.3206999999999999 # N142
+ 0.4489000000000002 0.7210000000000001 0.3206999999999999 # N143
+ 0.4489000000000002 0.2210000000000001 0.8207000000000001 # N144
+ 0.3011000000000000 0.8207000000000001 0.0289999999999999 # N145
+ 0.3011000000000000 0.3207000000000002 0.5290000000000000 # N146
+ 0.8011000000000004 0.8207000000000001 0.5290000000000000 # N147
+ 0.8011000000000004 0.3206999999999999 0.0289999999999999 # N148
+ 0.6989000000000002 0.1793000000000000 -0.0289999999999999 # N149
+ 0.6989000000000002 0.6793000000000001 0.4710000000000000 # N150
+ 0.1989000000000001 0.1793000000000002 0.4710000000000000 # N151
+ 0.1989000000000001 0.6793000000000001 -0.0289999999999999 # N152
+ -0.0510999999999999 -0.0706999999999998 0.5290000000000000 # N153
+ -0.0510999999999999 0.4293000000000001 0.0289999999999999 # N154
+ 0.4489000000000002 -0.0707000000000001 0.0289999999999999 # N155
+ 0.4489000000000002 0.4293000000000003 0.5290000000000000 # N156
+ 0.0510999999999999 0.0707000000000001 0.4710000000000000 # N157
+ 0.0510999999999999 0.5707000000000000 -0.0289999999999999 # N158
+ 0.5510999999999999 0.0707000000000001 -0.0289999999999999 # N159
+ 0.5510999999999999 0.5707000000000002 0.4710000000000000 # N160
+ -0.0706999999999998 0.2210000000000001 0.8011000000000004 # N161
+ -0.0706999999999998 0.7210000000000001 0.3011000000000000 # N162
+ 0.4293000000000001 0.2210000000000001 0.3011000000000000 # N163
+ 0.4293000000000003 0.7210000000000003 0.8011000000000004 # N164
+ 0.0707000000000001 0.7790000000000001 0.1989000000000001 # N165
+ 0.0707000000000001 0.2790000000000002 0.6989000000000002 # N166
+ 0.5707000000000002 0.7790000000000001 0.6989000000000002 # N167
+ 0.5707000000000000 0.2790000000000000 0.1989000000000001 # N168
+ -0.0707000000000001 0.0290000000000002 0.4489000000000002 # N169
+ -0.0707000000000001 0.5290000000000000 -0.0510999999999999 # N170
+ 0.4293000000000001 0.0289999999999999 -0.0510999999999999 # N171
+ 0.4293000000000001 0.5290000000000004 0.4489000000000002 # N172
+ 0.0707000000000001 -0.0289999999999999 0.5510999999999999 # N173
+ 0.0707000000000001 0.4710000000000000 0.0510999999999999 # N174
+ 0.5707000000000000 -0.0289999999999999 0.0510999999999999 # N175
+ 0.5707000000000000 0.4710000000000002 0.5510999999999999 # N176
+ 0.2210000000000001 -0.0510999999999999 0.8207000000000001 # N177
+ 0.2210000000000001 0.4489000000000002 0.3206999999999999 # N178
+ 0.7210000000000001 -0.0510999999999999 0.3206999999999999 # N179
+ 0.7210000000000003 0.4489000000000002 0.8207000000000001 # N180
+ 0.7790000000000001 0.0510999999999999 0.1793000000000000 # N181
+ 0.7790000000000001 0.5511000000000003 0.6793000000000001 # N182
+ 0.2790000000000000 0.0511000000000002 0.6793000000000001 # N183
+ 0.2790000000000000 0.5510999999999999 0.1793000000000000 # N184
+ 0.0289999999999999 -0.0510999999999999 0.4293000000000001 # N185
+ 0.0289999999999999 0.4489000000000002 -0.0707000000000001 # N186
+ 0.5290000000000000 -0.0510999999999999 -0.0707000000000001 # N187
+ 0.5290000000000000 0.4489000000000002 0.4293000000000001 # N188
+ -0.0289999999999999 0.0511000000000002 0.5707000000000000 # N189
+ -0.0289999999999999 0.5510999999999999 0.0707000000000001 # N190
+ 0.4710000000000000 0.0510999999999999 0.0707000000000001 # N191
+ 0.4710000000000000 0.5511000000000003 0.5707000000000000 # N192
diff --git a/test/data/cubic/POSCAR-229 b/test/data/cubic/POSCAR-229
new file mode 100644
index 0000000..354f826
--- /dev/null
+++ b/test/data/cubic/POSCAR-229
@@ -0,0 +1,409 @@
+$cell vectors
+1.0
+ 18.2699914032018427 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 18.2699914032018427 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 18.2699914032018427
+ 90 96 216
+Direct
+ 0.0000000000000000 0.1510000000000001 0.3100000000000001 # Ba1
+ 0.0000000000000000 0.3639999999999999 0.3639999999999999 # Ba2
+ 0.1770000000000001 0.1770000000000001 0.1770000000000001 # Ba3
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ba4
+ 0.5000000000000002 0.6509999999999999 0.8099999999999999 # Ba5
+ 0.5000000000000002 0.8640000000000001 0.8640000000000001 # Ba6
+ 0.6770000000000000 0.6770000000000003 0.6770000000000000 # Ba7
+ 0.0000000000000000 0.8489999999999999 0.6899999999999999 # Ba8
+ 0.0000000000000000 0.6360000000000001 0.6360000000000001 # Ba9
+ 0.8230000000000003 0.8230000000000000 0.8230000000000000 # Ba10
+ 0.4999999999999999 0.3490000000000000 0.1900000000000001 # Ba11
+ 0.4999999999999999 0.1359999999999999 0.1359999999999999 # Ba12
+ 0.3230000000000001 0.3230000000000001 0.3230000000000001 # Ba13
+ 0.8489999999999999 0.0000000000000000 0.3100000000000001 # Ba14
+ 0.6360000000000001 0.0000000000000000 0.3639999999999999 # Ba15
+ 0.8230000000000000 0.1770000000000001 0.1770000000000001 # Ba16
+ 0.3490000000000000 0.5000000000000002 0.8099999999999999 # Ba17
+ 0.1360000000000002 0.5000000000000002 0.8640000000000001 # Ba18
+ 0.3230000000000001 0.6770000000000003 0.6770000000000000 # Ba19
+ 0.1510000000000001 0.0000000000000000 0.6899999999999999 # Ba20
+ 0.3639999999999999 0.0000000000000000 0.6360000000000001 # Ba21
+ 0.1770000000000001 0.8230000000000000 0.8230000000000000 # Ba22
+ 0.6509999999999999 0.4999999999999999 0.1900000000000001 # Ba23
+ 0.8640000000000001 0.4999999999999999 0.1359999999999999 # Ba24
+ 0.6770000000000000 0.3230000000000001 0.3230000000000001 # Ba25
+ 0.0000000000000000 0.8489999999999999 0.3100000000000001 # Ba26
+ 0.0000000000000000 0.6360000000000001 0.3639999999999999 # Ba27
+ 0.8230000000000000 0.8230000000000000 0.1770000000000001 # Ba28
+ 0.5000000000000002 0.3490000000000000 0.8099999999999999 # Ba29
+ 0.3230000000000001 0.3230000000000001 0.6770000000000000 # Ba30
+ 0.0000000000000000 0.1510000000000001 0.6899999999999999 # Ba31
+ 0.0000000000000000 0.3639999999999999 0.6360000000000001 # Ba32
+ 0.1770000000000001 0.1770000000000001 0.8230000000000000 # Ba33
+ 0.4999999999999999 0.6509999999999999 0.1900000000000001 # Ba34
+ 0.5000000000000002 0.8640000000000001 0.1359999999999999 # Ba35
+ 0.6770000000000000 0.6770000000000000 0.3230000000000001 # Ba36
+ 0.1510000000000001 0.0000000000000000 0.3100000000000001 # Ba37
+ 0.3639999999999999 0.0000000000000000 0.3639999999999999 # Ba38
+ 0.1770000000000001 0.8230000000000000 0.1770000000000001 # Ba39
+ 0.6509999999999999 0.5000000000000002 0.8099999999999999 # Ba40
+ 0.8640000000000001 0.5000000000000002 0.8640000000000001 # Ba41
+ 0.8489999999999999 0.0000000000000000 0.6899999999999999 # Ba42
+ 0.6360000000000001 0.0000000000000000 0.6360000000000001 # Ba43
+ 0.8230000000000000 0.1770000000000001 0.8230000000000000 # Ba44
+ 0.3490000000000000 0.4999999999999999 0.1900000000000001 # Ba45
+ 0.1359999999999999 0.4999999999999999 0.1359999999999999 # Ba46
+ 0.3230000000000001 0.6770000000000000 0.3230000000000001 # Ba47
+ 0.0000000000000000 0.6899999999999999 0.1510000000000001 # Ba48
+ 0.4999999999999999 0.1900000000000001 0.6509999999999999 # Ba49
+ 0.5000000000000002 0.1360000000000002 0.8640000000000001 # Ba50
+ 0.6770000000000000 0.3230000000000001 0.6770000000000000 # Ba51
+ 0.4999999999999999 0.5000000000000002 0.4999999999999999 # Ba52
+ 0.0000000000000000 0.3100000000000001 0.8489999999999999 # Ba53
+ 0.5000000000000002 0.8099999999999999 0.3490000000000000 # Ba54
+ 0.3100000000000001 0.1510000000000001 0.0000000000000000 # Ba55
+ 0.3639999999999999 0.3639999999999999 0.0000000000000000 # Ba56
+ 0.8099999999999999 0.6509999999999999 0.4999999999999999 # Ba57
+ 0.8640000000000001 0.8640000000000001 0.4999999999999999 # Ba58
+ 0.6899999999999999 0.8489999999999999 0.0000000000000000 # Ba59
+ 0.6360000000000001 0.6360000000000001 0.0000000000000000 # Ba60
+ 0.1900000000000001 0.3490000000000000 0.4999999999999999 # Ba61
+ 0.1359999999999999 0.1359999999999999 0.4999999999999999 # Ba62
+ 0.6899999999999999 0.1510000000000001 0.0000000000000000 # Ba63
+ 0.6360000000000001 0.3639999999999999 0.0000000000000000 # Ba64
+ 0.1900000000000001 0.6509999999999999 0.4999999999999999 # Ba65
+ 0.1360000000000002 0.8640000000000001 0.4999999999999999 # Ba66
+ 0.3100000000000001 0.8489999999999999 0.0000000000000000 # Ba67
+ 0.3639999999999999 0.6360000000000001 0.0000000000000000 # Ba68
+ 0.8099999999999999 0.3490000000000000 0.4999999999999999 # Ba69
+ 0.8640000000000001 0.1359999999999999 0.4999999999999999 # Ba70
+ 0.3100000000000001 0.0000000000000000 0.1510000000000001 # Ba71
+ 0.8099999999999999 0.5000000000000002 0.6509999999999999 # Ba72
+ 0.6899999999999999 0.0000000000000000 0.8489999999999999 # Ba73
+ 0.1900000000000001 0.4999999999999999 0.3490000000000000 # Ba74
+ 0.1510000000000001 0.3100000000000001 0.0000000000000000 # Ba75
+ 0.6509999999999999 0.8100000000000002 0.4999999999999999 # Ba76
+ 0.8489999999999999 0.6899999999999999 0.0000000000000000 # Ba77
+ 0.3490000000000000 0.1900000000000001 0.4999999999999999 # Ba78
+ 0.3100000000000001 0.0000000000000000 0.8489999999999999 # Ba79
+ 0.8099999999999999 0.4999999999999999 0.3490000000000000 # Ba80
+ 0.6899999999999999 0.0000000000000000 0.1510000000000001 # Ba81
+ 0.1900000000000001 0.5000000000000002 0.6509999999999999 # Ba82
+ 0.8489999999999999 0.3100000000000001 0.0000000000000000 # Ba83
+ 0.3490000000000000 0.8100000000000002 0.4999999999999999 # Ba84
+ 0.1510000000000001 0.6899999999999999 0.0000000000000000 # Ba85
+ 0.6509999999999999 0.1900000000000001 0.4999999999999999 # Ba86
+ 0.0000000000000000 0.3100000000000001 0.1510000000000001 # Ba87
+ 0.5000000000000002 0.8100000000000002 0.6509999999999999 # Ba88
+ 0.0000000000000000 0.6899999999999999 0.8489999999999999 # Ba89
+ 0.4999999999999999 0.1900000000000001 0.3490000000000000 # Ba90
+ 0.2499999999999999 0.1500000000000000 0.3499999999999999 # Cu1
+ 0.0000000000000000 0.1250000000000001 0.1250000000000001 # Cu2
+ 0.2060000000000001 0.0000000000000000 0.0000000000000000 # Cu3
+ 0.4300000000000000 0.0000000000000000 0.0000000000000000 # Cu4
+ 0.7500000000000001 0.6500000000000001 0.8500000000000000 # Cu5
+ 0.4999999999999999 0.6250000000000000 0.6250000000000000 # Cu6
+ 0.7500000000000001 0.8500000000000000 0.6499999999999999 # Cu7
+ 0.0000000000000000 0.8750000000000002 0.8749999999999999 # Cu8
+ 0.7939999999999999 0.0000000000000000 0.0000000000000000 # Cu9
+ 0.5700000000000000 0.0000000000000000 0.0000000000000000 # Cu10
+ 0.2499999999999999 0.3499999999999999 0.1500000000000000 # Cu11
+ 0.4999999999999999 0.3750000000000001 0.3750000000000001 # Cu12
+ 0.2940000000000001 0.5000000000000002 0.4999999999999999 # Cu13
+ 0.0700000000000001 0.5000000000000002 0.4999999999999999 # Cu14
+ 0.8500000000000000 0.2499999999999999 0.3499999999999999 # Cu15
+ 0.8749999999999999 0.0000000000000000 0.1250000000000001 # Cu16
+ 0.0000000000000000 0.2060000000000001 0.0000000000000000 # Cu17
+ 0.0000000000000000 0.4300000000000000 0.0000000000000000 # Cu18
+ 0.3500000000000001 0.7500000000000001 0.8500000000000000 # Cu19
+ 0.3750000000000001 0.5000000000000002 0.6250000000000000 # Cu20
+ 0.4999999999999999 0.7059999999999998 0.4999999999999999 # Cu21
+ 0.5000000000000002 0.9299999999999999 0.4999999999999999 # Cu22
+ 0.1500000000000000 0.7500000000000001 0.6499999999999999 # Cu23
+ 0.1250000000000001 0.0000000000000000 0.8749999999999999 # Cu24
+ 0.0000000000000000 0.7939999999999999 0.0000000000000000 # Cu25
+ 0.0000000000000000 0.5700000000000000 0.0000000000000000 # Cu26
+ 0.6500000000000001 0.2499999999999999 0.1500000000000000 # Cu27
+ 0.6250000000000000 0.4999999999999999 0.3750000000000001 # Cu28
+ 0.4999999999999999 0.2940000000000001 0.4999999999999999 # Cu29
+ 0.4999999999999999 0.0700000000000001 0.4999999999999999 # Cu30
+ 0.7500000000000001 0.8500000000000000 0.3499999999999999 # Cu31
+ 0.2499999999999999 0.3500000000000001 0.8500000000000000 # Cu32
+ 0.2499999999999999 0.1500000000000000 0.6500000000000001 # Cu33
+ 0.0000000000000000 0.1250000000000001 0.8749999999999999 # Cu34
+ 0.7500000000000001 0.6500000000000001 0.1500000000000000 # Cu35
+ 0.4999999999999999 0.6250000000000000 0.3750000000000001 # Cu36
+ 0.1500000000000000 0.7500000000000001 0.3499999999999999 # Cu37
+ 0.1250000000000001 0.0000000000000000 0.1250000000000001 # Cu38
+ 0.6500000000000001 0.2500000000000002 0.8500000000000000 # Cu39
+ 0.6250000000000000 0.5000000000000002 0.6250000000000000 # Cu40
+ 0.8500000000000000 0.2499999999999999 0.6500000000000001 # Cu41
+ 0.8750000000000002 0.0000000000000000 0.8749999999999999 # Cu42
+ 0.3500000000000001 0.7500000000000001 0.1500000000000000 # Cu43
+ 0.3750000000000001 0.4999999999999999 0.3750000000000001 # Cu44
+ 0.2499999999999999 0.6500000000000001 0.1500000000000000 # Cu45
+ 0.0000000000000000 0.8749999999999999 0.1250000000000001 # Cu46
+ 0.7500000000000001 0.1500000000000000 0.6500000000000001 # Cu47
+ 0.4999999999999999 0.3750000000000001 0.6250000000000000 # Cu48
+ 0.7059999999999998 0.5000000000000002 0.4999999999999999 # Cu49
+ 0.9299999999999999 0.5000000000000002 0.4999999999999999 # Cu50
+ 0.7500000000000001 0.3500000000000001 0.8500000000000000 # Cu51
+ 0.2499999999999999 0.8500000000000000 0.3499999999999999 # Cu52
+ 0.2500000000000002 0.8500000000000000 0.6499999999999999 # Cu53
+ 0.7500000000000001 0.3499999999999999 0.1500000000000000 # Cu54
+ 0.7500000000000001 0.1500000000000000 0.3499999999999999 # Cu55
+ 0.2500000000000002 0.6500000000000001 0.8500000000000000 # Cu56
+ 0.3500000000000001 0.1500000000000000 0.7500000000000001 # Cu57
+ 0.1250000000000001 0.1250000000000001 0.0000000000000000 # Cu58
+ 0.0000000000000000 0.0000000000000000 0.7939999999999999 # Cu59
+ 0.0000000000000000 0.0000000000000000 0.5700000000000000 # Cu60
+ 0.8500000000000000 0.6500000000000001 0.2499999999999999 # Cu61
+ 0.6250000000000000 0.6250000000000000 0.4999999999999999 # Cu62
+ 0.4999999999999999 0.4999999999999999 0.2940000000000001 # Cu63
+ 0.4999999999999999 0.4999999999999999 0.0700000000000001 # Cu64
+ 0.6500000000000001 0.8500000000000000 0.2499999999999999 # Cu65
+ 0.8750000000000002 0.8749999999999999 0.0000000000000000 # Cu66
+ 0.0000000000000000 0.0000000000000000 0.2060000000000001 # Cu67
+ 0.0000000000000000 0.0000000000000000 0.4300000000000000 # Cu68
+ 0.1500000000000000 0.3500000000000001 0.7500000000000001 # Cu69
+ 0.3750000000000001 0.3750000000000001 0.4999999999999999 # Cu70
+ 0.4999999999999999 0.5000000000000002 0.7059999999999998 # Cu71
+ 0.5000000000000002 0.5000000000000002 0.9299999999999999 # Cu72
+ 0.6500000000000001 0.1500000000000000 0.2499999999999999 # Cu73
+ 0.8749999999999999 0.1250000000000001 0.0000000000000000 # Cu74
+ 0.1500000000000000 0.6500000000000001 0.7500000000000001 # Cu75
+ 0.3750000000000001 0.6250000000000000 0.4999999999999999 # Cu76
+ 0.3500000000000001 0.8500000000000000 0.7499999999999997 # Cu77
+ 0.1250000000000001 0.8749999999999999 0.0000000000000000 # Cu78
+ 0.8500000000000000 0.3500000000000001 0.2499999999999999 # Cu79
+ 0.6250000000000000 0.3750000000000001 0.4999999999999999 # Cu80
+ 0.3499999999999999 0.2499999999999999 0.1500000000000000 # Cu81
+ 0.8500000000000000 0.7500000000000004 0.6499999999999999 # Cu82
+ 0.6500000000000001 0.7500000000000001 0.8500000000000000 # Cu83
+ 0.1500000000000000 0.2499999999999999 0.3499999999999999 # Cu84
+ 0.1500000000000000 0.3500000000000001 0.2499999999999999 # Cu85
+ 0.6500000000000001 0.8500000000000000 0.7500000000000001 # Cu86
+ 0.8500000000000000 0.6500000000000001 0.7499999999999997 # Cu87
+ 0.3499999999999999 0.1500000000000000 0.2499999999999999 # Cu88
+ 0.8500000000000000 0.3500000000000001 0.7500000000000001 # Cu89
+ 0.3500000000000001 0.8500000000000000 0.2499999999999999 # Cu90
+ 0.1500000000000000 0.6500000000000001 0.2499999999999999 # Cu91
+ 0.6500000000000001 0.1500000000000000 0.7500000000000001 # Cu92
+ 0.6500000000000001 0.7500000000000001 0.1500000000000000 # Cu93
+ 0.1500000000000000 0.2499999999999999 0.6500000000000001 # Cu94
+ 0.3500000000000001 0.2500000000000002 0.8500000000000000 # Cu95
+ 0.8500000000000000 0.7500000000000001 0.3499999999999999 # Cu96
+ 0.0720000000000000 0.0720000000000000 0.1860000000000000 # O1
+ 0.1440000000000000 0.1440000000000000 0.3430000000000000 # O2
+ 0.2670000000000000 0.2670000000000000 0.0850000000000000 # O3
+ 0.2499999999999999 0.0000000000000000 0.4999999999999999 # O4
+ 0.3379999999999999 0.0000000000000000 0.0000000000000000 # O5
+ 0.0000000000000000 0.1120000000000001 0.4400000000000000 # O6
+ 0.5720000000000000 0.5720000000000003 0.6859999999999998 # O7
+ 0.6439999999999999 0.6439999999999999 0.8430000000000000 # O8
+ 0.7670000000000001 0.7670000000000001 0.5849999999999999 # O9
+ 0.7500000000000001 0.4999999999999999 0.0000000000000000 # O10
+ 0.5000000000000002 0.6120000000000000 0.9399999999999999 # O11
+ 0.9280000000000000 0.9280000000000000 0.8140000000000001 # O12
+ 0.8560000000000003 0.8560000000000003 0.6569999999999999 # O13
+ 0.7330000000000000 0.7330000000000000 0.9149999999999999 # O14
+ 0.6619999999999998 0.0000000000000000 0.0000000000000000 # O15
+ 0.0000000000000000 0.8880000000000000 0.5600000000000001 # O16
+ 0.4280000000000002 0.4280000000000002 0.3140000000000001 # O17
+ 0.3560000000000001 0.3560000000000001 0.1570000000000001 # O18
+ 0.2329999999999998 0.2329999999999998 0.4150000000000001 # O19
+ 0.2499999999999999 0.4999999999999999 0.0000000000000000 # O20
+ 0.1619999999999999 0.5000000000000002 0.4999999999999999 # O21
+ 0.4999999999999999 0.3880000000000001 0.0600000000000001 # O22
+ 0.9280000000000000 0.0720000000000000 0.1860000000000000 # O23
+ 0.8560000000000000 0.1440000000000000 0.3430000000000000 # O24
+ 0.7330000000000000 0.2670000000000000 0.0850000000000000 # O25
+ 0.0000000000000000 0.2499999999999999 0.4999999999999999 # O26
+ 0.0000000000000000 0.3379999999999999 0.0000000000000000 # O27
+ 0.8880000000000000 0.0000000000000000 0.4400000000000000 # O28
+ 0.4280000000000002 0.5720000000000003 0.6859999999999998 # O29
+ 0.3560000000000001 0.6439999999999999 0.8430000000000000 # O30
+ 0.2330000000000002 0.7670000000000001 0.5849999999999999 # O31
+ 0.4999999999999999 0.7500000000000001 0.0000000000000000 # O32
+ 0.5000000000000002 0.8380000000000001 0.4999999999999999 # O33
+ 0.3880000000000001 0.5000000000000002 0.9399999999999999 # O34
+ 0.0720000000000000 0.9280000000000000 0.8140000000000001 # O35
+ 0.1440000000000000 0.8560000000000003 0.6569999999999999 # O36
+ 0.2670000000000000 0.7330000000000000 0.9149999999999999 # O37
+ 0.0000000000000000 0.7500000000000001 0.4999999999999999 # O38
+ 0.0000000000000000 0.6619999999999998 0.0000000000000000 # O39
+ 0.1120000000000001 0.0000000000000000 0.5600000000000001 # O40
+ 0.5720000000000000 0.4280000000000002 0.3140000000000001 # O41
+ 0.6439999999999999 0.3560000000000001 0.1570000000000001 # O42
+ 0.7670000000000001 0.2329999999999998 0.4150000000000001 # O43
+ 0.4999999999999999 0.2499999999999999 0.0000000000000000 # O44
+ 0.4999999999999999 0.1619999999999999 0.4999999999999999 # O45
+ 0.6120000000000000 0.4999999999999999 0.0600000000000001 # O46
+ 0.9280000000000000 0.9280000000000000 0.1860000000000000 # O47
+ 0.8560000000000003 0.8560000000000000 0.3430000000000000 # O48
+ 0.7330000000000000 0.7330000000000000 0.0850000000000000 # O49
+ 0.0000000000000000 0.8880000000000000 0.4400000000000000 # O50
+ 0.4280000000000002 0.4280000000000002 0.6859999999999998 # O51
+ 0.3560000000000001 0.3560000000000001 0.8430000000000000 # O52
+ 0.2329999999999998 0.2329999999999998 0.5849999999999999 # O53
+ 0.5000000000000002 0.3880000000000001 0.9399999999999999 # O54
+ 0.0720000000000000 0.0720000000000000 0.8140000000000001 # O55
+ 0.1440000000000000 0.1440000000000000 0.6569999999999999 # O56
+ 0.2670000000000000 0.2670000000000000 0.9149999999999999 # O57
+ 0.0000000000000000 0.1120000000000001 0.5600000000000001 # O58
+ 0.5720000000000000 0.5720000000000000 0.3140000000000001 # O59
+ 0.6439999999999999 0.6439999999999999 0.1570000000000001 # O60
+ 0.7670000000000001 0.7670000000000001 0.4150000000000001 # O61
+ 0.4999999999999999 0.6120000000000000 0.0600000000000001 # O62
+ 0.0720000000000000 0.9280000000000000 0.1860000000000000 # O63
+ 0.1440000000000000 0.8560000000000000 0.3430000000000000 # O64
+ 0.2670000000000000 0.7330000000000000 0.0850000000000000 # O65
+ 0.1120000000000001 0.0000000000000000 0.4400000000000000 # O66
+ 0.5720000000000000 0.4280000000000002 0.6859999999999998 # O67
+ 0.6439999999999999 0.3560000000000001 0.8430000000000000 # O68
+ 0.7670000000000001 0.2329999999999998 0.5849999999999999 # O69
+ 0.6120000000000000 0.5000000000000002 0.9399999999999999 # O70
+ 0.9280000000000000 0.0720000000000000 0.8140000000000001 # O71
+ 0.8560000000000000 0.1440000000000000 0.6569999999999999 # O72
+ 0.7330000000000000 0.2670000000000000 0.9149999999999999 # O73
+ 0.8880000000000000 0.0000000000000000 0.5600000000000001 # O74
+ 0.4280000000000002 0.5720000000000000 0.3140000000000001 # O75
+ 0.3560000000000001 0.6439999999999999 0.1570000000000001 # O76
+ 0.2330000000000002 0.7670000000000001 0.4150000000000001 # O77
+ 0.3880000000000001 0.4999999999999999 0.0600000000000001 # O78
+ 0.0720000000000000 0.8140000000000001 0.0720000000000000 # O79
+ 0.1440000000000000 0.6569999999999999 0.1440000000000000 # O80
+ 0.2670000000000000 0.9150000000000004 0.2670000000000000 # O81
+ 0.0000000000000000 0.5600000000000001 0.1120000000000001 # O82
+ 0.5720000000000000 0.3140000000000001 0.5720000000000000 # O83
+ 0.6439999999999999 0.1570000000000001 0.6439999999999999 # O84
+ 0.7669999999999998 0.4150000000000001 0.7670000000000001 # O85
+ 0.7500000000000001 0.0000000000000000 0.4999999999999999 # O86
+ 0.8380000000000001 0.5000000000000002 0.4999999999999999 # O87
+ 0.4999999999999999 0.0600000000000001 0.6120000000000000 # O88
+ 0.9280000000000000 0.1860000000000000 0.9280000000000000 # O89
+ 0.8560000000000003 0.3430000000000000 0.8560000000000000 # O90
+ 0.7330000000000000 0.0850000000000000 0.7330000000000000 # O91
+ 0.0000000000000000 0.4400000000000000 0.8880000000000000 # O92
+ 0.4280000000000002 0.6859999999999998 0.4280000000000002 # O93
+ 0.3560000000000001 0.8430000000000002 0.3560000000000001 # O94
+ 0.2329999999999998 0.5849999999999999 0.2329999999999998 # O95
+ 0.5000000000000002 0.9399999999999999 0.3880000000000001 # O96
+ 0.0720000000000000 0.1860000000000000 0.9280000000000000 # O97
+ 0.1440000000000000 0.3430000000000000 0.8560000000000000 # O98
+ 0.2670000000000000 0.0850000000000000 0.7330000000000000 # O99
+ 0.5720000000000000 0.6859999999999998 0.4280000000000002 # O100
+ 0.6439999999999999 0.8430000000000000 0.3560000000000001 # O101
+ 0.7670000000000001 0.5849999999999999 0.2329999999999998 # O102
+ 0.9280000000000000 0.8140000000000001 0.0720000000000000 # O103
+ 0.8560000000000003 0.6569999999999999 0.1440000000000000 # O104
+ 0.7330000000000000 0.9149999999999999 0.2670000000000000 # O105
+ 0.4280000000000002 0.3140000000000001 0.5720000000000000 # O106
+ 0.3560000000000001 0.1570000000000001 0.6439999999999999 # O107
+ 0.2330000000000002 0.4150000000000001 0.7670000000000001 # O108
+ 0.1860000000000000 0.0720000000000000 0.9280000000000000 # O109
+ 0.3430000000000000 0.1440000000000000 0.8560000000000000 # O110
+ 0.0850000000000000 0.2670000000000000 0.7330000000000000 # O111
+ 0.4999999999999999 0.0000000000000000 0.7500000000000001 # O112
+ 0.0000000000000000 0.0000000000000000 0.6619999999999998 # O113
+ 0.4400000000000000 0.1120000000000001 0.0000000000000000 # O114
+ 0.6859999999999998 0.5720000000000000 0.4280000000000002 # O115
+ 0.8430000000000002 0.6439999999999999 0.3560000000000001 # O116
+ 0.5849999999999999 0.7670000000000001 0.2329999999999998 # O117
+ 0.0000000000000000 0.4999999999999999 0.2499999999999999 # O118
+ 0.4999999999999999 0.4999999999999999 0.1619999999999999 # O119
+ 0.9399999999999999 0.6120000000000000 0.4999999999999999 # O120
+ 0.8140000000000003 0.9280000000000000 0.0720000000000000 # O121
+ 0.6570000000000003 0.8560000000000000 0.1440000000000000 # O122
+ 0.9150000000000004 0.7330000000000000 0.2670000000000000 # O123
+ 0.4999999999999999 0.0000000000000000 0.2499999999999999 # O124
+ 0.0000000000000000 0.0000000000000000 0.3379999999999999 # O125
+ 0.5600000000000003 0.8880000000000000 0.0000000000000000 # O126
+ 0.3140000000000001 0.4280000000000002 0.5720000000000000 # O127
+ 0.1570000000000001 0.3560000000000001 0.6439999999999999 # O128
+ 0.4150000000000001 0.2330000000000002 0.7670000000000001 # O129
+ 0.0000000000000000 0.5000000000000002 0.7500000000000001 # O130
+ 0.5000000000000002 0.5000000000000002 0.8380000000000001 # O131
+ 0.0600000000000001 0.3880000000000001 0.4999999999999999 # O132
+ 0.8140000000000001 0.0720000000000000 0.0720000000000000 # O133
+ 0.6569999999999999 0.1440000000000000 0.1440000000000000 # O134
+ 0.9149999999999999 0.2670000000000000 0.2670000000000000 # O135
+ 0.5600000000000001 0.1120000000000001 0.0000000000000000 # O136
+ 0.3140000000000001 0.5720000000000003 0.5720000000000000 # O137
+ 0.1570000000000001 0.6439999999999999 0.6439999999999999 # O138
+ 0.4150000000000001 0.7670000000000001 0.7670000000000001 # O139
+ 0.0600000000000001 0.6120000000000000 0.4999999999999999 # O140
+ 0.1860000000000000 0.9280000000000002 0.9280000000000000 # O141
+ 0.3430000000000000 0.8560000000000003 0.8560000000000000 # O142
+ 0.0850000000000000 0.7330000000000000 0.7330000000000000 # O143
+ 0.4400000000000000 0.8880000000000000 0.0000000000000000 # O144
+ 0.6859999999999998 0.4280000000000002 0.4280000000000002 # O145
+ 0.8430000000000000 0.3560000000000001 0.3560000000000001 # O146
+ 0.5849999999999999 0.2329999999999998 0.2329999999999998 # O147
+ 0.9399999999999999 0.3880000000000001 0.4999999999999999 # O148
+ 0.1860000000000000 0.0720000000000000 0.0720000000000000 # O149
+ 0.3430000000000000 0.1440000000000000 0.1440000000000000 # O150
+ 0.0850000000000000 0.2670000000000000 0.2670000000000000 # O151
+ 0.4400000000000000 0.0000000000000000 0.1120000000000001 # O152
+ 0.6859999999999998 0.5720000000000003 0.5720000000000000 # O153
+ 0.8430000000000000 0.6439999999999999 0.6439999999999999 # O154
+ 0.5849999999999999 0.7670000000000001 0.7670000000000001 # O155
+ 0.9399999999999999 0.5000000000000002 0.6120000000000000 # O156
+ 0.8140000000000003 0.9280000000000002 0.9280000000000000 # O157
+ 0.6569999999999999 0.8560000000000003 0.8560000000000000 # O158
+ 0.9149999999999999 0.7330000000000000 0.7330000000000000 # O159
+ 0.5600000000000003 0.0000000000000000 0.8880000000000000 # O160
+ 0.3140000000000001 0.4280000000000002 0.4280000000000002 # O161
+ 0.1570000000000001 0.3560000000000001 0.3560000000000001 # O162
+ 0.4150000000000001 0.2329999999999998 0.2329999999999998 # O163
+ 0.0600000000000001 0.4999999999999999 0.3880000000000001 # O164
+ 0.0720000000000000 0.1860000000000000 0.0720000000000000 # O165
+ 0.1440000000000000 0.3430000000000000 0.1440000000000000 # O166
+ 0.2670000000000000 0.0850000000000000 0.2670000000000000 # O167
+ 0.1120000000000001 0.4400000000000000 0.0000000000000000 # O168
+ 0.5720000000000000 0.6859999999999998 0.5720000000000000 # O169
+ 0.6439999999999999 0.8430000000000002 0.6439999999999999 # O170
+ 0.7670000000000001 0.5850000000000002 0.7670000000000001 # O171
+ 0.6120000000000000 0.9399999999999999 0.4999999999999999 # O172
+ 0.9280000000000000 0.8140000000000003 0.9280000000000000 # O173
+ 0.8560000000000003 0.6570000000000003 0.8560000000000000 # O174
+ 0.7330000000000000 0.9150000000000004 0.7330000000000000 # O175
+ 0.8880000000000000 0.5600000000000001 0.0000000000000000 # O176
+ 0.4280000000000002 0.3140000000000001 0.4280000000000002 # O177
+ 0.3560000000000001 0.1570000000000001 0.3560000000000001 # O178
+ 0.2329999999999998 0.4150000000000001 0.2329999999999998 # O179
+ 0.3880000000000001 0.0600000000000001 0.4999999999999999 # O180
+ 0.4400000000000000 0.0000000000000000 0.8880000000000000 # O181
+ 0.9399999999999999 0.4999999999999999 0.3880000000000001 # O182
+ 0.5600000000000001 0.0000000000000000 0.1120000000000001 # O183
+ 0.0600000000000001 0.5000000000000002 0.6120000000000000 # O184
+ 0.8880000000000000 0.4400000000000000 0.0000000000000000 # O185
+ 0.3880000000000001 0.9399999999999999 0.4999999999999999 # O186
+ 0.1120000000000001 0.5600000000000001 0.0000000000000000 # O187
+ 0.6120000000000000 0.0600000000000001 0.4999999999999999 # O188
+ 0.8140000000000003 0.0720000000000000 0.9280000000000000 # O189
+ 0.6570000000000003 0.1440000000000000 0.8560000000000000 # O190
+ 0.9149999999999999 0.2670000000000000 0.7330000000000000 # O191
+ 0.3140000000000001 0.5720000000000000 0.4280000000000002 # O192
+ 0.1570000000000001 0.6439999999999999 0.3560000000000001 # O193
+ 0.4150000000000001 0.7670000000000001 0.2329999999999998 # O194
+ 0.1860000000000000 0.9280000000000000 0.0720000000000000 # O195
+ 0.3430000000000000 0.8560000000000003 0.1440000000000000 # O196
+ 0.0850000000000000 0.7330000000000000 0.2670000000000000 # O197
+ 0.6859999999999998 0.4280000000000002 0.5720000000000000 # O198
+ 0.8430000000000000 0.3560000000000001 0.6439999999999999 # O199
+ 0.5849999999999999 0.2330000000000002 0.7670000000000001 # O200
+ 0.0720000000000000 0.8140000000000003 0.9280000000000000 # O201
+ 0.1440000000000000 0.6570000000000003 0.8560000000000000 # O202
+ 0.2670000000000000 0.9149999999999999 0.7330000000000000 # O203
+ 0.5720000000000000 0.3140000000000001 0.4280000000000002 # O204
+ 0.6439999999999999 0.1570000000000001 0.3560000000000001 # O205
+ 0.7670000000000001 0.4150000000000001 0.2329999999999998 # O206
+ 0.9280000000000000 0.1860000000000000 0.0720000000000000 # O207
+ 0.8560000000000000 0.3430000000000000 0.1440000000000000 # O208
+ 0.7330000000000000 0.0850000000000000 0.2670000000000000 # O209
+ 0.4280000000000002 0.6859999999999998 0.5720000000000000 # O210
+ 0.3560000000000001 0.8430000000000002 0.6439999999999999 # O211
+ 0.2330000000000002 0.5850000000000002 0.7670000000000001 # O212
+ 0.0000000000000000 0.4400000000000000 0.1120000000000001 # O213
+ 0.5000000000000002 0.9399999999999999 0.6120000000000000 # O214
+ 0.0000000000000000 0.5600000000000003 0.8880000000000000 # O215
+ 0.4999999999999999 0.0600000000000001 0.3880000000000001 # O216
diff --git a/test/data/cubic/POSCAR-229-2 b/test/data/cubic/POSCAR-229-2
new file mode 100644
index 0000000..f2a8aa9
--- /dev/null
+++ b/test/data/cubic/POSCAR-229-2
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 6.2209970727596406 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.2209970727596406 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.2209970727596406
+ 2 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mo1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Mo2
+ 0.2900000000000001 0.0000000000000000 0.0000000000000000 # F1
+ 0.7900000000000003 0.5000000000000000 0.5000000000000000 # F2
+ -0.2900000000000001 0.0000000000000000 0.0000000000000000 # F3
+ 0.2099999999999999 0.5000000000000000 0.5000000000000000 # F4
+ 0.0000000000000000 0.2900000000000001 0.0000000000000000 # F5
+ 0.5000000000000000 0.7900000000000003 0.5000000000000000 # F6
+ 0.0000000000000000 -0.2900000000000001 0.0000000000000000 # F7
+ 0.5000000000000000 0.2099999999999999 0.5000000000000000 # F8
+ 0.0000000000000000 0.0000000000000000 -0.2900000000000001 # F9
+ 0.5000000000000000 0.5000000000000000 0.2099999999999999 # F10
+ 0.0000000000000000 0.0000000000000000 0.2900000000000001 # F11
+ 0.5000000000000000 0.5000000000000000 0.7900000000000003 # F12
diff --git a/test/data/cubic/POSCAR-230 b/test/data/cubic/POSCAR-230
new file mode 100644
index 0000000..ce6d32f
--- /dev/null
+++ b/test/data/cubic/POSCAR-230
@@ -0,0 +1,167 @@
+$cell vectors
+1.0
+ 12.6019940702325997 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.6019940702325997 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.6019940702325997
+ 24 16 24 96
+Direct
+ 0.6250000000000002 0.0000000000000000 0.2500000000000001 # Na1
+ 0.1250000000000001 0.5000000000000002 0.7500000000000000 # Na2
+ 0.3750000000000002 0.0000000000000000 0.7500000000000000 # Na3
+ 0.8749999999999999 0.5000000000000002 0.2500000000000001 # Na4
+ 0.7500000000000000 0.6250000000000002 0.5000000000000002 # Na5
+ 0.2500000000000001 0.1250000000000001 0.0000000000000000 # Na6
+ 0.3750000000000002 0.5000000000000002 0.2500000000000001 # Na7
+ 0.8749999999999999 0.0000000000000000 0.7500000000000000 # Na8
+ 0.2500000000000001 0.6250000000000002 0.0000000000000000 # Na9
+ 0.7500000000000000 0.1250000000000001 0.5000000000000002 # Na10
+ 0.7500000000000000 0.3750000000000002 0.0000000000000000 # Na11
+ 0.2500000000000001 0.8749999999999999 0.5000000000000002 # Na12
+ 0.0000000000000000 0.2500000000000001 0.6250000000000002 # Na13
+ 0.5000000000000002 0.7500000000000000 0.1250000000000001 # Na14
+ 0.0000000000000000 0.7500000000000000 0.3750000000000002 # Na15
+ 0.5000000000000002 0.2500000000000001 0.8749999999999999 # Na16
+ 0.0000000000000000 0.7500000000000000 0.8749999999999999 # Na17
+ 0.5000000000000002 0.2500000000000001 0.3750000000000002 # Na18
+ 0.0000000000000000 0.2500000000000001 0.1250000000000001 # Na19
+ 0.5000000000000002 0.7500000000000000 0.6250000000000002 # Na20
+ 0.7500000000000000 0.8749999999999999 0.0000000000000000 # Na21
+ 0.2500000000000001 0.3750000000000002 0.5000000000000002 # Na22
+ 0.6250000000000002 0.5000000000000002 0.7500000000000000 # Na23
+ 0.1250000000000001 0.0000000000000000 0.2500000000000001 # Na24
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Sc1
+ 0.5000000000000002 0.5000000000000002 0.5000000000000002 # Sc2
+ 0.2500000000000001 0.2500000000000001 0.7500000000000000 # Sc3
+ 0.7500000000000000 0.7500000000000000 0.2500000000000001 # Sc4
+ 0.0000000000000000 0.0000000000000000 0.5000000000000002 # Sc5
+ 0.5000000000000002 0.5000000000000002 0.0000000000000000 # Sc6
+ 0.7500000000000000 0.2500000000000001 0.2500000000000001 # Sc7
+ 0.2500000000000001 0.7500000000000000 0.7500000000000000 # Sc8
+ 0.5000000000000002 0.0000000000000000 0.0000000000000000 # Sc9
+ 0.0000000000000000 0.5000000000000002 0.5000000000000002 # Sc10
+ 0.2500000000000001 0.2500000000000001 0.2500000000000001 # Sc11
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Sc12
+ 0.7500000000000000 0.2500000000000001 0.7500000000000000 # Sc13
+ 0.2500000000000001 0.7500000000000000 0.2500000000000001 # Sc14
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # Sc15
+ 0.5000000000000002 0.0000000000000000 0.5000000000000002 # Sc16
+ 0.8749999999999999 0.0000000000000000 0.2500000000000001 # V1
+ 0.3750000000000002 0.5000000000000002 0.7500000000000000 # V2
+ 0.1250000000000001 0.0000000000000000 0.7500000000000000 # V3
+ 0.6250000000000002 0.5000000000000002 0.2500000000000001 # V4
+ 0.7500000000000000 0.3750000000000002 0.5000000000000002 # V5
+ 0.2500000000000001 0.8749999999999999 0.0000000000000000 # V6
+ 0.1250000000000001 0.5000000000000002 0.2500000000000001 # V7
+ 0.6250000000000002 0.0000000000000000 0.7500000000000000 # V8
+ 0.2500000000000001 0.3750000000000002 0.0000000000000000 # V9
+ 0.7500000000000000 0.8749999999999999 0.5000000000000002 # V10
+ 0.7500000000000000 0.6250000000000002 0.0000000000000000 # V11
+ 0.2500000000000001 0.1250000000000001 0.5000000000000002 # V12
+ 0.0000000000000000 0.2500000000000001 0.3750000000000002 # V13
+ 0.5000000000000002 0.7500000000000000 0.8749999999999999 # V14
+ 0.0000000000000000 0.7500000000000000 0.6250000000000002 # V15
+ 0.5000000000000002 0.2500000000000001 0.1250000000000001 # V16
+ 0.0000000000000000 0.7500000000000000 0.1250000000000001 # V17
+ 0.5000000000000002 0.2500000000000001 0.6250000000000002 # V18
+ 0.0000000000000000 0.2500000000000001 0.8749999999999999 # V19
+ 0.5000000000000002 0.7500000000000000 0.3750000000000002 # V20
+ 0.7500000000000000 0.1250000000000001 0.0000000000000000 # V21
+ 0.2500000000000001 0.6250000000000002 0.5000000000000002 # V22
+ 0.8749999999999999 0.5000000000000002 0.7500000000000000 # V23
+ 0.3750000000000002 0.0000000000000000 0.2500000000000001 # V24
+ 0.9590000000000002 0.0484999999999999 0.1539000000000001 # O1
+ 0.4590000000000000 0.5485000000000001 0.6538999999999998 # O2
+ 0.0410000000000002 0.9515000000000001 0.8461000000000000 # O3
+ 0.5410000000000000 0.4515000000000003 0.3461000000000000 # O4
+ 0.2985000000000000 0.7910000000000000 0.0961000000000000 # O5
+ 0.0410000000000002 0.4514999999999999 0.1539000000000001 # O6
+ 0.5410000000000004 0.9515000000000001 0.6538999999999998 # O7
+ 0.9590000000000002 0.5485000000000001 0.8461000000000000 # O8
+ 0.2985000000000000 0.2910000000000003 0.9039000000000000 # O9
+ 0.7985000000000003 0.7910000000000000 0.4039000000000002 # O10
+ 0.7015000000000000 0.7090000000000001 0.0961000000000000 # O11
+ 0.2015000000000002 0.2089999999999999 0.5961000000000003 # O12
+ 0.2089999999999999 0.0961000000000000 0.7985000000000003 # O13
+ 0.7090000000000001 0.5961000000000003 0.2985000000000000 # O14
+ 0.7910000000000000 0.9039000000000000 0.2015000000000002 # O15
+ 0.2909999999999999 0.4039000000000002 0.7015000000000000 # O16
+ 0.9590000000000002 0.9515000000000001 0.3461000000000000 # O17
+ 0.4590000000000000 0.4515000000000003 0.8461000000000000 # O18
+ 0.0410000000000002 0.0484999999999999 0.6538999999999998 # O19
+ 0.5410000000000000 0.5485000000000001 0.1539000000000001 # O20
+ 0.7090000000000001 0.4039000000000002 0.2015000000000002 # O21
+ 0.2090000000000004 0.9039000000000005 0.7015000000000000 # O22
+ 0.2909999999999999 0.5961000000000003 0.7985000000000003 # O23
+ 0.7910000000000000 0.0961000000000000 0.2985000000000000 # O24
+ 0.9039000000000000 0.2985000000000000 0.2909999999999999 # O25
+ 0.4039000000000002 0.7985000000000003 0.7910000000000000 # O26
+ 0.0961000000000000 0.7015000000000005 0.7090000000000001 # O27
+ 0.5961000000000003 0.2015000000000002 0.2089999999999999 # O28
+ 0.5410000000000000 0.0484999999999999 0.8461000000000000 # O29
+ 0.0410000000000002 0.5485000000000001 0.3461000000000000 # O30
+ 0.4590000000000000 0.9515000000000001 0.1539000000000001 # O31
+ 0.9590000000000002 0.4515000000000003 0.6538999999999998 # O32
+ 0.0961000000000000 0.7985000000000003 0.2089999999999999 # O33
+ 0.5961000000000003 0.2985000000000000 0.7090000000000001 # O34
+ 0.9039000000000000 0.2015000000000002 0.7910000000000000 # O35
+ 0.4039000000000002 0.7015000000000000 0.2909999999999999 # O36
+ 0.1539000000000001 0.9590000000000002 0.0484999999999999 # O37
+ 0.6538999999999998 0.4590000000000000 0.5485000000000001 # O38
+ 0.8461000000000000 0.0410000000000002 0.9515000000000001 # O39
+ 0.3461000000000000 0.5410000000000000 0.4514999999999999 # O40
+ 0.0484999999999999 0.1539000000000001 0.9590000000000002 # O41
+ 0.5485000000000001 0.6538999999999998 0.4590000000000000 # O42
+ 0.9515000000000001 0.8461000000000000 0.0410000000000002 # O43
+ 0.4514999999999999 0.3461000000000000 0.5410000000000000 # O44
+ 0.9515000000000001 0.3461000000000000 0.9590000000000002 # O45
+ 0.4515000000000003 0.8461000000000000 0.4590000000000000 # O46
+ 0.0484999999999999 0.6538999999999998 0.0410000000000002 # O47
+ 0.5485000000000001 0.1539000000000001 0.5410000000000000 # O48
+ 0.1539000000000001 0.0410000000000002 0.4514999999999999 # O49
+ 0.6538999999999998 0.5410000000000000 0.9515000000000001 # O50
+ 0.8461000000000000 0.9590000000000002 0.5485000000000001 # O51
+ 0.3461000000000000 0.4590000000000000 0.0484999999999999 # O52
+ 0.4514999999999999 0.1539000000000001 0.0410000000000002 # O53
+ 0.9515000000000001 0.6538999999999998 0.5410000000000000 # O54
+ 0.5485000000000001 0.8461000000000004 0.9590000000000002 # O55
+ 0.0484999999999999 0.3461000000000000 0.4590000000000000 # O56
+ 0.8461000000000000 0.5410000000000000 0.0484999999999999 # O57
+ 0.3461000000000000 0.0410000000000002 0.5485000000000001 # O58
+ 0.1539000000000001 0.4590000000000000 0.9515000000000001 # O59
+ 0.6538999999999998 0.9590000000000002 0.4514999999999999 # O60
+ 0.3461000000000000 0.9590000000000002 0.9515000000000001 # O61
+ 0.8461000000000000 0.4590000000000000 0.4514999999999999 # O62
+ 0.6538999999999998 0.0410000000000002 0.0484999999999999 # O63
+ 0.1539000000000001 0.5410000000000000 0.5485000000000001 # O64
+ 0.0484999999999999 0.8461000000000000 0.5410000000000000 # O65
+ 0.5485000000000001 0.3461000000000000 0.0410000000000002 # O66
+ 0.9515000000000001 0.1539000000000001 0.4590000000000000 # O67
+ 0.4515000000000003 0.6539000000000003 0.9590000000000002 # O68
+ 0.7985000000000003 0.2089999999999999 0.0961000000000000 # O69
+ 0.2985000000000000 0.7090000000000001 0.5961000000000003 # O70
+ 0.2015000000000002 0.7910000000000005 0.9039000000000000 # O71
+ 0.7015000000000000 0.2909999999999999 0.4039000000000002 # O72
+ 0.2015000000000002 0.2909999999999999 0.0961000000000000 # O73
+ 0.7015000000000000 0.7910000000000000 0.5961000000000003 # O74
+ 0.7985000000000003 0.7090000000000001 0.9039000000000000 # O75
+ 0.2985000000000000 0.2089999999999999 0.4039000000000002 # O76
+ 0.2910000000000003 0.9039000000000000 0.2985000000000000 # O77
+ 0.7910000000000000 0.4039000000000002 0.7985000000000003 # O78
+ 0.7090000000000001 0.0961000000000000 0.7015000000000000 # O79
+ 0.2089999999999999 0.5961000000000003 0.2015000000000002 # O80
+ 0.2909999999999999 0.0961000000000000 0.2015000000000002 # O81
+ 0.7910000000000000 0.5961000000000003 0.7015000000000000 # O82
+ 0.7090000000000001 0.9039000000000005 0.7985000000000003 # O83
+ 0.2089999999999999 0.4039000000000002 0.2985000000000000 # O84
+ 0.4039000000000002 0.2015000000000002 0.7090000000000001 # O85
+ 0.9039000000000000 0.7015000000000000 0.2089999999999999 # O86
+ 0.5961000000000003 0.7985000000000003 0.2909999999999999 # O87
+ 0.0961000000000000 0.2985000000000000 0.7910000000000000 # O88
+ 0.0961000000000000 0.2015000000000002 0.2909999999999999 # O89
+ 0.5961000000000003 0.7015000000000005 0.7910000000000000 # O90
+ 0.9039000000000000 0.7985000000000003 0.7090000000000001 # O91
+ 0.4039000000000002 0.2985000000000000 0.2089999999999999 # O92
+ 0.7985000000000003 0.2909999999999999 0.5961000000000003 # O93
+ 0.7015000000000000 0.2090000000000004 0.9039000000000000 # O94
+ 0.2015000000000002 0.7090000000000001 0.4039000000000002 # O95
+ 0.4590000000000000 0.0484999999999999 0.3461000000000000 # O96
diff --git a/test/data/cubic/POSCAR-230-2 b/test/data/cubic/POSCAR-230-2
new file mode 100644
index 0000000..ec29f13
--- /dev/null
+++ b/test/data/cubic/POSCAR-230-2
@@ -0,0 +1,167 @@
+$cell vectors
+1.0
+ 12.3759941765750430 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.3759941765750430 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.3759941765750430
+ 24 40 96
+Direct
+ 0.1249999999999998 0.0000000000000000 0.2500000000000000 # Y1
+ 0.6249999999999998 0.4999999999999999 0.7500000000000000 # Y2
+ 0.8749999999999999 0.0000000000000000 0.7500000000000000 # Y3
+ 0.3749999999999998 0.4999999999999999 0.2500000000000000 # Y4
+ 0.2500000000000000 0.8749999999999999 0.4999999999999999 # Y5
+ 0.7500000000000000 0.3749999999999998 0.0000000000000000 # Y6
+ 0.7500000000000000 0.1250000000000002 0.4999999999999999 # Y7
+ 0.2500000000000000 0.6249999999999998 0.0000000000000000 # Y8
+ 0.8749999999999999 0.4999999999999999 0.2500000000000000 # Y9
+ 0.3750000000000003 0.0000000000000000 0.7500000000000000 # Y10
+ 0.1250000000000002 0.4999999999999999 0.7500000000000000 # Y11
+ 0.6249999999999998 0.0000000000000000 0.2500000000000000 # Y12
+ 0.2500000000000000 0.1249999999999998 0.0000000000000000 # Y13
+ 0.7500000000000000 0.6249999999999998 0.4999999999999999 # Y14
+ 0.7500000000000000 0.8749999999999999 0.0000000000000000 # Y15
+ 0.2500000000000000 0.3750000000000003 0.4999999999999999 # Y16
+ 0.0000000000000000 0.2500000000000000 0.1249999999999998 # Y17
+ 0.4999999999999999 0.7500000000000000 0.6249999999999998 # Y18
+ 0.0000000000000000 0.7500000000000000 0.8749999999999999 # Y19
+ 0.4999999999999999 0.2500000000000000 0.3749999999999998 # Y20
+ 0.0000000000000000 0.7500000000000000 0.3749999999999998 # Y21
+ 0.4999999999999999 0.2500000000000000 0.8749999999999999 # Y22
+ 0.0000000000000000 0.2500000000000000 0.6249999999999998 # Y23
+ 0.4999999999999999 0.7500000000000000 0.1249999999999998 # Y24
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Fe1
+ 0.3749999999999998 0.0000000000000000 0.2500000000000000 # Fe2
+ 0.4999999999999999 0.4999999999999999 0.4999999999999999 # Fe3
+ 0.8749999999999999 0.4999999999999999 0.7500000000000000 # Fe4
+ 0.6249999999999998 0.0000000000000000 0.7500000000000000 # Fe5
+ 0.1250000000000002 0.4999999999999999 0.2500000000000000 # Fe6
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000 # Fe7
+ 0.2500000000000000 0.1250000000000002 0.4999999999999999 # Fe8
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000 # Fe9
+ 0.7500000000000000 0.6249999999999998 0.0000000000000000 # Fe10
+ 0.7500000000000000 0.8749999999999999 0.4999999999999999 # Fe11
+ 0.2500000000000000 0.3749999999999998 0.0000000000000000 # Fe12
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # Fe13
+ 0.6249999999999998 0.4999999999999999 0.2500000000000000 # Fe14
+ 0.4999999999999999 0.0000000000000000 0.4999999999999999 # Fe15
+ 0.1250000000000002 0.0000000000000000 0.7500000000000000 # Fe16
+ 0.3750000000000003 0.4999999999999999 0.7500000000000000 # Fe17
+ 0.8749999999999999 0.0000000000000000 0.2500000000000000 # Fe18
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000 # Fe19
+ 0.2500000000000000 0.8749999999999999 0.0000000000000000 # Fe20
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000 # Fe21
+ 0.7500000000000000 0.3750000000000003 0.4999999999999999 # Fe22
+ 0.7500000000000000 0.1249999999999998 0.0000000000000000 # Fe23
+ 0.2500000000000000 0.6249999999999998 0.4999999999999999 # Fe24
+ 0.0000000000000000 0.0000000000000000 0.4999999999999999 # Fe25
+ 0.4999999999999999 0.4999999999999999 0.0000000000000000 # Fe26
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000 # Fe27
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000 # Fe28
+ 0.0000000000000000 0.2500000000000000 0.8749999999999999 # Fe29
+ 0.4999999999999999 0.7500000000000000 0.3749999999999998 # Fe30
+ 0.0000000000000000 0.7500000000000000 0.1249999999999998 # Fe31
+ 0.4999999999999999 0.2500000000000000 0.6249999999999998 # Fe32
+ 0.4999999999999999 0.0000000000000000 0.0000000000000000 # Fe33
+ 0.0000000000000000 0.4999999999999999 0.4999999999999999 # Fe34
+ 0.0000000000000000 0.7500000000000000 0.6249999999999998 # Fe35
+ 0.4999999999999999 0.2500000000000000 0.1249999999999998 # Fe36
+ 0.0000000000000000 0.2500000000000000 0.3749999999999998 # Fe37
+ 0.4999999999999999 0.7500000000000000 0.8749999999999999 # Fe38
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000 # Fe39
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Fe40
+ 0.9729999999999999 0.0566999999999999 0.1503999999999998 # O1
+ 0.4729999999999998 0.5567000000000000 0.6503999999999999 # O2
+ 0.0270000000000002 0.9433000000000000 0.8495999999999999 # O3
+ 0.5269999999999998 0.4433000000000001 0.3495999999999999 # O4
+ 0.1933000000000001 0.7229999999999998 0.4003999999999998 # O5
+ 0.6933000000000000 0.2230000000000002 0.9003999999999998 # O6
+ 0.8066999999999998 0.2770000000000002 0.5995999999999998 # O7
+ 0.3066999999999999 0.7769999999999998 0.0995999999999998 # O8
+ 0.0270000000000002 0.4433000000000001 0.1503999999999998 # O9
+ 0.5270000000000002 0.9433000000000000 0.6503999999999999 # O10
+ 0.9729999999999999 0.5567000000000000 0.8495999999999999 # O11
+ 0.4729999999999998 0.0566999999999999 0.3495999999999999 # O12
+ 0.3066999999999999 0.2770000000000002 0.9003999999999998 # O13
+ 0.8066999999999998 0.7769999999999998 0.4003999999999998 # O14
+ 0.6933000000000000 0.7229999999999998 0.0995999999999998 # O15
+ 0.1933000000000001 0.2230000000000002 0.5995999999999998 # O16
+ 0.2230000000000002 0.0996000000000002 0.8066999999999998 # O17
+ 0.7229999999999998 0.5995999999999998 0.3066999999999999 # O18
+ 0.7769999999999998 0.9003999999999998 0.1933000000000001 # O19
+ 0.2770000000000002 0.4003999999999998 0.6933000000000000 # O20
+ 0.9729999999999999 0.9433000000000000 0.3495999999999999 # O21
+ 0.4729999999999998 0.4433000000000001 0.8495999999999999 # O22
+ 0.0270000000000002 0.0566999999999999 0.6503999999999999 # O23
+ 0.5269999999999998 0.5567000000000000 0.1503999999999998 # O24
+ 0.7229999999999998 0.4003999999999998 0.1933000000000001 # O25
+ 0.2230000000000002 0.9003999999999998 0.6933000000000000 # O26
+ 0.2770000000000002 0.5995999999999998 0.8066999999999998 # O27
+ 0.7769999999999998 0.0995999999999998 0.3066999999999999 # O28
+ 0.9003999999999998 0.3066999999999999 0.2769999999999998 # O29
+ 0.4004000000000003 0.8066999999999998 0.7769999999999998 # O30
+ 0.0996000000000002 0.6933000000000000 0.7229999999999998 # O31
+ 0.5996000000000002 0.1933000000000001 0.2229999999999998 # O32
+ 0.5269999999999998 0.0566999999999999 0.8495999999999999 # O33
+ 0.0270000000000002 0.5567000000000000 0.3495999999999999 # O34
+ 0.4729999999999998 0.9433000000000000 0.1503999999999998 # O35
+ 0.9729999999999999 0.4433000000000001 0.6503999999999999 # O36
+ 0.0996000000000002 0.8066999999999998 0.2229999999999998 # O37
+ 0.5995999999999998 0.3066999999999999 0.7229999999999998 # O38
+ 0.9003999999999998 0.1933000000000001 0.7769999999999998 # O39
+ 0.4003999999999998 0.6933000000000000 0.2769999999999998 # O40
+ 0.1504000000000002 0.9729999999999999 0.0566999999999999 # O41
+ 0.6503999999999999 0.4729999999999998 0.5567000000000000 # O42
+ 0.8495999999999999 0.0270000000000002 0.9433000000000000 # O43
+ 0.3495999999999999 0.5269999999999998 0.4433000000000001 # O44
+ 0.0566999999999999 0.1504000000000002 0.9729999999999999 # O45
+ 0.5567000000000000 0.6503999999999999 0.4729999999999998 # O46
+ 0.9433000000000000 0.8495999999999999 0.0269999999999998 # O47
+ 0.4433000000000001 0.3495999999999999 0.5269999999999998 # O48
+ 0.9433000000000000 0.3496000000000002 0.9729999999999999 # O49
+ 0.4433000000000001 0.8495999999999999 0.4729999999999998 # O50
+ 0.0566999999999999 0.6503999999999999 0.0269999999999998 # O51
+ 0.5567000000000000 0.1504000000000002 0.5269999999999998 # O52
+ 0.1504000000000002 0.0270000000000002 0.4433000000000001 # O53
+ 0.6503999999999999 0.5269999999999998 0.9433000000000000 # O54
+ 0.8495999999999999 0.9729999999999999 0.5567000000000000 # O55
+ 0.3495999999999999 0.4729999999999998 0.0566999999999999 # O56
+ 0.4433000000000001 0.1503999999999998 0.0269999999999998 # O57
+ 0.9433000000000000 0.6503999999999999 0.5269999999999998 # O58
+ 0.5567000000000000 0.8496000000000004 0.9729999999999999 # O59
+ 0.0566999999999999 0.3495999999999999 0.4729999999999998 # O60
+ 0.8495999999999999 0.5269999999999998 0.0566999999999999 # O61
+ 0.3495999999999999 0.0270000000000002 0.5567000000000000 # O62
+ 0.1504000000000002 0.4729999999999998 0.9433000000000000 # O63
+ 0.6503999999999999 0.9729999999999999 0.4433000000000001 # O64
+ 0.3496000000000002 0.9729999999999999 0.9433000000000000 # O65
+ 0.8495999999999999 0.4729999999999998 0.4433000000000001 # O66
+ 0.6503999999999999 0.0269999999999998 0.0566999999999999 # O67
+ 0.1504000000000002 0.5269999999999998 0.5567000000000000 # O68
+ 0.0566999999999999 0.8495999999999999 0.5269999999999998 # O69
+ 0.5567000000000000 0.3495999999999999 0.0269999999999998 # O70
+ 0.9433000000000000 0.1504000000000002 0.4729999999999998 # O71
+ 0.4433000000000001 0.6503999999999999 0.9729999999999999 # O72
+ 0.8066999999999998 0.2229999999999998 0.0995999999999998 # O73
+ 0.3066999999999999 0.7229999999999998 0.5995999999999998 # O74
+ 0.1933000000000001 0.7769999999999998 0.9003999999999998 # O75
+ 0.6933000000000000 0.2769999999999998 0.4003999999999998 # O76
+ 0.1933000000000001 0.2769999999999998 0.0995999999999998 # O77
+ 0.6933000000000000 0.7769999999999998 0.5995999999999998 # O78
+ 0.8066999999999998 0.7229999999999998 0.9003999999999998 # O79
+ 0.3066999999999999 0.2230000000000002 0.4003999999999998 # O80
+ 0.2770000000000002 0.9003999999999998 0.3066999999999999 # O81
+ 0.7769999999999998 0.4003999999999998 0.8066999999999998 # O82
+ 0.7229999999999998 0.0996000000000002 0.6933000000000000 # O83
+ 0.2230000000000002 0.5995999999999998 0.1933000000000001 # O84
+ 0.2769999999999998 0.0995999999999998 0.1933000000000001 # O85
+ 0.7769999999999998 0.5995999999999998 0.6933000000000000 # O86
+ 0.7229999999999998 0.9003999999999998 0.8066999999999998 # O87
+ 0.2230000000000002 0.4003999999999998 0.3066999999999999 # O88
+ 0.4003999999999998 0.1933000000000001 0.7229999999999998 # O89
+ 0.9003999999999998 0.6933000000000000 0.2229999999999998 # O90
+ 0.5996000000000002 0.8066999999999998 0.2769999999999998 # O91
+ 0.0996000000000002 0.3066999999999999 0.7769999999999998 # O92
+ 0.0995999999999998 0.1933000000000001 0.2769999999999998 # O93
+ 0.5996000000000002 0.6933000000000000 0.7769999999999998 # O94
+ 0.9003999999999998 0.8066999999999998 0.7229999999999998 # O95
+ 0.4003999999999998 0.3066999999999999 0.2229999999999998 # O96
diff --git a/test/data/cubic/POSCAR-230-3 b/test/data/cubic/POSCAR-230-3
new file mode 100644
index 0000000..4701620
--- /dev/null
+++ b/test/data/cubic/POSCAR-230-3
@@ -0,0 +1,215 @@
+(Li24,Li48)La24Ta16O96
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 72 24 16 96
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/cubic/POSCAR-230-4 b/test/data/cubic/POSCAR-230-4
new file mode 100644
index 0000000..f89272e
--- /dev/null
+++ b/test/data/cubic/POSCAR-230-4
@@ -0,0 +1,111 @@
+(Li12,Li24)La12Ta8O48
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 36 12 8 48
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000000 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807100000000000 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807100000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000000 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807100000000000 0.1740100000000000 0.1954200000000000
+ 0.5807100000000000 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000000 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807100000000000
+ 0.3259900000000000 0.9192900000000000 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807100000000000 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/hexagonal/POSCAR-168 b/test/data/hexagonal/POSCAR-168
new file mode 100644
index 0000000..5619dc3
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-168
@@ -0,0 +1,64 @@
+$cell vectors
+1.0
+ 15.9359925014463339 0.0000000000000000 0.0000000000000000
+ -7.9679962507231625 13.8009743407708498 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8919981686514271
+ 12 6 39
+Direct
+ 0.2634000000000000 0.1734000000000001 0.4999999999999993 # Ta1
+ 0.3479000000000000 0.4368000000000000 0.5149999999999998 # Ta2
+ 0.0899999999999999 0.2634000000000000 0.4999999999999993 # Ta3
+ 0.9111000000000000 0.3478999999999999 0.5149999999999998 # Ta4
+ 0.8266000000000000 0.0900000000000000 0.4999999999999993 # Ta5
+ 0.5631999999999999 0.9111000000000000 0.5149999999999998 # Ta6
+ 0.7365999999999998 0.8266000000000000 0.4999999999999993 # Ta7
+ 0.6521000000000001 0.5632000000000000 0.5149999999999998 # Ta8
+ 0.9100000000000004 0.7366000000000000 0.4999999999999993 # Ta9
+ 0.0888999999999999 0.6521000000000000 0.5149999999999998 # Ta10
+ 0.1733999999999997 0.9099999999999999 0.4999999999999993 # Ta11
+ 0.4368000000000001 0.0889000000000000 0.5149999999999998 # Ta12
+ 0.1790000000000002 0.4965000000000003 0.0309999999999994 # K1
+ 0.6825000000000002 0.1790000000000000 0.0309999999999994 # K2
+ 0.5035000000000002 0.6825000000000002 0.0309999999999994 # K3
+ 0.8210000000000002 0.5035000000000002 0.0309999999999994 # K4
+ 0.3174999999999999 0.8210000000000001 0.0309999999999994 # K5
+ 0.4964999999999999 0.3174999999999999 0.0309999999999994 # K6
+ 0.1870000000000001 0.0350000000000000 0.5790000000000001 # F1
+ 0.0340000000000001 0.3489999999999999 0.5680000000000002 # F2
+ 0.2200000000000000 0.3880000000000000 0.5759999999999997 # F3
+ 0.3740000000000000 0.5690000000000002 0.5659999999999999 # F4
+ 0.4540000000000001 0.0930000000000001 0.0469999999999999 # F5
+ 0.2730000000000001 0.1779999999999999 0.0310000000000008 # F6
+ -0.0000000000000001 0.5000000000000002 0.5859999999999995 # F7
+ 0.1519999999999998 0.1869999999999999 0.5790000000000001 # F8
+ 0.6850000000000001 0.0339999999999999 0.5680000000000002 # F9
+ 0.8320000000000002 0.2200000000000002 0.5759999999999997 # F10
+ 0.8049999999999998 0.3739999999999998 0.5659999999999999 # F11
+ 0.3610000000000000 0.4540000000000002 0.0469999999999999 # F12
+ 0.0949999999999999 0.2730000000000001 0.0310000000000008 # F13
+ 0.5000000000000000 0.0000000000000000 0.5859999999999995 # F14
+ 0.9650000000000002 0.1520000000000000 0.5790000000000001 # F15
+ 0.6510000000000001 0.6850000000000001 0.5680000000000002 # F16
+ 0.6119999999999999 0.8320000000000001 0.5759999999999997 # F17
+ 0.4310000000000001 0.8050000000000002 0.5659999999999999 # F18
+ 0.9069999999999999 0.3610000000000000 0.0469999999999999 # F19
+ 0.8220000000000005 0.0950000000000002 0.0310000000000008 # F20
+ 0.5000000000000000 0.5000000000000002 0.5859999999999995 # F21
+ 0.8129999999999999 0.9650000000000001 0.5790000000000001 # F22
+ 0.9660000000000000 0.6510000000000000 0.5680000000000002 # F23
+ 0.7800000000000000 0.6120000000000000 0.5759999999999997 # F24
+ 0.6260000000000001 0.4310000000000000 0.5659999999999999 # F25
+ 0.5460000000000000 0.9069999999999999 0.0469999999999999 # F26
+ 0.7270000000000000 0.8220000000000001 0.0310000000000008 # F27
+ 0.8480000000000003 0.8130000000000001 0.5790000000000001 # F28
+ 0.3149999999999997 0.9659999999999997 0.5680000000000002 # F29
+ 0.1680000000000000 0.7800000000000002 0.5759999999999997 # F30
+ 0.1949999999999998 0.6260000000000001 0.5659999999999999 # F31
+ 0.6390000000000001 0.5459999999999998 0.0469999999999999 # F32
+ 0.9050000000000002 0.7269999999999999 0.0310000000000008 # F33
+ 0.0350000000000000 0.8480000000000001 0.5790000000000001 # F34
+ 0.3490000000000000 0.3149999999999999 0.5680000000000002 # F35
+ 0.3879999999999998 0.1679999999999998 0.5759999999999997 # F36
+ 0.5690000000000000 0.1949999999999999 0.5659999999999999 # F37
+ 0.0930000000000001 0.6390000000000000 0.0469999999999999 # F38
+ 0.1780000000000000 0.9050000000000002 0.0310000000000008 # F39
diff --git a/test/data/hexagonal/POSCAR-169 b/test/data/hexagonal/POSCAR-169
new file mode 100644
index 0000000..a18bda5
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-169
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 7.1099966544480102 0.0000000000000000 0.0000000000000000
+ -3.5549983272240024 6.1574377235743452 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.3399908997221459
+ 12 18
+Direct
+ 0.6858000000000002 0.9890000000000003 0.1384000000000001 # In1
+ 0.3415999999999998 0.3260000000000001 0.1662999999999999 # In2
+ 0.6967999999999998 0.6857999999999997 0.3050666666666668 # In3
+ 0.0156000000000001 0.3416000000000002 0.3329666666666666 # In4
+ 0.0109999999999997 0.6967999999999998 0.4717333333333332 # In5
+ 0.6739999999999996 0.0156000000000001 0.4996333333333334 # In6
+ 0.3141999999999998 0.0109999999999998 0.6384000000000000 # In7
+ 0.6583999999999994 0.6739999999999997 0.6663000000000000 # In8
+ 0.3032000000000001 0.3142000000000001 0.8050666666666669 # In9
+ 0.9843999999999997 0.6583999999999998 0.8329666666666665 # In10
+ 0.9889999999999997 0.3032000000000003 0.9717333333333331 # In11
+ 0.3260000000000003 0.9843999999999999 0.9996333333333333 # In12
+ 0.3025999999999996 0.9569999999999996 0.1348000000000001 # Se1
+ 0.0250000000000001 0.3645999999999999 0.1234999999999999 # Se2
+ 0.7257999999999997 0.6530000000000004 0.1582000000000000 # Se3
+ 0.3456000000000005 0.3025999999999999 0.3014666666666668 # Se4
+ 0.6603999999999993 0.0249999999999996 0.2901666666666666 # Se5
+ 0.0727999999999999 0.7258000000000000 0.3248666666666666 # Se6
+ 0.0429999999999999 0.3456000000000001 0.4681333333333335 # Se7
+ 0.6354000000000000 0.6603999999999998 0.4568333333333333 # Se8
+ 0.3469999999999996 0.0727999999999999 0.4915333333333334 # Se9
+ 0.6974000000000002 0.0430000000000002 0.6348000000000001 # Se10
+ 0.9749999999999999 0.6354000000000002 0.6235000000000001 # Se11
+ 0.2741999999999996 0.3469999999999997 0.6582000000000001 # Se12
+ 0.6543999999999995 0.6974000000000000 0.8014666666666665 # Se13
+ 0.3395999999999993 0.9749999999999995 0.7901666666666667 # Se14
+ 0.9272000000000000 0.2741999999999999 0.8248666666666667 # Se15
+ 0.9569999999999994 0.6543999999999999 0.9681333333333334 # Se16
+ 0.3646000000000000 0.3396000000000003 0.9568333333333330 # Se17
+ 0.6529999999999996 0.9271999999999999 0.9915333333333336 # Se18
diff --git a/test/data/hexagonal/POSCAR-169-2 b/test/data/hexagonal/POSCAR-169-2
new file mode 100644
index 0000000..314d8f3
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-169-2
@@ -0,0 +1,91 @@
+$cell vectors
+1.0
+ 9.7089954315099458 0.0000000000000000 0.0000000000000000
+ -4.8544977157549702 8.4082366889146698 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.3429908983105179
+ 6 24 24 12 6 12
+Direct
+ 0.9639999999999999 0.1304000000000002 0.0000000000000000 # Pt1
+ 0.8335999999999997 0.9639999999999997 0.1666666666666667 # Pt2
+ 0.8695999999999998 0.8336000000000003 0.3333333333333335 # Pt3
+ 0.0359999999999998 0.8695999999999998 0.5000000000000002 # Pt4
+ 0.1664000000000003 0.0360000000000001 0.6666666666666670 # Pt5
+ 0.1304000000000000 0.1664000000000003 0.8333333333333337 # Pt6
+ 0.9059999999999997 0.3006999999999999 0.0013000000000001 # C1
+ 1.1887999999999996 0.2833999999999997 0.0231999999999999 # C2
+ 1.0142999999999998 -0.0439999999999999 -0.0009999999999999 # C3
+ 0.7390000000000000 -0.0210000000000000 -0.0230000000000000 # C4
+ 0.6053000000000002 0.9060000000000004 0.1679666666666668 # C5
+ 0.9054000000000000 1.1888000000000001 0.1898666666666666 # C6
+ 1.0582999999999996 1.0143000000000002 0.1656666666666668 # C7
+ 0.7600000000000000 0.7390000000000000 0.1436666666666667 # C8
+ 0.6992999999999998 0.6052999999999998 0.3346333333333333 # C9
+ 0.7165999999999999 0.9054000000000002 0.3565333333333333 # C10
+ 1.0439999999999998 1.0583000000000000 0.3323333333333335 # C11
+ 1.0209999999999995 0.7600000000000000 0.3103333333333334 # C12
+ 0.0940000000000003 0.6993000000000000 0.5013000000000001 # C13
+ -0.1887999999999997 0.7166000000000002 0.5232000000000002 # C14
+ -0.0142999999999999 1.0439999999999998 0.4990000000000003 # C15
+ 0.2610000000000001 1.0209999999999999 0.4770000000000001 # C16
+ 0.3947000000000001 0.0940000000000002 0.6679666666666668 # C17
+ 0.0945999999999998 -0.1888000000000001 0.6898666666666667 # C18
+ -0.0583000000000002 -0.0143000000000002 0.6656666666666667 # C19
+ 0.2400000000000000 0.2610000000000000 0.6436666666666667 # C20
+ 0.3007000000000002 0.3947000000000001 0.8346333333333336 # C21
+ 0.2834000000000004 0.0946000000000003 0.8565333333333339 # C22
+ -0.0439999999999998 -0.0583000000000001 0.8323333333333335 # C23
+ -0.0210000000000001 0.2400000000000000 0.8103333333333337 # C24
+ 0.8660000000000001 0.3951999999999997 0.0020999999999999 # N1
+ 1.3207999999999995 0.3715999999999997 0.0370000000000001 # N2
+ 1.0432999999999999 -0.1459999999999998 -0.0019999999999999 # N3
+ 0.6070000000000000 -0.1069999999999998 -0.0370000000000001 # N4
+ 0.4708000000000000 0.8659999999999997 0.1687666666666667 # N5
+ 0.9491999999999998 1.3208000000000004 0.2036666666666668 # N6
+ 1.1892999999999994 1.0432999999999997 0.1646666666666666 # N7
+ 0.7140000000000000 0.6070000000000004 0.1296666666666667 # N8
+ 0.6048000000000001 0.4708000000000001 0.3354333333333334 # N9
+ 0.6284000000000001 0.9492000000000000 0.3703333333333333 # N10
+ 1.1459999999999995 1.1893000000000002 0.3313333333333334 # N11
+ 1.1070000000000000 0.7140000000000001 0.2963333333333334 # N12
+ 0.1340000000000000 0.6048000000000002 0.5021000000000001 # N13
+ -0.3207999999999996 0.6284000000000002 0.5370000000000003 # N14
+ -0.0432999999999997 1.1460000000000004 0.4980000000000000 # N15
+ 0.3930000000000001 1.1069999999999998 0.4630000000000001 # N16
+ 0.5292000000000000 0.1340000000000002 0.6687666666666670 # N17
+ 0.0508000000000001 -0.3208000000000003 0.7036666666666668 # N18
+ -0.1892999999999997 -0.0433000000000000 0.6646666666666671 # N19
+ 0.2860000000000004 0.3930000000000002 0.6296666666666668 # N20
+ 0.3952000000000000 0.5292000000000000 0.8354333333333337 # N21
+ 0.3715999999999999 0.0508000000000000 0.8703333333333335 # N22
+ -0.1459999999999998 -0.1892999999999997 0.8313333333333335 # N23
+ -0.1070000000000000 0.2859999999999998 0.7963333333333336 # N24
+ 0.6590000000000000 0.5790000000000001 0.9600000000000005 # Cs1
+ 0.4390000000000000 0.0841000000000003 0.0397000000000000 # Cs2
+ 0.0800000000000001 0.6589999999999999 0.1266666666666666 # Cs3
+ 0.3548999999999999 0.4390000000000000 0.2063666666666668 # Cs4
+ 0.4209999999999997 0.0800000000000000 0.2933333333333333 # Cs5
+ 0.9158999999999997 0.3549000000000003 0.3730333333333334 # Cs6
+ 0.3410000000000000 0.4209999999999999 0.4600000000000003 # Cs7
+ 0.5610000000000004 0.9159000000000003 0.5397000000000003 # Cs8
+ 0.9199999999999998 0.3410000000000000 0.6266666666666668 # Cs9
+ 0.6451000000000000 0.5609999999999999 0.7063666666666671 # Cs10
+ 0.5789999999999997 0.9199999999999999 0.7933333333333336 # Cs11
+ 0.0841000000000005 0.6451000000000002 0.8730333333333337 # Cs12
+ 0.2926000000000001 0.6685000000000000 1.0004000000000002 # O1
+ 0.6241000000000001 0.2926000000000004 0.1670666666666667 # O2
+ 0.3314999999999997 0.6241000000000002 0.3337333333333334 # O3
+ 0.7073999999999998 0.3315000000000000 0.5004000000000002 # O4
+ 0.3759000000000002 0.7074000000000003 0.6670666666666669 # O5
+ 0.6684999999999999 0.3759000000000002 0.8337333333333337 # O6
+ 0.3992999999999998 0.7390000000000000 0.9869999999999999 # H1
+ 0.2883000000000001 0.5689000000000000 1.0073000000000003 # H2
+ 0.6603000000000001 0.3993000000000000 0.1536666666666667 # H3
+ 0.7193999999999997 0.2882999999999998 0.1739666666666668 # H4
+ 0.2610000000000002 0.6603000000000001 0.3203333333333335 # H5
+ 0.4310999999999996 0.7193999999999998 0.3406333333333335 # H6
+ 0.6006999999999997 0.2610000000000000 0.4870000000000002 # H7
+ 0.7116999999999999 0.4311000000000000 0.5073000000000000 # H8
+ 0.3396999999999999 0.6006999999999998 0.6536666666666670 # H9
+ 0.2806000000000002 0.7117000000000001 0.6739666666666667 # H10
+ 0.7389999999999998 0.3396999999999999 0.8203333333333338 # H11
+ 0.5688999999999997 0.2806000000000001 0.8406333333333335 # H12
diff --git a/test/data/hexagonal/POSCAR-170 b/test/data/hexagonal/POSCAR-170
new file mode 100644
index 0000000..824de38
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-170
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 7.1099966544480102 0.0000000000000000 0.0000000000000000
+ -3.5549983272240024 6.1574377235743452 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.2999909185438199
+ 12 18
+Direct
+ 0.3330000000000001 0.0000000000000000 0.1379999999999998 # In1
+ -0.0000000000000002 0.3330000000000000 0.1379999999999998 # In2
+ 0.3330000000000000 0.3330000000000000 0.9713333333333335 # In3
+ 0.6669999999999998 0.0000000000000000 0.9713333333333335 # In4
+ -0.0000000000000002 0.3330000000000000 0.8046666666666666 # In5
+ 0.6670000000000000 0.6669999999999999 0.8046666666666666 # In6
+ 0.6669999999999998 0.0000000000000000 0.6380000000000001 # In7
+ 0.0000000000000002 0.6669999999999999 0.6380000000000001 # In8
+ 0.6670000000000000 0.6669999999999999 0.4713333333333333 # In9
+ 0.3330000000000001 0.0000000000000000 0.4713333333333333 # In10
+ 0.0000000000000002 0.6669999999999999 0.3046666666666666 # In11
+ 0.3330000000000000 0.3330000000000000 0.3046666666666666 # In12
+ 0.3330000000000001 0.0000000000000000 0.0000000000000000 # Se1
+ -0.0000000000000002 0.3330000000000000 0.0000000000000000 # Se2
+ 0.6669999999999996 0.3330000000000000 0.0000000000000000 # Se3
+ 0.3330000000000000 0.3330000000000000 0.8333333333333335 # Se4
+ 0.6669999999999998 0.0000000000000000 0.8333333333333335 # Se5
+ 0.3339999999999999 0.6669999999999999 0.8333333333333335 # Se6
+ -0.0000000000000002 0.3330000000000000 0.6666666666666667 # Se7
+ 0.6670000000000000 0.6669999999999999 0.6666666666666667 # Se8
+ 0.6670000000000003 0.3340000000000000 0.6666666666666667 # Se9
+ 0.6669999999999998 0.0000000000000000 0.4999999999999999 # Se10
+ 0.0000000000000002 0.6669999999999999 0.4999999999999999 # Se11
+ 0.3329999999999995 0.6669999999999999 0.4999999999999999 # Se12
+ 0.6670000000000000 0.6669999999999999 0.3333333333333332 # Se13
+ 0.3330000000000001 0.0000000000000000 0.3333333333333332 # Se14
+ 0.6660000000000001 0.3330000000000000 0.3333333333333332 # Se15
+ 0.0000000000000002 0.6669999999999999 0.1666666666666667 # Se16
+ 0.3330000000000000 0.3330000000000000 0.1666666666666667 # Se17
+ 0.3329999999999996 0.6659999999999999 0.1666666666666667 # Se18
diff --git a/test/data/hexagonal/POSCAR-170-2 b/test/data/hexagonal/POSCAR-170-2
new file mode 100644
index 0000000..cadeb7b
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-170-2
@@ -0,0 +1,145 @@
+$cell vectors
+1.0
+ 10.5125950533825776 0.0000000000000000 0.0000000000000000
+ -5.2562975266912852 9.1041743759279381 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.9375929712352438
+ 12 12 78 12 24
+Direct
+ 0.6836000000000002 0.8419000000000003 0.0800999999999999 # Co1
+ 0.4883000000000002 0.5115000000000003 0.2465999999999998 # Co2
+ 0.8417000000000001 0.6836000000000001 0.9134333333333332 # Co3
+ 0.9768000000000002 0.4883000000000001 0.0799333333333335 # Co4
+ 0.1581000000000001 0.8417000000000002 0.7467666666666669 # Co5
+ 0.4885000000000000 0.9768000000000002 0.9132666666666668 # Co6
+ 0.3163999999999999 0.1581000000000002 0.5801000000000001 # Co7
+ 0.5117000000000005 0.4885000000000002 0.7466000000000000 # Co8
+ 0.1583000000000002 0.3164000000000000 0.4134333333333334 # Co9
+ 0.0231999999999997 0.5116999999999999 0.5799333333333332 # Co10
+ 0.8419000000000001 0.1583000000000004 0.2467666666666667 # Co11
+ 0.5115000000000001 0.0232000000000002 0.4132666666666666 # Co12
+ 0.7589000000000002 0.1682000000000002 0.0560999999999998 # P1
+ 0.7588000000000001 0.5907000000000003 0.1068000000000000 # P2
+ 0.5907000000000000 0.7589000000000000 0.8894333333333335 # P3
+ 0.1680999999999999 0.7588000000000003 0.9401333333333333 # P4
+ 0.8318000000000001 0.5907000000000003 0.7227666666666667 # P5
+ 0.4092999999999998 0.1680999999999998 0.7734666666666665 # P6
+ 0.2411000000000000 0.8318000000000004 0.5561000000000001 # P7
+ 0.2412000000000001 0.4093000000000001 0.6068000000000002 # P8
+ 0.4092999999999998 0.2410999999999999 0.3894333333333332 # P9
+ 0.8319000000000003 0.2412000000000004 0.4401333333333332 # P10
+ 0.1682000000000001 0.4093000000000001 0.2227666666666665 # P11
+ 0.5907000000000000 0.8319000000000001 0.2734666666666665 # P12
+ 0.8045999999999999 0.7538000000000001 0.1093000000000000 # O1
+ 0.8052999999999999 0.0512999999999997 0.0549000000000000 # O2
+ 0.6150999999999999 0.4973999999999998 0.1560000000000000 # O3
+ 0.5023000000000000 0.3848000000000003 0.3400000000000000 # O4
+ 0.5684999999999998 0.6909999999999997 0.3190000000000000 # O5
+ 0.5375000000000002 0.7420000000000002 0.9872999999999998 # O6
+ 0.5360000000000003 0.7949000000000005 0.1771999999999998 # O7
+ 0.3084999999999999 0.4298999999999999 0.1784000000000000 # O8
+ 0.3967999999999998 0.4009999999999999 0.9917000000000001 # O9
+ 0.4187000000000002 0.1853000000000003 0.0991999999999998 # O10
+ 0.3246000000000000 0.9386000000000003 0.1764999999999998 # O11
+ 0.2931999999999999 0.4067000000000003 0.9894999999999998 # O12
+ 0.2553999999999999 0.8383000000000003 0.1969999999999998 # O13
+ 0.0508000000000002 0.8046000000000002 0.9426333333333332 # O14
+ 0.7540000000000002 0.8052999999999999 0.8882333333333333 # O15
+ 0.1177000000000002 0.6150999999999999 0.9893333333333334 # O16
+ 0.1175000000000001 0.5023000000000001 0.1733333333333333 # O17
+ 0.8775000000000002 0.5685000000000003 0.1523333333333332 # O18
+ 0.7955000000000003 0.5375000000000001 0.8206333333333335 # O19
+ 0.7410999999999999 0.5360000000000003 0.0105333333333334 # O20
+ 0.8786000000000000 0.3085000000000001 0.0117333333333332 # O21
+ 0.9958000000000001 0.3967999999999999 0.8250333333333331 # O22
+ 0.2334000000000002 0.4186999999999999 0.9325333333333330 # O23
+ 0.3859999999999997 0.3245999999999998 0.0098333333333334 # O24
+ 0.8865000000000001 0.2932000000000003 0.8228333333333331 # O25
+ 0.4171000000000000 0.2554000000000000 0.0303333333333334 # O26
+ 0.2461999999999999 0.0508000000000001 0.7759666666666668 # O27
+ 0.9487000000000003 0.7540000000000002 0.7215666666666665 # O28
+ 0.5025999999999998 0.1177000000000001 0.8226666666666667 # O29
+ 0.6152000000000002 0.1174999999999999 0.0066666666666665 # O30
+ 0.3090000000000004 0.8775000000000005 0.9856666666666666 # O31
+ 0.2580000000000002 0.7955000000000003 0.6539666666666664 # O32
+ 0.2050999999999999 0.7411000000000003 0.8438666666666668 # O33
+ 0.5701000000000002 0.8786000000000000 0.8450666666666665 # O34
+ 0.5990000000000002 0.9957999999999999 0.6583666666666667 # O35
+ 0.8147000000000003 0.2334000000000002 0.7658666666666664 # O36
+ 0.0613999999999998 0.3860000000000001 0.8431666666666663 # O37
+ 0.5932999999999999 0.8865000000000000 0.6561666666666663 # O38
+ 0.1617000000000003 0.4171000000000004 0.8636666666666667 # O39
+ 0.1954000000000001 0.2461999999999998 0.6093000000000003 # O40
+ 0.1946999999999999 0.9487000000000003 0.5548999999999998 # O41
+ 0.3849000000000000 0.5026000000000000 0.6560000000000001 # O42
+ 0.4977000000000001 0.6152000000000002 0.8400000000000000 # O43
+ 0.4315000000000001 0.3090000000000001 0.8190000000000001 # O44
+ 0.4625000000000002 0.2579999999999998 0.4872999999999997 # O45
+ 0.4640000000000000 0.2051000000000000 0.6772000000000000 # O46
+ 0.6915000000000000 0.5700999999999999 0.6784000000000001 # O47
+ 0.6032000000000001 0.5990000000000001 0.4916999999999999 # O48
+ 0.5812999999999999 0.8147000000000002 0.5991999999999997 # O49
+ 0.6753999999999999 0.0613999999999997 0.6764999999999997 # O50
+ 0.7068000000000001 0.5933000000000003 0.4894999999999999 # O51
+ 0.7445999999999999 0.1616999999999997 0.6969999999999996 # O52
+ 0.9492000000000005 0.1954000000000003 0.4426333333333331 # O53
+ 0.2460000000000001 0.1947000000000000 0.3882333333333332 # O54
+ 0.8823000000000002 0.3849000000000000 0.4893333333333332 # O55
+ 0.8825000000000005 0.4977000000000004 0.6733333333333335 # O56
+ 0.1224999999999998 0.4315000000000001 0.6523333333333333 # O57
+ 0.2045000000000001 0.4624999999999999 0.3206333333333333 # O58
+ 0.2589000000000002 0.4640000000000004 0.5105333333333333 # O59
+ 0.1213999999999999 0.6915000000000004 0.5117333333333335 # O60
+ 0.0042000000000001 0.6032000000000001 0.3250333333333331 # O61
+ 0.7666000000000001 0.5812999999999999 0.4325333333333333 # O62
+ 0.6140000000000002 0.6754000000000001 0.5098333333333332 # O63
+ 0.1135000000000002 0.7068000000000003 0.3228333333333329 # O64
+ 0.5828999999999999 0.7445999999999999 0.5303333333333329 # O65
+ 0.7538000000000002 0.9492000000000005 0.2759666666666667 # O66
+ 0.0513000000000003 0.2460000000000003 0.2215666666666667 # O67
+ 0.4974000000000003 0.8823000000000005 0.3226666666666664 # O68
+ 0.3847999999999999 0.8825000000000006 0.5066666666666668 # O69
+ 0.6909999999999997 0.1225000000000000 0.4856666666666666 # O70
+ 0.7419999999999998 0.2045000000000001 0.1539666666666666 # O71
+ 0.7949000000000003 0.2589000000000003 0.3438666666666665 # O72
+ 0.4298999999999997 0.1214000000000000 0.3450666666666666 # O73
+ 0.4010000000000001 0.0042000000000000 0.1583666666666668 # O74
+ 0.1853000000000004 0.7666000000000005 0.2658666666666665 # O75
+ 0.9385999999999999 0.6139999999999998 0.3431666666666665 # O76
+ 0.4067000000000000 0.1135000000000000 0.1561666666666669 # O77
+ 0.8382999999999999 0.5829000000000002 0.3636666666666665 # O78
+ 0.3299999999999998 0.6333000000000001 0.0742999999999999 # Na1
+ 0.3370999999999998 0.7006000000000003 0.0884999999999999 # Na2
+ 0.6967000000000001 0.3300000000000003 0.9076333333333333 # Na3
+ 0.6365000000000001 0.3371000000000001 0.9218333333333333 # Na4
+ 0.3667000000000001 0.6967000000000002 0.7409666666666664 # Na5
+ 0.2993999999999999 0.6365000000000003 0.7551666666666664 # Na6
+ 0.6700000000000000 0.3666999999999999 0.5743000000000001 # Na7
+ 0.6629000000000003 0.2994000000000002 0.5885000000000001 # Na8
+ 0.3033000000000000 0.6700000000000003 0.4076333333333331 # Na9
+ 0.3634999999999999 0.6629000000000005 0.4218333333333333 # Na10
+ 0.6332999999999999 0.3033000000000003 0.2409666666666666 # Na11
+ 0.7006000000000002 0.3635000000000002 0.2551666666666667 # Na12
+ 0.0775000000000002 0.0744999999999999 0.9894999999999998 # N1
+ 0.0547000000000000 0.0888000000000000 0.9344999999999998 # N2
+ 0.0097000000000002 0.0699000000000001 0.8829999999999999 # N3
+ 0.0985000000000002 0.1938000000000002 0.0432000000000000 # N4
+ 0.0030000000000000 0.0775000000000001 0.8228333333333333 # N5
+ 0.9659000000000003 0.0547000000000002 0.7678333333333335 # N6
+ 0.9398000000000002 0.0097000000000003 0.7163333333333334 # N7
+ 0.9047000000000001 0.0985000000000003 0.8765333333333334 # N8
+ 0.9255000000000003 0.0030000000000002 0.6561666666666667 # N9
+ 0.9112000000000001 0.9659000000000003 0.6011666666666666 # N10
+ 0.9301000000000004 0.9398000000000002 0.5496666666666667 # N11
+ 0.8061999999999999 0.9047000000000001 0.7098666666666665 # N12
+ 0.9225000000000002 0.9255000000000001 0.4894999999999999 # N13
+ 0.9452999999999998 0.9112000000000001 0.4345000000000000 # N14
+ 0.9903000000000000 0.9301000000000004 0.3830000000000001 # N15
+ 0.9015000000000004 0.8062000000000004 0.5431999999999998 # N16
+ 0.9969999999999999 0.9224999999999998 0.3228333333333332 # N17
+ 0.0341000000000000 0.9453000000000005 0.2678333333333332 # N18
+ 0.0602000000000001 0.9903000000000002 0.2163333333333332 # N19
+ 0.0952999999999998 0.9015000000000003 0.3765333333333335 # N20
+ 0.0744999999999999 0.9970000000000006 0.1561666666666669 # N21
+ 0.0887999999999998 0.0340999999999998 0.1011666666666665 # N22
+ 0.0699000000000002 0.0601999999999999 0.0496666666666669 # N23
+ 0.1937999999999999 0.0952999999999999 0.2098666666666667 # N24
diff --git a/test/data/hexagonal/POSCAR-171 b/test/data/hexagonal/POSCAR-171
new file mode 100644
index 0000000..5500246
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-171
@@ -0,0 +1,79 @@
+$cell vectors
+1.0
+ 17.3899918172786023 0.0000000000000000 0.0000000000000000
+ -8.6949959086392958 15.0601746853667855 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.0359938660174706
+ 24 48
+Direct
+ 0.4370000000000001 0.5630000000000002 0.0000000000000000 # Si1
+ 0.6199999999999999 0.6200000000000002 0.0000000000000000 # Si2
+ 0.2760000000000000 0.4400000000000002 0.1179999999999999 # Si3
+ 0.1630000000000001 0.4400000000000002 0.2160000000000002 # Si4
+ 0.8740000000000000 0.4369999999999999 0.3333333333333333 # Si5
+ 0.0000000000000002 0.6200000000000002 0.3333333333333333 # Si6
+ 0.8360000000000003 0.2760000000000001 0.4513333333333333 # Si7
+ 0.7230000000000000 0.1629999999999999 0.5493333333333335 # Si8
+ 0.4370000000000001 0.8740000000000002 0.6666666666666665 # Si9
+ 0.3799999999999999 0.0000000000000000 0.6666666666666665 # Si10
+ 0.5600000000000001 0.8360000000000001 0.7846666666666666 # Si11
+ 0.5600000000000001 0.7230000000000002 0.8826666666666667 # Si12
+ 0.5629999999999999 0.4369999999999999 0.0000000000000000 # Si13
+ 0.3799999999999998 0.3799999999999999 0.0000000000000000 # Si14
+ 0.7240000000000000 0.5600000000000003 0.1179999999999999 # Si15
+ 0.8370000000000001 0.5600000000000003 0.2160000000000002 # Si16
+ 0.1260000000000000 0.5630000000000002 0.3333333333333333 # Si17
+ -0.0000000000000001 0.3799999999999999 0.3333333333333333 # Si18
+ 0.1639999999999998 0.7240000000000000 0.4513333333333333 # Si19
+ 0.2770000000000000 0.8369999999999999 0.5493333333333335 # Si20
+ 0.5629999999999997 0.1259999999999999 0.6666666666666665 # Si21
+ 0.6200000000000001 0.0000000000000000 0.6666666666666665 # Si22
+ 0.4400000000000001 0.1640000000000001 0.7846666666666666 # Si23
+ 0.4400000000000001 0.2769999999999999 0.8826666666666667 # Si24
+ 0.5299999999999999 0.5950000000000003 0.0660000000000000 # O1
+ 0.3569999999999999 0.5379999999999999 0.0820000000000001 # O2
+ 0.7039999999999998 0.6380000000000000 0.0740000000000001 # O3
+ 0.2540000000000001 0.4320000000000001 0.2430000000000002 # O4
+ 0.1780000000000000 0.4320000000000001 0.0910000000000000 # O5
+ 0.0659999999999999 0.3620000000000000 0.2600000000000001 # O6
+ 0.1809999999999997 0.5379999999999999 0.2520000000000000 # O7
+ 0.0659999999999999 0.5950000000000003 0.2680000000000001 # O8
+ 0.9350000000000002 0.5300000000000001 0.3993333333333334 # O9
+ 0.8190000000000000 0.3570000000000002 0.4153333333333334 # O10
+ 0.0660000000000001 0.7040000000000001 0.4073333333333334 # O11
+ 0.8220000000000001 0.2540000000000001 0.5763333333333335 # O12
+ 0.7460000000000002 0.1779999999999999 0.4243333333333333 # O13
+ 0.7040000000000000 0.0660000000000000 0.5933333333333334 # O14
+ 0.6430000000000003 0.1810000000000002 0.5853333333333334 # O15
+ 0.4710000000000001 0.0660000000000000 0.6013333333333334 # O16
+ 0.4050000000000000 0.9350000000000003 0.7326666666666667 # O17
+ 0.4619999999999999 0.8190000000000000 0.7486666666666668 # O18
+ 0.3620000000000000 0.0660000000000000 0.7406666666666668 # O19
+ 0.5679999999999999 0.8220000000000001 0.9096666666666667 # O20
+ 0.5679999999999998 0.7459999999999999 0.7576666666666665 # O21
+ 0.6380000000000001 0.7040000000000001 0.9266666666666667 # O22
+ 0.4619999999999998 0.6430000000000000 0.9186666666666666 # O23
+ 0.4050000000000000 0.4710000000000001 0.9346666666666669 # O24
+ 0.4699999999999999 0.4050000000000001 0.0660000000000000 # O25
+ 0.6430000000000002 0.4620000000000001 0.0820000000000001 # O26
+ 0.2959999999999999 0.3620000000000000 0.0740000000000001 # O27
+ 0.7460000000000000 0.5680000000000001 0.2430000000000002 # O28
+ 0.8220000000000001 0.5680000000000001 0.0910000000000000 # O29
+ 0.9339999999999999 0.6380000000000000 0.2600000000000001 # O30
+ 0.8190000000000000 0.4620000000000001 0.2520000000000000 # O31
+ 0.9339999999999999 0.4050000000000001 0.2680000000000001 # O32
+ 0.0649999999999999 0.4700000000000000 0.3993333333333334 # O33
+ 0.1809999999999999 0.6430000000000000 0.4153333333333334 # O34
+ 0.9339999999999999 0.2960000000000000 0.4073333333333334 # O35
+ 0.1779999999999997 0.7459999999999999 0.5763333333333335 # O36
+ 0.2540000000000000 0.8220000000000001 0.4243333333333333 # O37
+ 0.2959999999999997 0.9340000000000002 0.5933333333333334 # O38
+ 0.3569999999999998 0.8190000000000000 0.5853333333333334 # O39
+ 0.5289999999999999 0.9340000000000002 0.6013333333333334 # O40
+ 0.5950000000000000 0.0649999999999998 0.7326666666666667 # O41
+ 0.5380000000000001 0.1810000000000002 0.7486666666666668 # O42
+ 0.6380000000000001 0.9340000000000002 0.7406666666666668 # O43
+ 0.4320000000000001 0.1779999999999999 0.9096666666666667 # O44
+ 0.4320000000000002 0.2540000000000001 0.7576666666666665 # O45
+ 0.3620000000000002 0.2960000000000000 0.9266666666666667 # O46
+ 0.5380000000000000 0.3570000000000002 0.9186666666666666 # O47
+ 0.5950000000000001 0.5289999999999999 0.9346666666666669 # O48
diff --git a/test/data/hexagonal/POSCAR-171-2 b/test/data/hexagonal/POSCAR-171-2
new file mode 100644
index 0000000..79f624b
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-171-2
@@ -0,0 +1,46 @@
+$cell vectors
+1.0
+ 6.3199970261760088 0.0000000000000000 0.0000000000000000
+ -3.1599985130880044 5.4732779765105271 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.2899909232492348
+ 3 6 30
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Sr1
+ 0.0000000000000000 0.0000000000000000 0.3333333333333335 # Sr2
+ 0.0000000000000000 0.0000000000000000 0.6666666666666669 # Sr3
+ 0.6919999999999992 0.0649999999999996 0.1619999999999999 # S1
+ 0.6270000000000009 0.6920000000000004 0.4953333333333333 # S2
+ -0.0649999999999997 0.6269999999999999 0.8286666666666666 # S3
+ 0.3080000000000001 -0.0649999999999996 0.1619999999999999 # S4
+ 0.3730000000000002 0.3079999999999997 0.4953333333333333 # S5
+ 0.0650000000000005 0.3730000000000003 0.8286666666666666 # S6
+ 0.7469999999999997 0.0040000000000000 0.0970000000000000 # O1
+ 0.7519999999999999 -0.0150000000000004 0.2230000000000001 # O2
+ 0.8080000000000002 0.3190000000000001 0.1659999999999999 # O3
+ 0.1879999999999999 0.4480000000000004 0.0379999999999999 # O4
+ 0.4489999999999999 0.1989999999999997 0.9519999999999997 # O5
+ 0.7430000000000004 0.7470000000000002 0.4303333333333333 # O6
+ 0.7670000000000000 0.7520000000000000 0.5563333333333333 # O7
+ 0.4890000000000000 0.8079999999999996 0.4993333333333334 # O8
+ 0.7400000000000000 0.1880000000000003 0.3713333333333333 # O9
+ 0.2500000000000002 0.4490000000000002 0.2853333333333333 # O10
+ -0.0039999999999991 0.7430000000000003 0.7636666666666668 # O11
+ 0.0150000000000009 0.7670000000000006 0.8896666666666667 # O12
+ -0.3189999999999995 0.4890000000000007 0.8326666666666664 # O13
+ 0.5520000000000007 0.7400000000000000 0.7046666666666669 # O14
+ 0.8010000000000004 0.2500000000000006 0.6186666666666668 # O15
+ 0.2529999999999997 -0.0040000000000000 0.0970000000000000 # O16
+ 0.2480000000000001 0.0150000000000004 0.2230000000000001 # O17
+ 0.1920000000000001 -0.3190000000000001 0.1659999999999999 # O18
+ 0.8120000000000007 0.5520000000000006 0.0379999999999999 # O19
+ 0.5510000000000004 0.8010000000000005 0.9519999999999997 # O20
+ 0.2569999999999997 0.2529999999999998 0.4303333333333333 # O21
+ 0.2330000000000001 0.2480000000000000 0.5563333333333333 # O22
+ 0.5110000000000000 0.1920000000000003 0.4993333333333334 # O23
+ 0.2600000000000008 0.8120000000000008 0.3713333333333333 # O24
+ 0.7499999999999999 0.5509999999999999 0.2853333333333333 # O25
+ 0.0040000000000000 0.2569999999999998 0.7636666666666668 # O26
+ -0.0149999999999996 0.2330000000000005 0.8896666666666667 # O27
+ 0.3190000000000007 0.5110000000000003 0.8326666666666664 # O28
+ 0.4480000000000003 0.2600000000000002 0.7046666666666669 # O29
+ 0.1990000000000001 0.7500000000000006 0.6186666666666668 # O30
diff --git a/test/data/hexagonal/POSCAR-172 b/test/data/hexagonal/POSCAR-172
new file mode 100644
index 0000000..d15a5c7
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-172
@@ -0,0 +1,46 @@
+$cell vectors
+1.0
+ 6.1979970835821048 0.0000000000000000 0.0000000000000000
+ -3.0989985417910493 5.3676229269639650 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 18.7269911881642592
+ 3 6 30
+Direct
+ 0.0000000000000000 0.0000000000000000 0.6666999999999996 # Ca1
+ 0.0000000000000000 0.0000000000000000 0.3333666666666667 # Ca2
+ 0.0000000000000000 0.0000000000000000 0.0000333333333334 # Ca3
+ 0.3052999999999996 -0.0638000000000002 0.4961999999999998 # S1
+ 0.3690999999999995 0.3053000000000001 0.1628666666666665 # S2
+ 1.0637999999999999 0.3691000000000003 0.8295333333333330 # S3
+ 0.6947000000000003 0.0638000000000002 0.4961999999999998 # S4
+ 0.6308999999999995 0.6947000000000000 0.1628666666666665 # S5
+ 0.9361999999999990 0.6308999999999997 0.8295333333333330 # S6
+ 0.2610000000000000 0.0270000000000005 0.5633000000000000 # O1
+ 0.2739999999999996 0.0429999999999999 0.4309999999999998 # O2
+ 0.1839999999999998 -0.3329999999999997 0.4954999999999998 # O3
+ 0.8114999999999999 0.5652999999999999 0.6271000000000000 # O4
+ 0.5653000000000005 0.8115000000000003 0.7061999999999999 # O5
+ 0.2339999999999997 0.2609999999999997 0.2299666666666667 # O6
+ 0.2310000000000001 0.2739999999999995 0.0976666666666666 # O7
+ 0.5169999999999999 0.1840000000000005 0.1621666666666666 # O8
+ 0.2461999999999999 0.8115000000000003 0.2937666666666665 # O9
+ 0.7537999999999994 0.5652999999999999 0.3728666666666666 # O10
+ 0.9730000000000001 0.2340000000000002 0.8966333333333332 # O11
+ 0.9569999999999996 0.2309999999999997 0.7643333333333330 # O12
+ 1.3330000000000002 0.5170000000000001 0.8288333333333331 # O13
+ 0.4346999999999998 0.2462000000000004 0.9604333333333330 # O14
+ 0.1884999999999997 0.7537999999999997 0.0395333333333334 # O15
+ 0.7389999999999999 -0.0270000000000005 0.5633000000000000 # O16
+ 0.7260000000000002 -0.0429999999999999 0.4309999999999998 # O17
+ 0.8160000000000001 0.3329999999999997 0.4954999999999998 # O18
+ 0.1884999999999999 0.4347000000000001 0.6271000000000000 # O19
+ 0.4346999999999994 0.1884999999999997 0.7061999999999999 # O20
+ 0.7660000000000001 0.7390000000000003 0.2299666666666667 # O21
+ 0.7689999999999992 0.7259999999999995 0.0976666666666666 # O22
+ 0.4829999999999992 0.8159999999999997 0.1621666666666666 # O23
+ 0.7538000000000000 0.1884999999999997 0.2937666666666665 # O24
+ 0.2461999999999997 0.4347000000000001 0.3728666666666666 # O25
+ 1.0269999999999997 0.7659999999999999 0.8966333333333332 # O26
+ 1.0429999999999997 0.7689999999999994 0.7643333333333330 # O27
+ 0.6669999999999998 0.4829999999999999 0.8288333333333331 # O28
+ 0.5653000000000001 0.7537999999999997 0.9604333333333330 # O29
+ 0.8115000000000001 0.2462000000000004 0.0395333333333334 # O30
diff --git a/test/data/hexagonal/POSCAR-173 b/test/data/hexagonal/POSCAR-173
new file mode 100644
index 0000000..e89ca07
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-173
@@ -0,0 +1,15 @@
+POSCAR generated by cell class
+1.0
+ 7.1329966436255470 0.0000000000000000 0.0000000000000000
+ -3.5664983218127717 6.1773562984888608 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4139965114033100
+ 6 2
+Direct
+ 0.0337000000000000 0.3475000000000000 0.0000000000000000 # 11
+ 0.6862000000000000 0.0337000000000000 0.5000000000000000 # 12
+ 0.6525000000000000 0.6862000000000000 0.0000000000000000 # 13
+ 0.9662999999999999 0.6525000000000000 0.5000000000000000 # 14
+ 0.3138000000000001 0.9662999999999999 0.0000000000000000 # 15
+ 0.3475000000000000 0.3138000000000001 0.5000000000000000 # 16
+ 0.3333333333333333 0.6666666666666666 0.1460000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.6460000000000000 # 22
diff --git a/test/data/hexagonal/POSCAR-173-2 b/test/data/hexagonal/POSCAR-173-2
new file mode 100644
index 0000000..466d785
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-173-2
@@ -0,0 +1,33 @@
+POSCAR generated by cell class
+1.0
+ 9.2249956592521620 0.0000000000000000 0.0000000000000000
+ -4.6124978296260792 7.9890805907135478 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2239975418897897
+ 2 6 18
+Direct
+ 0.3333333333333333 0.6666666666666666 0.6387000000000002 # 11
+ 0.6666666666666666 0.3333333333333333 0.1387000000000000 # 12
+ 0.3128000000000001 0.9779000000000000 0.0000000000000000 # 21
+ 0.3349000000000000 0.3128000000000001 0.5000000000000000 # 22
+ 0.0221000000000000 0.3349000000000000 0.0000000000000000 # 23
+ 0.6872000000000000 0.0221000000000000 0.5000000000000000 # 24
+ 0.6651000000000000 0.6872000000000000 0.0000000000000000 # 25
+ 0.9779000000000000 0.6651000000000000 0.5000000000000000 # 26
+ 0.8240000000000000 0.0435000000000000 0.2414000000000000 # 31
+ 0.5785000000000000 0.1266000000000000 0.3444000000000000 # 32
+ 0.1967000000000000 0.7156000000000000 0.3994000000000000 # 33
+ 0.7805000000000000 0.8240000000000000 0.7414000000000002 # 34
+ 0.4519000000000000 0.5785000000000000 0.8444000000000002 # 35
+ 0.4811000000000000 0.1967000000000000 0.8994000000000000 # 36
+ 0.9565000000000000 0.7805000000000000 0.2414000000000000 # 37
+ 0.8734000000000000 0.4519000000000000 0.3444000000000000 # 38
+ 0.2844000000000000 0.4811000000000000 0.3994000000000000 # 39
+ 0.1760000000000000 0.9565000000000000 0.7414000000000002 # 310
+ 0.4215000000000000 0.8734000000000000 0.8444000000000002 # 311
+ 0.8033000000000000 0.2844000000000000 0.8994000000000000 # 312
+ 0.2195000000000000 0.1760000000000000 0.2414000000000000 # 313
+ 0.5481000000000000 0.4215000000000000 0.3444000000000000 # 314
+ 0.5189000000000000 0.8033000000000000 0.3994000000000000 # 315
+ 0.0435000000000000 0.2195000000000000 0.7414000000000002 # 316
+ 0.1266000000000000 0.5481000000000000 0.8444000000000002 # 317
+ 0.7156000000000000 0.5189000000000000 0.8994000000000000 # 318
diff --git a/test/data/hexagonal/POSCAR-174 b/test/data/hexagonal/POSCAR-174
new file mode 100644
index 0000000..d38d44a
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-174
@@ -0,0 +1,28 @@
+POSCAR generated by cell class
+1.0
+ 10.2742951655126777 0.0000000000000000 0.0000000000000000
+ -5.1371475827563362 8.8978006193136228 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.9874981237146900
+ 7 2 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 11
+ 0.8931000000000000 0.5841000000000000 0.5000000000000000 # 12
+ 0.1140000000000000 0.4007000000000000 0.0000000000000000 # 13
+ 0.6909999999999999 0.1069000000000000 0.5000000000000000 # 14
+ 0.2867000000000000 0.8860000000000000 0.0000000000000000 # 15
+ 0.4159000000000000 0.3090000000000000 0.5000000000000000 # 16
+ 0.5993000000000002 0.7133000000000002 0.0000000000000000 # 17
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 22
+ 0.3894000000000001 0.4270000000000000 0.0000000000000000 # 31
+ 0.1650000000000000 0.2766000000000000 0.5000000000000000 # 32
+ 0.4284000000000001 0.0460000000000000 0.5000000000000000 # 33
+ 0.2100000000000000 0.0803000000000000 0.0000000000000000 # 34
+ 0.0376000000000000 0.6106000000000000 0.0000000000000000 # 35
+ 0.1116000000000000 0.8350000000000000 0.5000000000000000 # 36
+ 0.6176000000000001 0.5716000000000000 0.5000000000000000 # 37
+ 0.8703000000000000 0.7900000000000001 0.0000000000000000 # 38
+ 0.5730000000000000 0.9624000000000000 0.0000000000000000 # 39
+ 0.7234000000000002 0.8884000000000000 0.5000000000000000 # 310
+ 0.9540000000000000 0.3824000000000001 0.5000000000000000 # 311
+ 0.9197000000000000 0.1297000000000000 0.0000000000000000 # 312
diff --git a/test/data/hexagonal/POSCAR-174-2 b/test/data/hexagonal/POSCAR-174-2
new file mode 100644
index 0000000..7c23ea0
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-174-2
@@ -0,0 +1,115 @@
+POSCAR generated by cell class
+1.0
+ 12.3199942029253826 0.0000000000000000 0.0000000000000000
+ -6.1599971014626886 10.6694279542103985 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.8799953510473006
+ 72 18 18
+Direct
+ 0.5110000000000000 0.7550000000000000 0.0000000000000000 # 11
+ 0.5120000000000000 0.5960000000000000 0.1150000000000000 # 12
+ 0.8990000000000000 0.0900000000000000 0.0000000000000000 # 13
+ 0.0730000000000000 0.2310000000000000 0.1150000000000000 # 14
+ 0.5290000000000000 0.0950000000000000 0.0000000000000000 # 15
+ 0.4280000000000000 0.1780000000000000 0.1150000000000000 # 16
+ 0.5010000000000000 0.7030000000000000 0.5000000000000000 # 17
+ 0.4190000000000000 0.5190000000000000 0.6150000000000000 # 18
+ 0.5720000000000000 0.4330000000000000 0.5000000000000000 # 19
+ 0.4220000000000000 0.2650000000000000 0.6150000000000000 # 110
+ 0.1830000000000000 0.0960000000000000 0.5000000000000000 # 111
+ 0.1690000000000000 0.2480000000000000 0.6150000000000000 # 112
+ 0.0000000000000000 0.0000000000000000 0.2720000000000001 # 113
+ 0.3333333333333333 0.6666666666666666 0.2300000000000000 # 114
+ 0.6666666666666666 0.3333333333333333 0.2300000000000000 # 115
+ 0.3390000000000001 0.0190000000000000 0.3210000000000000 # 116
+ 0.6540000000000000 0.9880000000000000 0.1800000000000000 # 117
+ 0.2440000000000000 0.4890000000000000 0.0000000000000000 # 118
+ 0.0840000000000000 0.4880000000000000 0.8850000000000000 # 119
+ 0.1910000000000000 0.1010000000000000 0.0000000000000000 # 120
+ 0.1580000000000000 0.9269999999999999 0.8850000000000000 # 121
+ 0.5659999999999999 0.4710000000000000 0.0000000000000000 # 122
+ 0.7500000000000000 0.5720000000000000 0.8850000000000000 # 123
+ 0.2020000000000000 0.4990000000000000 0.5000000000000000 # 124
+ 0.1000000000000000 0.5810000000000000 0.3850000000000000 # 125
+ 0.8610000000000000 0.4280000000000000 0.5000000000000000 # 126
+ 0.8430000000000000 0.5780000000000000 0.3850000000000000 # 127
+ 0.9130000000000000 0.8169999999999999 0.5000000000000000 # 128
+ 0.0790000000000000 0.8310000000000000 0.3850000000000000 # 129
+ 0.0000000000000000 0.0000000000000000 0.7280000000000000 # 130
+ 0.3333333333333333 0.6666666666666666 0.7700000000000000 # 131
+ 0.6666666666666666 0.3333333333333333 0.7700000000000000 # 132
+ 0.6800000000000002 0.6610000000000000 0.6790000000000002 # 133
+ 0.3340000000000001 0.3460000000000000 0.8200000000000000 # 134
+ 0.2450000000000000 0.7560000000000000 0.0000000000000000 # 135
+ 0.4040000000000001 0.9159999999999999 0.1150000000000000 # 136
+ 0.9100000000000000 0.8090000000000002 0.0000000000000000 # 137
+ 0.7690000000000000 0.8420000000000000 0.1150000000000000 # 138
+ 0.9050000000000000 0.4340000000000000 0.0000000000000000 # 139
+ 0.8220000000000000 0.2500000000000000 0.1150000000000000 # 140
+ 0.2970000000000000 0.7980000000000002 0.5000000000000000 # 141
+ 0.4810000000000000 0.9000000000000000 0.6150000000000000 # 142
+ 0.5669999999999999 0.1390000000000000 0.5000000000000000 # 143
+ 0.7350000000000000 0.1570000000000000 0.6150000000000000 # 144
+ 0.9040000000000000 0.0870000000000000 0.5000000000000000 # 145
+ 0.7520000000000000 0.9209999999999999 0.6150000000000000 # 146
+ 0.9810000000000000 0.3200000000000000 0.3210000000000000 # 147
+ 0.0120000000000000 0.6660000000000001 0.1800000000000000 # 148
+ 0.5120000000000000 0.5960000000000000 0.8850000000000000 # 149
+ 0.0730000000000000 0.2310000000000000 0.8850000000000000 # 150
+ 0.4280000000000000 0.1780000000000000 0.8850000000000000 # 151
+ 0.4190000000000000 0.5190000000000000 0.3850000000000000 # 152
+ 0.4220000000000000 0.2650000000000000 0.3850000000000000 # 153
+ 0.1690000000000000 0.2480000000000000 0.3850000000000000 # 154
+ 0.3390000000000001 0.0190000000000000 0.6790000000000002 # 155
+ 0.6540000000000000 0.9880000000000000 0.8200000000000000 # 156
+ 0.0840000000000000 0.4880000000000000 0.1150000000000000 # 157
+ 0.1580000000000000 0.9269999999999999 0.1150000000000000 # 158
+ 0.7500000000000000 0.5720000000000000 0.1150000000000000 # 159
+ 0.1000000000000000 0.5810000000000000 0.6150000000000000 # 160
+ 0.8430000000000000 0.5780000000000000 0.6150000000000000 # 161
+ 0.0790000000000000 0.8310000000000000 0.6150000000000000 # 162
+ 0.6800000000000002 0.6610000000000000 0.3210000000000000 # 163
+ 0.3340000000000001 0.3460000000000000 0.1800000000000000 # 164
+ 0.4040000000000001 0.9159999999999999 0.8850000000000000 # 165
+ 0.7690000000000000 0.8420000000000000 0.8850000000000000 # 166
+ 0.8220000000000000 0.2500000000000000 0.8850000000000000 # 167
+ 0.4810000000000000 0.9000000000000000 0.3850000000000000 # 168
+ 0.7350000000000000 0.1570000000000000 0.3850000000000000 # 169
+ 0.7520000000000000 0.9209999999999999 0.3850000000000000 # 170
+ 0.9810000000000000 0.3200000000000000 0.6790000000000002 # 171
+ 0.0120000000000000 0.6660000000000001 0.8200000000000000 # 172
+ 0.5100000000000000 0.6480000000000000 0.0000000000000000 # 21
+ 0.0144000000000000 0.1850000000000000 0.0000000000000000 # 22
+ 0.4600000000000000 0.1490000000000000 0.0000000000000000 # 23
+ 0.4440000000000000 0.5800000000000000 0.5000000000000000 # 24
+ 0.4700000000000000 0.3220000000000000 0.5000000000000000 # 25
+ 0.1710000000000000 0.1960000000000000 0.5000000000000000 # 26
+ 0.1380000000000000 0.4900000000000000 0.0000000000000000 # 27
+ 0.1706000000000000 0.9856000000000000 0.0000000000000000 # 28
+ 0.6889999999999999 0.5400000000000000 0.0000000000000000 # 29
+ 0.1360000000000000 0.5560000000000002 0.5000000000000000 # 210
+ 0.8520000000000000 0.5300000000000000 0.5000000000000000 # 211
+ 0.0250000000000000 0.8290000000000000 0.5000000000000000 # 212
+ 0.3520000000000000 0.8620000000000000 0.0000000000000000 # 213
+ 0.8149999999999999 0.8294000000000000 0.0000000000000000 # 214
+ 0.8510000000000000 0.3110000000000000 0.0000000000000000 # 215
+ 0.4200000000000000 0.8640000000000000 0.5000000000000000 # 216
+ 0.6780000000000002 0.1480000000000000 0.5000000000000000 # 217
+ 0.8040000000000002 0.9750000000000000 0.5000000000000000 # 218
+ 0.2284000000000000 0.1226000000000000 0.2375000000000000 # 31
+ 0.2092000000000000 0.4363000000000001 0.2638000000000000 # 32
+ 0.5515000000000000 0.1060000000000000 0.2537000000000000 # 33
+ 0.8942000000000000 0.7716000000000000 0.7625000000000000 # 34
+ 0.2271000000000000 0.7907999999999999 0.7362000000000000 # 35
+ 0.5545000000000000 0.4485000000000000 0.7463000000000000 # 36
+ 0.8774000000000000 0.1058000000000000 0.2375000000000000 # 37
+ 0.5637000000000000 0.7729000000000000 0.2638000000000000 # 38
+ 0.8940000000000000 0.4455000000000000 0.2537000000000000 # 39
+ 0.2284000000000000 0.1226000000000000 0.7625000000000000 # 310
+ 0.2092000000000000 0.4363000000000001 0.7362000000000000 # 311
+ 0.5515000000000000 0.1060000000000000 0.7463000000000000 # 312
+ 0.8942000000000000 0.7716000000000000 0.2375000000000000 # 313
+ 0.2271000000000000 0.7907999999999999 0.2638000000000000 # 314
+ 0.5545000000000000 0.4485000000000000 0.2537000000000000 # 315
+ 0.8774000000000000 0.1058000000000000 0.7625000000000000 # 316
+ 0.5637000000000000 0.7729000000000000 0.7362000000000000 # 317
+ 0.8940000000000000 0.4455000000000000 0.7463000000000000 # 318
diff --git a/test/data/hexagonal/POSCAR-175 b/test/data/hexagonal/POSCAR-175
new file mode 100644
index 0000000..34c3c7f
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-175
@@ -0,0 +1,75 @@
+POSCAR generated by cell class
+1.0
+ 12.6520940466584602 0.0000000000000000 0.0000000000000000
+ -6.3260470233292274 10.9570348554760866 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.1380957001422392
+ 54 14
+Direct
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.3090000000000000 # 12
+ 0.0120000000000000 0.1270000000000000 0.0000000000000000 # 13
+ 0.2400000000000000 0.0600000000000000 0.5000000000000000 # 14
+ 0.0680000000000000 0.2620000000000000 0.2410000000000000 # 15
+ 0.1150000000000000 0.4980000000000000 0.1490000000000000 # 16
+ 0.4390000000000000 0.1050000000000000 0.3260000000000000 # 17
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 18
+ 0.6666666666666666 0.3333333333333333 0.6909999999999999 # 19
+ 0.9880000000000000 0.8730000000000000 0.0000000000000000 # 110
+ 0.7600000000000000 0.9399999999999999 0.5000000000000000 # 111
+ 0.9319999999999999 0.7380000000000000 0.7590000000000000 # 112
+ 0.8850000000000000 0.5020000000000000 0.8510000000000000 # 113
+ 0.5610000000000002 0.8950000000000000 0.6740000000000002 # 114
+ 0.6666666666666666 0.3333333333333333 0.3090000000000000 # 115
+ 0.8850000000000000 0.0120000000000000 0.0000000000000000 # 116
+ 0.1800000000000000 0.2400000000000000 0.5000000000000000 # 117
+ 0.8060000000000002 0.0680000000000000 0.2410000000000000 # 118
+ 0.6170000000000000 0.1150000000000000 0.1490000000000000 # 119
+ 0.3340000000000001 0.4390000000000000 0.3260000000000000 # 120
+ 0.3333333333333333 0.6666666666666666 0.6909999999999999 # 121
+ 0.1150000000000000 0.9880000000000000 0.0000000000000000 # 122
+ 0.8200000000000000 0.7600000000000000 0.5000000000000000 # 123
+ 0.1940000000000000 0.9319999999999999 0.7590000000000000 # 124
+ 0.3830000000000000 0.8850000000000000 0.8510000000000000 # 125
+ 0.6660000000000001 0.5610000000000002 0.6740000000000002 # 126
+ 0.8730000000000000 0.8850000000000000 0.0000000000000000 # 127
+ 0.9399999999999999 0.1800000000000000 0.5000000000000000 # 128
+ 0.7380000000000000 0.8060000000000002 0.2410000000000000 # 129
+ 0.5020000000000000 0.6170000000000000 0.1490000000000000 # 130
+ 0.8950000000000000 0.3340000000000001 0.3260000000000000 # 131
+ 0.1270000000000000 0.1150000000000000 0.0000000000000000 # 132
+ 0.0600000000000000 0.8200000000000000 0.5000000000000000 # 133
+ 0.2620000000000000 0.1940000000000000 0.7590000000000000 # 134
+ 0.4980000000000000 0.3830000000000000 0.8510000000000000 # 135
+ 0.1050000000000000 0.6660000000000001 0.6740000000000002 # 136
+ 0.9319999999999999 0.7380000000000000 0.2410000000000000 # 137
+ 0.8850000000000000 0.5020000000000000 0.1490000000000000 # 138
+ 0.5610000000000002 0.8950000000000000 0.3260000000000000 # 139
+ 0.0680000000000000 0.2620000000000000 0.7590000000000000 # 140
+ 0.1150000000000000 0.4980000000000000 0.8510000000000000 # 141
+ 0.4390000000000000 0.1050000000000000 0.6740000000000002 # 142
+ 0.1940000000000000 0.9319999999999999 0.2410000000000000 # 143
+ 0.3830000000000000 0.8850000000000000 0.1490000000000000 # 144
+ 0.6660000000000001 0.5610000000000002 0.3260000000000000 # 145
+ 0.8060000000000002 0.0680000000000000 0.7590000000000000 # 146
+ 0.6170000000000000 0.1150000000000000 0.8510000000000000 # 147
+ 0.3340000000000001 0.4390000000000000 0.6740000000000002 # 148
+ 0.2620000000000000 0.1940000000000000 0.2410000000000000 # 149
+ 0.4980000000000000 0.3830000000000000 0.1490000000000000 # 150
+ 0.1050000000000000 0.6660000000000001 0.3260000000000000 # 151
+ 0.7380000000000000 0.8060000000000002 0.7590000000000000 # 152
+ 0.5020000000000000 0.6170000000000000 0.8510000000000000 # 153
+ 0.8950000000000000 0.3340000000000001 0.6740000000000002 # 154
+ 0.0000000000000000 0.0000000000000000 0.3240000000000000 # 21
+ 0.3950000000000001 0.1250000000000000 0.0000000000000000 # 22
+ 0.1230000000000000 0.4640000000000000 0.5000000000000000 # 23
+ 0.6050000000000000 0.8750000000000000 0.0000000000000000 # 24
+ 0.8770000000000000 0.5360000000000000 0.5000000000000000 # 25
+ 0.2700000000000000 0.3950000000000001 0.0000000000000000 # 26
+ 0.6590000000000000 0.1230000000000000 0.5000000000000000 # 27
+ 0.0000000000000000 0.0000000000000000 0.6760000000000002 # 28
+ 0.7300000000000000 0.6050000000000000 0.0000000000000000 # 29
+ 0.3410000000000001 0.8770000000000000 0.5000000000000000 # 210
+ 0.8750000000000000 0.2700000000000000 0.0000000000000000 # 211
+ 0.5360000000000000 0.6590000000000000 0.5000000000000000 # 212
+ 0.1250000000000000 0.7300000000000000 0.0000000000000000 # 213
+ 0.4640000000000000 0.3410000000000001 0.5000000000000000 # 214
diff --git a/test/data/hexagonal/POSCAR-175-2 b/test/data/hexagonal/POSCAR-175-2
new file mode 100644
index 0000000..936c68c
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-175-2
@@ -0,0 +1,29 @@
+POSCAR generated by cell class
+1.0
+ 5.4589974313124738 0.0000000000000000 0.0000000000000000
+ -2.7294987156562356 4.7276304547105985 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1789970925224003
+ 6 4 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.6670000000000001 # 13
+ 0.6666666666666666 0.3333333333333333 0.3330000000000001 # 14
+ 0.6666666666666666 0.3333333333333333 0.6670000000000001 # 15
+ 0.3333333333333333 0.6666666666666666 0.3330000000000001 # 16
+ 0.3333333333333333 0.6666666666666666 0.1670000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.8330000000000000 # 22
+ 0.6666666666666666 0.3333333333333333 0.1670000000000000 # 23
+ 0.3333333333333333 0.6666666666666666 0.8330000000000000 # 24
+ 0.1390000000000000 0.4030000000000001 0.2500000000000000 # 31
+ 0.8610000000000000 0.5970000000000000 0.7500000000000000 # 32
+ 0.7360000000000000 0.1390000000000000 0.2500000000000000 # 33
+ 0.2640000000000000 0.8610000000000000 0.7500000000000000 # 34
+ 0.5970000000000000 0.7360000000000000 0.2500000000000000 # 35
+ 0.4030000000000001 0.2640000000000000 0.7500000000000000 # 36
+ 0.8610000000000000 0.5970000000000000 0.2500000000000000 # 37
+ 0.1390000000000000 0.4030000000000001 0.7500000000000000 # 38
+ 0.2640000000000000 0.8610000000000000 0.2500000000000000 # 39
+ 0.7360000000000000 0.1390000000000000 0.7500000000000000 # 310
+ 0.4030000000000001 0.2640000000000000 0.2500000000000000 # 311
+ 0.5970000000000000 0.7360000000000000 0.7500000000000000 # 312
diff --git a/test/data/hexagonal/POSCAR-176 b/test/data/hexagonal/POSCAR-176
new file mode 100644
index 0000000..508d254
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-176
@@ -0,0 +1,15 @@
+POSCAR generated by cell class
+1.0
+ 6.4179969800629095 0.0000000000000000 0.0000000000000000
+ -3.2089984900314534 5.5581484261462890 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.7429982387621501
+ 2 6
+Direct
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 12
+ 0.3923000000000000 0.3108000000000001 0.2500000000000000 # 21
+ 0.6077000000000000 0.6892000000000000 0.7500000000000000 # 22
+ 0.0815000000000000 0.3923000000000000 0.7500000000000000 # 23
+ 0.9185000000000000 0.6077000000000000 0.2500000000000000 # 24
+ 0.6892000000000000 0.0815000000000000 0.2500000000000000 # 25
+ 0.3108000000000001 0.9185000000000000 0.7500000000000000 # 26
diff --git a/test/data/hexagonal/POSCAR-176-2 b/test/data/hexagonal/POSCAR-176-2
new file mode 100644
index 0000000..33ec460
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-176-2
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 11.6699945087775347 0.0000000000000000 0.0000000000000000
+ -5.8349972543887612 10.1065117066262431 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.9499953181093730
+ 6 24 6 6 6
+Direct
+ 0.3183999999999998 0.3618999999999999 0.2500000000000000 # Sb1
+ 0.6815999999999997 0.6381000000000000 0.7500000000000002 # Sb2
+ 0.9564999999999999 0.3184000000000002 0.7500000000000002 # Sb3
+ 0.0435000000000001 0.6816000000000002 0.2500000000000000 # Sb4
+ 0.6380999999999997 0.9565000000000002 0.2500000000000000 # Sb5
+ 0.3619000000000001 0.0435000000000002 0.7500000000000002 # Sb6
+ 0.1844999999999997 0.1379999999999998 0.2500000000000000 # Cl1
+ 0.5276999999999996 0.3912999999999998 0.2500000000000000 # Cl2
+ 0.3118999999999997 0.3760999999999999 0.0185000000000003 # Cl3
+ 0.8154999999999997 0.8620000000000001 0.7500000000000002 # Cl4
+ 0.4722999999999998 0.6087000000000001 0.7500000000000002 # Cl5
+ 0.6880999999999997 0.6239000000000000 0.9815000000000004 # Cl6
+ 1.0465000000000000 0.1845000000000001 0.7500000000000002 # Cl7
+ 1.1363999999999994 0.5276999999999998 0.7500000000000002 # Cl8
+ 0.9357999999999997 0.3118999999999998 0.5185000000000004 # Cl9
+ -0.0464999999999998 0.8155000000000003 0.2500000000000000 # Cl10
+ -0.1364000000000002 0.4723000000000000 0.2500000000000000 # Cl11
+ 0.0641999999999998 0.6881000000000000 0.4815000000000004 # Cl12
+ 0.8619999999999994 1.0465000000000002 0.2500000000000000 # Cl13
+ 0.6087000000000000 1.1364000000000005 0.2500000000000000 # Cl14
+ 0.6238999999999998 0.9357999999999999 0.0185000000000003 # Cl15
+ 0.1380000000000001 -0.0464999999999998 0.7500000000000002 # Cl16
+ 0.3913000000000000 -0.1364000000000000 0.7500000000000002 # Cl17
+ 0.3761000000000002 0.0642000000000001 0.9815000000000004 # Cl18
+ 0.6880999999999997 0.6239000000000000 0.5185000000000004 # Cl19
+ 0.3118999999999997 0.3760999999999999 0.4815000000000004 # Cl20
+ 0.0641999999999998 0.6881000000000000 0.0185000000000003 # Cl21
+ 0.9357999999999997 0.3118999999999998 0.9815000000000004 # Cl22
+ 0.3761000000000002 0.0642000000000001 0.5185000000000004 # Cl23
+ 0.6238999999999998 0.9357999999999999 0.4815000000000004 # Cl24
+ 0.3720000000000001 0.5740000000000002 0.2500000000000000 # N1
+ 0.6280000000000001 0.4260000000000003 0.7500000000000002 # N2
+ 0.7980000000000000 0.3720000000000003 0.7500000000000002 # N3
+ 0.2020000000000001 0.6280000000000002 0.2500000000000000 # N4
+ 0.4259999999999998 0.7979999999999999 0.2500000000000000 # N5
+ 0.5740000000000001 0.2019999999999999 0.7500000000000002 # N6
+ 0.2399999999999997 0.5370000000000004 0.2500000000000000 # C1
+ 0.7599999999999998 0.4630000000000001 0.7500000000000002 # C2
+ 0.7029999999999997 0.2400000000000001 0.7500000000000002 # C3
+ 0.2969999999999998 0.7600000000000003 0.2500000000000000 # C4
+ 0.4629999999999999 0.7030000000000003 0.2500000000000000 # C5
+ 0.5369999999999998 0.2970000000000002 0.7500000000000002 # C6
+ 0.1639999999999997 0.4139999999999999 0.2500000000000000 # O1
+ 0.8359999999999996 0.5860000000000000 0.7500000000000002 # O2
+ 0.7499999999999998 0.1640000000000002 0.7500000000000002 # O3
+ 0.2499999999999998 0.8360000000000001 0.2500000000000000 # O4
+ 0.5860000000000000 0.7500000000000001 0.2500000000000000 # O5
+ 0.4140000000000002 0.2500000000000003 0.7500000000000002 # O6
diff --git a/test/data/hexagonal/POSCAR-177 b/test/data/hexagonal/POSCAR-177
new file mode 100644
index 0000000..ca2cbeb
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-177
@@ -0,0 +1,68 @@
+$cell vectors
+1.0
+ 6.3412970161534687 0.0000000000000000 0.0000000000000000
+ -3.1706485080767317 5.4917243089313610 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.4621969592649675
+ 1 12 48
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Pb1
+ 0.6890000000000003 0.6340000000000007 0.4899999999999998 # S1
+ 0.0550000000000004 0.6890000000000006 0.4899999999999998 # S2
+ 0.3660000000000002 0.0549999999999999 0.4899999999999998 # S3
+ 0.3110000000000002 0.3660000000000003 0.4899999999999998 # S4
+ 0.9450000000000001 0.3110000000000005 0.4899999999999998 # S5
+ 0.6339999999999998 0.9450000000000002 0.4899999999999998 # S6
+ 0.0549999999999998 0.3660000000000003 0.5100000000000003 # S7
+ 0.3109999999999995 0.9450000000000002 0.5100000000000003 # S8
+ 0.6340000000000003 0.6890000000000006 0.5100000000000003 # S9
+ 0.3660000000000002 0.3110000000000005 0.5100000000000003 # S10
+ 0.9450000000000000 0.6340000000000007 0.5100000000000003 # S11
+ 0.6889999999999996 0.0549999999999999 0.5100000000000003 # S12
+ 0.7329999999999997 0.7949999999999999 0.6659999999999998 # O1
+ 0.6980000000000004 0.7410000000000007 0.2810000000000003 # O2
+ 0.8239999999999998 0.5030000000000002 0.4899999999999998 # O3
+ 0.1990000000000004 0.7440000000000004 0.8739999999999996 # O4
+ 0.9380000000000003 0.7330000000000003 0.6659999999999998 # O5
+ 0.9570000000000000 0.6980000000000006 0.2810000000000003 # O6
+ 0.3210000000000000 0.8240000000000002 0.4899999999999998 # O7
+ 0.4550000000000002 0.1990000000000006 0.8739999999999996 # O8
+ 0.2049999999999997 0.9380000000000004 0.6659999999999998 # O9
+ 0.2589999999999999 0.9570000000000008 0.2810000000000003 # O10
+ 0.4970000000000002 0.3210000000000001 0.4899999999999998 # O11
+ 0.2559999999999997 0.4550000000000002 0.8739999999999996 # O12
+ 0.2670000000000004 0.2050000000000000 0.6659999999999998 # O13
+ 0.3020000000000002 0.2590000000000003 0.2810000000000003 # O14
+ 0.1760000000000002 0.4969999999999999 0.4899999999999998 # O15
+ 0.8009999999999997 0.2559999999999997 0.8739999999999996 # O16
+ 0.0619999999999998 0.2669999999999998 0.6659999999999998 # O17
+ 0.0429999999999998 0.3020000000000004 0.2809999999999995 # O18
+ 0.6790000000000000 0.1759999999999997 0.4899999999999998 # O19
+ 0.5450000000000003 0.8010000000000003 0.8739999999999996 # O20
+ 0.7949999999999996 0.0619999999999998 0.6659999999999998 # O21
+ 0.7409999999999999 0.0430000000000001 0.2810000000000003 # O22
+ 0.5029999999999998 0.6790000000000000 0.4899999999999998 # O23
+ 0.7439999999999996 0.5449999999999997 0.8739999999999996 # O24
+ 0.9379999999999997 0.2050000000000000 0.3340000000000004 # O25
+ 0.9570000000000001 0.2590000000000003 0.7189999999999998 # O26
+ 0.3210000000000001 0.4969999999999999 0.5100000000000003 # O27
+ 0.4550000000000000 0.2559999999999997 0.1259999999999996 # O28
+ 0.2669999999999995 0.0619999999999998 0.3340000000000004 # O29
+ 0.3020000000000004 0.0430000000000001 0.7189999999999998 # O30
+ 0.1759999999999996 0.6790000000000000 0.5100000000000003 # O31
+ 0.8009999999999998 0.5449999999999997 0.1259999999999996 # O32
+ 0.7950000000000004 0.7330000000000003 0.3339999999999995 # O33
+ 0.7410000000000003 0.6980000000000006 0.7189999999999998 # O34
+ 0.5030000000000002 0.8240000000000002 0.5100000000000003 # O35
+ 0.7440000000000003 0.1990000000000006 0.1259999999999996 # O36
+ 0.2049999999999997 0.2669999999999998 0.3339999999999995 # O37
+ 0.2590000000000003 0.3020000000000004 0.7189999999999998 # O38
+ 0.4969999999999997 0.1759999999999997 0.5100000000000003 # O39
+ 0.2560000000000001 0.8010000000000003 0.1259999999999996 # O40
+ 0.0619999999999996 0.7949999999999999 0.3339999999999995 # O41
+ 0.0430000000000005 0.7410000000000007 0.7189999999999998 # O42
+ 0.6790000000000000 0.5030000000000002 0.5100000000000003 # O43
+ 0.5450000000000002 0.7440000000000004 0.1259999999999996 # O44
+ 0.7329999999999998 0.9380000000000004 0.3339999999999995 # O45
+ 0.6980000000000002 0.9570000000000008 0.7189999999999998 # O46
+ 0.8239999999999995 0.3210000000000001 0.5100000000000003 # O47
+ 0.1990000000000001 0.4550000000000002 0.1259999999999996 # O48
diff --git a/test/data/hexagonal/POSCAR-179 b/test/data/hexagonal/POSCAR-179
new file mode 100644
index 0000000..bb4cdf6
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-179
@@ -0,0 +1,25 @@
+POSCAR generated by cell class
+1.0
+ 7.2212966020767100 0.0000000000000000 0.0000000000000000
+ -3.6106483010383532 6.2538263056606782 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.9071967498738802
+ 6 12
+Direct
+ 0.7671500000000000 0.2328500000000000 0.5833055583333334 # 11
+ 0.5343000000000000 0.7671500000000000 0.4166388916666667 # 12
+ 0.7671500000000000 0.5343000000000000 0.2499722250000000 # 13
+ 0.2328500000000000 0.7671500000000000 0.0833055583333333 # 14
+ 0.4657000000000000 0.2328500000000000 0.9166388916666666 # 15
+ 0.2328500000000000 0.4657000000000000 0.7499722250000002 # 16
+ 0.7778000000000002 0.3889000000000001 0.4166388916666667 # 21
+ 0.6873000000000000 0.0000000000000000 0.4999722250000000 # 22
+ 0.3889000000000001 0.7778000000000002 0.2499722250000000 # 23
+ 0.6873000000000000 0.6873000000000000 0.3333055583333334 # 24
+ 0.6111000000000000 0.3889000000000001 0.0833055583333333 # 25
+ 0.0000000000000000 0.6873000000000000 0.1666388916666667 # 26
+ 0.2222000000000000 0.6111000000000000 0.9166388916666666 # 27
+ 0.3127000000000000 0.0000000000000000 0.9999722249999999 # 28
+ 0.6111000000000000 0.2222000000000000 0.7499722250000002 # 29
+ 0.3127000000000000 0.3127000000000000 0.8333055583333334 # 210
+ 0.3889000000000001 0.6111000000000000 0.5833055583333334 # 211
+ 0.0000000000000000 0.3127000000000000 0.6666388916666668 # 212
diff --git a/test/data/hexagonal/POSCAR-179-2 b/test/data/hexagonal/POSCAR-179-2
new file mode 100644
index 0000000..44c952d
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-179-2
@@ -0,0 +1,97 @@
+POSCAR generated by cell class
+1.0
+ 10.4119951007190821 0.0000000000000000 0.0000000000000000
+ -5.2059975503595384 9.0170522613018402 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.1839928552937504
+ 12 12 60 6
+Direct
+ 0.8424000000000001 0.6848000000000000 0.7500000000000000 # 11
+ 0.4969500000000000 0.9939000000000000 0.7500000000000000 # 12
+ 0.1576000000000000 0.8424000000000001 0.5833333333333334 # 13
+ 0.5030500000000000 0.4969500000000000 0.5833333333333334 # 14
+ 0.3152000000000000 0.1576000000000000 0.4166666666666667 # 15
+ 0.0061000000000000 0.5030500000000000 0.4166666666666667 # 16
+ 0.1576000000000000 0.3152000000000000 0.2500000000000000 # 17
+ 0.5030500000000000 0.0061000000000000 0.2500000000000000 # 18
+ 0.8424000000000001 0.1576000000000000 0.0833333333333334 # 19
+ 0.4969500000000000 0.5030500000000000 0.0833333333333334 # 110
+ 0.6848000000000000 0.8424000000000001 0.9166666666666666 # 111
+ 0.9939000000000000 0.4969500000000000 0.9166666666666666 # 112
+ 0.1704000000000000 0.4060000000000001 0.0601000000000000 # 21
+ 0.7644000000000000 0.1704000000000000 0.8934333333333334 # 22
+ 0.5940000000000000 0.7644000000000000 0.7267666666666668 # 23
+ 0.8296000000000000 0.5940000000000000 0.5601000000000002 # 24
+ 0.2356000000000000 0.8296000000000000 0.3934333333333334 # 25
+ 0.4060000000000001 0.2356000000000000 0.2267666666666667 # 26
+ 0.7644000000000000 0.5940000000000000 0.9399000000000000 # 27
+ 0.8296000000000000 0.2356000000000000 0.2732333333333334 # 28
+ 0.4060000000000001 0.1704000000000000 0.6065666666666668 # 29
+ 0.5940000000000000 0.8296000000000000 0.1065666666666666 # 210
+ 0.2356000000000000 0.4060000000000001 0.4399000000000000 # 211
+ 0.1704000000000000 0.7644000000000000 0.7732333333333334 # 212
+ 0.1976000000000000 0.4597000000000000 0.1566000000000000 # 31
+ 0.0519000000000000 0.2464000000000000 0.0547000000000000 # 32
+ 0.3130000000000000 0.4229000000000000 0.0201000000000000 # 33
+ 0.1292000000000000 0.5030000000000000 0.0075000000000000 # 34
+ 0.5908000000000000 0.7113000000000002 0.3441000000000000 # 35
+ 0.7379000000000000 0.1976000000000000 0.9899333333333333 # 36
+ 0.8055000000000000 0.0519000000000000 0.8880333333333333 # 37
+ 0.8901000000000000 0.3130000000000000 0.8534333333333334 # 38
+ 0.6262000000000000 0.1292000000000000 0.8408333333333334 # 39
+ 0.8794999999999999 0.5908000000000000 0.1774333333333333 # 310
+ 0.5403000000000000 0.7379000000000000 0.8232666666666668 # 311
+ 0.7536000000000002 0.8055000000000000 0.7213666666666668 # 312
+ 0.5770999999999999 0.8901000000000000 0.6867666666666667 # 313
+ 0.4970000000000000 0.6262000000000000 0.6741666666666668 # 314
+ 0.2887000000000000 0.8794999999999999 0.0107666666666667 # 315
+ 0.8024000000000000 0.5403000000000000 0.6566000000000000 # 316
+ 0.9480999999999999 0.7536000000000002 0.5547000000000002 # 317
+ 0.6870000000000002 0.5770999999999999 0.5201000000000000 # 318
+ 0.8708000000000000 0.4970000000000000 0.5075000000000000 # 319
+ 0.4092000000000000 0.2887000000000000 0.8441000000000000 # 320
+ 0.2621000000000000 0.8024000000000000 0.4899333333333334 # 321
+ 0.1945000000000000 0.9480999999999999 0.3880333333333334 # 322
+ 0.1099000000000000 0.6870000000000002 0.3534333333333334 # 323
+ 0.3738000000000001 0.8708000000000000 0.3408333333333334 # 324
+ 0.1205000000000000 0.4092000000000000 0.6774333333333333 # 325
+ 0.4597000000000000 0.2621000000000000 0.3232666666666667 # 326
+ 0.2464000000000000 0.1945000000000000 0.2213666666666666 # 327
+ 0.4229000000000000 0.1099000000000000 0.1867666666666667 # 328
+ 0.5030000000000000 0.3738000000000001 0.1741666666666667 # 329
+ 0.7113000000000002 0.1205000000000000 0.5107666666666668 # 330
+ 0.7379000000000000 0.5403000000000000 0.8434000000000001 # 331
+ 0.8055000000000000 0.7536000000000002 0.9453000000000000 # 332
+ 0.8901000000000000 0.5770999999999999 0.9799000000000000 # 333
+ 0.6262000000000000 0.4970000000000000 0.9924999999999999 # 334
+ 0.8794999999999999 0.2887000000000000 0.6559000000000001 # 335
+ 0.8024000000000000 0.2621000000000000 0.1767333333333333 # 336
+ 0.9480999999999999 0.1945000000000000 0.2786333333333334 # 337
+ 0.6870000000000002 0.1099000000000000 0.3132333333333334 # 338
+ 0.8708000000000000 0.3738000000000001 0.3258333333333333 # 339
+ 0.4092000000000000 0.1205000000000000 0.9892333333333334 # 340
+ 0.4597000000000000 0.1976000000000000 0.5100666666666668 # 341
+ 0.2464000000000000 0.0519000000000000 0.6119666666666668 # 342
+ 0.4229000000000000 0.3130000000000000 0.6465666666666666 # 343
+ 0.5030000000000000 0.1292000000000000 0.6591666666666668 # 344
+ 0.7113000000000002 0.5908000000000000 0.3225666666666667 # 345
+ 0.5403000000000000 0.8024000000000000 0.0100666666666667 # 346
+ 0.7536000000000002 0.9480999999999999 0.1119666666666667 # 347
+ 0.5770999999999999 0.6870000000000002 0.1465666666666666 # 348
+ 0.4970000000000000 0.8708000000000000 0.1591666666666667 # 349
+ 0.2887000000000000 0.4092000000000000 0.8225666666666668 # 350
+ 0.2621000000000000 0.4597000000000000 0.3434000000000001 # 351
+ 0.1945000000000000 0.2464000000000000 0.4453000000000000 # 352
+ 0.1099000000000000 0.4229000000000000 0.4799000000000000 # 353
+ 0.3738000000000001 0.5030000000000000 0.4925000000000002 # 354
+ 0.1205000000000000 0.7113000000000002 0.1559000000000000 # 355
+ 0.1976000000000000 0.7379000000000000 0.6767333333333334 # 356
+ 0.0519000000000000 0.8055000000000000 0.7786333333333334 # 357
+ 0.3130000000000000 0.8901000000000000 0.8132333333333334 # 358
+ 0.1292000000000000 0.6262000000000000 0.8258333333333334 # 359
+ 0.5908000000000000 0.8794999999999999 0.4892333333333334 # 360
+ 0.6712500000000000 0.3425000000000001 0.7500000000000000 # 41
+ 0.3287500000000000 0.6712500000000000 0.5833333333333334 # 42
+ 0.6575000000000000 0.3287500000000000 0.4166666666666667 # 43
+ 0.3287500000000000 0.6575000000000000 0.2500000000000000 # 44
+ 0.6712500000000000 0.3287500000000000 0.0833333333333334 # 45
+ 0.3425000000000001 0.6712500000000000 0.9166666666666666 # 46
diff --git a/test/data/hexagonal/POSCAR-180 b/test/data/hexagonal/POSCAR-180
new file mode 100644
index 0000000..9208499
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-180
@@ -0,0 +1,16 @@
+$cell vectors
+1.0
+ 4.8189977324592039 0.0000000000000000 0.0000000000000000
+ -2.4094988662295993 4.1733744570892739 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.5919968981886443
+ 3 6
+Direct
+ 0.5000000000000007 0.0000000000000000 0.4999999999999999 # Nb1
+ 0.5000000000000001 0.5000000000000001 0.8333333333333329 # Nb2
+ -0.0000000000000006 0.5000000000000001 0.1666666666666669 # Nb3
+ 0.1599000000000003 0.3198000000000009 0.4999999999999999 # Si1
+ 0.8401000000000004 0.1598999999999998 0.8333333333333329 # Si2
+ 0.6801999999999997 0.8401000000000004 0.1666666666666669 # Si3
+ 0.8401000000000005 0.6802000000000006 0.4999999999999999 # Si4
+ 0.1598999999999998 0.8401000000000004 0.8333333333333329 # Si5
+ 0.3198000000000004 0.1598999999999998 0.1666666666666669 # Si6
diff --git a/test/data/hexagonal/POSCAR-180-2 b/test/data/hexagonal/POSCAR-180-2
new file mode 100644
index 0000000..d2197b4
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-180-2
@@ -0,0 +1,16 @@
+$cell vectors
+1.0
+ 4.8999976943453252 0.0000000000000000 0.0000000000000000
+ -2.4499988471726595 4.2435224817882276 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3799974684852732
+ 3 6
+Direct
+ 0.4999999999999993 0.0000000000000000 0.0000000000000000 # Be1
+ 0.4999999999999990 0.4999999999999994 0.3333333333333333 # Be2
+ -0.0000000000000003 0.4999999999999994 0.6666666666666665 # Be3
+ 0.2109999999999998 0.4220000000000002 0.4999999999999994 # F1
+ 0.7889999999999990 0.2109999999999995 0.8333333333333328 # F2
+ 0.5779999999999992 0.7889999999999994 0.1666666666666662 # F3
+ 0.7889999999999988 0.5779999999999998 0.4999999999999994 # F4
+ 0.2109999999999991 0.7889999999999994 0.8333333333333328 # F5
+ 0.4219999999999990 0.2109999999999995 0.1666666666666662 # F6
diff --git a/test/data/hexagonal/POSCAR-181 b/test/data/hexagonal/POSCAR-181
new file mode 100644
index 0000000..689893a
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-181
@@ -0,0 +1,16 @@
+POSCAR generated by cell class
+1.0
+ 4.4282979162998792 0.0000000000000000 0.0000000000000000
+ -2.2141489581499387 3.8350184910413914 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3679970035900002
+ 3 6
+Direct
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.5000000000000000 0.5000000000000000 0.6666666666666667 # 12
+ 0.0000000000000000 0.5000000000000000 0.3333333333333333 # 13
+ 0.1657500000000000 0.3315000000000000 0.0000000000000000 # 21
+ 0.8342500000000002 0.1657500000000000 0.6666666666666667 # 22
+ 0.6685000000000000 0.8342500000000002 0.3333333333333333 # 23
+ 0.8342500000000002 0.6685000000000000 0.0000000000000000 # 24
+ 0.1657500000000000 0.8342500000000002 0.6666666666666667 # 25
+ 0.3315000000000000 0.1657500000000000 0.3333333333333333 # 26
diff --git a/test/data/hexagonal/POSCAR-181-2 b/test/data/hexagonal/POSCAR-181-2
new file mode 100644
index 0000000..a1f25e4
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-181-2
@@ -0,0 +1,91 @@
+$cell vectors
+1.0
+ 10.4817950678752645 0.0000000000000000 0.0000000000000000
+ -5.2408975339376269 9.0775008060424121 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.1749947416957092
+ 12 12 48 12
+Direct
+ 0.2491999999999999 0.0000000000000000 0.0000000000000000 # Si1
+ 0.2484999999999997 0.4970000000000000 0.0000000000000000 # Si2
+ 0.2492000000000000 0.2491999999999999 0.6666666666666667 # Si3
+ 0.7515000000000001 0.2484999999999997 0.6666666666666667 # Si4
+ 0.0000000000000001 0.2491999999999999 0.3333333333333334 # Si5
+ 0.5030000000000001 0.7515000000000004 0.3333333333333334 # Si6
+ 0.7508000000000001 0.0000000000000000 0.0000000000000000 # Si7
+ 0.7514999999999998 0.5030000000000000 0.0000000000000000 # Si8
+ 0.7507999999999999 0.7508000000000001 0.6666666666666667 # Si9
+ 0.2485000000000000 0.7515000000000004 0.6666666666666667 # Si10
+ -0.0000000000000001 0.7508000000000001 0.3333333333333334 # Si11
+ 0.4970000000000000 0.2484999999999997 0.3333333333333334 # Si12
+ 0.2511000000000003 0.0000000000000000 0.4999999999999998 # Al1
+ 0.2511999999999996 0.5023999999999998 0.4999999999999998 # Al2
+ 0.2511000000000001 0.2511000000000002 0.1666666666666669 # Al3
+ 0.7488000000000005 0.2512000000000003 0.1666666666666669 # Al4
+ 0.0000000000000004 0.2511000000000002 0.8333333333333331 # Al5
+ 0.4976000000000001 0.7488000000000004 0.8333333333333331 # Al6
+ 0.7488999999999998 0.0000000000000000 0.5000000000000002 # Al7
+ 0.7487999999999998 0.4976000000000001 0.5000000000000002 # Al8
+ 0.7488999999999999 0.7488999999999998 0.1666666666666669 # Al9
+ 0.2512000000000000 0.7488000000000004 0.1666666666666669 # Al10
+ -0.0000000000000004 0.7488999999999998 0.8333333333333331 # Al11
+ 0.5024000000000002 0.2512000000000003 0.8333333333333331 # Al12
+ 0.0866000000000001 0.1987000000000001 0.2424000000000001 # O1
+ 0.6036999999999999 0.7013000000000000 0.2621999999999998 # O2
+ 0.1051000000000000 0.7076000000000000 0.2625999999999999 # O3
+ 0.5917999999999999 0.2025999999999997 0.2499000000000000 # O4
+ 0.8879000000000004 0.0866000000000002 0.9090666666666667 # O5
+ 0.9024000000000001 0.6037000000000000 0.9288666666666668 # O6
+ 0.3975000000000002 0.1051000000000003 0.9292666666666667 # O7
+ 0.3892000000000000 0.5918000000000001 0.9165666666666668 # O8
+ 0.8013000000000001 0.8879000000000002 0.5757333333333333 # O9
+ 0.2986999999999996 0.9024000000000001 0.5955333333333331 # O10
+ 0.2924000000000001 0.3975000000000002 0.5959333333333333 # O11
+ 0.7973999999999999 0.3891999999999998 0.5832333333333334 # O12
+ 0.9133999999999998 0.8012999999999999 0.2424000000000001 # O13
+ 0.3963000000000001 0.2987000000000000 0.2621999999999998 # O14
+ 0.8949000000000000 0.2923999999999999 0.2625999999999999 # O15
+ 0.4082000000000001 0.7974000000000002 0.2499000000000000 # O16
+ 0.1120999999999999 0.9133999999999998 0.9090666666666667 # O17
+ 0.0976000000000000 0.3963000000000000 0.9288666666666668 # O18
+ 0.6025000000000003 0.8949000000000004 0.9292666666666667 # O19
+ 0.6108000000000001 0.4082000000000000 0.9165666666666668 # O20
+ 0.1987000000000000 0.1120999999999999 0.5757333333333333 # O21
+ 0.7013000000000000 0.0976000000000000 0.5955333333333331 # O22
+ 0.7076000000000000 0.6024999999999997 0.5959333333333333 # O23
+ 0.2026000000000002 0.6108000000000002 0.5832333333333334 # O24
+ 0.8878999999999999 0.8012999999999999 0.7576000000000001 # O25
+ 0.9024000000000002 0.2987000000000000 0.7377999999999999 # O26
+ 0.3974999999999997 0.2923999999999999 0.7374000000000003 # O27
+ 0.3891999999999998 0.7974000000000002 0.7501000000000001 # O28
+ 0.9133999999999998 0.1120999999999999 0.4242666666666667 # O29
+ 0.3963000000000000 0.0976000000000000 0.4044666666666669 # O30
+ 0.8948999999999999 0.6024999999999997 0.4040666666666669 # O31
+ 0.4081999999999999 0.6108000000000002 0.4167666666666668 # O32
+ 0.1987000000000000 0.0866000000000002 0.0909333333333333 # O33
+ 0.7012999999999998 0.6037000000000000 0.0711333333333331 # O34
+ 0.7075999999999997 0.1050999999999997 0.0707333333333335 # O35
+ 0.2026000000000001 0.5918000000000001 0.0834333333333334 # O36
+ 0.8012999999999995 0.9133999999999998 0.0909333333333333 # O37
+ 0.2986999999999996 0.3963000000000000 0.0711333333333331 # O38
+ 0.2923999999999998 0.8949000000000004 0.0707333333333335 # O39
+ 0.7973999999999999 0.4082000000000000 0.0834333333333334 # O40
+ 0.1121000000000003 0.1987000000000001 0.7576000000000001 # O41
+ 0.0975999999999998 0.7013000000000000 0.7377999999999999 # O42
+ 0.6024999999999997 0.7076000000000000 0.7374000000000003 # O43
+ 0.6108000000000000 0.2026000000000003 0.7501000000000001 # O44
+ 0.0865999999999998 0.8879000000000002 0.4242666666666667 # O45
+ 0.6037000000000001 0.9024000000000001 0.4044666666666669 # O46
+ 0.1051000000000002 0.3975000000000002 0.4040666666666669 # O47
+ 0.5917999999999997 0.3891999999999998 0.4167666666666668 # O48
+ 0.0000000000000000 0.0000000000000000 0.4999999999999998 # Li1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Li2
+ 0.5000000000000000 0.0000000000000000 0.3240000000000001 # Li3
+ 0.0000000000000000 0.0000000000000000 0.1666666666666669 # Li4
+ 0.4999999999999998 0.5000000000000000 0.6666666666666667 # Li5
+ 0.4999999999999998 0.5000000000000000 0.9906666666666668 # Li6
+ 0.0000000000000000 0.0000000000000000 0.8333333333333331 # Li7
+ -0.0000000000000002 0.5000000000000000 0.3333333333333334 # Li8
+ -0.0000000000000002 0.5000000000000000 0.6573333333333334 # Li9
+ 0.5000000000000000 0.0000000000000000 0.6760000000000000 # Li10
+ 0.4999999999999998 0.5000000000000000 0.3426666666666666 # Li11
+ -0.0000000000000002 0.5000000000000000 0.0093333333333333 # Li12
diff --git a/test/data/hexagonal/POSCAR-182 b/test/data/hexagonal/POSCAR-182
new file mode 100644
index 0000000..6a9b788
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-182
@@ -0,0 +1,27 @@
+POSCAR generated by cell class
+1.0
+ 5.3099975014231919 0.0000000000000000 0.0000000000000000
+ -2.6549987507115946 4.5985927302643805 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.2499932947797596
+ 4 4 12
+Direct
+ 0.3333333333333333 0.6666666666666666 0.0680000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.5679999999999999 # 12
+ 0.6666666666666666 0.3333333333333333 0.9319999999999999 # 13
+ 0.3333333333333333 0.6666666666666666 0.4320000000000000 # 14
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 23
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 24
+ 0.9630000000000000 0.2970000000000000 0.1810000000000000 # 31
+ 0.6660000000000001 0.9630000000000000 0.6810000000000002 # 32
+ 0.7030000000000000 0.6660000000000001 0.1810000000000000 # 33
+ 0.0370000000000000 0.7030000000000000 0.6810000000000002 # 34
+ 0.3340000000000001 0.0370000000000000 0.1810000000000000 # 35
+ 0.2970000000000000 0.3340000000000001 0.6810000000000002 # 36
+ 0.6660000000000001 0.7030000000000000 0.8190000000000000 # 37
+ 0.0370000000000000 0.3340000000000001 0.8190000000000000 # 38
+ 0.2970000000000000 0.9630000000000000 0.8190000000000000 # 39
+ 0.7030000000000000 0.0370000000000000 0.3190000000000000 # 310
+ 0.3340000000000001 0.2970000000000000 0.3190000000000000 # 311
+ 0.9630000000000000 0.6660000000000001 0.3190000000000000 # 312
diff --git a/test/data/hexagonal/POSCAR-182-2 b/test/data/hexagonal/POSCAR-182-2
new file mode 100644
index 0000000..f1aa387
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-182-2
@@ -0,0 +1,21 @@
+POSCAR generated by cell class
+1.0
+ 5.4579974317830109 0.0000000000000000 0.0000000000000000
+ -2.7289987158915041 4.7267644297143114 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0159957575953893
+ 2 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.0550000000000001 # 21
+ 0.6666666666666666 0.3333333333333333 0.5550000000000002 # 22
+ 0.6666666666666666 0.3333333333333333 0.9450000000000000 # 23
+ 0.3333333333333333 0.6666666666666666 0.4450000000000000 # 24
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 31
+ 0.3430000000000001 0.0000000000000000 0.0000000000000000 # 32
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 33
+ 0.3430000000000001 0.3430000000000001 0.5000000000000000 # 34
+ 0.0000000000000000 0.3430000000000001 0.0000000000000000 # 35
+ 0.6570000000000000 0.0000000000000000 0.5000000000000000 # 36
+ 0.6570000000000000 0.6570000000000000 0.0000000000000000 # 37
+ 0.0000000000000000 0.6570000000000000 0.5000000000000000 # 38
diff --git a/test/data/hexagonal/POSCAR-183 b/test/data/hexagonal/POSCAR-183
new file mode 100644
index 0000000..34b6d57
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-183
@@ -0,0 +1,143 @@
+POSCAR generated by cell class
+1.0
+ 19.4999908244354607 0.0000000000000000 0.0000000000000000
+ -9.7499954122177268 16.8874874275245688 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.2999951534197596
+ 84 52
+Direct
+ 0.0000000000000000 0.0000000000000000 0.6770000000000002 # 11
+ 0.2650000000000000 0.0000000000000000 0.5990000000000000 # 12
+ 0.4220000000000000 0.8440000000000000 0.5540000000000002 # 13
+ 0.1450000000000000 0.0000000000000000 0.8040000000000002 # 14
+ 0.4290000000000000 0.0000000000000000 0.6420000000000000 # 15
+ 0.2870000000000000 0.5740000000000000 0.7210000000000000 # 16
+ 0.1450000000000000 0.2900000000000000 0.7610000000000000 # 17
+ 0.4280000000000000 0.1440000000000000 0.6810000000000002 # 18
+ 0.3333333333333333 0.6666666666666666 0.4840000000000000 # 19
+ 0.5000000000000000 0.0000000000000000 0.3940000000000001 # 110
+ 0.0830000000000000 0.1660000000000000 0.5720000000000000 # 111
+ 0.1620000000000000 0.3240000000000000 0.4900000000000000 # 112
+ 0.2500000000000000 0.5000000000000000 0.4620000000000000 # 113
+ 0.4150000000000000 0.0840000000000000 0.4190000000000000 # 114
+ 0.2650000000000000 0.2650000000000000 0.5990000000000000 # 115
+ 0.5780000000000000 0.4220000000000000 0.5540000000000002 # 116
+ 0.1450000000000000 0.1450000000000000 0.8040000000000002 # 117
+ 0.4290000000000000 0.4290000000000000 0.6420000000000000 # 118
+ 0.7130000000000000 0.2870000000000000 0.7210000000000000 # 119
+ 0.8550000000000000 0.1450000000000000 0.7610000000000000 # 120
+ 0.2840000000000000 0.4280000000000000 0.6810000000000002 # 121
+ 0.6666666666666666 0.3333333333333333 0.4840000000000000 # 122
+ 0.5000000000000000 0.5000000000000000 0.3940000000000001 # 123
+ 0.9169999999999999 0.0830000000000000 0.5720000000000000 # 124
+ 0.8380000000000000 0.1620000000000000 0.4900000000000000 # 125
+ 0.7500000000000000 0.2500000000000000 0.4620000000000000 # 126
+ 0.3310000000000000 0.4150000000000000 0.4190000000000000 # 127
+ 0.0000000000000000 0.2650000000000000 0.5990000000000000 # 128
+ 0.1560000000000000 0.5780000000000000 0.5540000000000002 # 129
+ 0.0000000000000000 0.1450000000000000 0.8040000000000002 # 130
+ 0.0000000000000000 0.4290000000000000 0.6420000000000000 # 131
+ 0.4260000000000000 0.7130000000000000 0.7210000000000000 # 132
+ 0.7100000000000000 0.8550000000000000 0.7610000000000000 # 133
+ 0.8560000000000000 0.2840000000000000 0.6810000000000002 # 134
+ 0.0000000000000000 0.5000000000000000 0.3940000000000001 # 135
+ 0.8340000000000000 0.9169999999999999 0.5720000000000000 # 136
+ 0.6760000000000002 0.8380000000000000 0.4900000000000000 # 137
+ 0.5000000000000000 0.7500000000000000 0.4620000000000000 # 138
+ 0.9159999999999999 0.3310000000000000 0.4190000000000000 # 139
+ 0.7350000000000000 0.0000000000000000 0.5990000000000000 # 140
+ 0.5780000000000000 0.1560000000000000 0.5540000000000002 # 141
+ 0.8550000000000000 0.0000000000000000 0.8040000000000002 # 142
+ 0.5710000000000000 0.0000000000000000 0.6420000000000000 # 143
+ 0.7130000000000000 0.4260000000000000 0.7210000000000000 # 144
+ 0.8550000000000000 0.7100000000000000 0.7610000000000000 # 145
+ 0.5720000000000000 0.8560000000000000 0.6810000000000002 # 146
+ 0.9169999999999999 0.8340000000000000 0.5720000000000000 # 147
+ 0.8380000000000000 0.6760000000000002 0.4900000000000000 # 148
+ 0.7500000000000000 0.5000000000000000 0.4620000000000000 # 149
+ 0.5850000000000000 0.9159999999999999 0.4190000000000000 # 150
+ 0.7350000000000000 0.7350000000000000 0.5990000000000000 # 151
+ 0.4220000000000000 0.5780000000000000 0.5540000000000002 # 152
+ 0.8550000000000000 0.8550000000000000 0.8040000000000002 # 153
+ 0.5710000000000000 0.5710000000000000 0.6420000000000000 # 154
+ 0.2870000000000000 0.7130000000000000 0.7210000000000000 # 155
+ 0.1450000000000000 0.8550000000000000 0.7610000000000000 # 156
+ 0.7160000000000000 0.5720000000000000 0.6810000000000002 # 157
+ 0.0830000000000000 0.9169999999999999 0.5720000000000000 # 158
+ 0.1620000000000000 0.8380000000000000 0.4900000000000000 # 159
+ 0.2500000000000000 0.7500000000000000 0.4620000000000000 # 160
+ 0.6690000000000002 0.5850000000000000 0.4190000000000000 # 161
+ 0.0000000000000000 0.7350000000000000 0.5990000000000000 # 162
+ 0.8440000000000000 0.4220000000000000 0.5540000000000002 # 163
+ 0.0000000000000000 0.8550000000000000 0.8040000000000002 # 164
+ 0.0000000000000000 0.5710000000000000 0.6420000000000000 # 165
+ 0.5740000000000000 0.2870000000000000 0.7210000000000000 # 166
+ 0.2900000000000000 0.1450000000000000 0.7610000000000000 # 167
+ 0.1440000000000000 0.7160000000000000 0.6810000000000002 # 168
+ 0.1660000000000000 0.0830000000000000 0.5720000000000000 # 169
+ 0.3240000000000000 0.1620000000000000 0.4900000000000000 # 170
+ 0.5000000000000000 0.2500000000000000 0.4620000000000000 # 171
+ 0.0840000000000000 0.6690000000000002 0.4190000000000000 # 172
+ 0.7160000000000000 0.1440000000000000 0.6810000000000002 # 173
+ 0.6690000000000002 0.0840000000000000 0.4190000000000000 # 174
+ 0.4280000000000000 0.2840000000000000 0.6810000000000002 # 175
+ 0.4150000000000000 0.3310000000000000 0.4190000000000000 # 176
+ 0.8560000000000000 0.5720000000000000 0.6810000000000002 # 177
+ 0.9159999999999999 0.5850000000000000 0.4190000000000000 # 178
+ 0.1440000000000000 0.4280000000000000 0.6810000000000002 # 179
+ 0.0840000000000000 0.4150000000000000 0.4190000000000000 # 180
+ 0.2840000000000000 0.8560000000000000 0.6810000000000002 # 181
+ 0.3310000000000000 0.9159999999999999 0.4190000000000000 # 182
+ 0.5720000000000000 0.7160000000000000 0.6810000000000002 # 183
+ 0.5850000000000000 0.6690000000000002 0.4190000000000000 # 184
+ 0.0000000000000000 0.0000000000000000 0.9399999999999999 # 21
+ 0.3333333333333333 0.6666666666666666 0.9399999999999999 # 22
+ 0.1130000000000000 0.2260000000000000 0.0110000000000000 # 23
+ 0.2220000000000000 0.4440000000000000 0.9090000000000000 # 24
+ 0.4330000000000000 0.8660000000000000 0.8169999999999999 # 25
+ 0.3200000000000000 0.0000000000000000 0.8440000000000000 # 26
+ 0.0000000000000000 0.0000000000000000 0.4200000000000000 # 27
+ 0.1980000000000000 0.3960000000000001 0.2480000000000000 # 28
+ 0.3950000000000001 0.7900000000000001 0.3000000000000000 # 29
+ 0.4040000000000001 0.0000000000000000 0.1860000000000000 # 210
+ 0.2020000000000000 0.0000000000000000 0.3670000000000000 # 211
+ 0.6666666666666666 0.3333333333333333 0.9399999999999999 # 212
+ 0.8870000000000000 0.1130000000000000 0.0110000000000000 # 213
+ 0.7780000000000000 0.2220000000000000 0.9090000000000000 # 214
+ 0.5669999999999999 0.4330000000000000 0.8169999999999999 # 215
+ 0.3200000000000000 0.3200000000000000 0.8440000000000000 # 216
+ 0.8020000000000002 0.1980000000000000 0.2480000000000000 # 217
+ 0.6050000000000000 0.3950000000000001 0.3000000000000000 # 218
+ 0.4040000000000001 0.4040000000000001 0.1860000000000000 # 219
+ 0.2020000000000000 0.2020000000000000 0.3670000000000000 # 220
+ 0.7740000000000000 0.8870000000000000 0.0110000000000000 # 221
+ 0.5560000000000002 0.7780000000000000 0.9090000000000000 # 222
+ 0.1340000000000000 0.5669999999999999 0.8169999999999999 # 223
+ 0.0000000000000000 0.3200000000000000 0.8440000000000000 # 224
+ 0.6040000000000000 0.8020000000000002 0.2480000000000000 # 225
+ 0.2100000000000000 0.6050000000000000 0.3000000000000000 # 226
+ 0.0000000000000000 0.4040000000000001 0.1860000000000000 # 227
+ 0.0000000000000000 0.2020000000000000 0.3670000000000000 # 228
+ 0.8870000000000000 0.7740000000000000 0.0110000000000000 # 229
+ 0.7780000000000000 0.5560000000000002 0.9090000000000000 # 230
+ 0.5669999999999999 0.1340000000000000 0.8169999999999999 # 231
+ 0.6800000000000002 0.0000000000000000 0.8440000000000000 # 232
+ 0.8020000000000002 0.6040000000000000 0.2480000000000000 # 233
+ 0.6050000000000000 0.2100000000000000 0.3000000000000000 # 234
+ 0.5960000000000000 0.0000000000000000 0.1860000000000000 # 235
+ 0.7980000000000002 0.0000000000000000 0.3670000000000000 # 236
+ 0.1130000000000000 0.8870000000000000 0.0110000000000000 # 237
+ 0.2220000000000000 0.7780000000000000 0.9090000000000000 # 238
+ 0.4330000000000000 0.5669999999999999 0.8169999999999999 # 239
+ 0.6800000000000002 0.6800000000000002 0.8440000000000000 # 240
+ 0.1980000000000000 0.8020000000000002 0.2480000000000000 # 241
+ 0.3950000000000001 0.6050000000000000 0.3000000000000000 # 242
+ 0.5960000000000000 0.5960000000000000 0.1860000000000000 # 243
+ 0.7980000000000002 0.7980000000000002 0.3670000000000000 # 244
+ 0.2260000000000000 0.1130000000000000 0.0110000000000000 # 245
+ 0.4440000000000000 0.2220000000000000 0.9090000000000000 # 246
+ 0.8660000000000000 0.4330000000000000 0.8169999999999999 # 247
+ 0.0000000000000000 0.6800000000000002 0.8440000000000000 # 248
+ 0.3960000000000001 0.1980000000000000 0.2480000000000000 # 249
+ 0.7900000000000001 0.3950000000000001 0.3000000000000000 # 250
+ 0.0000000000000000 0.5960000000000000 0.1860000000000000 # 251
+ 0.0000000000000000 0.7980000000000002 0.3670000000000000 # 252
diff --git a/test/data/hexagonal/POSCAR-183-2 b/test/data/hexagonal/POSCAR-183-2
new file mode 100644
index 0000000..09fbcd1
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-183-2
@@ -0,0 +1,10 @@
+$cell vectors
+1.0
+ 3.3959984020401435 0.0000000000000000 0.0000000000000000
+ -1.6979992010200717 2.9410208873781261 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.0919976040013033
+ 1 1 1
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Au1
+ 0.0000000000000000 0.0000000000000000 0.4040000000000003 # C1
+ 0.0000000000000000 0.0000000000000000 0.6419999999999999 # N1
diff --git a/test/data/hexagonal/POSCAR-184 b/test/data/hexagonal/POSCAR-184
new file mode 100644
index 0000000..781992e
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-184
@@ -0,0 +1,79 @@
+$cell vectors
+1.0
+ 13.7179935451079835 0.0000000000000000 0.0000000000000000
+ -6.8589967725539891 11.8801308990144641 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4525960226986268
+ 12 12 48
+Direct
+ 0.4524999999999998 0.3295000000000000 0.0538000000000002 # P1
+ 0.1230000000000002 0.4525000000000002 0.0538000000000002 # P2
+ 0.6705000000000000 0.1230000000000002 0.0538000000000002 # P3
+ 0.5475000000000002 0.6705000000000001 0.0538000000000002 # P4
+ 0.8769999999999998 0.5474999999999999 0.0538000000000002 # P5
+ 0.3295000000000002 0.8770000000000002 0.0538000000000002 # P6
+ 0.8770000000000000 0.3295000000000000 0.5537999999999998 # P7
+ 0.4525000000000001 0.1230000000000002 0.5537999999999998 # P8
+ 0.6704999999999999 0.5474999999999999 0.5537999999999998 # P9
+ 0.3295000000000002 0.4525000000000002 0.5537999999999998 # P10
+ 0.1230000000000001 0.6705000000000001 0.5537999999999998 # P11
+ 0.5475000000000000 0.8770000000000002 0.5537999999999998 # P12
+ 0.4564999999999999 0.3359000000000000 0.4264000000000002 # Al1
+ 0.1206000000000000 0.4565000000000002 0.4264000000000002 # Al2
+ 0.6641000000000000 0.1206000000000001 0.4264000000000002 # Al3
+ 0.5434999999999998 0.6641000000000000 0.4264000000000002 # Al4
+ 0.8794000000000001 0.5434999999999999 0.4264000000000002 # Al5
+ 0.3359000000000002 0.8794000000000003 0.4264000000000002 # Al6
+ 0.8794000000000001 0.3359000000000000 0.9264000000000000 # Al7
+ 0.4565000000000000 0.1206000000000001 0.9264000000000000 # Al8
+ 0.6640999999999999 0.5434999999999999 0.9264000000000000 # Al9
+ 0.3359000000000001 0.4565000000000002 0.9264000000000000 # Al10
+ 0.1206000000000000 0.6641000000000000 0.9264000000000000 # Al11
+ 0.5435000000000002 0.8794000000000003 0.9264000000000000 # Al12
+ 0.4199999999999998 0.2068999999999999 0.9979999999999997 # O1
+ 0.4519000000000001 0.3295000000000000 0.2245999999999999 # O2
+ 0.3610000000000001 0.3628999999999999 0.9919999999999998 # O3
+ 0.5736999999999998 0.4199000000000000 0.9869999999999999 # O4
+ 0.2130999999999999 0.4199999999999998 0.9979999999999997 # O5
+ 0.1224000000000001 0.4519000000000000 0.2245999999999999 # O6
+ 0.9981000000000000 0.3610000000000003 0.9919999999999998 # O7
+ 0.1538000000000000 0.5737000000000001 0.9869999999999999 # O8
+ 0.7930999999999999 0.2130999999999999 0.9979999999999997 # O9
+ 0.6705000000000000 0.1224000000000001 0.2245999999999999 # O10
+ 0.6371000000000002 0.9980999999999999 0.9919999999999998 # O11
+ 0.5801000000000001 0.1538000000000000 0.9869999999999999 # O12
+ 0.5800000000000002 0.7931000000000001 0.9979999999999997 # O13
+ 0.5481000000000000 0.6705000000000001 0.2245999999999999 # O14
+ 0.6390000000000003 0.6371000000000001 0.9919999999999998 # O15
+ 0.4263000000000002 0.5801000000000002 0.9869999999999999 # O16
+ 0.7868999999999999 0.5799999999999998 0.9979999999999997 # O17
+ 0.8776000000000000 0.5481000000000000 0.2245999999999999 # O18
+ 0.0019000000000000 0.6389999999999999 0.9919999999999998 # O19
+ 0.8462000000000001 0.4263000000000000 0.9869999999999999 # O20
+ 0.2069000000000001 0.7869000000000003 0.9979999999999997 # O21
+ 0.3295000000000001 0.8776000000000002 0.2245999999999999 # O22
+ 0.3629000000000002 0.0019000000000002 0.9919999999999998 # O23
+ 0.4198999999999999 0.8462000000000001 0.9869999999999999 # O24
+ 0.7868999999999999 0.2068999999999999 0.4979999999999999 # O25
+ 0.8776000000000002 0.3295000000000000 0.7246000000000001 # O26
+ 0.0019000000000000 0.3628999999999999 0.4920000000000002 # O27
+ 0.8462000000000001 0.4199000000000000 0.4869999999999996 # O28
+ 0.4199999999999999 0.2130999999999999 0.4979999999999999 # O29
+ 0.4519000000000000 0.1224000000000001 0.7246000000000001 # O30
+ 0.3610000000000001 0.9980999999999999 0.4920000000000002 # O31
+ 0.5736999999999999 0.1538000000000000 0.4869999999999996 # O32
+ 0.7931000000000002 0.5800000000000003 0.4979999999999999 # O33
+ 0.6705000000000002 0.5481000000000000 0.7246000000000001 # O34
+ 0.6371000000000003 0.6390000000000003 0.4920000000000002 # O35
+ 0.5801000000000001 0.4263000000000000 0.4869999999999996 # O36
+ 0.2068999999999998 0.4199999999999998 0.4979999999999999 # O37
+ 0.3295000000000002 0.4519000000000000 0.7246000000000001 # O38
+ 0.3628999999999999 0.3610000000000003 0.4920000000000002 # O39
+ 0.4198999999999999 0.5737000000000001 0.4869999999999996 # O40
+ 0.2131000000000001 0.7931000000000001 0.4979999999999999 # O41
+ 0.1223999999999999 0.6705000000000001 0.7246000000000001 # O42
+ 0.9981000000000000 0.6371000000000001 0.4920000000000002 # O43
+ 0.1538000000000001 0.5801000000000002 0.4869999999999996 # O44
+ 0.5799999999999998 0.7869000000000003 0.4979999999999999 # O45
+ 0.5481000000000000 0.8776000000000002 0.7246000000000001 # O46
+ 0.6390000000000000 0.0019000000000002 0.4920000000000002 # O47
+ 0.4263000000000002 0.8462000000000001 0.4869999999999996 # O48
diff --git a/test/data/hexagonal/POSCAR-184-2 b/test/data/hexagonal/POSCAR-184-2
new file mode 100644
index 0000000..9ac8bbe
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-184-2
@@ -0,0 +1,85 @@
+$cell vectors
+1.0
+ 13.8019935055824767 0.0000000000000000 0.0000000000000000
+ -6.9009967527912330 11.9528769987022603 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.5029959989833230
+ 12 12 48 6
+Direct
+ 0.4532000000000000 0.3277000000000003 0.0530000000000001 # P1
+ 0.1255000000000000 0.4532000000000000 0.0530000000000001 # P2
+ 0.6723000000000001 0.1255000000000002 0.0530000000000001 # P3
+ 0.5467999999999998 0.6723000000000002 0.0530000000000001 # P4
+ 0.8745000000000001 0.5468000000000001 0.0530000000000001 # P5
+ 0.3276999999999998 0.8745000000000004 0.0530000000000001 # P6
+ 0.8745000000000001 0.3277000000000003 0.5529999999999998 # P7
+ 0.4531999999999999 0.1255000000000002 0.5529999999999998 # P8
+ 0.6722999999999999 0.5468000000000001 0.5529999999999998 # P9
+ 0.3277000000000001 0.4532000000000000 0.5529999999999998 # P10
+ 0.1254999999999999 0.6723000000000002 0.5529999999999998 # P11
+ 0.5468000000000000 0.8745000000000004 0.5529999999999998 # P12
+ 0.4555999999999999 0.3370999999999999 0.4250000000000000 # Al1
+ 0.1185000000000002 0.4556000000000002 0.4250000000000000 # Al2
+ 0.6629000000000000 0.1185000000000002 0.4250000000000000 # Al3
+ 0.5444000000000000 0.6629000000000000 0.4250000000000000 # Al4
+ 0.8815000000000000 0.5444000000000000 0.4250000000000000 # Al5
+ 0.3371000000000001 0.8815000000000003 0.4250000000000000 # Al6
+ 0.8814999999999995 0.3370999999999999 0.9249999999999997 # Al7
+ 0.4555999999999999 0.1185000000000002 0.9249999999999997 # Al8
+ 0.6629000000000000 0.5444000000000000 0.9249999999999997 # Al9
+ 0.3371000000000001 0.4556000000000002 0.9249999999999997 # Al10
+ 0.1184999999999999 0.6629000000000000 0.9249999999999997 # Al11
+ 0.5443999999999999 0.8815000000000003 0.9249999999999997 # Al12
+ 0.3626000000000001 0.3587000000000000 0.0011000000000003 # O1
+ 0.4196000000000000 0.2140999999999999 0.0077000000000002 # O2
+ 0.5659999999999998 0.4103000000000000 0.9949999999999997 # O3
+ 0.4539999999999998 0.3295000000000002 0.2389000000000002 # O4
+ 0.0039000000000000 0.3626000000000002 0.0011000000000003 # O5
+ 0.2055000000000000 0.4195999999999999 0.0077000000000002 # O6
+ 0.1556999999999999 0.5660000000000002 0.9949999999999997 # O7
+ 0.1245000000000003 0.4540000000000003 0.2389000000000002 # O8
+ 0.6412999999999999 0.0039000000000002 0.0011000000000003 # O9
+ 0.7859000000000002 0.2055000000000001 0.0077000000000002 # O10
+ 0.5897000000000000 0.1557000000000001 0.9949999999999997 # O11
+ 0.6704999999999999 0.1245000000000001 0.2389000000000002 # O12
+ 0.6374000000000000 0.6412999999999999 0.0011000000000003 # O13
+ 0.5804000000000000 0.7859000000000002 0.0077000000000002 # O14
+ 0.4340000000000002 0.5897000000000001 0.9949999999999997 # O15
+ 0.5459999999999999 0.6705000000000002 0.2389000000000002 # O16
+ 0.9961000000000000 0.6374000000000003 0.0011000000000003 # O17
+ 0.7945000000000000 0.5804000000000000 0.0077000000000002 # O18
+ 0.8442999999999997 0.4339999999999999 0.9949999999999997 # O19
+ 0.8754999999999999 0.5460000000000002 0.2389000000000002 # O20
+ 0.3587000000000000 0.9961000000000003 0.0011000000000003 # O21
+ 0.2141000000000001 0.7945000000000000 0.0077000000000002 # O22
+ 0.4102999999999999 0.8443000000000004 0.9949999999999997 # O23
+ 0.3295000000000000 0.8755000000000005 0.2389000000000002 # O24
+ 0.9960999999999995 0.3587000000000000 0.5011000000000001 # O25
+ 0.7944999999999997 0.2140999999999999 0.5076999999999999 # O26
+ 0.8442999999999998 0.4103000000000000 0.4949999999999999 # O27
+ 0.8755000000000001 0.3295000000000002 0.7389000000000000 # O28
+ 0.3626000000000002 0.0039000000000002 0.5011000000000001 # O29
+ 0.4195999999999998 0.2055000000000001 0.5076999999999999 # O30
+ 0.5659999999999999 0.1557000000000001 0.4949999999999999 # O31
+ 0.4540000000000000 0.1245000000000001 0.7389000000000000 # O32
+ 0.6413000000000000 0.6374000000000003 0.5011000000000001 # O33
+ 0.7858999999999999 0.5804000000000000 0.5076999999999999 # O34
+ 0.5896999999999999 0.4339999999999999 0.4949999999999999 # O35
+ 0.6705000000000001 0.5460000000000002 0.7389000000000000 # O36
+ 0.3586999999999999 0.3626000000000002 0.5011000000000001 # O37
+ 0.2141000000000000 0.4195999999999999 0.5076999999999999 # O38
+ 0.4102999999999999 0.5660000000000002 0.4949999999999999 # O39
+ 0.3295000000000002 0.4540000000000003 0.7389000000000000 # O40
+ 0.0038999999999996 0.6412999999999999 0.5011000000000001 # O41
+ 0.2054999999999999 0.7859000000000002 0.5076999999999999 # O42
+ 0.1556999999999999 0.5897000000000001 0.4949999999999999 # O43
+ 0.1245000000000002 0.6705000000000002 0.7389000000000000 # O44
+ 0.6374000000000001 0.9961000000000003 0.5011000000000001 # O45
+ 0.5803999999999998 0.7945000000000000 0.5076999999999999 # O46
+ 0.4340000000000003 0.8443000000000004 0.4949999999999999 # O47
+ 0.5460000000000003 0.8755000000000005 0.7389000000000000 # O48
+ 0.5000000000000001 0.5000000000000002 0.3179000000000002 # F1
+ 0.0000000000000002 0.5000000000000002 0.3179000000000002 # F2
+ 0.5000000000000000 0.0000000000000000 0.3179000000000002 # F3
+ 0.0000000000000002 0.5000000000000002 0.8178999999999998 # F4
+ 0.5000000000000000 0.0000000000000000 0.8178999999999998 # F5
+ 0.5000000000000001 0.5000000000000002 0.8178999999999998 # F6
diff --git a/test/data/hexagonal/POSCAR-185 b/test/data/hexagonal/POSCAR-185
new file mode 100644
index 0000000..f9cde0d
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-185
@@ -0,0 +1,73 @@
+POSCAR generated by cell class
+1.0
+ 9.8849953486945896 0.0000000000000000 0.0000000000000000
+ -4.9424976743472930 8.5606570882605304 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.8049949157961596
+ 16 8 42
+Direct
+ 0.3333333333333333 0.6666666666666666 0.3831000000000000 # 11
+ 0.2420000000000000 0.0000000000000000 0.2321000000000000 # 12
+ 0.6028000000000000 0.0000000000000000 0.0930000000000000 # 13
+ 0.6666666666666666 0.3333333333333333 0.8831000000000000 # 14
+ 0.2420000000000000 0.2420000000000000 0.7321000000000000 # 15
+ 0.6028000000000000 0.6028000000000000 0.5930000000000000 # 16
+ 0.0000000000000000 0.2420000000000000 0.2321000000000000 # 17
+ 0.0000000000000000 0.6028000000000000 0.0930000000000000 # 18
+ 0.7580000000000000 0.0000000000000000 0.7321000000000000 # 19
+ 0.3972000000000000 0.0000000000000000 0.5930000000000000 # 110
+ 0.7580000000000000 0.7580000000000000 0.2321000000000000 # 111
+ 0.3972000000000000 0.3972000000000000 0.0930000000000000 # 112
+ 0.0000000000000000 0.7580000000000000 0.7321000000000000 # 113
+ 0.0000000000000000 0.3972000000000000 0.5930000000000000 # 114
+ 0.3333333333333333 0.6666666666666666 0.8831000000000000 # 115
+ 0.6666666666666666 0.3333333333333333 0.3831000000000000 # 116
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 21
+ 0.6449000000000000 0.0000000000000000 0.4017000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 23
+ 0.6449000000000000 0.6449000000000000 0.9016999999999999 # 24
+ 0.0000000000000000 0.6449000000000000 0.4017000000000000 # 25
+ 0.3551000000000001 0.0000000000000000 0.9016999999999999 # 26
+ 0.3551000000000001 0.3551000000000001 0.4017000000000000 # 27
+ 0.0000000000000000 0.3551000000000001 0.9016999999999999 # 28
+ 0.8404000000000001 0.0000000000000000 0.3854000000000001 # 31
+ 0.8457000000000000 0.0000000000000000 0.1081000000000000 # 32
+ 0.4364000000000000 0.2730000000000001 0.2700000000000000 # 33
+ 0.5461000000000000 0.7019000000000000 0.0348000000000001 # 34
+ 0.4415000000000000 0.0000000000000000 0.3754000000000000 # 35
+ 0.8404000000000001 0.8404000000000001 0.8854000000000000 # 36
+ 0.8457000000000000 0.8457000000000000 0.6081000000000000 # 37
+ 0.1634000000000000 0.4364000000000000 0.7700000000000000 # 38
+ 0.8442000000000000 0.5461000000000000 0.5347999999999999 # 39
+ 0.4415000000000000 0.4415000000000000 0.8754000000000000 # 310
+ 0.0000000000000000 0.8404000000000001 0.3854000000000001 # 311
+ 0.0000000000000000 0.8457000000000000 0.1081000000000000 # 312
+ 0.7270000000000000 0.1634000000000000 0.2700000000000000 # 313
+ 0.2981000000000000 0.8442000000000000 0.0348000000000001 # 314
+ 0.0000000000000000 0.4415000000000000 0.3754000000000000 # 315
+ 0.1596000000000000 0.0000000000000000 0.8854000000000000 # 316
+ 0.1543000000000000 0.0000000000000000 0.6081000000000000 # 317
+ 0.5636000000000000 0.7270000000000000 0.7700000000000000 # 318
+ 0.4539000000000000 0.2981000000000000 0.5347999999999999 # 319
+ 0.5585000000000000 0.0000000000000000 0.8754000000000000 # 320
+ 0.1596000000000000 0.1596000000000000 0.3854000000000001 # 321
+ 0.1543000000000000 0.1543000000000000 0.1081000000000000 # 322
+ 0.8366000000000000 0.5636000000000000 0.2700000000000000 # 323
+ 0.1558000000000000 0.4539000000000000 0.0348000000000001 # 324
+ 0.5585000000000000 0.5585000000000000 0.3754000000000000 # 325
+ 0.0000000000000000 0.1596000000000000 0.8854000000000000 # 326
+ 0.0000000000000000 0.1543000000000000 0.6081000000000000 # 327
+ 0.2730000000000001 0.8366000000000000 0.7700000000000000 # 328
+ 0.7019000000000000 0.1558000000000000 0.5347999999999999 # 329
+ 0.0000000000000000 0.5585000000000000 0.8754000000000000 # 330
+ 0.8366000000000000 0.2730000000000001 0.7700000000000000 # 331
+ 0.1558000000000000 0.7019000000000000 0.5347999999999999 # 332
+ 0.4364000000000000 0.1634000000000000 0.7700000000000000 # 333
+ 0.5461000000000000 0.8442000000000000 0.5347999999999999 # 334
+ 0.7270000000000000 0.5636000000000000 0.7700000000000000 # 335
+ 0.2981000000000000 0.4539000000000000 0.5347999999999999 # 336
+ 0.2730000000000001 0.4364000000000000 0.2700000000000000 # 337
+ 0.7019000000000000 0.5461000000000000 0.0348000000000001 # 338
+ 0.1634000000000000 0.7270000000000000 0.2700000000000000 # 339
+ 0.8442000000000000 0.2981000000000000 0.0348000000000001 # 340
+ 0.5636000000000000 0.8366000000000000 0.2700000000000000 # 341
+ 0.4539000000000000 0.1558000000000000 0.0348000000000001 # 342
diff --git a/test/data/hexagonal/POSCAR-185-2 b/test/data/hexagonal/POSCAR-185-2
new file mode 100644
index 0000000..a341fda
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-185-2
@@ -0,0 +1,37 @@
+POSCAR generated by cell class
+1.0
+ 6.2599970544085126 0.0000000000000000 0.0000000000000000
+ -3.1299985272042550 5.4213164767335291 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.2489942363338393
+ 6 6 18
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2664000000000001 # 11
+ 0.3333333333333333 0.6666666666666666 0.2352000000000000 # 12
+ 0.0000000000000000 0.0000000000000000 0.7664000000000000 # 13
+ 0.6666666666666666 0.3333333333333333 0.7352000000000000 # 14
+ 0.3333333333333333 0.6666666666666666 0.7352000000000000 # 15
+ 0.6666666666666666 0.3333333333333333 0.2352000000000000 # 16
+ 0.3340000000000001 0.0000000000000000 0.0000000000000000 # 21
+ 0.3340000000000001 0.3340000000000001 0.5000000000000000 # 22
+ 0.0000000000000000 0.3340000000000001 0.0000000000000000 # 23
+ 0.6660000000000001 0.0000000000000000 0.5000000000000000 # 24
+ 0.6660000000000001 0.6660000000000001 0.0000000000000000 # 25
+ 0.0000000000000000 0.6660000000000001 0.5000000000000000 # 26
+ 0.3090000000000000 0.0000000000000000 0.1698000000000000 # 31
+ 0.6321000000000000 0.0000000000000000 0.3303000000000000 # 32
+ 0.0000000000000000 0.0000000000000000 0.4861000000000000 # 33
+ 0.3333333333333333 0.6666666666666666 0.0320000000000000 # 34
+ 0.3090000000000000 0.3090000000000000 0.6698000000000000 # 35
+ 0.6321000000000000 0.6321000000000000 0.8303000000000001 # 36
+ 0.0000000000000000 0.0000000000000000 0.9861000000000000 # 37
+ 0.6666666666666666 0.3333333333333333 0.5320000000000000 # 38
+ 0.0000000000000000 0.3090000000000000 0.1698000000000000 # 39
+ 0.0000000000000000 0.6321000000000000 0.3303000000000000 # 310
+ 0.6909999999999999 0.0000000000000000 0.6698000000000000 # 311
+ 0.3679000000000000 0.0000000000000000 0.8303000000000001 # 312
+ 0.6909999999999999 0.6909999999999999 0.1698000000000000 # 313
+ 0.3679000000000000 0.3679000000000000 0.3303000000000000 # 314
+ 0.0000000000000000 0.6909999999999999 0.6698000000000000 # 315
+ 0.0000000000000000 0.3679000000000000 0.8303000000000001 # 316
+ 0.3333333333333333 0.6666666666666666 0.5320000000000000 # 317
+ 0.6666666666666666 0.3333333333333333 0.0320000000000000 # 318
diff --git a/test/data/hexagonal/POSCAR-186 b/test/data/hexagonal/POSCAR-186
new file mode 100644
index 0000000..080c8af
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-186
@@ -0,0 +1,29 @@
+POSCAR generated by cell class
+1.0
+ 9.9799953039931282 0.0000000000000000 0.0000000000000000
+ -4.9899976519965623 8.6429294629074516 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.6399964050608702
+ 2 8 12
+Direct
+ 0.3333333333333333 0.6666666666666666 0.5010000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.0009999999999999 # 12
+ 0.3333333333333333 0.6666666666666666 0.8330000000000000 # 21
+ 0.8090000000000002 0.6180000000000000 0.8960000000000000 # 22
+ 0.1910000000000000 0.8090000000000002 0.3960000000000001 # 23
+ 0.3820000000000000 0.1910000000000000 0.8960000000000000 # 24
+ 0.1910000000000000 0.3820000000000000 0.3960000000000001 # 25
+ 0.8090000000000002 0.1910000000000000 0.8960000000000000 # 26
+ 0.6666666666666666 0.3333333333333333 0.3330000000000001 # 27
+ 0.6180000000000000 0.8090000000000002 0.3960000000000001 # 28
+ 0.1470000000000000 0.2940000000000000 0.7969999999999999 # 31
+ 0.5280000000000000 0.0560000000000000 0.6250000000000000 # 32
+ 0.8530000000000000 0.1470000000000000 0.2970000000000001 # 33
+ 0.4720000000000000 0.5280000000000000 0.1250000000000000 # 34
+ 0.7060000000000000 0.8530000000000000 0.7969999999999999 # 35
+ 0.9440000000000000 0.4720000000000000 0.6250000000000000 # 36
+ 0.8530000000000000 0.7060000000000000 0.2970000000000001 # 37
+ 0.4720000000000000 0.9440000000000000 0.1250000000000000 # 38
+ 0.1470000000000000 0.8530000000000000 0.7969999999999999 # 39
+ 0.5280000000000000 0.4720000000000000 0.6250000000000000 # 310
+ 0.2940000000000000 0.1470000000000000 0.2970000000000001 # 311
+ 0.0560000000000000 0.5280000000000000 0.1250000000000000 # 312
diff --git a/test/data/hexagonal/POSCAR-186-2 b/test/data/hexagonal/POSCAR-186-2
new file mode 100644
index 0000000..06718a2
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-186-2
@@ -0,0 +1,63 @@
+POSCAR generated by cell class
+1.0
+ 8.0999961886116587 0.0000000000000000 0.0000000000000000
+ -4.0499980943058276 7.0148024698948266 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.3399937229727694
+ 12 40 4
+Direct
+ 0.5057000000000000 0.4943000000000000 0.9950000000000000 # 11
+ 0.3494000000000000 0.1747000000000000 0.2370000000000000 # 12
+ 0.0114000000000000 0.5057000000000000 0.4950000000000000 # 13
+ 0.1747000000000000 0.3494000000000000 0.7370000000000000 # 14
+ 0.5057000000000000 0.0114000000000000 0.9950000000000000 # 15
+ 0.8253000000000001 0.1747000000000000 0.2370000000000000 # 16
+ 0.4943000000000000 0.5057000000000000 0.4950000000000000 # 17
+ 0.6506000000000000 0.8253000000000001 0.7370000000000000 # 18
+ 0.9886000000000000 0.4943000000000000 0.9950000000000000 # 19
+ 0.8253000000000001 0.6506000000000000 0.2370000000000000 # 110
+ 0.4943000000000000 0.9886000000000000 0.4950000000000000 # 111
+ 0.1747000000000000 0.8253000000000001 0.7370000000000000 # 112
+ 0.1160000000000000 0.2320000000000000 0.2010000000000000 # 21
+ 0.2160000000000000 0.4320000000000000 0.0420000000000000 # 22
+ 0.5140000000000000 0.4860000000000000 0.1780000000000000 # 23
+ 0.3360000000000001 0.3270000000000000 0.3650000000000000 # 24
+ 0.6666666666666666 0.3333333333333333 0.9640000000000000 # 25
+ 0.6666666666666666 0.3333333333333333 0.3110000000000000 # 26
+ 0.3680000000000001 0.1840000000000000 0.0670000000000000 # 27
+ 0.8840000000000000 0.1160000000000000 0.7010000000000002 # 28
+ 0.7840000000000000 0.2160000000000000 0.5420000000000000 # 29
+ 0.0280000000000000 0.5140000000000000 0.6779999999999999 # 210
+ 0.0090000000000000 0.3360000000000001 0.8650000000000000 # 211
+ 0.3333333333333333 0.6666666666666666 0.4640000000000000 # 212
+ 0.3333333333333333 0.6666666666666666 0.8109999999999999 # 213
+ 0.1840000000000000 0.3680000000000001 0.5669999999999999 # 214
+ 0.7680000000000000 0.8840000000000000 0.2010000000000000 # 215
+ 0.5679999999999999 0.7840000000000000 0.0420000000000000 # 216
+ 0.5140000000000000 0.0280000000000000 0.1780000000000000 # 217
+ 0.6730000000000002 0.0090000000000000 0.3650000000000000 # 218
+ 0.8159999999999999 0.1840000000000000 0.0670000000000000 # 219
+ 0.8840000000000000 0.7680000000000000 0.7010000000000002 # 220
+ 0.7840000000000000 0.5679999999999999 0.5420000000000000 # 221
+ 0.4860000000000000 0.5140000000000000 0.6779999999999999 # 222
+ 0.6640000000000000 0.6730000000000002 0.8650000000000000 # 223
+ 0.6320000000000000 0.8159999999999999 0.5669999999999999 # 224
+ 0.1160000000000000 0.8840000000000000 0.2010000000000000 # 225
+ 0.2160000000000000 0.7840000000000000 0.0420000000000000 # 226
+ 0.9720000000000000 0.4860000000000000 0.1780000000000000 # 227
+ 0.9910000000000000 0.6640000000000000 0.3650000000000000 # 228
+ 0.8159999999999999 0.6320000000000000 0.0670000000000000 # 229
+ 0.2320000000000000 0.1160000000000000 0.7010000000000002 # 230
+ 0.4320000000000000 0.2160000000000000 0.5420000000000000 # 231
+ 0.4860000000000000 0.9720000000000000 0.6779999999999999 # 232
+ 0.3270000000000000 0.9910000000000000 0.8650000000000000 # 233
+ 0.1840000000000000 0.8159999999999999 0.5669999999999999 # 234
+ 0.9910000000000000 0.3270000000000000 0.3650000000000000 # 235
+ 0.3360000000000001 0.0090000000000000 0.3650000000000000 # 236
+ 0.6730000000000002 0.6640000000000000 0.3650000000000000 # 237
+ 0.3270000000000000 0.3360000000000001 0.8650000000000000 # 238
+ 0.0090000000000000 0.6730000000000002 0.8650000000000000 # 239
+ 0.6640000000000000 0.9910000000000000 0.8650000000000000 # 240
+ 0.0000000000000000 0.0000000000000000 0.0150000000000001 # 31
+ 0.3333333333333333 0.6666666666666666 0.2470000000000000 # 32
+ 0.0000000000000000 0.0000000000000000 0.5150000000000000 # 33
+ 0.6666666666666666 0.3333333333333333 0.7470000000000000 # 34
diff --git a/test/data/hexagonal/POSCAR-187 b/test/data/hexagonal/POSCAR-187
new file mode 100644
index 0000000..f626f60
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-187
@@ -0,0 +1,9 @@
+POSCAR generated by cell class
+1.0
+ 2.9064986323703392 0.0000000000000000 0.0000000000000000
+ -1.4532493161851689 2.5171016516974420 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.8365986652612101
+ 1 1
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 21
diff --git a/test/data/hexagonal/POSCAR-187-2 b/test/data/hexagonal/POSCAR-187-2
new file mode 100644
index 0000000..8ccb4b4
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-187-2
@@ -0,0 +1,21 @@
+POSCAR generated by cell class
+1.0
+ 5.4479974364884285 0.0000000000000000 0.0000000000000000
+ -2.7239987182442129 4.7181041797514780 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.0909961928465304
+ 1 1 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.2450000000000000 # 31
+ 0.6666666666666666 0.3333333333333333 0.2550000000000000 # 32
+ 0.3333333333333333 0.6666666666666666 0.7550000000000000 # 33
+ 0.6666666666666666 0.3333333333333333 0.7450000000000000 # 34
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 41
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 42
+ 0.5150000000000000 0.4850000000000000 0.2600000000000000 # 43
+ 0.9700000000000000 0.4850000000000000 0.7400000000000000 # 44
+ 0.5150000000000000 0.0300000000000000 0.2600000000000000 # 45
+ 0.5150000000000000 0.4850000000000000 0.7400000000000000 # 46
+ 0.9700000000000000 0.4850000000000000 0.2600000000000000 # 47
+ 0.5150000000000000 0.0300000000000000 0.7400000000000000 # 48
diff --git a/test/data/hexagonal/POSCAR-188 b/test/data/hexagonal/POSCAR-188
new file mode 100644
index 0000000..acc10a0
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-188
@@ -0,0 +1,15 @@
+POSCAR generated by cell class
+1.0
+ 6.1199971202843626 0.0000000000000000 0.0000000000000000
+ -3.0599985601421800 5.3000729772538673 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6579973376746597
+ 2 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 12
+ 0.3170000000000000 0.0260000000000000 0.2500000000000000 # 21
+ 0.7090000000000000 0.6830000000000002 0.2500000000000000 # 22
+ 0.9740000000000000 0.2910000000000000 0.2500000000000000 # 23
+ 0.9740000000000000 0.6830000000000002 0.7500000000000000 # 24
+ 0.7090000000000000 0.0260000000000000 0.7500000000000000 # 25
+ 0.3170000000000000 0.2910000000000000 0.7500000000000000 # 26
diff --git a/test/data/hexagonal/POSCAR-188-2 b/test/data/hexagonal/POSCAR-188-2
new file mode 100644
index 0000000..deead7b
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-188-2
@@ -0,0 +1,63 @@
+POSCAR generated by cell class
+1.0
+ 9.2179956625459525 0.0000000000000000 0.0000000000000000
+ -4.6089978312729745 7.9830184157395632 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 18.0419915104853708
+ 18 6 32
+Direct
+ 0.0095000000000000 0.3841000000000000 0.0842000000000000 # 11
+ 0.3897000000000000 0.3619000000000000 0.2500000000000000 # 12
+ 0.3746000000000000 0.9904999999999999 0.4158000000000000 # 13
+ 0.9722000000000000 0.6103000000000000 0.2500000000000000 # 14
+ 0.6159000000000000 0.6254000000000000 0.0842000000000000 # 15
+ 0.6381000000000000 0.0278000000000000 0.2500000000000000 # 16
+ 0.0095000000000000 0.3841000000000000 0.4158000000000000 # 17
+ 0.3746000000000000 0.9904999999999999 0.0842000000000000 # 18
+ 0.6159000000000000 0.6254000000000000 0.4158000000000000 # 19
+ 0.6159000000000000 0.9904999999999999 0.9157999999999999 # 110
+ 0.6381000000000000 0.6103000000000000 0.7500000000000000 # 111
+ 0.3746000000000000 0.3841000000000000 0.9157999999999999 # 112
+ 0.9722000000000000 0.3619000000000000 0.7500000000000000 # 113
+ 0.0095000000000000 0.6254000000000000 0.9157999999999999 # 114
+ 0.3897000000000000 0.0278000000000000 0.7500000000000000 # 115
+ 0.3746000000000000 0.3841000000000000 0.5842000000000002 # 116
+ 0.0095000000000000 0.6254000000000000 0.5842000000000002 # 117
+ 0.6159000000000000 0.9904999999999999 0.5842000000000002 # 118
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 21
+ 0.0000000000000000 0.0000000000000000 0.1629000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 23
+ 0.0000000000000000 0.0000000000000000 0.3371000000000000 # 24
+ 0.0000000000000000 0.0000000000000000 0.8371000000000000 # 25
+ 0.0000000000000000 0.0000000000000000 0.6629000000000002 # 26
+ 0.2289000000000000 0.2206000000000000 0.0841000000000000 # 31
+ 0.0054000000000000 0.2205000000000000 0.2500000000000000 # 32
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 33
+ 0.3333333333333333 0.6666666666666666 0.1936000000000000 # 34
+ 0.6666666666666666 0.3333333333333333 0.1591000000000000 # 35
+ 0.6666666666666666 0.3333333333333333 0.0179000000000000 # 36
+ 0.9917000000000000 0.7711000000000000 0.4159000000000001 # 37
+ 0.2151000000000000 0.9945999999999999 0.2500000000000000 # 38
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 39
+ 0.3333333333333333 0.6666666666666666 0.3064000000000000 # 310
+ 0.6666666666666666 0.3333333333333333 0.3409000000000000 # 311
+ 0.6666666666666666 0.3333333333333333 0.4821000000000000 # 312
+ 0.7794000000000000 0.0083000000000000 0.0841000000000000 # 313
+ 0.7795000000000000 0.7849000000000002 0.2500000000000000 # 314
+ 0.2289000000000000 0.2206000000000000 0.4159000000000001 # 315
+ 0.9917000000000000 0.7711000000000000 0.0841000000000000 # 316
+ 0.7794000000000000 0.0083000000000000 0.4159000000000001 # 317
+ 0.7794000000000000 0.7711000000000000 0.9158999999999999 # 318
+ 0.7795000000000000 0.9945999999999999 0.7500000000000000 # 319
+ 0.3333333333333333 0.6666666666666666 0.8064000000000000 # 320
+ 0.6666666666666666 0.3333333333333333 0.8409000000000000 # 321
+ 0.6666666666666666 0.3333333333333333 0.9821000000000000 # 322
+ 0.9917000000000000 0.2206000000000000 0.9158999999999999 # 323
+ 0.2151000000000000 0.2205000000000000 0.7500000000000000 # 324
+ 0.2289000000000000 0.0083000000000000 0.9158999999999999 # 325
+ 0.0054000000000000 0.7849000000000002 0.7500000000000000 # 326
+ 0.9917000000000000 0.2206000000000000 0.5841000000000000 # 327
+ 0.3333333333333333 0.6666666666666666 0.6936000000000000 # 328
+ 0.6666666666666666 0.3333333333333333 0.6591000000000000 # 329
+ 0.6666666666666666 0.3333333333333333 0.5179000000000000 # 330
+ 0.2289000000000000 0.0083000000000000 0.5841000000000000 # 331
+ 0.7794000000000000 0.7711000000000000 0.5841000000000000 # 332
diff --git a/test/data/hexagonal/POSCAR-189 b/test/data/hexagonal/POSCAR-189
new file mode 100644
index 0000000..634aaa1
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-189
@@ -0,0 +1,19 @@
+POSCAR generated by cell class
+1.0
+ 8.1539961632024003 0.0000000000000000 0.0000000000000000
+ -4.0769980816011984 7.0615678196941225 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1369971122851501
+ 6 6
+Direct
+ 0.3110000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.6461000000000000 0.0000000000000000 0.5000000000000000 # 12
+ 0.6889999999999999 0.6889999999999999 0.0000000000000000 # 13
+ 0.3539000000000000 0.3539000000000000 0.5000000000000000 # 14
+ 0.0000000000000000 0.3110000000000000 0.0000000000000000 # 15
+ 0.0000000000000000 0.6461000000000000 0.5000000000000000 # 16
+ 0.0000000000000000 0.0000000000000000 0.2992000000000001 # 21
+ 0.3333333333333333 0.6666666666666666 0.2090000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.7008000000000000 # 23
+ 0.3333333333333333 0.6666666666666666 0.7910000000000001 # 24
+ 0.6666666666666666 0.3333333333333333 0.7910000000000001 # 25
+ 0.6666666666666666 0.3333333333333333 0.2090000000000000 # 26
diff --git a/test/data/hexagonal/POSCAR-189-2 b/test/data/hexagonal/POSCAR-189-2
new file mode 100644
index 0000000..a913330
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-189-2
@@ -0,0 +1,25 @@
+$cell vectors
+1.0
+ 9.6499954592719082 0.0000000000000000 0.0000000000000000
+ -4.8249977296359523 8.3571412141339536 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8569981851203901
+ 3 3 12
+Direct
+ 0.5723000000000001 0.0000000000000000 0.4999999999999994 # Cs1
+ 0.4277000000000002 0.4277000000000001 0.4999999999999994 # Cs2
+ -0.0000000000000003 0.5722999999999998 0.4999999999999994 # Cs3
+ 0.2237999999999998 0.0000000000000000 0.0000000000000000 # Cr1
+ 0.7762000000000002 0.7762000000000000 0.0000000000000000 # Cr2
+ 0.0000000000000000 0.2238000000000000 0.0000000000000000 # Cr3
+ 0.8349000000000000 0.0000000000000000 0.0000000000000000 # F1
+ 0.2200999999999998 0.0000000000000000 0.4999999999999994 # F2
+ 0.4365000000000004 0.1596000000000002 0.0000000000000000 # F3
+ 0.1651000000000002 0.1650999999999998 0.0000000000000000 # F4
+ 0.7799000000000000 0.7799000000000001 0.4999999999999994 # F5
+ 0.7230999999999999 0.5635000000000000 0.0000000000000000 # F6
+ 0.0000000000000000 0.8349000000000003 0.0000000000000000 # F7
+ -0.0000000000000004 0.2200999999999998 0.4999999999999994 # F8
+ 0.8403999999999998 0.2768999999999999 0.0000000000000000 # F9
+ 0.2769000000000001 0.8404000000000005 0.0000000000000000 # F10
+ 0.5635000000000002 0.7231000000000002 0.0000000000000000 # F11
+ 0.1596000000000002 0.4365000000000001 0.0000000000000000 # F12
diff --git a/test/data/hexagonal/POSCAR-190 b/test/data/hexagonal/POSCAR-190
new file mode 100644
index 0000000..5d37224
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-190
@@ -0,0 +1,23 @@
+POSCAR generated by cell class
+1.0
+ 4.5960978373429686 0.0000000000000000 0.0000000000000000
+ -2.2980489186714834 3.9803374854177300 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.9299957980619808
+ 2 6 8
+Direct
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.5707000000000000 # 21
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 22
+ 0.3333333333333333 0.6666666666666666 0.9293000000000000 # 23
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 24
+ 0.6666666666666666 0.3333333333333333 0.4293000000000000 # 25
+ 0.6666666666666666 0.3333333333333333 0.0707000000000000 # 26
+ 0.6666666666666666 0.3333333333333333 0.2500000000000000 # 31
+ 0.6670000000000001 0.0000000000000000 0.0000000000000000 # 32
+ 0.3330000000000001 0.3330000000000001 0.5000000000000000 # 33
+ 0.0000000000000000 0.6670000000000001 0.0000000000000000 # 34
+ 0.6670000000000001 0.0000000000000000 0.5000000000000000 # 35
+ 0.3330000000000001 0.3330000000000001 0.0000000000000000 # 36
+ 0.0000000000000000 0.6670000000000001 0.5000000000000000 # 37
+ 0.3333333333333333 0.6666666666666666 0.7500000000000000 # 38
diff --git a/test/data/hexagonal/POSCAR-190-2 b/test/data/hexagonal/POSCAR-190-2
new file mode 100644
index 0000000..a93e366
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-190-2
@@ -0,0 +1,43 @@
+POSCAR generated by cell class
+1.0
+ 10.5609950306083586 0.0000000000000000 0.0000000000000000
+ -5.2804975153041767 9.1460899857480538 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.5219936373341696
+ 12 4 20
+Direct
+ 0.3710000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.6040000000000000 0.9690000000000000 0.2500000000000000 # 12
+ 0.6290000000000000 0.6290000000000000 0.5000000000000000 # 13
+ 0.3650000000000000 0.3960000000000001 0.2500000000000000 # 14
+ 0.0000000000000000 0.3710000000000000 0.0000000000000000 # 15
+ 0.0310000000000000 0.6350000000000000 0.2500000000000000 # 16
+ 0.3710000000000000 0.0000000000000000 0.5000000000000000 # 17
+ 0.6290000000000000 0.6290000000000000 0.0000000000000000 # 18
+ 0.0000000000000000 0.3710000000000000 0.5000000000000000 # 19
+ 0.6350000000000000 0.0310000000000000 0.7500000000000000 # 110
+ 0.3960000000000001 0.3650000000000000 0.7500000000000000 # 111
+ 0.9690000000000000 0.6040000000000000 0.7500000000000000 # 112
+ 0.0000000000000000 0.0000000000000000 0.3900000000000000 # 21
+ 0.0000000000000000 0.0000000000000000 0.1100000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.6100000000000000 # 23
+ 0.0000000000000000 0.0000000000000000 0.8900000000000000 # 24
+ 0.7430000000000000 0.0000000000000000 0.0000000000000000 # 31
+ 0.2630000000000000 0.0020000000000000 0.2500000000000000 # 32
+ 0.3333333333333333 0.6666666666666666 0.3990000000000001 # 33
+ 0.3333333333333333 0.6666666666666666 0.8660000000000000 # 34
+ 0.2570000000000000 0.2570000000000000 0.5000000000000000 # 35
+ 0.7390000000000000 0.7370000000000000 0.2500000000000000 # 36
+ 0.3333333333333333 0.6666666666666666 0.1010000000000000 # 37
+ 0.3333333333333333 0.6666666666666666 0.6340000000000000 # 38
+ 0.0000000000000000 0.7430000000000000 0.0000000000000000 # 39
+ 0.9980000000000000 0.2610000000000000 0.2500000000000000 # 310
+ 0.7430000000000000 0.0000000000000000 0.5000000000000000 # 311
+ 0.2570000000000000 0.2570000000000000 0.0000000000000000 # 312
+ 0.0000000000000000 0.7430000000000000 0.5000000000000000 # 313
+ 0.2610000000000000 0.9980000000000000 0.7500000000000000 # 314
+ 0.6666666666666666 0.3333333333333333 0.6010000000000000 # 315
+ 0.6666666666666666 0.3333333333333333 0.1340000000000000 # 316
+ 0.7370000000000000 0.7390000000000000 0.7500000000000000 # 317
+ 0.0020000000000000 0.2630000000000000 0.7500000000000000 # 318
+ 0.6666666666666666 0.3333333333333333 0.8990000000000000 # 319
+ 0.6666666666666666 0.3333333333333333 0.3660000000000000 # 320
diff --git a/test/data/hexagonal/POSCAR-191 b/test/data/hexagonal/POSCAR-191
new file mode 100644
index 0000000..3ae894a
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-191
@@ -0,0 +1,10 @@
+POSCAR generated by cell class
+1.0
+ 3.9599981366545900 0.0000000000000000 0.0000000000000000
+ -1.9799990683272899 3.4294589852819102 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8439981912374299
+ 1 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 22
diff --git a/test/data/hexagonal/POSCAR-191-2 b/test/data/hexagonal/POSCAR-191-2
new file mode 100644
index 0000000..9f6e2e6
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-191-2
@@ -0,0 +1,40 @@
+POSCAR generated by cell class
+1.0
+ 11.2569947031112800 0.0000000000000000 0.0000000000000000
+ -5.6284973515556400 9.7488433831612404 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8529972459190196
+ 9 7 15 2
+Direct
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.2070000000000000 0.4140000000000000 0.5000000000000000 # 12
+ 0.7930000000000001 0.5860000000000000 0.5000000000000000 # 13
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # 14
+ 0.7930000000000001 0.2070000000000000 0.5000000000000000 # 15
+ 0.2070000000000000 0.7930000000000001 0.5000000000000000 # 16
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # 17
+ 0.5860000000000000 0.7930000000000001 0.5000000000000000 # 18
+ 0.4140000000000000 0.2070000000000000 0.5000000000000000 # 19
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 21
+ 0.1310000000000000 0.2620000000000000 0.0000000000000000 # 22
+ 0.8690000000000000 0.7380000000000000 0.0000000000000000 # 23
+ 0.8690000000000000 0.1310000000000000 0.0000000000000000 # 24
+ 0.1310000000000000 0.8690000000000000 0.0000000000000000 # 25
+ 0.7380000000000000 0.8690000000000000 0.0000000000000000 # 26
+ 0.2620000000000000 0.1310000000000000 0.0000000000000000 # 27
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # 31
+ 0.2500000000000000 0.0000000000000000 0.2170000000000000 # 32
+ 0.7500000000000000 0.0000000000000000 0.7830000000000000 # 33
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # 34
+ 0.2500000000000000 0.2500000000000000 0.2170000000000000 # 35
+ 0.7500000000000000 0.7500000000000000 0.7830000000000000 # 36
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # 37
+ 0.0000000000000000 0.2500000000000000 0.2170000000000000 # 38
+ 0.0000000000000000 0.7500000000000000 0.7830000000000000 # 39
+ 0.7500000000000000 0.0000000000000000 0.2170000000000000 # 310
+ 0.2500000000000000 0.0000000000000000 0.7830000000000000 # 311
+ 0.7500000000000000 0.7500000000000000 0.2170000000000000 # 312
+ 0.2500000000000000 0.2500000000000000 0.7830000000000000 # 313
+ 0.0000000000000000 0.7500000000000000 0.2170000000000000 # 314
+ 0.0000000000000000 0.2500000000000000 0.7830000000000000 # 315
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 41
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 42
diff --git a/test/data/hexagonal/POSCAR-192 b/test/data/hexagonal/POSCAR-192
new file mode 100644
index 0000000..3e13fb8
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-192
@@ -0,0 +1,107 @@
+POSCAR generated by cell class
+1.0
+ 10.4569950795447006 0.0000000000000000 0.0000000000000000
+ -5.2284975397723503 9.0560233861345907 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.2379933004262593
+ 2 64 10 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 21
+ 0.1209000000000000 0.3640000000000000 0.0000000000000000 # 22
+ 0.2136000000000000 0.2695000000000000 0.1403000000000000 # 23
+ 0.1560000000000000 0.4896000000000000 0.1644000000000000 # 24
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 25
+ 0.8791000000000000 0.6360000000000000 0.0000000000000000 # 26
+ 0.7864000000000000 0.7305000000000001 0.8597000000000000 # 27
+ 0.8440000000000000 0.5104000000000000 0.8356000000000000 # 28
+ 0.7569000000000000 0.1209000000000000 0.0000000000000000 # 29
+ 0.9440999999999999 0.2136000000000000 0.1403000000000000 # 210
+ 0.6664000000000000 0.1560000000000000 0.1644000000000000 # 211
+ 0.2431000000000000 0.8791000000000000 0.0000000000000000 # 212
+ 0.0559000000000000 0.7864000000000000 0.8597000000000000 # 213
+ 0.3336000000000000 0.8440000000000000 0.8356000000000000 # 214
+ 0.6360000000000000 0.7569000000000000 0.0000000000000000 # 215
+ 0.7305000000000001 0.9440999999999999 0.1403000000000000 # 216
+ 0.5104000000000000 0.6664000000000000 0.1644000000000000 # 217
+ 0.3640000000000000 0.2431000000000000 0.0000000000000000 # 218
+ 0.2695000000000000 0.0559000000000000 0.8597000000000000 # 219
+ 0.4896000000000000 0.3336000000000000 0.8356000000000000 # 220
+ 0.7864000000000000 0.7305000000000001 0.1403000000000000 # 221
+ 0.8440000000000000 0.5104000000000000 0.1644000000000000 # 222
+ 0.2136000000000000 0.2695000000000000 0.8597000000000000 # 223
+ 0.1560000000000000 0.4896000000000000 0.8356000000000000 # 224
+ 0.0559000000000000 0.7864000000000000 0.1403000000000000 # 225
+ 0.3336000000000000 0.8440000000000000 0.1644000000000000 # 226
+ 0.9440999999999999 0.2136000000000000 0.8597000000000000 # 227
+ 0.6664000000000000 0.1560000000000000 0.8356000000000000 # 228
+ 0.2695000000000000 0.0559000000000000 0.1403000000000000 # 229
+ 0.4896000000000000 0.3336000000000000 0.1644000000000000 # 230
+ 0.7305000000000001 0.9440999999999999 0.8597000000000000 # 231
+ 0.5104000000000000 0.6664000000000000 0.8356000000000000 # 232
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 233
+ 0.7569000000000000 0.6360000000000000 0.5000000000000000 # 234
+ 0.9440999999999999 0.7305000000000001 0.3597000000000001 # 235
+ 0.6664000000000000 0.5104000000000000 0.3356000000000000 # 236
+ 0.2431000000000000 0.3640000000000000 0.5000000000000000 # 237
+ 0.0559000000000000 0.2695000000000000 0.6403000000000000 # 238
+ 0.3336000000000000 0.4896000000000000 0.6644000000000000 # 239
+ 0.8791000000000000 0.2431000000000000 0.5000000000000000 # 240
+ 0.7864000000000000 0.0559000000000000 0.3597000000000001 # 241
+ 0.8440000000000000 0.3336000000000000 0.3356000000000000 # 242
+ 0.1209000000000000 0.7569000000000000 0.5000000000000000 # 243
+ 0.2136000000000000 0.9440999999999999 0.6403000000000000 # 244
+ 0.1560000000000000 0.6664000000000000 0.6644000000000000 # 245
+ 0.3640000000000000 0.1209000000000000 0.5000000000000000 # 246
+ 0.2695000000000000 0.2136000000000000 0.3597000000000001 # 247
+ 0.4896000000000000 0.1560000000000000 0.3356000000000000 # 248
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 249
+ 0.6360000000000000 0.8791000000000000 0.5000000000000000 # 250
+ 0.7305000000000001 0.7864000000000000 0.6403000000000000 # 251
+ 0.5104000000000000 0.8440000000000000 0.6644000000000000 # 252
+ 0.7305000000000001 0.7864000000000000 0.3597000000000001 # 253
+ 0.5104000000000000 0.8440000000000000 0.3356000000000000 # 254
+ 0.2695000000000000 0.2136000000000000 0.6403000000000000 # 255
+ 0.4896000000000000 0.1560000000000000 0.6644000000000000 # 256
+ 0.0559000000000000 0.2695000000000000 0.3597000000000001 # 257
+ 0.3336000000000000 0.4896000000000000 0.3356000000000000 # 258
+ 0.9440999999999999 0.7305000000000001 0.6403000000000000 # 259
+ 0.6664000000000000 0.5104000000000000 0.6644000000000000 # 260
+ 0.2136000000000000 0.9440999999999999 0.3597000000000001 # 261
+ 0.1560000000000000 0.6664000000000000 0.3356000000000000 # 262
+ 0.7864000000000000 0.0559000000000000 0.6403000000000000 # 263
+ 0.8440000000000000 0.3336000000000000 0.6644000000000000 # 264
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 31
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # 32
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 33
+ 0.5000000000000000 0.0000000000000000 0.7500000000000000 # 34
+ 0.6666666666666666 0.3333333333333333 0.2500000000000000 # 35
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000 # 36
+ 0.5000000000000000 0.5000000000000000 0.7500000000000000 # 37
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # 38
+ 0.0000000000000000 0.5000000000000000 0.7500000000000000 # 39
+ 0.3333333333333333 0.6666666666666666 0.7500000000000000 # 310
+ 0.1103000000000000 0.3396000000000000 0.1121000000000000 # 41
+ 0.8897000000000002 0.6604000000000000 0.8879000000000000 # 42
+ 0.7707000000000002 0.1103000000000000 0.1121000000000000 # 43
+ 0.2293000000000000 0.8897000000000002 0.8879000000000000 # 44
+ 0.6604000000000000 0.7707000000000002 0.1121000000000000 # 45
+ 0.3396000000000000 0.2293000000000000 0.8879000000000000 # 46
+ 0.8897000000000002 0.6604000000000000 0.1121000000000000 # 47
+ 0.1103000000000000 0.3396000000000000 0.8879000000000000 # 48
+ 0.2293000000000000 0.8897000000000002 0.1121000000000000 # 49
+ 0.7707000000000002 0.1103000000000000 0.8879000000000000 # 410
+ 0.3396000000000000 0.2293000000000000 0.1121000000000000 # 411
+ 0.6604000000000000 0.7707000000000002 0.8879000000000000 # 412
+ 0.7707000000000002 0.6604000000000000 0.3879000000000001 # 413
+ 0.2293000000000000 0.3396000000000000 0.6121000000000000 # 414
+ 0.8897000000000002 0.2293000000000000 0.3879000000000001 # 415
+ 0.1103000000000000 0.7707000000000002 0.6121000000000000 # 416
+ 0.3396000000000000 0.1103000000000000 0.3879000000000001 # 417
+ 0.6604000000000000 0.8897000000000002 0.6121000000000000 # 418
+ 0.6604000000000000 0.8897000000000002 0.3879000000000001 # 419
+ 0.3396000000000000 0.1103000000000000 0.6121000000000000 # 420
+ 0.2293000000000000 0.3396000000000000 0.3879000000000001 # 421
+ 0.7707000000000002 0.6604000000000000 0.6121000000000000 # 422
+ 0.1103000000000000 0.7707000000000002 0.3879000000000001 # 423
+ 0.8897000000000002 0.2293000000000000 0.6121000000000000 # 424
diff --git a/test/data/hexagonal/POSCAR-192-2 b/test/data/hexagonal/POSCAR-192-2
new file mode 100644
index 0000000..77df7b4
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-192-2
@@ -0,0 +1,65 @@
+POSCAR generated by cell class
+1.0
+ 9.7682954036068192 0.0000000000000000 0.0000000000000000
+ -4.8841477018033999 8.4595919711942695 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.3407956047634304
+ 4 18 36
+Direct
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 12
+ 0.6666666666666666 0.3333333333333333 0.2500000000000000 # 13
+ 0.3333333333333333 0.6666666666666666 0.7500000000000000 # 14
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000 # 21
+ 0.3724000000000000 0.2662000000000000 0.0000000000000000 # 22
+ 0.5000000000000000 0.5000000000000000 0.7500000000000000 # 23
+ 0.6276000000000002 0.7338000000000000 0.0000000000000000 # 24
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # 25
+ 0.1062000000000000 0.3724000000000000 0.0000000000000000 # 26
+ 0.0000000000000000 0.5000000000000000 0.7500000000000000 # 27
+ 0.8938000000000001 0.6276000000000002 0.0000000000000000 # 28
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # 29
+ 0.7338000000000000 0.1062000000000000 0.0000000000000000 # 210
+ 0.5000000000000000 0.0000000000000000 0.7500000000000000 # 211
+ 0.2662000000000000 0.8938000000000001 0.0000000000000000 # 212
+ 0.1062000000000000 0.7338000000000000 0.5000000000000000 # 213
+ 0.8938000000000001 0.2662000000000000 0.5000000000000000 # 214
+ 0.6276000000000002 0.8938000000000001 0.5000000000000000 # 215
+ 0.3724000000000000 0.1062000000000000 0.5000000000000000 # 216
+ 0.2662000000000000 0.3724000000000000 0.5000000000000000 # 217
+ 0.7338000000000000 0.6276000000000002 0.5000000000000000 # 218
+ 0.4853000000000000 0.3492000000000000 0.1439000000000000 # 31
+ 0.2304000000000000 0.3081000000000000 0.0000000000000000 # 32
+ 0.5147000000000002 0.6508000000000002 0.8561000000000000 # 33
+ 0.7696000000000000 0.6919000000000000 0.0000000000000000 # 34
+ 0.1361000000000000 0.4853000000000000 0.1439000000000000 # 35
+ 0.9223000000000000 0.2304000000000000 0.0000000000000000 # 36
+ 0.8639000000000000 0.5147000000000002 0.8561000000000000 # 37
+ 0.0777000000000000 0.7696000000000000 0.0000000000000000 # 38
+ 0.6508000000000002 0.1361000000000000 0.1439000000000000 # 39
+ 0.6919000000000000 0.9223000000000000 0.0000000000000000 # 310
+ 0.3492000000000000 0.8639000000000000 0.8561000000000000 # 311
+ 0.3081000000000000 0.0777000000000000 0.0000000000000000 # 312
+ 0.5147000000000002 0.6508000000000002 0.1439000000000000 # 313
+ 0.4853000000000000 0.3492000000000000 0.8561000000000000 # 314
+ 0.8639000000000000 0.5147000000000002 0.1439000000000000 # 315
+ 0.1361000000000000 0.4853000000000000 0.8561000000000000 # 316
+ 0.3492000000000000 0.8639000000000000 0.1439000000000000 # 317
+ 0.6508000000000002 0.1361000000000000 0.8561000000000000 # 318
+ 0.1361000000000000 0.6508000000000002 0.3561000000000001 # 319
+ 0.9223000000000000 0.6919000000000000 0.5000000000000000 # 320
+ 0.8639000000000000 0.3492000000000000 0.6439000000000000 # 321
+ 0.0777000000000000 0.3081000000000000 0.5000000000000000 # 322
+ 0.5147000000000002 0.8639000000000000 0.3561000000000001 # 323
+ 0.7696000000000000 0.0777000000000000 0.5000000000000000 # 324
+ 0.4853000000000000 0.1361000000000000 0.6439000000000000 # 325
+ 0.2304000000000000 0.9223000000000000 0.5000000000000000 # 326
+ 0.3492000000000000 0.4853000000000000 0.3561000000000001 # 327
+ 0.3081000000000000 0.2304000000000000 0.5000000000000000 # 328
+ 0.6508000000000002 0.5147000000000002 0.6439000000000000 # 329
+ 0.6919000000000000 0.7696000000000000 0.5000000000000000 # 330
+ 0.6508000000000002 0.5147000000000002 0.3561000000000001 # 331
+ 0.3492000000000000 0.4853000000000000 0.6439000000000000 # 332
+ 0.8639000000000000 0.3492000000000000 0.3561000000000001 # 333
+ 0.1361000000000000 0.6508000000000002 0.6439000000000000 # 334
+ 0.4853000000000000 0.1361000000000000 0.3561000000000001 # 335
+ 0.5147000000000002 0.8639000000000000 0.6439000000000000 # 336
diff --git a/test/data/hexagonal/POSCAR-193 b/test/data/hexagonal/POSCAR-193
new file mode 100644
index 0000000..6c2532c
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-193
@@ -0,0 +1,23 @@
+POSCAR generated by cell class
+1.0
+ 8.4899960051003607 0.0000000000000000 0.0000000000000000
+ -4.2449980025501803 7.3525522184453100 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.0839971372238697
+ 10 6
+Direct
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 11
+ 0.2435000000000000 0.0000000000000000 0.2500000000000000 # 12
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 13
+ 0.7565000000000000 0.0000000000000000 0.7500000000000000 # 14
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 15
+ 0.2435000000000000 0.2435000000000000 0.7500000000000000 # 16
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 17
+ 0.7565000000000000 0.7565000000000000 0.2500000000000000 # 18
+ 0.0000000000000000 0.2435000000000000 0.2500000000000000 # 19
+ 0.0000000000000000 0.7565000000000000 0.7500000000000000 # 110
+ 0.6031000000000000 0.0000000000000000 0.2500000000000000 # 21
+ 0.3969000000000000 0.0000000000000000 0.7500000000000000 # 22
+ 0.6031000000000000 0.6031000000000000 0.7500000000000000 # 23
+ 0.3969000000000000 0.3969000000000000 0.2500000000000000 # 24
+ 0.0000000000000000 0.6031000000000000 0.2500000000000000 # 25
+ 0.0000000000000000 0.3969000000000000 0.7500000000000000 # 26
diff --git a/test/data/hexagonal/POSCAR-193-2 b/test/data/hexagonal/POSCAR-193-2
new file mode 100644
index 0000000..d787907
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-193-2
@@ -0,0 +1,47 @@
+POSCAR generated by cell class
+1.0
+ 9.7489954126882701 0.0000000000000000 0.0000000000000000
+ -4.8744977063441404 8.4428776887660000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 16.4699922501770288
+ 20 14 6
+Direct
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 12
+ 0.2522000000000000 0.0000000000000000 0.4018000000000001 # 13
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 14
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 15
+ 0.7478000000000000 0.0000000000000000 0.5982000000000000 # 16
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 17
+ 0.2522000000000000 0.2522000000000000 0.9017999999999999 # 18
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 19
+ 0.7478000000000000 0.7478000000000000 0.0982000000000000 # 110
+ 0.0000000000000000 0.2522000000000000 0.4018000000000001 # 111
+ 0.0000000000000000 0.7478000000000000 0.5982000000000000 # 112
+ 0.7478000000000000 0.0000000000000000 0.9017999999999999 # 113
+ 0.2522000000000000 0.0000000000000000 0.0982000000000000 # 114
+ 0.7478000000000000 0.7478000000000000 0.4018000000000001 # 115
+ 0.2522000000000000 0.2522000000000000 0.5982000000000000 # 116
+ 0.0000000000000000 0.7478000000000000 0.9017999999999999 # 117
+ 0.0000000000000000 0.2522000000000000 0.0982000000000000 # 118
+ 0.6666666666666666 0.3333333333333333 0.2500000000000000 # 119
+ 0.3333333333333333 0.6666666666666666 0.7500000000000000 # 120
+ 0.3955000000000001 0.0000000000000000 0.8832000000000000 # 21
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 22
+ 0.6045000000000000 0.0000000000000000 0.1168000000000000 # 23
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 24
+ 0.3955000000000001 0.3955000000000001 0.3832000000000000 # 25
+ 0.6045000000000000 0.6045000000000000 0.6168000000000000 # 26
+ 0.0000000000000000 0.3955000000000001 0.8832000000000000 # 27
+ 0.0000000000000000 0.6045000000000000 0.1168000000000000 # 28
+ 0.6045000000000000 0.0000000000000000 0.3832000000000000 # 29
+ 0.3955000000000001 0.0000000000000000 0.6168000000000000 # 210
+ 0.6045000000000000 0.6045000000000000 0.8832000000000000 # 211
+ 0.3955000000000001 0.3955000000000001 0.1168000000000000 # 212
+ 0.0000000000000000 0.6045000000000000 0.3832000000000000 # 213
+ 0.0000000000000000 0.3955000000000001 0.6168000000000000 # 214
+ 0.0000000000000000 0.7270000000000000 0.2500000000000000 # 31
+ 0.0000000000000000 0.2730000000000001 0.7500000000000000 # 32
+ 0.2730000000000001 0.0000000000000000 0.7500000000000000 # 33
+ 0.7270000000000000 0.0000000000000000 0.2500000000000000 # 34
+ 0.2730000000000001 0.2730000000000001 0.2500000000000000 # 35
+ 0.7270000000000000 0.7270000000000000 0.7500000000000000 # 36
diff --git a/test/data/hexagonal/POSCAR-194 b/test/data/hexagonal/POSCAR-194
new file mode 100644
index 0000000..8b6c1ae
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-194
@@ -0,0 +1,15 @@
+POSCAR generated by cell class
+1.0
+ 3.5869983121666702 0.0000000000000000 0.0000000000000000
+ -1.7934991560833300 3.1064316616682399 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.4919927103668797
+ 4 4
+Direct
+ 0.3333333333333333 0.6666666666666666 0.1710000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.8290000000000000 # 12
+ 0.6666666666666666 0.3333333333333333 0.6710000000000002 # 13
+ 0.3333333333333333 0.6666666666666666 0.3290000000000000 # 14
+ 0.3333333333333333 0.6666666666666666 0.6016000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.3984000000000000 # 22
+ 0.6666666666666666 0.3333333333333333 0.1016000000000000 # 23
+ 0.3333333333333333 0.6666666666666666 0.8984000000000000 # 24
diff --git a/test/data/hexagonal/POSCAR-194-2 b/test/data/hexagonal/POSCAR-194-2
new file mode 100644
index 0000000..ee9c6d6
--- /dev/null
+++ b/test/data/hexagonal/POSCAR-194-2
@@ -0,0 +1,31 @@
+POSCAR generated by cell class
+1.0
+ 3.4699983672200498 0.0000000000000000 0.0000000000000000
+ -1.7349991836100300 3.0051067371030902 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 28.4499866130866188
+ 4 6 14
+Direct
+ 0.3333333333333333 0.6666666666666666 0.1482000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.8518000000000000 # 12
+ 0.6666666666666666 0.3333333333333333 0.6482000000000000 # 13
+ 0.3333333333333333 0.6666666666666666 0.3518000000000000 # 14
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.4574000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 23
+ 0.3333333333333333 0.6666666666666666 0.5426000000000000 # 24
+ 0.3333333333333333 0.6666666666666666 0.9574000000000000 # 25
+ 0.6666666666666666 0.3333333333333333 0.0426000000000000 # 26
+ 0.0000000000000000 0.0000000000000000 0.3200000000000000 # 31
+ 0.6666666666666666 0.3333333333333333 0.3850000000000000 # 32
+ 0.3333333333333333 0.6666666666666666 0.4650000000000000 # 33
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 34
+ 0.0000000000000000 0.0000000000000000 0.6800000000000002 # 35
+ 0.3333333333333333 0.6666666666666666 0.6150000000000000 # 36
+ 0.6666666666666666 0.3333333333333333 0.5350000000000000 # 37
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 38
+ 0.0000000000000000 0.0000000000000000 0.8200000000000000 # 39
+ 0.3333333333333333 0.6666666666666666 0.8850000000000000 # 310
+ 0.6666666666666666 0.3333333333333333 0.9650000000000000 # 311
+ 0.0000000000000000 0.0000000000000000 0.1800000000000001 # 312
+ 0.6666666666666666 0.3333333333333333 0.1150000000000000 # 313
+ 0.3333333333333333 0.6666666666666666 0.0350000000000001 # 314
diff --git a/test/data/monoclinic/POSCAR-003 b/test/data/monoclinic/POSCAR-003
new file mode 100644
index 0000000..db56967
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-003
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 4.1604980423109605 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.1293980569448125 0.0000000000000000
+ -1.4636598779478052 0.0000000000000000 7.2753263255789911
+ 4 8
+Direct
+ 0.1823999999999999 0.0000000000000000 0.6965000000000000 # Si1
+ 0.3809000000000004 0.5855999999999997 0.1779000000000001 # Si2
+ 0.8176000000000002 0.0000000000000000 0.3035000000000002 # Si3
+ 0.6190999999999998 0.5855999999999997 0.8221000000000001 # Si4
+ 0.0239000000000005 0.7519999999999996 0.1891999999999999 # O1
+ 0.5000000000000007 0.7384999999999996 0.0000000000000000 # O2
+ 0.3855999999999995 0.7146999999999997 0.6406999999999998 # O3
+ 0.0000000000000000 0.1589999999999998 0.5000000000000000 # O4
+ 0.4896000000000000 0.2018999999999995 0.1880000000000000 # O5
+ 0.9760999999999995 0.7519999999999996 0.8108000000000002 # O6
+ 0.6144000000000006 0.7146999999999997 0.3593000000000003 # O7
+ 0.5104000000000001 0.2018999999999995 0.8120000000000001 # O8
diff --git a/test/data/monoclinic/POSCAR-004 b/test/data/monoclinic/POSCAR-004
new file mode 100644
index 0000000..f299e4e
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-004
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 8.7534958811126096 0.0000000000000000 0.0000000000000000
+ -0.0192362783949727 5.0120607273357765 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2140961349228423
+ 8 16
+Direct
+ 0.1755000000000003 0.5534000000000000 0.6844999999999998 # Si1
+ 0.1596999999999998 0.4489999999999998 0.3085999999999998 # Si2
+ 0.6754999999999995 0.0534000000000000 0.6844999999999998 # Si3
+ 0.6596999999999997 0.9489999999999996 0.3085999999999998 # Si4
+ 0.8244999999999997 0.4465999999999999 0.1844999999999998 # Si5
+ 0.8403000000000002 0.5510000000000000 0.8085999999999998 # Si6
+ 0.3245000000000003 0.9465999999999999 0.1844999999999998 # Si7
+ 0.3403000000000002 0.0510000000000001 0.8085999999999998 # Si8
+ 0.3336000000000000 0.0003000000000005 0.9969999999999998 # O1
+ 0.9879999999999999 0.4265000000000000 0.2852999999999996 # O2
+ 0.2669999999999998 0.3304999999999996 0.7728000000000000 # O3
+ 0.2409999999999997 0.6714000000000003 0.2105999999999999 # O4
+ 0.8335999999999999 0.5003000000000005 0.9969999999999998 # O5
+ 0.4879999999999999 0.9265000000000001 0.2852999999999996 # O6
+ 0.7669999999999998 0.8304999999999996 0.7728000000000000 # O7
+ 0.7409999999999997 0.1714000000000004 0.2105999999999999 # O8
+ 0.6664000000000000 0.9997000000000003 0.4969999999999999 # O9
+ 0.0120000000000000 0.5734999999999998 0.7852999999999997 # O10
+ 0.7330000000000001 0.6695000000000002 0.2728000000000000 # O11
+ 0.7589999999999997 0.3286000000000006 0.7105999999999999 # O12
+ 0.1664000000000000 0.4997000000000005 0.4969999999999999 # O13
+ 0.5119999999999999 0.0734999999999998 0.7852999999999997 # O14
+ 0.2330000000000002 0.1695000000000003 0.2728000000000000 # O15
+ 0.2590000000000003 0.8286000000000004 0.7105999999999999 # O16
diff --git a/test/data/monoclinic/POSCAR-004-2 b/test/data/monoclinic/POSCAR-004-2
new file mode 100644
index 0000000..ccd84a9
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-004-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 11.8809944094932192 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.3439965443412314 0.0000000000000000
+ -4.3146051628917297 0.0000000000000000 10.9420608705358156
+ 4 16 12
+Direct
+ 0.2391999999999999 0.1249999999999999 0.2335000000000002 # Pb1
+ 0.7581999999999997 0.8791000000000004 0.2534000000000001 # Pb2
+ 0.7607999999999997 0.6250000000000003 0.7664999999999998 # Pb3
+ 0.2417999999999999 0.3791000000000000 0.7466000000000000 # Pb4
+ 0.8502999999999998 0.1316000000000002 0.6712000000000000 # Cs1
+ 0.1628000000000000 0.9026000000000001 0.8286000000000001 # Cs2
+ 0.5781000000000001 0.8272000000000008 0.4570000000000001 # Cs3
+ 0.5764999999999998 0.6881000000000004 0.9598000000000001 # Cs4
+ 0.9296999999999999 0.9274000000000006 0.0416999999999998 # Cs5
+ 0.0598000000000000 0.0982000000000001 0.4557000000000003 # Cs6
+ 0.6238999999999999 0.3496000000000004 0.3583000000000000 # Cs7
+ 0.3655000000000001 0.6865000000000003 0.1447000000000002 # Cs8
+ 0.1496999999999999 0.6315999999999998 0.3287999999999999 # Cs9
+ 0.8371999999999997 0.4026000000000004 0.1713999999999999 # Cs10
+ 0.4219000000000001 0.3272000000000004 0.5429999999999999 # Cs11
+ 0.4234999999999999 0.1880999999999999 0.0401999999999999 # Cs12
+ 0.0702999999999999 0.4274000000000007 0.9583000000000002 # Cs13
+ 0.9401999999999999 0.5982000000000005 0.5443000000000001 # Cs14
+ 0.3760999999999998 0.8496000000000009 0.6417000000000000 # Cs15
+ 0.6345000000000003 0.1865000000000005 0.8553000000000003 # Cs16
+ 0.3653000000000001 0.3410000000000000 0.2661000000000000 # O1
+ 0.0750000000000000 0.2446000000000004 0.2248000000000003 # O2
+ 0.2932999999999998 -0.0213999999999996 0.3979000000000002 # O3
+ 0.6355000000000000 0.6671000000000001 0.2355000000000002 # O4
+ 0.6828999999999998 1.0614000000000001 0.1026000000000002 # O5
+ 0.7930999999999999 1.0245000000000002 0.4191999999999999 # O6
+ 0.6347000000000000 0.8410000000000004 0.7338999999999999 # O7
+ 0.9249999999999996 0.7446000000000007 0.7752000000000001 # O8
+ 0.7067000000000000 0.4786000000000008 0.6021000000000003 # O9
+ 0.3645000000000000 0.1671000000000004 0.7645000000000003 # O10
+ 0.3171000000000000 0.5614000000000006 0.8974000000000002 # O11
+ 0.2069000000000001 0.5245000000000005 0.5808000000000001 # O12
diff --git a/test/data/monoclinic/POSCAR-005 b/test/data/monoclinic/POSCAR-005
new file mode 100644
index 0000000..cad9d1a
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-005
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 12.5199941088170252 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8299981978250193 0.0000000000000000
+ -2.0057067389242573 0.0000000000000000 6.3612890682370393
+ 4 4 16
+Direct
+ 0.1971000000000001 0.0076000000000006 0.8135000000000000 # Fe1
+ 0.6971000000000001 0.5076000000000006 0.8135000000000000 # Fe2
+ 0.8029000000000002 0.0076000000000006 0.1865000000000002 # Fe3
+ 0.3028999999999999 0.5075999999999993 0.1865000000000002 # Fe4
+ 0.1030999999999999 1.0000000000000000 0.2305000000000004 # Nb1
+ 0.6031000000000002 0.5000000000000000 0.2304999999999996 # Nb2
+ 0.8969000000000001 0.0000000000000000 0.7694999999999997 # Nb3
+ 0.3969000000000001 0.5000000000000000 0.7694999999999997 # Nb4
+ 0.2593999999999998 0.9939999999999989 0.1460999999999998 # O1
+ 0.3624000000000003 0.0085999999999996 0.7990000000000005 # O2
+ 0.0548000000000002 0.0253000000000001 0.8609000000000007 # O3
+ 0.1373000000000000 0.9769999999999995 0.5146000000000001 # O4
+ 0.7594000000000003 0.4939999999999992 0.1460999999999998 # O5
+ 0.8624000000000003 0.5085999999999996 0.7990000000000005 # O6
+ 0.5548000000000001 0.5253000000000001 0.8608999999999999 # O7
+ 0.6373000000000000 0.4769999999999996 0.5146000000000001 # O8
+ 0.7406000000000003 0.9939999999999989 0.8539000000000004 # O9
+ 0.6376000000000003 0.0085999999999996 0.2009999999999998 # O10
+ 0.9451999999999999 0.0253000000000001 0.1391000000000004 # O11
+ 0.8627000000000000 0.9769999999999995 0.4854000000000002 # O12
+ 0.2406000000000003 0.4940000000000005 0.8539000000000004 # O13
+ 0.1376000000000002 0.5085999999999996 0.2009999999999998 # O14
+ 0.4452000000000000 0.5253000000000001 0.1391000000000004 # O15
+ 0.3627000000000001 0.4769999999999996 0.4854000000000002 # O16
diff --git a/test/data/monoclinic/POSCAR-005-2 b/test/data/monoclinic/POSCAR-005-2
new file mode 100644
index 0000000..33d46fb
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-005-2
@@ -0,0 +1,109 @@
+$cell vectors
+1.0
+ 12.8619939478917384 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.2049947275794572 0.0000000000000000
+ -2.4344899442270513 0.0000000000000000 7.7684668590611343
+ 2 8 28 8 56
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ge1
+ 0.5000000000000002 0.5000000000000000 0.0000000000000000 # Ge2
+ 0.1489999999999999 0.1221000000000001 0.1340000000000001 # Se1
+ 0.4532000000000003 0.3793999999999998 0.2029999999999999 # Se2
+ 0.6490000000000001 0.6220999999999997 0.1340000000000001 # Se3
+ -0.0468000000000000 -0.1206000000000001 0.2029999999999999 # Se4
+ -0.1489999999999999 0.1221000000000001 -0.1340000000000001 # Se5
+ 0.5467999999999998 0.3793999999999998 -0.2029999999999999 # Se6
+ 0.3509999999999999 0.6220999999999997 -0.1340000000000001 # Se7
+ 0.0468000000000000 -0.1206000000000001 -0.2029999999999999 # Se8
+ 0.4737000000000002 0.0792000000000002 0.1913999999999998 # O1
+ 0.1702000000000001 0.4308999999999998 0.0881999999999998 # O2
+ 0.2222000000000000 0.7199999999999998 0.1441999999999998 # O3
+ 0.3599999999999999 0.5679999999999997 0.4488999999999997 # O4
+ 0.0010000000000002 0.2979000000000002 0.3009000000000003 # O5
+ 0.3522000000000001 -0.0119999999999999 0.4135000000000003 # O6
+ 0.1811000000000000 0.7679999999999999 0.4795000000000001 # O7
+ 0.9737000000000001 0.5791999999999997 0.1913999999999998 # O8
+ 0.6702000000000000 0.9309000000000002 0.0881999999999998 # O9
+ 0.7221999999999998 0.2199999999999998 0.1441999999999998 # O10
+ 0.8600000000000000 0.0680000000000002 0.4488999999999997 # O11
+ 0.5010000000000000 0.7978999999999996 0.3009000000000003 # O12
+ 0.8522000000000004 0.4880000000000001 0.4135000000000003 # O13
+ 0.6811000000000004 0.2679999999999998 0.4795000000000001 # O14
+ 0.5263000000000002 0.0792000000000002 0.8086000000000001 # O15
+ 0.8297999999999999 0.4309000000000002 0.9118000000000002 # O16
+ 0.7778000000000003 0.7199999999999998 0.8558000000000002 # O17
+ 0.6400000000000001 0.5680000000000002 0.5511000000000003 # O18
+ 0.9990000000000006 0.2979000000000002 0.6991000000000004 # O19
+ 0.6478000000000000 -0.0119999999999999 0.5864999999999998 # O20
+ 0.8189000000000000 0.7679999999999999 0.5205000000000000 # O21
+ 0.0263000000000000 0.5792000000000002 0.8086000000000001 # O22
+ 0.3298000000000001 0.9309000000000002 0.9118000000000002 # O23
+ 0.2777999999999998 0.2199999999999998 0.8558000000000002 # O24
+ 0.1399999999999999 0.0680000000000002 0.5511000000000003 # O25
+ 0.4990000000000002 0.7978999999999996 0.6991000000000004 # O26
+ 0.1477999999999998 0.4880000000000001 0.5864999999999998 # O27
+ 0.3188999999999998 0.2679999999999998 0.5205000000000000 # O28
+ 0.1470000000000000 0.2782000000000002 0.5812000000000002 # Na1
+ 0.1665999999999999 0.5740000000000002 0.3204999999999999 # Na2
+ 0.6470000000000001 0.7781999999999997 0.5812000000000002 # Na3
+ 0.6666000000000002 0.0740000000000002 0.3204999999999999 # Na4
+ 0.8530000000000002 0.2782000000000002 0.4188000000000000 # Na5
+ 0.8334000000000003 0.5740000000000002 0.6795000000000002 # Na6
+ 0.3530000000000000 0.7781999999999997 0.4188000000000000 # Na7
+ 0.3334000000000000 0.0740000000000002 0.6795000000000002 # Na8
+ 0.4140000000000002 0.0350000000000000 0.1389999999999998 # H1
+ 0.4430000000000001 0.1660000000000002 0.1760000000000001 # H2
+ 0.1469999999999999 0.3650000000000001 0.0960000000000003 # H3
+ 0.2389999999999999 0.4210000000000000 0.1380000000000002 # H4
+ 0.1729999999999999 0.7829999999999996 0.1230000000000000 # H5
+ 0.2520000000000002 0.7060000000000001 0.0740000000000001 # H6
+ 0.3920000000000001 0.5580000000000002 0.5709999999999998 # H7
+ 0.4079999999999999 0.5599999999999999 0.3900000000000001 # H8
+ 0.0400000000000001 0.3599999999999999 0.2780000000000001 # H9
+ 0.0019999999999999 0.2480000000000002 0.1989999999999998 # H10
+ 0.2829999999999999 0.0119999999999999 0.3330000000000000 # H11
+ 0.4130000000000002 0.0110000000000002 0.3730000000000002 # H12
+ 0.1270000000000001 0.8059999999999998 0.4729999999999999 # H13
+ 0.1999999999999998 0.7199999999999998 0.5499999999999998 # H14
+ 0.9139999999999999 0.5350000000000000 0.1389999999999998 # H15
+ 0.9430000000000005 0.6659999999999998 0.1760000000000001 # H16
+ 0.6470000000000001 0.8649999999999997 0.0960000000000003 # H17
+ 0.7390000000000002 0.9210000000000000 0.1380000000000002 # H18
+ 0.6730000000000002 0.2829999999999998 0.1230000000000000 # H19
+ 0.7520000000000001 0.2060000000000000 0.0740000000000001 # H20
+ 0.8919999999999999 0.0580000000000002 0.5709999999999998 # H21
+ 0.9080000000000003 0.0600000000000000 0.3900000000000001 # H22
+ 0.5400000000000004 0.8599999999999999 0.2780000000000001 # H23
+ 0.5020000000000002 0.7479999999999998 0.1989999999999998 # H24
+ 0.7830000000000001 0.5119999999999999 0.3330000000000000 # H25
+ 0.9130000000000005 0.5109999999999998 0.3730000000000002 # H26
+ 0.6269999999999999 0.3059999999999998 0.4729999999999999 # H27
+ 0.7000000000000000 0.2199999999999998 0.5499999999999998 # H28
+ 0.5860000000000003 0.0350000000000000 0.8610000000000002 # H29
+ 0.5569999999999999 0.1660000000000002 0.8240000000000001 # H30
+ 0.8530000000000002 0.3650000000000001 0.9040000000000006 # H31
+ 0.7610000000000002 0.4210000000000000 0.8619999999999999 # H32
+ 0.8269999999999998 0.7829999999999996 0.8769999999999999 # H33
+ 0.7480000000000000 0.7060000000000001 0.9260000000000002 # H34
+ 0.6080000000000001 0.5580000000000002 0.4290000000000002 # H35
+ 0.5920000000000002 0.5599999999999999 0.6099999999999999 # H36
+ 0.9600000000000000 0.3599999999999999 0.7219999999999998 # H37
+ 0.9980000000000002 0.2480000000000002 0.8010000000000002 # H38
+ 0.7170000000000002 0.0119999999999999 0.6670000000000001 # H39
+ 0.5870000000000001 0.0110000000000002 0.6270000000000006 # H40
+ 0.8730000000000001 0.8059999999999998 0.5270000000000002 # H41
+ 0.7999999999999998 0.7199999999999998 0.4500000000000002 # H42
+ 0.0860000000000001 0.5350000000000000 0.8610000000000002 # H43
+ 0.0570000000000001 0.6659999999999998 0.8240000000000001 # H44
+ 0.3530000000000001 0.8649999999999997 0.9040000000000006 # H45
+ 0.2610000000000000 0.9210000000000000 0.8619999999999999 # H46
+ 0.3270000000000000 0.2830000000000002 0.8769999999999999 # H47
+ 0.2480000000000001 0.2060000000000000 0.9260000000000002 # H48
+ 0.1080000000000002 0.0580000000000002 0.4290000000000002 # H49
+ 0.0919999999999999 0.0600000000000000 0.6099999999999999 # H50
+ 0.4600000000000002 0.8599999999999999 0.7219999999999998 # H51
+ 0.4980000000000004 0.7479999999999998 0.8010000000000002 # H52
+ 0.2169999999999999 0.5119999999999999 0.6670000000000001 # H53
+ 0.0870000000000002 0.5110000000000002 0.6270000000000006 # H54
+ 0.3730000000000002 0.3059999999999998 0.5270000000000002 # H55
+ 0.3000000000000000 0.2199999999999998 0.4500000000000002 # H56
diff --git a/test/data/monoclinic/POSCAR-006 b/test/data/monoclinic/POSCAR-006
new file mode 100644
index 0000000..c61673d
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-006
@@ -0,0 +1,59 @@
+$cell vectors
+1.0
+ 10.9429948508613997 0.0000000000000000 0.0000000000000000
+ -0.2213964213055486 6.9674800963360299 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.6699954498610730
+ 4 12 36
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Er1
+ 0.4799000000000001 0.8628000000000005 0.0000000000000000 # Er2
+ 0.4441999999999999 0.4846999999999997 0.4999999999999998 # Er3
+ 0.9268999999999997 0.3449000000000003 0.4999999999999998 # Er4
+ 0.0856000000000000 0.4889999999999999 0.0000000000000000 # P1
+ 0.1758000000000000 0.5030000000000002 0.2820000000000001 # P2
+ 0.3651000000000000 0.9960000000000006 0.4999999999999998 # P3
+ 0.2342999999999999 0.9050000000000004 0.2368999999999997 # P4
+ 0.5719999999999998 0.3509999999999999 0.0000000000000000 # P5
+ 0.6999000000000000 0.4379999999999997 0.2557999999999997 # P6
+ 0.7449000000000001 0.8490000000000002 0.2150000000000000 # P7
+ 0.8319999999999996 0.8590000000000001 0.4999999999999998 # P8
+ 0.1758000000000000 0.5030000000000002 0.7180000000000002 # P9
+ 0.2342999999999999 0.9050000000000004 0.7630999999999999 # P10
+ 0.6999000000000000 0.4379999999999997 0.7441999999999999 # P11
+ 0.7449000000000001 0.8490000000000002 0.7850000000000001 # P12
+ 0.0539999999999999 0.6850000000000004 0.0000000000000000 # O1
+ 0.0199999999999999 0.3110000000000001 0.0000000000000000 # O2
+ 0.0620000000000002 0.4100000000000000 0.3330000000000002 # O3
+ 0.1670000000000001 0.7230000000000001 0.3079999999999999 # O4
+ 0.3059999999999999 0.4580000000000004 0.3330000000000002 # O5
+ 0.1859999999999999 0.4580000000000004 0.1220000000000001 # O6
+ 0.1489999999999999 0.0270000000000001 0.1539999999999999 # O7
+ 0.2569999999999998 0.0170000000000001 0.3679999999999998 # O8
+ 0.3389999999999999 0.8490000000000002 0.1600000000000000 # O9
+ 0.4449999999999997 0.1570000000000003 0.4999999999999998 # O10
+ 0.3999999999999999 0.7980000000000007 0.4999999999999998 # O11
+ 0.4689999999999998 0.1809999999999998 0.0000000000000000 # O12
+ 0.5039999999999998 0.5550000000000002 0.0000000000000000 # O13
+ 0.6469999999999999 0.3189999999999998 0.1309999999999998 # O14
+ 0.5800000000000002 0.5139999999999999 0.3210000000000001 # O15
+ 0.7900000000000001 0.3160000000000001 0.3239999999999998 # O16
+ 0.7760000000000000 0.6240000000000001 0.2050000000000001 # O17
+ 0.6320000000000000 0.8980000000000001 0.1519999999999997 # O18
+ 0.8499999999999999 0.9520000000000003 0.1510000000000002 # O19
+ 0.7429999999999997 0.8599999999999997 0.3760000000000001 # O20
+ 0.9339999999999999 0.0270000000000001 0.4999999999999998 # O21
+ 0.8999999999999999 0.6630000000000003 0.4999999999999998 # O22
+ 0.0620000000000002 0.4100000000000000 0.6669999999999999 # O23
+ 0.1670000000000001 0.7230000000000001 0.6920000000000002 # O24
+ 0.3059999999999999 0.4580000000000004 0.6669999999999999 # O25
+ 0.1859999999999999 0.4580000000000004 0.8780000000000001 # O26
+ 0.1489999999999999 0.0270000000000001 0.8459999999999995 # O27
+ 0.2569999999999998 0.0170000000000001 0.6320000000000002 # O28
+ 0.3389999999999999 0.8490000000000002 0.8400000000000001 # O29
+ 0.6469999999999999 0.3189999999999998 0.8690000000000002 # O30
+ 0.5800000000000002 0.5139999999999999 0.6789999999999999 # O31
+ 0.7900000000000001 0.3160000000000001 0.6760000000000003 # O32
+ 0.7760000000000000 0.6240000000000001 0.7950000000000000 # O33
+ 0.6320000000000000 0.8980000000000001 0.8479999999999999 # O34
+ 0.8499999999999999 0.9520000000000003 0.8489999999999998 # O35
+ 0.7429999999999997 0.8599999999999997 0.6240000000000000 # O36
diff --git a/test/data/monoclinic/POSCAR-006-2 b/test/data/monoclinic/POSCAR-006-2
new file mode 100644
index 0000000..9b42ee4
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-006-2
@@ -0,0 +1,20 @@
+$cell vectors
+1.0
+ 9.3991955772837876 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.2087984901255653 0.0000000000000000
+ -2.1919524756195758 0.0000000000000000 6.1584385797973074
+ 8 5
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mo1
+ 0.7805999999999996 0.0000000000000000 0.2389999999999996 # Mo2
+ 0.2468000000000000 0.0000000000000000 0.7931000000000002 # Mo3
+ 0.3060999999999997 0.0000000000000000 0.3569000000000003 # Mo4
+ 0.5705999999999998 0.0000000000000000 0.7939000000000001 # Mo5
+ 0.0529000000000002 0.5000000000000008 0.3937000000000003 # Mo6
+ 0.7805000000000000 0.5000000000000008 0.6113000000000000 # Mo7
+ 0.4976999999999995 0.4999999999999992 0.1232000000000000 # Mo8
+ 0.5831000000000000 0.0000000000000000 0.4300999999999999 # P1
+ 0.9855999999999998 0.0000000000000000 0.6235999999999996 # P2
+ 0.2090000000000003 0.4999999999999992 0.0659000000000003 # P3
+ 0.3715999999999997 0.5000000000000008 0.6552999999999999 # P4
+ 0.7857999999999997 0.5000000000000008 0.9812999999999997 # P5
diff --git a/test/data/monoclinic/POSCAR-007 b/test/data/monoclinic/POSCAR-007
new file mode 100644
index 0000000..407da35
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-007
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 6.8749967650253252 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 22.5499893892830627 0.0000000000000000
+ -3.4507059968801284 0.0000000000000000 5.8698437366030412
+ 12 24
+Direct
+ 0.0000000000000003 0.9879999999999998 0.4999999999999999 # Ge1
+ 0.2513000000000007 0.7375000000000000 0.5020000000000001 # Ge2
+ 0.4957000000000000 0.5131000000000000 0.9982999999999999 # Ge3
+ 0.7435999999999999 0.7624000000000001 0.0001000000000001 # Ge4
+ 0.1359000000000001 0.8749000000000000 0.2483999999999996 # Ge5
+ 0.6391999999999999 0.6248000000000000 0.7509000000000001 # Ge6
+ 0.0000000000000000 0.0120000000000001 0.0000000000000000 # Ge7
+ 0.2513000000000003 0.2624999999999997 0.0020000000000001 # Ge8
+ 0.4957000000000005 0.4869000000000001 0.4983000000000000 # Ge9
+ 0.7436000000000000 0.2375999999999999 0.5001000000000000 # Ge10
+ 0.1358999999999997 0.1250999999999999 0.7483999999999995 # Ge11
+ 0.6392000000000002 0.3752000000000000 0.2509000000000000 # Ge12
+ 0.2869999999999998 0.9503999999999999 0.1540000000000000 # S1
+ 0.1530000000000003 0.8975999999999998 0.5689999999999998 # S2
+ 0.3770000000000000 0.7989999999999998 0.3469999999999996 # S3
+ 0.8830000000000000 0.6979000000000000 0.8430000000000002 # S4
+ 0.7810000000000001 0.5518999999999999 0.6359999999999996 # S5
+ 0.7639999999999999 0.9995000000000001 0.1270000000000004 # S6
+ 0.8320000000000005 0.8517000000000001 0.9210000000000004 # S7
+ 0.3800000000000004 0.7536000000000002 0.8650000000000001 # S8
+ 0.8730000000000001 0.7460000000000002 0.3650000000000000 # S9
+ 0.3040000000000002 0.6441000000000000 0.4330000000000002 # S10
+ 0.6110000000000001 0.6055999999999999 0.0540000000000002 # S11
+ 0.2620000000000001 0.5075000000000000 0.1239999999999997 # S12
+ 0.2870000000000001 0.0495999999999999 0.6540000000000000 # S13
+ 0.1529999999999999 0.1023999999999999 0.0689999999999999 # S14
+ 0.3770000000000003 0.2009999999999996 0.8469999999999995 # S15
+ 0.8829999999999997 0.3021000000000000 0.3430000000000002 # S16
+ 0.7810000000000001 0.4481000000000002 0.1360000000000005 # S17
+ 0.7640000000000003 0.0005000000000001 0.6270000000000003 # S18
+ 0.8320000000000001 0.1482999999999998 0.4210000000000003 # S19
+ 0.3800000000000000 0.2463999999999996 0.3650000000000000 # S20
+ 0.8730000000000004 0.2539999999999998 0.8650000000000001 # S21
+ 0.3040000000000005 0.3558999999999996 0.9330000000000002 # S22
+ 0.6110000000000007 0.3944000000000002 0.5540000000000003 # S23
+ 0.2619999999999996 0.4924999999999999 0.6239999999999996 # S24
diff --git a/test/data/monoclinic/POSCAR-007-2 b/test/data/monoclinic/POSCAR-007-2
new file mode 100644
index 0000000..fa1a095
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-007-2
@@ -0,0 +1,107 @@
+$cell vectors
+1.0
+ 16.4529922581762413 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4049974567217269 0.0000000000000000
+ -2.0448445973693867 0.0000000000000000 12.9252406328975358
+ 20 60 20
+Direct
+ 0.5000000000000001 0.8117000000000009 0.5000000000000002 # P1
+ 0.5923999999999999 0.1525999999999998 0.3871000000000003 # P2
+ 0.6974000000000000 0.8092000000000000 0.2959000000000001 # P3
+ 0.8091000000000000 0.1719000000000005 0.2179000000000001 # P4
+ 0.9080999999999998 0.8398000000000007 0.1149999999999998 # P5
+ 0.0732999999999999 0.1580999999999998 0.4086000000000000 # P6
+ 0.1743000000000002 0.8247000000000000 0.3101999999999999 # P7
+ 0.2865999999999999 0.1884000000000005 0.2316000000000000 # P8
+ 0.3898000000000001 0.8475000000000005 0.1381000000000000 # P9
+ 0.4815999999999999 0.1899000000000002 0.0219000000000000 # P10
+ 0.0000000000000000 0.1883000000000002 0.0000000000000000 # P11
+ 0.0924000000000002 0.8474000000000000 0.8871000000000000 # P12
+ 0.1974000000000000 0.1907999999999999 0.7959000000000004 # P13
+ 0.3090999999999999 0.8281000000000005 0.7178999999999999 # P14
+ 0.4081000000000001 0.1602000000000003 0.6150000000000000 # P15
+ 0.5732999999999999 0.8419000000000000 0.9086000000000002 # P16
+ 0.6742999999999999 0.1753000000000000 0.8102000000000001 # P17
+ 0.7866000000000000 0.8116000000000004 0.7316000000000003 # P18
+ 0.8897999999999998 0.1525000000000005 0.6380999999999998 # P19
+ 0.9815999999999999 0.8100999999999999 0.5219000000000001 # P20
+ 0.5376000000000001 0.9559000000000005 0.4057999999999998 # O1
+ 0.6419999999999997 0.0513999999999999 0.2993999999999998 # O2
+ 0.7772000000000002 0.9187999999999998 0.2546000000000002 # O3
+ 0.8947999999999998 0.0786000000000000 0.1861000000000000 # O4
+ 0.4788999999999999 0.0544000000000002 0.5552000000000002 # O5
+ 0.0903999999999999 0.9228000000000004 0.3418999999999999 # O6
+ 0.2086000000000001 0.0842000000000003 0.2705000000000000 # O7
+ 0.3433000000000002 0.9473000000000000 0.2284000000000000 # O8
+ 0.4445999999999999 0.0822000000000002 0.1207999999999999 # O9
+ 0.0024000000000002 0.0648999999999997 0.4676999999999999 # O10
+ 0.4243999999999999 0.6757000000000002 0.4579999999999998 # O11
+ 0.5665000000000001 0.6880000000000003 0.5713000000000001 # O12
+ 0.5400000000000000 0.3553999999999999 0.3366000000000002 # O13
+ 0.6516999999999999 0.2026999999999997 0.4834000000000000 # O14
+ 0.6537999999999999 0.6428999999999998 0.2132999999999998 # O15
+ 0.7226999999999998 0.7169000000000006 0.4033000000000001 # O16
+ 0.7527000000000001 0.2455000000000001 0.1238000000000001 # O17
+ 0.8294000000000001 0.3495000000000006 0.3014000000000000 # O18
+ 0.8332999999999998 0.7832999999999999 0.0433000000000001 # O19
+ 0.9455999999999999 0.6418000000000004 0.1833999999999999 # O20
+ 0.0368000000000001 0.3559000000000004 0.3366000000000002 # O21
+ 0.1507000000000000 0.2112000000000000 0.4845000000000001 # O22
+ 0.1523999999999999 0.6592000000000002 0.2176000000000000 # O23
+ 0.2277000000000001 0.7359000000000003 0.4054000000000000 # O24
+ 0.2594000000000000 0.2757000000000004 0.1244000000000000 # O25
+ 0.3276999999999999 0.3601000000000004 0.3072000000000000 # O26
+ 0.3298000000000001 0.7979000000000002 0.0439000000000000 # O27
+ 0.4455999999999999 0.6511000000000002 0.1853000000000000 # O28
+ 0.4185000000000000 0.3264000000000002 0.9509999999999997 # O29
+ 0.5574999999999998 0.3242999999999998 0.0794999999999999 # O30
+ 0.0376000000000000 0.0441000000000004 0.9058000000000000 # O31
+ 0.1419999999999998 0.9486000000000000 0.7994000000000001 # O32
+ 0.2772000000000001 0.0812000000000001 0.7545999999999999 # O33
+ 0.3948000000000001 0.9213999999999999 0.6861000000000002 # O34
+ 0.9789000000000000 0.9456000000000007 0.0552000000000000 # O35
+ 0.5903999999999999 0.0772000000000007 0.8419000000000001 # O36
+ 0.7086000000000001 0.9158000000000006 0.7705000000000002 # O37
+ 0.8432999999999998 0.0527000000000000 0.7283999999999998 # O38
+ 0.9445999999999999 0.9177999999999997 0.6208000000000000 # O39
+ 0.5024000000000000 0.9351000000000003 0.9677000000000002 # O40
+ 0.9243999999999999 0.3243000000000007 0.9580000000000001 # O41
+ 0.0665000000000000 0.3119999999999997 0.0712999999999999 # O42
+ 0.0400000000000000 0.6446000000000001 0.8365999999999999 # O43
+ 0.1517000000000001 0.7973000000000002 0.9834000000000002 # O44
+ 0.1538000000000000 0.3571000000000002 0.7133000000000000 # O45
+ 0.2227000000000000 0.2831000000000004 0.9033000000000001 # O46
+ 0.2526999999999999 0.7544999999999999 0.6237999999999999 # O47
+ 0.3294000000000000 0.6505000000000004 0.8014000000000001 # O48
+ 0.3332999999999998 0.2167000000000000 0.5432999999999999 # O49
+ 0.4455999999999998 0.3582000000000005 0.6834000000000002 # O50
+ 0.5368000000000001 0.6441000000000004 0.8365999999999999 # O51
+ 0.6506999999999999 0.7887999999999999 0.9844999999999999 # O52
+ 0.6524000000000000 0.3407999999999998 0.7176000000000002 # O53
+ 0.7277000000000001 0.2641000000000006 0.9053999999999999 # O54
+ 0.7594000000000000 0.7243000000000006 0.6244000000000000 # O55
+ 0.8276999999999999 0.6399000000000006 0.8071999999999999 # O56
+ 0.8297999999999999 0.2020999999999999 0.5439000000000003 # O57
+ 0.9456000000000001 0.3488999999999998 0.6853000000000001 # O58
+ 0.9184999999999998 0.6735999999999998 0.4510000000000001 # O59
+ 0.0575000000000001 0.6757000000000002 0.5795000000000001 # O60
+ 0.3173999999999997 0.5069999999999996 0.4469000000000000 # Li1
+ 0.4339000000000000 0.5199999999999999 0.3236000000000002 # Li2
+ 0.5496999999999997 0.4930000000000003 0.2016000000000001 # Li3
+ 0.6651000000000000 0.4930000000000003 0.0826999999999999 # Li4
+ 0.7428999999999999 0.0069999999999996 0.0134000000000002 # Li5
+ 0.8184000000000002 0.4800000000000002 0.4438000000000001 # Li6
+ 0.9332000000000000 0.5220000000000000 0.3227000000000001 # Li7
+ 0.0505999999999999 0.4620000000000004 0.2034000000000001 # Li8
+ 0.1678999999999999 0.5250000000000002 0.0813000000000000 # Li9
+ 0.2459999999999999 0.0396999999999998 0.0081000000000000 # Li10
+ 0.8174000000000001 0.4930000000000003 0.9469000000000001 # Li11
+ 0.9339000000000001 0.4800000000000002 0.8235999999999999 # Li12
+ 0.0497000000000001 0.5070000000000007 0.7015999999999999 # Li13
+ 0.1651000000000000 0.5070000000000007 0.5827000000000001 # Li14
+ 0.2429000000000002 0.9930000000000003 0.5134000000000000 # Li15
+ 0.3184000000000001 0.5200000000000008 0.9437999999999999 # Li16
+ 0.4331999999999999 0.4780000000000000 0.8226999999999999 # Li17
+ 0.5506000000000000 0.5380000000000005 0.7034000000000000 # Li18
+ 0.6679000000000000 0.4750000000000007 0.5813000000000003 # Li19
+ 0.7459999999999999 0.9603000000000002 0.5081000000000001 # Li20
diff --git a/test/data/monoclinic/POSCAR-008 b/test/data/monoclinic/POSCAR-008
new file mode 100644
index 0000000..bb59c01
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-008
@@ -0,0 +1,117 @@
+$cell vectors
+1.0
+ 16.6499921654795102 0.0000000000000000 0.0000000000000000
+ -2.3753536987087220 10.6441730008861644 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.0819933738307803
+ 36 14 60
+Direct
+ 0.1170000000000001 0.4740000000000000 0.0000000000000000 # La1
+ 0.8820000000000002 0.5270000000000000 0.0000000000000000 # La2
+ 0.2309999999999999 0.1709999999999998 0.0000000000000000 # La3
+ 0.7720000000000000 0.8299999999999994 0.0000000000000000 # La4
+ 0.4760000000000001 0.1349999999999998 0.0000000000000000 # La5
+ 0.5350000000000001 0.8489999999999993 0.0000000000000000 # La6
+ 0.0320000000000000 0.7669999999999996 0.2010000000000001 # La7
+ 0.9730000000000001 0.2270000000000001 0.2000000000000000 # La8
+ 0.3229999999999998 0.8809999999999993 0.2039999999999998 # La9
+ 0.6790000000000000 0.1170000000000000 0.2039999999999998 # La10
+ 0.3209999999999998 0.4789999999999999 0.2060000000000000 # La11
+ 0.6520000000000002 0.5349999999999997 0.1849999999999998 # La12
+ 0.6169999999999999 0.4740000000000000 0.4999999999999999 # La13
+ 0.3820000000000003 0.5270000000000000 0.4999999999999999 # La14
+ 0.7310000000000000 0.1709999999999998 0.4999999999999999 # La15
+ 0.2720000000000000 0.8299999999999994 0.4999999999999999 # La16
+ 0.9760000000000000 0.1350000000000003 0.4999999999999999 # La17
+ 0.0350000000000003 0.8489999999999993 0.4999999999999999 # La18
+ 0.5320000000000001 0.7670000000000001 0.7010000000000000 # La19
+ 0.4729999999999999 0.2270000000000001 0.7000000000000001 # La20
+ 0.8230000000000002 0.8809999999999998 0.7039999999999997 # La21
+ 0.1790000000000002 0.1170000000000000 0.7039999999999997 # La22
+ 0.8210000000000001 0.4789999999999999 0.7060000000000000 # La23
+ 0.1520000000000000 0.5349999999999997 0.6849999999999998 # La24
+ 0.0320000000000000 0.7670000000000001 0.7989999999999999 # La25
+ 0.9730000000000001 0.2270000000000001 0.7999999999999998 # La26
+ 0.3230000000000000 0.8809999999999998 0.7960000000000002 # La27
+ 0.6790000000000000 0.1170000000000000 0.7960000000000002 # La28
+ 0.3210000000000002 0.4789999999999999 0.7939999999999999 # La29
+ 0.6520000000000002 0.5349999999999997 0.8149999999999997 # La30
+ 0.5320000000000001 0.7669999999999996 0.2989999999999999 # La31
+ 0.4729999999999999 0.2270000000000001 0.2999999999999999 # La32
+ 0.8230000000000001 0.8809999999999993 0.2960000000000002 # La33
+ 0.1790000000000002 0.1170000000000000 0.2960000000000002 # La34
+ 0.8210000000000001 0.4789999999999999 0.2940000000000000 # La35
+ 0.1520000000000000 0.5349999999999997 0.3150000000000002 # La36
+ 0.1809999999999999 0.8179999999999996 0.0000000000000000 # Mn1
+ 0.8129999999999998 0.1859999999999998 0.0000000000000000 # Mn2
+ 0.3250000000000000 0.6760000000000002 0.0000000000000000 # Mn3
+ 0.6649999999999999 0.3349999999999997 0.0000000000000000 # Mn4
+ 0.5420000000000000 0.5989999999999996 0.0000000000000000 # Mn5
+ 0.4729999999999999 0.4599999999999999 0.0690000000000000 # Mn6
+ 0.6810000000000003 0.8179999999999996 0.4999999999999999 # Mn7
+ 0.3130000000000000 0.1859999999999998 0.4999999999999999 # Mn8
+ 0.8250000000000000 0.6760000000000002 0.4999999999999999 # Mn9
+ 0.1650000000000001 0.3349999999999997 0.4999999999999999 # Mn10
+ 0.0419999999999999 0.5989999999999996 0.4999999999999999 # Mn11
+ 0.9730000000000000 0.4599999999999999 0.5690000000000000 # Mn12
+ 0.4729999999999999 0.4599999999999999 0.9309999999999999 # Mn13
+ 0.9730000000000000 0.4599999999999999 0.4310000000000000 # Mn14
+ 0.0420000000000000 0.7059999999999994 0.0000000000000000 # S1
+ 0.9670000000000001 0.3069999999999998 0.0000000000000000 # S2
+ 0.3179999999999999 0.4380000000000001 0.0000000000000000 # S3
+ 0.7140000000000000 0.5559999999999998 0.0000000000000000 # S4
+ 0.3559999999999999 0.9119999999999997 0.0000000000000000 # S5
+ 0.6619999999999999 0.0769999999999999 0.0000000000000000 # S6
+ 0.1720000000000000 0.9699999999999995 0.1289999999999999 # S7
+ 0.8330000000000000 0.0420000000000001 0.1340000000000001 # S8
+ 0.2129999999999999 0.6649999999999997 0.1289999999999999 # S9
+ 0.7810000000000000 0.3589999999999996 0.1349999999999998 # S10
+ 0.4260000000000001 0.7149999999999999 0.1310000000000000 # S11
+ 0.5600000000000001 0.3210000000000000 0.1229999999999999 # S12
+ 0.1480000000000001 0.2959999999999999 0.1460000000000001 # S13
+ 0.8500000000000000 0.7029999999999997 0.1500000000000000 # S14
+ 0.3460000000000001 0.1870000000000000 0.1570000000000001 # S15
+ 0.6450000000000001 0.7869999999999999 0.1409999999999998 # S16
+ 0.4999999999999999 0.0040000000000001 0.2029999999999998 # S17
+ 0.0060000000000000 0.5069999999999998 0.2000000000000000 # S18
+ 0.5419999999999999 0.7060000000000000 0.4999999999999999 # S19
+ 0.4670000000000002 0.3069999999999998 0.4999999999999999 # S20
+ 0.8180000000000001 0.4380000000000001 0.4999999999999999 # S21
+ 0.2140000000000001 0.5559999999999998 0.4999999999999999 # S22
+ 0.8560000000000000 0.9119999999999997 0.4999999999999999 # S23
+ 0.1619999999999999 0.0769999999999999 0.4999999999999999 # S24
+ 0.6719999999999999 0.9699999999999999 0.6289999999999999 # S25
+ 0.3329999999999999 0.0420000000000001 0.6340000000000002 # S26
+ 0.7130000000000001 0.6649999999999997 0.6289999999999999 # S27
+ 0.2810000000000002 0.3590000000000001 0.6350000000000002 # S28
+ 0.9260000000000000 0.7149999999999999 0.6309999999999999 # S29
+ 0.0600000000000000 0.3210000000000000 0.6229999999999998 # S30
+ 0.6480000000000000 0.2959999999999999 0.6460000000000000 # S31
+ 0.3500000000000002 0.7029999999999997 0.6499999999999999 # S32
+ 0.8460000000000000 0.1870000000000000 0.6569999999999999 # S33
+ 0.1450000000000002 0.7869999999999999 0.6409999999999998 # S34
+ 0.0000000000000001 0.0040000000000001 0.7029999999999996 # S35
+ 0.5060000000000001 0.5069999999999998 0.7000000000000001 # S36
+ 0.1720000000000000 0.9699999999999999 0.8710000000000000 # S37
+ 0.8330000000000000 0.0420000000000001 0.8660000000000001 # S38
+ 0.2130000000000002 0.6650000000000000 0.8710000000000000 # S39
+ 0.7810000000000001 0.3590000000000001 0.8649999999999998 # S40
+ 0.4260000000000001 0.7149999999999999 0.8690000000000000 # S41
+ 0.5600000000000001 0.3210000000000000 0.8770000000000000 # S42
+ 0.1480000000000001 0.2959999999999999 0.8539999999999999 # S43
+ 0.8500000000000000 0.7029999999999997 0.8500000000000000 # S44
+ 0.3460000000000001 0.1870000000000000 0.8430000000000000 # S45
+ 0.6450000000000001 0.7869999999999999 0.8589999999999998 # S46
+ 0.4999999999999999 0.0040000000000001 0.7969999999999998 # S47
+ 0.0060000000000000 0.5069999999999998 0.7999999999999998 # S48
+ 0.6719999999999998 0.9699999999999995 0.3710000000000001 # S49
+ 0.3329999999999999 0.0420000000000001 0.3659999999999999 # S50
+ 0.7130000000000001 0.6649999999999997 0.3710000000000001 # S51
+ 0.2810000000000002 0.3590000000000001 0.3650000000000002 # S52
+ 0.9260000000000000 0.7149999999999999 0.3689999999999999 # S53
+ 0.0600000000000000 0.3210000000000000 0.3770000000000001 # S54
+ 0.6480000000000000 0.2959999999999999 0.3539999999999998 # S55
+ 0.3500000000000002 0.7029999999999997 0.3500000000000000 # S56
+ 0.8460000000000000 0.1870000000000000 0.3430000000000000 # S57
+ 0.1449999999999999 0.7869999999999999 0.3589999999999998 # S58
+ 0.0000000000000001 0.0040000000000001 0.2969999999999998 # S59
+ 0.5060000000000001 0.5069999999999998 0.2999999999999999 # S60
diff --git a/test/data/monoclinic/POSCAR-008-2 b/test/data/monoclinic/POSCAR-008-2
new file mode 100644
index 0000000..3bf0210
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-008-2
@@ -0,0 +1,231 @@
+$cell vectors
+1.0
+ 14.0879933710075278 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.1377961708251743 0.0000000000000000
+ -9.3329661406760032 0.0000000000000053 26.6955687404802120
+ 48 16 160
+Direct
+ 0.0039000000000006 0.0000000000000000 0.9990000000000003 # Er1
+ 0.2451000000000003 0.2404999999999998 0.9980000000000001 # Er2
+ 0.3961000000000002 -0.0000000000000001 0.1179999999999999 # Er3
+ 0.1584000000000000 0.2373000000000000 0.1187999999999999 # Er4
+ 0.1602000000000002 -0.0000000000000002 0.2490999999999999 # Er5
+ 0.4095000000000002 0.2603000000000003 0.2488000000000002 # Er6
+ 0.9084000000000000 -0.0000000000000002 0.3689000000000001 # Er7
+ 0.1518000000000002 0.2412999999999998 0.3668000000000001 # Er8
+ 0.6498000000000003 -0.0000000000000003 0.4984000000000002 # Er9
+ 0.4112000000000002 0.2374999999999996 0.4968000000000002 # Er10
+ 0.4179000000000002 -0.0000000000000004 0.6191000000000002 # Er11
+ 0.1500000000000000 0.2580999999999998 0.6188000000000000 # Er12
+ 0.1634000000000002 -0.0000000000000005 0.7483000000000001 # Er13
+ 0.4051000000000002 0.2405999999999995 0.7486000000000003 # Er14
+ 0.5712999999999999 0.0000000000000001 0.8680000000000000 # Er15
+ 0.3319000000000001 0.2396999999999996 0.8681999999999999 # Er16
+ 0.5039000000000002 0.5000000000000000 0.9990000000000003 # Er17
+ 0.7451000000000001 0.7404999999999998 0.9980000000000003 # Er18
+ 0.8961000000000000 0.4999999999999999 0.1179999999999999 # Er19
+ 0.6583999999999999 0.7373000000000000 0.1187999999999999 # Er20
+ 0.6601999999999999 0.4999999999999998 0.2490999999999999 # Er21
+ 0.9095000000000002 0.7603000000000003 0.2488000000000000 # Er22
+ 0.4083999999999998 0.4999999999999998 0.3689000000000001 # Er23
+ 0.6518000000000002 0.7412999999999998 0.3668000000000003 # Er24
+ 0.1498000000000001 0.4999999999999997 0.4984000000000002 # Er25
+ 0.9112000000000000 0.7375000000000003 0.4968000000000002 # Er26
+ 0.9179000000000000 0.4999999999999996 0.6191000000000002 # Er27
+ 0.6500000000000001 0.7580999999999998 0.6188000000000000 # Er28
+ 0.6634000000000000 0.5000000000000002 0.7483000000000001 # Er29
+ 0.9051000000000000 0.7406000000000001 0.7486000000000003 # Er30
+ 0.0713000000000001 0.5000000000000001 0.8680000000000000 # Er31
+ 0.8319000000000000 0.7396999999999997 0.8681999999999999 # Er32
+ 0.2451000000000003 0.7595000000000002 0.9980000000000001 # Er33
+ 0.1584000000000000 0.7626999999999999 0.1187999999999999 # Er34
+ 0.4095000000000002 0.7397000000000001 0.2488000000000002 # Er35
+ 0.1518000000000002 0.7587000000000003 0.3668000000000001 # Er36
+ 0.4112000000000002 0.7625000000000004 0.4968000000000002 # Er37
+ 0.1500000000000000 0.7418999999999999 0.6188000000000000 # Er38
+ 0.4051000000000002 0.7594000000000001 0.7486000000000003 # Er39
+ 0.3319000000000001 0.7602999999999999 0.8681999999999999 # Er40
+ 0.7451000000000001 0.2594999999999995 0.9980000000000003 # Er41
+ 0.6583999999999999 0.2626999999999998 0.1187999999999999 # Er42
+ 0.9094999999999999 0.2397000000000000 0.2488000000000002 # Er43
+ 0.6518000000000002 0.2587000000000004 0.3668000000000003 # Er44
+ 0.9112000000000000 0.2624999999999997 0.4968000000000002 # Er45
+ 0.6500000000000001 0.2419000000000000 0.6188000000000000 # Er46
+ 0.9051000000000000 0.2594000000000001 0.7486000000000003 # Er47
+ 0.8319000000000000 0.2602999999999999 0.8681999999999999 # Er48
+ 0.4840000000000002 0.0000000000000000 0.9920000000000002 # K1
+ 0.9160000000000000 -0.0000000000000001 0.1259999999999999 # K2
+ 0.6550000000000001 -0.0000000000000002 0.2440000000000000 # K3
+ 0.4090000000000000 -0.0000000000000002 0.3700000000000002 # K4
+ 0.1550000000000002 -0.0000000000000003 0.4930000000000000 # K5
+ 0.9030000000000000 -0.0000000000000004 0.6129999999999999 # K6
+ 0.6620000000000001 -0.0000000000000005 0.7490000000000001 # K7
+ 0.0720000000000001 0.0000000000000001 0.8690000000000001 # K8
+ 0.9840000000000000 0.5000000000000000 0.9920000000000002 # K9
+ 0.4159999999999998 0.4999999999999999 0.1259999999999999 # K10
+ 0.1550000000000000 0.4999999999999998 0.2440000000000000 # K11
+ 0.9089999999999999 0.4999999999999998 0.3700000000000002 # K12
+ 0.6550000000000000 0.4999999999999997 0.4930000000000000 # K13
+ 0.4029999999999999 0.4999999999999996 0.6129999999999999 # K14
+ 0.1619999999999999 0.5000000000000002 0.7490000000000001 # K15
+ 0.5720000000000002 0.5000000000000001 0.8690000000000001 # K16
+ 0.1090000000000000 0.1540000000000003 0.1820000000000000 # F1
+ 0.2750000000000001 0.3399999999999999 0.1850000000000001 # F2
+ 0.4379999999999999 0.1660000000000002 0.1830000000000001 # F3
+ 0.1260000000000001 0.3380000000000000 0.4320000000000001 # F4
+ 0.2860000000000001 0.1679999999999997 0.4310000000000002 # F5
+ 0.4600000000000001 0.3220000000000002 0.4340000000000001 # F6
+ 0.1000000000000003 0.1609999999999998 0.6810000000000002 # F7
+ 0.2719999999999999 0.3299999999999999 0.6840000000000002 # F8
+ 0.4370000000000001 0.1670000000000000 0.6810000000000002 # F9
+ 0.1290000000000002 0.3329999999999995 0.9350000000000001 # F10
+ 0.2970000000000002 0.1760000000000000 0.9360000000000003 # F11
+ 0.4620000000000002 0.3240000000000001 0.9340000000000003 # F12
+ 0.6949999999999998 -0.0000000000000004 0.5860000000000001 # F13
+ 0.4710000000000002 0.2290000000000001 0.5850000000000001 # F14
+ 0.2520000000000000 -0.0000000000000005 0.8369999999999999 # F15
+ 0.4560000000000002 0.2219999999999995 0.8330000000000001 # F16
+ 0.3730000000000000 -0.0000000000000003 0.5380000000000001 # F17
+ 0.0870000000000001 0.2789999999999997 0.5340000000000003 # F18
+ 0.4960000000000000 -0.0000000000000005 0.7779999999999999 # F19
+ 0.2750000000000005 0.2179999999999996 0.7790000000000004 # F20
+ 0.3470000000000001 0.0000000000000000 0.0340000000000001 # F21
+ 0.1010000000000001 0.2270000000000002 0.0280000000000001 # F22
+ 0.0629999999999999 -0.0000000000000001 0.0810000000000000 # F23
+ 0.2989999999999999 0.2300000000000000 0.0870000000000001 # F24
+ 0.8539999999999996 -0.0000000000000002 0.2809999999999999 # F25
+ 0.0859999999999999 0.2129999999999998 0.2780000000000000 # F26
+ 0.7209999999999999 0.0000000000000000 0.0210000000000001 # F27
+ 0.3940000000000000 0.3410000000000001 0.0190000000000002 # F28
+ 0.6660000000000000 -0.0000000000000001 0.1020000000000001 # F29
+ 0.0079999999999999 0.3309999999999998 0.0980000000000000 # F30
+ 0.2609999999999999 -0.0000000000000001 0.1439999999999999 # F31
+ 0.9659999999999997 -0.0000000000000001 0.2189999999999998 # F32
+ 0.4680000000000000 -0.0000000000000002 0.2670000000000000 # F33
+ 0.2670000000000001 0.1660000000000001 0.2589999999999999 # F34
+ 0.6300000000000000 -0.0000000000000002 0.3590000000000002 # F35
+ 0.2910000000000000 0.3119999999999998 0.3550000000000001 # F36
+ 0.4690000000000001 -0.0000000000000003 0.4800000000000000 # F37
+ 0.1250000000000002 -0.0000000000000004 0.5960000000000001 # F38
+ 0.2730000000000000 0.1689999999999998 0.5970000000000001 # F39
+ 0.9569999999999999 -0.0000000000000003 0.5250000000000001 # F40
+ 0.2890000000000000 0.3499999999999999 0.5180000000000001 # F41
+ 0.8150000000000002 0.0000000000000001 0.8480000000000002 # F42
+ 0.1670000000000000 0.3289999999999996 0.8630000000000000 # F43
+ 0.4210000000000002 0.0000000000000001 0.8950000000000001 # F44
+ 0.8900000000000002 -0.0000000000000005 0.7680000000000001 # F45
+ 0.0660000000000004 0.1619999999999998 0.7560000000000001 # F46
+ 0.5680000000000002 -0.0000000000000004 0.6390000000000001 # F47
+ 0.2059999999999999 -0.0000000000000002 0.3439999999999999 # F48
+ 0.4780000000000000 0.2749999999999998 0.3420000000000001 # F49
+ 0.0940000000000000 -0.0000000000000003 0.4020000000000002 # F50
+ 0.1330000000000001 0.0000000000000000 0.9760000000000000 # F51
+ 0.3119999999999998 -0.0000000000000005 0.7260000000000000 # F52
+ 0.6090000000000002 0.6540000000000001 0.1820000000000000 # F53
+ 0.7750000000000001 0.8400000000000004 0.1850000000000001 # F54
+ 0.9379999999999999 0.6660000000000001 0.1829999999999998 # F55
+ 0.6260000000000001 0.8379999999999999 0.4320000000000002 # F56
+ 0.7860000000000000 0.6680000000000004 0.4310000000000004 # F57
+ 0.9600000000000000 0.8220000000000001 0.4340000000000001 # F58
+ 0.6000000000000001 0.6609999999999996 0.6810000000000002 # F59
+ 0.7720000000000001 0.8299999999999998 0.6840000000000002 # F60
+ 0.9370000000000002 0.6670000000000000 0.6810000000000002 # F61
+ 0.6290000000000000 0.8329999999999996 0.9350000000000002 # F62
+ 0.7969999999999999 0.6760000000000000 0.9360000000000003 # F63
+ 0.9620000000000001 0.8240000000000001 0.9340000000000003 # F64
+ 0.1950000000000000 0.4999999999999996 0.5859999999999999 # F65
+ 0.9709999999999999 0.7290000000000002 0.5850000000000001 # F66
+ 0.7520000000000002 0.5000000000000001 0.8369999999999999 # F67
+ 0.9560000000000000 0.7219999999999995 0.8330000000000001 # F68
+ 0.8730000000000001 0.4999999999999997 0.5380000000000001 # F69
+ 0.5870000000000003 0.7790000000000004 0.5340000000000003 # F70
+ 0.9960000000000002 0.5000000000000001 0.7779999999999999 # F71
+ 0.7750000000000001 0.7180000000000002 0.7790000000000004 # F72
+ 0.8470000000000001 0.5000000000000000 0.0340000000000003 # F73
+ 0.6010000000000002 0.7270000000000002 0.0280000000000001 # F74
+ 0.5630000000000002 0.4999999999999999 0.0810000000000000 # F75
+ 0.7989999999999999 0.7300000000000000 0.0870000000000003 # F76
+ 0.3540000000000003 0.4999999999999998 0.2810000000000003 # F77
+ 0.5860000000000000 0.7129999999999997 0.2780000000000004 # F78
+ 0.2209999999999999 0.5000000000000000 0.0209999999999999 # F79
+ 0.8940000000000002 0.8410000000000002 0.0190000000000002 # F80
+ 0.1660000000000002 0.4999999999999999 0.1020000000000001 # F81
+ 0.5080000000000001 0.8309999999999996 0.0980000000000000 # F82
+ 0.7610000000000001 0.4999999999999999 0.1439999999999999 # F83
+ 0.4659999999999998 0.4999999999999998 0.2190000000000002 # F84
+ 0.9680000000000001 0.4999999999999998 0.2670000000000000 # F85
+ 0.7670000000000000 0.6660000000000000 0.2589999999999999 # F86
+ 0.1300000000000001 0.4999999999999998 0.3590000000000000 # F87
+ 0.7909999999999999 0.8119999999999998 0.3550000000000003 # F88
+ 0.9690000000000002 0.4999999999999997 0.4800000000000000 # F89
+ 0.6250000000000000 0.4999999999999996 0.5960000000000001 # F90
+ 0.7730000000000001 0.6689999999999997 0.5970000000000001 # F91
+ 0.4569999999999999 0.4999999999999997 0.5250000000000001 # F92
+ 0.7890000000000001 0.8499999999999999 0.5180000000000001 # F93
+ 0.3150000000000001 0.5000000000000001 0.8480000000000002 # F94
+ 0.6670000000000001 0.8289999999999996 0.8630000000000000 # F95
+ 0.9210000000000003 0.5000000000000001 0.8950000000000001 # F96
+ 0.3900000000000001 0.5000000000000002 0.7680000000000001 # F97
+ 0.5660000000000003 0.6619999999999998 0.7560000000000001 # F98
+ 0.0680000000000004 0.4999999999999996 0.6390000000000001 # F99
+ 0.7060000000000000 0.4999999999999998 0.3440000000000004 # F100
+ 0.9779999999999998 0.7749999999999999 0.3420000000000001 # F101
+ 0.5940000000000001 0.4999999999999997 0.4020000000000002 # F102
+ 0.6330000000000000 0.5000000000000000 0.9760000000000002 # F103
+ 0.8120000000000001 0.5000000000000002 0.7260000000000000 # F104
+ 0.1090000000000000 0.8460000000000001 0.1820000000000000 # F105
+ 0.2750000000000001 0.6599999999999998 0.1850000000000001 # F106
+ 0.4379999999999999 0.8340000000000001 0.1830000000000001 # F107
+ 0.1260000000000001 0.6619999999999999 0.4320000000000001 # F108
+ 0.2860000000000001 0.8319999999999996 0.4310000000000002 # F109
+ 0.4600000000000001 0.6779999999999999 0.4340000000000001 # F110
+ 0.1000000000000003 0.8390000000000000 0.6810000000000002 # F111
+ 0.2719999999999999 0.6699999999999998 0.6840000000000002 # F112
+ 0.4370000000000001 0.8329999999999997 0.6810000000000002 # F113
+ 0.1290000000000002 0.6669999999999999 0.9350000000000001 # F114
+ 0.2970000000000002 0.8240000000000001 0.9360000000000003 # F115
+ 0.4620000000000002 0.6760000000000000 0.9340000000000003 # F116
+ 0.4710000000000002 0.7710000000000004 0.5850000000000001 # F117
+ 0.4560000000000002 0.7780000000000000 0.8330000000000001 # F118
+ 0.0870000000000005 0.7210000000000002 0.5340000000000003 # F119
+ 0.2750000000000005 0.7820000000000000 0.7790000000000004 # F120
+ 0.1010000000000001 0.7730000000000004 0.0280000000000001 # F121
+ 0.2989999999999999 0.7699999999999998 0.0870000000000001 # F122
+ 0.0859999999999999 0.7869999999999998 0.2780000000000000 # F123
+ 0.3940000000000000 0.6589999999999998 0.0190000000000002 # F124
+ 0.0079999999999999 0.6689999999999999 0.0980000000000000 # F125
+ 0.2670000000000001 0.8340000000000000 0.2589999999999999 # F126
+ 0.2910000000000000 0.6879999999999996 0.3550000000000001 # F127
+ 0.2730000000000000 0.8310000000000002 0.5970000000000001 # F128
+ 0.2890000000000000 0.6500000000000000 0.5180000000000001 # F129
+ 0.1670000000000000 0.6709999999999999 0.8630000000000000 # F130
+ 0.0660000000000004 0.8379999999999997 0.7560000000000001 # F131
+ 0.4780000000000000 0.7250000000000004 0.3420000000000001 # F132
+ 0.6090000000000002 0.3460000000000001 0.1820000000000000 # F133
+ 0.7750000000000001 0.1599999999999999 0.1850000000000001 # F134
+ 0.9379999999999999 0.3340000000000002 0.1829999999999998 # F135
+ 0.6260000000000001 0.1620000000000001 0.4320000000000002 # F136
+ 0.7860000000000000 0.3319999999999997 0.4310000000000004 # F137
+ 0.9600000000000000 0.1780000000000000 0.4340000000000001 # F138
+ 0.6000000000000001 0.3390000000000000 0.6810000000000002 # F139
+ 0.7720000000000001 0.1699999999999999 0.6840000000000002 # F140
+ 0.9370000000000002 0.3329999999999997 0.6810000000000002 # F141
+ 0.6290000000000000 0.1669999999999999 0.9350000000000002 # F142
+ 0.7969999999999999 0.3240000000000001 0.9360000000000003 # F143
+ 0.9620000000000001 0.1760000000000000 0.9340000000000003 # F144
+ 0.9709999999999999 0.2709999999999997 0.5850000000000001 # F145
+ 0.9560000000000000 0.2780000000000000 0.8330000000000001 # F146
+ 0.5870000000000003 0.2209999999999996 0.5340000000000003 # F147
+ 0.7750000000000001 0.2820000000000000 0.7790000000000004 # F148
+ 0.6010000000000002 0.2729999999999997 0.0280000000000001 # F149
+ 0.7989999999999999 0.2699999999999999 0.0870000000000003 # F150
+ 0.5860000000000000 0.2869999999999999 0.2780000000000004 # F151
+ 0.8940000000000002 0.1589999999999999 0.0190000000000002 # F152
+ 0.5080000000000001 0.1690000000000001 0.0980000000000000 # F153
+ 0.7670000000000000 0.3340000000000002 0.2589999999999999 # F154
+ 0.7909999999999999 0.1879999999999997 0.3550000000000003 # F155
+ 0.7730000000000001 0.3310000000000001 0.5970000000000001 # F156
+ 0.7890000000000001 0.1500000000000000 0.5180000000000001 # F157
+ 0.6670000000000001 0.1709999999999999 0.8630000000000000 # F158
+ 0.5660000000000003 0.3379999999999998 0.7560000000000001 # F159
+ 0.9779999999999998 0.2249999999999997 0.3420000000000001 # F160
diff --git a/test/data/monoclinic/POSCAR-009 b/test/data/monoclinic/POSCAR-009
new file mode 100644
index 0000000..9b46098
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-009
@@ -0,0 +1,91 @@
+$cell vectors
+1.0
+ 16.2779923405210489 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.6320973498616942 0.0000000000000000
+ -9.3425844380395358 0.0000000000000000 9.3759078039472250
+ 12 8 40 24
+Direct
+ 0.1967999999999999 0.0370000000000002 0.2919999999999998 # Ca1
+ 0.8017000000000002 0.0499000000000000 0.2121000000000002 # Ca2
+ 0.5038999999999998 0.0282000000000005 0.0312999999999999 # Ca3
+ 0.6968000000000001 0.5370000000000003 0.2919999999999998 # Ca4
+ 0.3017000000000000 0.5498999999999999 0.2121000000000002 # Ca5
+ 0.0039000000000000 0.5281999999999996 0.0312999999999999 # Ca6
+ 0.1968000000000000 0.9630000000000000 0.7919999999999997 # Ca7
+ 0.8016999999999999 0.9501000000000002 0.7120999999999996 # Ca8
+ 0.5039000000000000 0.9717999999999996 0.5313000000000000 # Ca9
+ 0.6967999999999999 0.4629999999999999 0.7919999999999997 # Ca10
+ 0.3016999999999998 0.4501000000000001 0.7120999999999996 # Ca11
+ 0.0038999999999998 0.4717999999999996 0.5313000000000000 # Ca12
+ 0.1176000000000000 0.0512000000000001 0.0018000000000002 # Si1
+ 0.8692000000000002 0.9806999999999994 0.0018000000000002 # Si2
+ 0.6176000000000001 0.5512000000000001 0.0018000000000002 # Si3
+ 0.3692000000000001 0.4806999999999995 0.0018000000000002 # Si4
+ 0.1176000000000001 0.9488000000000001 0.5018000000000002 # Si5
+ 0.8692000000000002 0.0192999999999996 0.5018000000000002 # Si6
+ 0.6176000000000000 0.4487999999999999 0.5018000000000002 # Si7
+ 0.3692000000000002 0.5192999999999997 0.5018000000000002 # Si8
+ -0.0098000000000000 0.9093999999999999 0.3428999999999999 # O1
+ 1.0019000000000002 0.9087999999999995 0.1582000000000001 # O2
+ 0.7827000000000000 0.9781999999999992 0.0234000000000000 # O3
+ 0.2122000000000000 0.0545999999999996 -0.0133999999999997 # O4
+ 0.3367999999999998 0.7340999999999999 0.3968999999999998 # O5
+ 0.3665000000000000 0.2699000000000001 0.4404999999999998 # O6
+ 0.1522999999999999 0.2708999999999996 0.1063999999999999 # O7
+ 0.1366000000000003 -0.1917999999999997 0.0812000000000002 # O8
+ 0.5928000000000000 0.8932000000000000 0.2696000000000002 # O9
+ 0.4182999999999999 -0.0305000000000001 0.2665000000000000 # O10
+ 0.4901999999999999 0.4093999999999998 0.3428999999999999 # O11
+ 0.5019000000000002 0.4088000000000003 0.1582000000000001 # O12
+ 0.2826999999999998 0.4781999999999994 0.0234000000000000 # O13
+ 0.7122000000000003 0.5545999999999995 -0.0133999999999997 # O14
+ 0.8367999999999999 0.2340999999999999 0.3968999999999998 # O15
+ 0.8664999999999998 -0.2301000000000000 0.4404999999999998 # O16
+ 0.6523000000000001 0.7708999999999996 0.1063999999999999 # O17
+ 0.6366000000000001 0.3082000000000004 0.0812000000000002 # O18
+ 0.0928000000000002 0.3931999999999999 0.2696000000000002 # O19
+ 0.9183000000000001 0.4694999999999999 0.2665000000000000 # O20
+ -0.0098000000000001 0.0906000000000002 -0.1571000000000000 # O21
+ 1.0019000000000000 0.0911999999999997 0.6582000000000001 # O22
+ 0.7827000000000002 0.0217999999999997 0.5234000000000000 # O23
+ 0.2122000000000001 0.9453999999999996 0.4866000000000003 # O24
+ 0.3368000000000003 0.2658999999999992 -0.1030999999999997 # O25
+ 0.3664999999999999 0.7301000000000000 -0.0595000000000002 # O26
+ 0.1522999999999997 0.7290999999999996 0.6063999999999998 # O27
+ 0.1365999999999997 1.1917999999999995 0.5811999999999996 # O28
+ 0.5928000000000001 0.1068000000000001 0.7696000000000002 # O29
+ 0.4183000000000001 1.0304999999999991 0.7665000000000000 # O30
+ 0.4902000000000000 0.5905999999999993 -0.1571000000000000 # O31
+ 0.5019000000000000 0.5911999999999997 0.6582000000000001 # O32
+ 0.2827000000000000 0.5217999999999998 0.5234000000000000 # O33
+ 0.7121999999999997 0.4453999999999995 0.4866000000000003 # O34
+ 0.8368000000000004 0.7658999999999991 -0.1030999999999997 # O35
+ 0.8665000000000002 1.2301000000000000 -0.0595000000000002 # O36
+ 0.6522999999999999 0.2290999999999996 0.6063999999999998 # O37
+ 0.6365999999999999 0.6917999999999996 0.5811999999999996 # O38
+ 0.0928000000000000 0.6068000000000001 0.7696000000000002 # O39
+ 0.9182999999999999 0.5305000000000002 0.7665000000000000 # O40
+ 0.4960000000000002 0.4149999999999997 0.2430000000000002 # H1
+ 0.2280000000000001 0.2399999999999994 0.0000000000000000 # H2
+ 0.1500000000000002 0.4499999999999998 0.3750000000000002 # H3
+ 0.0299999999999999 0.3600000000000001 0.2700000000000001 # H4
+ 0.4300000000000000 0.1049999999999997 0.3119999999999999 # H5
+ 0.3460000000000000 -0.0249999999999996 0.1640000000000001 # H6
+ 0.9960000000000003 0.9149999999999997 0.2430000000000002 # H7
+ 0.7279999999999999 0.7399999999999994 0.0000000000000000 # H8
+ 0.6500000000000004 0.9500000000000000 0.3750000000000002 # H9
+ 0.5300000000000000 0.8600000000000000 0.2700000000000001 # H10
+ 0.9299999999999999 0.6049999999999998 0.3119999999999999 # H11
+ 0.8460000000000001 0.4750000000000004 0.1640000000000001 # H12
+ 0.4960000000000003 0.5849999999999995 0.7430000000000002 # H13
+ 0.2279999999999999 0.7599999999999997 0.5000000000000000 # H14
+ 0.1499999999999996 0.5500000000000003 0.8749999999999996 # H15
+ 0.0300000000000001 0.6400000000000000 0.7700000000000001 # H16
+ 0.4299999999999998 0.8949999999999994 0.8119999999999999 # H17
+ 0.3460000000000002 1.0249999999999997 0.6640000000000001 # H18
+ 0.9960000000000000 0.0850000000000004 0.7430000000000002 # H19
+ 0.7279999999999998 0.2599999999999997 0.5000000000000000 # H20
+ 0.6499999999999998 0.0500000000000002 0.8749999999999996 # H21
+ 0.5300000000000002 0.1400000000000000 0.7700000000000001 # H22
+ 0.9299999999999999 0.3950000000000004 0.8119999999999999 # H23
+ 0.8460000000000001 0.5249999999999997 0.6640000000000001 # H24
diff --git a/test/data/monoclinic/POSCAR-009-2 b/test/data/monoclinic/POSCAR-009-2
new file mode 100644
index 0000000..cf9b65b
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-009-2
@@ -0,0 +1,163 @@
+$cell vectors
+1.0
+ 10.4229950955431203 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 18.6869912069859261 0.0000000000000000
+ 1.3424000453009146 0.0000000000000000 9.1237692914539323
+ 12 36 108
+Direct
+ 0.5073000000000001 0.0878000000000001 0.0067000000000001 # Al1
+ 0.5053000000000000 0.4202000000000000 0.0056999999999997 # Al2
+ 0.4866999999999999 0.7452000000000000 0.9929999999999999 # Al3
+ 0.0072999999999998 0.5878000000000000 0.5067000000000002 # Al4
+ 0.0053000000000001 0.9202000000000000 0.5057000000000003 # Al5
+ 0.9867000000000002 0.2452000000000000 0.4929999999999999 # Al6
+ 0.5072999999999998 0.9122000000000000 0.5067000000000002 # Al7
+ 0.5053000000000003 0.5798000000000002 0.5057000000000003 # Al8
+ 0.4867000000000002 0.2547999999999999 0.4929999999999999 # Al9
+ 0.0073000000000000 0.4122000000000004 0.0067000000000001 # Al10
+ 0.0052999999999998 0.0797999999999999 0.0057000000000003 # Al11
+ 0.9867000000000001 0.7547999999999998 0.9929999999999999 # Al12
+ 0.6472999999999998 0.0276000000000002 0.7010000000000001 # P1
+ 0.6310000000000002 0.3646000000000001 0.6889000000000002 # P2
+ 0.6289000000000005 0.6969000000000000 0.6839999999999998 # P3
+ 0.8755999999999999 0.0310000000000002 0.3182000000000001 # P4
+ 0.8573000000000003 0.3634999999999999 0.3106999999999998 # P5
+ 0.8616999999999998 0.6986000000000001 0.3065000000000002 # P6
+ 0.7316999999999999 0.1486000000000001 0.4929999999999999 # P7
+ 0.7688000000000001 0.4848000000000000 0.5120999999999999 # P8
+ 0.7559999999999999 0.8183000000000001 0.5081000000000000 # P9
+ 0.1472999999999999 0.5276000000000004 0.2010000000000001 # P10
+ 0.1310000000000004 0.8645999999999998 0.1889000000000001 # P11
+ 0.1288999999999999 0.1968999999999998 0.1840000000000005 # P12
+ 0.3755999999999996 0.5310000000000001 0.8182000000000001 # P13
+ 0.3572999999999998 0.8634999999999999 0.8107000000000004 # P14
+ 0.3617000000000000 0.1986000000000001 0.8065000000000002 # P15
+ 0.2317000000000000 0.6486000000000000 0.9929999999999999 # P16
+ 0.2688000000000004 0.9847999999999998 0.0121000000000000 # P17
+ 0.2560000000000002 0.3183000000000004 0.0081000000000000 # P18
+ 0.6473000000000001 0.9723999999999998 0.2010000000000001 # P19
+ 0.6309999999999999 0.6354000000000001 0.1889000000000001 # P20
+ 0.6289000000000000 0.3030999999999999 0.1839999999999999 # P21
+ 0.8756000000000000 0.9690000000000003 0.8182000000000001 # P22
+ 0.8573000000000000 0.6365000000000000 0.8107000000000004 # P23
+ 0.8617000000000000 0.3014000000000006 0.8065000000000002 # P24
+ 0.7317000000000001 0.8513999999999998 0.9929999999999999 # P25
+ 0.7688000000000000 0.5152000000000000 0.0121000000000000 # P26
+ 0.7560000000000002 0.1817000000000000 0.0081000000000000 # P27
+ 0.1473000000000002 0.4723999999999999 0.7010000000000001 # P28
+ 0.1310000000000001 0.1354000000000004 0.6889000000000002 # P29
+ 0.1289000000000003 0.8031000000000000 0.6839999999999998 # P30
+ 0.3755999999999999 0.4689999999999998 0.3182000000000001 # P31
+ 0.3573000000000000 0.1365000000000000 0.3107000000000004 # P32
+ 0.3617000000000002 0.8014000000000001 0.3065000000000002 # P33
+ 0.2317000000000002 0.3513999999999999 0.4929999999999999 # P34
+ 0.2688000000000001 0.0152000000000000 0.5120999999999999 # P35
+ 0.2559999999999999 0.6816999999999998 0.5081000000000000 # P36
+ 0.0179000000000002 0.2129999999999998 0.2993999999999999 # O1
+ 0.0500999999999998 0.5353000000000004 0.3341999999999998 # O2
+ 0.0295000000000002 0.8908000000000001 0.3070999999999999 # O3
+ 0.2243999999999999 0.1459999999999999 0.2522000000000003 # O4
+ 0.2883999999999997 0.5224000000000004 0.2448999999999998 # O5
+ 0.2246000000000001 0.8110000000000002 0.2562000000000002 # O6
+ 0.0964000000000002 0.1632000000000000 0.0483999999999999 # O7
+ 0.1262000000000000 0.4695000000000004 0.1000000000000001 # O8
+ 0.0885000000000003 0.8295000000000000 0.0597000000000003 # O9
+ 0.1579999999999999 0.0245000000000000 0.9706000000000000 # O10
+ 0.1365000000000002 0.3430000000000003 0.9521000000000002 # O11
+ 0.1334000000000000 0.6959000000000001 0.9418000000000004 # O12
+ 0.3729000000000001 0.0255000000000001 0.0674000000000003 # O13
+ 0.3474999999999999 0.3714000000000002 0.0537000000000001 # O14
+ 0.3467000000000000 0.6824000000000000 0.0431000000000002 # O15
+ 0.3887999999999996 0.1438000000000000 0.9139000000000004 # O16
+ 0.4131000000000001 0.5003000000000002 0.9546000000000001 # O17
+ 0.3713999999999998 0.8125999999999999 0.9321000000000002 # O18
+ 0.4625000000000000 0.2123000000000002 0.6776999999999997 # O19
+ 0.4857000000000002 0.5524000000000000 0.7033999999999998 # O20
+ 0.4637000000000002 0.8636999999999999 0.6857000000000002 # O21
+ 0.2250000000000001 0.0715000000000004 0.6379000000000001 # O22
+ 0.1584000000000000 0.3985000000000001 0.6194000000000000 # O23
+ 0.2157000000000002 0.7340000000000001 0.6434000000000002 # O24
+ 0.3340000000000002 0.0589000000000000 0.3746999999999999 # O25
+ 0.2756000000000003 0.4054999999999999 0.3627000000000001 # O26
+ 0.3376000000000005 0.7270000000000000 0.3856999999999999 # O27
+ 0.5178999999999999 0.7129999999999997 0.7993999999999999 # O28
+ 0.5501000000000001 0.0352999999999999 0.8342000000000004 # O29
+ 0.5294999999999999 0.3907999999999999 0.8070999999999999 # O30
+ 0.7244000000000003 0.6460000000000001 0.7522000000000003 # O31
+ 0.7884000000000001 0.0224000000000001 0.7448999999999997 # O32
+ 0.7246000000000000 0.3110000000000003 0.7562000000000002 # O33
+ 0.5964000000000000 0.6631999999999998 0.5483999999999999 # O34
+ 0.6261999999999999 0.9695000000000003 0.6000000000000001 # O35
+ 0.5885000000000000 0.3294999999999998 0.5597000000000002 # O36
+ 0.6580000000000003 0.5244999999999999 0.4706000000000006 # O37
+ 0.6365000000000001 0.8430000000000000 0.4521000000000003 # O38
+ 0.6333999999999997 0.1958999999999999 0.4418000000000002 # O39
+ 0.8728999999999999 0.5255000000000001 0.5674000000000002 # O40
+ 0.8474999999999998 0.8714000000000000 0.5537000000000002 # O41
+ 0.8466999999999996 0.1824000000000000 0.5431000000000002 # O42
+ 0.8888000000000000 0.6437999999999998 0.4138999999999998 # O43
+ 0.9131000000000000 0.0002999999999999 0.4546000000000003 # O44
+ 0.8713999999999995 0.3126000000000000 0.4321000000000001 # O45
+ 0.9625000000000004 0.7122999999999998 0.1776999999999998 # O46
+ 0.9857000000000000 0.0524000000000001 0.2033999999999998 # O47
+ 0.9637000000000001 0.3637000000000006 0.1857000000000003 # O48
+ 0.7249999999999999 0.5715000000000000 0.1379000000000002 # O49
+ 0.6584000000000004 0.8985000000000000 0.1194000000000000 # O50
+ 0.7157000000000000 0.2339999999999999 0.1434000000000002 # O51
+ 0.8340000000000000 0.5589000000000000 0.8746999999999998 # O52
+ 0.7756000000000002 0.9055000000000001 0.8627000000000001 # O53
+ 0.8375999999999997 0.2270000000000001 0.8856999999999998 # O54
+ 0.0178999999999999 0.7870000000000000 0.7993999999999999 # O55
+ 0.0501000000000000 0.4647000000000004 0.8342000000000004 # O56
+ 0.0294999999999999 0.1092000000000003 0.8070999999999999 # O57
+ 0.2244000000000002 0.8540000000000000 0.7522000000000003 # O58
+ 0.2883999999999999 0.4776000000000001 0.7448999999999997 # O59
+ 0.2246000000000000 0.1890000000000003 0.7562000000000002 # O60
+ 0.0964000000000000 0.8368000000000000 0.5483999999999999 # O61
+ 0.1262000000000003 0.5305000000000001 0.6000000000000001 # O62
+ 0.0885000000000001 0.1705000000000001 0.5597000000000002 # O63
+ 0.1580000000000001 0.9754999999999999 0.4706000000000006 # O64
+ 0.1365000000000000 0.6569999999999998 0.4521000000000003 # O65
+ 0.1333999999999998 0.3041000000000001 0.4418000000000002 # O66
+ 0.3728999999999999 0.9745000000000003 0.5674000000000002 # O67
+ 0.3475000000000001 0.6285999999999999 0.5537000000000002 # O68
+ 0.3466999999999998 0.3176000000000000 0.5431000000000002 # O69
+ 0.3887999999999998 0.8562000000000000 0.4139000000000004 # O70
+ 0.4130999999999999 0.4996999999999999 0.4546000000000003 # O71
+ 0.3714000000000001 0.1873999999999999 0.4321000000000001 # O72
+ 0.4625000000000003 0.7877000000000000 0.1776999999999998 # O73
+ 0.4857000000000005 0.4475999999999998 0.2033999999999998 # O74
+ 0.4636999999999999 0.1362999999999999 0.1857000000000003 # O75
+ 0.2250000000000004 0.9285000000000001 0.1379000000000002 # O76
+ 0.1583999999999997 0.6015000000000004 0.1194000000000000 # O77
+ 0.2156999999999999 0.2660000000000004 0.1434000000000002 # O78
+ 0.3339999999999999 0.9410999999999998 0.8746999999999998 # O79
+ 0.2756000000000001 0.5945000000000001 0.8627000000000001 # O80
+ 0.3376000000000002 0.2730000000000004 0.8856999999999998 # O81
+ 0.5178999999999998 0.2869999999999998 0.2993999999999999 # O82
+ 0.5501000000000004 0.9647000000000001 0.3341999999999998 # O83
+ 0.5295000000000002 0.6092000000000000 0.3070999999999999 # O84
+ 0.7243999999999999 0.3539999999999998 0.2522000000000003 # O85
+ 0.7884000000000002 0.9775999999999999 0.2448999999999998 # O86
+ 0.7246000000000002 0.6889999999999998 0.2562000000000002 # O87
+ 0.5964000000000003 0.3368000000000000 0.0483999999999999 # O88
+ 0.6262000000000001 0.0305000000000001 0.1000000000000001 # O89
+ 0.5884999999999999 0.6705000000000000 0.0597000000000003 # O90
+ 0.6580000000000000 0.4755000000000000 0.9706000000000000 # O91
+ 0.6364999999999998 0.1569999999999999 0.9521000000000002 # O92
+ 0.6334000000000002 0.8041000000000000 0.9418000000000004 # O93
+ 0.8729000000000001 0.4745000000000004 0.0674000000000003 # O94
+ 0.8475000000000000 0.1286000000000000 0.0537000000000001 # O95
+ 0.8467000000000006 0.8175999999999999 0.0431000000000002 # O96
+ 0.8888000000000004 0.3562000000000005 0.9139000000000004 # O97
+ 0.9131000000000001 0.9997000000000001 0.9546000000000001 # O98
+ 0.8713999999999998 0.6874000000000001 0.9321000000000002 # O99
+ 0.9625000000000000 0.2877000000000003 0.6776999999999997 # O100
+ 0.9857000000000001 0.9476000000000004 0.7033999999999998 # O101
+ 0.9636999999999996 0.6362999999999999 0.6857000000000002 # O102
+ 0.7250000000000002 0.4285000000000001 0.6379000000000001 # O103
+ 0.6584000000000001 0.1015000000000001 0.6194000000000000 # O104
+ 0.7157000000000002 0.7660000000000001 0.6434000000000002 # O105
+ 0.8340000000000002 0.4411000000000000 0.3746999999999999 # O106
+ 0.7755999999999998 0.0945000000000001 0.3627000000000001 # O107
+ 0.8376000000000001 0.7730000000000000 0.3856999999999999 # O108
diff --git a/test/data/monoclinic/POSCAR-010 b/test/data/monoclinic/POSCAR-010
new file mode 100644
index 0000000..5942236
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-010
@@ -0,0 +1,34 @@
+$cell vectors
+1.0
+ 12.3929941685758322 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.7769982227637287 0.0000000000000000
+ -5.9123807570976545 0.0000000000000000 14.2035825069011992
+ 9 15 3
+Direct
+ 0.1746000000000000 0.5000000000000007 0.6143000000000001 # In1
+ 0.4999999999999998 0.5000000000000007 0.5000000000000001 # In2
+ 0.4770999999999999 0.0000000000000000 0.2861000000000001 # In3
+ 0.7706000000000000 0.5000000000000007 0.2691000000000000 # In4
+ 0.8827000000000002 0.0000000000000000 0.0710999999999999 # In5
+ 0.8254000000000000 0.5000000000000007 0.3857000000000000 # In6
+ 0.5228999999999997 0.0000000000000000 0.7139000000000002 # In7
+ 0.2293999999999999 0.5000000000000007 0.7308999999999999 # In8
+ 0.1172999999999998 0.0000000000000000 0.9289000000000002 # In9
+ 0.2679000000000002 0.0000000000000000 0.1017999999999999 # S1
+ 0.5560999999999998 0.5000000000000007 0.2140000000000001 # S2
+ 0.0651999999999999 0.0000000000000000 0.2147000000000000 # S3
+ 0.6120999999999995 0.0000000000000000 0.4547999999999999 # S4
+ 0.7705999999999998 0.5000000000000007 0.1081999999999998 # S5
+ 0.8655000000000002 0.0000000000000000 0.3647999999999998 # S6
+ 0.3529999999999999 0.5000000000000007 0.3203999999999999 # S7
+ 0.0000000000000000 0.5000000000000007 0.0000000000000000 # S8
+ 0.7320999999999998 0.0000000000000000 0.8982000000000001 # S9
+ 0.4438999999999997 0.5000000000000007 0.7860000000000001 # S10
+ 0.9347999999999996 0.0000000000000000 0.7853000000000000 # S11
+ 0.3878999999999999 0.0000000000000000 0.5452000000000000 # S12
+ 0.2294000000000002 0.5000000000000007 0.8918000000000001 # S13
+ 0.1344999999999998 0.0000000000000000 0.6351999999999998 # S14
+ 0.6470000000000000 0.5000000000000007 0.6796000000000001 # S15
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Rb1
+ 0.1338000000000001 0.5000000000000007 0.4274000000000002 # Rb2
+ 0.8661999999999999 0.5000000000000007 0.5725999999999999 # Rb3
diff --git a/test/data/monoclinic/POSCAR-010-2 b/test/data/monoclinic/POSCAR-010-2
new file mode 100644
index 0000000..5942236
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-010-2
@@ -0,0 +1,34 @@
+$cell vectors
+1.0
+ 12.3929941685758322 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.7769982227637287 0.0000000000000000
+ -5.9123807570976545 0.0000000000000000 14.2035825069011992
+ 9 15 3
+Direct
+ 0.1746000000000000 0.5000000000000007 0.6143000000000001 # In1
+ 0.4999999999999998 0.5000000000000007 0.5000000000000001 # In2
+ 0.4770999999999999 0.0000000000000000 0.2861000000000001 # In3
+ 0.7706000000000000 0.5000000000000007 0.2691000000000000 # In4
+ 0.8827000000000002 0.0000000000000000 0.0710999999999999 # In5
+ 0.8254000000000000 0.5000000000000007 0.3857000000000000 # In6
+ 0.5228999999999997 0.0000000000000000 0.7139000000000002 # In7
+ 0.2293999999999999 0.5000000000000007 0.7308999999999999 # In8
+ 0.1172999999999998 0.0000000000000000 0.9289000000000002 # In9
+ 0.2679000000000002 0.0000000000000000 0.1017999999999999 # S1
+ 0.5560999999999998 0.5000000000000007 0.2140000000000001 # S2
+ 0.0651999999999999 0.0000000000000000 0.2147000000000000 # S3
+ 0.6120999999999995 0.0000000000000000 0.4547999999999999 # S4
+ 0.7705999999999998 0.5000000000000007 0.1081999999999998 # S5
+ 0.8655000000000002 0.0000000000000000 0.3647999999999998 # S6
+ 0.3529999999999999 0.5000000000000007 0.3203999999999999 # S7
+ 0.0000000000000000 0.5000000000000007 0.0000000000000000 # S8
+ 0.7320999999999998 0.0000000000000000 0.8982000000000001 # S9
+ 0.4438999999999997 0.5000000000000007 0.7860000000000001 # S10
+ 0.9347999999999996 0.0000000000000000 0.7853000000000000 # S11
+ 0.3878999999999999 0.0000000000000000 0.5452000000000000 # S12
+ 0.2294000000000002 0.5000000000000007 0.8918000000000001 # S13
+ 0.1344999999999998 0.0000000000000000 0.6351999999999998 # S14
+ 0.6470000000000000 0.5000000000000007 0.6796000000000001 # S15
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Rb1
+ 0.1338000000000001 0.5000000000000007 0.4274000000000002 # Rb2
+ 0.8661999999999999 0.5000000000000007 0.5725999999999999 # Rb3
diff --git a/test/data/monoclinic/POSCAR-011 b/test/data/monoclinic/POSCAR-011
new file mode 100644
index 0000000..3d6fb58
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-011
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 11.4066946326711829 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.1669980392524382 0.0000000000000000
+ -4.7272549381584179 0.0000000000000000 10.0459281056782022
+ 2 2 6 6 6
+Direct
+ 0.1451000000000000 0.2499999999999997 0.7220999999999999 # Hg1
+ 0.8548999999999999 0.7500000000000002 0.2779000000000001 # Hg2
+ 0.4044000000000000 0.2499999999999997 0.2791999999999998 # Rb1
+ 0.5955999999999999 0.7500000000000002 0.7208000000000001 # Rb2
+ 0.1203999999999999 0.2499999999999997 0.5792000000000000 # S1
+ 0.6774999999999995 0.2499999999999997 0.1988999999999998 # S2
+ 0.0670999999999995 0.2500000000000009 0.8915999999999996 # S3
+ 0.8795999999999995 0.7500000000000002 0.4207999999999998 # S4
+ 0.3224999999999997 0.7500000000000002 0.8010999999999998 # S5
+ 0.9328999999999997 0.7500000000000002 0.1084000000000001 # S6
+ 0.2748999999999998 0.2499999999999997 0.5271999999999998 # C1
+ 0.6381999999999997 0.2499999999999997 0.0321999999999998 # C2
+ 0.9101999999999998 0.2499999999999997 0.7984999999999998 # C3
+ 0.7251000000000002 0.7500000000000002 0.4728000000000001 # C4
+ 0.3617999999999997 0.7500000000000002 0.9678000000000001 # C5
+ 0.0898000000000002 0.7500000000000002 0.2015000000000002 # C6
+ 0.3866999999999996 0.2499999999999997 0.5515999999999999 # N1
+ 0.6131999999999996 0.2500000000000009 0.9256999999999997 # N2
+ 0.8003999999999998 0.2499999999999997 0.7450000000000000 # N3
+ 0.6132999999999997 0.7500000000000002 0.4484000000000001 # N4
+ 0.3867999999999999 0.7500000000000002 0.0743000000000002 # N5
+ 0.1995999999999996 0.7500000000000002 0.2549999999999999 # N6
diff --git a/test/data/monoclinic/POSCAR-011-2 b/test/data/monoclinic/POSCAR-011-2
new file mode 100644
index 0000000..13ede91
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-011-2
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 7.0129967000905600 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.5389955115020459 0.0000000000000000
+ -0.2256254105124980 0.0000000000000000 4.8747790475873298
+ 2 4 2 18
+Direct
+ 0.1885999999999999 0.2500000000000002 0.3101000000000001 # Te1
+ 0.8113999999999993 0.7500000000000004 0.6898999999999998 # Te2
+ 0.0544000000000000 0.5751999999999999 0.2551999999999995 # Al1
+ 0.9455999999999999 0.4248000000000001 0.7447999999999995 # Al2
+ 0.9455999999999999 0.0752000000000002 0.7447999999999995 # Al3
+ 0.0544000000000000 0.9248000000000000 0.2551999999999995 # Al4
+ 0.6069000000000000 0.2500000000000002 0.9622999999999996 # S1
+ 0.3931000000000000 0.7500000000000004 0.0377000000000004 # S2
+ 0.9939999999999997 0.2500000000000002 0.5800999999999997 # O1
+ 0.0685999999999997 0.3920000000000003 0.0887000000000004 # O2
+ 0.1681999999999999 0.4846000000000001 0.5657000000000001 # O3
+ 0.4057999999999997 0.2500000000000002 0.8663000000000004 # O4
+ 0.6249999999999999 0.2500000000000002 0.2618999999999996 # O5
+ 0.7030999999999996 0.3760000000000002 0.8528000000000006 # O6
+ 0.0060000000000003 0.7499999999999999 0.4199000000000003 # O7
+ 0.9313999999999995 0.6080000000000003 0.9112999999999994 # O8
+ 0.8318000000000001 0.5153999999999999 0.4342999999999999 # O9
+ 0.5941999999999996 0.7500000000000004 0.1336999999999996 # O10
+ 0.3750000000000001 0.7500000000000004 0.7380999999999992 # O11
+ 0.2969000000000003 0.6239999999999998 0.1471999999999996 # O12
+ 0.9313999999999995 0.8919999999999999 0.9112999999999994 # O13
+ 0.8318000000000001 0.9845999999999998 0.4342999999999999 # O14
+ 0.2969000000000003 0.8759999999999999 0.1471999999999996 # O15
+ 0.0685999999999997 0.1080000000000000 0.0887000000000004 # O16
+ 0.1681999999999999 0.0154000000000002 0.5657000000000001 # O17
+ 0.7030999999999996 0.1240000000000000 0.8528000000000006 # O18
diff --git a/test/data/monoclinic/POSCAR-012 b/test/data/monoclinic/POSCAR-012
new file mode 100644
index 0000000..a2b04d3
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-012
@@ -0,0 +1,32 @@
+Li4Mn2O6 (C2/m)
+ 1.00000000000000
+ 2.5087734371281813 -4.3370210904945425 -0.0001864449730122
+ 2.5087734371281813 4.3370210904945425 -0.0001864449730122
+ -1.7018015993144393 0.0000000000000000 4.8033156256069098
+ 4 2 6
+Direct
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3387119401258474 0.6612880598741455 0.5000000000000000
+ 0.6612880598741526 0.3387119401258545 0.5000000000000000
+ 0.8329283854622389 0.1670716145377540 0.0000000000000000
+ 0.1670716145377540 0.8329283854622389 0.0000000000000000
+ 0.2192352407565039 0.2192352407565039 0.2279647293171934
+ 0.7807647592434890 0.7807647592434890 0.7720352706827924
+ 0.9330229577916995 0.5756434868853120 0.2241889911961508
+ 0.4243565131146880 0.0669770422083076 0.7758110088038492
+ 0.5756434868853120 0.9330229577916995 0.2241889911961508
+ 0.0669770422083076 0.4243565131146880 0.7758110088038492
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/monoclinic/POSCAR-012-2 b/test/data/monoclinic/POSCAR-012-2
new file mode 100644
index 0000000..8b190b0
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-012-2
@@ -0,0 +1,56 @@
+Li8Mn4O12 (C2/m)
+ 1.00000000000000
+ 5.0173486696776521 0.0000000000000000 -0.0000856455606025
+ 0.0000000000000000 8.6736545281190569 0.0000000000000000
+ -1.7014607643680149 0.0000000000000000 4.8030263272331233
+ 8 4 12
+Direct
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.3387210338918649 0.5000000000000000
+ 0.5000000000000000 0.8387210338918720 0.5000000000000000
+ 0.0000000000000000 0.6612789661081280 0.5000000000000000
+ 0.5000000000000000 0.1612789661081351 0.5000000000000000
+ 0.0000000000000000 0.1670668653205922 0.0000000000000000
+ 0.5000000000000000 0.6670668653205993 0.0000000000000000
+ 0.0000000000000000 0.8329331346794007 0.0000000000000000
+ 0.5000000000000000 0.3329331346794078 0.0000000000000000
+ 0.2192816854432920 0.0000000000000000 0.2280398629977327
+ 0.7192816854432920 0.5000000000000000 0.2280398629977327
+ 0.7807183145567080 0.0000000000000000 0.7719601370022673
+ 0.2807183145567080 0.5000000000000000 0.7719601370022673
+ 0.2542765099624731 0.3213554511815957 0.2241529848260981
+ 0.7542765099624731 0.8213554511815957 0.2241529848260981
+ 0.7457234900375269 0.3213554511815957 0.7758470151739019
+ 0.2457234900375269 0.8213554511815957 0.7758470151739019
+ 0.7457234900375269 0.6786445488184043 0.7758470151739019
+ 0.2457234900375269 0.1786445488184114 0.7758470151739019
+ 0.2542765099624731 0.6786445488184043 0.2241529848260981
+ 0.7542765099624731 0.1786445488184114 0.2241529848260981
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/monoclinic/POSCAR-012-3 b/test/data/monoclinic/POSCAR-012-3
new file mode 100644
index 0000000..91bbaa4
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-012-3
@@ -0,0 +1,59 @@
+$cell vectors
+1.0
+ 13.2899937464998619 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4229960366266621 0.0000000000000000
+ -2.0520515828621373 0.0000000000000000 10.2230773734968192
+ 16 2 34
+Direct
+ 0.0587999999999998 0.2445000000000002 0.7042999999999998 # U1
+ 0.2046999999999998 0.0000000000000000 0.4551999999999999 # U2
+ 0.6820000000000003 0.0000000000000000 0.0219000000000001 # U3
+ 0.5588000000000001 0.7444999999999999 0.7042999999999998 # U4
+ 0.7047000000000001 0.5000000000000003 0.4551999999999999 # U5
+ 0.1819999999999999 0.5000000000000003 0.0219000000000001 # U6
+ 0.9411999999999997 0.7555000000000003 0.2956999999999997 # U7
+ 0.7952999999999999 0.0000000000000000 0.5448000000000001 # U8
+ 0.3179999999999998 0.0000000000000000 0.9780999999999999 # U9
+ 0.4412000000000000 0.2555000000000001 0.2956999999999997 # U10
+ 0.2953000000000000 0.5000000000000003 0.5448000000000001 # U11
+ 0.8180000000000003 0.5000000000000003 0.9780999999999999 # U12
+ 0.9411999999999997 0.2445000000000002 0.2956999999999997 # U13
+ 0.4412000000000000 0.7444999999999999 0.2956999999999997 # U14
+ 0.0587999999999998 0.7555000000000003 0.7042999999999998 # U15
+ 0.5588000000000001 0.2555000000000001 0.7042999999999998 # U16
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cr1
+ 0.5000000000000002 0.5000000000000003 0.0000000000000000 # Cr2
+ 0.1273000000000002 0.3050999999999998 0.4669999999999998 # S1
+ 0.1326999999999998 0.1888999999999999 0.9735000000000001 # S2
+ 0.2106000000000001 0.0000000000000000 0.7218999999999997 # S3
+ 0.0569000000000000 0.0000000000000000 0.2258999999999999 # S4
+ 0.3020999999999999 0.0000000000000000 0.2432999999999998 # S5
+ 0.5201999999999999 0.0000000000000000 0.1666999999999997 # S6
+ 0.0000000000000002 0.0000000000000000 0.5000000000000000 # S7
+ 0.6273000000000000 0.8051000000000001 0.4669999999999998 # S8
+ 0.6327000000000000 0.6889000000000002 0.9735000000000001 # S9
+ 0.7106000000000000 0.5000000000000003 0.7218999999999997 # S10
+ 0.5568999999999997 0.5000000000000003 0.2258999999999999 # S11
+ 0.8020999999999998 0.5000000000000003 0.2432999999999998 # S12
+ 0.0202000000000000 0.5000000000000003 0.1666999999999997 # S13
+ 0.5000000000000000 0.5000000000000003 0.5000000000000000 # S14
+ 0.8727000000000000 0.6949000000000001 0.5329999999999997 # S15
+ 0.8672999999999998 0.8111000000000000 0.0265000000000000 # S16
+ 0.7894000000000000 0.0000000000000000 0.2780999999999998 # S17
+ 0.9431000000000000 0.0000000000000000 0.7740999999999997 # S18
+ 0.6979000000000002 0.0000000000000000 0.7566999999999997 # S19
+ 0.4798000000000001 0.0000000000000000 0.8332999999999997 # S20
+ 0.3727000000000000 0.1948999999999998 0.5329999999999997 # S21
+ 0.3673000000000000 0.3110999999999997 0.0265000000000000 # S22
+ 0.2894000000000000 0.5000000000000003 0.2780999999999998 # S23
+ 0.4430999999999998 0.5000000000000003 0.7740999999999997 # S24
+ 0.1978999999999999 0.5000000000000003 0.7567000000000002 # S25
+ 0.9798000000000000 0.5000000000000003 0.8332999999999997 # S26
+ 0.8727000000000000 0.3050999999999998 0.5329999999999997 # S27
+ 0.8672999999999998 0.1888999999999999 0.0265000000000000 # S28
+ 0.3727000000000000 0.8051000000000001 0.5329999999999997 # S29
+ 0.3673000000000000 0.6889000000000002 0.0265000000000000 # S30
+ 0.1272999999999998 0.6949000000000001 0.4669999999999998 # S31
+ 0.1327000000000002 0.8111000000000000 0.9735000000000001 # S32
+ 0.6273000000000000 0.1948999999999998 0.4669999999999998 # S33
+ 0.6327000000000000 0.3111000000000003 0.9735000000000001 # S34
diff --git a/test/data/monoclinic/POSCAR-013 b/test/data/monoclinic/POSCAR-013
new file mode 100644
index 0000000..3c3f59b
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-013
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 4.8589977136375353 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.7559968210197967 0.0000000000000000
+ -0.5498746159809801 0.0000000000000000 5.8170658220020517
+ 2 2 8 2
+Direct
+ -0.0000000000000003 0.2030999999999998 0.2499999999999998 # Pb1
+ 0.0000000000000003 0.7969000000000004 0.7500000000000004 # Pb2
+ 0.5000000000000002 0.7962999999999997 0.2499999999999998 # As1
+ 0.4999999999999997 0.2037000000000002 0.7500000000000004 # As2
+ 0.3608999999999996 0.6473000000000000 0.4435000000000006 # O1
+ 0.2479000000000000 0.9321999999999997 0.1098000000000000 # O2
+ 0.6390999999999994 0.3527000000000000 0.5565000000000002 # O3
+ 0.7520999999999999 0.0678000000000001 0.8902000000000000 # O4
+ 0.6390999999999999 0.6473000000000000 0.0564999999999999 # O5
+ 0.7520999999999994 0.9321999999999997 0.3902000000000004 # O6
+ 0.3609000000000001 0.3527000000000000 0.9435000000000002 # O7
+ 0.2478999999999995 0.0678000000000001 0.6098000000000005 # O8
+ 0.5000000000000000 0.4999999999999996 0.5000000000000004 # H1
+ 0.4999999999999994 0.4999999999999996 0.0000000000000000 # H2
diff --git a/test/data/monoclinic/POSCAR-013-2 b/test/data/monoclinic/POSCAR-013-2
new file mode 100644
index 0000000..168403b
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-013-2
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 11.5259945765355472 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.6279964107073726 0.0000000000000000
+ -4.3627821523573518 0.0000000000000000 11.2946738742120942
+ 12 4 16 12 12
+Direct
+ 0.2500000000000001 0.1285999999999999 0.0000000000000000 # K1
+ 0.2500000000000001 0.5903999999999999 0.5000000000000000 # K2
+ 0.1697000000000002 0.6475000000000000 0.1259000000000003 # K3
+ 0.3822000000000000 0.1409999999999997 0.3243999999999999 # K4
+ 0.7499999999999999 0.8714000000000001 0.0000000000000000 # K5
+ 0.7499999999999999 0.4096000000000000 0.5000000000000000 # K6
+ 0.8302999999999996 0.3524999999999999 0.8740999999999995 # K7
+ 0.6178000000000000 0.8589999999999994 0.6756000000000002 # K8
+ 0.3303000000000000 0.6475000000000000 0.8740999999999995 # K9
+ 0.1178000000000002 0.1410000000000004 0.6756000000000002 # K10
+ 0.6697000000000001 0.3524999999999999 0.1259000000000003 # K11
+ 0.8821999999999999 0.8589999999999994 0.3243999999999999 # K12
+ 0.0294000000000002 0.2349000000000000 0.2199000000000000 # Cr1
+ 0.9706000000000004 0.7650999999999998 0.7801000000000001 # Cr2
+ 0.4706000000000000 0.2349000000000000 0.7801000000000001 # Cr3
+ 0.5294000000000001 0.7650999999999998 0.2199000000000000 # Cr4
+ -0.1294999999999999 0.1253000000000001 0.1609000000000000 # O1
+ -0.0681000000000003 0.1319999999999997 0.0763999999999999 # O2
+ 0.1825999999999999 0.3549999999999999 0.2890999999999999 # O3
+ 0.1608000000000001 0.2947999999999998 0.1695000000000000 # O4
+ 1.1294999999999999 0.8746999999999999 0.8391000000000000 # O5
+ 1.0681000000000003 0.8680000000000001 0.9236000000000002 # O6
+ 0.8174000000000000 0.6450000000000000 0.7109000000000000 # O7
+ 0.8391999999999999 0.7052000000000003 0.8305000000000001 # O8
+ 0.6295000000000001 0.1253000000000001 0.8391000000000000 # O9
+ 0.5681000000000000 0.1320000000000004 0.9236000000000002 # O10
+ 0.3173999999999998 0.3549999999999999 0.7109000000000000 # O11
+ 0.3392000000000002 0.2947999999999998 0.8305000000000001 # O12
+ 0.3704999999999999 0.8746999999999999 0.1609000000000000 # O13
+ 0.4319000000000000 0.8679999999999994 0.0763999999999999 # O14
+ 0.6826000000000001 0.6450000000000000 0.2890999999999999 # O15
+ 0.6608000000000004 0.7051999999999995 0.1695000000000000 # O16
+ -0.0267000000000000 0.2840000000000001 0.4577000000000001 # N1
+ 0.1632000000000000 -0.1370999999999998 0.3230999999999999 # N2
+ -0.0994999999999998 0.6097999999999997 0.1253000000000001 # N3
+ 1.0266999999999999 0.7159999999999997 0.5422999999999998 # N4
+ 0.8368000000000000 1.1371000000000000 0.6769000000000001 # N5
+ 1.0995000000000001 0.3902000000000002 0.8746999999999999 # N6
+ 0.5266999999999997 0.2840000000000001 0.5422999999999998 # N7
+ 0.3367999999999998 -0.1370999999999998 0.6769000000000001 # N8
+ 0.5994999999999999 0.6097999999999997 0.8746999999999999 # N9
+ 0.4733000000000002 0.7159999999999997 0.4577000000000001 # N10
+ 0.6632000000000002 1.1371000000000000 0.3230999999999999 # N11
+ 0.4005000000000000 0.3902000000000002 0.1253000000000001 # N12
+ -0.0052999999999997 0.2704000000000000 0.3753000000000001 # C1
+ 0.1156000000000002 -0.0062000000000003 0.2860000000000000 # C2
+ -0.0541000000000001 0.4773000000000001 0.1616000000000002 # C3
+ 1.0053000000000001 0.7295999999999998 0.6246999999999999 # C4
+ 0.8843999999999997 1.0062000000000002 0.7139999999999999 # C5
+ 1.0541000000000003 0.5226999999999998 0.8384000000000004 # C6
+ 0.5053000000000000 0.2704000000000000 0.6246999999999999 # C7
+ 0.3844000000000000 -0.0061999999999996 0.7139999999999999 # C8
+ 0.5541000000000000 0.4773000000000001 0.8384000000000004 # C9
+ 0.4947000000000000 0.7295999999999998 0.3753000000000001 # C10
+ 0.6156000000000003 1.0061999999999995 0.2860000000000000 # C11
+ 0.4459000000000001 0.5226999999999998 0.1616000000000002 # C12
diff --git a/test/data/monoclinic/POSCAR-013-3 b/test/data/monoclinic/POSCAR-013-3
new file mode 100644
index 0000000..0d3431d
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-013-3
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 9.7019954348037398 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.5669969099521888 0.0000000000000000
+ -0.5056791540554380 0.0000000000000000 7.9930162784914316
+ 2 6 12
+Direct
+ 0.2500000000000001 0.1470000000000004 0.2499999999999999 # Am1
+ 0.7500000000000000 0.8530000000000004 0.7500000000000002 # Am2
+ 0.7500000000000000 0.3788999999999997 0.2499999999999999 # Cl1
+ 0.0566999999999998 0.8315000000000000 0.2589000000000003 # Cl2
+ 0.2500000000000001 0.6211000000000003 0.7500000000000002 # Cl3
+ 0.9432999999999996 0.1685000000000002 0.7410999999999998 # Cl4
+ 0.4433000000000002 0.8315000000000000 0.2411000000000001 # Cl5
+ 0.5566999999999999 0.1685000000000002 0.7589000000000000 # Cl6
+ 0.2815999999999996 0.0444999999999999 0.5468000000000004 # O1
+ 0.1461999999999999 0.4265000000000002 0.0853999999999997 # O2
+ 0.4421000000000000 0.3002000000000003 0.1044000000000003 # O3
+ 0.7183999999999993 0.9555000000000002 0.4532000000000004 # O4
+ 0.8537999999999997 0.5734999999999998 0.9146000000000003 # O5
+ 0.5579000000000001 0.6997999999999999 0.8956000000000004 # O6
+ 0.2183999999999999 0.0444999999999999 0.9532000000000002 # O7
+ 0.3538000000000001 0.4265000000000002 0.4146000000000000 # O8
+ 0.0579000000000001 0.3002000000000003 0.3956000000000001 # O9
+ 0.7816000000000002 0.9555000000000002 0.0468000000000000 # O10
+ 0.6462000000000000 0.5734999999999998 0.5854000000000001 # O11
+ 0.9420999999999994 0.6997999999999999 0.6044000000000000 # O12
diff --git a/test/data/monoclinic/POSCAR-014 b/test/data/monoclinic/POSCAR-014
new file mode 100644
index 0000000..a29d594
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-014
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 5.0699976143532197 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.8299934924073078 0.0000000000000000
+ -2.8578078360973653 0.0000000000000000 5.7823347551418776
+ 2 4 20
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ge1
+ 0.0000000000000001 0.4999999999999997 0.5000000000000000 # Ge2
+ 0.3141999999999998 0.1356999999999999 0.6651999999999997 # Br1
+ 0.6858000000000003 0.8643000000000000 0.3348000000000002 # Br2
+ 0.6858000000000004 0.6356999999999995 0.8348000000000003 # Br3
+ 0.3141999999999998 0.3642999999999998 0.1651999999999998 # Br4
+ 0.0122999999999998 0.0350000000000001 -0.2670999999999996 # F1
+ -0.2713000000000004 0.0952999999999999 -0.0510000000000000 # F2
+ 0.2692000000000004 0.0838999999999999 0.1547000000000002 # F3
+ 0.5301000000000001 0.2143000000000001 0.5952999999999997 # F4
+ 0.0077000000000004 0.1782000000000000 0.4434000000000000 # F5
+ -0.0122999999999993 -0.0350000000000001 0.2671000000000004 # F6
+ 0.2713000000000004 -0.0952999999999999 0.0510000000000000 # F7
+ -0.2692000000000004 -0.0838999999999999 -0.1547000000000002 # F8
+ 0.4699000000000000 0.7856999999999997 0.4047000000000002 # F9
+ 0.9923000000000006 0.8217999999999999 0.5565999999999999 # F10
+ -0.0122999999999997 0.5350000000000003 0.7670999999999996 # F11
+ 0.2713000000000004 0.5953000000000001 0.5509999999999999 # F12
+ -0.2692000000000004 0.5839000000000001 0.3452999999999998 # F13
+ 0.4698999999999994 0.7142999999999998 0.9046999999999992 # F14
+ 0.9923000000000008 0.6781999999999998 1.0566000000000000 # F15
+ 0.0123000000000004 0.4650000000000001 0.2328999999999996 # F16
+ -0.2712999999999993 0.4046999999999999 0.4490000000000000 # F17
+ 0.2692000000000004 0.4160999999999998 0.6547000000000002 # F18
+ 0.5301000000000001 0.2857000000000001 0.0952999999999998 # F19
+ 0.0077000000000003 0.3218000000000001 -0.0565999999999999 # F20
diff --git a/test/data/monoclinic/POSCAR-014-2 b/test/data/monoclinic/POSCAR-014-2
new file mode 100644
index 0000000..71c13b4
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-014-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 11.1929947332259569 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.9939952974055384 0.0000000000000000
+ -0.3494222389301833 0.0000000000000000 7.1444569386362717
+ 16 16
+Direct
+ 0.5000000000000001 0.1499999999999998 0.1950000000000002 # As1
+ 0.3200000000000000 0.3509999999999998 0.5040000000000004 # As2
+ 0.2599999999999998 0.3770000000000003 0.0400000000000002 # As3
+ 0.4170000000000000 0.4889999999999999 0.2579999999999998 # As4
+ 0.4999999999999997 0.8500000000000003 0.8049999999999999 # As5
+ 0.6799999999999996 0.6490000000000002 0.4960000000000004 # As6
+ 0.7399999999999997 0.6230000000000003 0.9600000000000005 # As7
+ 0.5830000000000000 0.5110000000000002 0.7420000000000002 # As8
+ 0.0000000000000000 0.6499999999999999 0.3050000000000002 # As9
+ 0.1799999999999998 0.8509999999999999 -0.0040000000000000 # As10
+ 0.2399999999999999 0.8770000000000003 0.4600000000000002 # As11
+ 0.0830000000000002 0.9890000000000000 0.2419999999999998 # As12
+ 0.9999999999999999 0.3500000000000003 0.6950000000000006 # As13
+ 0.8199999999999996 0.1490000000000002 1.0040000000000000 # As14
+ 0.7599999999999997 0.1229999999999998 0.5400000000000005 # As15
+ 0.9169999999999999 0.0110000000000002 0.7580000000000002 # As16
+ 0.4149999999999997 0.1570000000000001 0.4750000000000005 # S1
+ 0.1589999999999998 0.3350000000000001 0.3020000000000001 # S2
+ 0.3489999999999999 0.1819999999999999 -0.0160000000000001 # S3
+ 0.5720000000000002 0.3609999999999999 0.2030000000000002 # S4
+ 0.5849999999999999 0.8430000000000001 0.5250000000000002 # S5
+ 0.8409999999999997 0.6650000000000000 0.6980000000000000 # S6
+ 0.6509999999999997 0.8180000000000002 1.0160000000000000 # S7
+ 0.4279999999999999 0.6390000000000001 0.7970000000000000 # S8
+ 0.0850000000000000 0.6570000000000001 0.0249999999999999 # S9
+ 0.3410000000000000 0.8350000000000001 0.1980000000000004 # S10
+ 0.1509999999999999 0.6819999999999999 0.5160000000000005 # S11
+ -0.0719999999999999 0.8610000000000002 0.2970000000000002 # S12
+ 0.9149999999999999 0.3430000000000000 0.9750000000000001 # S13
+ 0.6590000000000000 0.1650000000000000 0.8020000000000004 # S14
+ 0.8489999999999996 0.3180000000000002 0.4840000000000003 # S15
+ 1.0719999999999998 0.1390000000000001 0.7030000000000006 # S16
diff --git a/test/data/monoclinic/POSCAR-015 b/test/data/monoclinic/POSCAR-015
new file mode 100644
index 0000000..cac6645
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-015
@@ -0,0 +1,56 @@
+Li4Fe4B4O12
+ 1.00000000000000
+ 2.5948358609123821 -4.5638432339973001 -0.0094843170760657
+ 2.5948358609123821 4.5638432339973001 -0.0094843170760657
+ -0.2840727811367046 0.0000000000000000 10.3538966582196892
+ 4 4 4 12
+Direct
+ 0.6762007114510595 0.6601414010736590 0.1552450226585904
+ 0.3398585989263694 0.3237992885489334 0.3447549773413954
+ 0.6601414010736590 0.6762007114510595 0.6552450226585691
+ 0.3237992885489334 0.3398585989263694 0.8447549773414309
+ 0.0002886314416344 0.3218844603697306 0.1198420886062550
+ 0.6781155396302765 0.9997113685583656 0.3801579113937379
+ 0.3218844603697306 0.0002886314416344 0.6198420886062479
+ 0.9997113685583656 0.6781155396302765 0.8801579113937521
+ 0.3277387899051547 0.9899446589053795 0.1293153271916410
+ 0.0100553410946276 0.6722612100948453 0.3706846728083733
+ 0.9899446589053795 0.3277387899051547 0.6293153271916765
+ 0.6722612100948453 0.0100553410946276 0.8706846728083235
+ 0.3383953031073403 0.2587306983255573 0.1441791077346508
+ 0.7412693016744498 0.6616046968926597 0.3558208922653705
+ 0.2587306983255573 0.3383953031073403 0.6441791077346366
+ 0.6616046968926597 0.7412693016744498 0.8558208922653634
+ 0.0601080113412351 0.7370959626406730 0.0902398000492184
+ 0.2629040373592986 0.9398919886587720 0.4097601999507603
+ 0.7370959626406730 0.0601080113412351 0.5902398000492468
+ 0.9398919886587720 0.2629040373592986 0.9097601999507532
+ 0.5782354491623778 0.9734489956834835 0.1571417553220016
+ 0.0265510043165094 0.4217645508376293 0.3428582446779984
+ 0.9734489956834835 0.5782354491623778 0.6571417553220087
+ 0.4217645508376293 0.0265510043165094 0.8428582446779913
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/monoclinic/POSCAR-015-2 b/test/data/monoclinic/POSCAR-015-2
new file mode 100644
index 0000000..0ea1480
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-015-2
@@ -0,0 +1,104 @@
+Li8Fe8B8O24
+ 1.00000000000000
+ 5.1896717218247641 0.0000000000000000 -0.0189686341521314
+ 0.0000000000000000 9.1276864679946002 0.0000000000000000
+ -0.2840727811367046 0.0000000000000000 10.3538966582196892
+ 8 8 8 24
+Direct
+ 0.1680321311868838 0.4921359179247418 0.1552609574603068
+ 0.6680321311868838 0.9921359179247418 0.1552609574603068
+ 0.8319678688131162 0.4921359179247418 0.3447390425396932
+ 0.3319678688131162 0.9921359179247418 0.3447390425396932
+ 0.1680321311868838 0.5078640820752582 0.6552609574603068
+ 0.6680321311868838 0.0078640820752582 0.6552609574603068
+ 0.8319678688131162 0.5078640820752582 0.8447390425396932
+ 0.3319678688131162 0.0078640820752582 0.8447390425396932
+ 0.1610418360745243 0.1609376151836912 0.1198205759274416
+ 0.6610418360745243 0.6609376151836912 0.1198205759274416
+ 0.8389581639254757 0.1609376151836912 0.3801794240725584
+ 0.3389581639254757 0.6609376151836912 0.3801794240725584
+ 0.1610418360745243 0.8390623848163088 0.6198205759274416
+ 0.6610418360745243 0.3390623848163088 0.6198205759274416
+ 0.8389581639254757 0.8390623848163088 0.8801794240725584
+ 0.3389581639254757 0.3390623848163088 0.8801794240725584
+ 0.1586401653095066 0.8312293926917533 0.1292794808190365
+ 0.6586401653095066 0.3312293926917533 0.1292794808190365
+ 0.8413598346904934 0.8312293926917533 0.3707205191809635
+ 0.3413598346904934 0.3312293926917533 0.3707205191809635
+ 0.1586401653095066 0.1687706073082467 0.6292794808190365
+ 0.6586401653095066 0.6687706073082467 0.6292794808190365
+ 0.8413598346904934 0.1687706073082467 0.8707205191809635
+ 0.3413598346904934 0.6687706073082467 0.8707205191809635
+ 0.7983610938570394 0.4602821060692150 0.1441169851547386
+ 0.2983610938570394 0.9602821060692150 0.1441169851547386
+ 0.2016389061429606 0.4602821060692150 0.3558830148452614
+ 0.7016389061429606 0.9602821060692150 0.3558830148452614
+ 0.7983610938570394 0.5397178939307850 0.6441169851547315
+ 0.2983610938570394 0.0397178939307850 0.6441169851547315
+ 0.2016389061429606 0.5397178939307850 0.8558830148452685
+ 0.7016389061429606 0.0397178939307850 0.8558830148452685
+ 0.8983141053721511 0.8387090739264877 0.0902747669649813
+ 0.3983141053721511 0.3387090739264877 0.0902747669649813
+ 0.1016858946278489 0.8387090739264877 0.4097252330350187
+ 0.6016858946278489 0.3387090739264877 0.4097252330350187
+ 0.8983141053721511 0.1612909260735123 0.5902747669649813
+ 0.3983141053721511 0.6612909260735123 0.5902747669649813
+ 0.1016858946278489 0.1612909260735123 0.9097252330350187
+ 0.6016858946278489 0.6612909260735123 0.9097252330350187
+ 0.7757662241826537 0.1977398827078076 0.1570560850705860
+ 0.2757662241826537 0.6977398827078076 0.1570560850705860
+ 0.2242337758173463 0.1977398827078076 0.3429439149294140
+ 0.7242337758173463 0.6977398827078076 0.3429439149294140
+ 0.7757662241826537 0.8022601172921924 0.6570560850705860
+ 0.2757662241826537 0.3022601172921924 0.6570560850705860
+ 0.2242337758173463 0.8022601172921924 0.8429439149294140
+ 0.7242337758173463 0.3022601172921924 0.8429439149294140
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/monoclinic/POSCAR-015-3 b/test/data/monoclinic/POSCAR-015-3
new file mode 100644
index 0000000..325ca5d
--- /dev/null
+++ b/test/data/monoclinic/POSCAR-015-3
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 9.4129955707903132 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.5219945784177114 0.0000000000000000
+ -0.0925408600059566 0.0000000000000000 5.0491496501145567
+ 12 32 4
+Direct
+ 0.2414999999999999 0.0864000000000001 0.2466000000000006 # Ta1
+ 0.0000000000000001 0.3299000000000002 0.2500000000000006 # Ta2
+ 0.7414999999999995 0.5864000000000003 0.2466000000000006 # Ta3
+ 0.4999999999999997 0.8299000000000004 0.2500000000000006 # Ta4
+ 0.7584999999999993 0.9136000000000003 0.7534000000000006 # Ta5
+ -0.0000000000000001 0.6701000000000001 0.7500000000000006 # Ta6
+ 0.2584999999999998 0.4136000000000002 0.7534000000000006 # Ta7
+ 0.4999999999999994 0.1701000000000000 0.7500000000000006 # Ta8
+ 0.7584999999999996 0.0864000000000001 0.2534000000000005 # Ta9
+ 0.2585000000000001 0.5864000000000003 0.2534000000000005 # Ta10
+ 0.2414999999999996 0.9136000000000003 0.7466000000000006 # Ta11
+ 0.7414999999999997 0.4136000000000002 0.7466000000000006 # Ta12
+ 0.3541000000000000 0.4516000000000001 0.4413000000000004 # O1
+ 0.3845999999999999 0.1788000000000002 0.4270000000000002 # O2
+ 0.1332000000000000 0.4375000000000000 0.0792000000000005 # O3
+ 0.1184999999999998 0.1967000000000000 0.1069000000000002 # O4
+ 0.8540999999999995 0.9516000000000002 0.4413000000000004 # O5
+ 0.8845999999999995 0.6788000000000000 0.4270000000000002 # O6
+ 0.6331999999999994 0.9375000000000002 0.0792000000000005 # O7
+ 0.6185000000000000 0.6967000000000002 0.1069000000000002 # O8
+ 0.6458999999999999 0.5484000000000003 0.5587000000000009 # O9
+ 0.6153999999999998 0.8212000000000003 0.5729999999999998 # O10
+ 0.8667999999999992 0.5625000000000004 0.9208000000000005 # O11
+ 0.8814999999999995 0.8033000000000000 0.8931000000000011 # O12
+ 0.1458999999999996 0.0484000000000001 0.5587000000000009 # O13
+ 0.1153999999999997 0.3212000000000000 0.5729999999999998 # O14
+ 0.3667999999999996 0.0625000000000001 0.9208000000000005 # O15
+ 0.3814999999999998 0.3033000000000002 0.8931000000000011 # O16
+ 0.6458999999999995 0.4516000000000001 0.0586999999999997 # O17
+ 0.6153999999999996 0.1788000000000002 0.0729999999999998 # O18
+ 0.8667999999999995 0.4375000000000000 0.4208000000000006 # O19
+ 0.8814999999999997 0.1967000000000000 0.3930999999999999 # O20
+ 0.1458999999999999 0.9516000000000002 0.0586999999999997 # O21
+ 0.1154000000000000 0.6788000000000000 0.0729999999999998 # O22
+ 0.3667999999999999 0.9375000000000002 0.4208000000000006 # O23
+ 0.3814999999999995 0.6967000000000002 0.3930999999999999 # O24
+ 0.3540999999999997 0.5484000000000003 0.9413000000000005 # O25
+ 0.3845999999999996 0.8212000000000003 0.9270000000000003 # O26
+ 0.1331999999999997 0.5625000000000004 0.5792000000000005 # O27
+ 0.1185000000000001 0.8033000000000000 0.6069000000000003 # O28
+ 0.8540999999999993 0.0484000000000001 0.9413000000000005 # O29
+ 0.8845999999999999 0.3212000000000000 0.9270000000000003 # O30
+ 0.6331999999999994 0.0625000000000001 0.5792000000000005 # O31
+ 0.6184999999999997 0.3033000000000002 0.6069000000000003 # O32
+ 0.0000000000000001 0.8034000000000004 0.2500000000000006 # Li1
+ 0.4999999999999997 0.3034000000000001 0.2500000000000006 # Li2
+ -0.0000000000000001 0.1966000000000000 0.7500000000000006 # Li3
+ 0.4999999999999994 0.6966000000000002 0.7500000000000006 # Li4
diff --git a/test/data/orthorhombic/POSCAR-016 b/test/data/orthorhombic/POSCAR-016
new file mode 100644
index 0000000..6b7a0c7
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-016
@@ -0,0 +1,211 @@
+$cell vectors
+1.0
+ 10.7049949628503391 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.7339949492046287 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 31.6299851167637804
+ 48 60 96
+Direct
+ 0.2570000000000003 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.2570000000000003 0.5000000000000000 0.0000000000000000 # Cu2
+ 0.2500000000000003 -0.0000000000000002 0.4999999999999999 # Cu3
+ 0.2480000000000001 0.4999999999999998 0.4999999999999999 # Cu4
+ 0.9950000000000003 0.2490000000000002 0.1640000000000000 # Cu5
+ 0.4890000000000002 0.2499999999999999 0.1630000000000000 # Cu6
+ 0.0020000000000003 0.2490000000000001 0.3360000000000000 # Cu7
+ 0.4979999999999999 0.2499999999999998 0.3360000000000000 # Cu8
+ 0.2520000000000001 0.2450000000000000 0.0859999999999999 # Cu9
+ 0.2460000000000004 0.7480000000000000 0.0859999999999999 # Cu10
+ 0.2490000000000002 0.2509999999999999 0.4139999999999999 # Cu11
+ 0.2510000000000000 0.7509999999999999 0.4150000000000000 # Cu12
+ 0.0000000000000000 -0.0000000000000001 0.2500000000000001 # Cu13
+ 0.5000000000000002 -0.0000000000000001 0.2500000000000001 # Cu14
+ 0.0000000000000000 0.4999999999999999 0.2500000000000001 # Cu15
+ 0.5000000000000002 0.4999999999999999 0.2500000000000001 # Cu16
+ 0.7430000000000002 0.0000000000000000 0.0000000000000000 # Cu17
+ 0.7430000000000002 0.5000000000000000 0.0000000000000000 # Cu18
+ 0.7500000000000000 -0.0000000000000002 0.4999999999999999 # Cu19
+ 0.7520000000000002 0.4999999999999998 0.4999999999999999 # Cu20
+ 0.0050000000000002 0.7510000000000000 0.1640000000000000 # Cu21
+ 0.5110000000000001 0.7499999999999998 0.1630000000000000 # Cu22
+ 0.9980000000000001 0.7510000000000000 0.3360000000000000 # Cu23
+ 0.5020000000000004 0.7500000000000002 0.3360000000000000 # Cu24
+ 0.7479999999999997 0.7549999999999999 0.0859999999999999 # Cu25
+ 0.7540000000000001 0.2519999999999998 0.0859999999999999 # Cu26
+ 0.7510000000000002 0.7490000000000000 0.4139999999999999 # Cu27
+ 0.7489999999999999 0.2490000000000001 0.4150000000000000 # Cu28
+ 0.9950000000000003 0.7510000000000002 0.8360000000000000 # Cu29
+ 0.4890000000000002 0.7499999999999999 0.8370000000000001 # Cu30
+ 0.0020000000000003 0.7509999999999998 0.6640000000000000 # Cu31
+ 0.4980000000000004 0.7500000000000000 0.6640000000000000 # Cu32
+ 0.2520000000000001 0.7550000000000000 0.9140000000000000 # Cu33
+ 0.2460000000000004 0.2519999999999999 0.9140000000000000 # Cu34
+ 0.2490000000000002 0.7489999999999999 0.5860000000000000 # Cu35
+ 0.2510000000000000 0.2490000000000000 0.5850000000000000 # Cu36
+ 0.0000000000000000 -0.0000000000000004 0.7500000000000000 # Cu37
+ 0.5000000000000002 -0.0000000000000004 0.7500000000000000 # Cu38
+ 0.0000000000000000 0.5000000000000002 0.7500000000000000 # Cu39
+ 0.5000000000000002 0.5000000000000002 0.7500000000000000 # Cu40
+ 0.0050000000000002 0.2489999999999999 0.8360000000000000 # Cu41
+ 0.5110000000000001 0.2500000000000001 0.8370000000000001 # Cu42
+ 0.9980000000000008 0.2489999999999999 0.6640000000000000 # Cu43
+ 0.5020000000000000 0.2499999999999996 0.6640000000000000 # Cu44
+ 0.7480000000000002 0.2450000000000001 0.9140000000000000 # Cu45
+ 0.7540000000000001 0.7480000000000002 0.9140000000000000 # Cu46
+ 0.7510000000000002 0.2509999999999999 0.5860000000000000 # Cu47
+ 0.7490000000000003 0.7509999999999998 0.5850000000000000 # Cu48
+ 0.0000000000000000 0.2549999999999999 0.0000000000000000 # Fe1
+ 0.5000000000000002 0.2590000000000002 0.0000000000000000 # Fe2
+ 0.0000000000000000 0.2470000000000002 0.4999999999999999 # Fe3
+ 0.5000000000000002 0.2520000000000002 0.4999999999999999 # Fe4
+ 0.2510000000000000 0.9990000000000002 0.1650000000000000 # Fe5
+ 0.2480000000000001 0.4880000000000002 0.1659999999999999 # Fe6
+ 0.2510000000000000 0.9979999999999999 0.3350000000000000 # Fe7
+ 0.2490000000000002 0.4990000000000001 0.3340000000000000 # Fe8
+ 0.0000000000000000 0.0000000000000000 0.0859999999999999 # Fe9
+ 0.5000000000000002 0.0000000000000000 0.0859999999999999 # Fe10
+ 0.0000000000000000 0.4999999999999999 0.0859999999999999 # Fe11
+ 0.5000000000000002 0.4999999999999999 0.0859999999999999 # Fe12
+ 0.0000000000000000 -0.0000000000000002 0.4139999999999999 # Fe13
+ 0.5000000000000002 -0.0000000000000002 0.4139999999999999 # Fe14
+ 0.0000000000000000 0.4999999999999998 0.4139999999999999 # Fe15
+ 0.5000000000000002 0.4999999999999998 0.4139999999999999 # Fe16
+ 0.2510000000000000 0.2490000000000002 0.2500000000000001 # Fe17
+ 0.2500000000000003 0.7499999999999998 0.2500000000000001 # Fe18
+ 0.2510000000000000 0.9990000000000002 0.2500000000000001 # Fe19
+ 0.2490000000000002 0.4999999999999999 0.2500000000000001 # Fe20
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Fe21
+ 0.5000000000000002 0.5000000000000000 0.0000000000000000 # Fe22
+ 0.5000000000000002 -0.0000000000000002 0.4999999999999999 # Fe23
+ 0.0000000000000000 0.4999999999999998 0.4999999999999999 # Fe24
+ 0.0000000000000000 0.7450000000000001 0.0000000000000000 # Fe25
+ 0.5000000000000002 0.7410000000000003 0.0000000000000000 # Fe26
+ 0.0000000000000000 0.7529999999999998 0.4999999999999999 # Fe27
+ 0.5000000000000002 0.7479999999999998 0.4999999999999999 # Fe28
+ 0.7489999999999999 0.0010000000000001 0.1650000000000000 # Fe29
+ 0.7520000000000002 0.5120000000000001 0.1659999999999999 # Fe30
+ 0.7489999999999999 0.0019999999999997 0.3350000000000000 # Fe31
+ 0.7510000000000002 0.5010000000000000 0.3340000000000000 # Fe32
+ 0.7489999999999999 0.7510000000000000 0.2500000000000001 # Fe33
+ 0.7500000000000000 0.2499999999999999 0.2500000000000001 # Fe34
+ 0.7489999999999999 0.0010000000000001 0.2500000000000001 # Fe35
+ 0.7510000000000002 0.4999999999999999 0.2500000000000001 # Fe36
+ 0.2510000000000000 0.0009999999999998 0.8349999999999999 # Fe37
+ 0.2480000000000001 0.5119999999999998 0.8340000000000001 # Fe38
+ 0.2510000000000000 0.0020000000000001 0.6650000000000000 # Fe39
+ 0.2490000000000002 0.5009999999999998 0.6659999999999998 # Fe40
+ 0.0000000000000000 0.0000000000000000 0.9140000000000000 # Fe41
+ 0.5000000000000002 0.0000000000000000 0.9140000000000000 # Fe42
+ 0.0000000000000000 0.5000000000000001 0.9140000000000000 # Fe43
+ 0.5000000000000002 0.5000000000000001 0.9140000000000000 # Fe44
+ 0.0000000000000000 -0.0000000000000003 0.5860000000000000 # Fe45
+ 0.5000000000000002 -0.0000000000000003 0.5860000000000000 # Fe46
+ 0.0000000000000000 0.4999999999999997 0.5860000000000000 # Fe47
+ 0.5000000000000002 0.4999999999999997 0.5860000000000000 # Fe48
+ 0.2510000000000000 0.7509999999999998 0.7500000000000000 # Fe49
+ 0.2500000000000003 0.2500000000000001 0.7500000000000000 # Fe50
+ 0.2510000000000000 0.0009999999999998 0.7500000000000000 # Fe51
+ 0.2490000000000002 0.5000000000000002 0.7500000000000000 # Fe52
+ 0.7490000000000003 0.9989999999999999 0.8349999999999999 # Fe53
+ 0.7520000000000002 0.4879999999999998 0.8340000000000001 # Fe54
+ 0.7490000000000003 0.9979999999999997 0.6650000000000000 # Fe55
+ 0.7510000000000002 0.4989999999999999 0.6659999999999998 # Fe56
+ 0.7490000000000003 0.2489999999999999 0.7500000000000000 # Fe57
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000 # Fe58
+ 0.7490000000000003 0.9990000000000000 0.7500000000000000 # Fe59
+ 0.7510000000000002 0.5000000000000002 0.7500000000000000 # Fe60
+ 0.1190000000000001 0.1269999999999998 0.0420000000000001 # S1
+ 0.3799999999999999 0.8700000000000000 0.0420000000000001 # S2
+ 0.1230000000000002 0.6280000000000001 0.0420000000000001 # S3
+ 0.3789999999999998 0.3730000000000001 0.0420000000000001 # S4
+ 0.1240000000000003 0.8690000000000000 0.4580000000000001 # S5
+ 0.3750000000000003 0.1320000000000001 0.4580000000000001 # S6
+ 0.1260000000000000 0.3690000000000001 0.4580000000000001 # S7
+ 0.3759999999999999 0.6300000000000002 0.4580000000000001 # S8
+ 0.1280000000000003 0.8760000000000000 0.1250000000000000 # S9
+ 0.3710000000000003 0.1240000000000003 0.1250000000000000 # S10
+ 0.1289999999999999 0.3760000000000002 0.1250000000000000 # S11
+ 0.3730000000000000 0.6230000000000000 0.1250000000000000 # S12
+ 0.1280000000000003 0.1219999999999997 0.3750000000000001 # S13
+ 0.3740000000000001 0.8740000000000000 0.3750000000000001 # S14
+ 0.1280000000000003 0.6240000000000001 0.3750000000000001 # S15
+ 0.3720000000000004 0.3770000000000002 0.3750000000000001 # S16
+ 0.1260000000000000 0.1219999999999998 0.2080000000000000 # S17
+ 0.3780000000000001 0.8760000000000000 0.2080000000000000 # S18
+ 0.1230000000000002 0.6230000000000000 0.2080000000000000 # S19
+ 0.3730000000000000 0.3799999999999998 0.2080000000000000 # S20
+ 0.1260000000000000 0.8750000000000002 0.2920000000000000 # S21
+ 0.3759999999999999 0.1240000000000002 0.2920000000000000 # S22
+ 0.1260000000000000 0.3770000000000002 0.2920000000000000 # S23
+ 0.3740000000000001 0.6249999999999999 0.2920000000000000 # S24
+ 0.8810000000000002 0.8730000000000001 0.0420000000000001 # S25
+ 0.6199999999999999 0.1299999999999999 0.0420000000000001 # S26
+ 0.8770000000000002 0.3719999999999999 0.0420000000000001 # S27
+ 0.6210000000000001 0.6269999999999999 0.0420000000000001 # S28
+ 0.8760000000000002 0.1309999999999999 0.4580000000000001 # S29
+ 0.6250000000000001 0.8679999999999999 0.4580000000000001 # S30
+ 0.8739999999999997 0.6310000000000000 0.4580000000000001 # S31
+ 0.6240000000000000 0.3700000000000003 0.4580000000000001 # S32
+ 0.8720000000000000 0.1240000000000003 0.1250000000000000 # S33
+ 0.6290000000000002 0.8760000000000000 0.1250000000000000 # S34
+ 0.8710000000000000 0.6240000000000002 0.1250000000000000 # S35
+ 0.6269999999999999 0.3769999999999998 0.1250000000000000 # S36
+ 0.8720000000000000 0.8779999999999997 0.3750000000000001 # S37
+ 0.6260000000000002 0.1260000000000000 0.3750000000000001 # S38
+ 0.8720000000000000 0.3760000000000001 0.3750000000000001 # S39
+ 0.6279999999999999 0.6229999999999999 0.3750000000000001 # S40
+ 0.8739999999999997 0.8779999999999998 0.2080000000000000 # S41
+ 0.6220000000000002 0.1240000000000002 0.2080000000000000 # S42
+ 0.8770000000000002 0.3770000000000002 0.2080000000000000 # S43
+ 0.6269999999999999 0.6199999999999999 0.2080000000000000 # S44
+ 0.8739999999999997 0.1249999999999999 0.2920000000000000 # S45
+ 0.6240000000000000 0.8760000000000000 0.2920000000000000 # S46
+ 0.8739999999999997 0.6230000000000000 0.2920000000000000 # S47
+ 0.6260000000000002 0.3749999999999998 0.2920000000000000 # S48
+ 0.1190000000000001 0.8730000000000000 0.9579999999999999 # S49
+ 0.3800000000000004 0.1300000000000000 0.9579999999999999 # S50
+ 0.1230000000000002 0.3719999999999998 0.9579999999999999 # S51
+ 0.3790000000000003 0.6270000000000000 0.9579999999999999 # S52
+ 0.1240000000000003 0.1309999999999998 0.5420000000000000 # S53
+ 0.3750000000000003 0.8679999999999999 0.5420000000000000 # S54
+ 0.1260000000000000 0.6310000000000000 0.5420000000000000 # S55
+ 0.3759999999999999 0.3699999999999997 0.5420000000000000 # S56
+ 0.1280000000000003 0.1239999999999999 0.8749999999999999 # S57
+ 0.3710000000000003 0.8759999999999997 0.8749999999999999 # S58
+ 0.1290000000000004 0.6239999999999999 0.8749999999999999 # S59
+ 0.3730000000000000 0.3769999999999999 0.8749999999999999 # S60
+ 0.1280000000000003 0.8779999999999996 0.6250000000000000 # S61
+ 0.3740000000000001 0.1259999999999999 0.6250000000000000 # S62
+ 0.1280000000000003 0.3759999999999999 0.6250000000000000 # S63
+ 0.3720000000000004 0.6229999999999998 0.6250000000000000 # S64
+ 0.1260000000000000 0.8779999999999999 0.7919999999999998 # S65
+ 0.3780000000000001 0.1239999999999999 0.7919999999999998 # S66
+ 0.1230000000000002 0.3769999999999999 0.7919999999999998 # S67
+ 0.3730000000000000 0.6200000000000000 0.7919999999999998 # S68
+ 0.1260000000000000 0.1250000000000001 0.7079999999999996 # S69
+ 0.3760000000000004 0.8759999999999998 0.7079999999999996 # S70
+ 0.1260000000000000 0.6229999999999998 0.7079999999999996 # S71
+ 0.3740000000000001 0.3750000000000001 0.7079999999999996 # S72
+ 0.8810000000000002 0.1269999999999999 0.9579999999999999 # S73
+ 0.6200000000000004 0.8700000000000001 0.9579999999999999 # S74
+ 0.8770000000000002 0.6280000000000001 0.9579999999999999 # S75
+ 0.6210000000000001 0.3730000000000001 0.9579999999999999 # S76
+ 0.8760000000000002 0.8690000000000000 0.5420000000000000 # S77
+ 0.6250000000000001 0.1320000000000001 0.5420000000000000 # S78
+ 0.8740000000000002 0.3690000000000001 0.5420000000000000 # S79
+ 0.6240000000000000 0.6300000000000002 0.5420000000000000 # S80
+ 0.8720000000000000 0.8759999999999997 0.8749999999999999 # S81
+ 0.6290000000000002 0.1239999999999999 0.8749999999999999 # S82
+ 0.8710000000000000 0.3759999999999998 0.8749999999999999 # S83
+ 0.6270000000000003 0.6229999999999997 0.8749999999999999 # S84
+ 0.8720000000000000 0.1220000000000001 0.6250000000000000 # S85
+ 0.6260000000000002 0.8739999999999999 0.6250000000000000 # S86
+ 0.8720000000000000 0.6240000000000000 0.6250000000000000 # S87
+ 0.6279999999999999 0.3770000000000000 0.6250000000000000 # S88
+ 0.8740000000000002 0.1220000000000000 0.7919999999999998 # S89
+ 0.6220000000000002 0.8759999999999997 0.7919999999999998 # S90
+ 0.8770000000000002 0.6229999999999997 0.7919999999999998 # S91
+ 0.6270000000000003 0.3800000000000000 0.7919999999999998 # S92
+ 0.8740000000000002 0.8750000000000000 0.7079999999999996 # S93
+ 0.6240000000000000 0.1240000000000000 0.7079999999999996 # S94
+ 0.8740000000000002 0.3770000000000000 0.7079999999999996 # S95
+ 0.6260000000000002 0.6250000000000002 0.7079999999999996 # S96
diff --git a/test/data/orthorhombic/POSCAR-016-2 b/test/data/orthorhombic/POSCAR-016-2
new file mode 100644
index 0000000..0f5de27
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-016-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.6099973602606639 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.6699973320281556 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0499957415969732
+ 2 2 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Al1
+ 0.4999999999999999 0.0000000000000000 0.5000000000000000 # Al2
+ 0.0000000000000000 0.5000000000000004 0.0000000000000000 # P1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # P2
+ 0.1999999999999998 0.2600000000000002 0.1250000000000001 # S1
+ 0.7399999999999997 0.8000000000000006 0.6299999999999999 # S2
+ 0.8000000000000002 0.7400000000000005 0.1250000000000001 # S3
+ 0.2600000000000002 0.2000000000000001 0.6299999999999999 # S4
+ 0.1999999999999998 0.7400000000000005 0.8749999999999999 # S5
+ 0.7399999999999997 0.2000000000000001 0.3700000000000003 # S6
+ 0.8000000000000002 0.2600000000000002 0.8749999999999999 # S7
+ 0.2600000000000002 0.8000000000000006 0.3700000000000003 # S8
diff --git a/test/data/orthorhombic/POSCAR-017-2 b/test/data/orthorhombic/POSCAR-017-2
new file mode 100644
index 0000000..6193a3b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-017-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 7.0499966826805140 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.8499963062470979 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.3299979625541329
+ 8 4
+Direct
+ 0.1210000000000000 0.2249999999999998 0.0220000000000002 # Ag1
+ 0.3929999999999997 0.0000000000000000 0.0000000000000000 # Ag2
+ 0.3779999999999998 0.4999999999999997 0.0000000000000000 # Ag3
+ 0.8790000000000001 0.7750000000000004 0.5220000000000002 # Ag4
+ 0.6070000000000004 0.0000000000000000 0.4999999999999999 # Ag5
+ 0.6220000000000004 0.4999999999999997 0.4999999999999999 # Ag6
+ 0.1210000000000000 0.7750000000000004 0.9779999999999998 # Ag7
+ 0.8790000000000001 0.2249999999999998 0.4779999999999996 # Ag8
+ 0.2980000000000000 0.2749999999999999 0.5220000000000002 # Se1
+ 0.7020000000000000 0.7250000000000001 0.0220000000000002 # Se2
+ 0.2980000000000000 0.7250000000000001 0.4779999999999996 # Se3
+ 0.7020000000000000 0.2749999999999999 0.9779999999999998 # Se4
diff --git a/test/data/orthorhombic/POSCAR-018 b/test/data/orthorhombic/POSCAR-018
new file mode 100644
index 0000000..36d50d4
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-018
@@ -0,0 +1,67 @@
+$cell vectors
+1.0
+ 13.9949934147679116 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.3339960785048817 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.0639976171764731
+ 8 8 20 24
+Direct
+ 0.1251000000000000 1.1164999999999998 0.1035000000000000 # P1
+ 0.0690000000000000 0.7899999999999998 -0.0620000000000002 # P2
+ -0.1251000000000000 0.8834999999999995 0.1035000000000000 # P3
+ -0.0690000000000000 1.2099999999999995 -0.0620000000000002 # P4
+ 0.6251000000000002 0.3834999999999998 0.8964999999999999 # P5
+ 0.5689999999999998 0.7099999999999997 1.0619999999999989 # P6
+ 0.3749000000000002 0.6165000000000002 0.8964999999999999 # P7
+ 0.4310000000000002 0.2900000000000001 1.0619999999999989 # P8
+ 0.0164999999999999 1.1909999999999996 0.1600999999999996 # N1
+ 0.1136999999999999 0.9720000000000001 -0.1179999999999997 # N2
+ -0.0164999999999999 0.8089999999999999 0.1600999999999996 # N3
+ -0.1136999999999999 1.0279999999999996 -0.1179999999999997 # N4
+ 0.5165000000000001 0.3090000000000003 0.8399000000000003 # N5
+ 0.6137000000000001 0.5279999999999998 1.1179999999999992 # N6
+ 0.4834999999999999 0.6909999999999998 0.8399000000000003 # N7
+ 0.3862999999999999 0.4720000000000002 1.1179999999999992 # N8
+ 0.1841000000000000 1.2468999999999997 -0.0290000000000004 # O1
+ 0.1623000000000001 1.0545999999999998 0.3587000000000001 # O2
+ 0.1444000000000001 0.6859999999999999 0.0757000000000000 # O3
+ 0.0317999999999999 0.7240000000000003 -0.3160000000000000 # O4
+ 0.3483000000000002 0.9619999999999997 0.4801000000000002 # O5
+ -0.1841000000000000 0.7530999999999998 -0.0290000000000004 # O6
+ -0.1623000000000001 0.9453999999999997 0.3587000000000001 # O7
+ -0.1444000000000001 1.3139999999999994 0.0757000000000000 # O8
+ -0.0317999999999999 1.2759999999999998 -0.3160000000000000 # O9
+ 0.6516999999999998 0.0380000000000002 0.4801000000000002 # O10
+ 0.6841000000000003 0.2531000000000000 1.0289999999999990 # O11
+ 0.6623000000000000 0.4454000000000000 0.6412999999999998 # O12
+ 0.6443999999999999 0.8139999999999998 0.9242999999999998 # O13
+ 0.5318000000000002 0.7760000000000001 1.3159999999999998 # O14
+ 0.8483000000000002 0.5379999999999999 0.5198999999999998 # O15
+ 0.3158999999999998 0.7468999999999999 1.0289999999999990 # O16
+ 0.3377000000000001 0.5546000000000000 0.6412999999999998 # O17
+ 0.3556000000000001 0.1860000000000003 0.9242999999999998 # O18
+ 0.4681999999999999 0.2239999999999999 1.3159999999999998 # O19
+ 0.1517000000000000 0.4620000000000001 0.5198999999999998 # O20
+ 0.0070000000000002 1.2060000000000000 0.2830000000000001 # H1
+ 0.1170000000000001 1.0009999999999997 -0.3180000000000003 # H2
+ 0.2300000000000001 0.7160000000000000 0.0529999999999995 # H3
+ 0.3600000000000000 0.8770000000000000 0.2500000000000002 # H4
+ 0.2800000000000001 0.9899999999999999 0.4259999999999995 # H5
+ 0.4180000000000001 1.0149999999999999 0.4669999999999995 # H6
+ -0.0069999999999998 0.7940000000000002 0.2830000000000001 # H7
+ -0.1170000000000001 0.9989999999999998 -0.3180000000000003 # H8
+ 0.7699999999999999 0.2840000000000002 0.0529999999999995 # H9
+ 0.6400000000000001 0.1230000000000000 0.2500000000000002 # H10
+ 0.7200000000000001 0.0100000000000002 0.4259999999999995 # H11
+ 0.5820000000000001 -0.0149999999999999 0.4669999999999995 # H12
+ 0.5070000000000001 0.2939999999999997 0.7169999999999997 # H13
+ 0.6170000000000000 0.4990000000000002 1.3180000000000003 # H14
+ 0.7299999999999999 0.7839999999999998 0.9469999999999991 # H15
+ 0.8600000000000002 0.6229999999999997 0.7499999999999996 # H16
+ 0.7800000000000002 0.5099999999999999 0.5740000000000003 # H17
+ 0.9179999999999999 0.4849999999999998 0.5329999999999994 # H18
+ 0.4930000000000000 0.7059999999999996 0.7169999999999997 # H19
+ 0.3830000000000001 0.5009999999999999 1.3180000000000003 # H20
+ 0.2700000000000001 0.2160000000000001 0.9469999999999991 # H21
+ 0.1400000000000002 0.3769999999999997 0.7499999999999996 # H22
+ 0.2200000000000001 0.4900000000000002 0.5740000000000003 # H23
+ 0.0820000000000001 0.5149999999999997 0.5329999999999994 # H24
diff --git a/test/data/orthorhombic/POSCAR-018-2 b/test/data/orthorhombic/POSCAR-018-2
new file mode 100644
index 0000000..f6fdda8
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-018-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 7.3489965419885257 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.5149964638785907 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.8939962855432588
+ 2 2 8 20
+Direct
+ 0.0000000000000000 0.0000000000000000 0.9830000000000002 # Ba1
+ 0.4999999999999996 0.4999999999999997 0.0169999999999997 # Ba2
+ 0.0000000000000000 0.4999999999999997 0.1589999999999999 # Fe1
+ 0.4999999999999996 0.0000000000000000 0.8410000000000000 # Fe2
+ 0.6889999999999996 0.2240000000000002 0.3219999999999999 # Si1
+ 0.2610000000000001 0.1880000000000004 0.2970000000000000 # Si2
+ 0.3110000000000004 0.7759999999999997 0.3219999999999999 # Si3
+ 0.7390000000000000 0.8119999999999996 0.2970000000000000 # Si4
+ 0.1890000000000000 0.2760000000000001 0.6779999999999999 # Si5
+ 0.7609999999999997 0.3119999999999999 0.7030000000000000 # Si6
+ 0.8110000000000001 0.7239999999999999 0.6779999999999999 # Si7
+ 0.2390000000000003 0.6879999999999999 0.7030000000000000 # Si8
+ 0.2079999999999997 0.2669999999999998 0.4790000000000001 # O1
+ 0.4739999999999996 0.2209999999999997 0.2550000000000003 # O2
+ 0.2360000000000003 0.9780000000000002 0.2850000000000003 # O3
+ 0.2320000000000000 0.6249999999999999 0.2070000000000001 # O4
+ 0.1429999999999999 0.2819999999999998 0.1480000000000000 # O5
+ 0.7920000000000003 0.7330000000000002 0.4790000000000001 # O6
+ 0.5259999999999997 0.7789999999999995 0.2550000000000003 # O7
+ 0.7639999999999997 0.0219999999999998 0.2850000000000003 # O8
+ 0.7680000000000000 0.3750000000000001 0.2070000000000001 # O9
+ 0.8570000000000001 0.7180000000000001 0.1480000000000000 # O10
+ 0.7080000000000001 0.2329999999999998 0.5209999999999998 # O11
+ 0.9740000000000000 0.2790000000000000 0.7449999999999997 # O12
+ 0.7360000000000000 0.5220000000000001 0.7150000000000003 # O13
+ 0.7319999999999997 0.8749999999999998 0.7929999999999998 # O14
+ 0.6430000000000002 0.2179999999999998 0.8519999999999999 # O15
+ 0.2919999999999999 0.7670000000000002 0.5209999999999998 # O16
+ 0.0260000000000001 0.7209999999999999 0.7449999999999997 # O17
+ 0.2640000000000001 0.4779999999999999 0.7150000000000003 # O18
+ 0.2680000000000003 0.1250000000000003 0.7929999999999998 # O19
+ 0.3569999999999997 0.7820000000000001 0.8519999999999999 # O20
diff --git a/test/data/orthorhombic/POSCAR-019 b/test/data/orthorhombic/POSCAR-019
new file mode 100644
index 0000000..3909b03
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-019
@@ -0,0 +1,32 @@
+cell
+ 1.00000000000000
+ 3.5183598274731080 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.6304070168529856 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.3802740221553069
+ 4 8
+Direct
+ 0.3644957786015373 0.3291588793038034 0.0046162797490634
+ 0.1355042213984628 0.8291588793038178 0.2453837202509365
+ 0.6355042213984625 0.6708411206961822 0.5046162797490706
+ 0.8644957786015375 0.1708411206962036 0.7453837202509294
+ 0.2446454943852583 0.1729234922155920 0.2511000671435190
+ 0.2623034245667540 0.6795513892502183 0.4950115114362526
+ 0.7553545056147417 0.8270765077843938 0.7511000671435258
+ 0.7376965754332457 0.3204486107497891 0.9950115114362594
+ 0.7446454943852583 0.3270765077843937 0.4988999328564739
+ 0.2553545056147488 0.6729234922155920 0.9988999328564813
+ 0.2376965754332460 0.1795513892502111 0.7549884885637406
+ 0.7623034245667543 0.8204486107497817 0.2549884885637474
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/orthorhombic/POSCAR-019-2 b/test/data/orthorhombic/POSCAR-019-2
new file mode 100644
index 0000000..f7d46db
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-019-2
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 4.8089977371646224 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.9569967264408987 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4659960163933636
+ 4 16 4
+Direct
+ 0.0119999999999997 0.1156999999999999 0.1637000000000000 # Y1
+ 0.4880000000000002 0.8843000000000002 0.6637000000000000 # Y2
+ 0.5119999999999998 0.3843000000000004 0.8362999999999999 # Y3
+ 0.9880000000000001 0.6157000000000005 0.3363000000000000 # Y4
+ 0.2884000000000000 0.3950999999999996 0.0935000000000002 # O1
+ 0.4886999999999999 0.5533000000000002 0.2960999999999998 # O2
+ 0.7469000000000005 0.4149000000000002 0.1135000000000000 # O3
+ 0.0025000000000000 0.7968999999999998 0.1181999999999998 # O4
+ 0.2116000000000000 0.6048999999999997 0.5935000000000004 # O5
+ 0.0113000000000001 0.4466999999999998 0.7961000000000005 # O6
+ 0.7531000000000003 0.5850999999999997 0.6135000000000000 # O7
+ 0.4974999999999999 0.2031000000000001 0.6182000000000004 # O8
+ 0.7883999999999999 0.1049000000000000 0.9065000000000004 # O9
+ 0.9886999999999997 0.9467000000000002 0.7039000000000001 # O10
+ 0.2469000000000006 0.0851000000000001 0.8865000000000000 # O11
+ 0.5024999999999999 0.7031000000000004 0.8818000000000001 # O12
+ 0.7115999999999999 0.8951000000000001 0.4064999999999998 # O13
+ 0.5113000000000000 0.0532999999999998 0.2039000000000001 # O14
+ 0.2531000000000004 0.9148999999999999 0.3864999999999999 # O15
+ 0.9974999999999998 0.2969000000000003 0.3818000000000001 # O16
+ 0.5043000000000003 0.4514000000000001 0.1706999999999998 # C1
+ 0.9957000000000006 0.5485999999999999 0.6707000000000005 # C2
+ 0.0043000000000003 0.0486000000000002 0.8293000000000003 # C3
+ 0.4957000000000007 0.9513999999999998 0.3293000000000002 # C4
diff --git a/test/data/orthorhombic/POSCAR-020 b/test/data/orthorhombic/POSCAR-020
new file mode 100644
index 0000000..bfe35e4
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-020
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 8.73999588746492 0.00000000000000 0.00000000000000
+ 0.00000000000000 5.04999762376405 0.00000000000000
+ 0.00000000000000 0.00000000000000 8.23999612273581
+ 8 16
+Direct
+ 0.16840000000000 0.53580000000000 0.18850000000000 # Si1
+ 0.66840000000000 0.03580000000000 0.18850000000000 # Si2
+ 0.83160000000000 0.46420000000000 0.68850000000000 # Si3
+ 0.33160000000000 0.96420000000000 0.68850000000000 # Si4
+ 0.16840000000000 0.46420000000000 0.81150000000000 # Si5
+ 0.66840000000000 0.96420000000000 0.81150000000000 # Si6
+ 0.83160000000000 0.53580000000000 0.31150000000000 # Si7
+ 0.33160000000000 0.03580000000000 0.31150000000000 # Si8
+ 0.33360000000000 0.00000000000000 0.50000000000000 # O1
+ 0.00000000000000 0.55970000000000 0.25000000000000 # O2
+ 0.25470000000000 0.30290000000000 0.27130000000000 # O3
+ 0.83360000000000 0.50000000000000 0.50000000000000 # O4
+ 0.50000000000000 0.05970000000000 0.25000000000000 # O5
+ 0.75470000000000 0.80290000000000 0.27130000000000 # O6
+ 0.66640000000000 0.00000000000000 0.00000000000000 # O7
+ 0.00000000000000 0.44030000000000 0.75000000000000 # O8
+ 0.74530000000000 0.69710000000000 0.77130000000000 # O9
+ 0.16640000000000 0.50000000000000 0.00000000000000 # O10
+ 0.50000000000000 0.94030000000000 0.75000000000000 # O11
+ 0.24530000000000 0.19710000000000 0.77130000000000 # O12
+ 0.25470000000000 0.69710000000000 0.72870000000000 # O13
+ 0.75470000000000 0.19710000000000 0.72870000000000 # O14
+ 0.74530000000000 0.30290000000000 0.22870000000000 # O15
+ 0.24530000000000 0.80290000000000 0.22870000000000 # O16
diff --git a/test/data/orthorhombic/POSCAR-021 b/test/data/orthorhombic/POSCAR-021
new file mode 100644
index 0000000..f44ba79
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-021
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 6.3859969951202533 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.4299950922493281 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.7999982119412707
+ 6 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # W1
+ 0.0000000000000000 0.3240000000000002 0.0000000000000000 # W2
+ 0.4999999999999996 0.5000000000000002 0.0000000000000000 # W3
+ 0.4999999999999996 0.8240000000000000 0.0000000000000000 # W4
+ 0.0000000000000000 0.6759999999999998 0.0000000000000000 # W5
+ 0.4999999999999996 0.1760000000000001 0.0000000000000000 # W6
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # O1
+ 0.0000000000000000 0.0000000000000000 0.4999999999999992 # O2
+ 0.0000000000000000 0.3020000000000001 0.4999999999999992 # O3
+ 0.1570000000000003 0.1519999999999999 0.1500000000000005 # O4
+ 0.4999999999999996 0.0000000000000000 0.0000000000000000 # O5
+ 0.4999999999999996 0.5000000000000002 0.4999999999999992 # O6
+ 0.4999999999999996 0.8019999999999998 0.4999999999999992 # O7
+ 0.6569999999999999 0.6520000000000001 0.1500000000000005 # O8
+ 0.0000000000000000 0.6979999999999998 0.4999999999999992 # O9
+ 0.8429999999999997 0.8480000000000001 0.1500000000000005 # O10
+ 0.4999999999999996 0.1980000000000001 0.4999999999999992 # O11
+ 0.3430000000000001 0.3479999999999999 0.1500000000000005 # O12
+ 0.1570000000000003 0.8480000000000001 0.8499999999999994 # O13
+ 0.6569999999999999 0.3479999999999999 0.8499999999999994 # O14
+ 0.8429999999999997 0.1519999999999999 0.8499999999999994 # O15
+ 0.3430000000000001 0.6520000000000001 0.8499999999999994 # O16
diff --git a/test/data/orthorhombic/POSCAR-021-2 b/test/data/orthorhombic/POSCAR-021-2
new file mode 100644
index 0000000..67403e6
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-021-2
@@ -0,0 +1,25 @@
+$cell vectors
+1.0
+ 6.5079969377141520 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 15.1639928647045803 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.5179969330087353
+ 4 4 2 8
+Direct
+ 0.2500000000000002 0.2500000000000001 0.7396999999999997 # Cs1
+ 0.7500000000000008 0.7500000000000000 0.7396999999999997 # Cs2
+ 0.2500000000000002 0.7500000000000000 0.2603000000000003 # Cs3
+ 0.7500000000000000 0.2500000000000001 0.2603000000000003 # Cs4
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Ag1
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # Ag2
+ 0.5000000000000004 0.5000000000000002 0.5000000000000000 # Ag3
+ 0.5000000000000004 0.0000000000000000 0.0000000000000000 # Ag4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Zr1
+ 0.5000000000000004 0.5000000000000002 0.0000000000000000 # Zr2
+ 0.7423000000000000 0.3937000000000002 0.7589999999999998 # Te1
+ 0.2423000000000003 0.8937000000000000 0.7589999999999998 # Te2
+ 0.2577000000000001 0.6063000000000004 0.7589999999999998 # Te3
+ 0.7577000000000006 0.1063000000000001 0.7589999999999998 # Te4
+ 0.7423000000000006 0.6063000000000004 0.2410000000000001 # Te5
+ 0.2423000000000003 0.1063000000000001 0.2410000000000001 # Te6
+ 0.2577000000000001 0.3937000000000002 0.2410000000000001 # Te7
+ 0.7577000000000006 0.8937000000000000 0.2410000000000001 # Te8
diff --git a/test/data/orthorhombic/POSCAR-022 b/test/data/orthorhombic/POSCAR-022
new file mode 100644
index 0000000..f050d3e
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-022
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 13.3379937239138560 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8889939351871110 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8307972563650434
+ 16 16 64
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # W1
+ 0.0000000000000000 0.0000000000000000 0.4999999999999995 # W2
+ 0.2500000000000000 0.2500000000000002 0.0300000000000000 # W3
+ 0.0000000000000000 0.5000000000000000 0.4999999999999995 # W4
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # W5
+ 0.2500000000000000 0.7500000000000001 0.5299999999999996 # W6
+ 0.4999999999999999 0.0000000000000000 0.4999999999999995 # W7
+ 0.4999999999999999 0.0000000000000000 0.0000000000000000 # W8
+ 0.7500000000000001 0.2500000000000002 0.5299999999999996 # W9
+ 0.4999999999999999 0.5000000000000000 0.0000000000000000 # W10
+ 0.4999999999999999 0.5000000000000000 0.4999999999999995 # W11
+ 0.7500000000000001 0.7500000000000001 0.0300000000000000 # W12
+ 0.2500000000000000 0.7500000000000001 0.9700000000000000 # W13
+ 0.2500000000000000 0.2500000000000002 0.4699999999999995 # W14
+ 0.7500000000000001 0.7500000000000001 0.4699999999999995 # W15
+ 0.7500000000000001 0.2500000000000002 0.9700000000000000 # W16
+ 0.0120000000000001 0.2500000000000002 0.2500000000000002 # Cr1
+ 0.2500000000000000 0.0050000000000001 0.2500000000000002 # Cr2
+ 0.0120000000000001 0.7500000000000001 0.7499999999999999 # Cr3
+ 0.2500000000000000 0.5050000000000000 0.7499999999999999 # Cr4
+ 0.5120000000000001 0.2500000000000002 0.7499999999999999 # Cr5
+ 0.7500000000000001 0.0050000000000001 0.7499999999999999 # Cr6
+ 0.5120000000000001 0.7500000000000001 0.2500000000000002 # Cr7
+ 0.7500000000000001 0.5050000000000000 0.2500000000000002 # Cr8
+ 0.9880000000000000 0.7500000000000001 0.2500000000000002 # Cr9
+ 0.7500000000000001 0.9949999999999999 0.2500000000000002 # Cr10
+ 0.9880000000000000 0.2500000000000002 0.7499999999999999 # Cr11
+ 0.7500000000000001 0.4949999999999999 0.7499999999999999 # Cr12
+ 0.4880000000000000 0.7500000000000001 0.7499999999999999 # Cr13
+ 0.2500000000000000 0.9949999999999999 0.7499999999999999 # Cr14
+ 0.4880000000000000 0.2500000000000002 0.2500000000000002 # Cr15
+ 0.2500000000000000 0.4949999999999999 0.2500000000000002 # Cr16
+ 0.1040000000000000 0.0180000000000001 0.2159999999999996 # O1
+ 0.2640000000000001 0.0870000000000002 0.0180000000000002 # O2
+ 0.0000000000000000 0.1509999999999998 0.0000000000000000 # O3
+ 0.0000000000000000 0.3520000000000001 0.0000000000000000 # O4
+ 0.1510000000000001 0.2500000000000002 0.2500000000000002 # O5
+ 0.8479999999999998 0.2500000000000002 0.2500000000000002 # O6
+ 0.1040000000000000 0.5180000000000000 0.7160000000000001 # O7
+ 0.2640000000000001 0.5870000000000002 0.5179999999999997 # O8
+ 0.0000000000000000 0.6510000000000002 0.4999999999999995 # O9
+ 0.0000000000000000 0.8520000000000001 0.4999999999999995 # O10
+ 0.1510000000000001 0.7500000000000001 0.7499999999999999 # O11
+ 0.8479999999999998 0.7500000000000001 0.7499999999999999 # O12
+ 0.6040000000000001 0.0180000000000001 0.7160000000000001 # O13
+ 0.7640000000000001 0.0870000000000002 0.5179999999999997 # O14
+ 0.4999999999999999 0.1510000000000002 0.4999999999999995 # O15
+ 0.4999999999999999 0.3520000000000001 0.4999999999999995 # O16
+ 0.6510000000000002 0.2500000000000002 0.7499999999999999 # O17
+ 0.3480000000000002 0.2500000000000002 0.7499999999999999 # O18
+ 0.6040000000000001 0.5180000000000000 0.2159999999999996 # O19
+ 0.7640000000000001 0.5870000000000002 0.0180000000000002 # O20
+ 0.4999999999999999 0.6510000000000002 0.0000000000000000 # O21
+ 0.4999999999999999 0.8520000000000001 0.0000000000000000 # O22
+ 0.6510000000000002 0.7500000000000001 0.2500000000000002 # O23
+ 0.3480000000000002 0.7500000000000001 0.2500000000000002 # O24
+ 0.8959999999999997 0.9819999999999999 0.2159999999999996 # O25
+ 0.7360000000000000 0.9130000000000001 0.0180000000000002 # O26
+ 0.0000000000000000 0.8490000000000001 0.0000000000000000 # O27
+ 0.0000000000000000 0.6480000000000002 0.0000000000000000 # O28
+ 0.8490000000000000 0.7500000000000001 0.2500000000000002 # O29
+ 0.1519999999999999 0.7500000000000001 0.2500000000000002 # O30
+ 0.8959999999999997 0.4819999999999999 0.7160000000000001 # O31
+ 0.7360000000000000 0.4130000000000002 0.5179999999999997 # O32
+ 0.0000000000000000 0.3490000000000001 0.4999999999999995 # O33
+ 0.0000000000000000 0.1480000000000002 0.4999999999999995 # O34
+ 0.8490000000000000 0.2500000000000002 0.7499999999999999 # O35
+ 0.1519999999999999 0.2500000000000002 0.7499999999999999 # O36
+ 0.3960000000000000 0.9819999999999999 0.7160000000000001 # O37
+ 0.2360000000000000 0.9130000000000001 0.5179999999999997 # O38
+ 0.4999999999999999 0.8490000000000001 0.4999999999999995 # O39
+ 0.4999999999999999 0.6480000000000002 0.4999999999999995 # O40
+ 0.3489999999999999 0.7500000000000001 0.7499999999999999 # O41
+ 0.6519999999999998 0.7500000000000001 0.7499999999999999 # O42
+ 0.3960000000000000 0.4819999999999999 0.2159999999999996 # O43
+ 0.2360000000000000 0.4130000000000002 0.0180000000000002 # O44
+ 0.4999999999999999 0.3490000000000001 0.0000000000000000 # O45
+ 0.4999999999999999 0.1479999999999998 0.0000000000000000 # O46
+ 0.3489999999999999 0.2500000000000002 0.2500000000000002 # O47
+ 0.6519999999999998 0.2500000000000002 0.2500000000000002 # O48
+ 0.1040000000000000 0.9819999999999999 0.7839999999999994 # O49
+ 0.2640000000000001 0.9130000000000001 0.9819999999999999 # O50
+ 0.1040000000000000 0.4819999999999999 0.2839999999999999 # O51
+ 0.2640000000000001 0.4130000000000002 0.4820000000000003 # O52
+ 0.6040000000000001 0.9819999999999999 0.2839999999999999 # O53
+ 0.7640000000000001 0.9130000000000001 0.4820000000000003 # O54
+ 0.6040000000000001 0.4819999999999999 0.7839999999999994 # O55
+ 0.7640000000000001 0.4130000000000002 0.9819999999999999 # O56
+ 0.8959999999999997 0.0180000000000001 0.7839999999999994 # O57
+ 0.7360000000000000 0.0870000000000002 0.9819999999999999 # O58
+ 0.8959999999999997 0.5180000000000000 0.2839999999999999 # O59
+ 0.7360000000000000 0.5870000000000002 0.4820000000000003 # O60
+ 0.3960000000000000 0.0180000000000001 0.2839999999999999 # O61
+ 0.2360000000000000 0.0870000000000002 0.4820000000000003 # O62
+ 0.3960000000000000 0.5180000000000000 0.7839999999999994 # O63
+ 0.2360000000000000 0.5870000000000002 0.9819999999999999 # O64
diff --git a/test/data/orthorhombic/POSCAR-023 b/test/data/orthorhombic/POSCAR-023
new file mode 100644
index 0000000..0b7ea38
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-023
@@ -0,0 +1,73 @@
+$cell vectors
+1.0
+ 10.1739952127080233 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1749952122374818 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1739952127080233
+ 24 2 40
+Direct
+ 0.1821000000000001 0.3242000000000002 0.4841999999999999 # Bi1
+ 0.3237000000000002 0.4842999999999998 0.1818000000000001 # Bi2
+ 0.4839999999999999 0.1824000000000002 0.3239000000000001 # Bi3
+ 0.6820999999999998 0.8242000000000004 0.9841999999999996 # Bi4
+ 0.8236999999999999 0.9842999999999995 0.6817999999999999 # Bi5
+ 0.9839999999999995 0.6823999999999999 0.8239000000000000 # Bi6
+ 0.8179000000000000 0.6757999999999997 0.4841999999999999 # Bi7
+ 0.6762999999999999 0.5157000000000002 0.1818000000000001 # Bi8
+ 0.5160000000000002 0.8175999999999999 0.3239000000000001 # Bi9
+ 0.3178999999999997 0.1758000000000000 0.9841999999999996 # Bi10
+ 0.1763000000000002 0.0156999999999999 0.6817999999999999 # Bi11
+ 0.0159999999999999 0.3176000000000000 0.8239000000000000 # Bi12
+ 0.1821000000000001 0.6757999999999997 0.5157999999999997 # Bi13
+ 0.3237000000000002 0.5157000000000002 0.8181999999999999 # Bi14
+ 0.4839999999999999 0.8175999999999999 0.6760999999999999 # Bi15
+ 0.6820999999999998 0.1758000000000000 0.0157999999999999 # Bi16
+ 0.8236999999999999 0.0156999999999999 0.3182000000000001 # Bi17
+ 0.9839999999999995 0.3176000000000000 0.1761000000000001 # Bi18
+ 0.8179000000000000 0.3242000000000002 0.5157999999999997 # Bi19
+ 0.6762999999999999 0.4843000000000003 0.8181999999999999 # Bi20
+ 0.5159999999999997 0.1824000000000002 0.6760999999999999 # Bi21
+ 0.3178999999999997 0.8241999999999999 0.0157999999999999 # Bi22
+ 0.1763000000000002 0.9842999999999995 0.3182000000000001 # Bi23
+ 0.0159999999999999 0.6823999999999999 0.1761000000000001 # Bi24
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ga1
+ 0.4999999999999998 0.4999999999999997 0.4999999999999998 # Ga2
+ 0.2449999999999999 0.3640000000000000 0.0100000000000000 # O1
+ 0.4879999999999999 0.7469999999999999 0.1360000000000001 # O2
+ 0.3080000000000002 0.3030000000000002 0.3069999999999997 # O3
+ 0.0979999999999999 0.0939999999999999 0.1010000000000001 # O4
+ 0.3700000000000001 0.0110000000000002 0.2459999999999998 # O5
+ 0.7450000000000002 0.8639999999999999 0.5099999999999997 # O6
+ 0.9879999999999997 0.2469999999999997 0.6359999999999998 # O7
+ 0.8079999999999999 0.8029999999999998 0.8069999999999995 # O8
+ 0.5980000000000001 0.5939999999999996 0.6009999999999999 # O9
+ 0.8699999999999999 0.5110000000000000 0.7460000000000000 # O10
+ 0.7549999999999996 0.6360000000000000 0.0100000000000000 # O11
+ 0.5120000000000001 0.2530000000000001 0.1360000000000001 # O12
+ 0.6919999999999998 0.6969999999999998 0.3069999999999997 # O13
+ -0.0979999999999999 -0.0939999999999999 0.1010000000000001 # O14
+ 0.6300000000000000 0.9889999999999998 0.2459999999999998 # O15
+ 0.2549999999999998 0.1360000000000003 0.5099999999999997 # O16
+ 0.0120000000000003 0.7529999999999998 0.6359999999999998 # O17
+ 0.1920000000000001 0.1970000000000001 0.8069999999999995 # O18
+ 0.4019999999999999 0.4060000000000003 0.6009999999999999 # O19
+ 0.1300000000000002 0.4890000000000000 0.7460000000000000 # O20
+ 0.2449999999999999 0.6360000000000000 0.9899999999999994 # O21
+ 0.4879999999999999 0.2530000000000001 0.8639999999999999 # O22
+ 0.3080000000000002 0.6969999999999998 0.6929999999999997 # O23
+ 0.0979999999999999 -0.0939999999999999 -0.1010000000000001 # O24
+ 0.3700000000000001 0.9889999999999998 0.7539999999999997 # O25
+ 0.7449999999999997 0.1360000000000003 0.4899999999999997 # O26
+ 0.9879999999999997 0.7529999999999998 0.3640000000000002 # O27
+ 0.8079999999999999 0.1970000000000001 0.1930000000000000 # O28
+ 0.5980000000000001 0.4060000000000003 0.3989999999999996 # O29
+ 0.8699999999999999 0.4890000000000000 0.2540000000000000 # O30
+ 0.7549999999999996 0.3640000000000000 0.9899999999999994 # O31
+ 0.5120000000000001 0.7469999999999999 0.8639999999999999 # O32
+ 0.6919999999999998 0.3030000000000002 0.6929999999999997 # O33
+ -0.0979999999999999 0.0939999999999999 -0.1010000000000001 # O34
+ 0.6300000000000000 0.0110000000000002 0.7539999999999997 # O35
+ 0.2549999999999998 0.8639999999999999 0.4899999999999997 # O36
+ 0.0119999999999998 0.2469999999999997 0.3640000000000002 # O37
+ 0.1920000000000001 0.8029999999999998 0.1930000000000000 # O38
+ 0.4019999999999999 0.5939999999999996 0.3989999999999996 # O39
+ 0.1300000000000002 0.5110000000000000 0.2540000000000000 # O40
diff --git a/test/data/orthorhombic/POSCAR-023-2 b/test/data/orthorhombic/POSCAR-023-2
new file mode 100644
index 0000000..e2a6d1a
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-023-2
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 8.3459960728583766 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 17.6459916968199053 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.0439971560455348
+ 6 2 12 8 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cs1
+ 0.0000000000000000 0.1871000000000002 0.5000000000000004 # Cs2
+ 0.5000000000000003 0.5000000000000000 0.5000000000000004 # Cs3
+ 0.5000000000000003 0.6871000000000003 0.0000000000000000 # Cs4
+ 0.0000000000000000 0.8129000000000002 0.5000000000000004 # Cs5
+ 0.5000000000000003 0.3129000000000001 0.0000000000000000 # Cs6
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # V1
+ 0.5000000000000003 0.0000000000000000 0.5000000000000004 # V2
+ 0.2420000000000003 0.1574000000000002 0.9970000000000002 # Cl1
+ 0.2164000000000003 0.0000000000000000 0.5000000000000004 # Cl2
+ 0.7420000000000007 0.6574000000000000 0.4969999999999998 # Cl3
+ -0.2835999999999999 0.5000000000000000 0.0000000000000000 # Cl4
+ 0.7580000000000002 0.8426000000000001 0.9970000000000002 # Cl5
+ 0.7836000000000004 0.0000000000000000 0.5000000000000004 # Cl6
+ 0.2579999999999999 0.3426000000000001 0.4969999999999998 # Cl7
+ 0.2835999999999999 0.5000000000000000 0.0000000000000000 # Cl8
+ 0.2420000000000003 0.8426000000000001 0.0029999999999997 # Cl9
+ 0.7420000000000000 0.3426000000000001 0.5030000000000001 # Cl10
+ 0.7580000000000002 0.1573999999999999 0.0029999999999997 # Cl11
+ 0.2579999999999999 0.6574000000000000 0.5030000000000001 # Cl12
+ 0.0000000000000000 0.4205999999999999 0.2284000000000001 # O1
+ 0.5000000000000003 -0.0794000000000001 0.7284000000000005 # O2
+ 0.0000000000000000 0.5794000000000002 0.2284000000000001 # O3
+ 0.5000000000000003 0.0794000000000001 0.7284000000000005 # O4
+ 0.0000000000000000 0.5794000000000002 -0.2284000000000001 # O5
+ 0.5000000000000003 0.0794000000000001 0.2716000000000003 # O6
+ 0.0000000000000000 0.4205999999999999 -0.2284000000000001 # O7
+ 0.5000000000000003 -0.0794000000000001 0.2716000000000003 # O8
+ -0.0939999999999999 0.3968000000000001 0.3005000000000002 # H1
+ 0.0933000000000003 0.3982999999999999 0.3171999999999996 # H2
+ 0.4060000000000003 -0.1032000000000000 0.8005000000000007 # H3
+ 0.5932999999999999 -0.1017000000000001 0.8172000000000000 # H4
+ 0.0939999999999999 0.6032000000000000 0.3005000000000002 # H5
+ -0.0932999999999997 0.6017000000000001 0.3171999999999996 # H6
+ 0.5940000000000002 0.1032000000000000 0.8005000000000007 # H7
+ 0.4067000000000000 0.1017000000000001 0.8172000000000000 # H8
+ -0.0939999999999999 0.6032000000000000 -0.3005000000000002 # H9
+ 0.0933000000000003 0.6017000000000001 -0.3171999999999996 # H10
+ 0.4060000000000003 0.1032000000000000 0.1995000000000003 # H11
+ 0.5932999999999999 0.1017000000000001 0.1827999999999999 # H12
+ 0.0939999999999999 0.3968000000000001 -0.3005000000000002 # H13
+ -0.0932999999999997 0.3982999999999999 -0.3171999999999996 # H14
+ 0.5940000000000002 -0.1032000000000000 0.1995000000000003 # H15
+ 0.4067000000000000 -0.1017000000000001 0.1827999999999999 # H16
diff --git a/test/data/orthorhombic/POSCAR-024 b/test/data/orthorhombic/POSCAR-024
new file mode 100644
index 0000000..dedf38d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-024
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 7.0509966822099734 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.9679953096396261 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.2849965721032000
+ 8 4 4 28
+Direct
+ 0.2500000000000002 0.2502999999999999 0.0000000000000000 # Na1
+ 0.9980000000000000 0.4999999999999998 0.2499999999999996 # Na2
+ 0.7499999999999998 0.7503000000000002 0.5000000000000000 # Na3
+ 0.4980000000000004 0.0000000000000000 0.7499999999999997 # Na4
+ 0.7499999999999998 0.2497000000000000 0.0000000000000000 # Na5
+ 0.0020000000000000 0.0000000000000000 0.2499999999999996 # Na6
+ 0.2500000000000002 0.7496999999999998 0.5000000000000000 # Na7
+ 0.5020000000000003 0.5000000000000003 0.7499999999999997 # Na8
+ 0.2500000000000002 0.2506000000000000 0.5000000000000000 # Mg1
+ 0.7499999999999998 0.7505999999999998 0.0000000000000000 # Mg2
+ 0.7499999999999998 0.2494000000000003 0.5000000000000000 # Mg3
+ 0.2500000000000002 0.7494000000000001 0.0000000000000000 # Mg4
+ 0.0000000000000000 0.5000000000000003 0.7499999999999997 # Al1
+ 0.4999999999999996 0.0000000000000000 0.2499999999999996 # Al2
+ 0.0000000000000000 0.0000000000000000 0.7499999999999997 # Al3
+ 0.5000000000000003 0.4999999999999998 0.2499999999999996 # Al4
+ 0.0000000000000000 0.2500000000000002 0.3863000000000001 # F1
+ 0.9990000000000000 0.4147999999999999 0.9708999999999997 # F2
+ 0.1830000000000001 0.3858999999999999 0.6817999999999994 # F3
+ 0.3150000000000002 0.3888000000000000 0.3208999999999996 # F4
+ 0.5000000000000003 0.7500000000000000 0.8863000000000001 # F5
+ 0.4989999999999996 0.9148000000000003 0.4708999999999997 # F6
+ 0.6829999999999997 0.8858999999999998 0.1818000000000001 # F7
+ 0.8149999999999998 0.8888000000000004 0.8208999999999996 # F8
+ 0.0010000000000000 0.0851999999999999 0.9708999999999997 # F9
+ 0.8169999999999998 0.1140999999999999 0.6817999999999994 # F10
+ 0.6849999999999997 0.1111999999999998 0.3208999999999996 # F11
+ 0.5010000000000004 0.5851999999999997 0.4708999999999997 # F12
+ 0.3170000000000002 0.6141000000000002 0.1818000000000001 # F13
+ 0.1850000000000002 0.6112000000000002 0.8208999999999996 # F14
+ 0.0000000000000000 0.7500000000000000 0.1136999999999999 # F15
+ 0.9990000000000000 0.5851999999999997 0.5290999999999995 # F16
+ 0.1830000000000001 0.6141000000000002 0.8181999999999999 # F17
+ 0.3150000000000002 0.6112000000000002 0.1791000000000003 # F18
+ 0.5000000000000003 0.2500000000000002 0.6136999999999999 # F19
+ 0.4989999999999996 0.0851999999999999 0.0291000000000003 # F20
+ 0.6829999999999997 0.1140999999999999 0.3181999999999999 # F21
+ 0.8149999999999998 0.1111999999999998 0.6790999999999996 # F22
+ 0.5010000000000004 0.4147999999999999 0.0291000000000003 # F23
+ 0.3170000000000002 0.3858999999999999 0.3181999999999999 # F24
+ 0.1850000000000002 0.3888000000000000 0.6790999999999996 # F25
+ 0.0010000000000000 0.9148000000000003 0.5290999999999995 # F26
+ 0.8169999999999998 0.8858999999999998 0.8181999999999999 # F27
+ 0.6850000000000005 0.8888000000000004 0.1791000000000003 # F28
diff --git a/test/data/orthorhombic/POSCAR-024-2 b/test/data/orthorhombic/POSCAR-024-2
new file mode 100644
index 0000000..8f9c86a
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-024-2
@@ -0,0 +1,111 @@
+$cell vectors
+1.0
+ 15.8719925315610091 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 15.9219925080339237 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8849939370692823
+ 8 80 16
+Direct
+ 0.5000000000000001 0.2500000000000001 0.8740999999999998 # Pd1
+ 0.5000000000000001 0.7499999999999998 0.1255000000000001 # Pd2
+ 0.0000000000000000 0.7499999999999998 0.3741000000000000 # Pd3
+ 0.9999999999999996 0.2500000000000001 0.6254999999999997 # Pd4
+ 0.5000000000000001 0.7500000000000001 0.6258999999999999 # Pd5
+ 0.5000000000000001 0.2500000000000001 0.3745000000000001 # Pd6
+ 0.0000000000000000 0.2499999999999998 0.1259000000000002 # Pd7
+ 0.9999999999999999 0.7500000000000001 0.8744999999999997 # Pd8
+ 0.4404000000000001 0.3931000000000000 0.8712999999999997 # Se1
+ 0.5490000000000002 0.4878999999999999 0.8394999999999998 # Se2
+ 0.6432000000000001 0.3090000000000000 0.8777000000000001 # Se3
+ 0.7383999999999996 0.2014000000000000 0.9086999999999998 # Se4
+ 0.5111999999999999 0.5960999999999999 0.1305000000000002 # Se5
+ 0.8567999999999996 0.4439000000000001 0.5698000000000000 # Se6
+ 0.7640999999999999 0.4321999999999998 0.7126999999999998 # Se7
+ 0.6546000000000000 0.7592000000000001 0.1210999999999998 # Se8
+ 0.6955999999999999 0.8936999999999998 0.1818999999999999 # Se9
+ 0.8177999999999999 0.0136000000000000 0.5387000000000000 # Se10
+ 0.9403999999999999 0.8930999999999999 0.3712999999999999 # Se11
+ 0.0490000000000000 0.9878999999999998 0.3395000000000001 # Se12
+ 0.1432000000000002 0.8089999999999999 0.3776999999999999 # Se13
+ 0.2383999999999999 0.7013999999999999 0.4087000000000002 # Se14
+ 0.0112000000000001 0.0960999999999999 0.6304999999999998 # Se15
+ 0.3568000000000000 0.9438999999999997 0.0697999999999999 # Se16
+ 0.2640999999999998 0.9321999999999997 0.2126999999999997 # Se17
+ 0.1545999999999995 0.2592000000000000 0.6210999999999999 # Se18
+ 0.1955999999999995 0.3936999999999999 0.6818999999999997 # Se19
+ 0.3178000000000000 0.5136000000000001 0.0386999999999997 # Se20
+ 0.5595999999999999 0.1068999999999999 0.8712999999999997 # Se21
+ 0.4510000000000001 0.0121000000000000 0.8394999999999998 # Se22
+ 0.3568000000000000 0.1909999999999999 0.8777000000000001 # Se23
+ 0.2616000000000002 0.2985999999999999 0.9086999999999998 # Se24
+ 0.4888000000000000 0.9038999999999998 0.1305000000000002 # Se25
+ 0.1431999999999999 0.0561000000000001 0.5698000000000000 # Se26
+ 0.2359000000000000 0.0678000000000002 0.7126999999999998 # Se27
+ 0.3454000000000000 0.7407999999999998 0.1210999999999998 # Se28
+ 0.3043999999999999 0.6063000000000000 0.1818999999999999 # Se29
+ 0.1821999999999998 0.4863999999999999 0.5387000000000000 # Se30
+ 0.0596000000000000 0.6068999999999998 0.3712999999999999 # Se31
+ 0.9509999999999998 0.5120999999999999 0.3395000000000001 # Se32
+ 0.8567999999999999 0.6909999999999997 0.3776999999999999 # Se33
+ 0.7615999999999999 0.7985999999999998 0.4087000000000002 # Se34
+ 0.9887999999999998 0.4039000000000000 0.6304999999999998 # Se35
+ 0.6432000000000001 0.5560999999999999 0.0697999999999999 # Se36
+ 0.7359000000000001 0.5678000000000001 0.2126999999999997 # Se37
+ 0.8454000000000000 0.2408000000000002 0.6210999999999999 # Se38
+ 0.8044000000000001 0.1063000000000000 0.6818999999999997 # Se39
+ 0.6822000000000003 0.9863999999999999 0.0386999999999997 # Se40
+ 0.4404000000000001 0.6068999999999998 0.6286999999999999 # Se41
+ 0.5490000000000002 0.5120999999999999 0.6604999999999999 # Se42
+ 0.6432000000000001 0.6910000000000001 0.6222999999999995 # Se43
+ 0.7383999999999996 0.7985999999999998 0.5912999999999997 # Se44
+ 0.5111999999999999 0.4039000000000000 0.3695000000000000 # Se45
+ 0.8567999999999996 0.5560999999999999 0.9302000000000000 # Se46
+ 0.7640999999999999 0.5678000000000001 0.7872999999999998 # Se47
+ 0.6546000000000000 0.2408000000000002 0.3788999999999999 # Se48
+ 0.6955999999999999 0.1063000000000000 0.3180999999999999 # Se49
+ 0.8178000000000002 0.9863999999999999 0.9612999999999996 # Se50
+ 0.9403999999999999 0.1068999999999999 0.1287000000000002 # Se51
+ 0.0490000000000000 0.0121000000000000 0.1604999999999996 # Se52
+ 0.1431999999999999 0.1909999999999999 0.1222999999999999 # Se53
+ 0.2383999999999999 0.2985999999999999 0.0913000000000000 # Se54
+ 0.0112000000000001 0.9038999999999998 0.8694999999999998 # Se55
+ 0.3568000000000000 0.0561000000000001 0.4301999999999999 # Se56
+ 0.2640999999999998 0.0678000000000002 0.2873000000000001 # Se57
+ 0.1545999999999995 0.7408000000000001 0.8789000000000000 # Se58
+ 0.1955999999999995 0.6063000000000000 0.8181000000000000 # Se59
+ 0.3178000000000000 0.4863999999999999 0.4612999999999999 # Se60
+ 0.0596000000000000 0.3931000000000000 0.1287000000000002 # Se61
+ 0.9509999999999998 0.4878999999999999 0.1604999999999996 # Se62
+ 0.8567999999999999 0.3090000000000000 0.1222999999999999 # Se63
+ 0.7615999999999999 0.2014000000000000 0.0913000000000000 # Se64
+ 0.9887999999999998 0.5960999999999999 0.8694999999999998 # Se65
+ 0.6432000000000001 0.4439000000000001 0.4301999999999999 # Se66
+ 0.7359000000000001 0.4321999999999998 0.2873000000000001 # Se67
+ 0.8454000000000000 0.7592000000000001 0.8789000000000000 # Se68
+ 0.8044000000000001 0.8936999999999998 0.8181000000000000 # Se69
+ 0.6821999999999999 0.0136000000000000 0.4612999999999999 # Se70
+ 0.5595999999999999 0.8930999999999999 0.6286999999999999 # Se71
+ 0.4510000000000001 0.9878999999999998 0.6604999999999999 # Se72
+ 0.3568000000000002 0.8089999999999999 0.6222999999999995 # Se73
+ 0.2616000000000002 0.7013999999999999 0.5912999999999997 # Se74
+ 0.4888000000000000 0.0960999999999999 0.3695000000000000 # Se75
+ 0.1432000000000002 0.9439000000000001 0.9302000000000000 # Se76
+ 0.2359000000000000 0.9322000000000001 0.7872999999999998 # Se77
+ 0.3454000000000000 0.2592000000000000 0.3788999999999999 # Se78
+ 0.3043999999999999 0.3936999999999999 0.3180999999999999 # Se79
+ 0.1821999999999998 0.5136000000000001 0.9612999999999996 # Se80
+ 0.0944999999999999 0.8480999999999996 0.6303999999999997 # K1
+ 0.4032999999999999 0.6590000000000000 0.8702000000000000 # K2
+ 0.5945000000000000 0.3481000000000001 0.1303999999999999 # K3
+ 0.9032999999999999 0.1590000000000001 0.3702000000000000 # K4
+ 0.9055000000000001 0.6519000000000001 0.6303999999999997 # K5
+ 0.5966999999999999 0.8410000000000001 0.8702000000000000 # K6
+ 0.4054999999999998 0.1519000000000002 0.1303999999999999 # K7
+ 0.0967000000000001 0.3409999999999998 0.3702000000000000 # K8
+ 0.0944999999999999 0.1519000000000002 0.8695999999999996 # K9
+ 0.4032999999999999 0.3409999999999998 0.6297999999999999 # K10
+ 0.5945000000000000 0.6519000000000001 0.3695999999999999 # K11
+ 0.9032999999999999 0.8409999999999997 0.1298000000000001 # K12
+ 0.4054999999999998 0.8480999999999996 0.3695999999999999 # K13
+ 0.0967000000000001 0.6590000000000000 0.1298000000000001 # K14
+ 0.9055000000000001 0.3481000000000001 0.8695999999999996 # K15
+ 0.5966999999999999 0.1590000000000001 0.6297999999999999 # K16
diff --git a/test/data/orthorhombic/POSCAR-025 b/test/data/orthorhombic/POSCAR-025
new file mode 100644
index 0000000..f36b4df
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-025
@@ -0,0 +1,9 @@
+$cell vectors
+1.0
+ 2.9189986264885719 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.6179973564963293 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.0659985573189306
+ 1 1
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # In1
+ 0.0000000000000000 0.5000000000000003 0.2499999999999991 # Sb1
diff --git a/test/data/orthorhombic/POSCAR-025-2 b/test/data/orthorhombic/POSCAR-025-2
new file mode 100644
index 0000000..04e8dff
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-025-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 8.2032961400046887 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7675972861032818 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8488972478482379
+ 2 2 4 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.9499999999999995 # W1
+ 0.5000000000000000 0.5000000000000000 0.4999999999999995 # W2
+ 0.0000000000000000 0.5000000000000000 0.4500000000000000 # Ca1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Ca2
+ 0.2600000000000003 0.0000000000000000 0.4999999999999995 # Sr1
+ 0.2500000000000000 0.5000000000000000 0.0099999999999998 # Sr2
+ 0.7400000000000003 0.0000000000000000 0.4999999999999995 # Sr3
+ 0.7500000000000000 0.5000000000000000 0.0099999999999998 # Sr4
+ 0.0000000000000000 0.2300000000000006 1.1799999999999993 # O1
+ 0.0000000000000000 -0.2299999999999997 0.7199999999999998 # O2
+ 0.5000000000000000 0.2700000000000004 0.2699999999999997 # O3
+ 0.5000000000000000 0.2700000000000004 0.7299999999999994 # O4
+ 0.2300000000000000 0.0000000000000000 0.9499999999999995 # O5
+ 0.2700000000000000 0.5000000000000000 0.4999999999999995 # O6
+ 0.0000000000000000 -0.2299999999999997 1.1799999999999993 # O7
+ 0.0000000000000000 0.2299999999999997 0.7199999999999998 # O8
+ 0.5000000000000000 0.7299999999999998 0.2699999999999997 # O9
+ 0.5000000000000000 0.7299999999999998 0.7299999999999994 # O10
+ -0.2300000000000000 0.0000000000000000 0.9499999999999995 # O11
+ 0.7299999999999999 0.5000000000000000 0.4999999999999995 # O12
diff --git a/test/data/orthorhombic/POSCAR-026 b/test/data/orthorhombic/POSCAR-026
new file mode 100644
index 0000000..98baf9b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-026
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 11.1499947534592501 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.5099945840642164 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.0099981131274962
+ 6 2 2 12
+Direct
+ 0.9190000000000002 0.0329999999999999 0.0000000000000000 # Bi1
+ 0.4340000000000002 0.4909999999999998 0.5000000000000000 # Bi2
+ 0.2080000000000001 0.1619999999999999 0.5000000000000000 # Bi3
+ 0.0809999999999998 0.5330000000000001 0.0000000000000000 # Bi4
+ 0.5660000000000002 0.9909999999999999 0.5000000000000000 # Bi5
+ 0.7920000000000004 0.6620000000000000 0.5000000000000000 # Bi6
+ 0.7480000000000003 0.3360000000000002 0.0000000000000000 # Pb1
+ 0.2520000000000002 0.8360000000000000 0.0000000000000000 # Pb2
+ 0.4440000000000002 0.2490000000000000 0.0000000000000000 # Cu1
+ 0.5560000000000002 0.7489999999999998 0.0000000000000000 # Cu2
+ 0.8740000000000002 0.4510000000000001 0.5000000000000000 # S1
+ 0.3560000000000001 0.0589999999999999 0.0000000000000000 # S2
+ 0.8560000000000000 0.1080000000000001 0.5000000000000000 # S3
+ 0.2960000000000001 0.3939999999999998 0.0000000000000000 # S4
+ 0.0340000000000000 0.2269999999999998 0.0000000000000000 # S5
+ 0.5640000000000002 0.2990000000000000 0.5000000000000000 # S6
+ 0.1260000000000000 0.9510000000000000 0.5000000000000000 # S7
+ 0.6440000000000002 0.5589999999999996 0.0000000000000000 # S8
+ 0.1440000000000000 0.6079999999999998 0.5000000000000000 # S9
+ 0.7040000000000003 0.8940000000000002 0.0000000000000000 # S10
+ 0.9659999999999999 0.7270000000000001 0.0000000000000000 # S11
+ 0.4360000000000001 0.7989999999999998 0.5000000000000000 # S12
diff --git a/test/data/orthorhombic/POSCAR-026-2 b/test/data/orthorhombic/POSCAR-026-2
new file mode 100644
index 0000000..303088d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-026-2
@@ -0,0 +1,41 @@
+$cell vectors
+1.0
+ 8.6489959302842170 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.1759961528504821 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4452964966753532
+ 2 6 26
+Direct
+ 0.6959000000000006 0.4999999999999999 0.1041000000000000 # Rb1
+ 0.1958999999999999 0.4999999999999999 0.8958999999999999 # Rb2
+ 0.0000000000000000 0.0000000000000000 0.1081999999999998 # Th1
+ 0.8343000000000005 0.2528000000000000 0.6020000000000000 # Th2
+ 0.5000000000000000 0.0000000000000000 0.8918000000000001 # Th3
+ 0.3343000000000003 0.7472000000000000 0.3979999999999999 # Th4
+ 0.3343000000000003 0.2528000000000000 0.3979999999999999 # Th5
+ 0.8343000000000005 0.7472000000000000 0.6020000000000000 # Th6
+ 0.8480000000000003 0.4999999999999999 0.4530000000000001 # F1
+ 0.5960000000000005 0.3020000000000002 0.4520000000000000 # F2
+ 0.1440000000000000 0.7439999999999998 0.1729999999999998 # F3
+ 0.4570000000000001 0.8030000000000000 0.1110000000000000 # F4
+ 0.8650000000000005 0.1760000000000003 0.3039999999999997 # F5
+ 0.3660000000000000 0.4999999999999999 0.2299999999999999 # F6
+ 0.7370000000000004 0.0000000000000000 0.0370000000000003 # F7
+ 0.1790000000000001 0.0000000000000000 0.3639999999999997 # F8
+ 0.4600000000000003 0.0000000000000000 0.4089999999999998 # F9
+ 0.3480000000000002 0.4999999999999999 0.5469999999999998 # F10
+ 0.0960000000000004 0.6979999999999995 0.5479999999999999 # F11
+ 0.6440000000000001 0.2560000000000001 0.8270000000000002 # F12
+ 0.9570000000000002 0.1969999999999998 0.8889999999999998 # F13
+ 0.3649999999999999 0.8239999999999996 0.6959999999999996 # F14
+ 0.8660000000000001 0.4999999999999999 0.7700000000000000 # F15
+ 0.2370000000000002 0.0000000000000000 0.9629999999999996 # F16
+ 0.6790000000000002 0.0000000000000000 0.6359999999999996 # F17
+ 0.9600000000000004 0.0000000000000000 0.5909999999999995 # F18
+ 0.0960000000000004 0.3020000000000002 0.5479999999999999 # F19
+ 0.6440000000000001 0.7439999999999998 0.8270000000000002 # F20
+ 0.9570000000000002 0.8030000000000000 0.8889999999999998 # F21
+ 0.3649999999999999 0.1760000000000003 0.6959999999999996 # F22
+ 0.5960000000000005 0.6979999999999995 0.4520000000000000 # F23
+ 0.1440000000000000 0.2560000000000001 0.1729999999999998 # F24
+ 0.4570000000000001 0.1969999999999998 0.1110000000000000 # F25
+ 0.8650000000000005 0.8239999999999996 0.3039999999999997 # F26
diff --git a/test/data/orthorhombic/POSCAR-027 b/test/data/orthorhombic/POSCAR-027
new file mode 100644
index 0000000..7be0468
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-027
@@ -0,0 +1,115 @@
+$cell vectors
+1.0
+ 13.0279938697818114 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.0369938655469326 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.1609956893668372
+ 4 64 16 24
+Direct
+ 0.2536000000000001 0.2486999999999999 0.9821000000000000 # S1
+ 0.7463999999999998 0.7513000000000002 0.9821000000000000 # S2
+ 0.7463999999999998 0.2486999999999999 0.4821000000000001 # S3
+ 0.2536000000000001 0.7512999999999997 0.4821000000000001 # S4
+ 0.7289999999999999 0.3170000000000002 0.6120000000000000 # O1
+ 0.8379999999999995 0.1840000000000000 0.4600000000000000 # O2
+ 0.7700000000000001 0.3360000000000000 0.3789999999999996 # O3
+ 0.6509999999999996 0.2010000000000000 0.4169999999999998 # O4
+ 0.3999999999999997 0.2459999999999999 0.4379999999999997 # O5
+ 0.5669999999999997 0.4089999999999999 0.1399999999999998 # O6
+ 0.5549999999999999 0.1050000000000000 0.1550000000000002 # O7
+ 0.7549999999999997 0.5900000000000000 0.5039999999999996 # O8
+ 0.5959999999999996 0.4430000000000001 0.8259999999999997 # O9
+ 0.9069999999999998 0.4460000000000000 0.8020000000000000 # O10
+ 0.7570000000000000 0.9019999999999999 0.5359999999999997 # O11
+ 0.9009999999999999 0.0340000000000001 0.8239999999999998 # O12
+ 0.6079999999999999 0.0329999999999999 0.8539999999999995 # O13
+ 0.1030000000000000 0.2470000000000002 0.3909999999999997 # O14
+ 0.9529999999999998 0.1149999999999998 0.1250000000000000 # O15
+ 0.9479999999999993 0.3889999999999998 0.1100000000000002 # O16
+ 0.2710000000000002 0.6829999999999999 0.6120000000000000 # O17
+ 0.1620000000000001 0.8159999999999999 0.4600000000000000 # O18
+ 0.2300000000000000 0.6639999999999999 0.3789999999999996 # O19
+ 0.3489999999999999 0.7989999999999999 0.4169999999999998 # O20
+ 0.6000000000000000 0.7539999999999998 0.4379999999999997 # O21
+ 0.4329999999999999 0.5909999999999997 0.1399999999999998 # O22
+ 0.4449999999999997 0.8949999999999998 0.1550000000000002 # O23
+ 0.2449999999999999 0.4100000000000002 0.5039999999999996 # O24
+ 0.4040000000000003 0.5570000000000001 0.8259999999999997 # O25
+ 0.0930000000000001 0.5540000000000002 0.8020000000000000 # O26
+ 0.2429999999999995 0.0979999999999998 0.5359999999999997 # O27
+ 0.0989999999999998 0.9660000000000000 0.8239999999999998 # O28
+ 0.3920000000000000 0.9669999999999999 0.8539999999999995 # O29
+ 0.8970000000000000 0.7529999999999999 0.3909999999999997 # O30
+ 0.0469999999999999 0.8850000000000000 0.1250000000000000 # O31
+ 0.0520000000000003 0.6109999999999998 0.1100000000000002 # O32
+ 0.2710000000000002 0.3170000000000002 1.1119999999999999 # O33
+ 0.1620000000000001 0.1840000000000000 0.9599999999999994 # O34
+ 0.2300000000000000 0.3360000000000000 0.8789999999999996 # O35
+ 0.3489999999999999 0.2010000000000000 0.9169999999999997 # O36
+ 0.6000000000000000 0.2459999999999999 0.9379999999999995 # O37
+ 0.4329999999999999 0.4089999999999999 0.6399999999999998 # O38
+ 0.4449999999999997 0.1050000000000000 0.6549999999999996 # O39
+ 0.2449999999999999 0.5900000000000000 0.0040000000000002 # O40
+ 0.4039999999999999 0.4430000000000001 0.3260000000000003 # O41
+ 0.0930000000000001 0.4460000000000000 0.3020000000000000 # O42
+ 0.2429999999999999 0.9019999999999999 0.0360000000000003 # O43
+ 0.0989999999999998 0.0340000000000001 0.3239999999999998 # O44
+ 0.3919999999999996 0.0329999999999999 0.3540000000000001 # O45
+ 0.8970000000000000 0.2470000000000002 0.8909999999999998 # O46
+ 0.0469999999999999 0.1149999999999998 0.6250000000000000 # O47
+ 0.0519999999999999 0.3889999999999998 0.6099999999999995 # O48
+ 0.7289999999999999 0.6829999999999999 1.1119999999999999 # O49
+ 0.8380000000000000 0.8159999999999999 0.9599999999999994 # O50
+ 0.7700000000000001 0.6640000000000001 0.8789999999999996 # O51
+ 0.6509999999999996 0.7989999999999999 0.9169999999999997 # O52
+ 0.4000000000000000 0.7539999999999998 0.9379999999999995 # O53
+ 0.5670000000000002 0.5910000000000002 0.6399999999999998 # O54
+ 0.5549999999999999 0.8949999999999998 0.6549999999999996 # O55
+ 0.7549999999999997 0.4099999999999998 0.0040000000000002 # O56
+ 0.5959999999999996 0.5570000000000001 0.3260000000000003 # O57
+ 0.9069999999999998 0.5540000000000002 0.3020000000000000 # O58
+ 0.7570000000000000 0.0979999999999998 0.0360000000000003 # O59
+ 0.9009999999999999 0.9660000000000000 0.3239999999999998 # O60
+ 0.6079999999999999 0.9669999999999999 0.3540000000000001 # O61
+ 0.1030000000000000 0.7529999999999999 0.8909999999999998 # O62
+ 0.9529999999999998 0.8850000000000000 0.6250000000000000 # O63
+ 0.9479999999999993 0.6109999999999998 0.6099999999999995 # O64
+ 0.0580000000000000 0.2510000000000000 0.1490000000000002 # Ca1
+ 0.2369999999999998 0.9260000000000002 0.2859999999999996 # Ca2
+ 0.2570000000000001 0.5120000000000002 0.2540000000000002 # Ca3
+ 0.4829999999999998 0.2530000000000001 0.2280000000000002 # Ca4
+ 0.9419999999999996 0.7489999999999997 0.1490000000000002 # Ca5
+ 0.7629999999999998 0.0739999999999999 0.2859999999999996 # Ca6
+ 0.7429999999999999 0.4879999999999998 0.2540000000000002 # Ca7
+ 0.5170000000000001 0.7470000000000000 0.2280000000000002 # Ca8
+ 0.9419999999999996 0.2510000000000000 0.6489999999999996 # Ca9
+ 0.7629999999999998 0.9260000000000002 0.7859999999999996 # Ca10
+ 0.7429999999999999 0.5120000000000002 0.7539999999999996 # Ca11
+ 0.5169999999999998 0.2530000000000001 0.7279999999999995 # Ca12
+ 0.0580000000000000 0.7489999999999997 0.6489999999999996 # Ca13
+ 0.2369999999999998 0.0739999999999999 0.7859999999999996 # Ca14
+ 0.2570000000000001 0.4879999999999998 0.7539999999999996 # Ca15
+ 0.4829999999999998 0.7470000000000000 0.7279999999999995 # Ca16
+ 0.5000000000000000 0.4999999999999998 0.2300000000000000 # Al1
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # Al2
+ 0.0000000000000000 0.0000000000000000 0.2049999999999999 # Al3
+ 0.9999999999999997 0.4999999999999998 0.1999999999999997 # Al4
+ 0.6270000000000000 0.1210000000000002 0.9959999999999994 # Al5
+ 0.1220000000000000 0.6250000000000000 0.9489999999999997 # Al6
+ 0.3690000000000002 0.6290000000000001 0.9800000000000000 # Al7
+ 0.1220000000000000 0.8759999999999999 0.9599999999999994 # Al8
+ 0.3730000000000000 0.8789999999999998 0.9959999999999994 # Al9
+ 0.8780000000000000 0.3750000000000002 0.9489999999999997 # Al10
+ 0.6309999999999999 0.3709999999999999 0.9800000000000000 # Al11
+ 0.8780000000000000 0.1240000000000002 0.9599999999999994 # Al12
+ 0.5000000000000000 0.4999999999999998 0.7299999999999999 # Al13
+ 0.5000000000000000 0.0000000000000000 0.7499999999999999 # Al14
+ 0.0000000000000000 0.0000000000000000 0.7050000000000000 # Al15
+ 0.9999999999999997 0.4999999999999998 0.6999999999999996 # Al16
+ 0.3729999999999995 0.1210000000000002 0.4959999999999997 # Al17
+ 0.8780000000000000 0.6250000000000000 0.4489999999999998 # Al18
+ 0.6309999999999999 0.6290000000000001 0.4800000000000000 # Al19
+ 0.8780000000000000 0.8759999999999999 0.4600000000000000 # Al20
+ 0.6270000000000000 0.8789999999999998 0.4959999999999997 # Al21
+ 0.1219999999999996 0.3750000000000002 0.4489999999999998 # Al22
+ 0.3689999999999998 0.3709999999999999 0.4800000000000000 # Al23
+ 0.1219999999999996 0.1239999999999998 0.4600000000000000 # Al24
diff --git a/test/data/orthorhombic/POSCAR-027-2 b/test/data/orthorhombic/POSCAR-027-2
new file mode 100644
index 0000000..617c8df
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-027-2
@@ -0,0 +1,151 @@
+$cell vectors
+1.0
+ 13.7939935093468105 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 23.8999887540516731 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4167960395440211
+ 24 24 96
+Direct
+ 0.2940000000000002 0.1690000000000000 0.1299999999999999 # P1
+ 0.6110000000000001 0.0630000000000001 0.1360000000000001 # P2
+ 0.1070000000000000 0.7739999999999997 0.1219999999999999 # P3
+ 0.7889999999999998 0.6649999999999999 0.1299999999999999 # P4
+ 0.1070000000000000 0.5599999999999999 0.1119999999999999 # P5
+ 0.6050000000000001 0.2729999999999999 0.1409999999999998 # P6
+ 0.7060000000000003 0.8309999999999998 0.1299999999999999 # P7
+ 0.3890000000000002 0.9370000000000001 0.1360000000000001 # P8
+ 0.8929999999999999 0.2260000000000001 0.1219999999999999 # P9
+ 0.2110000000000001 0.3350000000000000 0.1299999999999999 # P10
+ 0.8929999999999999 0.4400000000000000 0.1119999999999999 # P11
+ 0.3950000000000000 0.7269999999999998 0.1409999999999998 # P12
+ 0.7059999999999998 0.1690000000000000 0.6299999999999999 # P13
+ 0.3889999999999998 0.0630000000000001 0.6360000000000001 # P14
+ 0.8929999999999999 0.7739999999999997 0.6220000000000003 # P15
+ 0.2110000000000001 0.6649999999999999 0.6299999999999999 # P16
+ 0.8929999999999999 0.5599999999999999 0.6120000000000000 # P17
+ 0.3950000000000000 0.2729999999999999 0.6409999999999998 # P18
+ 0.2940000000000002 0.8309999999999998 0.6299999999999999 # P19
+ 0.6110000000000001 0.9370000000000001 0.6360000000000001 # P20
+ 0.1070000000000000 0.2260000000000001 0.6219999999999998 # P21
+ 0.7889999999999998 0.3350000000000000 0.6299999999999999 # P22
+ 0.1070000000000000 0.4400000000000000 0.6120000000000000 # P23
+ 0.6050000000000001 0.7269999999999998 0.6410000000000005 # P24
+ 0.2920000000000000 0.1690000000000000 0.4970000000000002 # Al1
+ 0.6110000000000001 0.0609999999999999 0.5170000000000001 # Al2
+ 0.1110000000000003 0.7739999999999997 0.5000000000000000 # Al3
+ 0.7880000000000003 0.6669999999999999 0.5030000000000003 # Al4
+ 0.1040000000000001 0.5609999999999998 0.4840000000000004 # Al5
+ 0.6080000000000003 0.2740000000000000 0.5119999999999997 # Al6
+ 0.7080000000000000 0.8309999999999998 0.4970000000000002 # Al7
+ 0.3890000000000002 0.9389999999999997 0.5170000000000001 # Al8
+ 0.8890000000000000 0.2260000000000001 0.5000000000000000 # Al9
+ 0.2120000000000001 0.3330000000000000 0.5030000000000003 # Al10
+ 0.8960000000000000 0.4390000000000000 0.4839999999999998 # Al11
+ 0.3920000000000001 0.7259999999999998 0.5119999999999997 # Al12
+ 0.7080000000000000 0.1690000000000000 0.9970000000000002 # Al13
+ 0.3889999999999998 0.0609999999999999 0.0170000000000001 # Al14
+ 0.8890000000000000 0.7739999999999997 0.0000000000000000 # Al15
+ 0.2120000000000001 0.6669999999999999 0.0030000000000004 # Al16
+ 0.8960000000000000 0.5610000000000001 0.9839999999999998 # Al17
+ 0.3920000000000001 0.2740000000000000 0.0119999999999998 # Al18
+ 0.2920000000000000 0.8309999999999998 0.9970000000000002 # Al19
+ 0.6110000000000001 0.9389999999999997 0.0170000000000001 # Al20
+ 0.1109999999999999 0.2260000000000001 0.0000000000000000 # Al21
+ 0.7879999999999999 0.3329999999999998 0.0030000000000004 # Al22
+ 0.1040000000000001 0.4390000000000000 0.9839999999999998 # Al23
+ 0.6080000000000003 0.7259999999999998 0.0119999999999998 # Al24
+ 0.3150000000000001 0.1080000000000001 0.1020000000000000 # O1
+ 0.3129999999999999 0.1770000000000000 0.2969999999999999 # O2
+ 0.1910000000000002 0.1809999999999999 0.0749999999999999 # O3
+ 0.3629999999999999 0.2059999999999999 0.0499999999999998 # O4
+ 0.6809999999999998 0.1029999999999999 0.0560000000000000 # O5
+ 0.6280000000000001 0.0689999999999999 0.3159999999999999 # O6
+ 0.6350000000000000 0.0030000000000000 0.0900000000000002 # O7
+ 0.5080000000000001 0.0780000000000000 0.0700000000000003 # O8
+ 0.0030000000000003 0.7889999999999996 0.0740000000000000 # O9
+ 0.1210000000000001 0.7829999999999999 0.2969999999999999 # O10
+ 0.1740000000000002 0.8159999999999997 0.0399999999999998 # O11
+ 0.1290000000000000 0.7159999999999995 0.0540000000000001 # O12
+ 0.8109999999999999 0.6080000000000000 0.0489999999999998 # O13
+ 0.8100000000000004 0.6600000000000000 0.3040000000000000 # O14
+ 0.6840000000000003 0.6820000000000001 0.1090000000000001 # O15
+ 0.8530000000000000 0.7079999999999997 0.0500000000000004 # O16
+ 0.1820000000000002 0.6039999999999998 0.0910000000000001 # O17
+ 0.0979999999999999 0.5589999999999998 0.2830000000000003 # O18
+ 0.1359999999999999 0.5039999999999998 0.0440000000000002 # O19
+ 0.0119999999999999 0.5779999999999998 0.0340000000000002 # O20
+ 0.5040000000000001 0.2879999999999999 0.0830000000000000 # O21
+ 0.6220000000000000 0.2879999999999999 0.3120000000000002 # O22
+ 0.6750000000000000 0.3140000000000001 0.0689999999999997 # O23
+ 0.6330000000000003 0.2140000000000000 0.1000000000000001 # O24
+ 0.6850000000000004 0.8919999999999999 0.1020000000000000 # O25
+ 0.6870000000000001 0.8230000000000000 0.2969999999999999 # O26
+ 0.8090000000000002 0.8189999999999998 0.0749999999999999 # O27
+ 0.6370000000000002 0.7939999999999999 0.0500000000000004 # O28
+ 0.3190000000000001 0.8969999999999998 0.0560000000000000 # O29
+ 0.3720000000000002 0.9309999999999999 0.3159999999999999 # O30
+ 0.3650000000000000 0.9970000000000001 0.0900000000000002 # O31
+ 0.4920000000000002 0.9219999999999997 0.0700000000000003 # O32
+ 0.9970000000000001 0.2109999999999999 0.0740000000000000 # O33
+ 0.8790000000000001 0.2170000000000000 0.2969999999999999 # O34
+ 0.8260000000000002 0.1839999999999999 0.0399999999999998 # O35
+ 0.8709999999999999 0.2840000000000000 0.0540000000000001 # O36
+ 0.1890000000000000 0.3920000000000000 0.0489999999999998 # O37
+ 0.1900000000000001 0.3399999999999999 0.3040000000000000 # O38
+ 0.3159999999999999 0.3179999999999999 0.1090000000000001 # O39
+ 0.1470000000000001 0.2920000000000000 0.0499999999999998 # O40
+ 0.8179999999999999 0.3959999999999999 0.0910000000000001 # O41
+ 0.9020000000000000 0.4409999999999998 0.2830000000000003 # O42
+ 0.8640000000000002 0.4960000000000000 0.0440000000000002 # O43
+ 0.9880000000000000 0.4220000000000000 0.0340000000000002 # O44
+ 0.4959999999999998 0.7119999999999997 0.0830000000000000 # O45
+ 0.3780000000000001 0.7119999999999997 0.3120000000000002 # O46
+ 0.3250000000000000 0.6859999999999998 0.0689999999999997 # O47
+ 0.3670000000000002 0.7860000000000000 0.1000000000000001 # O48
+ 0.6849999999999998 0.1080000000000001 0.6019999999999999 # O49
+ 0.6870000000000001 0.1770000000000000 0.7969999999999999 # O50
+ 0.8089999999999998 0.1810000000000001 0.5750000000000000 # O51
+ 0.6369999999999999 0.2059999999999999 0.5500000000000004 # O52
+ 0.3190000000000001 0.1030000000000001 0.5559999999999999 # O53
+ 0.3719999999999999 0.0689999999999999 0.8159999999999998 # O54
+ 0.3650000000000000 0.0030000000000000 0.5900000000000001 # O55
+ 0.4919999999999998 0.0780000000000000 0.5700000000000003 # O56
+ 0.9970000000000001 0.7889999999999996 0.5740000000000001 # O57
+ 0.8790000000000001 0.7829999999999999 0.7969999999999999 # O58
+ 0.8260000000000002 0.8159999999999997 0.5400000000000003 # O59
+ 0.8709999999999999 0.7159999999999995 0.5540000000000000 # O60
+ 0.1890000000000000 0.6080000000000000 0.5490000000000004 # O61
+ 0.1900000000000001 0.6600000000000000 0.8040000000000000 # O62
+ 0.3159999999999999 0.6820000000000001 0.6090000000000000 # O63
+ 0.1470000000000001 0.7079999999999997 0.5500000000000004 # O64
+ 0.8179999999999999 0.6039999999999998 0.5910000000000001 # O65
+ 0.9020000000000000 0.5589999999999998 0.7830000000000001 # O66
+ 0.8640000000000002 0.5039999999999998 0.5440000000000002 # O67
+ 0.9880000000000000 0.5779999999999998 0.5340000000000000 # O68
+ 0.4959999999999998 0.2879999999999999 0.5830000000000000 # O69
+ 0.3780000000000001 0.2879999999999999 0.8120000000000002 # O70
+ 0.3250000000000000 0.3140000000000001 0.5689999999999997 # O71
+ 0.3670000000000002 0.2140000000000000 0.6000000000000000 # O72
+ 0.3150000000000001 0.8919999999999999 0.6019999999999999 # O73
+ 0.3129999999999999 0.8230000000000000 0.7969999999999999 # O74
+ 0.1910000000000002 0.8189999999999998 0.5750000000000000 # O75
+ 0.3630000000000002 0.7939999999999999 0.5500000000000004 # O76
+ 0.6810000000000000 0.8969999999999998 0.5559999999999999 # O77
+ 0.6280000000000001 0.9309999999999999 0.8160000000000005 # O78
+ 0.6350000000000000 0.9970000000000001 0.5900000000000001 # O79
+ 0.5080000000000001 0.9219999999999997 0.5700000000000003 # O80
+ 0.0029999999999999 0.2109999999999999 0.5740000000000001 # O81
+ 0.1210000000000001 0.2170000000000000 0.7969999999999999 # O82
+ 0.1740000000000002 0.1840000000000001 0.5399999999999997 # O83
+ 0.1290000000000000 0.2840000000000000 0.5540000000000000 # O84
+ 0.8109999999999999 0.3920000000000000 0.5489999999999998 # O85
+ 0.8100000000000004 0.3399999999999999 0.8040000000000000 # O86
+ 0.6840000000000003 0.3179999999999999 0.6090000000000000 # O87
+ 0.8530000000000000 0.2920000000000000 0.5500000000000004 # O88
+ 0.1820000000000002 0.3959999999999999 0.5910000000000001 # O89
+ 0.0979999999999999 0.4409999999999998 0.7830000000000001 # O90
+ 0.1359999999999999 0.4960000000000000 0.5440000000000002 # O91
+ 0.0119999999999999 0.4220000000000000 0.5340000000000000 # O92
+ 0.5040000000000001 0.7119999999999997 0.5830000000000000 # O93
+ 0.6220000000000000 0.7119999999999997 0.8120000000000002 # O94
+ 0.6750000000000000 0.6859999999999998 0.5690000000000004 # O95
+ 0.6330000000000003 0.7860000000000000 0.6000000000000000 # O96
diff --git a/test/data/orthorhombic/POSCAR-028 b/test/data/orthorhombic/POSCAR-028
new file mode 100644
index 0000000..1078924
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-028
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 7.9549962568402135 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.2579970553495956 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.2029966106876246
+ 8 4 4
+Direct
+ 0.4999999999999999 0.5000000000000000 0.7840999999999999 # Te1
+ 0.2499999999999996 0.5018000000000001 0.2359999999999999 # Te2
+ 0.4999999999999999 1.0000000000000000 0.1397999999999999 # Te3
+ 0.2499999999999996 0.0007000000000001 0.6840000000000002 # Te4
+ 0.7499999999999996 0.4981999999999999 0.2359999999999999 # Te5
+ 0.7499999999999996 0.9992999999999997 0.6840000000000002 # Te6
+ 0.0000000000000000 0.5000000000000000 0.7840999999999999 # Te7
+ 0.0000000000000000 0.0000000000000000 0.1397999999999999 # Te8
+ 0.5456999999999999 0.7572000000000001 0.4690000000000000 # Nb1
+ 0.4543000000000001 0.2427999999999998 0.4690000000000000 # Nb2
+ 0.9542999999999995 0.7572000000000001 0.4690000000000000 # Nb3
+ 0.0456999999999999 0.2427999999999998 0.4690000000000000 # Nb4
+ 0.2499999999999996 0.5950000000000003 0.5809999999999995 # Ni1
+ 0.2499999999999996 0.8893000000000004 0.3380000000000001 # Ni2
+ 0.7499999999999996 0.4050000000000004 0.5809999999999995 # Ni3
+ 0.7499999999999996 0.1107000000000002 0.3380000000000001 # Ni4
diff --git a/test/data/orthorhombic/POSCAR-028-2 b/test/data/orthorhombic/POSCAR-028-2
new file mode 100644
index 0000000..5add117
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-028-2
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 5.1847975603350243 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.0979971306362835 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.1915975571353430
+ 4 4
+Direct
+ 0.2500000000000000 1.0000000000000000 0.2425000000000002 # Tl1
+ 0.2500000000000000 0.4876999999999997 0.7348000000000000 # Tl2
+ 0.7500000000000000 1.0000000000000000 0.7574999999999997 # Tl3
+ 0.7500000000000000 0.4876999999999997 0.2651999999999998 # Tl4
+ 0.2500000000000000 0.5199999999999995 1.2000000000000000 # F1
+ 0.2500000000000000 0.8599999999999999 0.6700000000000002 # F2
+ 0.7500000000000000 0.5199999999999995 -0.2000000000000002 # F3
+ 0.7500000000000000 0.8599999999999999 0.3299999999999997 # F4
diff --git a/test/data/orthorhombic/POSCAR-029 b/test/data/orthorhombic/POSCAR-029
new file mode 100644
index 0000000..72d1440
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-029
@@ -0,0 +1,155 @@
+$cell vectors
+1.0
+ 11.2269947172275355 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.7899968050213744 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 21.1859900311020368
+ 8 8 76 56
+Direct
+ 0.0000000000000000 0.1911000000000004 0.0795999999999999 # U1
+ 0.3875999999999998 0.7013000000000001 0.2004000000000001 # U2
+ 0.5000000000000002 0.8089000000000004 0.9204000000000000 # U3
+ 0.8876000000000002 0.2987000000000000 0.7996000000000000 # U4
+ 0.5000000000000002 0.1911000000000004 0.4203999999999999 # U5
+ 0.8876000000000002 0.7013000000000001 0.2996000000000001 # U6
+ 0.0000000000000000 0.8089000000000004 0.5796000000000000 # U7
+ 0.3875999999999998 0.2987000000000000 0.7004000000000000 # U8
+ 0.1164000000000002 0.6889999999999998 0.1033000000000001 # S1
+ 0.2961000000000001 0.1933000000000002 0.1512000000000000 # S2
+ 0.6164000000000004 0.3110000000000003 0.8966999999999999 # S3
+ 0.7961000000000003 0.8067000000000006 0.8488000000000000 # S4
+ 0.6164000000000004 0.6889999999999998 0.3967000000000001 # S5
+ 0.7961000000000003 0.1933000000000002 0.3487999999999999 # S6
+ 0.1164000000000002 0.3110000000000003 0.6032999999999999 # S7
+ 0.2961000000000001 0.8067000000000006 0.6511999999999999 # S8
+ 0.9050000000000004 0.1839999999999997 0.1451000000000000 # O1
+ 0.0890000000000002 0.1890000000000002 0.0133000000000000 # O2
+ 0.4510000000000000 0.7029999999999995 0.1239000000000001 # O3
+ 0.3260000000000002 0.7050000000000003 0.2758000000000000 # O4
+ 0.0430000000000000 0.5140000000000002 0.1194000000000000 # O5
+ 0.1880000000000001 0.7339999999999999 0.1603999999999999 # O6
+ 0.1889999999999998 0.6470000000000005 0.0492000000000001 # O7
+ 0.0300000000000001 0.8500000000000003 0.0940000000000000 # O8
+ 0.3179999999999999 0.3820000000000001 0.1826000000000000 # O9
+ 0.3410000000000000 0.0390000000000004 0.1947000000000000 # O10
+ 0.3519999999999999 0.1900000000000001 0.0904000000000000 # O11
+ 0.1639999999999998 0.1670000000000001 0.1467000000000000 # O12
+ 0.5340000000000003 0.4830000000000000 0.2460000000000001 # O13
+ 0.8740000000000000 0.4390000000000001 0.0274000000000001 # O14
+ 0.6560000000000002 0.2039999999999999 0.1869000000000000 # O15
+ 0.8450000000000000 0.0200000000000002 0.0223000000000001 # O16
+ 0.5560000000000000 0.8919999999999998 0.2368000000000000 # O17
+ 0.5950000000000002 0.2900000000000002 0.0729999999999999 # O18
+ 0.2479999999999999 0.7250000000000004 0.4069000000000002 # O19
+ 0.4050000000000002 0.8160000000000004 0.8549000000000001 # O20
+ 0.5890000000000000 0.8110000000000007 0.9867000000000002 # O21
+ 0.9510000000000005 0.2970000000000004 0.8760999999999999 # O22
+ 0.8260000000000004 0.2950000000000006 0.7242000000000001 # O23
+ 0.5430000000000003 0.4860000000000006 0.8806000000000002 # O24
+ 0.6880000000000003 0.2660000000000003 0.8396000000000000 # O25
+ 0.6889999999999999 0.3530000000000004 0.9508000000000002 # O26
+ 0.5300000000000004 0.1500000000000005 0.9060000000000001 # O27
+ 0.8180000000000001 0.6180000000000002 0.8174000000000005 # O28
+ 0.8410000000000002 0.9610000000000003 0.8053000000000000 # O29
+ 0.8520000000000002 0.8100000000000001 0.9096000000000001 # O30
+ 0.6640000000000000 0.8330000000000001 0.8532999999999999 # O31
+ 0.0340000000000000 0.5170000000000000 0.7540000000000001 # O32
+ 0.3740000000000002 0.5610000000000001 0.9725999999999998 # O33
+ 0.1560000000000001 0.7960000000000004 0.8131000000000000 # O34
+ 0.3450000000000004 0.9800000000000008 0.9777000000000000 # O35
+ 0.0560000000000004 0.1080000000000003 0.7632000000000001 # O36
+ 0.0950000000000000 0.7099999999999999 0.9269999999999999 # O37
+ 0.7480000000000000 0.2750000000000004 0.5931000000000000 # O38
+ 0.4050000000000002 0.1840000000000005 0.3549000000000000 # O39
+ 0.5890000000000000 0.1890000000000002 0.4867000000000001 # O40
+ 0.9510000000000000 0.7030000000000005 0.3761000000000000 # O41
+ 0.8260000000000000 0.7050000000000003 0.2241999999999999 # O42
+ 0.5430000000000003 0.5140000000000002 0.3806000000000001 # O43
+ 0.6879999999999998 0.7340000000000007 0.3396000000000000 # O44
+ 0.6889999999999999 0.6470000000000005 0.4508000000000001 # O45
+ 0.5300000000000004 0.8500000000000003 0.4060000000000001 # O46
+ 0.8180000000000001 0.3820000000000001 0.3174000000000001 # O47
+ 0.8410000000000002 0.0390000000000004 0.3053000000000001 # O48
+ 0.8520000000000002 0.1900000000000001 0.4095999999999999 # O49
+ 0.6640000000000000 0.1670000000000001 0.3532999999999999 # O50
+ 0.0340000000000000 0.4830000000000000 0.2540000000000000 # O51
+ 0.3740000000000002 0.4390000000000001 0.4726000000000000 # O52
+ 0.1560000000000001 0.2039999999999999 0.3130999999999999 # O53
+ 0.3449999999999999 0.0200000000000002 0.4777000000000002 # O54
+ 0.0559999999999999 0.8919999999999998 0.2631999999999999 # O55
+ 0.0950000000000000 0.2900000000000002 0.4270000000000000 # O56
+ 0.7480000000000000 0.7250000000000004 0.0931000000000000 # O57
+ 0.9050000000000004 0.8160000000000004 0.6450999999999999 # O58
+ 0.0890000000000002 0.8109999999999998 0.5132999999999999 # O59
+ 0.4510000000000003 0.2970000000000004 0.6238999999999999 # O60
+ 0.3260000000000002 0.2950000000000006 0.7758000000000002 # O61
+ 0.0430000000000000 0.4859999999999998 0.6194000000000001 # O62
+ 0.1880000000000001 0.2660000000000003 0.6604000000000000 # O63
+ 0.1890000000000003 0.3530000000000004 0.5492000000000000 # O64
+ 0.0300000000000001 0.1500000000000005 0.5940000000000000 # O65
+ 0.3179999999999999 0.6180000000000002 0.6826000000000000 # O66
+ 0.3410000000000000 0.9610000000000003 0.6946999999999999 # O67
+ 0.3519999999999999 0.8100000000000001 0.5903999999999999 # O68
+ 0.1640000000000003 0.8330000000000001 0.6467000000000002 # O69
+ 0.5340000000000003 0.5170000000000000 0.7460000000000000 # O70
+ 0.8740000000000000 0.5610000000000001 0.5274000000000000 # O71
+ 0.6560000000000002 0.7960000000000004 0.6869000000000002 # O72
+ 0.8450000000000000 0.9799999999999999 0.5223000000000000 # O73
+ 0.5560000000000000 0.1080000000000003 0.7368000000000001 # O74
+ 0.5950000000000002 0.7099999999999999 0.5730000000000001 # O75
+ 0.2479999999999999 0.2750000000000004 0.9068999999999999 # O76
+ 0.5376000000000001 0.4933000000000005 0.2909999999999999 # H1
+ 0.5749000000000002 0.3904000000000002 0.2262999999999999 # H2
+ 0.8120000000000004 0.4109000000000000 0.0021000000000000 # H3
+ 0.8310000000000000 0.5348999999999999 0.0496000000000000 # H4
+ 0.7386000000000001 0.1982000000000003 0.1726000000000001 # H5
+ 0.6359999999999999 0.2336999999999998 0.1481000000000001 # H6
+ 0.8480000000000002 0.9510000000000004 0.9850000000000001 # H7
+ 0.8149999999999999 0.9220000000000000 0.0457999999999999 # H8
+ 0.6006000000000000 0.8398000000000003 0.2709999999999999 # H9
+ 0.5900999999999997 0.9967000000000008 0.2199000000000000 # H10
+ 0.6272000000000001 0.3110999999999999 0.0313000000000001 # H11
+ 0.5154000000000000 0.2564000000000001 0.0777000000000000 # H12
+ 0.1951999999999999 0.7538000000000001 0.4414000000000001 # H13
+ 0.2741000000000003 0.7182000000000002 0.3628999999999999 # H14
+ 0.0375999999999999 0.5067000000000003 0.7090000000000001 # H15
+ 0.0749000000000000 0.6095999999999998 0.7737000000000001 # H16
+ 0.3120000000000001 0.5891000000000001 0.9979000000000001 # H17
+ 0.3310000000000003 0.4651000000000001 0.9504000000000001 # H18
+ 0.2386000000000000 0.8018000000000006 0.8273999999999999 # H19
+ 0.1360000000000001 0.7663000000000004 0.8519000000000000 # H20
+ 0.3480000000000000 0.0489999999999997 0.0150000000000001 # H21
+ 0.3150000000000002 0.0780000000000001 0.9542000000000002 # H22
+ 0.1005999999999999 0.1602000000000006 0.7290000000000001 # H23
+ 0.0901000000000001 0.0033000000000002 0.7801000000000002 # H24
+ 0.1272000000000003 0.6889000000000011 0.9687000000000001 # H25
+ 0.0154000000000003 0.7435999999999999 0.9223000000000001 # H26
+ 0.6952000000000002 0.2462000000000001 0.5585999999999999 # H27
+ 0.7741000000000000 0.2817999999999999 0.6371000000000001 # H28
+ 0.0375999999999999 0.4933000000000005 0.2089999999999999 # H29
+ 0.0749000000000000 0.3904000000000002 0.2737000000000000 # H30
+ 0.3120000000000001 0.4109000000000000 0.4979000000000001 # H31
+ 0.3310000000000003 0.5348999999999999 0.4503999999999999 # H32
+ 0.2386000000000000 0.1982000000000003 0.3274000000000001 # H33
+ 0.1360000000000001 0.2336999999999998 0.3519000000000001 # H34
+ 0.3480000000000000 0.9510000000000004 0.5150000000000000 # H35
+ 0.3150000000000002 0.9220000000000000 0.4542000000000000 # H36
+ 0.1005999999999999 0.8398000000000003 0.2289999999999999 # H37
+ 0.0901000000000001 0.9967000000000008 0.2801000000000000 # H38
+ 0.1271999999999998 0.3110999999999999 0.4687000000000000 # H39
+ 0.0154000000000003 0.2564000000000001 0.4223000000000001 # H40
+ 0.6952000000000002 0.7538000000000001 0.0586000000000000 # H41
+ 0.7741000000000000 0.7182000000000002 0.1370999999999999 # H42
+ 0.5376000000000001 0.5067000000000003 0.7909999999999998 # H43
+ 0.5749000000000002 0.6095999999999998 0.7263000000000002 # H44
+ 0.8120000000000004 0.5891000000000001 0.5020999999999999 # H45
+ 0.8310000000000000 0.4651000000000001 0.5495999999999999 # H46
+ 0.7386000000000001 0.8018000000000006 0.6726000000000000 # H47
+ 0.6360000000000002 0.7663000000000004 0.6481000000000000 # H48
+ 0.8480000000000002 0.0490000000000005 0.4850000000000001 # H49
+ 0.8149999999999999 0.0780000000000001 0.5458000000000001 # H50
+ 0.6006000000000000 0.1602000000000006 0.7710000000000001 # H51
+ 0.5901000000000002 0.0033000000000002 0.7198999999999998 # H52
+ 0.6272000000000001 0.6889000000000003 0.5313000000000000 # H53
+ 0.5154000000000000 0.7435999999999999 0.5777000000000000 # H54
+ 0.1952000000000004 0.2462000000000001 0.9413999999999999 # H55
+ 0.2741000000000003 0.2818000000000008 0.8629000000000001 # H56
diff --git a/test/data/orthorhombic/POSCAR-029-2 b/test/data/orthorhombic/POSCAR-029-2
new file mode 100644
index 0000000..319a2a0
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-029-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 6.4719969546536564 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.7239949539100490 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2589975254208268
+ 8 4 16 8
+Direct
+ 0.0000000000000000 0.1932000000000001 0.1392000000000001 # Na1
+ 0.0642999999999997 0.0012000000000003 0.6220000000000000 # Na2
+ 0.5000000000000004 0.8067999999999999 0.8607999999999999 # Na3
+ 0.5643000000000002 0.9987999999999998 0.3780000000000001 # Na4
+ 0.0000000000000000 0.6931999999999997 0.8607999999999999 # Na5
+ 0.0642999999999997 0.5011999999999998 0.3780000000000001 # Na6
+ 0.5000000000000004 0.3067999999999999 0.1392000000000001 # Na7
+ 0.5643000000000002 0.4987999999999998 0.6220000000000000 # Na8
+ 0.7859999999999998 0.2546000000000001 0.6023999999999996 # C1
+ 0.2860000000000002 0.7454000000000001 0.3976000000000003 # C2
+ 0.7860000000000006 0.7545999999999997 0.3976000000000003 # C3
+ 0.2860000000000002 0.2454000000000000 0.6023999999999996 # C4
+ 0.7990000000000000 0.1389000000000000 0.5465999999999996 # O1
+ 0.7970000000000006 0.3366000000000001 0.4266000000000004 # O2
+ 0.7609999999999997 0.2883000000000003 0.8350000000000002 # O3
+ 0.0322000000000003 0.9709999999999998 0.0692000000000000 # O4
+ 0.2990000000000005 0.8610999999999995 0.4534000000000004 # O5
+ 0.2970000000000002 0.6634000000000001 0.5733999999999997 # O6
+ 0.2610000000000002 0.7116999999999999 0.1649999999999998 # O7
+ 0.5322000000000000 0.0290000000000000 0.9307999999999998 # O8
+ 0.7990000000000000 0.6389000000000000 0.4534000000000004 # O9
+ 0.7970000000000006 0.8366000000000000 0.5733999999999997 # O10
+ 0.7610000000000006 0.7882999999999998 0.1649999999999998 # O11
+ 0.0322000000000003 0.4710000000000000 0.9307999999999998 # O12
+ 0.2990000000000005 0.3611000000000001 0.5465999999999996 # O13
+ 0.2970000000000002 0.1634000000000000 0.4266000000000004 # O14
+ 0.2610000000000002 0.2116999999999998 0.8350000000000002 # O15
+ 0.5322000000000000 0.5290000000000000 0.0692000000000000 # O16
+ 0.1464000000000000 0.9339999999999998 0.1611000000000000 # H1
+ -0.0799999999999997 0.9109999999999998 0.1000000000000004 # H2
+ 0.6464000000000003 0.0660000000000003 0.8389000000000001 # H3
+ 0.4199999999999999 0.0889999999999998 0.8999999999999996 # H4
+ 0.1464000000000000 0.4339999999999998 0.8389000000000001 # H5
+ -0.0799999999999997 0.4110000000000003 0.8999999999999996 # H6
+ 0.6464000000000003 0.5659999999999997 0.1611000000000000 # H7
+ 0.4199999999999999 0.5889999999999999 0.1000000000000004 # H8
diff --git a/test/data/orthorhombic/POSCAR-030 b/test/data/orthorhombic/POSCAR-030
new file mode 100644
index 0000000..d4f8a2b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-030
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 8.8619958300588255 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1869952065909786 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.6379964060019541
+ 4 4 12 36
+Direct
+ 0.0810000000000000 0.2589999999999997 0.2549999999999998 # K1
+ 0.9189999999999999 0.7410000000000001 0.2549999999999998 # K2
+ 0.9189999999999999 0.7590000000000000 0.7549999999999999 # K3
+ 0.0810000000000000 0.2409999999999999 0.7549999999999999 # K4
+ 0.5000000000000000 0.0000000000000000 0.2520000000000003 # Cu1
+ 0.5000000000000000 0.0000000000000000 0.7519999999999997 # Cu2
+ 0.5000000000000000 0.5000000000000002 0.7519999999999997 # Cu3
+ 0.5000000000000000 0.5000000000000002 0.2520000000000003 # Cu4
+ 0.4291999999999999 0.2520000000000000 0.9970000000000000 # Ta1
+ 0.8021000000000001 0.4359999999999998 0.9819999999999999 # Ta2
+ 0.7991000000000001 0.0613000000000000 0.9880000000000001 # Ta3
+ 0.5708000000000001 0.7479999999999999 0.9970000000000000 # Ta4
+ 0.1978999999999999 0.5639999999999999 0.9819999999999999 # Ta5
+ 0.2008999999999999 0.9386999999999998 0.9880000000000001 # Ta6
+ 0.5708000000000001 0.7519999999999998 0.4969999999999999 # Ta7
+ 0.1978999999999999 0.9360000000000001 0.4819999999999997 # Ta8
+ 0.2008999999999999 0.5613000000000002 0.4880000000000000 # Ta9
+ 0.4291999999999999 0.2480000000000002 0.4969999999999999 # Ta10
+ 0.8021000000000001 0.0640000000000003 0.4819999999999997 # Ta11
+ 0.7991000000000001 0.4387000000000001 0.4880000000000000 # Ta12
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # O1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # O2
+ 0.2600000000000001 0.1179999999999999 0.9689999999999996 # O3
+ 0.2589999999999998 0.4030000000000002 0.0610000000000004 # O4
+ 0.5749999999999998 0.3840000000000000 0.0580000000000002 # O5
+ 0.5760000000000002 0.3920000000000000 0.4609999999999999 # O6
+ 0.8750000000000001 0.2529999999999998 0.0059999999999997 # O7
+ 0.4060000000000002 0.1860000000000000 0.2579999999999999 # O8
+ 0.1710000000000002 0.5890000000000002 0.2490000000000001 # O9
+ 0.2710000000000000 0.5400000000000003 0.7569999999999997 # O10
+ 0.7400000000000000 0.8820000000000001 0.9689999999999996 # O11
+ 0.7410000000000001 0.5969999999999998 0.0610000000000004 # O12
+ 0.4250000000000001 0.6160000000000000 0.0580000000000002 # O13
+ 0.4239999999999999 0.6079999999999999 0.4609999999999999 # O14
+ 0.1249999999999999 0.7470000000000000 0.0059999999999997 # O15
+ 0.5939999999999999 0.8139999999999998 0.2579999999999999 # O16
+ 0.8290000000000000 0.4109999999999997 0.2490000000000001 # O17
+ 0.7290000000000001 0.4600000000000001 0.7569999999999997 # O18
+ 0.0000000000000000 0.5000000000000002 0.5000000000000000 # O19
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # O20
+ 0.7400000000000000 0.6180000000000001 0.4690000000000001 # O21
+ 0.7410000000000001 0.9029999999999999 0.5609999999999997 # O22
+ 0.4250000000000001 0.8840000000000002 0.5580000000000004 # O23
+ 0.4239999999999999 0.8920000000000002 0.9610000000000000 # O24
+ 0.1249999999999999 0.7530000000000000 0.5059999999999997 # O25
+ 0.5939999999999999 0.6859999999999997 0.7579999999999998 # O26
+ 0.8290000000000000 0.0890000000000000 0.7490000000000002 # O27
+ 0.7290000000000001 0.0400000000000000 0.2570000000000003 # O28
+ 0.2600000000000001 0.3819999999999998 0.4690000000000001 # O29
+ 0.2589999999999998 0.0970000000000001 0.5609999999999997 # O30
+ 0.5749999999999998 0.1160000000000003 0.5580000000000004 # O31
+ 0.5760000000000002 0.1080000000000002 0.9610000000000000 # O32
+ 0.8750000000000001 0.2469999999999998 0.5059999999999997 # O33
+ 0.4060000000000002 0.3140000000000002 0.7579999999999998 # O34
+ 0.1710000000000002 0.9109999999999999 0.7490000000000002 # O35
+ 0.2710000000000000 0.9599999999999999 0.2570000000000003 # O36
diff --git a/test/data/orthorhombic/POSCAR-030-2 b/test/data/orthorhombic/POSCAR-030-2
new file mode 100644
index 0000000..b3750e6
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-030-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 4.4809978915023265 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.6719963900035326 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.3289932576069656
+ 4 4 12
+Direct
+ 0.8010999999999997 0.7210000000000001 0.7454000000000000 # Cu1
+ 0.1989000000000003 0.2789999999999998 0.7454000000000000 # Cu2
+ 0.1988999999999991 0.2210000000000002 0.2454000000000000 # Cu3
+ 0.8010999999999997 0.7789999999999998 0.2454000000000000 # Cu4
+ 0.5000000000000000 0.0000000000000000 0.1901000000000000 # Br1
+ 0.5000000000000000 0.0000000000000000 0.8357999999999998 # Br2
+ 0.5000000000000000 0.5000000000000000 0.6900999999999997 # Br3
+ 0.5000000000000000 0.5000000000000000 0.3357999999999998 # Br4
+ 0.1392999999999992 0.2304999999999997 0.0091000000000000 # Se1
+ 0.9152999999999997 0.1370999999999996 0.3854000000000001 # Se2
+ 0.8697999999999994 0.3522999999999998 0.1348999999999999 # Se3
+ 0.8606999999999996 0.7695000000000003 0.0091000000000000 # Se4
+ 0.0847000000000004 0.8629000000000004 0.3854000000000001 # Se5
+ 0.1301999999999994 0.6477000000000003 0.1348999999999999 # Se6
+ 0.8606999999999996 0.7305000000000003 0.5090999999999999 # Se7
+ 0.0847000000000004 0.6371000000000003 0.8853999999999999 # Se8
+ 0.1302000000000006 0.8523000000000004 0.6348999999999999 # Se9
+ 0.1393000000000004 0.2695000000000002 0.5090999999999999 # Se10
+ 0.9152999999999997 0.3629000000000003 0.8853999999999999 # Se11
+ 0.8697999999999994 0.1477000000000002 0.6348999999999999 # Se12
diff --git a/test/data/orthorhombic/POSCAR-031 b/test/data/orthorhombic/POSCAR-031
new file mode 100644
index 0000000..7bd636b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-031
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 4.6539978100985975 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.9359967363222745 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.8789958220596148
+ 4 2 14
+Direct
+ 0.0000000000000000 0.1782999999999999 0.1991000000000000 # Te1
+ 0.5000000000000006 0.8217000000000001 0.3008999999999999 # Te2
+ 0.0000000000000000 0.1782999999999999 0.8008999999999998 # Te3
+ 0.5000000000000006 0.8217000000000001 0.6990999999999999 # Te4
+ 0.4236000000000004 0.4808999999999998 0.0000000000000000 # S1
+ 0.9235999999999999 0.5191000000000002 0.5000000000000000 # S2
+ 0.6570000000000007 0.3380000000000006 0.0000000000000000 # O1
+ 0.2479999999999994 0.4470000000000005 0.1379999999999999 # O2
+ 0.0880000000000006 0.0910000000000000 0.0000000000000000 # O3
+ 0.6350000000000003 0.0910000000000000 0.2629999999999997 # O4
+ 0.0289999999999997 0.3179999999999997 0.5000000000000000 # O5
+ 0.1569999999999999 0.6620000000000003 0.5000000000000000 # O6
+ 0.7480000000000002 0.5530000000000004 0.3620000000000001 # O7
+ 0.5880000000000001 0.9090000000000001 0.5000000000000000 # O8
+ 0.1349999999999998 0.9090000000000001 0.2370000000000003 # O9
+ 0.5290000000000004 0.6820000000000004 0.0000000000000000 # O10
+ 0.2480000000000006 0.4470000000000005 0.8620000000000001 # O11
+ 0.6350000000000003 0.0910000000000000 0.7369999999999997 # O12
+ 0.7480000000000002 0.5530000000000004 0.6379999999999998 # O13
+ 0.1349999999999998 0.9090000000000001 0.7629999999999997 # O14
diff --git a/test/data/orthorhombic/POSCAR-031-2 b/test/data/orthorhombic/POSCAR-031-2
new file mode 100644
index 0000000..9a2c271
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-031-2
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 5.7429972976786114 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.9149976872871965 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.3609955952584816
+ 6 4 16
+Direct
+ 0.2393000000000003 0.8341999999999993 0.0000000000000000 # Mn1
+ 0.4999999999999999 0.3341999999999999 0.9990000000000003 # Mn2
+ 0.2606999999999996 0.1657999999999994 0.5000000000000000 # Mn3
+ 1.0000000000000000 0.6657999999999999 0.4989999999999998 # Mn4
+ 0.7606999999999996 0.8341999999999993 0.0000000000000000 # Mn5
+ 0.7392999999999993 0.1658000000000005 0.5000000000000000 # Mn6
+ 0.0000000000000000 0.3247000000000001 0.2199000000000001 # Co1
+ 0.4999999999999999 0.6728000000000002 0.3176000000000002 # Co2
+ 0.4999999999999999 0.6752999999999997 0.7199000000000000 # Co3
+ 0.0000000000000000 0.3271999999999997 0.8176000000000001 # Co4
+ 0.7389999999999995 0.1510000000000003 0.1029999999999999 # O1
+ 0.7729999999999998 0.4750000000000000 0.3780000000000000 # O2
+ 0.0000000000000000 0.6919999999999995 0.1010000000000001 # O3
+ 0.4999999999999999 0.6679999999999994 0.1019999999999997 # O4
+ 0.0000000000000000 0.9819999999999997 0.3980000000000002 # O5
+ 0.4999999999999999 0.0330000000000002 0.3930000000000000 # O6
+ 0.7610000000000003 0.8489999999999996 0.6029999999999998 # O7
+ 0.7270000000000001 0.5249999999999999 0.8780000000000000 # O8
+ 0.4999999999999999 0.3080000000000004 0.6010000000000001 # O9
+ 0.0000000000000000 0.3320000000000004 0.6020000000000002 # O10
+ 0.4999999999999999 0.0180000000000003 0.8980000000000001 # O11
+ 0.0000000000000000 0.9669999999999997 0.8930000000000000 # O12
+ 0.2610000000000003 0.1510000000000003 0.1029999999999999 # O13
+ 0.2270000000000001 0.4750000000000000 0.3780000000000000 # O14
+ 0.2389999999999996 0.8489999999999996 0.6029999999999998 # O15
+ 0.2729999999999999 0.5249999999999999 0.8780000000000000 # O16
diff --git a/test/data/orthorhombic/POSCAR-032 b/test/data/orthorhombic/POSCAR-032
new file mode 100644
index 0000000..d115ff8
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-032
@@ -0,0 +1,75 @@
+$cell vectors
+1.0
+ 10.3880951119650256 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.4193950972370697 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.7006949648736676
+ 8 12 48
+Direct
+ 0.1877000000000003 0.4953000000000000 0.7377000000000002 # Gd1
+ 0.4929000000000005 0.3123000000000000 0.2630999999999999 # Gd2
+ 0.8123000000000004 0.5046999999999999 0.7377000000000002 # Gd3
+ 0.5071000000000001 0.6876999999999999 0.2630999999999999 # Gd4
+ 0.3123000000000000 0.9953000000000002 0.7377000000000002 # Gd5
+ 0.0070999999999999 0.8123000000000002 0.2630999999999999 # Gd6
+ 0.6877000000000001 0.0047000000000002 0.7377000000000002 # Gd7
+ 0.9929000000000002 0.1877000000000002 0.2630999999999999 # Gd8
+ 0.2056000000000000 0.4888999999999998 0.3572000000000000 # Mo1
+ 0.0028000000000001 0.2063999999999999 0.6425000000000004 # Mo2
+ 0.2423000000000000 0.2427999999999998 0.0000000000000000 # Mo3
+ 0.7944000000000001 0.5111000000000001 0.3572000000000000 # Mo4
+ 0.9972000000000003 0.7936000000000001 0.6425000000000004 # Mo5
+ 0.7577000000000002 0.7572000000000000 0.0000000000000000 # Mo6
+ 0.2944000000000002 0.9889000000000000 0.3572000000000000 # Mo7
+ 0.4972000000000003 0.7064000000000000 0.6425000000000004 # Mo8
+ 0.2577000000000003 0.7428000000000000 0.0000000000000000 # Mo9
+ 0.7056000000000004 0.0110999999999999 0.3572000000000000 # Mo10
+ 0.5028000000000005 0.2936000000000003 0.6425000000000004 # Mo11
+ 0.7423000000000003 0.2571999999999999 0.0000000000000000 # Mo12
+ 0.1921000000000003 0.4882000000000003 0.5186000000000001 # O1
+ 0.4801000000000002 0.3053000000000002 0.4825000000000002 # O2
+ 0.1287000000000001 0.0069000000000003 0.3111999999999999 # O3
+ 0.4940000000000003 0.1279999999999999 0.6899000000000000 # O4
+ 0.1579000000000003 0.1557000000000000 0.6815000000000002 # O5
+ 0.1571000000000000 0.3359999999999999 0.3074000000000003 # O6
+ 0.3840000000000002 0.3837000000000002 0.7191000000000002 # O7
+ 0.3848000000000000 0.1144999999999999 0.2940999999999999 # O8
+ 0.1255000000000001 0.1708000000000001 0.0937000000000003 # O9
+ 0.3174000000000000 0.1264000000000004 0.9074000000000001 # O10
+ 0.3544999999999999 0.3196999999999998 0.0984000000000000 # O11
+ 0.1704000000000004 0.3571000000000002 0.9024000000000000 # O12
+ 0.8079000000000004 0.5118000000000001 0.5186000000000001 # O13
+ 0.5199000000000005 0.6947000000000001 0.4825000000000002 # O14
+ 0.8713000000000000 0.9931000000000000 0.3111999999999999 # O15
+ 0.5060000000000002 0.8719999999999999 0.6899000000000000 # O16
+ 0.8421000000000004 0.8442999999999998 0.6815000000000002 # O17
+ 0.8429000000000000 0.6640000000000000 0.3074000000000003 # O18
+ 0.6160000000000004 0.6163000000000002 0.7191000000000002 # O19
+ 0.6152000000000002 0.8854999999999998 0.2940999999999999 # O20
+ 0.8745000000000006 0.8291999999999997 0.0937000000000003 # O21
+ 0.6826000000000005 0.8735999999999999 0.9074000000000001 # O22
+ 0.6455000000000003 0.6803000000000001 0.0984000000000000 # O23
+ 0.8296000000000001 0.6429000000000001 0.9024000000000000 # O24
+ 0.3079000000000000 0.9882000000000000 0.5186000000000001 # O25
+ 0.0199000000000001 0.8052999999999999 0.4825000000000002 # O26
+ 0.3713000000000002 0.5069000000000000 0.3111999999999999 # O27
+ 0.0060000000000000 0.6280000000000001 0.6899000000000000 # O28
+ 0.3421000000000000 0.6557000000000002 0.6815000000000002 # O29
+ 0.3429000000000003 0.8360000000000002 0.3074000000000003 # O30
+ 0.1160000000000001 0.8836999999999999 0.7191000000000002 # O31
+ 0.1152000000000004 0.6145000000000002 0.2940999999999999 # O32
+ 0.3745000000000002 0.6708000000000003 0.0937000000000003 # O33
+ 0.1826000000000003 0.6264000000000001 0.9074000000000001 # O34
+ 0.1455000000000000 0.8197000000000001 0.0984000000000000 # O35
+ 0.3295999999999999 0.8571000000000004 0.9024000000000000 # O36
+ 0.6921000000000002 0.0118000000000000 0.5186000000000001 # O37
+ 0.9801000000000002 0.1947000000000000 0.4825000000000002 # O38
+ 0.6287000000000004 0.4930999999999999 0.3111999999999999 # O39
+ 0.9940000000000001 0.3720000000000003 0.6899000000000000 # O40
+ 0.6579000000000002 0.3443000000000003 0.6815000000000002 # O41
+ 0.6571000000000005 0.1639999999999998 0.3074000000000003 # O42
+ 0.8840000000000000 0.1163000000000000 0.7191000000000002 # O43
+ 0.8848000000000003 0.3855000000000003 0.2940999999999999 # O44
+ 0.6254999999999999 0.3292000000000002 0.0937000000000003 # O45
+ 0.8174000000000003 0.3735999999999999 0.9074000000000001 # O46
+ 0.8545000000000001 0.1802999999999999 0.0984000000000000 # O47
+ 0.6704000000000001 0.1429000000000000 0.9024000000000000 # O48
diff --git a/test/data/orthorhombic/POSCAR-032-2 b/test/data/orthorhombic/POSCAR-032-2
new file mode 100644
index 0000000..8ca675c
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-032-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 5.8839972313322217 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.7679944626644364 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2199961321466422
+ 8 8 24
+Direct
+ 0.7059999999999996 0.1270000000000000 0.0000000000000000 # Pb1
+ 0.7059999999999996 0.1270000000000000 0.5000000000000003 # Pb2
+ 0.2940000000000003 0.8730000000000003 0.0000000000000000 # Pb3
+ 0.2940000000000003 0.8730000000000003 0.5000000000000003 # Pb4
+ 0.7939999999999998 0.6270000000000003 0.0000000000000000 # Pb5
+ 0.7939999999999998 0.6270000000000003 0.5000000000000003 # Pb6
+ 0.2060000000000002 0.3730000000000003 0.0000000000000000 # Pb7
+ 0.2060000000000002 0.3730000000000003 0.5000000000000003 # Pb8
+ 0.2430000000000001 0.1240000000000001 0.2500000000000002 # Zr1
+ 0.2430000000000001 0.1240000000000001 0.7499999999999998 # Zr2
+ 0.7570000000000000 0.8760000000000002 0.2500000000000002 # Zr3
+ 0.7570000000000000 0.8760000000000002 0.7499999999999998 # Zr4
+ 0.2570000000000003 0.6240000000000004 0.2500000000000002 # Zr5
+ 0.2570000000000003 0.6240000000000004 0.7499999999999998 # Zr6
+ 0.7429999999999997 0.3760000000000003 0.2500000000000002 # Zr7
+ 0.7429999999999997 0.3760000000000003 0.7499999999999998 # Zr8
+ 0.2700000000000004 0.1500000000000002 0.9799999999999996 # O1
+ 0.2699999999999995 0.1500000000000002 0.4800000000000000 # O2
+ 0.0400000000000004 0.2700000000000002 0.3000000000000003 # O3
+ 0.0400000000000004 0.2700000000000002 0.7499999999999998 # O4
+ 0.0000000000000000 0.5000000000000003 0.2500000000000002 # O5
+ 0.0000000000000000 0.5000000000000003 0.7999999999999999 # O6
+ 0.0000000000000000 0.0000000000000000 0.2500000000000002 # O7
+ 0.0000000000000000 0.0000000000000000 0.7999999999999999 # O8
+ 0.7299999999999996 0.8500000000000005 0.9799999999999996 # O9
+ 0.7299999999999996 0.8500000000000001 0.4800000000000000 # O10
+ 0.9599999999999996 0.7300000000000001 0.3000000000000003 # O11
+ 0.9599999999999996 0.7300000000000001 0.7499999999999998 # O12
+ 0.2300000000000000 0.6500000000000001 0.9799999999999996 # O13
+ 0.2300000000000000 0.6500000000000001 0.4800000000000000 # O14
+ 0.4600000000000000 0.7700000000000001 0.3000000000000003 # O15
+ 0.4600000000000000 0.7700000000000001 0.7499999999999998 # O16
+ 0.4999999999999996 0.0000000000000000 0.2500000000000002 # O17
+ 0.4999999999999996 0.0000000000000000 0.7999999999999999 # O18
+ 0.4999999999999996 0.5000000000000003 0.2500000000000002 # O19
+ 0.4999999999999996 0.5000000000000003 0.7999999999999999 # O20
+ 0.7700000000000000 0.3500000000000001 0.9799999999999996 # O21
+ 0.7700000000000000 0.3500000000000001 0.4800000000000000 # O22
+ 0.5399999999999999 0.2300000000000001 0.3000000000000003 # O23
+ 0.5399999999999999 0.2300000000000001 0.7499999999999998 # O24
diff --git a/test/data/orthorhombic/POSCAR-033 b/test/data/orthorhombic/POSCAR-033
new file mode 100644
index 0000000..b86f9bc
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-033
@@ -0,0 +1,32 @@
+$cell vectors
+ 1.00000000000000
+ 4.1085543821297383 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.5910714829032732 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.0556376957516144
+ 4 8
+Direct
+ 0.0552404277620372 0.6243403796084981 0.9976529545055615
+ 0.9447595722379627 0.3756596203915018 0.4976529545055615
+ 0.4447595722379627 0.1243403796084982 0.4976529545055615
+ 0.5552404277620370 0.8756596203915018 0.9976529545055615
+ 0.0304379475560083 0.5867245522234480 0.3412098299435093
+ 0.1177476461925874 0.1698515023077087 0.4111372155509292
+ 0.9695620524439846 0.4132754477765522 0.8412098299435093
+ 0.8822523538074127 0.8301484976922841 0.9111372155509293
+ 0.4695620524439917 0.0867245522234479 0.8412098299435093
+ 0.3822523538074126 0.6698515023077158 0.9111372155509293
+ 0.5304379475560154 0.9132754477765519 0.3412098299435093
+ 0.6177476461925873 0.3301484976922913 0.4111372155509292
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/orthorhombic/POSCAR-033-2 b/test/data/orthorhombic/POSCAR-033-2
new file mode 100644
index 0000000..30127f3
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-033-2
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 5.4559974327241001 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.8139977348119158 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.7869944537241444
+ 8 16
+Direct
+ 0.9679999999999990 0.0359999999999998 0.0090000000000001 # Sb1
+ 0.3660000000000000 0.0159999999999997 0.2529999999999999 # Sb2
+ 0.0319999999999998 0.9640000000000002 0.5089999999999999 # Sb3
+ 0.6339999999999998 0.9840000000000004 0.7530000000000001 # Sb4
+ 0.5320000000000004 0.5359999999999998 0.5089999999999999 # Sb5
+ 0.1340000000000004 0.5159999999999996 0.7530000000000001 # Sb6
+ 0.4679999999999995 0.4640000000000002 0.0090000000000001 # Sb7
+ 0.8659999999999997 0.4840000000000003 0.2529999999999999 # Sb8
+ 0.3400000000000002 0.1769999999999997 0.0961999999999998 # O1
+ 0.1589999999999999 0.7100000000000002 0.1950000000000003 # O2
+ 0.0860000000000001 0.2080000000000000 0.3120000000000001 # O3
+ 0.3299999999999998 0.8400000000000000 0.4100000000000002 # O4
+ 0.6599999999999997 0.8230000000000002 0.5962000000000002 # O5
+ 0.8410000000000001 0.2899999999999997 0.6950000000000001 # O6
+ 0.9139999999999998 0.7919999999999999 0.8119999999999998 # O7
+ 0.6700000000000000 0.1599999999999999 0.9099999999999999 # O8
+ 0.1600000000000002 0.6769999999999997 0.5962000000000002 # O9
+ 0.3409999999999996 0.2100000000000003 0.6950000000000001 # O10
+ 0.4140000000000003 0.7080000000000000 0.8119999999999998 # O11
+ 0.1699999999999996 0.3400000000000000 0.9099999999999999 # O12
+ 0.8399999999999996 0.3230000000000002 0.0961999999999998 # O13
+ 0.6589999999999993 0.7899999999999997 0.1950000000000003 # O14
+ 0.5859999999999996 0.2919999999999999 0.3120000000000001 # O15
+ 0.8300000000000004 0.6599999999999998 0.4100000000000002 # O16
diff --git a/test/data/orthorhombic/POSCAR-033-3 b/test/data/orthorhombic/POSCAR-033-3
new file mode 100644
index 0000000..fda3c6d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-033-3
@@ -0,0 +1,59 @@
+$cell vectors
+1.0
+ 6.9989967066781427 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.8479934839375538 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0939957208931332
+ 4 12 28 8
+Direct
+ 0.2645999999999998 0.0708000000000001 1.0000000000000000 # Ta1
+ 0.7354000000000002 0.9292000000000002 0.4999999999999998 # Ta2
+ 0.2354000000000002 0.5707999999999999 0.4999999999999998 # Ta3
+ 0.7646000000000006 0.4292000000000001 1.0000000000000000 # Ta4
+ 0.2712999999999999 0.0994000000000000 0.5049000000000005 # K1
+ 0.7274000000000004 0.1458000000000001 0.2311999999999999 # K2
+ 0.2374000000000003 0.3420000000000000 0.7818000000000003 # K3
+ 0.7287000000000000 0.9005999999999998 0.0049000000000000 # K4
+ 0.2726000000000005 0.8541999999999998 0.7311999999999996 # K5
+ 0.7626000000000004 0.6579999999999998 0.2818000000000000 # K6
+ 0.2287000000000000 0.5994000000000004 0.0049000000000000 # K7
+ 0.7726000000000006 0.6457999999999999 0.7311999999999996 # K8
+ 0.2626000000000004 0.8420000000000003 0.2818000000000000 # K9
+ 0.7713000000000000 0.4006000000000001 0.5049000000000005 # K10
+ 0.2274000000000002 0.3542000000000001 0.2311999999999999 # K11
+ 0.7374000000000004 0.1580000000000001 0.7818000000000003 # K12
+ 0.5363000000000001 0.0794000000000000 0.9889999999999997 # F1
+ 0.2738000000000000 0.2062000000000000 0.9549999999999996 # F2
+ 0.3063000000000002 0.0788000000000002 0.7890000000000000 # F3
+ 0.2943000000000000 0.0586999999999999 1.2048000000000001 # F4
+ 0.3213999999999999 -0.0659999999999999 1.0189999999999995 # F5
+ 0.5262000000000004 0.2736999999999999 0.3711000000000000 # F6
+ 0.9790000000000001 0.2450000000000001 0.6142999999999998 # F7
+ 0.4637000000000007 0.9206000000000000 0.4890000000000001 # F8
+ 0.7262000000000001 0.7938000000000000 0.4549999999999999 # F9
+ 0.6937000000000005 0.9212000000000001 0.2890000000000004 # F10
+ 0.7056999999999999 0.9413000000000000 0.7047999999999996 # F11
+ 0.6785999999999999 1.0659999999999998 0.5189999999999999 # F12
+ 0.4738000000000003 0.7262999999999999 0.8710999999999998 # F13
+ 0.0209999999999999 0.7549999999999998 0.1143000000000001 # F14
+ -0.0363000000000001 0.5794000000000001 0.4890000000000001 # F15
+ 0.2262000000000000 0.7061999999999997 0.4549999999999999 # F16
+ 0.1937000000000005 0.5788000000000000 0.2890000000000004 # F17
+ 0.2057000000000000 0.5587000000000001 0.7047999999999996 # F18
+ 0.1786000000000000 0.4340000000000002 0.5189999999999999 # F19
+ 0.9738000000000001 0.7737000000000001 0.8710999999999998 # F20
+ 0.5209999999999999 0.7449999999999999 0.1143000000000001 # F21
+ 1.0363000000000000 0.4206000000000001 0.9889999999999997 # F22
+ 0.7738000000000007 0.2938000000000002 0.9549999999999996 # F23
+ 0.8063000000000002 0.4212000000000000 0.7890000000000000 # F24
+ 0.7942999999999999 0.4413000000000002 1.2048000000000001 # F25
+ 0.8214000000000006 0.5660000000000001 1.0189999999999995 # F26
+ 0.0261999999999997 0.2262999999999999 0.3711000000000000 # F27
+ 0.4790000000000001 0.2550000000000001 0.6142999999999998 # F28
+ 0.0195000000000003 0.0431000000000002 1.1098000000000001 # O1
+ -0.0039999999999996 0.0347000000000000 0.9309999999999997 # O2
+ 0.9805000000000004 0.9569000000000001 0.6098000000000002 # O3
+ 1.0040000000000002 0.9653000000000000 0.4310000000000000 # O4
+ 0.4805000000000004 0.5431000000000000 0.6098000000000002 # O5
+ 0.5040000000000003 0.5346999999999998 0.4310000000000000 # O6
+ 0.5195000000000004 0.4569000000000000 1.1098000000000001 # O7
+ 0.4960000000000005 0.4653000000000001 0.9309999999999997 # O8
diff --git a/test/data/orthorhombic/POSCAR-034 b/test/data/orthorhombic/POSCAR-034
new file mode 100644
index 0000000..c70bae5
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-034
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 10.8899948758001148 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.0299943393824957 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9199972143927173
+ 8 16 32
+Direct
+ 0.2540000000000001 0.0000000000000000 0.5255000000000001 # W1
+ 0.0000000000000000 0.8474999999999999 0.4999999999999996 # W2
+ 0.0000000000000000 0.1379999999999998 0.4999999999999996 # W3
+ 0.7459999999999999 0.0000000000000000 0.4745000000000000 # W4
+ 0.7539999999999998 0.5000000000000002 0.9744999999999996 # W5
+ 0.5000000000000001 0.3475000000000001 0.0000000000000000 # W6
+ 0.5000000000000001 0.6380000000000000 0.0000000000000000 # W7
+ 0.2459999999999999 0.4999999999999998 0.0255000000000005 # W8
+ 0.7508999999999999 0.1710999999999999 0.9876999999999994 # Ag1
+ 0.2349000000000000 0.8175999999999995 0.0091999999999998 # Ag2
+ 0.0000000000000000 0.9871999999999996 0.0000000000000000 # Ag3
+ 0.0000000000000000 0.6531000000000001 0.9999999999999991 # Ag4
+ 0.0000000000000000 0.3147999999999999 0.0000000000000000 # Ag5
+ 0.0000000000000000 0.5091999999999997 0.4999999999999996 # Ag6
+ 0.2491000000000001 0.1710999999999999 0.0122999999999997 # Ag7
+ 0.7651000000000001 0.8175999999999995 0.9907999999999995 # Ag8
+ 0.2508999999999999 0.6710999999999997 0.5122999999999992 # Ag9
+ 0.7349000000000001 0.3176000000000003 0.4907999999999998 # Ag10
+ 0.5000000000000001 0.4872000000000001 0.4999999999999996 # Ag11
+ 0.5000000000000001 0.1530999999999999 0.4999999999999996 # Ag12
+ 0.5000000000000001 0.8147999999999999 0.4999999999999996 # Ag13
+ 0.5000000000000001 0.0092000000000000 0.0000000000000000 # Ag14
+ 0.7491000000000002 0.6710999999999997 0.4876999999999999 # Ag15
+ 0.2651000000000001 0.3176000000000003 0.5092000000000003 # Ag16
+ 0.3680000000000001 0.6119999999999998 0.1950000000000000 # O1
+ 0.3680000000000001 0.3779999999999999 0.1880000000000001 # O2
+ 0.4190000000000003 0.7350000000000000 0.8149999999999998 # O3
+ 0.4249999999999999 0.2630000000000000 0.7919999999999994 # O4
+ 0.1620000000000003 0.4940000000000000 0.2820000000000001 # O5
+ 0.4139999999999998 0.4960000000000001 0.8469999999999996 # O6
+ 0.1890000000000002 0.6119999999999998 0.8569999999999995 # O7
+ 0.1930000000000003 0.3790000000000001 0.8999999999999994 # O8
+ 0.6320000000000000 0.6119999999999998 0.8049999999999993 # O9
+ 0.6320000000000000 0.3779999999999999 0.8119999999999999 # O10
+ 0.5809999999999998 0.7350000000000000 0.1850000000000002 # O11
+ 0.5749999999999998 0.2630000000000000 0.2079999999999997 # O12
+ 0.8379999999999999 0.4940000000000000 0.7179999999999999 # O13
+ 0.5860000000000003 0.4960000000000001 0.1530000000000003 # O14
+ 0.8109999999999999 0.6119999999999998 0.1429999999999997 # O15
+ 0.8069999999999999 0.3790000000000001 0.0999999999999997 # O16
+ 0.8679999999999998 0.1120000000000001 0.3049999999999995 # O17
+ 0.8679999999999998 0.8779999999999997 0.3119999999999995 # O18
+ 0.9190000000000002 0.2349999999999997 0.6849999999999998 # O19
+ 0.9249999999999998 0.7629999999999999 0.7080000000000001 # O20
+ 0.6620000000000003 0.9939999999999999 0.2179999999999995 # O21
+ 0.9139999999999999 0.9959999999999999 0.6530000000000000 # O22
+ 0.6890000000000003 0.1120000000000001 0.6430000000000001 # O23
+ 0.6930000000000003 0.8790000000000000 0.5999999999999993 # O24
+ 0.1320000000000000 0.1120000000000001 0.6949999999999996 # O25
+ 0.1320000000000000 0.8779999999999997 0.6879999999999996 # O26
+ 0.0809999999999999 0.2349999999999997 0.3150000000000003 # O27
+ 0.0750000000000002 0.7629999999999999 0.2919999999999999 # O28
+ 0.3379999999999999 0.9939999999999999 0.7819999999999996 # O29
+ 0.0860000000000002 0.9959999999999999 0.3470000000000001 # O30
+ 0.3109999999999999 0.1120000000000001 0.3569999999999999 # O31
+ 0.3070000000000002 0.8790000000000000 0.3999999999999999 # O32
diff --git a/test/data/orthorhombic/POSCAR-034-2 b/test/data/orthorhombic/POSCAR-034-2
new file mode 100644
index 0000000..fff337b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-034-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 10.3479951308337537 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.5219950489594840 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.9459962610750843
+ 8 4 4 16
+Direct
+ 0.0000000000000000 0.5000000000000002 0.7580000000000002 # K1
+ 0.0000000000000000 0.0000000000000000 0.4480000000000001 # K2
+ 0.2468000000000001 0.2349000000000003 0.9480000000000001 # K3
+ 0.7532000000000000 0.7651000000000001 0.9480000000000001 # K4
+ 0.5000000000000000 0.0000000000000000 0.2580000000000003 # K5
+ 0.5000000000000000 0.5000000000000002 0.9480000000000001 # K6
+ 0.2531999999999999 0.7349000000000001 0.4480000000000001 # K7
+ 0.7468000000000000 0.2650999999999999 0.4480000000000001 # K8
+ 0.0000000000000000 0.0000000000000000 0.9519000000000003 # Ag1
+ 0.0000000000000000 0.5000000000000002 0.2248999999999999 # Ag2
+ 0.5000000000000000 0.5000000000000002 0.4519000000000002 # Ag3
+ 0.5000000000000000 0.0000000000000000 0.7249000000000004 # Ag4
+ 0.7272000000000000 0.7254000000000000 0.4484999999999999 # Sb1
+ 0.2728000000000000 0.2745999999999999 0.4484999999999999 # Sb2
+ 0.7727999999999999 0.2254000000000004 0.9485000000000006 # Sb3
+ 0.2272000000000000 0.7746000000000002 0.9485000000000006 # Sb4
+ 0.5500000000000002 0.7050999999999999 0.2672000000000001 # S1
+ 0.7103999999999998 0.5518000000000002 0.6321999999999999 # S2
+ 0.9238000000000002 0.7208000000000000 0.3036999999999997 # S3
+ 0.7201000000000001 0.9228000000000000 0.5872000000000002 # S4
+ 0.4500000000000003 0.2949000000000000 0.2672000000000001 # S5
+ 0.2896000000000001 0.4482000000000004 0.6321999999999999 # S6
+ 0.0762000000000000 0.2792000000000001 0.3036999999999997 # S7
+ 0.2799000000000003 0.0772000000000001 0.5872000000000002 # S8
+ 0.9500000000000002 0.2050999999999997 0.7672000000000002 # S9
+ 0.7896000000000001 0.0518000000000000 0.1321999999999999 # S10
+ 0.5761999999999999 0.2208000000000002 0.8037000000000004 # S11
+ 0.7799000000000004 0.4228000000000001 0.0872000000000003 # S12
+ 0.0500000000000003 0.7949000000000003 0.7672000000000002 # S13
+ 0.2103999999999999 0.9482000000000002 0.1321999999999999 # S14
+ 0.4238000000000000 0.7791999999999999 0.8037000000000004 # S15
+ 0.2201000000000003 0.5771999999999998 0.0872000000000003 # S16
diff --git a/test/data/orthorhombic/POSCAR-035 b/test/data/orthorhombic/POSCAR-035
new file mode 100644
index 0000000..cbb593f
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-035
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 19.3999908714896421 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.6199982966387871 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.1299980566624841
+ 2 4 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.9720000000000006 # Mo1
+ 0.5000000000000001 0.5000000000000000 0.9719999999999993 # Mo2
+ 0.1866000000000001 0.0000000000000000 0.9760000000000002 # V1
+ 0.6865999999999999 0.5000000000000000 0.9760000000000002 # V2
+ 0.8134000000000000 0.0000000000000000 0.9760000000000002 # V3
+ 0.3134000000000000 0.5000000000000000 0.9760000000000002 # V4
+ 0.0000000000000000 0.5000000000000000 0.9300000000000007 # O1
+ 0.0000000000000000 0.0000000000000000 0.5553999999999999 # O2
+ 0.1890000000000000 0.0000000000000000 0.5177000000000008 # O3
+ 0.0961000000000000 0.0000000000000000 0.0936000000000004 # O4
+ 0.2018000000000000 0.5000000000000000 0.1114999999999999 # O5
+ 0.5000000000000001 0.0000000000000000 0.9299999999999994 # O6
+ 0.5000000000000001 0.5000000000000000 0.5553999999999999 # O7
+ 0.6890000000000002 0.5000000000000000 0.5177000000000008 # O8
+ 0.5960999999999999 0.5000000000000000 0.0936000000000004 # O9
+ 0.7017999999999998 0.0000000000000000 0.1114999999999999 # O10
+ 0.8109999999999999 0.0000000000000000 0.5177000000000008 # O11
+ 0.9038999999999999 0.0000000000000000 0.0936000000000004 # O12
+ 0.7981999999999999 0.5000000000000000 0.1114999999999999 # O13
+ 0.3109999999999998 0.5000000000000000 0.5177000000000008 # O14
+ 0.4039000000000001 0.5000000000000000 0.0936000000000004 # O15
+ 0.2982000000000000 0.0000000000000000 0.1114999999999999 # O16
diff --git a/test/data/orthorhombic/POSCAR-035-2 b/test/data/orthorhombic/POSCAR-035-2
new file mode 100644
index 0000000..64e7d86
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-035-2
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 14.3579932439612499 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 16.8249920831346991 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3209974962472355
+ 18 24 54
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ca1
+ 0.0000000000000000 0.4017000000000001 0.9097999999999998 # Ca2
+ 0.1292999999999999 0.2096000000000002 0.9961999999999998 # Ca3
+ 0.2398999999999999 0.0000000000000000 0.9490999999999999 # Ca4
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Ca5
+ 0.5000000000000000 0.9016999999999999 0.9097999999999998 # Ca6
+ 0.6293000000000001 0.7096000000000002 0.9961999999999998 # Ca7
+ 0.7399000000000000 0.5000000000000000 0.9490999999999999 # Ca8
+ 0.0000000000000000 0.5982999999999999 0.9097999999999998 # Ca9
+ 0.8707000000000001 0.7904000000000001 0.9961999999999998 # Ca10
+ 0.7601000000000002 0.0000000000000000 0.9490999999999999 # Ca11
+ 0.5000000000000000 0.0983000000000000 0.9097999999999998 # Ca12
+ 0.3707000000000001 0.2904000000000001 0.9961999999999998 # Ca13
+ 0.2601000000000001 0.5000000000000000 0.9490999999999999 # Ca14
+ 0.8707000000000001 0.2096000000000002 0.9961999999999998 # Ca15
+ 0.3707000000000001 0.7096000000000002 0.9961999999999998 # Ca16
+ 0.1292999999999999 0.7904000000000001 0.9961999999999998 # Ca17
+ 0.6293000000000001 0.2904000000000001 0.9961999999999998 # Ca18
+ 0.1088000000000000 0.0938999999999999 0.4872999999999997 # Ga1
+ 0.2005000000000002 0.3346000000000000 0.4365999999999999 # Ga2
+ 0.3877999999999998 0.0000000000000000 0.3898000000000000 # Ga3
+ 0.0000000000000000 0.2623000000000000 0.4705000000000004 # Ga4
+ 0.6088000000000000 0.5938999999999999 0.4872999999999997 # Ga5
+ 0.7005000000000000 0.8346000000000002 0.4365999999999999 # Ga6
+ 0.8878000000000003 0.5000000000000000 0.3898000000000000 # Ga7
+ 0.5000000000000000 0.7623000000000000 0.4705000000000004 # Ga8
+ 0.8912000000000004 0.9061000000000000 0.4872999999999997 # Ga9
+ 0.7995000000000002 0.6654000000000001 0.4365999999999999 # Ga10
+ 0.6122000000000003 0.0000000000000000 0.3898000000000000 # Ga11
+ 0.0000000000000000 0.7376999999999999 0.4705000000000004 # Ga12
+ 0.3912000000000000 0.4061000000000000 0.4872999999999997 # Ga13
+ 0.2995000000000002 0.1654000000000000 0.4365999999999999 # Ga14
+ 0.1122000000000002 0.5000000000000000 0.3898000000000000 # Ga15
+ 0.5000000000000000 0.2377000000000001 0.4705000000000004 # Ga16
+ 0.8912000000000001 0.0938999999999999 0.4872999999999997 # Ga17
+ 0.7995000000000002 0.3346000000000000 0.4365999999999999 # Ga18
+ 0.3912000000000000 0.5938999999999999 0.4872999999999997 # Ga19
+ 0.2995000000000002 0.8346000000000002 0.4365999999999999 # Ga20
+ 0.1088000000000000 0.9061000000000000 0.4872999999999997 # Ga21
+ 0.2005000000000002 0.6654000000000001 0.4365999999999999 # Ga22
+ 0.6088000000000000 0.4061000000000000 0.4872999999999997 # Ga23
+ 0.7005000000000000 0.1654000000000000 0.4365999999999999 # Ga24
+ 0.3910000000000001 0.0000000000000000 0.7279999999999999 # O1
+ 0.1039999999999999 0.0000000000000000 0.6540000000000005 # O2
+ 0.1020000000000000 0.3040000000000002 0.6359999999999997 # O3
+ 0.0000000000000000 0.1540000000000001 0.5979999999999996 # O4
+ 0.2940000000000002 0.3610000000000000 0.6569999999999999 # O5
+ 0.0000000000000000 0.5000000000000000 0.2260000000000000 # O6
+ 0.1150000000000000 0.0889999999999999 0.1500000000000003 # O7
+ 0.0000000000000000 0.2719999999999999 0.1329999999999996 # O8
+ 0.1690000000000002 0.4150000000000001 0.2270000000000002 # O9
+ 0.2500000000000002 0.2500000000000002 0.2429999999999997 # O10
+ 0.8910000000000000 0.5000000000000000 0.7279999999999999 # O11
+ 0.6040000000000001 0.5000000000000000 0.6540000000000005 # O12
+ 0.6020000000000002 0.8040000000000000 0.6359999999999997 # O13
+ 0.5000000000000000 0.6540000000000001 0.5979999999999996 # O14
+ 0.7940000000000003 0.8610000000000001 0.6569999999999999 # O15
+ 0.5000000000000000 0.0000000000000000 0.2260000000000000 # O16
+ 0.6149999999999999 0.5890000000000001 0.1500000000000003 # O17
+ 0.5000000000000000 0.7719999999999998 0.1329999999999996 # O18
+ 0.6690000000000002 0.9150000000000000 0.2270000000000002 # O19
+ 0.7500000000000002 0.7500000000000001 0.2429999999999997 # O20
+ 0.6089999999999999 0.0000000000000000 0.7279999999999999 # O21
+ 0.8960000000000001 0.0000000000000000 0.6540000000000005 # O22
+ 0.8980000000000000 0.6960000000000002 0.6359999999999997 # O23
+ 0.0000000000000000 0.8460000000000000 0.5979999999999996 # O24
+ 0.7060000000000000 0.6390000000000002 0.6569999999999999 # O25
+ 0.8849999999999999 0.9110000000000000 0.1500000000000003 # O26
+ 0.0000000000000000 0.7280000000000001 0.1329999999999996 # O27
+ 0.8310000000000000 0.5850000000000000 0.2270000000000002 # O28
+ 0.1089999999999999 0.5000000000000000 0.7279999999999999 # O29
+ 0.3960000000000002 0.5000000000000000 0.6540000000000005 # O30
+ 0.3980000000000000 0.1960000000000002 0.6359999999999997 # O31
+ 0.5000000000000000 0.3459999999999999 0.5979999999999996 # O32
+ 0.2059999999999999 0.1389999999999999 0.6569999999999999 # O33
+ 0.3850000000000001 0.4110000000000001 0.1500000000000003 # O34
+ 0.5000000000000000 0.2280000000000001 0.1329999999999996 # O35
+ 0.3309999999999998 0.0849999999999999 0.2270000000000002 # O36
+ 0.8980000000000000 0.3040000000000002 0.6359999999999997 # O37
+ 0.7060000000000000 0.3610000000000000 0.6569999999999999 # O38
+ 0.8849999999999999 0.0889999999999999 0.1500000000000003 # O39
+ 0.8310000000000000 0.4150000000000001 0.2270000000000002 # O40
+ 0.7500000000000002 0.2500000000000002 0.2429999999999997 # O41
+ 0.3980000000000000 0.8040000000000000 0.6359999999999997 # O42
+ 0.2060000000000003 0.8610000000000001 0.6569999999999999 # O43
+ 0.3850000000000001 0.5890000000000001 0.1500000000000003 # O44
+ 0.3310000000000001 0.9150000000000000 0.2270000000000002 # O45
+ 0.2500000000000002 0.7500000000000001 0.2429999999999997 # O46
+ 0.1020000000000000 0.6960000000000002 0.6359999999999997 # O47
+ 0.2940000000000002 0.6390000000000002 0.6569999999999999 # O48
+ 0.1150000000000000 0.9110000000000000 0.1500000000000003 # O49
+ 0.1690000000000002 0.5850000000000000 0.2270000000000002 # O50
+ 0.6020000000000002 0.1960000000000002 0.6359999999999997 # O51
+ 0.7940000000000003 0.1389999999999999 0.6569999999999999 # O52
+ 0.6149999999999999 0.4110000000000001 0.1500000000000003 # O53
+ 0.6690000000000002 0.0849999999999999 0.2270000000000002 # O54
diff --git a/test/data/orthorhombic/POSCAR-036 b/test/data/orthorhombic/POSCAR-036
new file mode 100644
index 0000000..7bba8b3
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-036
@@ -0,0 +1,375 @@
+$cell vectors
+1.0
+ 35.2929833931692798 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 17.9429915570690071 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.7459963551834408
+ 80 48 240
+Direct
+ 0.1248999999999999 0.4996999999999999 0.2500000000000004 # Nb1
+ 0.1252000000000000 0.0000000000000000 0.2500000000000004 # Nb2
+ 0.0352999999999999 0.6099999999999998 0.2500000000000004 # Nb3
+ 0.2149000000000000 0.6106000000000000 0.2500000000000004 # Nb4
+ 0.0338000000000000 0.3939999999999999 0.2500000000000004 # Nb5
+ 0.2159999999999999 0.3948999999999999 0.2500000000000004 # Nb6
+ 0.0716000000000000 0.1792000000000001 0.2500000000000004 # Nb7
+ 0.1778000000000000 0.1865000000000000 0.2500000000000004 # Nb8
+ 0.0698000000000000 0.8218999999999999 0.2500000000000004 # Nb9
+ 0.1804000000000000 0.8211999999999998 0.2500000000000004 # Nb10
+ 0.6249000000000000 0.4996999999999999 0.7499999999999998 # Nb11
+ 0.6251999999999998 0.0000000000000000 0.7499999999999998 # Nb12
+ 0.5352999999999998 0.6099999999999998 0.7499999999999998 # Nb13
+ 0.7148999999999999 0.6106000000000000 0.7499999999999998 # Nb14
+ 0.5337999999999999 0.3939999999999999 0.7499999999999998 # Nb15
+ 0.7159999999999999 0.3948999999999999 0.7499999999999998 # Nb16
+ 0.5715999999999999 0.1792000000000001 0.7499999999999998 # Nb17
+ 0.6777999999999998 0.1865000000000000 0.7499999999999998 # Nb18
+ 0.5698000000000001 0.8218999999999999 0.7499999999999998 # Nb19
+ 0.6804000000000001 0.8211999999999998 0.7499999999999998 # Nb20
+ 0.8750999999999997 0.9996999999999999 0.7499999999999998 # Nb21
+ 0.8747999999999999 0.4999999999999998 0.7499999999999998 # Nb22
+ 0.9646999999999999 0.1100000000000000 0.7499999999999998 # Nb23
+ 0.7850999999999998 0.1106000000000002 0.7499999999999998 # Nb24
+ 0.9661999999999997 0.8939999999999998 0.7499999999999998 # Nb25
+ 0.7839999999999998 0.8948999999999997 0.7499999999999998 # Nb26
+ 0.9283999999999996 0.6791999999999999 0.7499999999999998 # Nb27
+ 0.8221999999999999 0.6864999999999998 0.7499999999999998 # Nb28
+ 0.9302000000000000 0.3218999999999998 0.7499999999999998 # Nb29
+ 0.8196000000000000 0.3212000000000000 0.7499999999999998 # Nb30
+ 0.3750999999999999 0.9996999999999998 0.2500000000000004 # Nb31
+ 0.3748000000000000 0.4999999999999998 0.2500000000000004 # Nb32
+ 0.4646999999999999 0.1100000000000000 0.2500000000000004 # Nb33
+ 0.2850999999999999 0.1105999999999999 0.2500000000000004 # Nb34
+ 0.4661999999999999 0.8939999999999998 0.2500000000000004 # Nb35
+ 0.2840000000000000 0.8948999999999997 0.2500000000000004 # Nb36
+ 0.4283999999999999 0.6791999999999999 0.2500000000000004 # Nb37
+ 0.3222000000000000 0.6864999999999998 0.2500000000000004 # Nb38
+ 0.4302000000000000 0.3218999999999998 0.2500000000000004 # Nb39
+ 0.3195999999999998 0.3212000000000000 0.2500000000000004 # Nb40
+ 0.1248999999999999 0.4996999999999999 0.7499999999999998 # Nb41
+ 0.1252000000000000 0.0000000000000000 0.7499999999999998 # Nb42
+ 0.0352999999999999 0.6099999999999998 0.7499999999999998 # Nb43
+ 0.2149000000000000 0.6106000000000000 0.7499999999999998 # Nb44
+ 0.0338000000000000 0.3939999999999999 0.7499999999999998 # Nb45
+ 0.2159999999999999 0.3948999999999999 0.7499999999999998 # Nb46
+ 0.0716000000000000 0.1792000000000001 0.7499999999999998 # Nb47
+ 0.1778000000000000 0.1865000000000000 0.7499999999999998 # Nb48
+ 0.0698000000000000 0.8218999999999999 0.7499999999999998 # Nb49
+ 0.1804000000000000 0.8211999999999998 0.7499999999999998 # Nb50
+ 0.6249000000000000 0.4996999999999999 0.2500000000000004 # Nb51
+ 0.6251999999999998 0.0000000000000000 0.2500000000000004 # Nb52
+ 0.5352999999999998 0.6099999999999998 0.2500000000000004 # Nb53
+ 0.7148999999999999 0.6106000000000000 0.2500000000000004 # Nb54
+ 0.5337999999999999 0.3939999999999999 0.2500000000000004 # Nb55
+ 0.7159999999999999 0.3948999999999999 0.2500000000000004 # Nb56
+ 0.5715999999999999 0.1792000000000001 0.2500000000000004 # Nb57
+ 0.6777999999999998 0.1865000000000000 0.2500000000000004 # Nb58
+ 0.5698000000000001 0.8218999999999999 0.2500000000000004 # Nb59
+ 0.6804000000000001 0.8211999999999998 0.2500000000000004 # Nb60
+ 0.8750999999999997 0.9996999999999999 0.2500000000000004 # Nb61
+ 0.8747999999999999 0.4999999999999998 0.2500000000000004 # Nb62
+ 0.9646999999999999 0.1100000000000000 0.2500000000000004 # Nb63
+ 0.7850999999999998 0.1106000000000002 0.2500000000000004 # Nb64
+ 0.9661999999999997 0.8939999999999998 0.2500000000000004 # Nb65
+ 0.7839999999999998 0.8948999999999997 0.2500000000000004 # Nb66
+ 0.9283999999999996 0.6791999999999999 0.2500000000000004 # Nb67
+ 0.8221999999999999 0.6864999999999998 0.2500000000000004 # Nb68
+ 0.9301999999999996 0.3218999999999998 0.2500000000000004 # Nb69
+ 0.8196000000000000 0.3212000000000000 0.2500000000000004 # Nb70
+ 0.3750999999999999 0.9996999999999998 0.7499999999999998 # Nb71
+ 0.3748000000000000 0.4999999999999998 0.7499999999999998 # Nb72
+ 0.4646999999999999 0.1100000000000000 0.7499999999999998 # Nb73
+ 0.2850999999999999 0.1105999999999999 0.7499999999999998 # Nb74
+ 0.4661999999999999 0.8939999999999998 0.7499999999999998 # Nb75
+ 0.2840000000000000 0.8948999999999997 0.7499999999999998 # Nb76
+ 0.4283999999999999 0.6791999999999999 0.7499999999999998 # Nb77
+ 0.3222000000000000 0.6864999999999998 0.7499999999999998 # Nb78
+ 0.4302000000000000 0.3218999999999998 0.7499999999999998 # Nb79
+ 0.3195999999999998 0.3212000000000000 0.7499999999999998 # Nb80
+ 0.0384999999999999 0.0234999999999999 0.0000000000000000 # Pb1
+ 0.0395000000000000 0.0297000000000001 0.5000000000000000 # Pb2
+ 0.2095000000000000 0.0335000000000000 0.0000000000000000 # Pb3
+ 0.2127999999999999 0.0181999999999999 0.5000000000000000 # Pb4
+ 0.1274000000000000 0.6998999999999999 0.0000000000000000 # Pb5
+ 0.1303000000000000 0.6901999999999997 0.5000000000000000 # Pb6
+ 0.1300999999999999 0.3448999999999998 0.5000000000000000 # Pb7
+ 0.1173000000000000 0.3437999999999998 0.0000000000000000 # Pb8
+ 0.0017000000000000 0.2482000000000000 0.0000000000000000 # Pb9
+ 0.2476999999999999 0.2486000000000002 0.0000000000000000 # Pb10
+ 0.0010000000000001 0.2496999999999998 0.5000000000000000 # Pb11
+ 0.2481000000000000 0.2489000000000000 0.5000000000000000 # Pb12
+ 0.5384999999999996 0.0234999999999999 0.5000000000000000 # Pb13
+ 0.5394999999999998 0.0297000000000001 0.0000000000000000 # Pb14
+ 0.7094999999999998 0.0335000000000000 0.5000000000000000 # Pb15
+ 0.7127999999999998 0.0181999999999999 0.0000000000000000 # Pb16
+ 0.6273999999999998 0.6998999999999999 0.5000000000000000 # Pb17
+ 0.6303000000000000 0.6901999999999997 0.0000000000000000 # Pb18
+ 0.6301000000000000 0.3448999999999998 0.0000000000000000 # Pb19
+ 0.6172999999999997 0.3437999999999998 0.5000000000000000 # Pb20
+ 0.5016999999999998 0.2482000000000000 0.5000000000000000 # Pb21
+ 0.7476999999999999 0.2486000000000002 0.5000000000000000 # Pb22
+ 0.5009999999999999 0.2496999999999998 0.0000000000000000 # Pb23
+ 0.7480999999999998 0.2489000000000000 0.0000000000000000 # Pb24
+ 0.9614999999999999 0.5234999999999997 0.0000000000000000 # Pb25
+ 0.9604999999999998 0.5296999999999998 0.5000000000000000 # Pb26
+ 0.7904999999999999 0.5334999999999999 0.0000000000000000 # Pb27
+ 0.7871999999999997 0.5181999999999997 0.5000000000000000 # Pb28
+ 0.8725999999999999 0.1999000000000000 0.0000000000000000 # Pb29
+ 0.8696999999999997 0.1901999999999999 0.5000000000000000 # Pb30
+ 0.8698999999999997 0.8448999999999999 0.5000000000000000 # Pb31
+ 0.8826999999999998 0.8437999999999999 0.0000000000000000 # Pb32
+ 0.9982999999999997 0.7481999999999999 0.0000000000000000 # Pb33
+ 0.7522999999999999 0.7485999999999999 0.0000000000000000 # Pb34
+ 0.9989999999999996 0.7496999999999999 0.5000000000000000 # Pb35
+ 0.7518999999999997 0.7488999999999999 0.5000000000000000 # Pb36
+ 0.4614999999999999 0.5234999999999997 0.5000000000000000 # Pb37
+ 0.4605000000000001 0.5296999999999998 0.0000000000000000 # Pb38
+ 0.2904999999999999 0.5334999999999999 0.5000000000000000 # Pb39
+ 0.2872000000000000 0.5181999999999997 0.0000000000000000 # Pb40
+ 0.3725999999999999 0.1999000000000000 0.5000000000000000 # Pb41
+ 0.3696999999999999 0.1901999999999999 0.0000000000000000 # Pb42
+ 0.3699000000000000 0.8448999999999999 0.0000000000000000 # Pb43
+ 0.3826999999999999 0.8437999999999999 0.5000000000000000 # Pb44
+ 0.4983000000000000 0.7481999999999999 0.5000000000000000 # Pb45
+ 0.2523000000000000 0.7485999999999999 0.5000000000000000 # Pb46
+ 0.4990000000000000 0.7496999999999999 0.0000000000000000 # Pb47
+ 0.2519000000000000 0.7488999999999999 0.0000000000000000 # Pb48
+ 0.1128000000000000 0.4837000000000000 0.0000000000000000 # O1
+ 0.3672000000000000 0.9909999999999998 0.0000000000000000 # O2
+ 0.1421000000000000 0.9929999999999999 0.0000000000000000 # O3
+ 0.3870000000000000 0.4944999999999999 0.0000000000000000 # O4
+ 0.4606999999999999 0.1001000000000003 0.5000000000000000 # O5
+ 0.4751000000000000 0.1039000000000002 0.0000000000000000 # O6
+ 0.2761999999999999 0.0964000000000001 0.5000000000000000 # O7
+ 0.2911999999999999 0.1121000000000000 0.0000000000000000 # O8
+ 0.0409999999999999 0.3836999999999999 0.0000000000000000 # O9
+ 0.0288000000000000 0.4061999999999998 0.5000000000000000 # O10
+ 0.2264000000000000 0.3850999999999998 0.0000000000000000 # O11
+ 0.2038000000000000 0.3733999999999998 0.5000000000000000 # O12
+ 0.0735999999999999 0.2063999999999999 0.0000000000000000 # O13
+ 0.0660000000000000 0.1514999999999999 0.5000000000000000 # O14
+ 0.1749000000000000 0.1676999999999999 0.0000000000000000 # O15
+ 0.1854000000000000 0.1777000000000001 0.5000000000000000 # O16
+ 0.4275999999999998 0.2978000000000000 0.5000000000000000 # O17
+ 0.4268999999999999 0.3121999999999999 0.0000000000000000 # O18
+ 0.3304000000000000 0.3134999999999998 0.5000000000000000 # O19
+ 0.3192999999999999 0.2863000000000001 0.0000000000000000 # O20
+ 0.4113000000000000 0.0708000000000000 0.2174000000000000 # O21
+ 0.3388999999999999 0.0752999999999999 0.2706999999999997 # O22
+ 0.4462999999999999 0.2128000000000002 0.2089000000000003 # O23
+ 0.3042000000000000 0.2129000000000000 0.2740000000000000 # O24
+ 0.0139000000000000 0.4962999999999999 0.2192999999999999 # O25
+ 0.2346999999999999 0.4910999999999998 0.2690000000000001 # O26
+ 0.0171999999999999 0.1298999999999999 0.2335999999999997 # O27
+ 0.2318000000000000 0.1403000000000000 0.2055000000000003 # O28
+ 0.0855999999999999 0.0702000000000000 0.2312000000000002 # O29
+ 0.1619000000000000 0.0726000000000000 0.2848000000000000 # O30
+ 0.1268000000000000 0.2127000000000001 0.2805000000000000 # O31
+ 0.3769999999999999 0.2741999999999999 0.2426000000000003 # O32
+ 0.4109999999999999 0.4186999999999999 0.2838999999999999 # O33
+ 0.3400999999999999 0.4255000000000000 0.2050000000000001 # O34
+ 0.4835999999999997 0.3491999999999998 0.2739000000000002 # O35
+ 0.2702999999999999 0.3430000000000000 0.2745000000000002 # O36
+ 0.0509000000000000 0.2694999999999999 0.2978999999999998 # O37
+ 0.2000000000000000 0.2816000000000000 0.2504000000000002 # O38
+ 0.0851000000000000 0.4047999999999999 0.2808000000000000 # O39
+ 0.1612000000000000 0.4112999999999999 0.2207000000000002 # O40
+ 0.6127999999999998 0.4836999999999997 0.5000000000000000 # O41
+ 0.8671999999999997 0.9909999999999998 0.5000000000000000 # O42
+ 0.6421000000000000 0.9929999999999999 0.5000000000000000 # O43
+ 0.8869999999999998 0.4944999999999999 0.5000000000000000 # O44
+ 0.9606999999999998 0.1001000000000003 0.0000000000000000 # O45
+ 0.9751000000000001 0.1039000000000002 0.5000000000000000 # O46
+ 0.7761999999999997 0.0964000000000001 0.0000000000000000 # O47
+ 0.7911999999999998 0.1121000000000000 0.5000000000000000 # O48
+ 0.5409999999999999 0.3836999999999999 0.5000000000000000 # O49
+ 0.5287999999999998 0.4061999999999998 0.0000000000000000 # O50
+ 0.7263999999999998 0.3850999999999998 0.5000000000000000 # O51
+ 0.7037999999999999 0.3733999999999998 0.0000000000000000 # O52
+ 0.5735999999999999 0.2064000000000002 0.5000000000000000 # O53
+ 0.5660000000000001 0.1515000000000002 0.0000000000000000 # O54
+ 0.6748999999999999 0.1676999999999999 0.5000000000000000 # O55
+ 0.6853999999999998 0.1777000000000001 0.0000000000000000 # O56
+ 0.9275999999999999 0.2978000000000000 0.0000000000000000 # O57
+ 0.9268999999999998 0.3121999999999999 0.5000000000000000 # O58
+ 0.8303999999999999 0.3134999999999998 0.0000000000000000 # O59
+ 0.8192999999999998 0.2863000000000001 0.5000000000000000 # O60
+ 0.9112999999999998 0.0708000000000003 0.7174000000000000 # O61
+ 0.8388999999999999 0.0753000000000002 0.7706999999999997 # O62
+ 0.9462999999999999 0.2128000000000002 0.7089000000000004 # O63
+ 0.8041999999999999 0.2129000000000000 0.7739999999999999 # O64
+ 0.5139000000000000 0.4962999999999999 0.7193000000000001 # O65
+ 0.7346999999999998 0.4910999999999998 0.7690000000000001 # O66
+ 0.5171999999999999 0.1299000000000002 0.7336000000000006 # O67
+ 0.7317999999999997 0.1403000000000000 0.7055000000000003 # O68
+ 0.5856000000000000 0.0702000000000000 0.7312000000000003 # O69
+ 0.6618999999999997 0.0726000000000000 0.7848000000000001 # O70
+ 0.6268000000000001 0.2127000000000001 0.7805000000000001 # O71
+ 0.8769999999999999 0.2741999999999999 0.7426000000000004 # O72
+ 0.9110000000000000 0.4186999999999999 0.7838999999999999 # O73
+ 0.8401000000000002 0.4255000000000000 0.7050000000000003 # O74
+ 0.9835999999999997 0.3491999999999998 0.7739000000000003 # O75
+ 0.7703000000000000 0.3430000000000000 0.7745000000000003 # O76
+ 0.5508999999999998 0.2694999999999999 0.7979000000000006 # O77
+ 0.6999999999999998 0.2816000000000000 0.7504000000000003 # O78
+ 0.5850999999999998 0.4047999999999999 0.7808000000000000 # O79
+ 0.6611999999999998 0.4112999999999999 0.7207000000000002 # O80
+ 0.8871999999999998 0.9836999999999999 0.0000000000000000 # O81
+ 0.6328000000000000 0.4909999999999997 0.0000000000000000 # O82
+ 0.8578999999999999 0.4929999999999998 0.0000000000000000 # O83
+ 0.6129999999999998 0.9944999999999998 0.0000000000000000 # O84
+ 0.5392999999999999 0.6000999999999997 0.5000000000000000 # O85
+ 0.5248999999999999 0.6039000000000000 0.0000000000000000 # O86
+ 0.7237999999999999 0.5963999999999999 0.5000000000000000 # O87
+ 0.7088000000000000 0.6120999999999999 0.0000000000000000 # O88
+ 0.9590000000000000 0.8836999999999997 0.0000000000000000 # O89
+ 0.9711999999999998 0.9061999999999999 0.5000000000000000 # O90
+ 0.7736000000000000 0.8851000000000000 0.0000000000000000 # O91
+ 0.7961999999999998 0.8734000000000000 0.5000000000000000 # O92
+ 0.9263999999999999 0.7063999999999999 0.0000000000000000 # O93
+ 0.9339999999999998 0.6514999999999997 0.5000000000000000 # O94
+ 0.8250999999999998 0.6676999999999997 0.0000000000000000 # O95
+ 0.8145999999999999 0.6776999999999999 0.5000000000000000 # O96
+ 0.5723999999999999 0.7977999999999997 0.5000000000000000 # O97
+ 0.5731000000000001 0.8121999999999997 0.0000000000000000 # O98
+ 0.6695999999999999 0.8134999999999999 0.5000000000000000 # O99
+ 0.6807000000000001 0.7862999999999998 0.0000000000000000 # O100
+ 0.5886999999999998 0.5707999999999998 0.7826000000000003 # O101
+ 0.6611000000000000 0.5753000000000001 0.7293000000000004 # O102
+ 0.5537000000000000 0.7127999999999998 0.7911000000000004 # O103
+ 0.6958000000000000 0.7128999999999999 0.7260000000000002 # O104
+ 0.9860999999999998 0.9962999999999995 0.7807000000000003 # O105
+ 0.7652999999999998 0.9910999999999996 0.7310000000000000 # O106
+ 0.9827999999999998 0.6298999999999999 0.7664000000000004 # O107
+ 0.7681999999999999 0.6402999999999998 0.7944999999999999 # O108
+ 0.9144000000000000 0.5701999999999998 0.7688000000000000 # O109
+ 0.8380999999999998 0.5725999999999998 0.7152000000000001 # O110
+ 0.8731999999999996 0.7126999999999999 0.7195000000000003 # O111
+ 0.6229999999999999 0.7741999999999998 0.7573999999999997 # O112
+ 0.5890000000000001 0.9186999999999997 0.7161000000000001 # O113
+ 0.6599000000000000 0.9254999999999999 0.7950000000000002 # O114
+ 0.5163999999999997 0.8491999999999997 0.7261000000000001 # O115
+ 0.7296999999999998 0.8429999999999999 0.7254999999999999 # O116
+ 0.9491000000000001 0.7695000000000000 0.7021000000000004 # O117
+ 0.7999999999999997 0.7815999999999997 0.7495999999999999 # O118
+ 0.9148999999999998 0.9047999999999998 0.7192000000000002 # O119
+ 0.8387999999999998 0.9112999999999998 0.7793000000000000 # O120
+ 0.3871999999999999 0.9836999999999998 0.5000000000000000 # O121
+ 0.1328000000000000 0.4910000000000000 0.5000000000000000 # O122
+ 0.3578999999999999 0.4929999999999998 0.5000000000000000 # O123
+ 0.1130000000000000 0.9944999999999998 0.5000000000000000 # O124
+ 0.0393000000000000 0.6000999999999997 0.0000000000000000 # O125
+ 0.0249000000000000 0.6039000000000000 0.5000000000000000 # O126
+ 0.2238000000000000 0.5963999999999999 0.0000000000000000 # O127
+ 0.2088000000000000 0.6120999999999999 0.5000000000000000 # O128
+ 0.4590000000000000 0.8836999999999997 0.5000000000000000 # O129
+ 0.4712000000000000 0.9061999999999999 0.0000000000000000 # O130
+ 0.2736000000000001 0.8851000000000000 0.5000000000000000 # O131
+ 0.2962000000000001 0.8734000000000000 0.0000000000000000 # O132
+ 0.4263999999999999 0.7063999999999999 0.5000000000000000 # O133
+ 0.4339999999999999 0.6514999999999997 0.0000000000000000 # O134
+ 0.3250999999999999 0.6676999999999997 0.5000000000000000 # O135
+ 0.3145999999999999 0.6776999999999999 0.0000000000000000 # O136
+ 0.0724000000000001 0.7977999999999997 0.0000000000000000 # O137
+ 0.0731000000000001 0.8121999999999997 0.5000000000000000 # O138
+ 0.1695999999999999 0.8134999999999999 0.0000000000000000 # O139
+ 0.1806999999999999 0.7862999999999998 0.5000000000000000 # O140
+ 0.0886999999999999 0.5707999999999998 0.2826000000000001 # O141
+ 0.1611000000000000 0.5753000000000001 0.2293000000000003 # O142
+ 0.0537000000000001 0.7127999999999998 0.2910999999999998 # O143
+ 0.1957999999999999 0.7128999999999999 0.2260000000000001 # O144
+ 0.4860999999999998 0.9962999999999995 0.2807000000000002 # O145
+ 0.2653000000000000 0.9910999999999996 0.2310000000000000 # O146
+ 0.4828000000000001 0.6298999999999999 0.2664000000000004 # O147
+ 0.2682000000000000 0.6402999999999998 0.2944999999999998 # O148
+ 0.4144000000000000 0.5701999999999998 0.2687999999999998 # O149
+ 0.3381000000000000 0.5725999999999998 0.2152000000000001 # O150
+ 0.3731999999999999 0.7126999999999999 0.2195000000000001 # O151
+ 0.1230000000000000 0.7741999999999998 0.2573999999999997 # O152
+ 0.0890000000000000 0.9186999999999997 0.2161000000000001 # O153
+ 0.1599000000000000 0.9254999999999999 0.2950000000000001 # O154
+ 0.0164000000000000 0.8491999999999997 0.2260999999999999 # O155
+ 0.2297000000000001 0.8429999999999999 0.2254999999999998 # O156
+ 0.4490999999999999 0.7695000000000000 0.2021000000000003 # O157
+ 0.2999999999999999 0.7815999999999997 0.2495999999999999 # O158
+ 0.4148999999999999 0.9047999999999998 0.2192000000000001 # O159
+ 0.3388000000000001 0.9112999999999998 0.2792999999999999 # O160
+ 0.4113000000000000 0.0708000000000003 0.7826000000000003 # O161
+ 0.3388999999999999 0.0752999999999999 0.7293000000000004 # O162
+ 0.4462999999999999 0.2128000000000002 0.7911000000000004 # O163
+ 0.3042000000000000 0.2129000000000000 0.7260000000000002 # O164
+ 0.0139000000000000 0.4962999999999999 0.7807000000000003 # O165
+ 0.2346999999999999 0.4910999999999998 0.7310000000000000 # O166
+ 0.0172000000000001 0.1298999999999999 0.7664000000000004 # O167
+ 0.2318000000000000 0.1403000000000000 0.7944999999999999 # O168
+ 0.0856000000000001 0.0702000000000000 0.7688000000000000 # O169
+ 0.1619000000000000 0.0726000000000000 0.7152000000000001 # O170
+ 0.1268000000000000 0.2127000000000001 0.7195000000000003 # O171
+ 0.3769999999999999 0.2741999999999999 0.7573999999999997 # O172
+ 0.4109999999999999 0.4186999999999999 0.7161000000000001 # O173
+ 0.3400999999999999 0.4255000000000000 0.7950000000000002 # O174
+ 0.4835999999999997 0.3491999999999998 0.7261000000000001 # O175
+ 0.2702999999999999 0.3430000000000000 0.7254999999999999 # O176
+ 0.0509000000000000 0.2695000000000002 0.7021000000000004 # O177
+ 0.2000000000000000 0.2816000000000000 0.7495999999999999 # O178
+ 0.0851000000000000 0.4047999999999999 0.7192000000000002 # O179
+ 0.1612000000000000 0.4112999999999999 0.7793000000000000 # O180
+ 0.9112999999999998 0.0708000000000000 0.2826000000000001 # O181
+ 0.8388999999999999 0.0753000000000002 0.2293000000000003 # O182
+ 0.9462999999999997 0.2128000000000002 0.2910999999999998 # O183
+ 0.8041999999999999 0.2129000000000000 0.2260000000000001 # O184
+ 0.5139000000000000 0.4962999999999999 0.2807000000000002 # O185
+ 0.7346999999999998 0.4910999999999998 0.2310000000000000 # O186
+ 0.5171999999999999 0.1299000000000002 0.2664000000000004 # O187
+ 0.7317999999999997 0.1403000000000000 0.2944999999999998 # O188
+ 0.5856000000000000 0.0702000000000000 0.2687999999999998 # O189
+ 0.6618999999999997 0.0726000000000000 0.2152000000000001 # O190
+ 0.6268000000000001 0.2127000000000001 0.2195000000000001 # O191
+ 0.8769999999999999 0.2741999999999999 0.2573999999999997 # O192
+ 0.9110000000000000 0.4186999999999999 0.2161000000000001 # O193
+ 0.8400999999999998 0.4255000000000000 0.2950000000000001 # O194
+ 0.9835999999999997 0.3491999999999998 0.2260999999999999 # O195
+ 0.7703000000000000 0.3430000000000000 0.2254999999999998 # O196
+ 0.5508999999999998 0.2694999999999999 0.2021000000000003 # O197
+ 0.6999999999999998 0.2816000000000000 0.2495999999999999 # O198
+ 0.5850999999999998 0.4047999999999999 0.2192000000000001 # O199
+ 0.6611999999999998 0.4112999999999999 0.2792999999999999 # O200
+ 0.5886999999999998 0.5707999999999998 0.2174000000000000 # O201
+ 0.6611000000000000 0.5753000000000001 0.2706999999999997 # O202
+ 0.5537000000000000 0.7127999999999998 0.2089000000000003 # O203
+ 0.6958000000000000 0.7128999999999999 0.2740000000000000 # O204
+ 0.9860999999999998 0.9962999999999995 0.2192999999999999 # O205
+ 0.7652999999999998 0.9910999999999996 0.2690000000000001 # O206
+ 0.9827999999999998 0.6298999999999999 0.2335999999999997 # O207
+ 0.7681999999999999 0.6402999999999998 0.2055000000000003 # O208
+ 0.9144000000000000 0.5701999999999998 0.2312000000000002 # O209
+ 0.8380999999999998 0.5725999999999998 0.2848000000000000 # O210
+ 0.8731999999999996 0.7126999999999999 0.2805000000000000 # O211
+ 0.6229999999999999 0.7741999999999998 0.2426000000000003 # O212
+ 0.5890000000000001 0.9186999999999997 0.2838999999999999 # O213
+ 0.6599000000000000 0.9254999999999999 0.2050000000000001 # O214
+ 0.5163999999999997 0.8491999999999997 0.2739000000000002 # O215
+ 0.7296999999999998 0.8429999999999999 0.2745000000000002 # O216
+ 0.9491000000000001 0.7695000000000000 0.2978999999999998 # O217
+ 0.7999999999999997 0.7815999999999997 0.2504000000000002 # O218
+ 0.9148999999999998 0.9047999999999998 0.2808000000000000 # O219
+ 0.8387999999999998 0.9112999999999998 0.2207000000000002 # O220
+ 0.0887000000000001 0.5707999999999998 0.7174000000000000 # O221
+ 0.1611000000000000 0.5753000000000001 0.7706999999999997 # O222
+ 0.0537000000000001 0.7127999999999998 0.7089000000000004 # O223
+ 0.1957999999999999 0.7128999999999999 0.7739999999999999 # O224
+ 0.4860999999999998 0.9962999999999995 0.7193000000000001 # O225
+ 0.2653000000000000 0.9910999999999996 0.7690000000000001 # O226
+ 0.4828000000000001 0.6298999999999999 0.7336000000000006 # O227
+ 0.2682000000000000 0.6402999999999998 0.7055000000000003 # O228
+ 0.4144000000000000 0.5701999999999998 0.7312000000000003 # O229
+ 0.3381000000000000 0.5725999999999998 0.7848000000000001 # O230
+ 0.3731999999999999 0.7126999999999999 0.7805000000000001 # O231
+ 0.1230000000000000 0.7741999999999998 0.7426000000000004 # O232
+ 0.0890000000000000 0.9186999999999997 0.7838999999999999 # O233
+ 0.1599000000000000 0.9254999999999999 0.7050000000000003 # O234
+ 0.0164000000000001 0.8491999999999997 0.7739000000000003 # O235
+ 0.2297000000000001 0.8429999999999999 0.7745000000000003 # O236
+ 0.4490999999999999 0.7695000000000000 0.7979000000000006 # O237
+ 0.2999999999999999 0.7815999999999997 0.7504000000000003 # O238
+ 0.4148999999999999 0.9047999999999998 0.7808000000000000 # O239
+ 0.3388000000000001 0.9112999999999998 0.7207000000000002 # O240
diff --git a/test/data/orthorhombic/POSCAR-036-2 b/test/data/orthorhombic/POSCAR-036-2
new file mode 100644
index 0000000..8068f07
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-036-2
@@ -0,0 +1,207 @@
+$cell vectors
+1.0
+ 17.2799918690381986 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.9799953039931264 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.5499936241590007
+ 24 56 120
+Direct
+ 0.1936000000000000 0.1906000000000002 0.2478000000000002 # Pb1
+ 0.1317000000000000 0.1377999999999998 0.7587000000000003 # Pb2
+ 0.0000000000000000 0.2616999999999999 0.2355999999999999 # Pb3
+ 0.0000000000000000 0.3932999999999998 0.7505000000000001 # Pb4
+ 0.6936000000000000 0.6905999999999998 0.2477999999999998 # Pb5
+ 0.6316999999999999 0.6377999999999999 0.7587000000000003 # Pb6
+ 0.5000000000000000 0.7616999999999999 0.2355999999999999 # Pb7
+ 0.5000000000000000 0.8932999999999998 0.7505000000000001 # Pb8
+ 0.8064000000000000 0.8093999999999998 0.7478000000000005 # Pb9
+ 0.8682999999999998 0.8621999999999997 0.2587000000000000 # Pb10
+ 0.0000000000000000 0.7383000000000002 0.7356000000000000 # Pb11
+ 0.0000000000000000 0.6066999999999998 0.2504999999999998 # Pb12
+ 0.3063999999999999 0.3093999999999998 0.7477999999999999 # Pb13
+ 0.3683000000000000 0.3622000000000002 0.2587000000000000 # Pb14
+ 0.5000000000000000 0.2383000000000001 0.7356000000000000 # Pb15
+ 0.5000000000000000 0.1067000000000003 0.2504999999999998 # Pb16
+ 0.8064000000000000 0.1906000000000002 0.2478000000000002 # Pb17
+ 0.8682999999999998 0.1377999999999998 0.7587000000000003 # Pb18
+ 0.3063999999999999 0.6905999999999998 0.2477999999999998 # Pb19
+ 0.3683000000000000 0.6377999999999999 0.7587000000000003 # Pb20
+ 0.1936000000000000 0.8094000000000003 0.7477999999999999 # Pb21
+ 0.1317000000000000 0.8621999999999997 0.2587000000000000 # Pb22
+ 0.6936000000000000 0.3093999999999998 0.7478000000000005 # Pb23
+ 0.6316999999999999 0.3622000000000002 0.2587000000000000 # Pb24
+ 0.1680000000000000 0.9990000000000000 0.0090000000000000 # Mn1
+ 0.0830000000000001 0.2509999999999999 0.0080000000000002 # Mn2
+ 0.1660000000000000 0.4970000000000003 0.1520000000000000 # Mn3
+ 0.2500000000000000 0.2509999999999999 0.0009999999999998 # Mn4
+ 0.0000000000000000 0.0030000000000004 0.0000000000000000 # Mn5
+ 0.0000000000000000 0.5040000000000000 0.0009999999999998 # Mn6
+ 0.0849999999999999 0.2549999999999999 0.5090000000000002 # Mn7
+ 0.1680000000000000 0.4970000000000003 0.3560000000000000 # Mn8
+ 0.6679999999999999 0.4989999999999999 0.0090000000000000 # Mn9
+ 0.5829999999999999 0.7509999999999999 0.0080000000000002 # Mn10
+ 0.6660000000000000 0.9970000000000002 0.1520000000000000 # Mn11
+ 0.7499999999999999 0.7509999999999999 0.0009999999999998 # Mn12
+ 0.5000000000000000 0.5029999999999999 0.0000000000000000 # Mn13
+ 0.5000000000000000 0.0040000000000000 0.0009999999999998 # Mn14
+ 0.5849999999999999 0.7549999999999999 0.5090000000000002 # Mn15
+ 0.6679999999999999 0.9969999999999996 0.3560000000000000 # Mn16
+ 0.8319999999999999 0.0010000000000001 0.5090000000000002 # Mn17
+ 0.9169999999999998 0.7490000000000002 0.5080000000000000 # Mn18
+ 0.8339999999999997 0.5029999999999999 0.6520000000000001 # Mn19
+ 0.7499999999999999 0.7490000000000002 0.5010000000000000 # Mn20
+ 0.0000000000000000 0.9969999999999996 0.5000000000000002 # Mn21
+ 0.0000000000000000 0.4960000000000002 0.5010000000000000 # Mn22
+ 0.9150000000000000 0.7449999999999997 0.0090000000000000 # Mn23
+ 0.8319999999999999 0.5029999999999999 0.8560000000000002 # Mn24
+ 0.3319999999999999 0.5010000000000002 0.5090000000000002 # Mn25
+ 0.4169999999999999 0.2490000000000001 0.5080000000000000 # Mn26
+ 0.3340000000000000 0.0029999999999998 0.6520000000000001 # Mn27
+ 0.2500000000000000 0.2490000000000001 0.5010000000000000 # Mn28
+ 0.5000000000000000 0.4970000000000003 0.5000000000000002 # Mn29
+ 0.5000000000000000 0.9959999999999997 0.5010000000000000 # Mn30
+ 0.4149999999999998 0.2449999999999997 0.0090000000000000 # Mn31
+ 0.3319999999999999 0.0029999999999998 0.8560000000000002 # Mn32
+ 0.8319999999999999 0.9990000000000000 0.0090000000000000 # Mn33
+ 0.9169999999999998 0.2509999999999999 0.0079999999999998 # Mn34
+ 0.8339999999999997 0.4970000000000003 0.1520000000000000 # Mn35
+ 0.7499999999999999 0.2509999999999999 0.0009999999999998 # Mn36
+ 0.9150000000000000 0.2549999999999999 0.5090000000000002 # Mn37
+ 0.8319999999999999 0.4970000000000003 0.3560000000000000 # Mn38
+ 0.3319999999999999 0.4989999999999999 0.0090000000000000 # Mn39
+ 0.4169999999999999 0.7509999999999999 0.0080000000000002 # Mn40
+ 0.3340000000000000 0.9969999999999996 0.1520000000000000 # Mn41
+ 0.2500000000000000 0.7509999999999999 0.0009999999999998 # Mn42
+ 0.4150000000000001 0.7549999999999999 0.5090000000000002 # Mn43
+ 0.3319999999999999 0.9969999999999996 0.3560000000000000 # Mn44
+ 0.1680000000000000 0.0010000000000001 0.5090000000000002 # Mn45
+ 0.0830000000000001 0.7490000000000002 0.5080000000000000 # Mn46
+ 0.1660000000000000 0.5029999999999999 0.6520000000000001 # Mn47
+ 0.2500000000000000 0.7490000000000002 0.5010000000000000 # Mn48
+ 0.0849999999999999 0.7449999999999997 0.0090000000000000 # Mn49
+ 0.1680000000000000 0.5029999999999999 0.8560000000000002 # Mn50
+ 0.6679999999999999 0.5010000000000002 0.5090000000000002 # Mn51
+ 0.5829999999999999 0.2490000000000001 0.5080000000000000 # Mn52
+ 0.6660000000000000 0.0029999999999998 0.6520000000000001 # Mn53
+ 0.7499999999999999 0.2490000000000001 0.5010000000000000 # Mn54
+ 0.5849999999999999 0.2450000000000002 0.0090000000000000 # Mn55
+ 0.6679999999999999 0.0030000000000004 0.8560000000000002 # Mn56
+ 0.2479999999999999 0.0860000000000001 0.0829999999999998 # O1
+ 0.2399999999999999 0.4100000000000000 0.2610000000000000 # O2
+ 0.0790000000000000 0.7060000000000002 0.9330000000000003 # O3
+ 0.2399999999999999 0.0870000000000002 0.4210000000000002 # O4
+ 0.0000000000000000 0.1739999999999999 0.9170000000000001 # O5
+ 0.0000000000000000 0.3160000000000001 0.4379999999999999 # O6
+ 0.0000000000000000 0.1600000000000003 0.5690000000000001 # O7
+ 0.0000000000000000 0.3479999999999997 0.0759999999999998 # O8
+ 0.3350000000000002 0.1790000000000000 0.9299999999999998 # O9
+ 0.0780000000000001 0.0860000000000001 0.0790000000000001 # O10
+ 0.0860000000000001 0.0770000000000000 0.4290000000000003 # O11
+ 0.0780000000000001 0.4280000000000001 0.5910000000000001 # O12
+ 0.0870000000000000 0.4280000000000001 0.2710000000000002 # O13
+ 0.3319999999999999 0.1760000000000001 0.5910000000000001 # O14
+ 0.1760000000000000 0.3550000000000000 0.7690000000000000 # O15
+ 0.1650000000000001 0.1800000000000001 0.9360000000000001 # O16
+ 0.1690000000000000 0.1630000000000001 0.5770000000000002 # O17
+ 0.7479999999999999 0.5860000000000001 0.0830000000000002 # O18
+ 0.7400000000000000 0.9099999999999999 0.2610000000000000 # O19
+ 0.5790000000000001 0.2060000000000001 0.9330000000000003 # O20
+ 0.7400000000000000 0.5870000000000002 0.4210000000000002 # O21
+ 0.5000000000000000 0.6739999999999999 0.9170000000000001 # O22
+ 0.5000000000000000 0.8159999999999999 0.4379999999999999 # O23
+ 0.5000000000000000 0.6599999999999998 0.5690000000000001 # O24
+ 0.5000000000000000 0.8479999999999999 0.0759999999999998 # O25
+ 0.8349999999999999 0.6790000000000000 0.9299999999999998 # O26
+ 0.5779999999999997 0.5860000000000001 0.0790000000000001 # O27
+ 0.5859999999999999 0.5770000000000001 0.4290000000000003 # O28
+ 0.5779999999999997 0.9280000000000002 0.5910000000000001 # O29
+ 0.5869999999999999 0.9280000000000002 0.2709999999999998 # O30
+ 0.8319999999999999 0.6760000000000000 0.5910000000000001 # O31
+ 0.6760000000000000 0.8550000000000000 0.7690000000000005 # O32
+ 0.6650000000000000 0.6800000000000002 0.9360000000000001 # O33
+ 0.6689999999999999 0.6630000000000001 0.5770000000000002 # O34
+ 0.7519999999999999 0.9140000000000000 0.5830000000000000 # O35
+ 0.7600000000000000 0.5900000000000000 0.7610000000000002 # O36
+ 0.9209999999999999 0.2939999999999999 0.4330000000000001 # O37
+ 0.7600000000000000 0.9129999999999998 0.9210000000000004 # O38
+ 0.0000000000000000 0.8260000000000003 0.4170000000000000 # O39
+ 0.0000000000000000 0.6840000000000001 0.9380000000000001 # O40
+ 0.0000000000000000 0.8399999999999997 0.0689999999999998 # O41
+ 0.0000000000000000 0.6520000000000004 0.5760000000000001 # O42
+ 0.6650000000000000 0.8210000000000002 0.4300000000000002 # O43
+ 0.9219999999999998 0.9140000000000000 0.5790000000000003 # O44
+ 0.9139999999999998 0.9230000000000005 0.9290000000000002 # O45
+ 0.9219999999999998 0.5720000000000001 0.0910000000000000 # O46
+ 0.9130000000000000 0.5720000000000001 0.7710000000000004 # O47
+ 0.6679999999999997 0.8240000000000001 0.0910000000000000 # O48
+ 0.8240000000000000 0.6450000000000000 0.2690000000000001 # O49
+ 0.8349999999999999 0.8200000000000000 0.4360000000000003 # O50
+ 0.8310000000000001 0.8370000000000001 0.0770000000000000 # O51
+ 0.2520000000000001 0.4140000000000000 0.5830000000000000 # O52
+ 0.2600000000000001 0.0900000000000000 0.7610000000000002 # O53
+ 0.4209999999999999 0.7940000000000000 0.4330000000000001 # O54
+ 0.2600000000000001 0.4130000000000004 0.9210000000000004 # O55
+ 0.5000000000000000 0.3260000000000002 0.4170000000000000 # O56
+ 0.5000000000000000 0.1840000000000000 0.9380000000000001 # O57
+ 0.5000000000000000 0.3399999999999998 0.0689999999999998 # O58
+ 0.5000000000000000 0.1520000000000003 0.5760000000000001 # O59
+ 0.1650000000000001 0.3210000000000001 0.4300000000000002 # O60
+ 0.4219999999999998 0.4140000000000000 0.5789999999999998 # O61
+ 0.4139999999999999 0.4230000000000000 0.9290000000000002 # O62
+ 0.4219999999999998 0.0719999999999999 0.0910000000000000 # O63
+ 0.4130000000000000 0.0719999999999999 0.7709999999999999 # O64
+ 0.1680000000000000 0.3239999999999999 0.0910000000000000 # O65
+ 0.3240000000000000 0.1450000000000000 0.2690000000000001 # O66
+ 0.3349999999999999 0.3200000000000000 0.4359999999999999 # O67
+ 0.3309999999999997 0.3369999999999999 0.0770000000000000 # O68
+ 0.7519999999999999 0.0860000000000001 0.0830000000000002 # O69
+ 0.7600000000000000 0.4100000000000000 0.2610000000000000 # O70
+ 0.9209999999999999 0.7060000000000002 0.9330000000000003 # O71
+ 0.7600000000000000 0.0870000000000002 0.4210000000000002 # O72
+ 0.6650000000000000 0.1790000000000000 0.9299999999999998 # O73
+ 0.9219999999999998 0.0860000000000001 0.0790000000000001 # O74
+ 0.9139999999999998 0.0770000000000000 0.4290000000000003 # O75
+ 0.9219999999999998 0.4280000000000001 0.5910000000000001 # O76
+ 0.9130000000000000 0.4280000000000001 0.2710000000000002 # O77
+ 0.6679999999999997 0.1760000000000001 0.5910000000000001 # O78
+ 0.8240000000000000 0.3550000000000000 0.7690000000000005 # O79
+ 0.8349999999999999 0.1800000000000001 0.9360000000000001 # O80
+ 0.8310000000000001 0.1630000000000001 0.5770000000000002 # O81
+ 0.2520000000000001 0.5860000000000001 0.0830000000000002 # O82
+ 0.2600000000000001 0.9099999999999999 0.2610000000000000 # O83
+ 0.4209999999999999 0.2060000000000001 0.9330000000000003 # O84
+ 0.2600000000000001 0.5870000000000002 0.4210000000000002 # O85
+ 0.1650000000000001 0.6790000000000000 0.9299999999999998 # O86
+ 0.4219999999999998 0.5860000000000001 0.0790000000000001 # O87
+ 0.4139999999999999 0.5770000000000001 0.4289999999999999 # O88
+ 0.4219999999999998 0.9280000000000002 0.5910000000000001 # O89
+ 0.4130000000000000 0.9280000000000002 0.2709999999999998 # O90
+ 0.1680000000000000 0.6760000000000000 0.5910000000000001 # O91
+ 0.3240000000000000 0.8550000000000000 0.7690000000000000 # O92
+ 0.3349999999999999 0.6800000000000002 0.9360000000000001 # O93
+ 0.3310000000000000 0.6630000000000001 0.5770000000000002 # O94
+ 0.2480000000000002 0.9140000000000000 0.5830000000000000 # O95
+ 0.2399999999999999 0.5900000000000000 0.7610000000000002 # O96
+ 0.0790000000000000 0.2939999999999999 0.4330000000000001 # O97
+ 0.2399999999999999 0.9129999999999998 0.9210000000000004 # O98
+ 0.3350000000000002 0.8210000000000002 0.4300000000000002 # O99
+ 0.0780000000000001 0.9140000000000000 0.5789999999999998 # O100
+ 0.0860000000000001 0.9229999999999999 0.9290000000000002 # O101
+ 0.0780000000000001 0.5720000000000001 0.0910000000000000 # O102
+ 0.0870000000000000 0.5720000000000001 0.7709999999999999 # O103
+ 0.3319999999999999 0.8240000000000001 0.0910000000000000 # O104
+ 0.1760000000000000 0.6450000000000000 0.2690000000000001 # O105
+ 0.1650000000000001 0.8200000000000000 0.4360000000000003 # O106
+ 0.1690000000000000 0.8370000000000001 0.0770000000000000 # O107
+ 0.7479999999999999 0.4140000000000000 0.5830000000000000 # O108
+ 0.7400000000000000 0.0900000000000000 0.7610000000000002 # O109
+ 0.5790000000000001 0.7940000000000000 0.4330000000000001 # O110
+ 0.7400000000000000 0.4130000000000004 0.9210000000000004 # O111
+ 0.8349999999999999 0.3210000000000001 0.4300000000000002 # O112
+ 0.5779999999999997 0.4140000000000000 0.5789999999999998 # O113
+ 0.5859999999999999 0.4230000000000000 0.9290000000000002 # O114
+ 0.5779999999999997 0.0719999999999999 0.0910000000000000 # O115
+ 0.5869999999999999 0.0719999999999999 0.7710000000000004 # O116
+ 0.8319999999999999 0.3239999999999999 0.0910000000000000 # O117
+ 0.6760000000000000 0.1450000000000000 0.2690000000000001 # O118
+ 0.6650000000000000 0.3200000000000000 0.4360000000000003 # O119
+ 0.6689999999999999 0.3369999999999999 0.0770000000000000 # O120
diff --git a/test/data/orthorhombic/POSCAR-037 b/test/data/orthorhombic/POSCAR-037
new file mode 100644
index 0000000..3659ef4
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-037
@@ -0,0 +1,99 @@
+$cell vectors
+1.0
+ 12.0729943191491973 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 19.0229910488838918 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8759972350965510
+ 24 60 8
+Direct
+ 0.1078000000000001 0.0659999999999999 0.0000000000000000 # Sb1
+ 0.6878000000000002 0.0651000000000000 0.1135000000000003 # Sb2
+ 0.0926000000000002 0.2069000000000001 0.6316000000000005 # Sb3
+ 0.6078000000000000 0.5659999999999999 0.0000000000000000 # Sb4
+ 0.1878000000000002 0.5650999999999999 0.1135000000000003 # Sb5
+ 0.5926000000000001 0.7068999999999998 0.6316000000000005 # Sb6
+ 0.8922000000000003 0.9339999999999996 0.0000000000000000 # Sb7
+ 0.3122000000000002 0.9349000000000000 0.1135000000000003 # Sb8
+ 0.9074000000000002 0.7930999999999998 0.6316000000000005 # Sb9
+ 0.3922000000000000 0.4340000000000001 0.0000000000000000 # Sb10
+ 0.8122000000000001 0.4348999999999998 0.1135000000000003 # Sb11
+ 0.4073999999999997 0.2930999999999998 0.6316000000000005 # Sb12
+ 0.8921999999999999 0.0659999999999999 0.5000000000000006 # Sb13
+ 0.3122000000000002 0.0651000000000000 0.6134999999999998 # Sb14
+ 0.9074000000000002 0.2069000000000001 0.1315999999999999 # Sb15
+ 0.3922000000000000 0.5659999999999999 0.5000000000000006 # Sb16
+ 0.8122000000000001 0.5650999999999999 0.6134999999999998 # Sb17
+ 0.4074000000000002 0.7068999999999998 0.1315999999999999 # Sb18
+ 0.1078000000000001 0.9339999999999996 0.5000000000000006 # Sb19
+ 0.6878000000000002 0.9349000000000000 0.6134999999999998 # Sb20
+ 0.0926000000000002 0.7930999999999998 0.1315999999999999 # Sb21
+ 0.6078000000000000 0.4340000000000001 0.5000000000000006 # Sb22
+ 0.1878000000000002 0.4348999999999998 0.6135000000000008 # Sb23
+ 0.5926000000000001 0.2930999999999998 0.1315999999999999 # Sb24
+ 0.0000000000000000 0.0000000000000000 0.8460000000000003 # O1
+ 0.2422999999999999 0.0000000000000000 0.8880000000000002 # O2
+ 0.8470000000000002 0.1009999999999999 0.1700000000000003 # O3
+ 0.0071000000000002 0.1652000000000000 0.8930000000000002 # O4
+ 0.3085000000000002 0.1674999999999998 0.9396000000000003 # O5
+ 0.2847000000000001 0.1546999999999999 0.3499999999999999 # O6
+ 0.4455999999999998 0.2124000000000000 0.2011000000000001 # O7
+ 0.4236999999999999 0.0878000000000001 0.1626999999999998 # O8
+ 0.5000000000000000 0.4999999999999999 0.8460000000000003 # O9
+ 0.7423000000000000 0.4999999999999999 0.8880000000000002 # O10
+ 0.3470000000000001 0.6009999999999999 0.1700000000000003 # O11
+ 0.5071000000000002 0.6651999999999999 0.8930000000000002 # O12
+ 0.8085000000000002 0.6674999999999998 0.9396000000000003 # O13
+ 0.7847000000000002 0.6546999999999997 0.3499999999999999 # O14
+ 0.9456000000000003 0.7123999999999999 0.2011000000000001 # O15
+ 0.9236999999999997 0.5878000000000000 0.1626999999999998 # O16
+ 0.7577000000000002 0.0000000000000000 0.8880000000000002 # O17
+ 0.1530000000000000 0.8989999999999997 0.1700000000000003 # O18
+ 0.9929000000000002 0.8347999999999999 0.8930000000000002 # O19
+ 0.6915000000000002 0.8324999999999997 0.9396000000000003 # O20
+ 0.7153000000000005 0.8452999999999998 0.3499999999999999 # O21
+ 0.5544000000000002 0.7875999999999999 0.2011000000000001 # O22
+ 0.5763000000000001 0.9121999999999999 0.1626999999999998 # O23
+ 0.2577000000000001 0.4999999999999999 0.8880000000000012 # O24
+ 0.6530000000000000 0.3990000000000000 0.1700000000000003 # O25
+ 0.4929000000000002 0.3347999999999999 0.8930000000000002 # O26
+ 0.1915000000000002 0.3325000000000001 0.9396000000000003 # O27
+ 0.2152999999999999 0.3453000000000000 0.3499999999999999 # O28
+ 0.0544000000000002 0.2876000000000000 0.2011000000000001 # O29
+ 0.0763000000000001 0.4121999999999998 0.1626999999999998 # O30
+ 0.0000000000000000 0.0000000000000000 0.3459999999999997 # O31
+ 0.7577000000000002 0.0000000000000000 0.3879999999999998 # O32
+ 0.1530000000000000 0.1009999999999999 0.6700000000000007 # O33
+ 0.9929000000000002 0.1652000000000000 0.3929999999999998 # O34
+ 0.6915000000000002 0.1674999999999998 0.4396000000000005 # O35
+ 0.7152999999999999 0.1546999999999999 0.8500000000000004 # O36
+ 0.5544000000000002 0.2124000000000000 0.7011000000000006 # O37
+ 0.5763000000000001 0.0878000000000001 0.6627000000000003 # O38
+ 0.5000000000000000 0.4999999999999999 0.3460000000000006 # O39
+ 0.2577000000000001 0.4999999999999999 0.3880000000000007 # O40
+ 0.6530000000000000 0.6009999999999999 0.6700000000000007 # O41
+ 0.4929000000000002 0.6651999999999999 0.3929999999999998 # O42
+ 0.1915000000000002 0.6674999999999998 0.4396000000000005 # O43
+ 0.2152999999999999 0.6546999999999997 0.8500000000000004 # O44
+ 0.0544000000000002 0.7123999999999999 0.7011000000000006 # O45
+ 0.0763000000000001 0.5878000000000000 0.6627000000000003 # O46
+ 0.2422999999999999 0.0000000000000000 0.3880000000000007 # O47
+ 0.8470000000000002 0.8989999999999997 0.6700000000000007 # O48
+ 0.0071000000000002 0.8347999999999999 0.3929999999999998 # O49
+ 0.3085000000000002 0.8324999999999997 0.4396000000000005 # O50
+ 0.2847000000000001 0.8452999999999998 0.8500000000000004 # O51
+ 0.4456000000000003 0.7875999999999999 0.7011000000000006 # O52
+ 0.4236999999999999 0.9121999999999999 0.6627000000000003 # O53
+ 0.7423000000000000 0.4999999999999999 0.3880000000000007 # O54
+ 0.3470000000000001 0.3990000000000000 0.6700000000000007 # O55
+ 0.5071000000000002 0.3347999999999999 0.3929999999999998 # O56
+ 0.8085000000000002 0.3324999999999997 0.4396000000000005 # O57
+ 0.7847000000000002 0.3453000000000000 0.8500000000000004 # O58
+ 0.9456000000000003 0.2876000000000000 0.7011000000000006 # O59
+ 0.9236999999999997 0.4121999999999998 0.6627000000000003 # O60
+ 0.3665000000000000 0.1554000000000000 0.1588999999999999 # S1
+ 0.8665000000000000 0.6553999999999999 0.1588999999999999 # S2
+ 0.6335000000000000 0.8445999999999998 0.1588999999999999 # S3
+ 0.1335000000000000 0.3445999999999999 0.1588999999999999 # S4
+ 0.6335000000000000 0.1554000000000000 0.6589000000000004 # S5
+ 0.1335000000000000 0.6553999999999999 0.6589000000000004 # S6
+ 0.3665000000000000 0.8445999999999998 0.6589000000000004 # S7
+ 0.8665000000000000 0.3445999999999999 0.6589000000000004 # S8
diff --git a/test/data/orthorhombic/POSCAR-037-2 b/test/data/orthorhombic/POSCAR-037-2
new file mode 100644
index 0000000..7b3fdcc
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-037-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 5.8069972675639372 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 14.5819931385598949 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.7729977541041260
+ 8 20 8
+Direct
+ 0.1552000000000003 0.1483000000000000 0.1352000000000000 # Si1
+ 0.6551999999999999 0.6483000000000000 0.1352000000000000 # Si2
+ 0.8447999999999997 0.8517000000000000 0.1352000000000000 # Si3
+ 0.3448000000000001 0.3517000000000001 0.1352000000000000 # Si4
+ 0.8447999999999997 0.1483000000000000 0.6352000000000000 # Si5
+ 0.3448000000000001 0.6483000000000000 0.6352000000000000 # Si6
+ 0.1552000000000003 0.8517000000000000 0.6352000000000000 # Si7
+ 0.6551999999999999 0.3517000000000001 0.6352000000000000 # Si8
+ 0.3295000000000001 0.0717999999999998 0.0490999999999998 # O1
+ 0.0931999999999998 0.1377000000000001 0.4785000000000005 # O2
+ 0.2499999999999997 0.2500000000000002 0.0781000000000000 # O3
+ 0.8294999999999996 0.5718000000000002 0.0490999999999998 # O4
+ 0.5932000000000002 0.6377000000000000 0.4785000000000005 # O5
+ 0.7500000000000000 0.7500000000000001 0.0781000000000000 # O6
+ 0.6704999999999998 0.9282000000000001 0.0490999999999998 # O7
+ 0.9067999999999999 0.8622999999999998 0.4785000000000005 # O8
+ 0.1705000000000003 0.4282000000000002 0.0490999999999998 # O9
+ 0.4067999999999997 0.3622999999999999 0.4785000000000005 # O10
+ 0.6704999999999998 0.0717999999999998 0.5490999999999997 # O11
+ 0.9067999999999999 0.1377000000000001 0.9784999999999995 # O12
+ 0.7500000000000000 0.2500000000000002 0.5780999999999999 # O13
+ 0.1705000000000003 0.5718000000000002 0.5490999999999997 # O14
+ 0.4067999999999997 0.6377000000000000 0.9784999999999995 # O15
+ 0.2499999999999997 0.7500000000000001 0.5780999999999999 # O16
+ 0.3295000000000001 0.9282000000000001 0.5490999999999997 # O17
+ 0.0931999999999998 0.8622999999999998 0.9784999999999995 # O18
+ 0.8294999999999996 0.4282000000000002 0.5490999999999997 # O19
+ 0.5932000000000002 0.3623000000000002 0.9784999999999995 # O20
+ 0.3459999999999998 0.0584000000000000 0.6249999999999999 # Li1
+ 0.8460000000000001 0.5584000000000000 0.6249999999999999 # Li2
+ 0.6540000000000001 0.9416000000000000 0.6249999999999999 # Li3
+ 0.1539999999999997 0.4415999999999999 0.6249999999999999 # Li4
+ 0.6540000000000001 0.0584000000000000 0.1250000000000000 # Li5
+ 0.1539999999999997 0.5584000000000000 0.1250000000000000 # Li6
+ 0.3459999999999998 0.9416000000000000 0.1250000000000000 # Li7
+ 0.8460000000000001 0.4415999999999999 0.1250000000000000 # Li8
diff --git a/test/data/orthorhombic/POSCAR-038 b/test/data/orthorhombic/POSCAR-038
new file mode 100644
index 0000000..cc3e197
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-038
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 18.8499911302876164 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.9469967311463154 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.4759978938550322
+ 6 10 8
+Direct
+ 0.6255000000000001 0.0000000000000000 0.0000000000000000 # Li1
+ 0.1999000000000000 0.0000000000000000 0.0000000000000000 # Li2
+ 0.4782000000000002 0.4999999999999999 0.0000000000000000 # Li3
+ 0.1254999999999999 0.0000000000000000 0.4999999999999999 # Li4
+ 0.6999000000000000 0.0000000000000000 0.4999999999999999 # Li5
+ 0.9782000000000001 0.4999999999999999 0.4999999999999999 # Li6
+ 0.0010999999999999 0.0000000000000000 0.0000000000000000 # Ce1
+ 0.7910999999999999 0.0000000000000000 0.0000000000000000 # Ce2
+ 0.0628000000000001 0.4999999999999999 0.0000000000000000 # Ce3
+ 0.8942999999999999 0.4999999999999999 0.0000000000000000 # Ce4
+ 0.6831000000000000 0.4999999999999999 0.0000000000000000 # Ce5
+ 0.5011000000000001 0.0000000000000000 0.4999999999999999 # Ce6
+ 0.2911000000000000 0.0000000000000000 0.4999999999999999 # Ce7
+ 0.5628000000000000 0.4999999999999999 0.4999999999999999 # Ce8
+ 0.3943000000000000 0.4999999999999999 0.4999999999999999 # Ce9
+ 0.1831000000000001 0.4999999999999999 0.4999999999999999 # Ce10
+ 0.4057999999999998 0.1791999999999997 0.0000000000000000 # Ge1
+ 0.2834999999999999 0.3175000000000004 0.0000000000000000 # Ge2
+ 0.9057999999999998 0.1792000000000004 0.4999999999999999 # Ge3
+ 0.7835000000000001 0.3175000000000004 0.4999999999999999 # Ge4
+ 0.4057999999999998 0.8208000000000003 0.0000000000000000 # Ge5
+ 0.2835000000000002 0.6824999999999997 0.0000000000000000 # Ge6
+ 0.9057999999999998 0.8208000000000003 0.4999999999999999 # Ge7
+ 0.7835000000000001 0.6824999999999997 0.4999999999999999 # Ge8
diff --git a/test/data/orthorhombic/POSCAR-038-2 b/test/data/orthorhombic/POSCAR-038-2
new file mode 100644
index 0000000..5d6e1d1
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-038-2
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 4.1479980481927319 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.9679943685560808 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.7169968393709247
+ 6 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.9619999999999997 # U1
+ 0.0000000000000000 0.3240000000000002 0.0000000000000000 # U2
+ 0.0000000000000000 0.5000000000000003 0.4620000000000000 # U3
+ 0.0000000000000000 0.8240000000000005 0.4999999999999996 # U4
+ 0.0000000000000000 0.6760000000000004 0.0000000000000000 # U5
+ 0.0000000000000000 0.1760000000000001 0.4999999999999996 # U6
+ 0.5000000000000007 0.0000000000000000 0.9619999999999997 # O1
+ 0.5000000000000007 0.3240000000000002 0.0000000000000000 # O2
+ 0.0000000000000000 0.0000000000000000 0.5980000000000001 # O3
+ 0.0000000000000000 0.1259999999999999 0.1969999999999998 # O4
+ 0.0000000000000000 0.3280000000000002 0.3269999999999997 # O5
+ 0.5000000000000007 0.5000000000000003 0.4620000000000000 # O6
+ 0.5000000000000007 0.8240000000000005 0.4999999999999996 # O7
+ 0.0000000000000000 0.5000000000000003 0.0979999999999997 # O8
+ 0.0000000000000000 0.6260000000000002 0.6969999999999995 # O9
+ 0.0000000000000000 0.8280000000000004 0.8270000000000002 # O10
+ 0.5000000000000007 0.6760000000000004 0.0000000000000000 # O11
+ 0.0000000000000000 0.8740000000000002 0.1969999999999998 # O12
+ 0.0000000000000000 0.6720000000000003 0.3269999999999997 # O13
+ 0.5000000000000007 0.1760000000000001 0.4999999999999996 # O14
+ 0.0000000000000000 0.3740000000000003 0.6969999999999995 # O15
+ 0.0000000000000000 0.1720000000000001 0.8270000000000002 # O16
diff --git a/test/data/orthorhombic/POSCAR-039 b/test/data/orthorhombic/POSCAR-039
new file mode 100644
index 0000000..2058e3e
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-039
@@ -0,0 +1,95 @@
+$cell vectors
+1.0
+ 5.4199974496635983 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 38.5799818464984696 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.5269973993156309
+ 28 24 36
+Direct
+ 0.7140000000000000 0.0359000000000000 0.2500000000000003 # Y1
+ 0.2950000000000001 0.1075999999999999 0.2859999999999998 # Y2
+ 0.7150000000000002 0.1798000000000000 0.2430000000000003 # Y3
+ 0.2940000000000008 0.2500000000000000 0.2940000000000002 # Y4
+ 0.7140000000000010 0.5359000000000002 0.7500000000000000 # Y5
+ 0.2950000000000001 0.6076000000000001 0.7860000000000004 # Y6
+ 0.7150000000000012 0.6798000000000000 0.7429999999999998 # Y7
+ 0.2940000000000008 0.7500000000000000 0.7939999999999999 # Y8
+ 0.2860000000000001 0.9641000000000001 0.2500000000000003 # Y9
+ 0.7050000000000008 0.8923999999999999 0.2859999999999998 # Y10
+ 0.2850000000000008 0.8202000000000000 0.2430000000000003 # Y11
+ 0.7060000000000011 0.7500000000000000 0.2940000000000002 # Y12
+ 0.2860000000000010 0.4641000000000001 0.7500000000000000 # Y13
+ 0.7050000000000008 0.3924000000000000 0.7860000000000004 # Y14
+ 0.2850000000000008 0.3202000000000000 0.7429999999999998 # Y15
+ 0.7060000000000011 0.2500000000000000 0.7939999999999999 # Y16
+ 0.2860000000000001 0.0359000000000000 0.7500000000000000 # Y17
+ 0.7050000000000008 0.1076000000000001 0.7860000000000004 # Y18
+ 0.2849999999999998 0.1798000000000000 0.7429999999999998 # Y19
+ 0.2860000000000010 0.5359000000000002 0.2500000000000003 # Y20
+ 0.7050000000000008 0.6076000000000001 0.2859999999999998 # Y21
+ 0.2850000000000008 0.6798000000000000 0.2430000000000003 # Y22
+ 0.7140000000000010 0.9641000000000001 0.7500000000000000 # Y23
+ 0.2950000000000001 0.8923999999999999 0.7860000000000004 # Y24
+ 0.7150000000000012 0.8202000000000000 0.7429999999999998 # Y25
+ 0.7140000000000010 0.4641000000000001 0.2500000000000003 # Y26
+ 0.2950000000000001 0.3924000000000000 0.2859999999999998 # Y27
+ 0.7150000000000002 0.3202000000000000 0.2430000000000003 # Y28
+ 0.5000000000000000 0.0000000000000000 0.4780000000000001 # O1
+ 0.4890000000000006 0.0723000000000000 0.0190000000000001 # O2
+ 0.4680000000000007 0.1436000000000000 0.9960000000000004 # O3
+ 0.0000000000000000 0.0000000000000000 0.0570000000000004 # O4
+ 0.5000000000000010 0.5000000000000000 0.9779999999999996 # O5
+ 0.4890000000000006 0.5722999999999999 0.5189999999999998 # O6
+ 0.4680000000000007 0.6436000000000002 0.4959999999999999 # O7
+ 0.0000000000000000 0.5000000000000000 0.5570000000000001 # O8
+ 0.5110000000000005 0.9277000000000002 0.0190000000000001 # O9
+ 0.5320000000000011 0.8564000000000001 0.9960000000000004 # O10
+ 0.5110000000000005 0.4277000000000001 0.5189999999999998 # O11
+ 0.5320000000000001 0.3564000000000001 0.4959999999999999 # O12
+ 0.5000000000000000 0.0000000000000000 0.9779999999999996 # O13
+ 0.5110000000000005 0.0723000000000000 0.5189999999999998 # O14
+ 0.5320000000000001 0.1436000000000000 0.4959999999999999 # O15
+ 0.0000000000000000 0.0000000000000000 0.5570000000000001 # O16
+ 0.5000000000000010 0.5000000000000000 0.4780000000000001 # O17
+ 0.5110000000000005 0.5722999999999999 0.0190000000000001 # O18
+ 0.5320000000000001 0.6436000000000002 0.9960000000000004 # O19
+ 0.0000000000000000 0.5000000000000000 0.0570000000000004 # O20
+ 0.4890000000000006 0.9277000000000002 0.5189999999999998 # O21
+ 0.4680000000000007 0.8564000000000001 0.4959999999999999 # O22
+ 0.4890000000000006 0.4277000000000001 0.0190000000000001 # O23
+ 0.4680000000000007 0.3564000000000001 0.9960000000000004 # O24
+ 0.4419999999999999 0.2132000000000000 0.0100000000000003 # F1
+ 0.0309999999999999 0.0630999999999999 0.3999999999999997 # F2
+ 0.9400000000000005 0.1273000000000000 0.1209999999999999 # F3
+ 0.1030000000000001 0.1913000000000000 0.3690000000000003 # F4
+ 0.9200000000000010 0.2500000000000000 0.1220000000000003 # F5
+ 0.4420000000000011 0.7132000000000001 0.5099999999999999 # F6
+ 0.0309999999999999 0.5631000000000002 0.9000000000000002 # F7
+ 0.9400000000000005 0.6273000000000001 0.6210000000000006 # F8
+ 0.1030000000000001 0.6912999999999999 0.8690000000000000 # F9
+ 0.9200000000000010 0.7500000000000000 0.6220000000000000 # F10
+ 0.5580000000000009 0.7867999999999999 0.0100000000000003 # F11
+ 0.9690000000000011 0.9369000000000000 0.3999999999999997 # F12
+ 0.0600000000000004 0.8727000000000001 0.1209999999999999 # F13
+ 0.8970000000000010 0.8087000000000001 0.3690000000000003 # F14
+ 0.0800000000000009 0.7500000000000000 0.1220000000000003 # F15
+ 0.5580000000000009 0.2868000000000001 0.5099999999999999 # F16
+ 0.9690000000000011 0.4369000000000001 0.9000000000000002 # F17
+ 0.0600000000000004 0.3727000000000000 0.6210000000000006 # F18
+ 0.8970000000000010 0.3087000000000001 0.8690000000000000 # F19
+ 0.0799999999999999 0.2500000000000000 0.6220000000000000 # F20
+ 0.5580000000000001 0.2132000000000000 0.5099999999999999 # F21
+ 0.9690000000000001 0.0630999999999999 0.9000000000000002 # F22
+ 0.0600000000000004 0.1273000000000000 0.6210000000000006 # F23
+ 0.8970000000000010 0.1913000000000000 0.8690000000000000 # F24
+ 0.5580000000000009 0.7132000000000001 0.0100000000000003 # F25
+ 0.9690000000000001 0.5631000000000002 0.3999999999999997 # F26
+ 0.0600000000000004 0.6273000000000001 0.1209999999999999 # F27
+ 0.8970000000000010 0.6912999999999999 0.3690000000000003 # F28
+ 0.4420000000000011 0.7867999999999999 0.5099999999999999 # F29
+ 0.0310000000000009 0.9369000000000000 0.9000000000000002 # F30
+ 0.9400000000000005 0.8727000000000001 0.6210000000000006 # F31
+ 0.1030000000000010 0.8087000000000001 0.8690000000000000 # F32
+ 0.4420000000000011 0.2868000000000001 0.0100000000000003 # F33
+ 0.0310000000000009 0.4369000000000001 0.4000000000000006 # F34
+ 0.9400000000000005 0.3727000000000000 0.1209999999999999 # F35
+ 0.1030000000000001 0.3087000000000001 0.3690000000000003 # F36
diff --git a/test/data/orthorhombic/POSCAR-039-2 b/test/data/orthorhombic/POSCAR-039-2
new file mode 100644
index 0000000..9422a73
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-039-2
@@ -0,0 +1,79 @@
+$cell vectors
+1.0
+ 11.5685945564904653 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 16.4416922634933620 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.5359973950807557
+ 16 8 48
+Direct
+ 0.3829000000000002 0.0846000000000000 0.5000000000000000 # Bi1
+ 0.1285999999999999 0.2500000000000000 0.4917999999999997 # Bi2
+ 0.3972000000000002 0.2500000000000000 0.9615999999999999 # Bi3
+ 0.3829000000000002 0.5845999999999999 0.0000000000000000 # Bi4
+ 0.1286000000000003 0.7500000000000002 0.9917999999999998 # Bi5
+ 0.3972000000000002 0.7500000000000002 0.4616000000000000 # Bi6
+ 0.6171000000000002 0.9154000000000002 0.5000000000000000 # Bi7
+ 0.8714000000000001 0.7500000000000002 0.4917999999999997 # Bi8
+ 0.6028000000000002 0.7500000000000002 0.9615999999999999 # Bi9
+ 0.6171000000000002 0.4153999999999999 0.0000000000000000 # Bi10
+ 0.8714000000000001 0.2500000000000000 0.9917999999999998 # Bi11
+ 0.6028000000000002 0.2500000000000000 0.4616000000000000 # Bi12
+ 0.6171000000000002 0.0846000000000000 0.0000000000000000 # Bi13
+ 0.6171000000000002 0.5845999999999999 0.5000000000000000 # Bi14
+ 0.3829000000000002 0.9154000000000002 0.0000000000000000 # Bi15
+ 0.3829000000000002 0.4153999999999999 0.5000000000000000 # Bi16
+ 0.1447000000000002 0.0893000000000002 0.9960000000000001 # Se1
+ 0.1447000000000002 0.5893000000000000 0.4960000000000001 # Se2
+ 0.8553000000000003 0.9107000000000001 0.9960000000000001 # Se3
+ 0.8553000000000003 0.4107000000000001 0.4960000000000001 # Se4
+ 0.8553000000000003 0.0893000000000002 0.4960000000000001 # Se5
+ 0.8553000000000003 0.5893000000000000 0.9960000000000001 # Se6
+ 0.1447000000000002 0.9107000000000001 0.4960000000000001 # Se7
+ 0.1447000000000002 0.4107000000000001 0.9960000000000001 # Se8
+ 0.2776000000000001 0.0608000000000000 0.8923999999999995 # O1
+ 0.5000000000000003 0.0000000000000000 0.7290000000000001 # O2
+ 0.0983000000000001 0.1400000000000000 0.7609999999999998 # O3
+ 0.3129999999999999 0.2500000000000000 0.5480000000000000 # O4
+ 0.4857000000000003 0.1698999999999999 0.7819999999999997 # O5
+ 0.1950999999999999 0.1443999999999999 0.2350000000000003 # O6
+ 0.0899999999999999 0.0000000000000000 0.1300000000000000 # O7
+ 0.2776000000000001 0.5608000000000000 0.3923999999999997 # O8
+ 0.5000000000000003 0.5000000000000000 0.2290000000000001 # O9
+ 0.0983000000000001 0.6399999999999999 0.2609999999999998 # O10
+ 0.3129999999999999 0.7500000000000002 0.0480000000000000 # O11
+ 0.4857000000000003 0.6698999999999999 0.2819999999999996 # O12
+ 0.1950999999999999 0.6443999999999999 0.7350000000000003 # O13
+ 0.0899999999999999 0.5000000000000000 0.6299999999999999 # O14
+ 0.7224000000000005 0.9392000000000001 0.8923999999999995 # O15
+ 0.9016999999999997 0.8599999999999999 0.7609999999999998 # O16
+ 0.6870000000000002 0.7500000000000002 0.5480000000000000 # O17
+ 0.5143000000000003 0.8301000000000004 0.7819999999999997 # O18
+ 0.8049000000000002 0.8556000000000002 0.2350000000000003 # O19
+ 0.9100000000000001 0.0000000000000000 0.1300000000000000 # O20
+ 0.7224000000000000 0.4391999999999999 0.3923999999999997 # O21
+ 0.9016999999999997 0.3599999999999999 0.2609999999999998 # O22
+ 0.6870000000000002 0.2500000000000000 0.0480000000000000 # O23
+ 0.5143000000000003 0.3301000000000000 0.2819999999999996 # O24
+ 0.8049000000000002 0.3556000000000000 0.7350000000000003 # O25
+ 0.9100000000000001 0.5000000000000000 0.6299999999999999 # O26
+ 0.7224000000000000 0.0608000000000000 0.3923999999999997 # O27
+ 0.5000000000000003 0.0000000000000000 0.2290000000000001 # O28
+ 0.9016999999999997 0.1400000000000000 0.2609999999999998 # O29
+ 0.5143000000000003 0.1698999999999999 0.2819999999999996 # O30
+ 0.8049000000000002 0.1443999999999999 0.7350000000000003 # O31
+ 0.9100000000000001 0.0000000000000000 0.6299999999999999 # O32
+ 0.7224000000000000 0.5608000000000000 0.8923999999999995 # O33
+ 0.5000000000000003 0.5000000000000000 0.7290000000000001 # O34
+ 0.9016999999999997 0.6399999999999999 0.7609999999999998 # O35
+ 0.5143000000000003 0.6698999999999999 0.7819999999999997 # O36
+ 0.8049000000000002 0.6443999999999999 0.2350000000000003 # O37
+ 0.9100000000000001 0.5000000000000000 0.1300000000000000 # O38
+ 0.2776000000000001 0.9392000000000001 0.3923999999999997 # O39
+ 0.0983000000000001 0.8599999999999999 0.2609999999999998 # O40
+ 0.4857000000000003 0.8301000000000004 0.2819999999999996 # O41
+ 0.1951000000000004 0.8556000000000002 0.7350000000000003 # O42
+ 0.0899999999999999 0.0000000000000000 0.6299999999999999 # O43
+ 0.2776000000000001 0.4391999999999999 0.8923999999999995 # O44
+ 0.0983000000000001 0.3599999999999999 0.7609999999999998 # O45
+ 0.4857000000000003 0.3301000000000000 0.7819999999999997 # O46
+ 0.1950999999999999 0.3556000000000000 0.2350000000000003 # O47
+ 0.0899999999999999 0.5000000000000000 0.1300000000000000 # O48
diff --git a/test/data/orthorhombic/POSCAR-040 b/test/data/orthorhombic/POSCAR-040
new file mode 100644
index 0000000..77e32cb
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-040
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 9.5399955110315044 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.8499953651635526 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.5799983154604620
+ 4 4 20
+Direct
+ 0.2499999999999999 0.2040000000000001 0.0220000000000006 # Al1
+ 0.2499999999999999 0.7040000000000004 0.5219999999999998 # Al2
+ 0.7500000000000001 0.7960000000000005 0.0220000000000006 # Al3
+ 0.7500000000000001 0.2960000000000002 0.5219999999999998 # Al4
+ 0.0000000000000000 0.0000000000000000 0.4989999999999997 # Mn1
+ 0.0000000000000000 0.5000000000000002 0.9989999999999988 # Mn2
+ 0.4999999999999997 0.0000000000000000 0.4989999999999997 # Mn3
+ 0.4999999999999997 0.5000000000000002 0.9989999999999988 # Mn4
+ 0.2499999999999999 0.1960000000000001 0.4820000000000001 # F1
+ 0.1150000000000002 0.3290000000000002 0.0500000000000004 # F2
+ 0.1120000000000001 0.0620000000000001 0.0000000000000000 # F3
+ 0.2499999999999999 0.6960000000000004 0.9819999999999993 # F4
+ 0.1150000000000002 0.8289999999999998 0.5499999999999996 # F5
+ 0.1120000000000001 0.5620000000000004 0.4999999999999992 # F6
+ 0.7500000000000001 0.8040000000000005 0.4820000000000001 # F7
+ 0.8849999999999998 0.6710000000000004 0.0500000000000004 # F8
+ 0.8880000000000000 0.9379999999999999 0.0000000000000000 # F9
+ 0.7500000000000001 0.3040000000000002 0.9819999999999993 # F10
+ 0.8849999999999998 0.1710000000000000 0.5499999999999996 # F11
+ 0.8880000000000000 0.4380000000000002 0.4999999999999992 # F12
+ 0.3850000000000001 0.3290000000000002 0.0500000000000004 # F13
+ 0.3880000000000002 0.0620000000000001 0.0000000000000000 # F14
+ 0.3850000000000001 0.8289999999999998 0.5499999999999996 # F15
+ 0.3880000000000002 0.5620000000000004 0.4999999999999992 # F16
+ 0.6150000000000000 0.6710000000000004 0.0500000000000004 # F17
+ 0.6119999999999999 0.9379999999999999 0.0000000000000000 # F18
+ 0.6150000000000000 0.1710000000000000 0.5499999999999996 # F19
+ 0.6119999999999999 0.4380000000000002 0.4999999999999992 # F20
diff --git a/test/data/orthorhombic/POSCAR-040-2 b/test/data/orthorhombic/POSCAR-040-2
new file mode 100644
index 0000000..047e45c
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-040-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.0859976068245558 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.2379951825933500 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8989972242740931
+ 4 4 4
+Direct
+ 0.2499999999999998 0.3275000000000001 0.0000000000000000 # Cs1
+ 0.2499999999999998 0.8274999999999996 0.4999999999999995 # Cs2
+ 0.7499999999999992 0.6724999999999999 0.0000000000000000 # Cs3
+ 0.7499999999999992 0.1724999999999999 0.4999999999999995 # Cs4
+ 0.0000000000000000 0.0000000000000000 0.0062000000000002 # Cu1
+ 0.0000000000000000 0.5000000000000000 0.5061999999999998 # Cu2
+ 0.4999999999999996 0.0000000000000000 0.0062000000000002 # Cu3
+ 0.4999999999999996 0.5000000000000000 0.5061999999999998 # Cu4
+ 0.2499999999999998 0.8670999999999999 0.0007999999999999 # O1
+ 0.2499999999999998 0.3670999999999999 0.5008000000000002 # O2
+ 0.7499999999999992 0.1329000000000001 0.0007999999999999 # O3
+ 0.7499999999999992 0.6328999999999999 0.5008000000000002 # O4
diff --git a/test/data/orthorhombic/POSCAR-041 b/test/data/orthorhombic/POSCAR-041
new file mode 100644
index 0000000..5a0ff8e
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-041
@@ -0,0 +1,111 @@
+$cell vectors
+1.0
+ 11.0619947948669299 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.1749947416957092 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0409957458318519
+ 32 4 20 48
+Direct
+ 0.9849999999999999 0.2579999999999999 0.7709999999999998 # H1
+ 0.9819999999999999 0.1500000000000000 0.6639999999999998 # H2
+ 0.1670000000000001 0.1880000000000000 0.7119999999999999 # H3
+ 0.2429999999999999 0.3179999999999999 1.1269999999999996 # H4
+ 0.9849999999999999 0.7580000000000002 0.2709999999999996 # H5
+ 0.9819999999999999 0.6500000000000002 0.1640000000000002 # H6
+ 0.1670000000000001 0.6879999999999998 0.2119999999999997 # H7
+ 0.2429999999999999 -0.1819999999999998 0.6269999999999996 # H8
+ 0.0150000000000000 0.7420000000000003 0.7709999999999998 # H9
+ 0.0180000000000000 0.8500000000000001 0.6639999999999998 # H10
+ 0.8329999999999999 -0.1880000000000000 0.7119999999999999 # H11
+ -0.2429999999999999 0.6820000000000002 1.1269999999999996 # H12
+ 0.0150000000000000 0.2419999999999999 0.2709999999999996 # H13
+ 0.0180000000000000 0.3499999999999998 0.1640000000000002 # H14
+ 0.8329999999999999 0.3119999999999998 0.2120000000000002 # H15
+ -0.2429999999999999 0.1820000000000003 0.6269999999999996 # H16
+ 0.5150000000000001 0.2579999999999999 0.2709999999999996 # H17
+ 0.5180000000000001 0.1500000000000000 0.1640000000000002 # H18
+ 0.3330000000000001 0.1880000000000000 0.2119999999999997 # H19
+ 0.2569999999999998 0.3179999999999999 0.6270000000000001 # H20
+ 0.5150000000000001 0.7580000000000002 0.7709999999999998 # H21
+ 0.5180000000000001 0.6500000000000002 0.6639999999999998 # H22
+ 0.3330000000000001 0.6880000000000002 0.7119999999999999 # H23
+ 0.2569999999999998 -0.1819999999999998 1.1269999999999996 # H24
+ 0.4849999999999997 0.7420000000000003 0.2709999999999996 # H25
+ 0.4820000000000002 0.8500000000000001 0.1640000000000002 # H26
+ -0.3330000000000001 -0.1880000000000000 0.2119999999999997 # H27
+ 0.7430000000000001 0.6820000000000002 0.6270000000000001 # H28
+ 0.4849999999999997 0.2419999999999999 0.7709999999999998 # H29
+ 0.4819999999999998 0.3500000000000003 0.6639999999999998 # H30
+ -0.3330000000000001 0.3120000000000002 0.7119999999999999 # H31
+ 0.7430000000000001 0.1820000000000003 1.1269999999999996 # H32
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # K1
+ 0.0000000000000000 0.5000000000000002 0.4999999999999996 # K2
+ 0.4999999999999997 0.0000000000000000 0.4999999999999996 # K3
+ 0.4999999999999997 0.4999999999999998 0.0000000000000000 # K4
+ 0.0000000000000000 0.0000000000000000 0.3969999999999996 # B1
+ 0.1878000000000001 0.0921000000000001 0.2970000000000000 # B2
+ 0.2031000000000002 -0.0574999999999998 0.4779999999999999 # B3
+ 0.0000000000000000 0.5000000000000002 0.8969999999999998 # B4
+ 0.1878000000000001 0.5921000000000000 0.7969999999999995 # B5
+ 0.2031000000000002 0.4425000000000000 0.9779999999999995 # B6
+ -0.1878000000000001 -0.0921000000000001 0.2970000000000000 # B7
+ -0.2031000000000002 0.0575000000000003 0.4779999999999999 # B8
+ -0.1877999999999996 0.4079000000000002 0.7969999999999995 # B9
+ -0.2031000000000002 0.5575000000000001 0.9779999999999995 # B10
+ 0.5000000000000001 0.0000000000000000 0.8969999999999998 # B11
+ 0.3122000000000001 0.0921000000000001 0.7969999999999995 # B12
+ 0.2969000000000000 -0.0574999999999998 0.9779999999999995 # B13
+ 0.4999999999999997 0.4999999999999998 0.3970000000000002 # B14
+ 0.3122000000000001 0.5921000000000000 0.2970000000000000 # B15
+ 0.2969000000000000 0.4425000000000000 0.4779999999999999 # B16
+ 0.6877999999999997 -0.0921000000000001 0.7969999999999995 # B17
+ 0.7030999999999997 0.0575000000000003 0.9779999999999995 # B18
+ 0.6877999999999997 0.4079000000000002 0.2970000000000000 # B19
+ 0.7030999999999997 0.5575000000000001 0.4779999999999999 # B20
+ 0.0659000000000001 0.0830000000000002 0.3070000000000000 # O1
+ 0.0852000000000002 -0.0705999999999998 0.4939999999999998 # O2
+ 0.2546000000000000 0.0260999999999999 0.3990000000000000 # O3
+ 0.2456999999999998 0.1750000000000002 0.2030000000000002 # O4
+ 0.2797000000000002 -0.1200000000000002 0.5709999999999998 # O5
+ 1.0165000000000000 0.1774000000000003 0.7509999999999999 # O6
+ 0.0659000000000001 0.5830000000000000 0.8069999999999996 # O7
+ 0.0852000000000002 0.4294000000000000 0.9939999999999993 # O8
+ 0.2546000000000000 0.5261000000000001 0.8989999999999997 # O9
+ 0.2457000000000002 0.6749999999999998 0.7029999999999996 # O10
+ 0.2797000000000002 0.3800000000000001 1.0709999999999995 # O11
+ 1.0165000000000000 0.6774000000000001 0.2509999999999997 # O12
+ -0.0659000000000001 -0.0830000000000002 0.3070000000000000 # O13
+ -0.0852000000000002 0.0706000000000002 0.4939999999999998 # O14
+ -0.2546000000000000 -0.0260999999999999 0.3990000000000000 # O15
+ -0.2456999999999998 -0.1750000000000002 0.2030000000000002 # O16
+ -0.2796999999999997 0.1200000000000002 0.5709999999999998 # O17
+ -0.0165000000000000 0.8226000000000003 0.7509999999999999 # O18
+ -0.0658999999999997 0.4170000000000001 0.8069999999999996 # O19
+ -0.0851999999999997 0.5706000000000000 0.9939999999999993 # O20
+ -0.2546000000000000 0.4738999999999999 0.8989999999999997 # O21
+ -0.2456999999999998 0.3250000000000001 0.7029999999999996 # O22
+ -0.2796999999999997 0.6200000000000000 1.0709999999999995 # O23
+ -0.0165000000000000 0.3226000000000000 0.2509999999999997 # O24
+ 0.4341000000000001 0.0830000000000002 0.8069999999999996 # O25
+ 0.4148000000000001 -0.0705999999999998 0.9939999999999993 # O26
+ 0.2454000000000001 0.0260999999999999 0.8989999999999997 # O27
+ 0.2542999999999999 0.1750000000000002 0.7029999999999996 # O28
+ 0.2203000000000000 -0.1199999999999997 1.0709999999999995 # O29
+ 0.4834999999999998 0.1773999999999998 0.2509999999999997 # O30
+ 0.4341000000000001 0.5830000000000000 0.3070000000000000 # O31
+ 0.4148000000000001 0.4294000000000000 0.4939999999999998 # O32
+ 0.2454000000000001 0.5261000000000001 0.3990000000000000 # O33
+ 0.2542999999999999 0.6749999999999998 0.2030000000000002 # O34
+ 0.2203000000000000 0.3800000000000001 0.5709999999999998 # O35
+ 0.4835000000000003 0.6774000000000001 0.7509999999999999 # O36
+ 0.5658999999999998 -0.0829999999999997 0.8069999999999996 # O37
+ 0.5851999999999998 0.0706000000000002 0.9939999999999993 # O38
+ 0.7545999999999998 -0.0260999999999999 0.8989999999999997 # O39
+ 0.7456999999999998 -0.1750000000000002 0.7029999999999996 # O40
+ 0.7796999999999997 0.1200000000000002 1.0709999999999995 # O41
+ 0.5165000000000001 0.8226000000000003 0.2509999999999997 # O42
+ 0.5658999999999998 0.4170000000000001 0.3070000000000000 # O43
+ 0.5851999999999998 0.5706000000000000 0.4939999999999998 # O44
+ 0.7545999999999998 0.4738999999999999 0.3990000000000000 # O45
+ 0.7456999999999998 0.3250000000000001 0.2030000000000002 # O46
+ 0.7796999999999997 0.6200000000000000 0.5709999999999998 # O47
+ 0.5165000000000001 0.3226000000000000 0.7509999999999999 # O48
diff --git a/test/data/orthorhombic/POSCAR-041-2 b/test/data/orthorhombic/POSCAR-041-2
new file mode 100644
index 0000000..37089c1
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-041-2
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 10.2299951863576855 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.5799964332933758 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0399952757606190
+ 8 8 28
+Direct
+ 0.1985999999999999 0.9742999999999996 0.0062000000000000 # K1
+ 0.1985999999999999 0.4742999999999997 0.5061999999999997 # K2
+ 0.8013999999999999 0.0256999999999996 0.0062000000000000 # K3
+ 0.8013999999999999 0.5257000000000003 0.5061999999999997 # K4
+ 0.3014000000000002 0.9743000000000004 0.5061999999999997 # K5
+ 0.3013999999999998 0.4742999999999997 0.0062000000000000 # K6
+ 0.6985999999999996 0.0257000000000003 0.5061999999999997 # K7
+ 0.6985999999999996 0.5256999999999995 0.0062000000000000 # K8
+ 0.5092000000000000 0.2078000000000001 0.2444000000000002 # Al1
+ 0.5092000000000000 0.7078000000000001 0.7443999999999998 # Al2
+ 0.4907999999999999 -0.2078000000000001 0.2444000000000002 # Al3
+ 0.4907999999999999 0.2921999999999999 0.7443999999999998 # Al4
+ 0.9908000000000000 0.2078000000000001 0.7443999999999998 # Al5
+ 0.9908000000000000 0.7078000000000001 0.2444000000000002 # Al6
+ 1.0091999999999997 -0.2078000000000001 0.7443999999999998 # Al7
+ 1.0091999999999997 0.2921999999999999 0.2444000000000002 # Al8
+ 1.0684999999999996 0.2823999999999997 0.0812999999999998 # O1
+ 0.3569000000000001 0.3201999999999998 0.2482999999999998 # O2
+ 1.1198999999999995 0.1693999999999997 0.3415999999999997 # O3
+ 1.0000000000000000 0.5000000000000000 0.3152999999999998 # O4
+ 1.0684999999999996 -0.2175999999999997 0.5813000000000000 # O5
+ 0.3569000000000001 0.8202000000000005 0.7483000000000001 # O6
+ 1.1198999999999995 -0.3305999999999996 0.8415999999999999 # O7
+ 1.0000000000000000 0.0000000000000000 0.8153000000000000 # O8
+ 0.9314999999999997 0.7176000000000003 0.0812999999999998 # O9
+ 0.6430999999999997 -0.3201999999999998 0.2482999999999998 # O10
+ 0.8800999999999999 0.8306000000000002 0.3415999999999997 # O11
+ 0.9314999999999997 0.2176000000000003 0.5813000000000000 # O12
+ 0.6430999999999997 0.1798000000000002 0.7483000000000001 # O13
+ 0.8800999999999999 0.3306000000000002 0.8415999999999999 # O14
+ 0.4314999999999999 0.2824000000000004 0.5813000000000000 # O15
+ 1.1430999999999996 0.3201999999999998 0.7483000000000001 # O16
+ 0.3800999999999997 0.1694000000000004 0.8415999999999999 # O17
+ 0.4999999999999997 0.5000000000000000 0.8153000000000000 # O18
+ 0.4314999999999999 -0.2176000000000003 0.0812999999999998 # O19
+ 1.1430999999999996 0.8201999999999998 0.2482999999999998 # O20
+ 0.3800999999999997 -0.3305999999999996 0.3415999999999997 # O21
+ 0.4999999999999997 0.0000000000000000 0.3152999999999998 # O22
+ 0.5685000000000000 0.7176000000000003 0.5813000000000000 # O23
+ 0.8568999999999998 -0.3201999999999998 0.7483000000000001 # O24
+ 0.6199000000000001 0.8306000000000002 0.8415999999999999 # O25
+ 0.5685000000000000 0.2176000000000003 0.0812999999999998 # O26
+ 0.8568999999999998 0.1798000000000002 0.2482999999999998 # O27
+ 0.6198999999999997 0.3306000000000002 0.3415999999999997 # O28
diff --git a/test/data/orthorhombic/POSCAR-042 b/test/data/orthorhombic/POSCAR-042
new file mode 100644
index 0000000..822c681
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-042
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 5.3119975004821116 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.3629974764844848 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.8689944151397189
+ 8 4 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.3557999999999998 # Sm1
+ 0.0000000000000000 0.0000000000000000 0.6345000000000002 # Sm2
+ 0.0000000000000000 0.5000000000000004 0.8558000000000002 # Sm3
+ 0.0000000000000000 0.4999999999999994 0.1345000000000002 # Sm4
+ 0.5000000000000000 0.0000000000000000 0.8558000000000002 # Sm5
+ 0.5000000000000000 0.0000000000000000 0.1345000000000002 # Sm6
+ 0.5000000000000000 0.4999999999999994 0.3557999999999998 # Sm7
+ 0.5000000000000000 0.4999999999999994 0.6345000000000002 # Sm8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Co1
+ 0.0000000000000000 0.4999999999999994 0.5000000000000000 # Co2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Co3
+ 0.5000000000000000 0.4999999999999994 0.0000000000000000 # Co4
+ 0.2500000000000000 0.2499999999999997 0.0000000000000000 # O1
+ 0.0000000000000000 0.0000000000000000 0.1640000000000000 # O2
+ 0.0000000000000000 0.0000000000000000 0.8364000000000003 # O3
+ 0.0000000000000000 0.0000000000000000 0.1769999999999998 # O4
+ 0.0000000000000000 0.0000000000000000 0.8232000000000002 # O5
+ 0.2500000000000000 0.7500000000000002 0.5000000000000000 # O6
+ 0.0000000000000000 0.4999999999999994 0.6639999999999999 # O7
+ 0.0000000000000000 0.4999999999999994 0.3364000000000002 # O8
+ 0.0000000000000000 0.4999999999999994 0.6769999999999999 # O9
+ 0.0000000000000000 0.4999999999999994 0.3231999999999998 # O10
+ 0.7500000000000001 0.2499999999999997 0.5000000000000000 # O11
+ 0.5000000000000000 0.0000000000000000 0.6639999999999999 # O12
+ 0.5000000000000000 0.0000000000000000 0.3364000000000002 # O13
+ 0.5000000000000000 0.0000000000000000 0.6769999999999999 # O14
+ 0.5000000000000000 0.0000000000000000 0.3231999999999998 # O15
+ 0.7500000000000001 0.7500000000000002 0.0000000000000000 # O16
+ 0.5000000000000000 0.4999999999999994 0.1640000000000000 # O17
+ 0.5000000000000000 0.4999999999999994 0.8364000000000003 # O18
+ 0.5000000000000000 0.4999999999999994 0.1769999999999998 # O19
+ 0.5000000000000000 0.4999999999999994 0.8232000000000002 # O20
+ 0.7500000000000001 0.2499999999999997 0.0000000000000000 # O21
+ 0.7500000000000001 0.7500000000000002 0.5000000000000000 # O22
+ 0.2500000000000000 0.2499999999999997 0.5000000000000000 # O23
+ 0.2500000000000000 0.7500000000000002 0.0000000000000000 # O24
diff --git a/test/data/orthorhombic/POSCAR-043 b/test/data/orthorhombic/POSCAR-043
new file mode 100644
index 0000000..ddab022
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-043
@@ -0,0 +1,223 @@
+$cell vectors
+1.0
+ 39.2939815105316441 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.1569961617907758 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.5799945511262887
+ 24 48 144
+Direct
+ 0.0000000000000000 0.4999999999999999 0.5000000000000002 # K1
+ 0.0973000000000000 0.4968000000000001 0.5119999999999999 # K2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # K3
+ 0.0973000000000000 0.9967999999999999 0.0120000000000001 # K4
+ 0.4999999999999999 0.4999999999999999 0.0000000000000000 # K5
+ 0.5972999999999999 0.4968000000000001 0.0120000000000001 # K6
+ 0.4999999999999999 0.0000000000000000 0.5000000000000002 # K7
+ 0.5972999999999999 0.9967999999999999 0.5119999999999999 # K8
+ 0.9026999999999999 0.5031999999999999 0.5119999999999999 # K9
+ 0.9026999999999999 0.0031999999999998 0.0120000000000001 # K10
+ 0.4027000000000000 0.5031999999999999 0.0120000000000001 # K11
+ 0.4027000000000000 0.0031999999999998 0.5119999999999999 # K12
+ 0.2500000000000000 0.7499999999999999 0.7500000000000001 # K13
+ 0.1527000000000001 0.7468000000000001 0.7620000000000002 # K14
+ 0.2500000000000000 0.2499999999999999 0.2499999999999999 # K15
+ 0.1527000000000001 0.2468000000000002 0.2620000000000000 # K16
+ 0.7500000000000001 0.7499999999999999 0.2499999999999999 # K17
+ 0.6527000000000001 0.7468000000000001 0.2620000000000000 # K18
+ 0.7500000000000001 0.2499999999999999 0.7500000000000001 # K19
+ 0.6527000000000001 0.2468000000000002 0.7620000000000002 # K20
+ 0.3473000000000001 0.7531999999999998 0.7620000000000002 # K21
+ 0.3473000000000001 0.2531999999999998 0.2620000000000000 # K22
+ 0.8472999999999998 0.7531999999999998 0.2620000000000000 # K23
+ 0.8472999999999998 0.2531999999999998 0.7620000000000002 # K24
+ 0.0926000000000000 0.4748000000000002 1.0020000000000002 # I1
+ 0.0504000000000000 0.7550999999999995 0.2560000000000002 # I2
+ 0.0500000000000000 0.2551000000000003 0.2430000000000002 # I3
+ 0.0926000000000000 0.9748000000000001 0.5019999999999999 # I4
+ 0.0504000000000000 0.2551000000000003 0.7560000000000004 # I5
+ 0.0500000000000000 0.7551000000000003 0.7430000000000000 # I6
+ 0.5926000000000000 0.4748000000000002 0.5019999999999999 # I7
+ 0.5503999999999999 0.7551000000000003 0.7560000000000004 # I8
+ 0.5500000000000000 0.2551000000000003 0.7430000000000000 # I9
+ 0.5926000000000000 0.9748000000000001 1.0020000000000002 # I10
+ 0.5503999999999999 0.2551000000000003 0.2560000000000002 # I11
+ 0.5500000000000000 0.7550999999999995 0.2430000000000002 # I12
+ 0.9074000000000000 0.5252000000000002 1.0020000000000002 # I13
+ 0.9496000000000000 0.2448999999999997 0.2560000000000002 # I14
+ 0.9500000000000000 0.7448999999999997 0.2430000000000002 # I15
+ 0.9074000000000000 0.0252000000000003 0.5019999999999999 # I16
+ 0.9496000000000000 0.7448999999999997 0.7560000000000004 # I17
+ 0.9500000000000000 0.2449000000000003 0.7430000000000000 # I18
+ 0.4073999999999999 0.5252000000000002 0.5019999999999999 # I19
+ 0.4496000000000000 0.2449000000000003 0.7560000000000004 # I20
+ 0.4500000000000000 0.7448999999999997 0.7430000000000000 # I21
+ 0.4073999999999999 0.0252000000000003 1.0020000000000002 # I22
+ 0.4496000000000000 0.7448999999999997 0.2560000000000002 # I23
+ 0.4500000000000000 0.2448999999999997 0.2430000000000002 # I24
+ 0.1574000000000000 0.7247999999999997 0.2520000000000000 # I25
+ 0.1996000000000001 1.0050999999999994 0.5060000000000001 # I26
+ 0.2000000000000000 0.5051000000000002 0.4930000000000002 # I27
+ 0.1574000000000000 0.2248000000000002 0.7520000000000002 # I28
+ 0.1996000000000001 0.5051000000000002 1.0060000000000004 # I29
+ 0.2000000000000000 1.0050999999999994 -0.0070000000000001 # I30
+ 0.6573999999999999 0.7247999999999997 0.7520000000000002 # I31
+ 0.6996000000000000 1.0051000000000001 1.0060000000000004 # I32
+ 0.7000000000000000 0.5050999999999995 -0.0070000000000001 # I33
+ 0.6573999999999999 0.2247999999999996 0.2520000000000000 # I34
+ 0.6996000000000000 0.5051000000000002 0.5060000000000001 # I35
+ 0.7000000000000000 1.0050999999999994 0.4930000000000002 # I36
+ 0.3426000000000001 0.7751999999999997 0.2520000000000000 # I37
+ 0.3004000000000000 0.4949000000000003 0.5060000000000001 # I38
+ 0.3000000000000000 -0.0050999999999997 0.4930000000000002 # I39
+ 0.3426000000000001 0.2752000000000003 0.7520000000000002 # I40
+ 0.3004000000000000 -0.0050999999999997 1.0060000000000004 # I41
+ 0.3000000000000000 0.4948999999999997 -0.0070000000000001 # I42
+ 0.8425999999999999 0.7751999999999997 0.7520000000000002 # I43
+ 0.8004000000000000 0.4949000000000003 1.0060000000000004 # I44
+ 0.8000000000000000 -0.0051000000000003 -0.0070000000000001 # I45
+ 0.8425999999999999 0.2751999999999997 0.2520000000000000 # I46
+ 0.8004000000000000 -0.0051000000000003 0.5060000000000001 # I47
+ 0.8000000000000000 0.4949000000000003 0.4930000000000002 # I48
+ 0.0990000000000000 0.3180000000000004 1.1080000000000003 # O1
+ 0.0960000000000000 0.3430000000000000 0.8770000000000002 # O2
+ 0.0460000000000000 0.4780000000000001 1.0080000000000000 # O3
+ 0.0840000000000000 0.7189999999999998 0.1600000000000001 # O4
+ 0.0500000000000000 0.5629999999999998 0.3370000000000003 # O5
+ 0.0169999999999999 0.6999999999999995 0.1459999999999999 # O6
+ 0.0490000000000000 0.0640000000000000 0.1659999999999999 # O7
+ 0.0850000000000000 0.2240000000000003 0.3450000000000003 # O8
+ 0.0140000000000000 0.2129999999999997 0.3519999999999999 # O9
+ 0.0990000000000000 0.8179999999999997 0.6080000000000001 # O10
+ 0.0960000000000000 0.8430000000000000 0.3769999999999999 # O11
+ 0.0460000000000000 0.9780000000000000 0.5080000000000002 # O12
+ 0.0840000000000000 0.2189999999999998 0.6600000000000004 # O13
+ 0.0500000000000000 0.0629999999999999 0.8370000000000001 # O14
+ 0.0169999999999999 0.2000000000000002 0.6460000000000001 # O15
+ 0.0490000000000000 0.5640000000000001 0.6660000000000001 # O16
+ 0.0850000000000000 0.7239999999999996 0.8450000000000001 # O17
+ 0.0140000000000000 0.7129999999999996 0.8520000000000002 # O18
+ 0.5989999999999999 0.3179999999999997 0.6080000000000001 # O19
+ 0.5959999999999999 0.3430000000000000 0.3769999999999999 # O20
+ 0.5460000000000000 0.4780000000000001 0.5080000000000002 # O21
+ 0.5839999999999999 0.7189999999999998 0.6600000000000004 # O22
+ 0.5500000000000000 0.5629999999999998 0.8370000000000001 # O23
+ 0.5169999999999999 0.6999999999999995 0.6460000000000001 # O24
+ 0.5489999999999999 0.0640000000000000 0.6660000000000001 # O25
+ 0.5850000000000000 0.2240000000000003 0.8450000000000001 # O26
+ 0.5139999999999998 0.2130000000000004 0.8520000000000002 # O27
+ 0.5989999999999999 0.8180000000000003 1.1080000000000003 # O28
+ 0.5959999999999999 0.8430000000000000 0.8770000000000002 # O29
+ 0.5460000000000000 0.9780000000000000 1.0080000000000000 # O30
+ 0.5839999999999999 0.2189999999999998 0.1600000000000001 # O31
+ 0.5500000000000000 0.0629999999999999 0.3370000000000003 # O32
+ 0.5169999999999999 0.2000000000000002 0.1459999999999999 # O33
+ 0.5489999999999999 0.5640000000000001 0.1659999999999999 # O34
+ 0.5850000000000000 0.7239999999999996 0.3450000000000003 # O35
+ 0.5139999999999998 0.7129999999999996 0.3519999999999999 # O36
+ 0.9010000000000001 0.6820000000000002 1.1080000000000003 # O37
+ 0.9039999999999998 0.6569999999999999 0.8770000000000002 # O38
+ 0.9540000000000002 0.5219999999999998 1.0080000000000000 # O39
+ 0.9160000000000000 0.2810000000000002 0.1600000000000001 # O40
+ 0.9500000000000000 0.4370000000000001 0.3370000000000003 # O41
+ 0.9829999999999999 0.2999999999999998 0.1459999999999999 # O42
+ 0.9509999999999997 0.9359999999999999 0.1659999999999999 # O43
+ 0.9150000000000000 0.7759999999999995 0.3450000000000003 # O44
+ 0.9859999999999998 0.7870000000000001 0.3519999999999999 # O45
+ 0.9010000000000001 0.1820000000000002 0.6080000000000001 # O46
+ 0.9039999999999998 0.1570000000000000 0.3769999999999999 # O47
+ 0.9540000000000002 0.0219999999999999 0.5080000000000002 # O48
+ 0.9160000000000000 0.7810000000000001 0.6600000000000004 # O49
+ 0.9500000000000000 0.9369999999999999 0.8370000000000001 # O50
+ 0.9829999999999999 0.8000000000000004 0.6460000000000001 # O51
+ 0.9509999999999997 0.4359999999999999 0.6660000000000001 # O52
+ 0.9150000000000000 0.2760000000000003 0.8450000000000001 # O53
+ 0.9859999999999998 0.2870000000000003 0.8520000000000002 # O54
+ 0.4010000000000001 0.6820000000000002 0.6080000000000001 # O55
+ 0.4039999999999999 0.6569999999999999 0.3769999999999999 # O56
+ 0.4540000000000000 0.5219999999999998 0.5080000000000002 # O57
+ 0.4159999999999999 0.2810000000000002 0.6600000000000004 # O58
+ 0.4500000000000000 0.4370000000000001 0.8370000000000001 # O59
+ 0.4830000000000000 0.3000000000000004 0.6460000000000001 # O60
+ 0.4510000000000001 0.9359999999999999 0.6660000000000001 # O61
+ 0.4149999999999999 0.7760000000000001 0.8450000000000001 # O62
+ 0.4860000000000002 0.7870000000000001 0.8520000000000002 # O63
+ 0.4010000000000001 0.1820000000000002 1.1080000000000003 # O64
+ 0.4039999999999999 0.1570000000000000 0.8770000000000002 # O65
+ 0.4540000000000000 0.0219999999999999 1.0080000000000000 # O66
+ 0.4159999999999999 0.7810000000000001 0.1600000000000001 # O67
+ 0.4500000000000000 0.9369999999999999 0.3370000000000003 # O68
+ 0.4830000000000000 0.7999999999999996 0.1459999999999999 # O69
+ 0.4510000000000001 0.4359999999999999 0.1659999999999999 # O70
+ 0.4149999999999999 0.2760000000000003 0.3450000000000003 # O71
+ 0.4860000000000002 0.2870000000000003 0.3519999999999999 # O72
+ 0.1510000000000000 0.5679999999999998 0.3580000000000002 # O73
+ 0.1539999999999999 0.5930000000000001 0.1270000000000001 # O74
+ 0.2040000000000000 0.7280000000000001 0.2580000000000003 # O75
+ 0.1659999999999999 0.9689999999999998 0.4099999999999999 # O76
+ 0.2000000000000000 0.8129999999999998 0.5870000000000002 # O77
+ 0.2330000000000001 0.9500000000000002 0.3960000000000002 # O78
+ 0.2010000000000000 0.3140000000000000 0.4160000000000003 # O79
+ 0.1649999999999999 0.4740000000000003 0.5950000000000001 # O80
+ 0.2360000000000000 0.4629999999999997 0.6020000000000002 # O81
+ 0.1510000000000000 0.0680000000000004 0.8580000000000000 # O82
+ 0.1539999999999999 0.0930000000000000 0.6269999999999998 # O83
+ 0.2040000000000000 0.2280000000000001 0.7580000000000001 # O84
+ 0.1659999999999999 0.4689999999999998 0.9100000000000001 # O85
+ 0.2000000000000000 0.3129999999999998 1.0870000000000006 # O86
+ 0.2330000000000001 0.4500000000000002 0.8960000000000004 # O87
+ 0.2010000000000000 0.8139999999999999 -0.0840000000000000 # O88
+ 0.1650000000000001 0.9739999999999995 0.0949999999999998 # O89
+ 0.2360000000000000 0.9629999999999996 0.1020000000000000 # O90
+ 0.6510000000000000 0.5679999999999998 0.8580000000000000 # O91
+ 0.6540000000000000 0.5930000000000001 0.6269999999999998 # O92
+ 0.7040000000000000 0.7280000000000001 0.7580000000000001 # O93
+ 0.6659999999999999 0.9689999999999998 0.9100000000000001 # O94
+ 0.7000000000000000 0.8129999999999998 1.0870000000000006 # O95
+ 0.7330000000000000 0.9500000000000002 0.8960000000000004 # O96
+ 0.7010000000000001 0.3140000000000000 -0.0840000000000000 # O97
+ 0.6650000000000001 0.4739999999999996 0.0949999999999998 # O98
+ 0.7360000000000000 0.4629999999999997 0.1020000000000000 # O99
+ 0.6510000000000000 0.0679999999999998 0.3580000000000002 # O100
+ 0.6540000000000000 0.0930000000000000 0.1270000000000001 # O101
+ 0.7040000000000000 0.2280000000000001 0.2580000000000003 # O102
+ 0.6659999999999999 0.4689999999999998 0.4099999999999999 # O103
+ 0.7000000000000000 0.3129999999999998 0.5870000000000002 # O104
+ 0.7330000000000000 0.4500000000000002 0.3960000000000002 # O105
+ 0.7010000000000001 0.8139999999999999 0.4160000000000003 # O106
+ 0.6650000000000001 0.9739999999999995 0.5950000000000001 # O107
+ 0.7360000000000000 0.9629999999999996 0.6020000000000002 # O108
+ 0.3489999999999999 0.9320000000000002 0.3580000000000002 # O109
+ 0.3460000000000000 0.9069999999999999 0.1270000000000001 # O110
+ 0.2960000000000000 0.7719999999999999 0.2580000000000003 # O111
+ 0.3340000000000000 0.5310000000000001 0.4099999999999999 # O112
+ 0.3000000000000000 0.6870000000000001 0.5870000000000002 # O113
+ 0.2670000000000001 0.5500000000000003 0.3960000000000002 # O114
+ 0.2989999999999999 0.1860000000000000 0.4160000000000003 # O115
+ 0.3350000000000000 0.0260000000000003 0.5950000000000001 # O116
+ 0.2640000000000001 0.0370000000000002 0.6020000000000002 # O117
+ 0.3489999999999999 0.4320000000000002 0.8580000000000000 # O118
+ 0.3460000000000000 0.4070000000000000 0.6269999999999998 # O119
+ 0.2960000000000000 0.2719999999999998 0.7580000000000001 # O120
+ 0.3340000000000000 0.0310000000000002 0.9100000000000001 # O121
+ 0.3000000000000000 0.1870000000000001 1.0870000000000006 # O122
+ 0.2670000000000001 0.0500000000000004 0.8960000000000004 # O123
+ 0.2989999999999999 0.6859999999999999 -0.0840000000000000 # O124
+ 0.3350000000000000 0.5259999999999995 0.0949999999999998 # O125
+ 0.2640000000000001 0.5370000000000001 0.1020000000000000 # O126
+ 0.8490000000000000 0.9320000000000002 0.8580000000000000 # O127
+ 0.8460000000000000 0.9069999999999999 0.6269999999999998 # O128
+ 0.7960000000000000 0.7719999999999999 0.7580000000000001 # O129
+ 0.8340000000000001 0.5310000000000001 0.9100000000000001 # O130
+ 0.8000000000000000 0.6870000000000001 1.0870000000000006 # O131
+ 0.7670000000000000 0.5500000000000003 0.8960000000000004 # O132
+ 0.7989999999999999 0.1860000000000000 -0.0840000000000000 # O133
+ 0.8350000000000000 0.0260000000000003 0.0949999999999998 # O134
+ 0.7639999999999999 0.0370000000000002 0.1020000000000000 # O135
+ 0.8490000000000000 0.4320000000000002 0.3580000000000002 # O136
+ 0.8460000000000000 0.4070000000000000 0.1270000000000001 # O137
+ 0.7960000000000000 0.2719999999999998 0.2580000000000003 # O138
+ 0.8340000000000001 0.0310000000000002 0.4099999999999999 # O139
+ 0.8000000000000000 0.1870000000000001 0.5870000000000002 # O140
+ 0.7670000000000000 0.0500000000000004 0.3960000000000002 # O141
+ 0.7989999999999999 0.6859999999999999 0.4160000000000003 # O142
+ 0.8350000000000000 0.5260000000000002 0.5950000000000001 # O143
+ 0.7639999999999999 0.5370000000000001 0.6020000000000002 # O144
diff --git a/test/data/orthorhombic/POSCAR-043-2 b/test/data/orthorhombic/POSCAR-043-2
new file mode 100644
index 0000000..cf29f15
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-043-2
@@ -0,0 +1,263 @@
+$cell vectors
+1.0
+ 11.1819947384019152 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 22.8729892372980714 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.5729950249618572
+ 8 136 32 80
+Direct
+ 0.0000000000000000 0.0000000000000000 1.0000000000000000 # Th1
+ 0.0000000000000000 0.5000000000000001 0.5000000000000000 # Th2
+ 0.5000000000000000 1.0000000000000000 0.5000000000000000 # Th3
+ 0.5000000000000000 0.5000000000000001 1.0000000000000000 # Th4
+ 0.2500000000000000 0.2500000000000001 0.2499999999999999 # Th5
+ 0.2500000000000000 0.7499999999999997 0.7499999999999999 # Th6
+ 0.7500000000000001 0.2500000000000001 0.7499999999999999 # Th7
+ 0.7500000000000001 0.7499999999999997 0.2499999999999999 # Th8
+ 0.0000000000000000 0.0000000000000000 1.2276999999999998 # O1
+ 0.2457999999999998 0.1459000000000001 0.3156000000000000 # O2
+ 0.0456999999999999 0.0892000000000000 0.3934000000000001 # O3
+ 0.2094000000000002 -0.0380000000000001 1.0024999999999999 # O4
+ 0.1970000000000002 0.0452999999999998 1.0914999999999999 # O5
+ 0.3733000000000001 0.0093000000000002 1.0538000000000001 # O6
+ 0.1318000000000001 0.0551000000000000 0.8381000000000000 # O7
+ -0.0569999999999999 0.0631000000000001 0.8076000000000000 # O8
+ 0.0677000000000000 0.1066000000000001 0.6786999999999997 # O9
+ 0.0000000000000000 0.5000000000000001 0.7277000000000001 # O10
+ 0.2458000000000003 0.6459000000000000 0.8155999999999998 # O11
+ 0.0456999999999999 0.5892000000000001 0.8933999999999994 # O12
+ 0.2094000000000002 0.4619999999999999 0.5024999999999998 # O13
+ 0.1970000000000002 0.5452999999999999 0.5914999999999998 # O14
+ 0.3733000000000001 0.5093000000000000 0.5537999999999998 # O15
+ 0.1318000000000001 0.5551000000000000 0.3380999999999999 # O16
+ -0.0569999999999999 0.5630999999999999 0.3076000000000000 # O17
+ 0.0677000000000000 0.6065999999999999 0.1787000000000003 # O18
+ 0.5000000000000006 1.0000000000000000 0.7277000000000001 # O19
+ 0.7458000000000002 0.1459000000000001 0.8155999999999998 # O20
+ 0.5457000000000001 0.0892000000000000 0.8933999999999994 # O21
+ 0.7094000000000004 0.9619999999999999 0.5024999999999998 # O22
+ 0.6970000000000003 1.0453000000000001 0.5914999999999998 # O23
+ 0.8733000000000001 1.0093000000000003 0.5537999999999998 # O24
+ 0.6318000000000001 1.0550999999999999 0.3380999999999999 # O25
+ 0.4430000000000001 1.0630999999999999 0.3076000000000000 # O26
+ 0.5677000000000000 1.1066000000000000 0.1787000000000003 # O27
+ 0.5000000000000000 0.5000000000000001 1.2276999999999998 # O28
+ 0.7458000000000002 0.6459000000000000 0.3156000000000000 # O29
+ 0.5457000000000001 0.5892000000000001 0.3934000000000001 # O30
+ 0.7094000000000004 0.4619999999999999 1.0024999999999999 # O31
+ 0.6970000000000003 0.5453000000000002 1.0914999999999999 # O32
+ 0.8733000000000001 0.5093000000000000 1.0538000000000001 # O33
+ 0.6318000000000001 0.5551000000000000 0.8381000000000000 # O34
+ 0.4430000000000001 0.5631000000000002 0.8076000000000000 # O35
+ 0.5677000000000000 0.6065999999999999 0.6786999999999997 # O36
+ 0.7542000000000003 0.8541000000000000 0.3156000000000000 # O37
+ 0.9543000000000001 0.9108000000000001 0.3934000000000001 # O38
+ -0.2094000000000002 0.0380000000000001 1.0024999999999999 # O39
+ -0.1970000000000002 -0.0452999999999998 1.0914999999999999 # O40
+ -0.3733000000000001 -0.0093000000000000 1.0538000000000001 # O41
+ -0.1318000000000001 -0.0551000000000000 0.8381000000000000 # O42
+ 0.0569999999999999 -0.0631000000000001 0.8076000000000000 # O43
+ -0.0677000000000000 -0.1065999999999999 0.6786999999999997 # O44
+ 0.7542000000000003 0.3541000000000000 0.8155999999999994 # O45
+ 0.9543000000000001 0.4108000000000001 0.8933999999999994 # O46
+ -0.2093999999999998 0.5380000000000000 0.5024999999999998 # O47
+ -0.1969999999999998 0.4546999999999999 0.5914999999999998 # O48
+ -0.3733000000000001 0.4907000000000000 0.5537999999999998 # O49
+ -0.1318000000000001 0.4449000000000001 0.3380999999999999 # O50
+ 0.0569999999999999 0.4368999999999999 0.3076000000000000 # O51
+ -0.0677000000000000 0.3934000000000000 0.1787000000000003 # O52
+ 0.2542000000000002 0.8541000000000000 0.8155999999999994 # O53
+ 0.4543000000000000 0.9108000000000001 0.8933999999999994 # O54
+ 0.2906000000000003 1.0379999999999998 0.5024999999999998 # O55
+ 0.3030000000000003 0.9547000000000000 0.5914999999999998 # O56
+ 0.1267000000000004 0.9907000000000001 0.5537999999999998 # O57
+ 0.3682000000000000 0.9449000000000002 0.3380999999999999 # O58
+ 0.5570000000000005 0.9369000000000001 0.3076000000000000 # O59
+ 0.4323000000000001 0.8934000000000001 0.1787000000000003 # O60
+ 0.2542000000000002 0.3541000000000000 0.3156000000000000 # O61
+ 0.4543000000000000 0.4108000000000001 0.3934000000000001 # O62
+ 0.2906000000000003 0.5380000000000000 1.0024999999999999 # O63
+ 0.3030000000000003 0.4546999999999999 1.0914999999999999 # O64
+ 0.1266999999999999 0.4907000000000000 1.0538000000000001 # O65
+ 0.3682000000000000 0.4449000000000001 0.8381000000000000 # O66
+ 0.5570000000000005 0.4368999999999999 0.8076000000000000 # O67
+ 0.4323000000000001 0.3934000000000000 0.6786999999999997 # O68
+ 0.2500000000000000 0.2500000000000001 0.4777000000000001 # O69
+ 0.0042000000000002 0.3959000000000000 0.5655999999999999 # O70
+ 0.2043000000000001 0.3392000000000000 0.6434000000000000 # O71
+ 0.0406000000000003 0.2120000000000000 0.2524999999999998 # O72
+ 0.0530000000000003 0.2953000000000001 0.3414999999999998 # O73
+ -0.1233000000000001 0.2593000000000000 0.3038000000000000 # O74
+ 0.1181999999999999 0.3051000000000000 0.0880999999999999 # O75
+ 0.3069999999999999 0.3131000000000002 0.0576000000000000 # O76
+ 0.1823000000000000 0.3566000000000001 -0.0713000000000002 # O77
+ 0.2500000000000000 0.7499999999999997 0.9777000000000001 # O78
+ 0.0042000000000002 -0.1041000000000000 1.0655999999999992 # O79
+ 0.2043000000000001 0.8392000000000002 0.1434000000000001 # O80
+ 0.0406000000000003 0.7120000000000001 0.7524999999999998 # O81
+ 0.0530000000000003 0.7953000000000002 0.8414999999999997 # O82
+ -0.1233000000000001 0.7593000000000001 0.8038000000000001 # O83
+ 0.1181999999999999 0.8051000000000000 0.5880999999999998 # O84
+ 0.3070000000000003 0.8130999999999999 0.5575999999999999 # O85
+ 0.1823000000000000 0.8565999999999998 0.4286999999999997 # O86
+ 0.7500000000000001 0.2500000000000001 0.9777000000000001 # O87
+ 0.5042000000000002 0.3959000000000000 1.0655999999999992 # O88
+ 0.7043000000000001 0.3392000000000000 0.1434000000000001 # O89
+ 0.5406000000000003 0.2120000000000000 0.7524999999999998 # O90
+ 0.5530000000000003 0.2953000000000001 0.8414999999999997 # O91
+ 0.3767000000000004 0.2593000000000000 0.8038000000000001 # O92
+ 0.6182000000000000 0.3051000000000000 0.5880999999999998 # O93
+ 0.8069999999999998 0.3131000000000002 0.5575999999999999 # O94
+ 0.6823000000000000 0.3566000000000001 0.4286999999999997 # O95
+ 0.7500000000000001 0.7499999999999997 0.4777000000000001 # O96
+ 0.5042000000000002 0.8959000000000003 0.5655999999999999 # O97
+ 0.7043000000000001 0.8392000000000002 0.6434000000000000 # O98
+ 0.5406000000000003 0.7120000000000001 0.2524999999999998 # O99
+ 0.5530000000000003 0.7953000000000002 0.3414999999999998 # O100
+ 0.3767000000000004 0.7593000000000001 0.3038000000000000 # O101
+ 0.6182000000000000 0.8051000000000000 0.0880999999999999 # O102
+ 0.8070000000000003 0.8130999999999999 0.0576000000000000 # O103
+ 0.6823000000000000 0.8565999999999998 -0.0713000000000002 # O104
+ 0.4958000000000002 1.1041000000000001 0.5655999999999999 # O105
+ 0.2957000000000000 0.1608000000000001 0.6434000000000000 # O106
+ 0.4594000000000003 0.2879999999999999 0.2524999999999998 # O107
+ 0.4470000000000002 0.2046999999999999 0.3414999999999998 # O108
+ 0.6233000000000002 0.2407000000000001 0.3038000000000000 # O109
+ 0.3818000000000001 0.1949000000000000 0.0880999999999999 # O110
+ 0.1930000000000002 0.1869000000000000 0.0576000000000000 # O111
+ 0.3177000000000000 0.1433999999999999 -0.0713000000000002 # O112
+ 0.4958000000000002 0.6041000000000001 1.0655999999999992 # O113
+ 0.2957000000000000 0.6607999999999998 0.1434000000000001 # O114
+ 0.4594000000000003 0.7879999999999999 0.7524999999999998 # O115
+ 0.4470000000000002 0.7047000000000001 0.8414999999999997 # O116
+ 0.6233000000000002 0.7407000000000002 0.8038000000000001 # O117
+ 0.3818000000000001 0.6949000000000001 0.5880999999999998 # O118
+ 0.1930000000000002 0.6869000000000003 0.5575999999999999 # O119
+ 0.3177000000000000 0.6434000000000001 0.4286999999999997 # O120
+ -0.0041999999999997 0.1041000000000002 1.0655999999999992 # O121
+ 0.7956999999999999 0.1608000000000001 0.1434000000000001 # O122
+ 0.9594000000000004 0.2880000000000001 0.7524999999999998 # O123
+ 0.9470000000000002 0.2046999999999999 0.8414999999999997 # O124
+ 1.1233000000000004 0.2407000000000001 0.8038000000000001 # O125
+ 0.8818000000000003 0.1949000000000000 0.5880999999999998 # O126
+ 0.6930000000000002 0.1869000000000001 0.5575999999999999 # O127
+ 0.8176999999999999 0.1433999999999999 0.4286999999999997 # O128
+ -0.0041999999999997 0.6041000000000001 0.5655999999999999 # O129
+ 0.7956999999999999 0.6607999999999998 0.6434000000000000 # O130
+ 0.9594000000000004 0.7879999999999999 0.2524999999999998 # O131
+ 0.9470000000000002 0.7047000000000001 0.3414999999999998 # O132
+ 1.1233000000000004 0.7407000000000002 0.3038000000000000 # O133
+ 0.8818000000000003 0.6949000000000001 0.0880999999999999 # O134
+ 0.6930000000000002 0.6869000000000003 0.0576000000000000 # O135
+ 0.8177000000000004 0.6434000000000001 -0.0713000000000002 # O136
+ 0.2650999999999999 0.0045999999999999 1.0507999999999997 # N1
+ 0.0471000000000002 0.0771999999999999 0.7740999999999998 # N2
+ 0.2651000000000004 0.5046000000000000 0.5507999999999997 # N3
+ 0.0471000000000002 0.5772000000000000 0.2740999999999998 # N4
+ 0.7651000000000003 1.0045999999999999 0.5507999999999997 # N5
+ 0.5471000000000003 1.0771999999999997 0.2740999999999998 # N6
+ 0.7650999999999998 0.5046000000000003 1.0507999999999997 # N7
+ 0.5471000000000003 0.5772000000000000 0.7740999999999998 # N8
+ -0.2650999999999999 -0.0045999999999999 1.0507999999999997 # N9
+ -0.0471000000000002 -0.0771999999999999 0.7740999999999998 # N10
+ -0.2650999999999999 0.4954000000000001 0.5507999999999997 # N11
+ -0.0470999999999997 0.4227999999999999 0.2740999999999998 # N12
+ 0.2349000000000001 0.9954000000000001 0.5507999999999997 # N13
+ 0.4529000000000004 0.9228000000000001 0.2740999999999998 # N14
+ 0.2349000000000001 0.4954000000000001 1.0507999999999997 # N15
+ 0.4529000000000004 0.4228000000000002 0.7740999999999998 # N16
+ -0.0150999999999999 0.2545999999999999 0.3007999999999997 # N17
+ 0.2028999999999999 0.3271999999999999 0.0240999999999998 # N18
+ -0.0150999999999999 0.7545999999999999 0.8007999999999997 # N19
+ 0.2029000000000004 0.8272000000000002 0.5240999999999998 # N20
+ 0.4849000000000002 0.2545999999999999 0.8007999999999997 # N21
+ 0.7029000000000003 0.3271999999999999 0.5240999999999998 # N22
+ 0.4849000000000002 0.7545999999999999 0.3007999999999997 # N23
+ 0.7029000000000003 0.8272000000000002 0.0240999999999998 # N24
+ 0.5151000000000000 0.2454000000000001 0.3007999999999997 # N25
+ 0.2971000000000002 0.1728000000000001 0.0240999999999998 # N26
+ 0.5151000000000003 0.7454000000000002 0.8007999999999997 # N27
+ 0.2971000000000002 0.6728000000000002 0.5240999999999998 # N28
+ 1.0151000000000001 0.2454000000000001 0.8007999999999997 # N29
+ 0.7971000000000001 0.1728000000000001 0.5240999999999998 # N30
+ 1.0151000000000001 0.7454000000000002 0.3007999999999997 # N31
+ 0.7971000000000001 0.6728000000000002 0.0240999999999998 # N32
+ 0.0500000000000002 0.0400000000000000 1.2499999999999993 # H1
+ 0.1700000000000001 0.1400000000000000 0.3400000000000001 # H2
+ 0.3099999999999999 0.1299999999999999 0.3100000000000001 # H3
+ 0.9499999999999998 0.1100000000000000 0.4099999999999998 # H4
+ 0.0999999999999999 0.0700000000000000 0.4899999999999999 # H5
+ 0.0500000000000002 0.5400000000000001 0.7499999999999999 # H6
+ 0.1700000000000001 0.6400000000000001 0.8400000000000001 # H7
+ 0.3099999999999999 0.6300000000000000 0.8100000000000001 # H8
+ 0.9499999999999998 0.6100000000000001 0.9099999999999997 # H9
+ 0.1000000000000004 0.5700000000000003 0.9900000000000000 # H10
+ 0.5500000000000003 1.0400000000000000 0.7499999999999999 # H11
+ 0.6700000000000002 0.1400000000000000 0.8400000000000001 # H12
+ 0.8100000000000002 0.1300000000000002 0.8100000000000001 # H13
+ 0.4500000000000003 0.1100000000000000 0.9099999999999997 # H14
+ 0.6000000000000000 0.0700000000000000 0.9900000000000000 # H15
+ 0.5500000000000003 0.5400000000000001 1.2499999999999993 # H16
+ 0.6700000000000002 0.6400000000000001 0.3400000000000001 # H17
+ 0.8100000000000002 0.6300000000000000 0.3100000000000001 # H18
+ 0.4500000000000003 0.6100000000000001 0.4099999999999998 # H19
+ 0.6000000000000000 0.5700000000000001 0.4899999999999999 # H20
+ -0.0500000000000002 -0.0400000000000000 1.2499999999999993 # H21
+ 0.8300000000000001 0.8599999999999998 0.3400000000000001 # H22
+ 0.6900000000000001 0.8699999999999999 0.3100000000000001 # H23
+ 0.0500000000000002 0.8899999999999999 0.4099999999999998 # H24
+ 0.9000000000000001 0.9299999999999997 0.4899999999999999 # H25
+ -0.0499999999999997 0.4600000000000000 0.7499999999999999 # H26
+ 0.8300000000000001 0.3600000000000000 0.8400000000000001 # H27
+ 0.6900000000000001 0.3700000000000001 0.8100000000000001 # H28
+ 0.0500000000000002 0.3900000000000000 0.9099999999999997 # H29
+ 0.9000000000000001 0.4300000000000000 0.9900000000000000 # H30
+ 0.4500000000000003 0.9600000000000001 0.7499999999999999 # H31
+ 0.3300000000000000 0.8599999999999998 0.8400000000000001 # H32
+ 0.1900000000000001 0.8699999999999999 0.8100000000000001 # H33
+ 0.5500000000000003 0.8899999999999999 0.9099999999999997 # H34
+ 0.4000000000000001 0.9299999999999997 0.9900000000000000 # H35
+ 0.4500000000000003 0.4600000000000000 1.2499999999999993 # H36
+ 0.3300000000000000 0.3600000000000000 0.3400000000000001 # H37
+ 0.1900000000000001 0.3700000000000001 0.3100000000000001 # H38
+ 0.5500000000000003 0.3900000000000000 0.4099999999999998 # H39
+ 0.4000000000000001 0.4300000000000000 0.4899999999999999 # H40
+ 0.2000000000000003 0.2900000000000000 0.5000000000000000 # H41
+ 0.0799999999999999 0.3900000000000000 0.5900000000000001 # H42
+ -0.0599999999999999 0.3800000000000001 0.5600000000000002 # H43
+ 0.3000000000000002 0.3600000000000000 0.6599999999999998 # H44
+ 0.1500000000000001 0.3200000000000001 0.7399999999999999 # H45
+ 0.2000000000000003 0.7900000000000003 1.0000000000000000 # H46
+ 0.0799999999999999 -0.1100000000000000 1.0899999999999994 # H47
+ -0.0599999999999999 -0.1199999999999999 1.0599999999999996 # H48
+ 0.3000000000000002 0.8599999999999998 0.1599999999999998 # H49
+ 0.1500000000000001 0.8200000000000002 0.2400000000000000 # H50
+ 0.7000000000000003 0.2900000000000000 1.0000000000000000 # H51
+ 0.5800000000000000 0.3900000000000000 1.0899999999999994 # H52
+ 0.4400000000000001 0.3800000000000002 1.0599999999999996 # H53
+ 0.8000000000000003 0.3600000000000000 0.1599999999999998 # H54
+ 0.6500000000000001 0.3200000000000001 0.2400000000000000 # H55
+ 0.7000000000000003 0.7900000000000003 0.5000000000000000 # H56
+ 0.5800000000000000 0.8899999999999999 0.5900000000000001 # H57
+ 0.4400000000000001 0.8800000000000000 0.5600000000000002 # H58
+ 0.8000000000000003 0.8599999999999998 0.6599999999999998 # H59
+ 0.6500000000000001 0.8200000000000002 0.7399999999999999 # H60
+ 0.3000000000000002 0.2099999999999999 0.5000000000000000 # H61
+ 0.4200000000000002 1.1099999999999999 0.5900000000000001 # H62
+ 0.5600000000000005 1.1200000000000001 0.5600000000000002 # H63
+ 0.2000000000000003 0.1400000000000000 0.6599999999999998 # H64
+ 0.3499999999999999 0.1800000000000000 0.7399999999999999 # H65
+ 0.3000000000000002 0.7100000000000001 1.0000000000000000 # H66
+ 0.4200000000000002 0.6100000000000001 1.0899999999999994 # H67
+ 0.5600000000000005 0.6200000000000001 1.0599999999999996 # H68
+ 0.2000000000000003 0.6400000000000001 0.1599999999999998 # H69
+ 0.3499999999999999 0.6799999999999998 0.2400000000000000 # H70
+ 0.8000000000000003 0.2099999999999999 1.0000000000000000 # H71
+ -0.0799999999999999 0.1100000000000000 1.0899999999999994 # H72
+ 0.0599999999999999 0.1200000000000001 1.0599999999999996 # H73
+ 0.6999999999999998 0.1400000000000000 0.1599999999999998 # H74
+ 0.8499999999999999 0.1800000000000000 0.2400000000000000 # H75
+ 0.8000000000000003 0.7100000000000001 0.5000000000000000 # H76
+ -0.0799999999999999 0.6100000000000001 0.5900000000000001 # H77
+ 0.0599999999999999 0.6200000000000000 0.5600000000000002 # H78
+ 0.7000000000000003 0.6400000000000001 0.6599999999999998 # H79
+ 0.8500000000000005 0.6799999999999998 0.7399999999999999 # H80
diff --git a/test/data/orthorhombic/POSCAR-044 b/test/data/orthorhombic/POSCAR-044
new file mode 100644
index 0000000..1cf51be
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-044
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 3.6519982815814536 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.6519973404979131 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3619974769550245
+ 2 2 4
+Direct
+ 0.0000000000000000 0.5447999999999996 0.0000000000000000 # Na1
+ 0.4999999999999993 0.0447999999999996 0.4999999999999996 # Na2
+ 0.0000000000000000 1.0782999999999996 0.0000000000000000 # N1
+ 0.4999999999999993 0.5782999999999995 0.4999999999999996 # N2
+ 0.0000000000000000 0.9589999999999991 0.1930000000000004 # O1
+ 0.4999999999999993 0.4590000000000001 0.6929999999999999 # O2
+ 0.0000000000000000 0.9589999999999991 -0.1930000000000004 # O3
+ 0.4999999999999993 0.4590000000000001 0.3070000000000002 # O4
diff --git a/test/data/orthorhombic/POSCAR-044-2 b/test/data/orthorhombic/POSCAR-044-2
new file mode 100644
index 0000000..915724b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-044-2
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 4.3609979479673342 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 15.7799925748508532 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.7199954263339876
+ 8 2 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0251000000000002 # Pb1
+ 0.0000000000000000 0.4999999999999998 0.0000000000000000 # Pb2
+ 0.0000000000000000 0.2377000000000002 0.7826999999999998 # Pb3
+ 0.5000000000000000 0.5000000000000001 0.5251000000000001 # Pb4
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Pb5
+ 0.5000000000000000 0.7376999999999999 0.2826999999999997 # Pb6
+ 0.0000000000000000 0.7622999999999999 0.7826999999999998 # Pb7
+ 0.5000000000000000 0.2623000000000000 0.2826999999999997 # Pb8
+ 0.0000000000000000 0.0000000000000000 0.7047999999999996 # Se1
+ 0.5000000000000000 0.4999999999999998 0.2048000000000002 # Se2
+ 0.0000000000000000 0.1137999999999999 0.2981999999999997 # Br1
+ 0.0000000000000000 0.3662999999999998 0.4660999999999997 # Br2
+ 0.0000000000000000 0.3149000000000001 0.0783999999999999 # Br3
+ 0.5000000000000000 0.6137999999999998 0.7981999999999997 # Br4
+ 0.5000000000000000 0.8663000000000004 0.9660999999999998 # Br5
+ 0.5000000000000000 0.8148999999999998 0.5783999999999999 # Br6
+ 0.0000000000000000 0.8862000000000000 0.2981999999999997 # Br7
+ 0.0000000000000000 0.6337000000000000 0.4660999999999997 # Br8
+ 0.0000000000000000 0.6850999999999999 0.0783999999999999 # Br9
+ 0.5000000000000000 0.3861999999999999 0.7981999999999997 # Br10
+ 0.5000000000000000 0.1336999999999999 0.9660999999999998 # Br11
+ 0.5000000000000000 0.1851000000000001 0.5783999999999999 # Br12
diff --git a/test/data/orthorhombic/POSCAR-045 b/test/data/orthorhombic/POSCAR-045
new file mode 100644
index 0000000..dc5fb04
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-045
@@ -0,0 +1,99 @@
+$cell vectors
+1.0
+ 11.1029947755747180 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 18.9239910954675281 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.5719973781412513
+ 16 24 52
+Direct
+ 0.3647999999999998 0.3431999999999999 0.0019999999999997 # Sr1
+ 0.3804999999999997 0.1625999999999999 0.0000000000000000 # Sr2
+ 0.8648000000000000 0.8431999999999997 0.5019999999999997 # Sr3
+ 0.8804999999999998 0.6626000000000001 0.5000000000000001 # Sr4
+ 0.6351999999999997 0.6568000000000001 0.0019999999999997 # Sr5
+ 0.6194999999999998 0.8373999999999998 0.0000000000000000 # Sr6
+ 0.1352000000000000 0.1567999999999999 0.5019999999999997 # Sr7
+ 0.1195000000000000 0.3374000000000000 0.5000000000000001 # Sr8
+ 0.6351999999999997 0.3431999999999999 0.5019999999999997 # Sr9
+ 0.6194999999999998 0.1625999999999999 0.5000000000000001 # Sr10
+ 0.1352000000000000 0.8431999999999997 0.0019999999999997 # Sr11
+ 0.1195000000000000 0.6626000000000001 0.0000000000000000 # Sr12
+ 0.3647999999999998 0.6568000000000001 0.5019999999999997 # Sr13
+ 0.3805000000000002 0.8373999999999998 0.5000000000000001 # Sr14
+ 0.8648000000000000 0.1567999999999999 0.0019999999999997 # Sr15
+ 0.8804999999999998 0.3374000000000000 0.0000000000000000 # Sr16
+ 0.1247000000000002 0.0401000000000000 0.0430000000000004 # Fe1
+ 0.1140999999999999 0.4562999999999999 0.0799999999999999 # Fe2
+ 0.1200000000000003 0.2442000000000001 0.9959999999999996 # Fe3
+ 0.6246999999999999 0.5400999999999999 0.5430000000000004 # Fe4
+ 0.6141000000000001 0.9562999999999997 0.5800000000000000 # Fe5
+ 0.6199999999999999 0.7441999999999998 0.4959999999999997 # Fe6
+ 0.8752999999999999 0.9598999999999998 0.0429999999999995 # Fe7
+ 0.8858999999999997 0.5436999999999999 0.0799999999999999 # Fe8
+ 0.8799999999999998 0.7557999999999998 0.9959999999999996 # Fe9
+ 0.3753000000000000 0.4598999999999999 0.5430000000000004 # Fe10
+ 0.3858999999999998 0.0436999999999999 0.5800000000000000 # Fe11
+ 0.3800000000000000 0.2558000000000000 0.4959999999999997 # Fe12
+ 0.8752999999999999 0.0401000000000000 0.5430000000000004 # Fe13
+ 0.8858999999999997 0.4562999999999999 0.5800000000000000 # Fe14
+ 0.8799999999999998 0.2442000000000001 0.4959999999999997 # Fe15
+ 0.3753000000000000 0.5400999999999999 0.0430000000000004 # Fe16
+ 0.3858999999999998 0.9562999999999997 0.0799999999999999 # Fe17
+ 0.3800000000000000 0.7441999999999998 0.9959999999999996 # Fe18
+ 0.1247000000000002 0.9598999999999998 0.5430000000000004 # Fe19
+ 0.1140999999999999 0.5436999999999999 0.5800000000000000 # Fe20
+ 0.1200000000000003 0.7557999999999998 0.4959999999999997 # Fe21
+ 0.6246999999999999 0.4598999999999999 0.0430000000000004 # Fe22
+ 0.6141000000000001 0.0436999999999999 0.0799999999999999 # Fe23
+ 0.6199999999999999 0.2558000000000000 0.9959999999999996 # Fe24
+ 0.1409999999999999 0.1350000000000000 0.9700000000000003 # O1
+ 0.1260000000000002 0.3650000000000001 0.9800000000000005 # O2
+ 0.9919999999999998 0.2420000000000000 0.2399999999999997 # O3
+ 0.2510000000000000 0.2500000000000001 0.2600000000000002 # O4
+ 0.2110000000000001 0.0389999999999999 0.3800000000000001 # O5
+ 0.4109999999999997 0.0390000000000002 0.9300000000000002 # O6
+ 0.4999999999999997 0.4999999999999998 0.8100000000000005 # O7
+ 0.6410000000000001 0.6349999999999999 0.4700000000000002 # O8
+ 0.6259999999999999 0.8650000000000000 0.4799999999999994 # O9
+ 0.4919999999999999 0.7420000000000000 0.7399999999999997 # O10
+ 0.7509999999999998 0.7499999999999999 0.7600000000000001 # O11
+ 0.7109999999999999 0.5389999999999999 0.8800000000000000 # O12
+ 0.9110000000000000 0.5389999999999999 0.4300000000000003 # O13
+ 0.0000000000000000 0.0000000000000000 0.3100000000000004 # O14
+ 0.8590000000000000 0.8650000000000000 0.9700000000000003 # O15
+ 0.8739999999999998 0.6349999999999999 0.9800000000000005 # O16
+ 0.0080000000000003 0.7579999999999999 0.2399999999999997 # O17
+ 0.7489999999999999 0.7499999999999999 0.2600000000000002 # O18
+ 0.7889999999999998 0.9609999999999999 0.3800000000000001 # O19
+ 0.5889999999999997 0.9609999999999999 0.9300000000000002 # O20
+ 0.3589999999999999 0.3649999999999998 0.4700000000000002 # O21
+ 0.3740000000000000 0.1350000000000000 0.4800000000000004 # O22
+ 0.5080000000000000 0.2580000000000001 0.7399999999999997 # O23
+ 0.2490000000000002 0.2500000000000001 0.7600000000000001 # O24
+ 0.2890000000000001 0.4610000000000000 0.8800000000000000 # O25
+ 0.0890000000000000 0.4610000000000000 0.4300000000000003 # O26
+ 0.8589999999999997 0.1350000000000000 0.4700000000000002 # O27
+ 0.8739999999999998 0.3649999999999998 0.4800000000000004 # O28
+ 0.0080000000000003 0.2420000000000000 0.7399999999999997 # O29
+ 0.7489999999999999 0.2500000000000001 0.7600000000000001 # O30
+ 0.7889999999999998 0.0389999999999999 0.8800000000000000 # O31
+ 0.5889999999999997 0.0389999999999999 0.4300000000000003 # O32
+ 0.4999999999999997 0.4999999999999998 0.3100000000000004 # O33
+ 0.3589999999999999 0.6349999999999999 0.9700000000000003 # O34
+ 0.3740000000000000 0.8650000000000000 0.9800000000000005 # O35
+ 0.5080000000000000 0.7420000000000000 0.2399999999999997 # O36
+ 0.2490000000000002 0.7499999999999999 0.2600000000000002 # O37
+ 0.2890000000000001 0.5389999999999999 0.3800000000000001 # O38
+ 0.0890000000000000 0.5389999999999999 0.9300000000000002 # O39
+ 0.0000000000000000 0.0000000000000000 0.8100000000000005 # O40
+ 0.1409999999999999 0.8650000000000000 0.4700000000000002 # O41
+ 0.1260000000000002 0.6349999999999999 0.4800000000000004 # O42
+ 0.9919999999999998 0.7579999999999999 0.7399999999999997 # O43
+ 0.2510000000000000 0.7499999999999999 0.7600000000000001 # O44
+ 0.2110000000000001 0.9609999999999999 0.8800000000000000 # O45
+ 0.4109999999999997 0.9609999999999999 0.4300000000000003 # O46
+ 0.6409999999999997 0.3650000000000001 0.9700000000000003 # O47
+ 0.6259999999999999 0.1350000000000000 0.9800000000000005 # O48
+ 0.4919999999999999 0.2580000000000001 0.2399999999999997 # O49
+ 0.7509999999999998 0.2500000000000001 0.2600000000000002 # O50
+ 0.7109999999999999 0.4610000000000000 0.3800000000000001 # O51
+ 0.9110000000000000 0.4610000000000000 0.9300000000000002 # O52
diff --git a/test/data/orthorhombic/POSCAR-045-2 b/test/data/orthorhombic/POSCAR-045-2
new file mode 100644
index 0000000..36d74b2
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-045-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 5.9199972143927173 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.4699946028858850 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.1599933371285243
+ 8 16 16
+Direct
+ 0.2490000000000000 0.1249999999999999 0.2489999999999999 # Cs1
+ 0.7489999999999996 0.6250000000000002 0.7489999999999999 # Cs2
+ 0.7509999999999999 0.8749999999999999 0.2489999999999999 # Cs3
+ 0.2510000000000005 0.3750000000000002 0.7489999999999999 # Cs4
+ 0.7509999999999999 0.1249999999999999 0.7489999999999999 # Cs5
+ 0.2509999999999996 0.6250000000000002 0.2489999999999999 # Cs6
+ 0.2490000000000000 0.8750000000000006 0.7489999999999999 # Cs7
+ 0.7489999999999996 0.3749999999999998 0.2489999999999999 # Cs8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mn1
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # Mn2
+ 0.0000000000000000 0.2499999999999999 0.0000000000000000 # Mn3
+ 0.4999999999999996 0.5000000000000002 0.4999999999999999 # Mn4
+ 0.4999999999999996 0.0000000000000000 0.4999999999999999 # Mn5
+ 0.4999999999999996 0.7500000000000002 0.4999999999999999 # Mn6
+ 0.0000000000000000 0.7500000000000002 0.0000000000000000 # Mn7
+ 0.4999999999999996 0.2499999999999999 0.4999999999999999 # Mn8
+ 0.0000000000000000 0.0000000000000000 0.4999999999999999 # Mn9
+ 0.0000000000000000 0.5000000000000002 0.4999999999999999 # Mn10
+ 0.0000000000000000 0.2499999999999999 0.4999999999999999 # Mn11
+ 0.4999999999999996 0.5000000000000002 0.0000000000000000 # Mn12
+ 0.4999999999999996 0.0000000000000000 0.0000000000000000 # Mn13
+ 0.4999999999999996 0.7500000000000002 0.0000000000000000 # Mn14
+ 0.0000000000000000 0.7500000000000002 0.4999999999999999 # Mn15
+ 0.4999999999999996 0.2499999999999999 0.0000000000000000 # Mn16
+ 0.7459999999999998 0.1259999999999999 0.0990000000000001 # S1
+ 0.2530000000000001 0.1239999999999999 0.9010000000000000 # S2
+ 0.2460000000000001 0.6260000000000001 0.5990000000000001 # S3
+ 0.7529999999999997 0.6240000000000002 0.4009999999999999 # S4
+ 0.2540000000000004 0.8740000000000000 0.0990000000000001 # S5
+ 0.7470000000000000 0.8760000000000002 0.9010000000000000 # S6
+ 0.7539999999999998 0.3740000000000003 0.5990000000000001 # S7
+ 0.2470000000000004 0.3760000000000003 0.4009999999999999 # S8
+ 0.2540000000000004 0.1259999999999999 0.5990000000000001 # S9
+ 0.7470000000000000 0.1239999999999999 0.4009999999999999 # S10
+ 0.7539999999999998 0.6260000000000001 0.0990000000000001 # S11
+ 0.2470000000000004 0.6240000000000002 0.9010000000000000 # S12
+ 0.7459999999999998 0.8740000000000000 0.5990000000000001 # S13
+ 0.2530000000000001 0.8760000000000002 0.4009999999999999 # S14
+ 0.2460000000000001 0.3739999999999999 0.0990000000000001 # S15
+ 0.7529999999999997 0.3760000000000003 0.9010000000000000 # S16
diff --git a/test/data/orthorhombic/POSCAR-046 b/test/data/orthorhombic/POSCAR-046
new file mode 100644
index 0000000..0a5c0d0
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-046
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 11.4199946264129721 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.0899976049423854 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 21.9499896716081295
+ 24 16 56
+Direct
+ 0.9866000000000003 0.0000000000000000 0.0000000000000000 # Ca1
+ 0.2859999999999999 0.0030000000000000 0.2499999999999999 # Ca2
+ 0.0106999999999999 0.0049999999999996 0.1679000000000000 # Ca3
+ 0.2176999999999999 0.5010000000000003 0.1040000000000001 # Ca4
+ 0.4866000000000003 0.4999999999999999 0.4999999999999998 # Ca5
+ 0.7860000000000004 0.5029999999999999 0.7499999999999998 # Ca6
+ 0.5107000000000003 0.5050000000000007 0.6678999999999998 # Ca7
+ 0.7177000000000003 0.0010000000000003 0.6039999999999999 # Ca8
+ 0.2860000000000004 0.9970000000000000 0.7499999999999998 # Ca9
+ 0.0107000000000003 0.9950000000000003 0.8321000000000001 # Ca10
+ 0.2176999999999999 0.4990000000000006 0.8959999999999999 # Ca11
+ 0.7860000000000004 0.4970000000000001 0.2499999999999999 # Ca12
+ 0.5107000000000003 0.4950000000000003 0.3321000000000000 # Ca13
+ 0.7177000000000003 0.9989999999999998 0.3960000000000000 # Ca14
+ 0.9866000000000003 0.0000000000000000 0.4999999999999998 # Ca15
+ 0.0106999999999999 0.0050000000000007 0.3321000000000000 # Ca16
+ 0.2176999999999999 0.5010000000000003 0.3960000000000000 # Ca17
+ 0.4866000000000003 0.4999999999999999 0.0000000000000000 # Ca18
+ 0.5107000000000003 0.5050000000000007 0.8321000000000001 # Ca19
+ 0.7177000000000003 0.0010000000000003 0.8959999999999999 # Ca20
+ 0.0107000000000003 0.9950000000000003 0.6678999999999998 # Ca21
+ 0.2176999999999999 0.4990000000000006 0.6039999999999999 # Ca22
+ 0.5107000000000003 0.4950000000000003 0.1679000000000000 # Ca23
+ 0.7177000000000003 0.9989999999999998 0.1040000000000001 # Ca24
+ 0.0970000000000002 0.4259999999999996 0.2499999999999999 # Si1
+ 0.4079999999999999 0.9400000000000004 0.0996999999999999 # Si2
+ 0.2399999999999999 0.9999999999999999 0.0000000000000000 # Si3
+ 0.5970000000000002 0.9260000000000006 0.7499999999999998 # Si4
+ 0.9079999999999999 0.4400000000000003 0.5997000000000000 # Si5
+ 0.7399999999999998 0.4999999999999999 0.4999999999999998 # Si6
+ 0.0970000000000002 0.5740000000000002 0.7499999999999998 # Si7
+ 0.4079999999999999 1.0599999999999994 -0.0996999999999999 # Si8
+ 0.5970000000000002 0.0740000000000003 0.2499999999999999 # Si9
+ 0.9079999999999999 0.5599999999999997 0.4003000000000000 # Si10
+ 0.4079999999999999 0.9400000000000004 0.4003000000000000 # Si11
+ 0.2400000000000004 0.9999999999999999 0.4999999999999998 # Si12
+ 0.9079999999999999 0.4400000000000003 -0.0996999999999999 # Si13
+ 0.7399999999999998 0.4999999999999999 0.0000000000000000 # Si14
+ 0.4079999999999999 1.0600000000000005 0.5997000000000000 # Si15
+ 0.9079999999999999 0.5599999999999997 0.0996999999999999 # Si16
+ 0.1639999999999998 0.2970000000000004 0.1918999999999999 # O1
+ -0.0329999999999999 0.2930000000000001 0.2499999999999999 # O2
+ 0.0980000000000001 0.7589999999999999 0.2499999999999999 # O3
+ 0.3460000000000000 0.7930000000000001 0.1584000000000000 # O4
+ 1.0350000000000001 0.7069999999999999 0.0919000000000001 # O5
+ 0.3340000000000002 0.8020000000000000 0.0402000000000001 # O6
+ 0.4040000000000002 1.2549999999999994 0.0953999999999999 # O7
+ 0.1600000000000001 1.1789999999999998 0.0411999999999999 # O8
+ 0.6640000000000004 0.7970000000000004 0.6919000000000000 # O9
+ 0.4670000000000001 0.7930000000000001 0.7499999999999998 # O10
+ 0.5980000000000000 1.2589999999999999 0.7499999999999998 # O11
+ 0.8459999999999999 0.2930000000000001 0.6583999999999999 # O12
+ 0.5350000000000001 1.2069999999999999 0.5919000000000000 # O13
+ 0.8340000000000003 0.3020000000000000 0.5401999999999999 # O14
+ 0.9040000000000001 0.7549999999999997 0.5954000000000000 # O15
+ 0.6600000000000000 0.6790000000000007 0.5411999999999998 # O16
+ 0.1640000000000003 0.7030000000000006 0.8081000000000000 # O17
+ -0.0329999999999999 0.7069999999999999 0.7499999999999998 # O18
+ 0.0980000000000001 0.2410000000000000 0.7499999999999998 # O19
+ 0.3460000000000000 1.2069999999999999 -0.1584000000000000 # O20
+ 1.0350000000000001 0.2930000000000001 -0.0919000000000001 # O21
+ 0.3340000000000002 1.1979999999999997 -0.0402000000000001 # O22
+ 0.4040000000000002 0.7449999999999993 -0.0953999999999999 # O23
+ 0.1600000000000001 0.8210000000000003 -0.0411999999999999 # O24
+ 0.6640000000000004 0.2030000000000006 0.3081000000000000 # O25
+ 0.4670000000000001 0.2069999999999999 0.2499999999999999 # O26
+ 0.5980000000000000 -0.2590000000000000 0.2499999999999999 # O27
+ 0.8459999999999999 0.7069999999999999 0.3416000000000000 # O28
+ 0.5350000000000001 0.7930000000000001 0.4081000000000000 # O29
+ 0.8340000000000003 0.6979999999999998 0.4597999999999999 # O30
+ 0.9040000000000001 0.2450000000000004 0.4045999999999998 # O31
+ 0.6600000000000000 0.3210000000000003 0.4587999999999999 # O32
+ 0.1640000000000003 0.2970000000000004 0.3081000000000000 # O33
+ 0.3460000000000000 0.7930000000000001 0.3416000000000000 # O34
+ 1.0350000000000001 0.7069999999999999 0.4081000000000000 # O35
+ 0.3340000000000002 0.8020000000000000 0.4597999999999999 # O36
+ 0.4040000000000002 1.2549999999999994 0.4045999999999998 # O37
+ 0.1600000000000001 1.1789999999999998 0.4587999999999999 # O38
+ 0.6640000000000004 0.7970000000000004 0.8081000000000000 # O39
+ 0.8459999999999999 0.2930000000000001 -0.1584000000000000 # O40
+ 0.5350000000000001 1.2069999999999999 -0.0919000000000001 # O41
+ 0.8340000000000003 0.3020000000000000 -0.0402000000000001 # O42
+ 0.9040000000000001 0.7549999999999997 -0.0953999999999999 # O43
+ 0.6600000000000000 0.6789999999999997 -0.0411999999999999 # O44
+ 0.1640000000000003 0.7030000000000006 0.6919000000000000 # O45
+ 0.3460000000000000 1.2069999999999999 0.6583999999999999 # O46
+ 1.0350000000000001 0.2930000000000001 0.5919000000000000 # O47
+ 0.3340000000000002 1.1979999999999997 0.5401999999999999 # O48
+ 0.4040000000000002 0.7450000000000003 0.5954000000000000 # O49
+ 0.1600000000000001 0.8210000000000003 0.5411999999999998 # O50
+ 0.6640000000000004 0.2030000000000006 0.1918999999999999 # O51
+ 0.8459999999999999 0.7069999999999999 0.1584000000000000 # O52
+ 0.5350000000000001 0.7930000000000001 0.0919000000000001 # O53
+ 0.8340000000000003 0.6979999999999998 0.0402000000000001 # O54
+ 0.9040000000000001 0.2450000000000004 0.0953999999999999 # O55
+ 0.6600000000000000 0.3210000000000003 0.0411999999999999 # O56
diff --git a/test/data/orthorhombic/POSCAR-046-2 b/test/data/orthorhombic/POSCAR-046-2
new file mode 100644
index 0000000..75e3d35
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-046-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 7.9799962450766673 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1899952051793541 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.2099970779355989
+ 4 16 12
+Direct
+ 0.2499999999999999 0.1519000000000000 0.0000000000000000 # Ag1
+ 0.7500000000000003 0.6518999999999996 0.5000000000000004 # Ag2
+ 0.7500000000000003 0.8481000000000001 0.0000000000000000 # Ag3
+ 0.2499999999999999 0.3480999999999998 0.5000000000000004 # Ag4
+ 0.2499999999999999 0.9429999999999997 0.3870000000000002 # C1
+ 0.2499999999999999 0.8700000000000001 0.6040000000000003 # C2
+ 0.5940000000000003 0.1550000000000000 0.7040000000000004 # C3
+ 0.7500000000000003 0.4430000000000001 0.8870000000000007 # C4
+ 0.7500000000000003 0.3700000000000003 0.1039999999999999 # C5
+ 0.0939999999999999 0.6550000000000002 0.2039999999999998 # C6
+ 0.7500000000000003 0.0570000000000002 0.3870000000000002 # C7
+ 0.7500000000000003 0.1300000000000000 0.6040000000000003 # C8
+ 0.4059999999999999 0.8450000000000001 0.7040000000000004 # C9
+ 0.2499999999999999 0.5569999999999999 0.8870000000000007 # C10
+ 0.2499999999999999 0.6299999999999998 0.1039999999999999 # C11
+ 0.9060000000000002 0.3449999999999998 0.2039999999999998 # C12
+ 0.9060000000000002 0.1550000000000000 0.7040000000000004 # C13
+ 0.4059999999999999 0.6550000000000002 0.2039999999999998 # C14
+ 0.0939999999999999 0.8450000000000001 0.7040000000000004 # C15
+ 0.5940000000000003 0.3449999999999998 0.2039999999999998 # C16
+ 0.2499999999999999 0.0070000000000003 0.2409999999999999 # N1
+ 0.4639999999999999 0.1860000000000001 0.7710000000000000 # N2
+ 0.7500000000000003 0.5070000000000000 0.7410000000000003 # N3
+ 0.9640000000000003 0.6859999999999999 0.2709999999999996 # N4
+ 0.7500000000000003 0.9929999999999997 0.2409999999999999 # N5
+ 0.5360000000000000 0.8139999999999998 0.7710000000000000 # N6
+ 0.2499999999999999 0.4930000000000000 0.7410000000000003 # N7
+ 0.0359999999999998 0.3140000000000001 0.2709999999999996 # N8
+ 0.0359999999999998 0.1860000000000001 0.7710000000000000 # N9
+ 0.5360000000000000 0.6859999999999999 0.2709999999999996 # N10
+ 0.9640000000000003 0.8139999999999998 0.7710000000000000 # N11
+ 0.4639999999999999 0.3140000000000001 0.2709999999999996 # N12
diff --git a/test/data/orthorhombic/POSCAR-047 b/test/data/orthorhombic/POSCAR-047
new file mode 100644
index 0000000..e9ae1ab
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-047
@@ -0,0 +1,11 @@
+$cell vectors
+1.0
+ 3.5849983131077505 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.8489972478011802 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.0049985860219754
+ 1 1 2
+Direct
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # K1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Au1
+ 0.0000000000000000 0.2470000000000004 0.5000000000000000 # O1
+ 0.0000000000000000 0.7530000000000004 0.5000000000000000 # O2
diff --git a/test/data/orthorhombic/POSCAR-047-2 b/test/data/orthorhombic/POSCAR-047-2
new file mode 100644
index 0000000..4fe2957
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-047-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 7.2899965697504880 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 25.2599881141148686 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8339981959428484
+ 1 11
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mo1
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # W1
+ 0.5000000000000004 0.2499999999999999 0.0000000000000000 # W2
+ 0.2500000000000002 0.1250000000000000 0.0000000000000000 # W3
+ 0.2500000000000002 0.3749999999999999 0.0000000000000000 # W4
+ 0.7500000000000007 0.6250000000000001 0.0000000000000000 # W5
+ 0.5000000000000004 0.7499999999999997 0.0000000000000000 # W6
+ 0.7500000000000007 0.8750000000000001 0.0000000000000000 # W7
+ 0.2500000000000002 0.8750000000000001 0.0000000000000000 # W8
+ 0.2500000000000002 0.6250000000000001 0.0000000000000000 # W9
+ 0.7499999999999999 0.1250000000000000 0.0000000000000000 # W10
+ 0.7500000000000007 0.3749999999999999 0.0000000000000000 # W11
diff --git a/test/data/orthorhombic/POSCAR-048 b/test/data/orthorhombic/POSCAR-048
new file mode 100644
index 0000000..1f5640f
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-048
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 6.3299970214705912 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.3299970214705912 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.5399955110315044
+ 2 2 4 16
+Direct
+ 0.2500000000000002 0.2500000000000002 0.2499999999999999 # Rb1
+ 0.7499999999999998 0.7499999999999998 0.7500000000000001 # Rb2
+ 0.2500000000000002 0.2500000000000002 0.7500000000000001 # Pr1
+ 0.7499999999999998 0.7499999999999998 0.2499999999999999 # Pr2
+ 0.2500000000000002 0.7499999999999998 0.0021999999999998 # Mo1
+ 0.7499999999999998 0.2500000000000002 0.9978000000000005 # Mo2
+ 0.2500000000000002 0.7499999999999998 0.4978000000000000 # Mo3
+ 0.7499999999999998 0.2500000000000002 0.5022000000000001 # Mo4
+ 0.1289999999999999 0.5600000000000001 0.8859999999999997 # O1
+ 0.0580000000000003 0.6419999999999995 0.3990000000000001 # O2
+ 0.8709999999999996 0.4400000000000001 0.1140000000000003 # O3
+ 0.9419999999999997 0.3579999999999998 0.6010000000000000 # O4
+ 0.3709999999999998 0.9399999999999997 0.8859999999999997 # O5
+ 0.4420000000000002 0.8579999999999994 0.3990000000000001 # O6
+ 0.6289999999999996 0.0600000000000004 0.1140000000000003 # O7
+ 0.5579999999999999 0.1419999999999999 0.6010000000000000 # O8
+ 0.1289999999999999 0.9399999999999997 0.6140000000000000 # O9
+ 0.0580000000000003 0.8579999999999994 0.1010000000000002 # O10
+ 0.8709999999999996 0.0600000000000004 0.3860000000000000 # O11
+ 0.9419999999999997 0.1419999999999999 0.8989999999999998 # O12
+ 0.3709999999999998 0.5600000000000001 0.6140000000000000 # O13
+ 0.4420000000000002 0.6419999999999995 0.1010000000000002 # O14
+ 0.6289999999999996 0.4400000000000001 0.3860000000000000 # O15
+ 0.5579999999999999 0.3579999999999998 0.8989999999999998 # O16
diff --git a/test/data/orthorhombic/POSCAR-048-2 b/test/data/orthorhombic/POSCAR-048-2
new file mode 100644
index 0000000..c504cf0
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-048-2
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 9.3330956083865964 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.4792978923022444 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.0665962043277482
+ 8 16
+Direct
+ 0.0996999999999998 0.2095999999999996 0.1642999999999998 # Si1
+ 0.4002999999999999 0.2903999999999998 0.3357000000000002 # Si2
+ 0.9002999999999998 0.7904000000000003 0.1642999999999998 # Si3
+ 0.0996999999999998 0.7904000000000003 0.8357000000000001 # Si4
+ 0.9002999999999998 0.2096000000000008 0.8357000000000001 # Si5
+ 0.5997000000000002 0.7096000000000002 0.3357000000000002 # Si6
+ 0.4002999999999999 0.7096000000000002 0.6642999999999998 # Si7
+ 0.5997000000000002 0.2903999999999998 0.6642999999999998 # Si8
+ 0.0000000000000000 0.0000000000000000 0.2824000000000002 # O1
+ 0.1285999999999997 0.0000000000000000 0.0000000000000000 # O2
+ 0.0000000000000000 0.5000000000000006 0.1293999999999997 # O3
+ 0.2500000000000002 0.2499999999999997 0.2500000000000003 # O4
+ 0.5000000000000004 0.5000000000000006 0.2175999999999998 # O5
+ 0.3714000000000001 0.5000000000000006 0.5000000000000000 # O6
+ 0.5000000000000004 0.0000000000000000 0.3706000000000003 # O7
+ 0.8714000000000005 0.0000000000000000 0.0000000000000000 # O8
+ 0.7500000000000000 0.7500000000000002 0.2500000000000003 # O9
+ 0.0000000000000000 0.0000000000000000 0.7175999999999999 # O10
+ 0.0000000000000000 0.5000000000000006 0.8706000000000003 # O11
+ 0.2500000000000002 0.7500000000000002 0.7500000000000003 # O12
+ 0.7500000000000000 0.2499999999999997 0.7500000000000003 # O13
+ 0.6286000000000002 0.5000000000000006 0.5000000000000000 # O14
+ 0.5000000000000004 0.5000000000000006 0.7824000000000003 # O15
+ 0.5000000000000004 0.0000000000000000 0.6294000000000004 # O16
diff --git a/test/data/orthorhombic/POSCAR-049 b/test/data/orthorhombic/POSCAR-049
new file mode 100644
index 0000000..c103b47
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-049
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 9.5599955016206710 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.1399975814152992 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2599961133249735
+ 2 2 4 16
+Direct
+ 0.4999999999999997 0.0000000000000000 0.2500000000000002 # Cs1
+ 0.4999999999999997 0.0000000000000000 0.7499999999999997 # Cs2
+ 0.0000000000000000 0.0000000000000000 0.2500000000000002 # Pr1
+ 0.0000000000000000 0.0000000000000000 0.7499999999999997 # Pr2
+ 0.2004000000000001 0.5183999999999995 0.0000000000000000 # Mo1
+ 0.7995999999999998 0.4815999999999995 0.0000000000000000 # Mo2
+ 0.2004000000000001 0.4815999999999995 0.4999999999999997 # Mo3
+ 0.7995999999999998 0.5183999999999995 0.4999999999999997 # Mo4
+ 0.1943000000000000 0.7382999999999997 0.1713999999999999 # O1
+ 0.0696999999999999 0.2579999999999997 0.0000000000000000 # O2
+ 0.3693000000000001 0.3652000000000001 0.0000000000000000 # O3
+ 0.8056999999999999 0.2617000000000003 0.8286000000000000 # O4
+ 0.9302999999999999 0.7419999999999992 0.0000000000000000 # O5
+ 0.6306999999999998 0.6347999999999999 0.0000000000000000 # O6
+ 0.8056999999999999 0.2617000000000003 0.1713999999999999 # O7
+ 0.1943000000000000 0.7382999999999997 0.8286000000000000 # O8
+ 0.1943000000000000 0.2617000000000003 0.3285999999999997 # O9
+ 0.0696999999999999 0.7419999999999992 0.4999999999999997 # O10
+ 0.3693000000000001 0.6347999999999999 0.4999999999999997 # O11
+ 0.8056999999999999 0.7382999999999997 0.6714000000000002 # O12
+ 0.9302999999999999 0.2579999999999997 0.4999999999999997 # O13
+ 0.6306999999999998 0.3652000000000001 0.4999999999999997 # O14
+ 0.8056999999999999 0.7382999999999997 0.3285999999999997 # O15
+ 0.1943000000000000 0.2617000000000003 0.6714000000000002 # O16
diff --git a/test/data/orthorhombic/POSCAR-049-2 b/test/data/orthorhombic/POSCAR-049-2
new file mode 100644
index 0000000..4eae437
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-049-2
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 6.2169970746418057 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.6769982698179073 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.7939963325974366
+ 4 10
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ta1
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Ta2
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # Ta3
+ 0.5000000000000000 0.5000000000000000 0.4999999999999997 # Ta4
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # O1
+ 0.3190000000000003 0.9980000000000000 0.0000000000000000 # O2
+ 0.0000000000000000 0.0000000000000000 0.2499999999999998 # O3
+ 0.5000000000000000 0.5000000000000000 0.2499999999999998 # O4
+ 0.6810000000000006 0.0020000000000001 0.0000000000000000 # O5
+ 0.3190000000000003 0.0020000000000001 0.4999999999999997 # O6
+ 0.0000000000000000 0.5000000000000000 0.4999999999999997 # O7
+ 0.6810000000000006 0.9980000000000000 0.4999999999999997 # O8
+ 0.0000000000000000 0.0000000000000000 0.7499999999999996 # O9
+ 0.5000000000000000 0.5000000000000000 0.7499999999999996 # O10
diff --git a/test/data/orthorhombic/POSCAR-050 b/test/data/orthorhombic/POSCAR-050
new file mode 100644
index 0000000..570acc2
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-050
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 7.3269965523404430 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 20.0799905515212345 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.1149980637206127
+ 8 4 32
+Direct
+ 0.9800000000000004 0.1599999999999999 0.0600000000000005 # Mo1
+ 0.0200000000000003 0.8399999999999999 0.9399999999999994 # Mo2
+ 0.5199999999999999 0.3399999999999999 0.0600000000000005 # Mo3
+ 0.4800000000000000 0.6600000000000000 0.9399999999999994 # Mo4
+ 0.9800000000000004 0.3399999999999999 0.9399999999999994 # Mo5
+ 0.0200000000000003 0.6600000000000000 0.0600000000000005 # Mo6
+ 0.5199999999999999 0.1600000000000002 0.9399999999999994 # Mo7
+ 0.4800000000000000 0.8399999999999999 0.0600000000000005 # Mo8
+ 0.2499999999999998 0.0129999999999999 0.0000000000000000 # U1
+ 0.7500000000000002 0.9869999999999999 0.0000000000000000 # U2
+ 0.2499999999999998 0.4870000000000002 0.0000000000000000 # U3
+ 0.7500000000000002 0.5130000000000000 0.0000000000000000 # U4
+ 0.2499999999999998 0.5130000000000000 0.5000000000000006 # O1
+ 0.9800000000000004 0.1599999999999999 0.4599999999999994 # O2
+ 0.9399999999999997 0.0600000000000001 0.0899999999999994 # O3
+ 0.2499999999999998 0.1300000000000000 0.0000000000000000 # O4
+ 0.2499999999999998 0.6600000000000000 0.0000000000000000 # O5
+ 0.0000000000000000 0.2499999999999999 0.0000000000000000 # O6
+ 0.7500000000000002 0.4870000000000002 0.5000000000000006 # O7
+ 0.0200000000000003 0.8399999999999999 0.5400000000000005 # O8
+ 0.0600000000000003 0.9399999999999998 0.9100000000000005 # O9
+ 0.7500000000000002 0.8700000000000001 0.0000000000000000 # O10
+ 0.7500000000000002 0.3399999999999999 0.0000000000000000 # O11
+ 0.0000000000000000 0.7500000000000000 0.0000000000000000 # O12
+ 0.2500000000000006 0.9869999999999999 0.5000000000000006 # O13
+ 0.5199999999999999 0.3399999999999999 0.4599999999999994 # O14
+ 0.5599999999999998 0.4400000000000000 0.0899999999999994 # O15
+ 0.2499999999999998 0.3700000000000001 0.0000000000000000 # O16
+ 0.2499999999999998 0.8399999999999999 0.0000000000000000 # O17
+ 0.5000000000000003 0.2499999999999999 0.0000000000000000 # O18
+ 0.7500000000000002 0.0129999999999999 0.5000000000000006 # O19
+ 0.4800000000000000 0.6600000000000000 0.5400000000000005 # O20
+ 0.4400000000000001 0.5600000000000003 0.9100000000000005 # O21
+ 0.7500000000000002 0.6300000000000000 0.0000000000000000 # O22
+ 0.7500000000000002 0.1600000000000002 0.0000000000000000 # O23
+ 0.5000000000000003 0.7500000000000000 0.0000000000000000 # O24
+ 0.9800000000000004 0.3399999999999999 0.5400000000000005 # O25
+ 0.9400000000000003 0.4400000000000000 0.9100000000000005 # O26
+ 0.0200000000000003 0.6600000000000000 0.4599999999999994 # O27
+ 0.0600000000000003 0.5600000000000003 0.0899999999999994 # O28
+ 0.5199999999999999 0.1600000000000002 0.5400000000000005 # O29
+ 0.5599999999999998 0.0600000000000001 0.9100000000000005 # O30
+ 0.4800000000000000 0.8399999999999999 0.4599999999999994 # O31
+ 0.4400000000000001 0.9399999999999998 0.0899999999999994 # O32
diff --git a/test/data/orthorhombic/POSCAR-050-2 b/test/data/orthorhombic/POSCAR-050-2
new file mode 100644
index 0000000..cdf1c6c
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-050-2
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 5.4768974228897713 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4768974228897713 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 20.7962902144721653
+ 12 8 36
+Direct
+ 0.2500000000000005 0.2500000000000005 0.0000000000000000 # Sr1
+ 0.7500000000000006 0.2500000000000005 0.4999999999999999 # Sr2
+ 0.2500000000000005 0.2500000000000005 0.1866000000000000 # Sr3
+ 0.7500000000000006 0.2500000000000005 0.3132999999999999 # Sr4
+ 0.7500000000000006 0.7500000000000006 0.0000000000000000 # Sr5
+ 0.2500000000000005 0.7500000000000006 0.4999999999999999 # Sr6
+ 0.7500000000000006 0.7500000000000006 0.8133999999999998 # Sr7
+ 0.2500000000000005 0.7500000000000006 0.6867000000000001 # Sr8
+ 0.2500000000000005 0.2500000000000005 0.8133999999999998 # Sr9
+ 0.7500000000000006 0.2500000000000005 0.6867000000000001 # Sr10
+ 0.7500000000000006 0.7500000000000006 0.1866000000000000 # Sr11
+ 0.2500000000000005 0.7500000000000006 0.3132999999999999 # Sr12
+ 0.7500000000000006 0.2500000000000005 0.0974000000000000 # Ru1
+ 0.2500000000000005 0.2500000000000005 0.4025999999999999 # Ru2
+ 0.2500000000000005 0.7500000000000006 0.9025999999999998 # Ru3
+ 0.7500000000000006 0.7500000000000006 0.5973999999999999 # Ru4
+ 0.7500000000000006 0.2500000000000005 0.9025999999999998 # Ru5
+ 0.2500000000000005 0.2500000000000005 0.5973999999999999 # Ru6
+ 0.2500000000000005 0.7500000000000006 0.0974000000000000 # Ru7
+ 0.7500000000000006 0.7500000000000006 0.4025999999999999 # Ru8
+ 0.7500000000000006 0.2500000000000005 0.0000000000000000 # O1
+ 0.2500000000000005 0.2500000000000005 0.4999999999999999 # O2
+ 0.7500000000000006 0.2500000000000005 0.1954000000000000 # O3
+ 0.2500000000000005 0.2500000000000005 0.3045999999999999 # O4
+ 0.4647000000000000 0.0352999999999999 0.0966000000000000 # O5
+ 0.5352999999999999 0.0352999999999999 0.4033999999999999 # O6
+ 0.4647000000000000 0.9650000000000006 0.4033999999999999 # O7
+ 0.2500000000000005 0.7500000000000006 0.0000000000000000 # O8
+ 0.7500000000000006 0.7500000000000006 0.4999999999999999 # O9
+ 0.2500000000000005 0.7500000000000006 0.8046000000000001 # O10
+ 0.7500000000000006 0.7500000000000006 0.6954000000000000 # O11
+ 0.5353000000000009 0.9647000000000010 0.9034000000000000 # O12
+ 0.4647000000000000 0.9647000000000010 0.5965999999999999 # O13
+ 0.5352999999999999 0.0350000000000003 0.5965999999999999 # O14
+ 0.0352999999999999 0.4647000000000000 0.0966000000000000 # O15
+ 0.9646999999999999 0.4647000000000000 0.4033999999999999 # O16
+ 0.0352999999999999 0.5350000000000004 0.4033999999999999 # O17
+ 0.9646999999999999 0.5353000000000009 0.9034000000000000 # O18
+ 0.0352999999999999 0.5353000000000009 0.5965999999999999 # O19
+ 0.9646999999999999 0.4650000000000006 0.5965999999999999 # O20
+ 0.7500000000000006 0.2500000000000005 0.8046000000000001 # O21
+ 0.2500000000000005 0.2500000000000005 0.6954000000000000 # O22
+ 0.4647000000000000 0.4647000000000011 0.9034000000000000 # O23
+ 0.5352999999999999 0.4647000000000000 0.5965999999999999 # O24
+ 0.4647000000000000 0.5350000000000004 0.5965999999999999 # O25
+ 0.2500000000000005 0.7500000000000006 0.1954000000000000 # O26
+ 0.7500000000000006 0.7500000000000006 0.3045999999999999 # O27
+ 0.5352999999999999 0.5352999999999999 0.0966000000000000 # O28
+ 0.4647000000000000 0.5352999999999999 0.4033999999999999 # O29
+ 0.5352999999999999 0.4650000000000006 0.4033999999999999 # O30
+ 0.0352999999999999 0.0352999999999999 0.9034000000000000 # O31
+ 0.9646999999999999 0.0352999999999999 0.5965999999999999 # O32
+ 0.0352999999999999 0.9650000000000006 0.5965999999999999 # O33
+ 0.9646999999999999 0.9646999999999999 0.0966000000000000 # O34
+ 0.0352999999999999 0.9646999999999999 0.4033999999999999 # O35
+ 0.9646999999999999 0.0350000000000003 0.4033999999999999 # O36
diff --git a/test/data/orthorhombic/POSCAR-051 b/test/data/orthorhombic/POSCAR-051
new file mode 100644
index 0000000..b8806af
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-051
@@ -0,0 +1,65 @@
+$cell vectors
+1.0
+ 16.7049921395997103 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8359981950017663 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.9279957990030692
+ 12 14 32
+Direct
+ 0.0870000000000000 0.4999999999999993 0.0490000000000001 # Li1
+ 0.1710000000000002 0.5000000000000008 0.2380000000000002 # Li2
+ 0.9810000000000000 0.5000000000000008 0.3910000000000001 # Li3
+ 0.9129999999999999 0.5000000000000008 0.9510000000000000 # Li4
+ 0.8290000000000000 0.5000000000000008 0.7619999999999997 # Li5
+ 0.0190000000000001 0.5000000000000008 0.6090000000000000 # Li6
+ 0.4130000000000001 0.4999999999999993 0.0490000000000001 # Li7
+ 0.3290000000000001 0.5000000000000008 0.2380000000000002 # Li8
+ 0.5189999999999999 0.5000000000000008 0.3910000000000001 # Li9
+ 0.5870000000000000 0.5000000000000008 0.9510000000000000 # Li10
+ 0.6710000000000000 0.5000000000000008 0.7619999999999997 # Li11
+ 0.4810000000000000 0.5000000000000008 0.6090000000000000 # Li12
+ 0.2500000000000001 0.0000000000000000 0.6871000000000000 # Ta1
+ 0.1328000000000001 0.0000000000000000 0.3920999999999998 # Ta2
+ 0.0601000000000001 0.0000000000000000 0.8109000000000001 # Ta3
+ 0.2500000000000001 0.0386999999999994 0.0531999999999997 # Ta4
+ 0.7499999999999999 0.0000000000000000 0.3129000000000001 # Ta5
+ 0.8672000000000000 0.0000000000000000 0.6079000000000002 # Ta6
+ 0.9399000000000000 0.0000000000000000 0.1891000000000000 # Ta7
+ 0.7499999999999999 0.9613000000000006 0.9467999999999998 # Ta8
+ 0.3672000000000001 0.0000000000000000 0.3920999999999998 # Ta9
+ 0.4399000000000000 0.0000000000000000 0.8109000000000001 # Ta10
+ 0.2500000000000001 0.9613000000000006 0.0531999999999997 # Ta11
+ 0.6328000000000003 0.0000000000000000 0.6079000000000002 # Ta12
+ 0.5601000000000000 0.0000000000000000 0.1891000000000000 # Ta13
+ 0.7499999999999999 0.0387000000000007 0.9467999999999998 # Ta14
+ 0.2500000000000001 0.5000000000000008 0.6849999999999999 # O1
+ 0.1150000000000002 0.5000000000000008 0.4109999999999999 # O2
+ 0.0560000000000000 0.5000000000000008 0.8090000000000001 # O3
+ 0.2500000000000001 0.4999999999999993 0.0729999999999999 # O4
+ 0.1640000000000000 0.0000000000000000 0.1959999999999997 # O5
+ 0.0129999999999999 0.0000000000000000 0.3450000000000001 # O6
+ 0.2500000000000001 0.0000000000000000 0.4640000000000000 # O7
+ 0.1330000000000000 0.0000000000000000 0.6270000000000000 # O8
+ 0.1750000000000000 0.0000000000000000 0.8890000000000001 # O9
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # O10
+ 0.7499999999999999 0.5000000000000008 0.3150000000000001 # O11
+ 0.8850000000000002 0.5000000000000008 0.5890000000000001 # O12
+ 0.9440000000000001 0.5000000000000008 0.1909999999999999 # O13
+ 0.7499999999999999 0.5000000000000008 0.9270000000000002 # O14
+ 0.8360000000000001 0.0000000000000000 0.8040000000000003 # O15
+ 0.9870000000000001 0.0000000000000000 0.6549999999999998 # O16
+ 0.7499999999999999 0.0000000000000000 0.5360000000000000 # O17
+ 0.8670000000000001 0.0000000000000000 0.3729999999999999 # O18
+ 0.8250000000000000 0.0000000000000000 0.1109999999999999 # O19
+ 0.3850000000000000 0.5000000000000008 0.4109999999999999 # O20
+ 0.4439999999999999 0.5000000000000008 0.8090000000000001 # O21
+ 0.3360000000000001 0.0000000000000000 0.1959999999999997 # O22
+ 0.4869999999999999 0.0000000000000000 0.3450000000000001 # O23
+ 0.3669999999999999 0.0000000000000000 0.6270000000000000 # O24
+ 0.3250000000000002 0.0000000000000000 0.8890000000000001 # O25
+ 0.5000000000000002 0.0000000000000000 0.0000000000000000 # O26
+ 0.6150000000000000 0.5000000000000008 0.5890000000000001 # O27
+ 0.5560000000000002 0.5000000000000008 0.1909999999999999 # O28
+ 0.6640000000000003 0.0000000000000000 0.8040000000000003 # O29
+ 0.5130000000000001 0.0000000000000000 0.6549999999999998 # O30
+ 0.6329999999999999 0.0000000000000000 0.3729999999999999 # O31
+ 0.6749999999999998 0.0000000000000000 0.1109999999999999 # O32
diff --git a/test/data/orthorhombic/POSCAR-051-2 b/test/data/orthorhombic/POSCAR-051-2
new file mode 100644
index 0000000..3932c74
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-051-2
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 9.3279956107863615 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4099960427437086 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.5409978632698165
+ 8 4 4
+Direct
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Hg1
+ 0.2218000000000000 0.9479999999999996 0.5000000000000007 # Hg2
+ 0.1987000000000002 0.2500000000000001 0.0000000000000000 # Hg3
+ 0.7781999999999999 0.0520000000000003 0.5000000000000007 # Hg4
+ 0.8012999999999998 0.7499999999999998 0.0000000000000000 # Hg5
+ 0.5000000000000000 0.4999999999999997 0.0000000000000000 # Hg6
+ 0.2218000000000000 0.5520000000000000 0.5000000000000007 # Hg7
+ 0.7781999999999999 0.4480000000000000 0.5000000000000007 # Hg8
+ 0.2470999999999998 0.9659999999999997 0.0000000000000000 # S1
+ 0.7528999999999996 0.0340000000000002 0.0000000000000000 # S2
+ 0.2470999999999998 0.5339999999999998 0.0000000000000000 # S3
+ 0.7528999999999996 0.4660000000000001 0.0000000000000000 # S4
+ 0.4707999999999996 0.2500000000000001 0.5000000000000007 # Cl1
+ 0.0162000000000000 0.2500000000000001 0.5000000000000007 # Cl2
+ 0.5291999999999998 0.7499999999999998 0.5000000000000007 # Cl3
+ 0.9837999999999996 0.7499999999999998 0.5000000000000007 # Cl4
diff --git a/test/data/orthorhombic/POSCAR-051-3 b/test/data/orthorhombic/POSCAR-051-3
new file mode 100644
index 0000000..afa49c9
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-051-3
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 2.9659986043731084 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.5219978722101111 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.3699979437324581
+ 2 2 4
+Direct
+ 0.0000000000000000 0.2941000000000001 0.2499999999999997 # Fe1
+ 0.0000000000000000 0.7058999999999997 0.7500000000000002 # Fe2
+ 0.4999999999999992 0.7570000000000006 0.2499999999999997 # Ti1
+ 0.4999999999999992 0.2430000000000005 0.7500000000000002 # Ti2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # H1
+ 0.4999999999999992 0.3000000000000004 0.2499999999999997 # H2
+ 0.0000000000000000 0.0000000000000000 0.5000000000000004 # H3
+ 0.4999999999999992 0.6999999999999996 0.7500000000000002 # H4
diff --git a/test/data/orthorhombic/POSCAR-052 b/test/data/orthorhombic/POSCAR-052
new file mode 100644
index 0000000..526fd1a
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-052
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 8.5879959589872694 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.7659958752308338 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.3429956037282338
+ 4 12 20
+Direct
+ 0.9200000000000000 0.2500000000000000 0.2500000000000000 # I1
+ 0.0800000000000004 0.7499999999999999 0.7499999999999999 # I2
+ 0.5800000000000000 0.7499999999999999 0.2500000000000000 # I3
+ 0.4199999999999998 0.2500000000000000 0.7499999999999999 # I4
+ 0.4540000000000000 0.2500000000000000 0.2500000000000000 # Rb1
+ 0.2500000000000002 0.0000000000000000 0.5170000000000000 # Rb2
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Rb3
+ 0.7499999999999997 0.0000000000000000 0.4829999999999999 # Rb4
+ 0.5000000000000003 0.0000000000000000 0.5000000000000000 # Rb5
+ 0.2500000000000002 0.5000000000000000 0.9829999999999998 # Rb6
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Rb7
+ 0.5459999999999998 0.7499999999999999 0.7499999999999999 # Rb8
+ 0.7499999999999997 0.5000000000000000 0.0170000000000001 # Rb9
+ 0.0460000000000002 0.7499999999999999 0.2500000000000000 # Rb10
+ 0.5000000000000003 0.5000000000000000 0.0000000000000000 # Rb11
+ 0.9539999999999995 0.2500000000000000 0.7499999999999999 # Rb12
+ 0.7760000000000002 0.2500000000000000 0.2500000000000000 # O1
+ 0.0159999999999998 0.4479999999999998 0.2899999999999996 # O2
+ 0.0159999999999998 0.2060000000000003 0.4360000000000002 # O3
+ 0.2760000000000001 0.2500000000000000 0.7499999999999999 # O4
+ 0.5160000000000000 0.4479999999999998 0.7099999999999997 # O5
+ 0.5160000000000000 0.2060000000000003 0.5640000000000003 # O6
+ 0.0159999999999998 0.0520000000000001 0.2100000000000003 # O7
+ 0.0159999999999998 0.2940000000000003 0.0639999999999998 # O8
+ 0.2240000000000001 0.7499999999999999 0.7499999999999999 # O9
+ 0.9839999999999999 0.9479999999999997 0.7900000000000001 # O10
+ 0.9839999999999999 0.7060000000000002 0.9360000000000001 # O11
+ 0.7240000000000003 0.7499999999999999 0.2500000000000000 # O12
+ 0.4840000000000003 0.9479999999999997 0.2099999999999997 # O13
+ 0.4839999999999997 0.7060000000000002 0.0639999999999998 # O14
+ 0.5160000000000000 0.0520000000000001 0.7900000000000001 # O15
+ 0.5160000000000000 0.2940000000000003 0.9360000000000001 # O16
+ 0.9839999999999999 0.5520000000000002 0.7099999999999997 # O17
+ 0.9839999999999999 0.7940000000000004 0.5640000000000003 # O18
+ 0.4839999999999997 0.5520000000000002 0.2899999999999996 # O19
+ 0.4839999999999997 0.7940000000000004 0.4360000000000002 # O20
diff --git a/test/data/orthorhombic/POSCAR-052-2 b/test/data/orthorhombic/POSCAR-052-2
new file mode 100644
index 0000000..bbf5ced
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-052-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 5.1829975611820007 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.8929976976391139 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4909960046298245
+ 4 4 12
+Direct
+ 0.2500000000000000 0.0000000000000000 0.7299999999999994 # Li1
+ 0.7500000000000000 0.0000000000000000 0.2699999999999998 # Li2
+ 0.2500000000000000 0.5000000000000006 0.7699999999999997 # Li3
+ 0.7500000000000000 0.5000000000000006 0.2300000000000001 # Li4
+ 0.2500000000000000 0.0000000000000000 0.0971000000000003 # Sb1
+ 0.7500000000000000 0.0000000000000000 0.9028999999999996 # Sb2
+ 0.2500000000000000 0.5000000000000006 0.4028999999999996 # Sb3
+ 0.7500000000000000 0.5000000000000006 0.5970999999999995 # Sb4
+ 0.4439999999999995 0.2500000000000002 0.2499999999999999 # O1
+ 0.9069999999999993 0.2089999999999995 0.0809999999999997 # O2
+ 0.5560000000000004 0.7499999999999997 0.7499999999999999 # O3
+ 0.0930000000000006 0.7910000000000004 0.9189999999999996 # O4
+ 0.0560000000000005 0.7499999999999997 0.2499999999999999 # O5
+ 0.5929999999999995 0.7910000000000004 0.0809999999999997 # O6
+ 0.9439999999999996 0.2500000000000002 0.7499999999999999 # O7
+ 0.4070000000000004 0.2090000000000006 0.9189999999999996 # O8
+ 0.9069999999999993 0.2909999999999999 0.4189999999999996 # O9
+ 0.0929999999999996 0.7090000000000001 0.5809999999999996 # O10
+ 0.5929999999999995 0.7090000000000001 0.4189999999999996 # O11
+ 0.4070000000000004 0.2909999999999999 0.5809999999999996 # O12
diff --git a/test/data/orthorhombic/POSCAR-053 b/test/data/orthorhombic/POSCAR-053
new file mode 100644
index 0000000..2f93dbd
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-053
@@ -0,0 +1,87 @@
+$cell vectors
+1.0
+ 8.7939958620556631 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.0249957533605141 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.0659938519012169
+ 4 20 56
+Direct
+ 0.7230000000000003 0.3099999999999999 0.0000000000000000 # Nd1
+ 0.2770000000000004 0.6900000000000001 0.0000000000000000 # Nd2
+ 0.7230000000000003 0.1900000000000001 0.5000000000000003 # Nd3
+ 0.2770000000000004 0.8100000000000005 0.5000000000000003 # Nd4
+ 0.0000000000000000 0.0000000000000000 0.3250000000000002 # P1
+ 0.2360000000000000 0.4499999999999999 0.3360000000000000 # P2
+ 0.6870000000000003 0.7460000000000003 0.0000000000000000 # P3
+ 0.5000000000000003 0.0000000000000000 0.2949999999999999 # P4
+ 0.0000000000000000 0.0000000000000000 0.6750000000000005 # P5
+ 0.7640000000000007 0.5500000000000000 0.6640000000000003 # P6
+ 0.3129999999999998 0.2540000000000003 0.0000000000000000 # P7
+ 0.5000000000000003 0.0000000000000000 0.7050000000000002 # P8
+ 0.7640000000000000 0.5500000000000000 0.3360000000000000 # P9
+ 0.2360000000000000 0.4499999999999999 0.6640000000000003 # P10
+ 0.0000000000000000 0.5000000000000000 0.1750000000000001 # P11
+ 0.2360000000000000 0.0500000000000001 0.1639999999999999 # P12
+ 0.6870000000000003 0.7540000000000003 0.5000000000000003 # P13
+ 0.5000000000000003 0.5000000000000000 0.2049999999999999 # P14
+ 0.0000000000000000 0.5000000000000000 0.8250000000000005 # P15
+ 0.7640000000000007 0.9500000000000007 0.8360000000000003 # P16
+ 0.3130000000000003 0.2460000000000002 0.5000000000000003 # P17
+ 0.5000000000000003 0.5000000000000000 0.7950000000000003 # P18
+ 0.7640000000000007 0.9500000000000007 0.1639999999999999 # P19
+ 0.2360000000000000 0.0500000000000001 0.8360000000000003 # P20
+ 0.9200000000000004 0.3809999999999999 0.1200000000000002 # O1
+ 0.1130000000000004 0.4189999999999998 0.2540000000000000 # O2
+ 0.2260000000000001 0.5930000000000002 0.3880000000000001 # O3
+ 0.2139999999999999 0.3119999999999999 0.4060000000000001 # O4
+ 0.6110000000000005 0.5840000000000005 0.7170000000000003 # O5
+ 0.4139999999999999 0.6170000000000000 0.8500000000000003 # O6
+ 0.2900000000000003 0.4150000000000004 0.0000000000000000 # O7
+ 0.4670000000000004 0.3130000000000002 0.5000000000000003 # O8
+ 0.0800000000000004 0.6190000000000002 0.8800000000000003 # O9
+ 0.8870000000000003 0.5810000000000002 0.7460000000000001 # O10
+ 0.7740000000000007 0.4070000000000003 0.6120000000000000 # O11
+ 0.7860000000000003 0.6880000000000001 0.5940000000000003 # O12
+ 0.3890000000000002 0.4160000000000001 0.2830000000000003 # O13
+ 0.5860000000000001 0.3830000000000000 0.1499999999999999 # O14
+ 0.7100000000000003 0.5850000000000002 0.0000000000000000 # O15
+ 0.5329999999999997 0.6870000000000005 0.5000000000000003 # O16
+ 0.0800000000000004 0.6190000000000002 0.1200000000000002 # O17
+ 0.8870000000000003 0.5810000000000002 0.2540000000000000 # O18
+ 0.7740000000000000 0.4070000000000003 0.3880000000000001 # O19
+ 0.7860000000000003 0.6880000000000001 0.4060000000000001 # O20
+ 0.3890000000000002 0.4160000000000001 0.7170000000000003 # O21
+ 0.5860000000000001 0.3830000000000006 0.8500000000000003 # O22
+ 0.9200000000000004 0.3810000000000005 0.8800000000000003 # O23
+ 0.1130000000000004 0.4190000000000004 0.7460000000000001 # O24
+ 0.2260000000000001 0.5930000000000002 0.6120000000000000 # O25
+ 0.2139999999999999 0.3119999999999999 0.5940000000000003 # O26
+ 0.6109999999999999 0.5839999999999999 0.2830000000000003 # O27
+ 0.4139999999999999 0.6170000000000000 0.1499999999999999 # O28
+ 0.9200000000000004 0.1190000000000001 0.3800000000000001 # O29
+ 0.1130000000000004 0.0810000000000002 0.2459999999999999 # O30
+ 0.2260000000000001 0.9070000000000004 0.1120000000000001 # O31
+ 0.2139999999999999 0.1880000000000001 0.0940000000000001 # O32
+ 0.6110000000000005 0.9160000000000007 0.7830000000000005 # O33
+ 0.4139999999999999 0.8830000000000006 0.6500000000000002 # O34
+ 0.2900000000000003 0.0850000000000002 0.5000000000000003 # O35
+ 0.4670000000000004 0.1869999999999997 0.0000000000000000 # O36
+ 0.0800000000000004 0.8810000000000006 0.6200000000000004 # O37
+ 0.8870000000000003 0.9190000000000004 0.7540000000000003 # O38
+ 0.7740000000000007 0.0930000000000003 0.8880000000000005 # O39
+ 0.7860000000000003 0.8120000000000005 0.9060000000000005 # O40
+ 0.3890000000000002 0.0840000000000005 0.2170000000000001 # O41
+ 0.5860000000000001 0.1170000000000000 0.3500000000000003 # O42
+ 0.7100000000000003 0.9150000000000003 0.5000000000000003 # O43
+ 0.5330000000000004 0.8130000000000002 0.0000000000000000 # O44
+ 0.0800000000000004 0.8810000000000006 0.3800000000000001 # O45
+ 0.8870000000000003 0.9190000000000004 0.2459999999999999 # O46
+ 0.7740000000000000 0.0929999999999997 0.1120000000000001 # O47
+ 0.7860000000000003 0.8120000000000005 0.0940000000000001 # O48
+ 0.3890000000000002 0.0840000000000005 0.7830000000000005 # O49
+ 0.5860000000000001 0.1170000000000000 0.6500000000000002 # O50
+ 0.9200000000000004 0.1190000000000001 0.6200000000000004 # O51
+ 0.1130000000000004 0.0810000000000002 0.7540000000000003 # O52
+ 0.2260000000000001 0.9070000000000004 0.8880000000000005 # O53
+ 0.2139999999999999 0.1880000000000001 0.9060000000000005 # O54
+ 0.6110000000000005 0.9160000000000000 0.2170000000000001 # O55
+ 0.4139999999999999 0.8830000000000006 0.3500000000000003 # O56
diff --git a/test/data/orthorhombic/POSCAR-053-2 b/test/data/orthorhombic/POSCAR-053-2
new file mode 100644
index 0000000..cbabb04
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-053-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 7.3949965203436037 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.0149962286077052 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.7299982448791922
+ 2 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.5000000000000000 0.5000000000000003 0.0000000000000000 # Cu2
+ 0.2389999999999999 0.0000000000000000 0.3780000000000006 # Cl1
+ -0.2389999999999999 0.0000000000000000 -0.3780000000000006 # Cl2
+ 0.2610000000000002 0.5000000000000003 0.3780000000000006 # Cl3
+ 0.7389999999999999 0.5000000000000003 -0.3780000000000006 # Cl4
+ 0.0000000000000000 0.2500000000000002 0.0000000000000000 # O1
+ 0.0000000000000000 -0.2500000000000002 0.0000000000000000 # O2
+ 0.5000000000000000 0.2500000000000002 0.0000000000000000 # O3
+ 0.5000000000000000 0.7499999999999999 0.0000000000000000 # O4
diff --git a/test/data/orthorhombic/POSCAR-054 b/test/data/orthorhombic/POSCAR-054
new file mode 100644
index 0000000..83cc388
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-054
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 10.1199952381172746 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.8099972661523083 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.9499948475676057
+ 4 4 32
+Direct
+ 0.2500000000000002 0.5000000000000000 1.0434000000000001 # Br1
+ 0.7500000000000002 0.5000000000000000 -0.0433999999999999 # Br2
+ 0.7500000000000002 0.5000000000000000 0.4565999999999999 # Br3
+ 0.2500000000000002 0.5000000000000000 0.5434000000000002 # Br4
+ 1.0000000000000000 0.1081000000000003 0.2499999999999999 # Sb1
+ 0.0000000000000000 0.8919000000000006 0.7500000000000002 # Sb2
+ 0.5000000000000000 0.8919000000000006 0.2499999999999999 # Sb3
+ 0.5000000000000000 0.1081000000000003 0.7500000000000002 # Sb4
+ 1.1074000000000002 0.3476000000000005 0.1844000000000000 # F1
+ 0.1492000000000000 0.3812000000000003 0.9380000000000001 # F2
+ 1.0981000000000003 0.1258000000000002 0.3897000000000000 # F3
+ 1.1096000000000001 -0.1090000000000004 0.1820000000000002 # F4
+ -0.1074000000000001 0.6524000000000003 0.8156000000000001 # F5
+ 0.8508000000000001 0.6187999999999998 0.0620000000000000 # F6
+ -0.0980999999999998 0.8742000000000005 0.6103000000000001 # F7
+ -0.1096000000000000 1.1090000000000002 0.8180000000000003 # F8
+ 0.3925999999999999 0.6524000000000003 0.1844000000000000 # F9
+ 0.3508000000000000 0.6188000000000007 0.9380000000000001 # F10
+ 0.4019000000000003 0.8742000000000005 0.3897000000000000 # F11
+ 0.3904000000000000 1.1090000000000002 0.1820000000000002 # F12
+ 0.6074000000000002 0.3476000000000005 0.8156000000000001 # F13
+ 0.6492000000000001 0.3812000000000003 0.0620000000000000 # F14
+ 0.5980999999999997 0.1258000000000002 0.6103000000000001 # F15
+ 0.6095999999999999 -0.1089999999999994 0.8180000000000003 # F16
+ 0.6074000000000002 0.6524000000000003 0.3155999999999998 # F17
+ 0.6492000000000001 0.6188000000000007 0.5620000000000002 # F18
+ 0.5980999999999997 0.8742000000000005 0.1103000000000003 # F19
+ 0.6095999999999999 1.1090000000000002 0.3180000000000001 # F20
+ 0.3925999999999999 0.3476000000000005 0.6843999999999999 # F21
+ 0.3508000000000000 0.3812000000000003 0.4380000000000003 # F22
+ 0.4019000000000003 0.1258000000000002 0.8896999999999998 # F23
+ 0.3904000000000000 -0.1089999999999994 0.6819999999999999 # F24
+ 0.8926000000000004 0.3476000000000005 0.3155999999999998 # F25
+ 0.8508000000000001 0.3812000000000003 0.5620000000000002 # F26
+ 0.9019000000000003 0.1258000000000002 0.1103000000000003 # F27
+ 0.8904000000000001 -0.1090000000000004 0.3180000000000001 # F28
+ 0.1074000000000001 0.6524000000000003 0.6843999999999999 # F29
+ 0.1492000000000000 0.6188000000000007 0.4380000000000003 # F30
+ 0.0981000000000003 0.8742000000000005 0.8896999999999998 # F31
+ 0.1096000000000000 1.1090000000000002 0.6819999999999999 # F32
diff --git a/test/data/orthorhombic/POSCAR-054-2 b/test/data/orthorhombic/POSCAR-054-2
new file mode 100644
index 0000000..c01dbe6
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-054-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 9.9809953035225867 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7809972797980231 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.5219950489594840
+ 4 4 32
+Direct
+ 0.0000000000000000 0.6039999999999995 0.2500000000000001 # Nb1
+ 0.0000000000000000 0.3960000000000005 0.7499999999999999 # Nb2
+ 0.4999999999999999 0.3959999999999997 0.2500000000000001 # Nb3
+ 0.4999999999999999 0.6039999999999995 0.7499999999999999 # Nb4
+ 0.2500000000000000 0.0000000000000000 1.0347999999999997 # Cl1
+ 0.7499999999999994 0.0000000000000000 -0.0347999999999998 # Cl2
+ 0.7499999999999994 0.0000000000000000 0.4652000000000000 # Cl3
+ 0.2500000000000000 0.0000000000000000 0.5348000000000001 # Cl4
+ 0.1123000000000000 0.3812999999999995 0.1832000000000003 # F1
+ 0.1118000000000001 0.8490000000000001 0.1786000000000000 # F2
+ -0.1020000000000002 0.6280000000000001 0.1023000000000002 # F3
+ 0.1516000000000002 -0.1110000000000002 0.9360000000000002 # F4
+ -0.1123000000000000 0.6186999999999997 0.8168000000000002 # F5
+ -0.1118000000000001 0.1510000000000001 0.8213999999999999 # F6
+ 0.1020000000000002 0.3719999999999999 0.8976999999999998 # F7
+ 0.8483999999999999 0.1110000000000002 0.0640000000000002 # F8
+ 0.3877000000000000 0.6186999999999997 0.1832000000000003 # F9
+ 0.3881999999999999 0.1510000000000001 0.1786000000000000 # F10
+ 0.6019999999999996 0.3719999999999999 0.1023000000000002 # F11
+ 0.3483999999999998 0.1110000000000002 0.9360000000000002 # F12
+ 0.6123000000000000 0.3813000000000004 0.8168000000000002 # F13
+ 0.6118000000000001 0.8490000000000001 0.8213999999999999 # F14
+ 0.3979999999999998 0.6280000000000001 0.8976999999999998 # F15
+ 0.6515999999999998 -0.1110000000000002 0.0640000000000002 # F16
+ 0.6123000000000000 0.6186999999999997 0.3168000000000000 # F17
+ 0.6117999999999996 0.1510000000000001 0.3214000000000002 # F18
+ 0.3979999999999998 0.3719999999999999 0.3977000000000001 # F19
+ 0.6515999999999998 0.1110000000000002 0.5639999999999999 # F20
+ 0.3877000000000000 0.3813000000000004 0.6831999999999999 # F21
+ 0.3881999999999999 0.8490000000000001 0.6786000000000002 # F22
+ 0.6019999999999996 0.6280000000000001 0.6022999999999999 # F23
+ 0.3483999999999998 -0.1110000000000002 0.4360000000000000 # F24
+ -0.1123000000000000 0.3812999999999995 0.3168000000000000 # F25
+ -0.1118000000000001 0.8490000000000001 0.3214000000000002 # F26
+ 0.1020000000000002 0.6280000000000001 0.3977000000000001 # F27
+ 0.8483999999999999 -0.1110000000000002 0.5639999999999999 # F28
+ 0.1123000000000000 0.6186999999999997 0.6831999999999999 # F29
+ 0.1118000000000001 0.1510000000000001 0.6786000000000002 # F30
+ -0.1019999999999997 0.3719999999999999 0.6022999999999999 # F31
+ 0.1516000000000002 0.1110000000000002 0.4360000000000000 # F32
diff --git a/test/data/orthorhombic/POSCAR-055 b/test/data/orthorhombic/POSCAR-055
new file mode 100644
index 0000000..d339c5b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-055
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 11.5419945690068761 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.6899940288249251 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.9739981300670011
+ 6 4 14
+Direct
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # Eu1
+ 0.3867000000000002 0.6464000000000000 0.0000000000000000 # Eu2
+ 0.6133000000000003 0.3536000000000001 0.0000000000000000 # Eu3
+ 0.5000000000000002 0.9999999999999994 0.0000000000000000 # Eu4
+ 0.8866999999999999 0.8536000000000000 0.0000000000000000 # Eu5
+ 0.1133000000000000 0.1463999999999999 0.0000000000000000 # Eu6
+ 0.2737000000000000 0.3881999999999999 0.5000000000000000 # Sn1
+ 0.7263000000000001 0.6118000000000001 0.5000000000000000 # Sn2
+ 0.7737000000000002 0.1118000000000000 0.5000000000000000 # Sn3
+ 0.2263000000000002 0.8881999999999999 0.5000000000000000 # Sn4
+ 0.3482000000000002 0.2950999999999998 0.0000000000000000 # S1
+ 0.2951000000000001 0.0646999999999998 0.5000000000000000 # S2
+ 0.0757000000000000 0.3190999999999999 0.5000000000000000 # S3
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # S4
+ 0.6518000000000003 0.7048999999999997 0.0000000000000000 # S5
+ 0.7049000000000003 0.9352999999999999 0.5000000000000000 # S6
+ 0.9243000000000000 0.6809000000000001 0.5000000000000000 # S7
+ 0.8482000000000000 0.2049000000000002 0.0000000000000000 # S8
+ 0.7950999999999999 0.4352999999999999 0.5000000000000000 # S9
+ 0.5757000000000003 0.1808999999999997 0.5000000000000000 # S10
+ 0.5000000000000002 0.4999999999999999 0.5000000000000000 # S11
+ 0.1518000000000000 0.7950999999999998 0.0000000000000000 # S12
+ 0.2049000000000001 0.5646999999999998 0.5000000000000000 # S13
+ 0.4243000000000002 0.8190999999999999 0.5000000000000000 # S14
diff --git a/test/data/orthorhombic/POSCAR-055-2 b/test/data/orthorhombic/POSCAR-055-2
new file mode 100644
index 0000000..61d3453
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-055-2
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 11.2199947205213277 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.9149962756618821 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.9599981366545887
+ 4 2 10
+Direct
+ 0.3310000000000001 0.0742999999999999 0.5000000000000000 # La1
+ 0.6690000000000004 0.9257000000000002 0.5000000000000000 # La2
+ 0.8310000000000002 0.4257000000000002 0.5000000000000000 # La3
+ 0.1689999999999999 0.5742999999999999 0.5000000000000000 # La4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Sn1
+ 0.4999999999999999 0.5000000000000000 0.0000000000000000 # Sn2
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # S1
+ 0.2984000000000001 0.3571000000000001 0.0000000000000000 # S2
+ 0.0693999999999999 0.1869000000000002 0.5000000000000000 # S3
+ 0.7015999999999999 0.6429000000000000 0.0000000000000000 # S4
+ 0.9306000000000002 0.8130999999999999 0.5000000000000000 # S5
+ 0.4999999999999999 0.0000000000000000 0.0000000000000000 # S6
+ 0.7984000000000000 0.1428999999999999 0.0000000000000000 # S7
+ 0.5693999999999998 0.3130999999999998 0.5000000000000000 # S8
+ 0.2015999999999999 0.8571000000000003 0.0000000000000000 # S9
+ 0.4306000000000001 0.6869000000000002 0.5000000000000000 # S10
diff --git a/test/data/orthorhombic/POSCAR-056 b/test/data/orthorhombic/POSCAR-056
new file mode 100644
index 0000000..db21247
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-056
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 4.9109976891693607 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.4639941351673649 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.4119974534279329
+ 8 12
+Direct
+ 0.0414000000000001 0.1274000000000001 0.1783999999999999 # Sb1
+ 0.9585999999999999 0.8726000000000000 0.8216000000000000 # Sb2
+ 0.4586000000000004 0.3725999999999999 0.1783999999999999 # Sb3
+ 0.5414000000000008 0.6274000000000001 0.8216000000000000 # Sb4
+ 0.5414000000000008 0.8726000000000000 0.3215999999999996 # Sb5
+ 0.4586000000000004 0.1274000000000001 0.6784000000000006 # Sb6
+ 0.9585999999999999 0.6274000000000001 0.3216000000000007 # Sb7
+ 0.0414000000000001 0.3725999999999999 0.6784000000000006 # Sb8
+ 0.2499999999999998 0.2500000000000002 0.0228999999999999 # O1
+ 0.1520000000000005 0.0591000000000000 0.8560000000000004 # O2
+ 0.7500000000000002 0.7500000000000002 0.9771000000000004 # O3
+ 0.8480000000000008 0.9409000000000000 0.1440000000000005 # O4
+ 0.3480000000000001 0.4408999999999999 0.8560000000000004 # O5
+ 0.6520000000000000 0.5591000000000000 0.1440000000000005 # O6
+ 0.7500000000000002 0.7500000000000002 0.4771000000000007 # O7
+ 0.6520000000000000 0.9409000000000000 0.6440000000000001 # O8
+ 0.2499999999999998 0.2500000000000002 0.5229000000000005 # O9
+ 0.3480000000000001 0.0591000000000000 0.3560000000000000 # O10
+ 0.8480000000000008 0.5591000000000000 0.6440000000000001 # O11
+ 0.1520000000000005 0.4408999999999999 0.3560000000000000 # O12
diff --git a/test/data/orthorhombic/POSCAR-056-2 b/test/data/orthorhombic/POSCAR-056-2
new file mode 100644
index 0000000..cc77740
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-056-2
@@ -0,0 +1,59 @@
+$cell vectors
+1.0
+ 10.2729951661243870 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.8029963283625605 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.5659959693391912
+ 4 8 32 8
+Direct
+ 0.2500000000000000 0.2499999999999997 0.0942999999999998 # Ba1
+ 0.7499999999999999 0.7500000000000003 0.9056999999999996 # Ba2
+ 0.7499999999999999 0.7499999999999997 0.4057000000000002 # Ba3
+ 0.2500000000000000 0.2500000000000004 0.5942999999999997 # Ba4
+ 0.4266000000000000 0.5709000000000002 0.2854999999999997 # P1
+ 0.5733999999999999 0.4290999999999999 0.7144999999999997 # P2
+ 0.0733999999999999 0.9290999999999999 0.2854999999999997 # P3
+ 0.9266000000000000 0.0709000000000002 0.7144999999999997 # P4
+ 0.9266000000000000 0.4290999999999999 0.2144999999999997 # P5
+ 0.0733999999999999 0.5709000000000002 0.7854999999999996 # P6
+ 0.5733999999999999 0.0709000000000002 0.2144999999999997 # P7
+ 0.4266000000000000 0.9290999999999999 0.7854999999999996 # P8
+ 0.4213000000000000 0.7321000000000001 0.3878999999999999 # O1
+ 0.3636000000000001 0.4171000000000002 0.3696999999999999 # O2
+ 0.3529999999999999 0.6039000000000000 0.1303000000000001 # O3
+ 0.5708999999999997 0.5286999999999997 0.2475000000000002 # O4
+ 0.5786999999999999 0.2679000000000000 0.6121000000000002 # O5
+ 0.6363999999999997 0.5828999999999998 0.6303000000000001 # O6
+ 0.6469999999999999 0.3961000000000001 0.8696999999999998 # O7
+ 0.4291000000000001 0.4713000000000003 0.7524999999999998 # O8
+ 0.0787000000000000 0.7679000000000000 0.3878999999999999 # O9
+ 0.1363999999999998 1.0828999999999998 0.3696999999999999 # O10
+ 0.1470000000000001 0.8961000000000001 0.1303000000000001 # O11
+ -0.0708999999999998 0.9713000000000003 0.2475000000000002 # O12
+ 0.9212999999999998 0.2321000000000001 0.6121000000000002 # O13
+ 0.8635999999999996 -0.0828999999999998 0.6303000000000001 # O14
+ 0.8529999999999998 0.1038999999999999 0.8696999999999998 # O15
+ 1.0708999999999997 0.0286999999999997 0.7524999999999998 # O16
+ 0.9212999999999998 0.2679000000000000 0.1121000000000002 # O17
+ 0.8635999999999996 0.5828999999999998 0.1303000000000001 # O18
+ 0.8529999999999998 0.3961000000000001 0.3696999999999999 # O19
+ 1.0708999999999997 0.4713000000000003 0.2524999999999998 # O20
+ 0.0787000000000000 0.7321000000000001 0.8878999999999999 # O21
+ 0.1363999999999998 0.4171000000000002 0.8696999999999998 # O22
+ 0.1470000000000001 0.6039000000000000 0.6303000000000001 # O23
+ -0.0708999999999998 0.5286999999999997 0.7475000000000002 # O24
+ 0.5786999999999999 0.2321000000000001 0.1121000000000002 # O25
+ 0.6363999999999997 -0.0828999999999998 0.1303000000000001 # O26
+ 0.6469999999999999 0.1038999999999999 0.3696999999999999 # O27
+ 0.4291000000000001 0.0286999999999997 0.2524999999999998 # O28
+ 0.4213000000000000 0.7679000000000000 0.8878999999999999 # O29
+ 0.3636000000000001 1.0828999999999998 0.8696999999999998 # O30
+ 0.3529999999999999 0.8961000000000001 0.6303000000000001 # O31
+ 0.5709000000000002 0.9713000000000003 0.7475000000000002 # O32
+ 0.3970000000000001 0.8249999999999998 0.5650000000000001 # H1
+ 0.6029999999999998 0.1750000000000004 0.4349999999999999 # H2
+ 0.1029999999999999 0.6750000000000004 0.5650000000000001 # H3
+ 0.8969999999999999 0.3249999999999997 0.4349999999999999 # H4
+ 0.8969999999999999 0.1750000000000004 0.9350000000000001 # H5
+ 0.1029999999999999 0.8249999999999998 0.0650000000000001 # H6
+ 0.6029999999999998 0.3250000000000003 0.9350000000000001 # H7
+ 0.3970000000000001 0.6749999999999996 0.0650000000000001 # H8
diff --git a/test/data/orthorhombic/POSCAR-057 b/test/data/orthorhombic/POSCAR-057
new file mode 100644
index 0000000..6b0e488
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-057
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 5.2609975244797438 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.4249946240602647 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.7149973108537804
+ 4 4 12
+Direct
+ 0.9304999999999995 0.3981000000000000 0.2500000000000002 # Rb1
+ 0.0694999999999997 0.6019000000000001 0.7499999999999998 # Rb2
+ 0.9304999999999995 0.1019000000000001 0.7499999999999998 # Rb3
+ 0.0694999999999997 0.8981000000000000 0.2500000000000002 # Rb4
+ 0.4659999999999998 0.1661000000000001 0.2500000000000002 # V1
+ 0.5340000000000005 0.8339000000000001 0.7499999999999998 # V2
+ 0.4659999999999998 0.3339000000000000 0.7499999999999998 # V3
+ 0.5339999999999994 0.6661000000000001 0.2500000000000002 # V4
+ 0.1567999999999999 0.1494999999999999 0.2500000000000002 # O1
+ 0.6022000000000000 0.0385000000000002 0.2500000000000002 # O2
+ 0.5681999999999995 0.2500000000000000 0.0000000000000000 # O3
+ 0.8432000000000005 0.8505000000000001 0.7499999999999998 # O4
+ 0.3978000000000003 0.9615000000000001 0.7499999999999998 # O5
+ 0.4317999999999997 0.7500000000000001 0.4999999999999995 # O6
+ 0.5681999999999995 0.2500000000000000 0.4999999999999995 # O7
+ 0.1567999999999999 0.3505000000000002 0.7499999999999998 # O8
+ 0.6022000000000000 0.4615000000000004 0.7499999999999998 # O9
+ 0.8432000000000005 0.6495000000000000 0.2500000000000002 # O10
+ 0.3978000000000003 0.5385000000000002 0.2500000000000002 # O11
+ 0.4317999999999997 0.7500000000000001 0.0000000000000000 # O12
diff --git a/test/data/orthorhombic/POSCAR-057-2 b/test/data/orthorhombic/POSCAR-057-2
new file mode 100644
index 0000000..9948e50
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-057-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 6.3589970078248754 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.7649954051596080 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.6669968628980119
+ 8 16 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Na1
+ 0.3381999999999997 0.2500000000000001 0.0000000000000000 # Na2
+ 0.6618000000000003 0.7499999999999999 0.0000000000000000 # Na3
+ 0.0000000000000000 0.0000000000000000 0.4999999999999999 # Na4
+ 0.6618000000000003 0.7499999999999999 0.4999999999999999 # Na5
+ 0.3381999999999997 0.2500000000000001 0.4999999999999999 # Na6
+ 0.0000000000000000 0.4999999999999998 0.0000000000000000 # Na7
+ 0.0000000000000000 0.4999999999999998 0.4999999999999999 # Na8
+ 0.7355999999999999 0.5620999999999999 0.2500000000000000 # O1
+ 0.6082000000000005 0.3451000000000001 0.2500000000000000 # O2
+ 0.2386000000000003 0.4312000000000001 0.2500000000000000 # O3
+ 0.9267000000000009 0.2500000000000001 0.0000000000000000 # O4
+ 0.7614000000000004 0.5687999999999999 0.7499999999999999 # O5
+ 0.0733000000000002 0.7499999999999999 0.0000000000000000 # O6
+ 0.2644000000000001 0.4379000000000000 0.7499999999999999 # O7
+ 0.3918000000000004 0.6548999999999998 0.7499999999999999 # O8
+ 0.0733000000000002 0.7499999999999999 0.4999999999999999 # O9
+ 0.9267000000000009 0.2500000000000001 0.4999999999999999 # O10
+ 0.7355999999999999 -0.0620999999999997 0.7499999999999999 # O11
+ 0.6082000000000005 0.1549000000000001 0.7499999999999999 # O12
+ 0.2386000000000003 0.0688000000000002 0.7499999999999999 # O13
+ 0.2644000000000001 1.0620999999999998 0.2500000000000000 # O14
+ 0.3918000000000004 0.8451000000000000 0.2500000000000000 # O15
+ 0.7614000000000004 0.9311999999999997 0.2500000000000000 # O16
+ 0.5735000000000001 0.4772999999999998 0.2500000000000000 # N1
+ 0.3903000000000003 0.5274000000000000 0.2500000000000000 # N2
+ 0.4265000000000006 0.5227000000000002 0.7499999999999999 # N3
+ 0.6097000000000006 0.4726000000000000 0.7499999999999999 # N4
+ 0.5735000000000001 0.0226999999999999 0.7499999999999999 # N5
+ 0.3903000000000003 -0.0273999999999997 0.7499999999999999 # N6
+ 0.4264999999999999 0.9773000000000001 0.2500000000000000 # N7
+ 0.6097000000000006 1.0273999999999999 0.2500000000000000 # N8
+ 0.8627000000000005 0.2717999999999998 0.1014999999999998 # H1
+ 0.1372999999999997 0.7281999999999995 -0.1014999999999998 # H2
+ 0.1373000000000005 0.7281999999999995 0.6014999999999998 # H3
+ 0.8627000000000005 0.2717999999999998 0.3985000000000001 # H4
+ 0.8627000000000005 0.2281999999999999 -0.1014999999999998 # H5
+ 0.1372999999999997 0.7718000000000002 0.1014999999999998 # H6
+ 0.1373000000000005 0.7718000000000002 0.3985000000000001 # H7
+ 0.8627000000000005 0.2281999999999999 0.6014999999999998 # H8
diff --git a/test/data/orthorhombic/POSCAR-058 b/test/data/orthorhombic/POSCAR-058
new file mode 100644
index 0000000..05bcd2d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-058
@@ -0,0 +1,207 @@
+$cell vectors
+1.0
+ 10.8399948993272037 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 23.6929888514538227 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.9019967523206969
+ 8 48 48 96
+Direct
+ 0.0138000000000001 0.1182000000000000 0.0000000000000000 # Cu1
+ 0.0157000000000000 0.3686000000000000 0.0000000000000000 # Cu2
+ 0.9861999999999997 0.8818000000000000 0.0000000000000000 # Cu3
+ 0.9842999999999997 0.6313999999999999 0.0000000000000000 # Cu4
+ 0.5138000000000003 0.3818000000000001 0.4999999999999997 # Cu5
+ 0.5157000000000002 0.1314000000000001 0.4999999999999997 # Cu6
+ 0.4862000000000001 0.6182000000000000 0.4999999999999997 # Cu7
+ 0.4843000000000001 0.8685999999999999 0.4999999999999997 # Cu8
+ -0.0720000000000001 0.1623000000000000 0.2123999999999996 # N1
+ 0.1000999999999999 0.0749999999999999 0.2102999999999997 # N2
+ -0.0380000000000000 0.4220999999999999 0.2115000000000000 # N3
+ 0.0682000000000002 0.3148000000000001 0.2098000000000001 # N4
+ 0.2735000000000001 0.1984000000000001 0.0000000000000000 # N5
+ 0.7364000000000001 0.0526999999999999 0.0000000000000000 # N6
+ 0.7326999999999998 0.3006999999999999 0.0000000000000000 # N7
+ 0.2729000000000000 0.4515000000000001 0.0000000000000000 # N8
+ 1.0720000000000001 0.8377000000000000 -0.2124000000000004 # N9
+ 0.8998999999999999 0.9250000000000000 -0.2102999999999997 # N10
+ 1.0379999999999998 0.5778999999999999 -0.2115000000000000 # N11
+ 0.9318000000000001 0.6852000000000000 -0.2098000000000001 # N12
+ 0.7264999999999998 0.8016000000000001 0.0000000000000000 # N13
+ 0.2635999999999999 0.9472999999999998 0.0000000000000000 # N14
+ 0.2673000000000002 0.6992999999999999 0.0000000000000000 # N15
+ 0.7270999999999999 0.5484999999999998 0.0000000000000000 # N16
+ 1.0720000000000001 0.8377000000000000 0.2123999999999996 # N17
+ 0.8998999999999999 0.9250000000000000 0.2102999999999997 # N18
+ 1.0379999999999998 0.5778999999999999 0.2115000000000000 # N19
+ 0.9318000000000001 0.6852000000000000 0.2098000000000001 # N20
+ -0.0720000000000001 0.1623000000000000 -0.2124000000000004 # N21
+ 0.1000999999999999 0.0749999999999999 -0.2102999999999997 # N22
+ -0.0380000000000000 0.4220999999999999 -0.2115000000000000 # N23
+ 0.0682000000000002 0.3148000000000001 -0.2098000000000001 # N24
+ 0.4280000000000000 0.3377000000000001 0.2876000000000000 # N25
+ 0.6001000000000002 0.4249999999999999 0.2897000000000000 # N26
+ 0.4619999999999997 0.0779000000000001 0.2884999999999997 # N27
+ 0.5681999999999999 0.1852000000000000 0.2902000000000003 # N28
+ 0.7734999999999999 0.3016000000000000 0.4999999999999997 # N29
+ 0.2364000000000003 0.4472999999999999 0.4999999999999997 # N30
+ 0.2327000000000000 0.1993000000000001 0.4999999999999997 # N31
+ 0.7728999999999997 0.0485000000000000 0.4999999999999997 # N32
+ 0.5719999999999998 0.6623000000000000 0.7124000000000000 # N33
+ 0.3999000000000004 0.5750000000000000 0.7103000000000002 # N34
+ 0.5380000000000003 0.9220999999999998 0.7115000000000004 # N35
+ 0.4318000000000000 0.8147999999999997 0.7097999999999998 # N36
+ 0.2265000000000001 0.6983999999999999 0.4999999999999997 # N37
+ 0.7636000000000002 0.5527000000000000 0.4999999999999997 # N38
+ 0.7673000000000000 0.8006999999999997 0.4999999999999997 # N39
+ 0.2271000000000002 0.9514999999999999 0.4999999999999997 # N40
+ 0.5719999999999998 0.6623000000000000 0.2876000000000000 # N41
+ 0.3999000000000004 0.5750000000000000 0.2897000000000000 # N42
+ 0.5380000000000003 0.9220999999999998 0.2884999999999997 # N43
+ 0.4318000000000000 0.8147999999999997 0.2902000000000003 # N44
+ 0.4280000000000000 0.3377000000000001 0.7124000000000000 # N45
+ 0.6001000000000002 0.4249999999999999 0.7103000000000002 # N46
+ 0.4619999999999997 0.0779000000000001 0.7115000000000004 # N47
+ 0.5681999999999999 0.1852000000000000 0.7097999999999998 # N48
+ 0.1627999999999999 0.2027000000000001 0.0000000000000000 # O1
+ 0.3226000000000001 0.1494999999999999 0.0000000000000000 # O2
+ 0.3438999999999999 0.2388999999999999 0.0000000000000000 # O3
+ 0.8495999999999997 0.0432000000000000 0.0000000000000000 # O4
+ 0.6971000000000003 0.1015999999999999 0.0000000000000000 # O5
+ 0.6653000000000002 0.0137000000000001 0.0000000000000000 # O6
+ 0.7696000000000000 0.3496999999999999 0.0000000000000000 # O7
+ 0.6223000000000000 0.2914000000000000 0.0000000000000000 # O8
+ 0.8093999999999999 0.2620999999999999 0.0000000000000000 # O9
+ 0.2384999999999998 0.4028999999999998 0.0000000000000000 # O10
+ 0.1991000000000000 0.4883000000000000 0.0000000000000000 # O11
+ 0.3878000000000001 0.4621999999999999 0.0000000000000000 # O12
+ 0.8372000000000001 0.7972999999999998 0.0000000000000000 # O13
+ 0.6773999999999998 0.8504999999999999 0.0000000000000000 # O14
+ 0.6561000000000000 0.7611000000000000 0.0000000000000000 # O15
+ 0.1504000000000001 0.9567999999999999 0.0000000000000000 # O16
+ 0.3029000000000002 0.8984000000000000 0.0000000000000000 # O17
+ 0.3347000000000003 0.9862999999999998 0.0000000000000000 # O18
+ 0.2303999999999999 0.6502999999999999 0.0000000000000000 # O19
+ 0.3776999999999999 0.7086000000000000 0.0000000000000000 # O20
+ 0.1906000000000001 0.7379000000000000 0.0000000000000000 # O21
+ 0.7615000000000002 0.5971000000000000 0.0000000000000000 # O22
+ 0.8008999999999998 0.5116999999999999 0.0000000000000000 # O23
+ 0.6122000000000003 0.5378000000000001 0.0000000000000000 # O24
+ 0.6627999999999999 0.2973000000000000 0.4999999999999997 # O25
+ 0.8225999999999998 0.3505000000000000 0.4999999999999997 # O26
+ 0.8439000000000000 0.2610999999999999 0.4999999999999997 # O27
+ 0.3496000000000001 0.4568000000000000 0.4999999999999997 # O28
+ 0.1971000000000000 0.3983999999999999 0.4999999999999997 # O29
+ 0.1652999999999999 0.4863000000000000 0.4999999999999997 # O30
+ 0.2696000000000002 0.1502999999999999 0.4999999999999997 # O31
+ 0.1223000000000003 0.2086000000000000 0.4999999999999997 # O32
+ 0.3094000000000001 0.2378999999999999 0.4999999999999997 # O33
+ 0.7384999999999995 0.0970999999999999 0.4999999999999997 # O34
+ 0.6991000000000002 0.0117000000000001 0.4999999999999997 # O35
+ 0.8878000000000000 0.0378000000000001 0.4999999999999997 # O36
+ 0.3371999999999998 0.7026999999999998 0.4999999999999997 # O37
+ 0.1774000000000001 0.6495000000000000 0.4999999999999997 # O38
+ 0.1561000000000003 0.7389000000000000 0.4999999999999997 # O39
+ 0.6503999999999999 0.5432000000000000 0.4999999999999997 # O40
+ 0.8028999999999998 0.6015999999999999 0.4999999999999997 # O41
+ 0.8347000000000000 0.5137000000000000 0.4999999999999997 # O42
+ 0.7304000000000002 0.8496999999999996 0.4999999999999997 # O43
+ 0.8777000000000000 0.7913999999999999 0.4999999999999997 # O44
+ 0.6905999999999998 0.7620999999999999 0.4999999999999997 # O45
+ 0.2614999999999999 0.9028999999999998 0.4999999999999997 # O46
+ 0.3009000000000002 0.9882999999999998 0.4999999999999997 # O47
+ 0.1122000000000000 0.9621999999999998 0.4999999999999997 # O48
+ 0.0000000000000000 0.1800000000000000 0.2860000000000004 # H1
+ -0.0920000000000001 0.1400000000000000 0.2860000000000004 # H2
+ -0.1109999999999998 0.1800000000000000 0.1430000000000002 # H3
+ 0.0370000000000003 0.0630000000000001 0.2860000000000004 # H4
+ 0.1300000000000000 0.0999999999999999 0.2619999999999997 # H5
+ 0.1700000000000000 0.0490000000000000 0.1430000000000002 # H6
+ 0.0370000000000003 0.4360000000000000 0.2859999999999996 # H7
+ -0.0679999999999997 0.3959999999999999 0.2859999999999996 # H8
+ -0.0810000000000001 0.4360000000000000 0.2140000000000000 # H9
+ 0.0920000000000001 0.3450000000000000 0.2859999999999996 # H10
+ 0.0779999999999999 0.3019999999999999 0.1430000000000002 # H11
+ 0.1040000000000002 0.3299999999999999 0.3810000000000000 # H12
+ 1.0000000000000000 0.8200000000000001 -0.2860000000000004 # H13
+ 1.0920000000000005 0.8599999999999999 -0.2860000000000004 # H14
+ 1.1110000000000002 0.8200000000000001 -0.1430000000000002 # H15
+ 0.9630000000000002 0.9370000000000001 -0.2860000000000004 # H16
+ 0.8699999999999999 0.9000000000000000 -0.2619999999999997 # H17
+ 0.8300000000000000 0.9510000000000000 -0.1430000000000002 # H18
+ 0.9629999999999997 0.5640000000000001 -0.2859999999999996 # H19
+ 1.0680000000000001 0.6039999999999999 -0.2859999999999996 # H20
+ 1.0810000000000000 0.5640000000000001 -0.2140000000000000 # H21
+ 0.9079999999999998 0.6550000000000000 -0.2859999999999996 # H22
+ 0.9220000000000000 0.6979999999999998 -0.1430000000000002 # H23
+ 0.8960000000000002 0.6699999999999999 0.6189999999999999 # H24
+ 1.0000000000000000 0.8200000000000001 0.2860000000000004 # H25
+ 1.0920000000000005 0.8599999999999999 0.2860000000000004 # H26
+ 1.1110000000000002 0.8200000000000001 0.1430000000000002 # H27
+ 0.9630000000000002 0.9370000000000001 0.2860000000000004 # H28
+ 0.8699999999999999 0.9000000000000000 0.2619999999999997 # H29
+ 0.8300000000000000 0.9510000000000000 0.1430000000000002 # H30
+ 0.9629999999999997 0.5640000000000001 0.2859999999999996 # H31
+ 1.0680000000000001 0.6039999999999999 0.2859999999999996 # H32
+ 1.0810000000000000 0.5640000000000001 0.2140000000000000 # H33
+ 0.9079999999999998 0.6550000000000000 0.2859999999999996 # H34
+ 0.9220000000000000 0.6979999999999998 0.1430000000000002 # H35
+ 0.8960000000000002 0.6699999999999999 0.3810000000000000 # H36
+ 0.0000000000000000 0.1800000000000000 -0.2860000000000004 # H37
+ -0.0920000000000001 0.1400000000000000 -0.2860000000000004 # H38
+ -0.1109999999999998 0.1800000000000000 -0.1430000000000002 # H39
+ 0.0369999999999998 0.0630000000000001 -0.2860000000000004 # H40
+ 0.1300000000000000 0.0999999999999999 -0.2619999999999997 # H41
+ 0.1700000000000000 0.0490000000000000 -0.1430000000000002 # H42
+ 0.0370000000000003 0.4360000000000000 -0.2859999999999996 # H43
+ -0.0680000000000002 0.3959999999999999 -0.2859999999999996 # H44
+ -0.0810000000000001 0.4360000000000000 -0.2140000000000000 # H45
+ 0.0920000000000001 0.3450000000000000 -0.2859999999999996 # H46
+ 0.0779999999999999 0.3019999999999999 -0.1430000000000002 # H47
+ 0.1040000000000002 0.3300000000000002 0.6189999999999999 # H48
+ 0.5000000000000002 0.3200000000000000 0.2140000000000000 # H49
+ 0.4080000000000001 0.3600000000000000 0.2140000000000000 # H50
+ 0.3889999999999998 0.3200000000000000 0.3570000000000002 # H51
+ 0.5369999999999999 0.4370000000000000 0.2140000000000000 # H52
+ 0.6300000000000002 0.3999999999999999 0.2379999999999999 # H53
+ 0.6700000000000002 0.4510000000000000 0.3570000000000002 # H54
+ 0.5369999999999999 0.0640000000000000 0.2140000000000000 # H55
+ 0.4320000000000001 0.1039999999999999 0.2140000000000000 # H56
+ 0.4190000000000000 0.0640000000000000 0.2860000000000004 # H57
+ 0.5919999999999997 0.1550000000000001 0.2140000000000000 # H58
+ 0.5779999999999996 0.1980000000000001 0.3570000000000002 # H59
+ 0.6039999999999999 0.1699999999999999 0.1190000000000003 # H60
+ 0.5000000000000002 0.6799999999999999 0.7859999999999999 # H61
+ 0.5919999999999997 0.6400000000000000 0.7859999999999999 # H62
+ 0.6110000000000000 0.6799999999999999 0.6430000000000000 # H63
+ 0.4629999999999999 0.5629999999999998 0.7859999999999999 # H64
+ 0.3700000000000002 0.6000000000000000 0.7620000000000000 # H65
+ 0.3300000000000002 0.5490000000000000 0.6430000000000000 # H66
+ 0.4629999999999999 0.9360000000000001 0.7859999999999999 # H67
+ 0.5679999999999999 0.8960000000000000 0.7859999999999999 # H68
+ 0.5809999999999998 0.9360000000000001 0.7139999999999997 # H69
+ 0.4080000000000001 0.8450000000000001 0.7859999999999999 # H70
+ 0.4219999999999998 0.8020000000000000 0.6430000000000000 # H71
+ 0.3960000000000000 0.8299999999999998 0.8809999999999998 # H72
+ 0.5000000000000002 0.6799999999999999 0.2140000000000000 # H73
+ 0.5919999999999997 0.6400000000000000 0.2140000000000000 # H74
+ 0.6110000000000000 0.6799999999999999 0.3570000000000002 # H75
+ 0.4629999999999999 0.5629999999999998 0.2140000000000000 # H76
+ 0.3700000000000002 0.6000000000000000 0.2379999999999999 # H77
+ 0.3300000000000002 0.5490000000000000 0.3570000000000002 # H78
+ 0.4629999999999999 0.9360000000000001 0.2140000000000000 # H79
+ 0.5679999999999999 0.8960000000000000 0.2140000000000000 # H80
+ 0.5809999999999998 0.9360000000000001 0.2860000000000004 # H81
+ 0.4080000000000001 0.8450000000000001 0.2140000000000000 # H82
+ 0.4219999999999998 0.8020000000000000 0.3570000000000002 # H83
+ 0.3960000000000000 0.8299999999999998 0.1190000000000003 # H84
+ 0.5000000000000002 0.3200000000000000 0.7859999999999999 # H85
+ 0.4080000000000001 0.3600000000000000 0.7859999999999999 # H86
+ 0.3889999999999998 0.3200000000000000 0.6430000000000000 # H87
+ 0.5369999999999999 0.4370000000000000 0.7859999999999999 # H88
+ 0.6300000000000002 0.3999999999999999 0.7620000000000000 # H89
+ 0.6700000000000002 0.4510000000000000 0.6430000000000000 # H90
+ 0.5369999999999999 0.0640000000000000 0.7859999999999999 # H91
+ 0.4320000000000001 0.1039999999999999 0.7859999999999999 # H92
+ 0.4190000000000000 0.0640000000000000 0.7139999999999997 # H93
+ 0.5919999999999997 0.1550000000000001 0.7859999999999999 # H94
+ 0.5779999999999996 0.1980000000000001 0.6430000000000000 # H95
+ 0.6039999999999999 0.1699999999999999 0.8809999999999998 # H96
diff --git a/test/data/orthorhombic/POSCAR-058-2 b/test/data/orthorhombic/POSCAR-058-2
new file mode 100644
index 0000000..b8582ba
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-058-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 4.8729977070499482 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.3319979616130500 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.9629986057847320
+ 2 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cr1
+ 0.5000000000000004 0.4999999999999999 0.5000000000000009 # Cr2
+ 0.3499000000000003 0.2421000000000005 0.0000000000000000 # O1
+ 0.6501000000000007 0.7578999999999995 0.0000000000000000 # O2
+ 0.8498999999999998 0.2578999999999996 0.5000000000000009 # O3
+ 0.1501000000000002 0.7420999999999992 0.5000000000000009 # O4
+ 0.4562000000000000 0.0401000000000002 0.0000000000000000 # H1
+ 0.5438000000000000 0.9598999999999998 0.0000000000000000 # H2
+ 0.9562000000000004 0.4598999999999998 0.5000000000000009 # H3
+ 0.0438000000000005 0.5401000000000001 0.5000000000000009 # H4
diff --git a/test/data/orthorhombic/POSCAR-058-3 b/test/data/orthorhombic/POSCAR-058-3
new file mode 100644
index 0000000..536e2f9
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-058-3
@@ -0,0 +1,20 @@
+POSCAR generated by cell class
+ 1.00000000000000
+ 4.0215465742408556 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8912820645002619 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.5724917259521778
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.3196866917909955 0.2832479410964548 0.0000000000000000
+ 0.6803133082090044 0.7167520589035382 0.0000000000000000
+ 0.1803133082090045 0.7832479410964618 0.5000000000000000
+ 0.8196866917909956 0.2167520589035381 0.5000000000000000
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/orthorhombic/POSCAR-059 b/test/data/orthorhombic/POSCAR-059
new file mode 100644
index 0000000..106dabb
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-059
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 11.5099945840642164 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.3689979442030040 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.5629983234596674
+ 4 10
+Direct
+ 0.1486999999999997 0.1085999999999996 0.0000000000000000 # V1
+ 0.3513000000000000 0.8913999999999992 0.5000000000000001 # V2
+ 0.6486999999999999 0.8913999999999992 0.5000000000000001 # V3
+ 0.8512999999999997 0.1085999999999996 0.0000000000000000 # V4
+ 0.1460000000000001 0.4712999999999998 0.0000000000000000 # O1
+ 0.1808999999999999 0.0025999999999996 0.5000000000000001 # O2
+ 0.0000000000000000 0.9969999999999992 0.0000000000000000 # O3
+ 0.3540000000000001 0.5287000000000002 0.5000000000000001 # O4
+ 0.3190999999999999 0.9973999999999993 0.0000000000000000 # O5
+ 0.4999999999999997 0.0029999999999995 0.5000000000000001 # O6
+ 0.6459999999999997 0.5287000000000002 0.5000000000000001 # O7
+ 0.6808999999999999 0.9973999999999993 0.0000000000000000 # O8
+ 0.8539999999999999 0.4712999999999998 0.0000000000000000 # O9
+ 0.8190999999999997 0.0025999999999996 0.5000000000000001 # O10
diff --git a/test/data/orthorhombic/POSCAR-059-2 b/test/data/orthorhombic/POSCAR-059-2
new file mode 100644
index 0000000..8a0ba2d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-059-2
@@ -0,0 +1,13 @@
+$cell vectors
+1.0
+ 4.6449978143334745 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 2.8649986518978281 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.0449980966585333
+ 2 4
+Direct
+ 0.2499999999999994 0.2499999999999991 0.1507999999999997 # Ru1
+ 0.7499999999999993 0.7499999999999991 0.8492000000000003 # Ru2
+ 0.0590000000000003 0.2499999999999991 0.6389999999999998 # B1
+ 0.9409999999999995 0.7499999999999991 0.3610000000000002 # B2
+ 0.4409999999999996 0.2499999999999991 0.6389999999999998 # B3
+ 0.5589999999999991 0.7499999999999991 0.3610000000000002 # B4
diff --git a/test/data/orthorhombic/POSCAR-060 b/test/data/orthorhombic/POSCAR-060
new file mode 100644
index 0000000..7ed5b5b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-060
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 16.1519923998093127 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.2489970595844717 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3069970322930500
+ 4 8 24 12
+Direct
+ 0.5000000000000001 0.1889000000000001 0.2500000000000002 # K1
+ 0.0000000000000000 0.6888999999999997 0.2500000000000002 # K2
+ 0.0000000000000000 0.3111000000000003 0.7499999999999997 # K3
+ 0.5000000000000001 0.8110999999999997 0.7499999999999997 # K4
+ 0.1516000000000001 0.1882999999999999 0.2124999999999996 # Se1
+ 0.6515999999999998 0.6883000000000002 0.2875000000000000 # Se2
+ 0.6515999999999998 0.3117000000000004 0.7874999999999995 # Se3
+ 0.3484000000000002 0.6883000000000002 0.2124999999999996 # Se4
+ 0.8483999999999999 0.1882999999999999 0.2875000000000000 # Se5
+ 0.1516000000000001 0.8117000000000000 0.7125000000000000 # Se6
+ 0.8483999999999999 0.8117000000000000 0.7874999999999995 # Se7
+ 0.3484000000000002 0.3117000000000004 0.7125000000000000 # Se8
+ 0.1113000000000000 0.3880999999999997 0.0710999999999998 # O1
+ 0.0669999999999999 0.1118999999999998 0.3581000000000000 # O2
+ 0.2070000000000000 0.3235000000000004 0.4067000000000001 # O3
+ 0.6113000000000000 0.8881000000000001 0.4288999999999998 # O4
+ 0.5670000000000002 0.6119000000000002 0.1419000000000004 # O5
+ 0.7070000000000002 0.8235000000000000 0.0933000000000003 # O6
+ 0.6113000000000000 0.1118999999999998 0.9289000000000002 # O7
+ 0.5670000000000002 0.3880999999999997 0.6418999999999999 # O8
+ 0.7070000000000002 0.1765000000000000 0.5932999999999999 # O9
+ 0.3887000000000002 0.8881000000000001 0.0710999999999998 # O10
+ 0.4330000000000000 0.6119000000000002 0.3581000000000000 # O11
+ 0.2929999999999999 0.8235000000000000 0.4067000000000001 # O12
+ 0.8887000000000004 0.3880999999999997 0.4288999999999998 # O13
+ 0.9330000000000002 0.1118999999999998 0.1419000000000004 # O14
+ 0.7930000000000000 0.3235000000000004 0.0933000000000003 # O15
+ 0.1113000000000000 0.6119000000000002 0.5711000000000002 # O16
+ 0.0669999999999999 0.8881000000000001 0.8580999999999994 # O17
+ 0.2070000000000000 0.6765000000000004 0.9067000000000005 # O18
+ 0.8887000000000004 0.6119000000000002 0.9289000000000002 # O19
+ 0.9330000000000002 0.8881000000000001 0.6418999999999999 # O20
+ 0.7930000000000000 0.6765000000000004 0.5932999999999999 # O21
+ 0.3887000000000002 0.1118999999999998 0.5711000000000002 # O22
+ 0.4330000000000000 0.3880999999999997 0.8580999999999994 # O23
+ 0.2929999999999999 0.1765000000000000 0.9067000000000005 # O24
+ 0.1723000000000000 0.4388000000000001 0.4667000000000004 # H1
+ 0.0000000000000000 0.1292000000000003 0.2500000000000002 # H2
+ 0.5000000000000001 0.3708000000000000 0.7499999999999997 # H3
+ 0.6723000000000002 0.9388000000000006 0.0333000000000000 # H4
+ 0.5000000000000001 0.6291999999999999 0.2500000000000002 # H5
+ 0.6723000000000002 0.0612000000000003 0.5332999999999997 # H6
+ 0.3277000000000000 0.9388000000000006 0.4667000000000004 # H7
+ 0.8277000000000002 0.4388000000000001 0.0333000000000000 # H8
+ 0.1723000000000000 0.5611999999999999 0.9667000000000000 # H9
+ 0.0000000000000000 0.8708000000000006 0.7499999999999997 # H10
+ 0.8277000000000002 0.5611999999999999 0.5332999999999997 # H11
+ 0.3277000000000000 0.0612000000000003 0.9667000000000000 # H12
diff --git a/test/data/orthorhombic/POSCAR-060-2 b/test/data/orthorhombic/POSCAR-060-2
new file mode 100644
index 0000000..dfbb48d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-060-2
@@ -0,0 +1,83 @@
+$cell vectors
+1.0
+ 9.5179955213834209 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.7489954126882719 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.0309962210790342
+ 12 8 44 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Fe1
+ 0.0483000000000000 0.1137000000000001 0.6369000000000006 # Fe2
+ 0.9517000000000002 0.8863000000000000 0.3631000000000001 # Fe3
+ 0.5000000000000003 0.0000000000000000 0.5000000000000003 # Fe4
+ 0.4517000000000002 0.8863000000000000 0.1369000000000002 # Fe5
+ 0.5483000000000005 0.1137000000000001 0.8631000000000004 # Fe6
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Fe7
+ 0.0483000000000000 0.3863000000000000 0.3631000000000001 # Fe8
+ 0.9517000000000002 0.6137000000000001 0.6369000000000006 # Fe9
+ 0.5000000000000003 0.5000000000000000 0.5000000000000003 # Fe10
+ 0.4517000000000002 0.6137000000000001 0.8631000000000004 # Fe11
+ 0.5483000000000005 0.3863000000000000 0.1369000000000002 # Fe12
+ 0.2092000000000003 0.1057000000000000 0.2859000000000001 # P1
+ 0.7908000000000003 0.8942999999999999 0.7141000000000000 # P2
+ 0.2907999999999999 0.8942999999999999 0.7859000000000005 # P3
+ 0.7092000000000002 0.1057000000000000 0.2141000000000003 # P4
+ 0.2092000000000003 0.3943000000000001 0.7141000000000000 # P5
+ 0.7908000000000003 0.6057000000000000 0.2859000000000001 # P6
+ 0.2907999999999999 0.6057000000000000 0.2141000000000003 # P7
+ 0.7092000000000002 0.3943000000000001 0.7859000000000005 # P8
+ 0.2100000000000000 0.2596000000000002 0.3318000000000001 # O1
+ 0.1124000000000002 0.0296000000000003 0.4143000000000001 # O2
+ 0.3596000000000000 0.0452999999999998 0.2984999999999998 # O3
+ 0.1580999999999999 0.0879000000000002 0.1091000000000002 # O4
+ 0.9480000000000000 0.2500000000000000 0.5000000000000003 # O5
+ 0.9710000000000003 0.3447000000000002 0.1502999999999999 # O6
+ 0.7900000000000001 0.7404000000000004 0.6681999999999999 # O7
+ 0.8876000000000006 0.9704000000000003 0.5856999999999999 # O8
+ 0.6404000000000006 0.9547000000000003 0.7015000000000002 # O9
+ 0.8419000000000002 0.9121000000000004 0.8909000000000005 # O10
+ 0.0520000000000001 0.7500000000000000 0.5000000000000003 # O11
+ 0.0289999999999999 0.6553000000000004 0.8497000000000001 # O12
+ 0.2900000000000003 0.7404000000000004 0.8318000000000005 # O13
+ 0.3876000000000002 0.9704000000000003 0.9143000000000004 # O14
+ 0.1404000000000003 0.9547000000000003 0.7985000000000002 # O15
+ 0.3419000000000004 0.9121000000000004 0.6091000000000000 # O16
+ 0.5520000000000005 0.7500000000000000 0.0000000000000000 # O17
+ 0.5290000000000002 0.6553000000000004 0.6503000000000001 # O18
+ 0.7100000000000004 0.2596000000000002 0.1682000000000002 # O19
+ 0.6124000000000005 0.0296000000000003 0.0857000000000002 # O20
+ 0.8596000000000003 0.0452999999999998 0.2014999999999999 # O21
+ 0.6581000000000004 0.0879000000000002 0.3909000000000001 # O22
+ 0.4480000000000002 0.2500000000000000 0.0000000000000000 # O23
+ 0.4710000000000005 0.3447000000000002 0.3496999999999998 # O24
+ 0.2100000000000000 0.2404000000000004 0.6681999999999999 # O25
+ 0.1124000000000002 0.4704000000000003 0.5857000000000004 # O26
+ 0.3596000000000000 0.4547000000000003 0.7015000000000002 # O27
+ 0.1580999999999999 0.4121000000000003 0.8909000000000005 # O28
+ 0.9710000000000003 0.1553000000000003 0.8497000000000001 # O29
+ 0.7900000000000001 0.7596000000000002 0.3318000000000001 # O30
+ 0.8876000000000006 0.5296000000000002 0.4143000000000001 # O31
+ 0.6404000000000002 0.5453000000000005 0.2984999999999998 # O32
+ 0.8419000000000002 0.5879000000000003 0.1091000000000002 # O33
+ 0.0289999999999999 0.8447000000000003 0.1502999999999999 # O34
+ 0.2900000000000003 0.7596000000000002 0.1682000000000002 # O35
+ 0.3876000000000002 0.5296000000000002 0.0857000000000002 # O36
+ 0.1404000000000003 0.5453000000000005 0.2014999999999999 # O37
+ 0.3419000000000004 0.5879000000000003 0.3909000000000001 # O38
+ 0.5290000000000002 0.8447000000000003 0.3496999999999998 # O39
+ 0.7100000000000004 0.2404000000000004 0.8318000000000005 # O40
+ 0.6124000000000005 0.4704000000000003 0.9143000000000004 # O41
+ 0.8596000000000003 0.4547000000000003 0.7985000000000002 # O42
+ 0.6581000000000004 0.4121000000000003 0.6091000000000000 # O43
+ 0.4710000000000005 0.1553000000000003 0.6503000000000001 # O44
+ 0.8370000000000003 0.2500000000000000 0.5000000000000003 # H1
+ 0.8690000000000000 0.3109999999999999 0.1580000000000001 # H2
+ 0.1630000000000004 0.7500000000000000 0.5000000000000003 # H3
+ 0.1310000000000001 0.6890000000000006 0.8420000000000005 # H4
+ 0.6630000000000001 0.7500000000000000 0.0000000000000000 # H5
+ 0.6310000000000006 0.6890000000000006 0.6580000000000005 # H6
+ 0.3370000000000000 0.2500000000000000 0.0000000000000000 # H7
+ 0.3690000000000002 0.3109999999999999 0.3420000000000002 # H8
+ 0.8690000000000000 0.1890000000000001 0.8420000000000005 # H9
+ 0.1310000000000001 0.8110000000000001 0.1580000000000001 # H10
+ 0.6310000000000006 0.8110000000000001 0.3420000000000002 # H11
+ 0.3690000000000002 0.1890000000000001 0.6580000000000005 # H12
diff --git a/test/data/orthorhombic/POSCAR-060-3 b/test/data/orthorhombic/POSCAR-060-3
new file mode 100644
index 0000000..de0d0f0
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-060-3
@@ -0,0 +1,32 @@
+POSCAR generated by cell class
+ 1.00000000000000
+ 5.3672739847803425 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.5883789814747588 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8726073153830897
+ 4 8
+Direct
+ 0.0000000000000000 -0.0000398395736797 0.2500000000000000
+ 0.5000000000000000 0.5000398395736797 0.7500000000000000
+ 0.0000000000000000 0.0000398395736798 0.7500000000000000
+ 0.5000000000000000 0.4999601604263131 0.2500000000000000
+ 0.3648332981900670 0.3908864276666857 0.4999790735520644
+ 0.1351667018099331 0.1091135723333142 -0.0000209264479496
+ 0.6351667018099542 0.3908864276666857 0.0000209264479427
+ 0.8648332981900457 0.1091135723333142 0.5000209264479354
+ 0.6351667018099542 0.6091135723333140 0.5000209264479354
+ 0.8648332981900457 0.8908864276666859 0.0000209264479427
+ 0.3648332981900670 0.6091135723333140 -0.0000209264479496
+ 0.1351667018099331 0.8908864276666859 0.4999790735520644
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/orthorhombic/POSCAR-061 b/test/data/orthorhombic/POSCAR-061
new file mode 100644
index 0000000..422ab09
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-061
@@ -0,0 +1,127 @@
+$cell vectors
+1.0
+ 12.1989942598609371 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.0469938608415159 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.5369950419013616
+ 24 72 8 16
+Direct
+ 0.9116000000000000 0.1944999999999999 0.1874999999999999 # P1
+ 0.0480999999999999 0.0148000000000000 0.2450999999999997 # P2
+ 0.0927000000000001 0.3408999999999999 0.2027999999999999 # P3
+ 0.0884000000000001 0.8055000000000002 0.8124999999999999 # P4
+ 0.9518999999999997 0.9851999999999997 0.7548999999999997 # P5
+ 0.9072999999999998 0.6590999999999998 0.7971999999999995 # P6
+ 0.5883999999999999 0.8054999999999998 0.6874999999999998 # P7
+ 0.4519000000000000 0.9851999999999997 0.7450999999999998 # P8
+ 0.4073000000000001 0.6590999999999998 0.7028000000000000 # P9
+ 0.4115999999999997 0.1944999999999999 0.3125000000000001 # P10
+ 0.5481000000000000 0.0148000000000000 0.2548999999999997 # P11
+ 0.5927000000000000 0.3408999999999999 0.2972000000000000 # P12
+ 0.4116000000000001 0.3054999999999998 0.8124999999999999 # P13
+ 0.5481000000000000 0.4852000000000000 0.7548999999999997 # P14
+ 0.5927000000000000 0.1591000000000002 0.7971999999999999 # P15
+ 0.5883999999999999 0.6944999999999998 0.1874999999999999 # P16
+ 0.4519000000000000 0.5148000000000000 0.2450999999999997 # P17
+ 0.4073000000000001 0.8409000000000000 0.2027999999999999 # P18
+ 0.0884000000000001 0.6944999999999998 0.3125000000000001 # P19
+ 0.9518999999999997 0.5148000000000000 0.2548999999999997 # P20
+ 0.9072999999999998 0.8409000000000000 0.2972000000000000 # P21
+ 0.9116000000000000 0.3054999999999998 0.6874999999999998 # P22
+ 0.0481000000000003 0.4852000000000000 0.7450999999999998 # P23
+ 0.0927000000000001 0.1591000000000002 0.7028000000000000 # P24
+ 0.3265999999999999 0.1844999999999999 0.4119999999999999 # O1
+ 0.3779999999999999 0.1980999999999998 0.1778000000000001 # O2
+ 0.5008999999999999 0.1071999999999998 0.3362000000000001 # O3
+ 0.4797999999999999 0.2948000000000000 0.3487000000000000 # O4
+ 0.3898999999999997 0.4492999999999998 0.1562999999999999 # O5
+ 0.1054000000000000 0.0546000000000000 0.3585999999999998 # O6
+ 0.0620999999999999 0.4596999999999999 0.2095999999999999 # O7
+ 0.1190000000000000 0.3027000000000001 0.3310999999999999 # O8
+ 0.1748999999999999 0.3292000000000000 0.1006999999999999 # O9
+ 0.6733999999999998 0.8155000000000001 0.5880000000000001 # O10
+ 0.6220000000000002 0.8019000000000002 0.8222000000000000 # O11
+ 0.4991000000000001 0.8927999999999998 0.6637999999999998 # O12
+ 0.5202000000000002 0.7051999999999998 0.6513000000000000 # O13
+ 0.6100999999999999 0.5507000000000000 0.8437000000000001 # O14
+ 0.8946000000000001 0.9453999999999997 0.6413999999999996 # O15
+ 0.9378999999999997 0.5402999999999999 0.7903999999999995 # O16
+ 0.8809999999999997 0.6972999999999998 0.6689000000000001 # O17
+ 0.8250999999999998 0.6708000000000001 0.8992999999999995 # O18
+ 0.1733999999999999 0.8155000000000001 0.9119999999999994 # O19
+ 0.1219999999999999 0.8018999999999997 0.6777999999999996 # O20
+ 0.9990999999999999 0.8928000000000003 0.8362000000000002 # O21
+ 0.0202000000000000 0.7052000000000002 0.8487000000000000 # O22
+ 0.1101000000000000 0.5507000000000000 0.6562999999999999 # O23
+ 0.3946000000000002 0.9454000000000001 0.8585999999999997 # O24
+ 0.4379000000000000 0.5402999999999999 0.7095999999999999 # O25
+ 0.3810000000000002 0.6973000000000004 0.8310999999999999 # O26
+ 0.3250999999999999 0.6708000000000001 0.6006999999999999 # O27
+ 0.8265999999999996 0.1844999999999999 0.0880000000000001 # O28
+ 0.8779999999999998 0.1980999999999998 0.3221999999999999 # O29
+ 0.0009000000000001 0.1071999999999998 0.1637999999999999 # O30
+ 0.9798000000000000 0.2948000000000000 0.1512999999999999 # O31
+ 0.8899000000000000 0.4492999999999998 0.3437000000000001 # O32
+ 0.6053999999999998 0.0546000000000000 0.1414000000000002 # O33
+ 0.5621000000000000 0.4596999999999999 0.2904000000000001 # O34
+ 0.6189999999999999 0.3027000000000001 0.1689000000000001 # O35
+ 0.6749000000000002 0.3292000000000000 0.3993000000000001 # O36
+ 0.8265999999999996 0.3155000000000001 0.5880000000000001 # O37
+ 0.8779999999999998 0.3018999999999998 0.8222000000000000 # O38
+ 0.0009000000000001 0.3928000000000003 0.6637999999999998 # O39
+ 0.9798000000000000 0.2052000000000001 0.6513000000000000 # O40
+ 0.8898999999999996 0.0506999999999999 0.8436999999999996 # O41
+ 0.6053999999999998 0.4454000000000001 0.6413999999999996 # O42
+ 0.5621000000000000 0.0403000000000002 0.7903999999999995 # O43
+ 0.6189999999999999 0.1972999999999999 0.6689000000000001 # O44
+ 0.6749000000000002 0.1708000000000001 0.8992999999999995 # O45
+ 0.1733999999999999 0.6845000000000000 0.4119999999999999 # O46
+ 0.1219999999999999 0.6980999999999999 0.1778000000000001 # O47
+ 0.9990999999999999 0.6071999999999999 0.3362000000000001 # O48
+ 0.0202000000000000 0.7948000000000001 0.3487000000000000 # O49
+ 0.1101000000000000 0.9492999999999999 0.1562999999999999 # O50
+ 0.3945999999999998 0.5546000000000000 0.3585999999999998 # O51
+ 0.4379000000000000 0.9596999999999999 0.2095999999999999 # O52
+ 0.3809999999999998 0.8026999999999997 0.3310999999999999 # O53
+ 0.3250999999999999 0.8291999999999997 0.1006999999999999 # O54
+ 0.6733999999999998 0.6845000000000000 0.0880000000000001 # O55
+ 0.6220000000000002 0.6980999999999999 0.3221999999999999 # O56
+ 0.4991000000000001 0.6071999999999999 0.1637999999999999 # O57
+ 0.5202000000000002 0.7948000000000001 0.1512999999999999 # O58
+ 0.6100999999999999 0.9492999999999999 0.3437000000000001 # O59
+ 0.8946000000000001 0.5546000000000000 0.1414000000000002 # O60
+ 0.9378999999999997 0.9596999999999999 0.2904000000000001 # O61
+ 0.8809999999999997 0.8026999999999997 0.1689000000000001 # O62
+ 0.8250999999999998 0.8291999999999997 0.3993000000000001 # O63
+ 0.3265999999999999 0.3155000000000001 0.9120000000000000 # O64
+ 0.3779999999999999 0.3018999999999998 0.6778000000000001 # O65
+ 0.5008999999999999 0.3928000000000003 0.8362000000000002 # O66
+ 0.4797999999999999 0.2052000000000001 0.8487000000000000 # O67
+ 0.3898999999999997 0.0506999999999999 0.6562999999999999 # O68
+ 0.1054000000000000 0.4454000000000001 0.8585999999999997 # O69
+ 0.0620999999999999 0.0403000000000002 0.7095999999999999 # O70
+ 0.1190000000000000 0.1972999999999999 0.8310999999999999 # O71
+ 0.1748999999999999 0.1708000000000001 0.6006999999999999 # O72
+ 0.2576000000000001 0.4279000000000001 0.5055000000000001 # N1
+ 0.7423999999999999 0.5720999999999999 0.4944999999999999 # N2
+ 0.2424000000000001 0.5720999999999999 0.0055000000000001 # N3
+ 0.7575999999999999 0.4279000000000001 0.9944999999999999 # N4
+ 0.7575999999999999 0.0720999999999999 0.4944999999999999 # N5
+ 0.2424000000000001 0.9278999999999998 0.5055000000000001 # N6
+ 0.7423999999999999 0.9278999999999998 0.9944999999999999 # N7
+ 0.2576000000000001 0.0720999999999999 0.0055000000000001 # N8
+ 0.1649000000000000 0.1800000000000000 0.4157000000000001 # Li1
+ 0.3346000000000001 0.3240999999999997 0.0944999999999998 # Li2
+ 0.8351000000000000 0.8200000000000001 0.5843000000000000 # Li3
+ 0.6653999999999999 0.6758999999999999 0.9054999999999994 # Li4
+ 0.3351000000000002 0.8200000000000001 0.9157000000000002 # Li5
+ 0.1654000000000001 0.6758999999999999 0.5944999999999998 # Li6
+ 0.6649000000000003 0.1800000000000000 0.0843000000000000 # Li7
+ 0.8346000000000000 0.3241000000000002 0.4055000000000001 # Li8
+ 0.6649000000000003 0.3200000000000000 0.5843000000000000 # Li9
+ 0.8346000000000000 0.1758999999999999 0.9054999999999994 # Li10
+ 0.3350999999999999 0.6799999999999996 0.4157000000000001 # Li11
+ 0.1654000000000001 0.8240999999999997 0.0944999999999998 # Li12
+ 0.8351000000000000 0.6799999999999996 0.0843000000000000 # Li13
+ 0.6653999999999999 0.8240999999999997 0.4055000000000001 # Li14
+ 0.1649000000000000 0.3200000000000000 0.9157000000000002 # Li15
+ 0.3346000000000001 0.1758999999999999 0.5944999999999998 # Li16
diff --git a/test/data/orthorhombic/POSCAR-061-2 b/test/data/orthorhombic/POSCAR-061-2
new file mode 100644
index 0000000..fddc0ff
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-061-2
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 5.9929971800431678 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.8189963208338913 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.0109962304898694
+ 8 8
+Direct
+ 0.5460000000000004 0.6310000000000000 0.6500000000000001 # Cd1
+ 0.4539999999999996 0.3689999999999997 0.3499999999999998 # Cd2
+ 0.9539999999999998 0.3689999999999997 0.1499999999999998 # Cd3
+ 0.0460000000000000 0.6310000000000000 0.8500000000000003 # Cd4
+ 0.0460000000000000 0.8689999999999998 0.3499999999999998 # Cd5
+ 0.9539999999999998 0.1310000000000002 0.6500000000000001 # Cd6
+ 0.4539999999999996 0.1310000000000002 0.8500000000000003 # Cd7
+ 0.5460000000000004 0.8689999999999998 0.1499999999999998 # Cd8
+ 0.1409999999999998 0.0570000000000000 0.0980000000000004 # As1
+ 0.8590000000000001 0.9429999999999999 0.9020000000000002 # As2
+ 0.3589999999999998 0.9429999999999999 0.5980000000000001 # As3
+ 0.6410000000000002 0.0570000000000000 0.4019999999999999 # As4
+ 0.6410000000000002 0.4429999999999999 0.9020000000000002 # As5
+ 0.3589999999999998 0.5569999999999998 0.0979999999999998 # As6
+ 0.8590000000000001 0.5569999999999998 0.4019999999999999 # As7
+ 0.1409999999999998 0.4429999999999999 0.5980000000000001 # As8
diff --git a/test/data/orthorhombic/POSCAR-062 b/test/data/orthorhombic/POSCAR-062
new file mode 100644
index 0000000..075f9b9
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-062
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 7.4899964756421369 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.8979967542028611 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.9419948513319412
+ 4 4 12
+Direct
+ 0.2552999999999999 0.2499999999999998 0.5865000000000002 # Ba1
+ 0.2447000000000002 0.7500000000000002 0.0865000000000002 # Ba2
+ 0.7446999999999995 0.7500000000000002 0.4134999999999999 # Ba3
+ 0.7552999999999999 0.2500000000000006 0.9134999999999998 # Ba4
+ 0.5196999999999996 0.2499999999999998 0.2440999999999998 # Te1
+ 1.0196999999999996 0.2499999999999998 0.2559000000000002 # Te2
+ -0.0197000000000003 0.7500000000000002 0.7441000000000003 # Te3
+ 0.4802999999999998 0.7500000000000002 0.7558999999999997 # Te4
+ 0.3705999999999997 0.2499999999999998 0.0548000000000002 # S1
+ 0.3779999999999999 0.5143000000000004 0.3407999999999999 # S2
+ 0.1220000000000001 0.4857000000000003 0.8407999999999998 # S3
+ 0.8780000000000000 0.5143000000000004 0.1592000000000001 # S4
+ 0.8705999999999997 0.2499999999999998 0.4451999999999999 # S5
+ 0.8780000000000000 -0.0143000000000001 0.1592000000000001 # S6
+ 0.1294000000000004 0.7500000000000002 0.5548000000000002 # S7
+ 0.1220000000000001 1.0143000000000002 0.8407999999999998 # S8
+ 0.6293999999999997 0.7500000000000002 0.9451999999999999 # S9
+ 0.6220000000000002 1.0143000000000002 0.6592000000000001 # S10
+ 0.3779999999999999 -0.0143000000000001 0.3407999999999999 # S11
+ 0.6220000000000002 0.4857000000000003 0.6592000000000001 # S12
diff --git a/test/data/orthorhombic/POSCAR-062-2 b/test/data/orthorhombic/POSCAR-062-2
new file mode 100644
index 0000000..ea4cbb0
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-062-2
@@ -0,0 +1,83 @@
+$cell vectors
+1.0
+ 9.4949955322058841 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1499952240010227 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.3749955886708989
+ 4 16 48 8
+Direct
+ 0.5135999999999998 0.3057999999999998 0.2499999999999998 # Cd1
+ 0.4864000000000001 0.6942000000000002 0.7499999999999994 # Cd2
+ 0.0135999999999998 0.1941999999999998 0.2499999999999998 # Cd3
+ 0.9863999999999999 0.8058000000000000 0.7499999999999994 # Cd4
+ 0.2260000000000003 0.4870000000000002 0.2499999999999998 # P1
+ 0.2939999999999999 0.1100000000000001 0.4680000000000000 # P2
+ 0.3039999999999999 0.8980000000000004 0.2499999999999998 # P3
+ 0.7739999999999998 0.5130000000000002 0.7499999999999994 # P4
+ 0.7060000000000002 0.8899999999999999 0.5319999999999998 # P5
+ 0.6959999999999996 0.1020000000000000 0.7499999999999994 # P6
+ 0.7060000000000002 0.8900000000000002 0.9679999999999999 # P7
+ 0.2939999999999999 0.1100000000000001 0.0320000000000002 # P8
+ 0.7259999999999996 0.0130000000000001 0.2499999999999998 # P9
+ 0.7939999999999999 0.3900000000000001 0.0320000000000002 # P10
+ 0.8040000000000000 0.6020000000000003 0.2499999999999998 # P11
+ 0.2740000000000003 0.9870000000000000 0.7499999999999994 # P12
+ 0.2060000000000002 0.6100000000000004 0.9679999999999999 # P13
+ 0.1960000000000001 0.3980000000000002 0.7499999999999994 # P14
+ 0.2060000000000002 0.6100000000000004 0.5319999999999998 # P15
+ 0.7939999999999999 0.3900000000000001 0.4680000000000000 # P16
+ 0.1429999999999998 0.3540000000000000 0.2499999999999998 # O1
+ 0.3910000000000000 0.4940000000000001 0.2499999999999998 # O2
+ 0.1659999999999999 0.5760000000000002 0.3750000000000001 # O3
+ 0.8499999999999996 0.5059999999999999 0.3820000000000000 # O4
+ 0.1459999999999998 0.1210000000000003 0.4490000000000001 # O5
+ 0.3850000000000001 0.2290000000000000 0.4389999999999998 # O6
+ 0.1550000000000002 0.8840000000000001 0.2499999999999998 # O7
+ 0.3920000000000002 0.7780000000000004 0.2499999999999998 # O8
+ 0.8569999999999998 0.6460000000000004 0.7499999999999994 # O9
+ 0.6090000000000001 0.5059999999999999 0.7499999999999994 # O10
+ 0.8339999999999997 0.4240000000000003 0.6249999999999998 # O11
+ 0.1499999999999999 0.4940000000000001 0.6179999999999999 # O12
+ 0.8539999999999998 0.8790000000000002 0.5509999999999997 # O13
+ 0.6149999999999999 0.7710000000000000 0.5609999999999996 # O14
+ 0.8449999999999999 0.1160000000000003 0.7499999999999994 # O15
+ 0.6079999999999999 0.2220000000000001 0.7499999999999994 # O16
+ 0.8339999999999997 0.4240000000000003 0.8749999999999996 # O17
+ 0.1499999999999999 0.4940000000000001 0.8819999999999996 # O18
+ 0.8539999999999998 0.8790000000000002 0.9489999999999997 # O19
+ 0.6149999999999999 0.7710000000000000 0.9390000000000001 # O20
+ 0.1659999999999999 0.5760000000000002 0.1250000000000002 # O21
+ 0.8499999999999996 0.5059999999999999 0.1179999999999998 # O22
+ 0.1459999999999998 0.1209999999999998 0.0510000000000001 # O23
+ 0.3850000000000001 0.2290000000000000 0.0609999999999999 # O24
+ 0.6429999999999998 0.1460000000000002 0.2499999999999998 # O25
+ 0.8910000000000000 0.0060000000000002 0.2499999999999998 # O26
+ 0.6659999999999999 0.9240000000000000 0.1250000000000002 # O27
+ 0.3500000000000001 0.9940000000000002 0.1179999999999998 # O28
+ 0.6459999999999997 0.3790000000000000 0.0510000000000001 # O29
+ 0.8849999999999996 0.2710000000000002 0.0609999999999999 # O30
+ 0.6549999999999997 0.6160000000000000 0.2499999999999998 # O31
+ 0.8919999999999996 0.7219999999999999 0.2499999999999998 # O32
+ 0.3570000000000003 0.8540000000000004 0.7499999999999994 # O33
+ 0.1090000000000000 0.9940000000000002 0.7499999999999994 # O34
+ 0.3340000000000001 0.0759999999999999 0.8749999999999996 # O35
+ 0.6499999999999999 0.0060000000000002 0.8819999999999996 # O36
+ 0.3540000000000003 0.6210000000000000 0.9489999999999997 # O37
+ 0.1149999999999999 0.7290000000000001 0.9390000000000001 # O38
+ 0.3449999999999998 0.3839999999999999 0.7499999999999994 # O39
+ 0.1079999999999998 0.2780000000000001 0.7499999999999994 # O40
+ 0.3340000000000001 0.0759999999999999 0.6249999999999998 # O41
+ 0.6499999999999999 0.0060000000000002 0.6179999999999999 # O42
+ 0.3540000000000003 0.6210000000000000 0.5509999999999997 # O43
+ 0.1149999999999999 0.7290000000000001 0.5609999999999996 # O44
+ 0.6659999999999999 0.9240000000000000 0.3750000000000001 # O45
+ 0.3500000000000001 0.9940000000000002 0.3820000000000000 # O46
+ 0.6459999999999997 0.3790000000000000 0.4490000000000001 # O47
+ 0.8849999999999996 0.2710000000000002 0.4389999999999998 # O48
+ 0.0080000000000003 0.8360000000000003 0.3860000000000000 # Li1
+ 0.9919999999999998 0.1640000000000003 0.6139999999999999 # Li2
+ 0.9919999999999998 0.1640000000000003 0.8859999999999996 # Li3
+ 0.0080000000000003 0.8360000000000003 0.1139999999999997 # Li4
+ 0.5079999999999997 0.6639999999999999 0.1139999999999997 # Li5
+ 0.4919999999999998 0.3360000000000000 0.8859999999999996 # Li6
+ 0.4919999999999998 0.3360000000000000 0.6139999999999999 # Li7
+ 0.5079999999999997 0.6639999999999999 0.3860000000000000 # Li8
diff --git a/test/data/orthorhombic/POSCAR-063 b/test/data/orthorhombic/POSCAR-063
new file mode 100644
index 0000000..adde284
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-063
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 9.2009956705451632 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.1589966313914593 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.7709954023363554
+ 12 20
+Direct
+ 0.0000000000000000 0.6251000000000000 0.2500000000000002 # Pu1
+ 0.2018000000000000 0.0000000000000000 0.0000000000000000 # Pu2
+ 0.5000000000000002 0.1251000000000002 0.2500000000000002 # Pu3
+ 0.7018000000000002 0.5000000000000003 0.0000000000000000 # Pu4
+ 0.0000000000000000 0.3749000000000002 0.7500000000000003 # Pu5
+ 0.7982000000000000 0.0000000000000000 0.0000000000000000 # Pu6
+ 0.5000000000000002 0.8748999999999999 0.7500000000000003 # Pu7
+ 0.2982000000000003 0.5000000000000003 0.0000000000000000 # Pu8
+ 0.7982000000000000 0.0000000000000000 0.5000000000000000 # Pu9
+ 0.2982000000000003 0.5000000000000003 0.5000000000000000 # Pu10
+ 0.2018000000000000 0.0000000000000000 0.5000000000000000 # Pu11
+ 0.7018000000000002 0.5000000000000003 0.5000000000000000 # Pu12
+ 0.0000000000000000 0.0254000000000002 0.2500000000000002 # Pd1
+ 0.0000000000000000 0.3147000000000001 0.4509999999999998 # Pd2
+ 0.2219000000000003 0.2862999999999998 0.2500000000000002 # Pd3
+ 0.5000000000000002 0.5253999999999999 0.2500000000000002 # Pd4
+ 0.5000000000000002 0.8147000000000004 0.4509999999999998 # Pd5
+ 0.7218999999999999 0.7863000000000002 0.2500000000000002 # Pd6
+ 0.5000000000000002 0.4746000000000002 0.7500000000000003 # Pd7
+ 0.5000000000000002 0.1853000000000004 0.5490000000000000 # Pd8
+ 0.2781000000000000 0.2136999999999998 0.7500000000000003 # Pd9
+ 0.0000000000000000 0.6852999999999999 0.9509999999999998 # Pd10
+ 0.5000000000000002 0.1853000000000004 0.9509999999999998 # Pd11
+ 0.0000000000000000 0.3147000000000001 0.0490000000000001 # Pd12
+ 0.5000000000000002 0.8147000000000004 0.0490000000000001 # Pd13
+ 0.2219000000000003 0.7137000000000002 0.7500000000000003 # Pd14
+ 0.7218999999999999 0.2136999999999998 0.7500000000000003 # Pd15
+ 0.7781000000000002 0.2862999999999998 0.2500000000000002 # Pd16
+ 0.2781000000000000 0.7863000000000002 0.2500000000000002 # Pd17
+ 0.0000000000000000 0.9746000000000006 0.7500000000000003 # Pd18
+ 0.0000000000000000 0.6852999999999999 0.5490000000000000 # Pd19
+ 0.7781000000000002 0.7137000000000002 0.7500000000000003 # Pd20
diff --git a/test/data/orthorhombic/POSCAR-063-2 b/test/data/orthorhombic/POSCAR-063-2
new file mode 100644
index 0000000..542d509
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-063-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 5.5689973795528749 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.7959939789474948 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.3199965556342361
+ 8 4 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Te1
+ 0.0000000000000000 0.5858000000000003 0.2500000000000001 # Te2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Te3
+ 0.5000000000000000 0.0857999999999998 0.2500000000000001 # Te4
+ 1.0000000000000000 0.4142000000000003 0.7500000000000000 # Te5
+ 0.5000000000000000 0.9142000000000006 0.7500000000000000 # Te6
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Te7
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Te8
+ 0.0000000000000000 0.2816000000000000 0.2500000000000001 # Ba1
+ 0.5000000000000000 0.7816000000000000 0.2500000000000001 # Ba2
+ 0.0000000000000000 0.7184000000000003 0.7500000000000000 # Ba3
+ 0.5000000000000000 0.2184000000000001 0.7500000000000000 # Ba4
+ 0.0000000000000000 0.9535000000000001 0.2500000000000001 # O1
+ 0.0000000000000000 0.7289000000000003 0.2500000000000001 # O2
+ 0.7350000000000004 0.6048999999999999 0.4563000000000000 # O3
+ 0.2350000000000005 0.1048999999999999 0.4563000000000000 # O4
+ 0.0000000000000000 0.0465000000000000 0.7500000000000000 # O5
+ 1.0000000000000000 0.2711000000000003 0.7500000000000000 # O6
+ 0.2650000000000005 0.3951000000000002 0.5437000000000000 # O7
+ 0.5000000000000000 0.5465000000000001 0.7500000000000000 # O8
+ 0.5000000000000000 0.7711000000000005 0.7500000000000000 # O9
+ 0.7650000000000005 0.8951000000000003 0.5437000000000000 # O10
+ 0.2650000000000005 0.3951000000000002 0.9563000000000001 # O11
+ 0.7650000000000005 0.8951000000000003 0.9563000000000001 # O12
+ 0.7350000000000004 0.6048999999999999 0.0437000000000000 # O13
+ 0.2349999999999996 0.1048999999999999 0.0437000000000000 # O14
+ 0.7350000000000004 0.3951000000000002 0.5437000000000000 # O15
+ 0.2350000000000005 0.8951000000000003 0.5437000000000000 # O16
+ 0.2650000000000005 0.6048999999999999 0.4563000000000000 # O17
+ 0.5000000000000000 0.4535000000000000 0.2500000000000001 # O18
+ 0.5000000000000000 0.2288999999999998 0.2500000000000001 # O19
+ 0.7650000000000005 0.1048999999999999 0.4563000000000000 # O20
+ 0.2650000000000005 0.6048999999999999 0.0437000000000000 # O21
+ 0.7650000000000005 0.1048999999999999 0.0437000000000000 # O22
+ 0.7350000000000004 0.3951000000000002 0.9563000000000001 # O23
+ 0.2350000000000005 0.8951000000000003 0.9563000000000001 # O24
diff --git a/test/data/orthorhombic/POSCAR-063-3 b/test/data/orthorhombic/POSCAR-063-3
new file mode 100644
index 0000000..656f619
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-063-3
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 8.8999958121782399 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7599972896793989 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.3299937276781932
+ 4 8 8 36
+Direct
+ 0.3229999999999999 0.0000000000000000 0.0000000000000000 # Ca1
+ 0.8229999999999998 0.5000000000000000 0.0000000000000000 # Ca2
+ 0.6770000000000000 0.0000000000000000 0.4999999999999998 # Ca3
+ 0.1770000000000001 0.5000000000000000 0.4999999999999998 # Ca4
+ 0.2499999999999997 0.2500000000000000 0.2499999999999999 # Al1
+ 0.7499999999999997 0.7500000000000000 0.2499999999999999 # Al2
+ 0.7500000000000003 0.7500000000000000 0.7500000000000002 # Al3
+ 0.2500000000000003 0.2500000000000000 0.7500000000000002 # Al4
+ 0.2500000000000003 0.7500000000000000 0.7500000000000002 # Al5
+ 0.7500000000000003 0.2500000000000000 0.7500000000000002 # Al6
+ 0.7499999999999997 0.2500000000000000 0.2499999999999999 # Al7
+ 0.2500000000000003 0.7500000000000000 0.2499999999999999 # Al8
+ 0.9799999999999996 0.0000000000000000 0.1150000000000000 # Si1
+ 0.4800000000000000 0.5000000000000000 0.1150000000000000 # Si2
+ 0.0200000000000001 0.0000000000000000 0.6150000000000003 # Si3
+ 0.5200000000000001 0.5000000000000000 0.6150000000000003 # Si4
+ 0.9799999999999996 0.0000000000000000 0.8850000000000001 # Si5
+ 0.4800000000000000 0.5000000000000000 0.8850000000000001 # Si6
+ 0.0200000000000001 0.0000000000000000 0.3850000000000003 # Si7
+ 0.5200000000000001 0.5000000000000000 0.3850000000000003 # Si8
+ 0.0270000000000003 0.0000000000000000 0.0000000000000000 # O1
+ 0.3950000000000002 0.2500000000000000 0.1360000000000000 # O2
+ 0.8949999999999996 0.2500000000000000 0.1360000000000000 # O3
+ 0.1350000000000002 0.0000000000000000 0.1919999999999999 # O4
+ 0.6350000000000001 0.0000000000000000 0.1919999999999999 # O5
+ 0.5270000000000001 0.5000000000000000 0.0000000000000000 # O6
+ 0.8949999999999996 0.7500000000000000 0.1360000000000000 # O7
+ 0.3950000000000002 0.7500000000000000 0.1360000000000000 # O8
+ 0.6350000000000001 0.5000000000000000 0.1919999999999999 # O9
+ 0.1350000000000002 0.5000000000000000 0.1919999999999999 # O10
+ 0.9729999999999998 0.0000000000000000 0.4999999999999998 # O11
+ 0.6049999999999996 0.7500000000000000 0.6359999999999997 # O12
+ 0.1050000000000003 0.7500000000000000 0.6359999999999997 # O13
+ 0.8649999999999998 0.0000000000000000 0.6919999999999997 # O14
+ 0.3649999999999998 0.0000000000000000 0.6919999999999997 # O15
+ 0.4729999999999996 0.5000000000000000 0.4999999999999998 # O16
+ 0.1050000000000003 0.2500000000000000 0.6359999999999997 # O17
+ 0.6049999999999996 0.2500000000000000 0.6359999999999997 # O18
+ 0.3649999999999998 0.5000000000000000 0.6919999999999997 # O19
+ 0.8649999999999998 0.5000000000000000 0.6919999999999997 # O20
+ 0.3950000000000002 0.7500000000000000 0.8639999999999999 # O21
+ 0.8950000000000001 0.7500000000000000 0.8639999999999999 # O22
+ 0.1350000000000002 0.0000000000000000 0.8079999999999997 # O23
+ 0.6350000000000001 0.0000000000000000 0.8079999999999997 # O24
+ 0.8950000000000001 0.2500000000000000 0.8639999999999999 # O25
+ 0.3950000000000002 0.2500000000000000 0.8639999999999999 # O26
+ 0.6350000000000001 0.5000000000000000 0.8079999999999997 # O27
+ 0.1350000000000002 0.5000000000000000 0.8079999999999997 # O28
+ 0.6049999999999996 0.2500000000000000 0.3640000000000001 # O29
+ 0.1049999999999998 0.2500000000000000 0.3640000000000001 # O30
+ 0.8649999999999998 0.0000000000000000 0.3079999999999999 # O31
+ 0.3649999999999998 0.0000000000000000 0.3079999999999999 # O32
+ 0.1049999999999998 0.7500000000000000 0.3640000000000001 # O33
+ 0.6049999999999996 0.7500000000000000 0.3640000000000001 # O34
+ 0.3649999999999998 0.5000000000000000 0.3079999999999999 # O35
+ 0.8649999999999998 0.5000000000000000 0.3079999999999999 # O36
diff --git a/test/data/orthorhombic/POSCAR-064 b/test/data/orthorhombic/POSCAR-064
new file mode 100644
index 0000000..a515ea6
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-064
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 5.4059974562511863 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.3699974731906908 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.1499938123757083
+ 8 4 16
+Direct
+ 0.0069999999999996 0.0000000000000000 0.3620000000000002 # La1
+ 0.0070000000000006 0.5000000000000000 0.8620000000000002 # La2
+ 0.9930000000000001 0.0000000000000000 0.6379999999999999 # La3
+ 0.9930000000000001 0.5000000000000000 0.1379999999999999 # La4
+ 0.4930000000000003 0.0000000000000000 0.8620000000000002 # La5
+ 0.4930000000000003 0.5000000000000000 0.3620000000000002 # La6
+ 0.5069999999999996 0.0000000000000000 0.1379999999999999 # La7
+ 0.5069999999999996 0.5000000000000000 0.6379999999999999 # La8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Cu2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Cu3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cu4
+ 0.2499999999999995 0.2499999999999995 0.0070000000000000 # O1
+ 0.9689999999999996 0.0000000000000000 0.1870000000000000 # O2
+ 0.2500000000000004 0.7500000000000006 0.5070000000000001 # O3
+ 0.9689999999999996 0.5000000000000000 0.6870000000000001 # O4
+ 0.7500000000000003 0.7500000000000006 0.9930000000000002 # O5
+ 0.0310000000000002 0.0000000000000000 0.8130000000000002 # O6
+ 0.7499999999999993 0.2500000000000004 0.4930000000000000 # O7
+ 0.0310000000000002 0.5000000000000000 0.3130000000000001 # O8
+ 0.5310000000000001 0.0000000000000000 0.6870000000000001 # O9
+ 0.5310000000000001 0.5000000000000000 0.1870000000000000 # O10
+ 0.4689999999999996 0.0000000000000000 0.3130000000000001 # O11
+ 0.4689999999999996 0.5000000000000000 0.8130000000000002 # O12
+ 0.7499999999999993 0.7500000000000006 0.4930000000000000 # O13
+ 0.7500000000000003 0.2500000000000004 0.9930000000000002 # O14
+ 0.2500000000000004 0.2500000000000004 0.5070000000000001 # O15
+ 0.2500000000000004 0.7499999999999996 0.0070000000000000 # O16
diff --git a/test/data/orthorhombic/POSCAR-064-2 b/test/data/orthorhombic/POSCAR-064-2
new file mode 100644
index 0000000..8c3bc62
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-064-2
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 5.4649974284892231 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4709974256659706 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.2109942542144339
+ 8 4 16
+Direct
+ 0.0109999999999998 0.0000000000000000 0.3609999999999999 # Nd1
+ 0.0109999999999998 0.5000000000000004 0.8610000000000001 # Nd2
+ 0.9890000000000000 0.4999999999999995 0.1390000000000002 # Nd3
+ 0.5109999999999998 0.0000000000000000 0.1390000000000002 # Nd4
+ 0.5109999999999998 0.5000000000000004 0.6390000000000000 # Nd5
+ 0.4890000000000002 0.0000000000000000 0.8610000000000001 # Nd6
+ 0.4890000000000002 0.5000000000000004 0.3609999999999999 # Nd7
+ 0.9890000000000000 0.0000000000000000 0.6390000000000000 # Nd8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ni1
+ 0.0000000000000000 0.5000000000000004 0.5000000000000002 # Ni2
+ 0.4999999999999999 0.0000000000000000 0.5000000000000002 # Ni3
+ 0.4999999999999999 0.4999999999999995 0.0000000000000000 # Ni4
+ 0.2500000000000005 0.2499999999999998 0.9890000000000000 # O1
+ 0.0540000000000004 0.0000000000000000 0.1759999999999999 # O2
+ 0.2500000000000005 0.7500000000000003 0.4889999999999997 # O3
+ 0.0540000000000004 0.5000000000000004 0.6760000000000002 # O4
+ 0.7499999999999994 0.7500000000000003 0.0110000000000000 # O5
+ 0.7499999999999994 0.2499999999999998 0.5110000000000003 # O6
+ 0.9459999999999995 0.5000000000000004 0.3239999999999998 # O7
+ 0.5539999999999994 0.0000000000000000 0.3239999999999998 # O8
+ 0.7499999999999994 0.7500000000000003 0.5110000000000003 # O9
+ 0.7499999999999994 0.2499999999999998 0.0110000000000000 # O10
+ 0.5539999999999994 0.5000000000000004 0.8240000000000000 # O11
+ 0.2499999999999995 0.2499999999999998 0.4889999999999997 # O12
+ 0.4459999999999997 0.0000000000000000 0.6760000000000002 # O13
+ 0.2500000000000005 0.7500000000000003 0.9890000000000000 # O14
+ 0.4459999999999997 0.5000000000000004 0.1759999999999999 # O15
+ 0.9459999999999995 0.0000000000000000 0.8240000000000000 # O16
diff --git a/test/data/orthorhombic/POSCAR-064-3 b/test/data/orthorhombic/POSCAR-064-3
new file mode 100644
index 0000000..a56ba9d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-064-3
@@ -0,0 +1,32 @@
+$cell vectors
+ 1.00000000000000
+ 5.7571823508220552 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.1410512363124860 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.8086137765895253
+ 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.1836759961518178 0.1013702123844488
+ 0.5000000000000000 0.6836759961518176 0.1013702123844488
+ 0.0000000000000000 0.8163240038481824 0.8986297876155513
+ 0.5000000000000000 0.3163240038481822 0.8986297876155513
+ 0.0000000000000000 0.3163240038481822 0.6013702123844486
+ 0.5000000000000000 0.8163240038481824 0.6013702123844486
+ 0.0000000000000000 0.6836759961518176 0.3986297876155512
+ 0.5000000000000000 0.1836759961518178 0.3986297876155512
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/orthorhombic/POSCAR-065 b/test/data/orthorhombic/POSCAR-065
new file mode 100644
index 0000000..b2f2dd0
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-065
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 4.8379977235189111 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.1469961664961925 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1069971264014065
+ 8 4 4
+Direct
+ 0.0000000000000000 0.3379999999999999 0.2540000000000001 # Ti1
+ 0.0000000000000000 0.6620000000000000 0.7459999999999999 # Ti2
+ 0.5000000000000006 0.1619999999999998 0.7459999999999999 # Ti3
+ 0.0000000000000000 0.6620000000000000 0.2540000000000001 # Ti4
+ 0.5000000000000006 0.1619999999999998 0.2540000000000001 # Ti5
+ 0.0000000000000000 0.3379999999999999 0.7459999999999999 # Ti6
+ 0.5000000000000006 0.8380000000000002 0.7459999999999999 # Ti7
+ 0.5000000000000006 0.8380000000000002 0.2540000000000001 # Ti8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Zr1
+ 0.0000000000000000 0.0000000000000000 0.4999999999999996 # Zr2
+ 0.5000000000000006 0.4999999999999997 0.0000000000000000 # Zr3
+ 0.5000000000000006 0.4999999999999997 0.4999999999999996 # Zr4
+ 0.5000000000000006 0.2499999999999999 0.0000000000000000 # O1
+ 0.5000000000000006 0.7500000000000002 0.0000000000000000 # O2
+ 0.0000000000000000 0.2499999999999999 0.0000000000000000 # O3
+ 0.0000000000000000 0.7500000000000002 0.0000000000000000 # O4
diff --git a/test/data/orthorhombic/POSCAR-065-2 b/test/data/orthorhombic/POSCAR-065-2
new file mode 100644
index 0000000..c50686e
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-065-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 5.7599972896793989 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.3799969979435005 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.0599980896004100
+ 2 2 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Na1
+ 0.5000000000000000 0.5000000000000003 0.0000000000000000 # Na2
+ 0.5000000000000000 0.0000000000000000 0.4999999999999993 # I1
+ 0.0000000000000000 0.5000000000000003 0.4999999999999993 # I2
+ 0.0000000000000000 0.0000000000000000 0.4999999999999993 # O1
+ 0.2500000000000000 0.2499999999999998 0.0000000000000000 # O2
+ 0.7500000000000000 0.7500000000000002 0.0000000000000000 # O3
+ 0.7500000000000000 0.2499999999999998 0.0000000000000000 # O4
+ 0.5000000000000000 0.5000000000000003 0.4999999999999993 # O5
+ 0.2500000000000000 0.7500000000000002 0.0000000000000000 # O6
diff --git a/test/data/orthorhombic/POSCAR-065-3 b/test/data/orthorhombic/POSCAR-065-3
new file mode 100644
index 0000000..0d4f505
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-065-3
@@ -0,0 +1,12 @@
+$cell vectors
+1.0
+ 3.9091981605581103 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8712981783916436 0.0000000000000000
+ -0.0511698229299495 0.0000000000000000 3.9088632500680052
+ 1 1 3
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Na1
+ 0.4999999999999992 0.4999999999999994 0.5000000000000007 # Nb1
+ 0.4999999999999992 0.0000000000000000 0.5000000000000007 # O1
+ 0.0000000000000000 0.4999999999999994 0.5000000000000007 # O2
+ 0.4999999999999992 0.4999999999999994 0.0000000000000000 # O3
diff --git a/test/data/orthorhombic/POSCAR-066 b/test/data/orthorhombic/POSCAR-066
new file mode 100644
index 0000000..0bef217
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-066
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 6.3299970214705912 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.4799950687222410 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.5299950451951503
+ 16 4 16
+Direct
+ 0.2353000000000001 0.4247999999999997 0.0000000000000000 # Se1
+ 0.2500000000000002 0.2500000000000000 0.3274000000000002 # Se2
+ 0.7352999999999997 0.9247999999999998 0.0000000000000000 # Se3
+ 0.7499999999999998 0.7500000000000000 0.6725999999999996 # Se4
+ 0.2646999999999996 0.0751999999999997 0.0000000000000000 # Se5
+ 0.2500000000000002 0.2500000000000000 0.6725999999999996 # Se6
+ 0.7647000000000002 0.5751999999999997 0.0000000000000000 # Se7
+ 0.7499999999999998 0.7500000000000000 0.3274000000000002 # Se8
+ 0.2500000000000002 0.7500000000000000 0.1725999999999998 # Se9
+ 0.7499999999999998 0.2500000000000000 0.1725999999999998 # Se10
+ 0.7647000000000002 0.4247999999999997 0.4999999999999999 # Se11
+ 0.2647000000000005 0.9247999999999998 0.4999999999999999 # Se12
+ 0.2353000000000001 0.5751999999999997 0.4999999999999999 # Se13
+ 0.2500000000000002 0.7500000000000000 0.8274000000000000 # Se14
+ 0.7352999999999997 0.0752000000000002 0.4999999999999999 # Se15
+ 0.7499999999999998 0.2500000000000000 0.8274000000000000 # Se16
+ 0.0000000000000000 0.5000000000000000 0.2500000000000002 # Ca1
+ 0.4999999999999997 0.0000000000000000 0.2500000000000002 # Ca2
+ 0.4999999999999997 0.0000000000000000 0.7500000000000002 # Ca3
+ 0.0000000000000000 0.5000000000000000 0.7500000000000002 # Ca4
+ 0.9958000000000001 0.2278999999999999 0.0000000000000000 # Al1
+ 0.0829999999999999 0.8574999999999997 0.0000000000000000 # Al2
+ 0.4957999999999996 0.7278999999999999 0.0000000000000000 # Al3
+ 0.5829999999999996 0.3574999999999998 0.0000000000000000 # Al4
+ 0.5041999999999998 0.2721000000000001 0.0000000000000000 # Al5
+ 0.4169999999999998 0.6424999999999997 0.0000000000000000 # Al6
+ 0.0042000000000001 0.7721000000000002 0.0000000000000000 # Al7
+ 0.9169999999999994 0.1424999999999997 0.0000000000000000 # Al8
+ 0.0042000000000001 0.2278999999999999 0.4999999999999999 # Al9
+ 0.9170000000000003 0.8575000000000002 0.4999999999999999 # Al10
+ 0.5041999999999998 0.7278999999999999 0.4999999999999999 # Al11
+ 0.4169999999999998 0.3574999999999998 0.4999999999999999 # Al12
+ 0.9958000000000001 0.7721000000000002 0.4999999999999999 # Al13
+ 0.0829999999999999 0.1424999999999997 0.4999999999999999 # Al14
+ 0.4957999999999996 0.2721000000000001 0.4999999999999999 # Al15
+ 0.5829999999999996 0.6424999999999997 0.4999999999999999 # Al16
diff --git a/test/data/orthorhombic/POSCAR-066-2 b/test/data/orthorhombic/POSCAR-066-2
new file mode 100644
index 0000000..72336b7
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-066-2
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 7.0696966734108386 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 25.4922880048080103 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.0268966935500305
+ 12 8 28
+Direct
+ 0.2500000000000006 0.7500000000000002 0.0000000000000000 # Ba1
+ 0.2460000000000003 0.9318000000000000 0.0000000000000000 # Ba2
+ 0.7500000000000003 0.2500000000000000 0.0000000000000000 # Ba3
+ 0.7460000000000008 0.4318000000000000 0.0000000000000000 # Ba4
+ 0.7540000000000007 0.0682000000000001 0.0000000000000000 # Ba5
+ 0.2540000000000002 0.5682000000000001 0.0000000000000000 # Ba6
+ 0.2499999999999998 0.2500000000000000 0.5000000000000000 # Ba7
+ 0.2460000000000003 0.0682000000000001 0.5000000000000000 # Ba8
+ 0.7460000000000008 0.5682000000000001 0.5000000000000000 # Ba9
+ 0.7500000000000003 0.7500000000000002 0.5000000000000000 # Ba10
+ 0.7540000000000007 0.9318000000000000 0.5000000000000000 # Ba11
+ 0.2540000000000002 0.4318000000000000 0.5000000000000000 # Ba12
+ 0.2609999999999998 0.1590000000000001 0.0000000000000000 # Zr1
+ 0.7610000000000002 0.6589999999999999 0.0000000000000000 # Zr2
+ 0.7390000000000002 0.8410000000000000 0.0000000000000000 # Zr3
+ 0.2389999999999999 0.3410000000000001 0.0000000000000000 # Zr4
+ 0.2610000000000006 0.8409999999999999 0.5000000000000000 # Zr5
+ 0.7610000000000010 0.3410000000000001 0.5000000000000000 # Zr6
+ 0.7390000000000002 0.1590000000000001 0.5000000000000000 # Zr7
+ 0.2389999999999999 0.6589999999999999 0.5000000000000000 # Zr8
+ 0.2499999999999998 0.2500000000000000 0.0000000000000000 # S1
+ 0.0000000000000000 0.1590000000000001 0.2500000000000000 # S2
+ 0.2190000000000005 0.0519999999999999 0.0000000000000000 # S3
+ 0.0000000000000000 0.3500000000000000 0.2500000000000000 # S4
+ 0.7500000000000003 0.7500000000000002 0.0000000000000000 # S5
+ 0.5000000000000004 0.6589999999999999 0.2500000000000000 # S6
+ 0.7190000000000001 0.5520000000000000 0.0000000000000000 # S7
+ 0.5000000000000004 0.8499999999999999 0.2500000000000000 # S8
+ 1.0000000000000000 0.8410000000000000 0.7499999999999999 # S9
+ 0.7810000000000002 0.9479999999999998 0.0000000000000000 # S10
+ 0.0000000000000000 0.6500000000000001 0.7499999999999999 # S11
+ 0.5000000000000004 0.3410000000000001 0.7499999999999999 # S12
+ 0.2810000000000000 0.4480000000000001 0.0000000000000000 # S13
+ 0.5000000000000004 0.1499999999999999 0.7499999999999999 # S14
+ 1.0000000000000000 0.8410000000000000 0.2500000000000000 # S15
+ 0.0000000000000000 0.6500000000000001 0.2500000000000000 # S16
+ 0.0000000000000000 0.3500000000000000 0.7499999999999999 # S17
+ 0.5000000000000004 0.6589999999999999 0.7499999999999999 # S18
+ 0.5000000000000004 0.8499999999999999 0.7499999999999999 # S19
+ 0.2500000000000006 0.7500000000000000 0.5000000000000000 # S20
+ 0.2190000000000005 0.9479999999999998 0.5000000000000000 # S21
+ 0.7500000000000003 0.2500000000000000 0.5000000000000000 # S22
+ 0.5000000000000004 0.3410000000000001 0.2500000000000000 # S23
+ 0.7190000000000001 0.4480000000000001 0.5000000000000000 # S24
+ 0.5000000000000004 0.1499999999999999 0.2500000000000000 # S25
+ 0.0000000000000000 0.1590000000000001 0.7499999999999999 # S26
+ 0.7810000000000002 0.0520000000000001 0.5000000000000000 # S27
+ 0.2810000000000000 0.5520000000000000 0.5000000000000000 # S28
diff --git a/test/data/orthorhombic/POSCAR-067 b/test/data/orthorhombic/POSCAR-067
new file mode 100644
index 0000000..9048f37
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-067
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 7.9699962497820849 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.7219944843093593 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.3739979418502930
+ 4 4 12 28
+Direct
+ 0.2500000000000003 0.2499999999999998 0.0000000000000000 # Ca1
+ 0.7500000000000004 0.7499999999999998 0.0000000000000000 # Ca2
+ 0.7499999999999997 0.2499999999999998 0.0000000000000000 # Ca3
+ 0.2500000000000003 0.7499999999999998 0.0000000000000000 # Ca4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Al1
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Al2
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Al3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Al4
+ 0.2500000000000003 0.0000000000000000 0.4999999999999995 # B1
+ 0.0000000000000000 0.1364999999999999 0.4571000000000002 # B2
+ 0.7499999999999997 0.5000000000000000 0.4999999999999995 # B3
+ 0.5000000000000000 0.6364999999999998 0.4571000000000002 # B4
+ 0.7499999999999997 0.0000000000000000 0.4999999999999995 # B5
+ 0.0000000000000000 0.8635000000000002 0.5428999999999998 # B6
+ 0.0000000000000000 0.3635000000000001 0.4571000000000002 # B7
+ 0.5000000000000000 0.8635000000000002 0.4571000000000002 # B8
+ 0.0000000000000000 0.6364999999999998 0.5428999999999998 # B9
+ 0.5000000000000000 0.1364999999999999 0.5428999999999998 # B10
+ 0.2500000000000003 0.5000000000000000 0.4999999999999995 # B11
+ 0.5000000000000000 0.3635000000000001 0.5428999999999998 # B12
+ 0.0000000000000000 0.2499999999999998 0.3289000000000000 # O1
+ 0.0000000000000000 0.1310999999999999 0.7769999999999999 # O2
+ 0.1465999999999999 0.0731000000000001 0.2990000000000002 # O3
+ 0.5000000000000000 0.7499999999999998 0.3289000000000000 # O4
+ 0.5000000000000000 0.6311000000000000 0.7769999999999999 # O5
+ 0.6466000000000000 0.5731000000000002 0.2990000000000002 # O6
+ 0.0000000000000000 0.7499999999999998 0.6711000000000001 # O7
+ 0.5000000000000000 0.2500000000000003 0.6711000000000001 # O8
+ 0.5000000000000000 0.3689000000000001 0.2230000000000002 # O9
+ 0.3534000000000001 0.4268999999999999 0.7009999999999998 # O10
+ 0.0000000000000000 0.3689000000000001 0.7769999999999999 # O11
+ 0.8534000000000002 0.4268999999999999 0.2990000000000002 # O12
+ 0.5000000000000000 0.8689000000000001 0.7769999999999999 # O13
+ 0.3534000000000001 0.9269000000000001 0.2990000000000002 # O14
+ 0.0000000000000000 0.6311000000000000 0.2230000000000002 # O15
+ 0.1465999999999999 0.5731000000000002 0.7009999999999998 # O16
+ 0.5000000000000000 0.1310999999999999 0.2230000000000002 # O17
+ 0.6466000000000000 0.0731000000000001 0.7009999999999998 # O18
+ 0.1465999999999999 0.9269000000000001 0.7009999999999998 # O19
+ 0.6466000000000000 0.4268999999999999 0.7009999999999998 # O20
+ 0.8534000000000002 0.0731000000000001 0.2990000000000002 # O21
+ 0.3534000000000001 0.5731000000000002 0.2990000000000002 # O22
+ 0.8534000000000002 0.5731000000000002 0.7009999999999998 # O23
+ 0.3534000000000001 0.0731000000000001 0.7009999999999998 # O24
+ 0.1465999999999999 0.4268999999999999 0.2990000000000002 # O25
+ 0.6466000000000000 0.9269000000000001 0.2990000000000002 # O26
+ 0.0000000000000000 0.8689000000000001 0.2230000000000002 # O27
+ 0.8534000000000002 0.9269000000000001 0.7009999999999998 # O28
diff --git a/test/data/orthorhombic/POSCAR-067-2 b/test/data/orthorhombic/POSCAR-067-2
new file mode 100644
index 0000000..09fbb2d
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-067-2
@@ -0,0 +1,75 @@
+$cell vectors
+1.0
+ 11.3659946518222270 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.9159953341078015 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2709961081490153
+ 24 12 32
+Direct
+ 0.2500000000000001 0.0000000000000000 0.0000000000000000 # Ir1
+ 0.2500000000000001 0.0000000000000000 0.3348000000000002 # Ir2
+ 0.3589000000000001 0.2499999999999999 0.6874999999999997 # Ir3
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Ir4
+ 0.7500000000000001 0.4999999999999998 0.0000000000000000 # Ir5
+ 0.7500000000000001 0.4999999999999998 0.3348000000000002 # Ir6
+ 0.8589000000000001 0.7499999999999997 0.6874999999999997 # Ir7
+ 0.0000000000000000 0.4999999999999998 0.0000000000000000 # Ir8
+ 0.7500000000000001 0.0000000000000000 0.0000000000000000 # Ir9
+ 0.7500000000000001 0.0000000000000000 0.6651999999999997 # Ir10
+ 0.2500000000000001 0.4999999999999998 0.0000000000000000 # Ir11
+ 0.2500000000000001 0.4999999999999998 0.6651999999999997 # Ir12
+ 0.1410999999999999 0.2499999999999999 0.3125000000000002 # Ir13
+ 0.6411000000000000 0.2499999999999999 0.6874999999999997 # Ir14
+ 0.5000000000000000 0.4999999999999998 0.0000000000000000 # Ir15
+ 0.1410999999999999 0.7499999999999997 0.6874999999999997 # Ir16
+ 0.3589000000000001 0.7499999999999997 0.3125000000000002 # Ir17
+ 0.8589000000000001 0.2499999999999999 0.3125000000000002 # Ir18
+ 0.7500000000000001 0.4999999999999998 0.6651999999999997 # Ir19
+ 0.7500000000000001 0.0000000000000000 0.3348000000000002 # Ir20
+ 0.2500000000000001 0.4999999999999998 0.3348000000000002 # Ir21
+ 0.6411000000000004 0.7499999999999997 0.3125000000000002 # Ir22
+ 0.2500000000000001 0.0000000000000000 0.6651999999999997 # Ir23
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ir24
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Na1
+ 0.4230000000000000 0.2499999999999999 0.1959999999999999 # Na2
+ 0.0000000000000000 0.4999999999999998 0.5000000000000000 # Na3
+ -0.0770000000000001 0.7499999999999997 0.1959999999999999 # Na4
+ 0.5770000000000002 0.7499999999999997 0.8039999999999999 # Na5
+ 0.0770000000000001 0.2499999999999999 0.8039999999999999 # Na6
+ 0.5770000000000002 0.2499999999999999 0.1959999999999999 # Na7
+ 0.0770000000000001 0.7499999999999997 0.1959999999999999 # Na8
+ 0.4230000000000000 0.7499999999999997 0.8039999999999999 # Na9
+ -0.0770000000000001 0.2499999999999999 0.8039999999999999 # Na10
+ 0.5000000000000000 0.4999999999999998 0.5000000000000000 # Na11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Na12
+ 0.2500000000000001 0.1590000000000001 0.5000000000000000 # B1
+ 0.6290000000000002 0.0769999999999998 0.8429999999999995 # B2
+ 0.5000000000000000 0.1499999999999999 0.7990000000000002 # B3
+ 0.7500000000000001 0.6589999999999997 0.5000000000000000 # B4
+ 0.1290000000000002 0.5770000000000001 0.8429999999999995 # B5
+ 0.0000000000000000 0.6500000000000001 0.7990000000000002 # B6
+ 0.7500000000000001 0.8410000000000000 0.5000000000000000 # B7
+ 0.3710000000000004 0.9229999999999996 0.1570000000000002 # B8
+ 0.5000000000000000 0.8499999999999995 0.2009999999999998 # B9
+ 0.2500000000000001 0.3409999999999996 0.5000000000000000 # B10
+ 0.8710000000000001 0.4229999999999999 0.1570000000000002 # B11
+ 0.0000000000000000 0.3499999999999999 0.2009999999999998 # B12
+ 0.7500000000000001 0.3409999999999996 0.5000000000000000 # B13
+ 0.3709999999999999 0.4229999999999999 0.8429999999999995 # B14
+ 0.5000000000000000 0.3499999999999999 0.7990000000000002 # B15
+ 0.2500000000000001 0.8410000000000000 0.5000000000000000 # B16
+ 0.8710000000000001 0.9229999999999996 0.8429999999999995 # B17
+ 0.0000000000000000 0.8499999999999995 0.7990000000000002 # B18
+ 0.2500000000000001 0.6589999999999997 0.5000000000000000 # B19
+ 0.6290000000000002 0.5769999999999996 0.1570000000000002 # B20
+ 0.7500000000000001 0.1590000000000001 0.5000000000000000 # B21
+ 0.1290000000000002 0.0769999999999998 0.1570000000000002 # B22
+ 0.0000000000000000 0.1499999999999999 0.2009999999999998 # B23
+ 0.6290000000000002 0.9229999999999996 0.1570000000000002 # B24
+ 0.1290000000000002 0.4229999999999999 0.1570000000000002 # B25
+ 0.3709999999999999 0.0769999999999998 0.8429999999999995 # B26
+ 0.8710000000000001 0.5770000000000001 0.8429999999999995 # B27
+ 0.3709999999999999 0.5769999999999996 0.1570000000000002 # B28
+ 0.5000000000000000 0.6499999999999996 0.2009999999999998 # B29
+ 0.8710000000000001 0.0769999999999998 0.1570000000000002 # B30
+ 0.6290000000000002 0.4229999999999999 0.8429999999999995 # B31
+ 0.1290000000000002 0.9229999999999996 0.8429999999999995 # B32
diff --git a/test/data/orthorhombic/POSCAR-067-3 b/test/data/orthorhombic/POSCAR-067-3
new file mode 100644
index 0000000..66786e2
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-067-3
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 7.7799963391850193 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4899974167256769 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.6399964050608666
+ 8 12
+Direct
+ 0.2500000000000003 0.0000000000000000 0.0000000000000000 # Pb1
+ 0.2500000000000003 0.0000000000000000 0.5000000000000003 # Pb2
+ 0.0000000000000000 0.4999999999999995 0.2499999999999999 # Pb3
+ 0.7500000000000003 0.0000000000000000 0.0000000000000000 # Pb4
+ 0.7500000000000003 0.0000000000000000 0.5000000000000003 # Pb5
+ 0.4999999999999999 0.5000000000000006 0.7500000000000002 # Pb6
+ 0.0000000000000000 0.5000000000000006 0.7500000000000002 # Pb7
+ 0.4999999999999999 0.4999999999999995 0.2499999999999999 # Pb8
+ 0.0000000000000000 0.2499999999999998 0.0000000000000000 # O1
+ 0.0000000000000000 0.7500000000000004 0.5000000000000003 # O2
+ 0.2500000000000003 0.2499999999999998 0.2499999999999999 # O3
+ 0.2500000000000003 0.7500000000000004 0.2499999999999999 # O4
+ 0.4999999999999999 0.7500000000000004 0.0000000000000000 # O5
+ 0.4999999999999999 0.2499999999999998 0.5000000000000003 # O6
+ 0.7500000000000003 0.7500000000000004 0.7500000000000002 # O7
+ 0.7500000000000003 0.2499999999999998 0.7500000000000002 # O8
+ 0.2500000000000003 0.2499999999999998 0.7500000000000002 # O9
+ 0.2500000000000003 0.7500000000000004 0.7500000000000002 # O10
+ 0.7500000000000003 0.7500000000000004 0.2499999999999999 # O11
+ 0.7500000000000003 0.2499999999999998 0.2499999999999999 # O12
diff --git a/test/data/orthorhombic/POSCAR-068 b/test/data/orthorhombic/POSCAR-068
new file mode 100644
index 0000000..a99db28
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-068
@@ -0,0 +1,115 @@
+$cell vectors
+1.0
+ 7.4099965132854750 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 22.2599895257401812 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4399964991692222
+ 12 48 48
+Direct
+ 0.0000000000000000 0.5824000000000000 0.2500000000000002 # Lu1
+ 0.0000000000000000 0.2500000000000000 0.2500000000000002 # Lu2
+ 0.4999999999999999 0.0824000000000000 0.2500000000000002 # Lu3
+ 0.4999999999999999 0.7499999999999997 0.2500000000000002 # Lu4
+ 0.0000000000000000 0.4175999999999999 0.7500000000000000 # Lu5
+ 0.0000000000000000 0.7499999999999997 0.7500000000000000 # Lu6
+ 0.4999999999999999 0.9175999999999999 0.7500000000000000 # Lu7
+ 0.4999999999999999 0.2500000000000000 0.7500000000000000 # Lu8
+ 0.0000000000000000 0.9175999999999999 0.2500000000000002 # Lu9
+ 0.4999999999999999 0.4175999999999999 0.2500000000000002 # Lu10
+ 0.0000000000000000 0.0824000000000000 0.7500000000000000 # Lu11
+ 0.4999999999999999 0.5824000000000000 0.7500000000000000 # Lu12
+ 0.1180000000000001 0.0417000000000001 0.0955000000000003 # Rh1
+ 0.1529999999999998 0.1244999999999999 0.3670000000000002 # Rh2
+ 0.3530999999999997 0.2064999999999999 0.1272000000000001 # Rh3
+ 0.6179999999999999 0.5416999999999997 0.0955000000000003 # Rh4
+ 0.6530000000000006 0.6244999999999999 0.3670000000000002 # Rh5
+ 0.8531000000000004 0.7064999999999998 0.1272000000000001 # Rh6
+ 0.8819999999999999 0.9582999999999998 0.9045000000000000 # Rh7
+ 0.8470000000000001 0.8754999999999998 0.6330000000000000 # Rh8
+ 0.6469000000000003 0.7934999999999999 0.8728000000000000 # Rh9
+ 0.3819999999999999 0.4582999999999999 0.9045000000000000 # Rh10
+ 0.3470000000000001 0.3754999999999997 0.6330000000000000 # Rh11
+ 0.1469000000000003 0.2935000000000000 0.8728000000000000 # Rh12
+ 0.8819999999999999 0.4582999999999999 0.0955000000000003 # Rh13
+ 0.8470000000000001 0.3754999999999997 0.3670000000000002 # Rh14
+ 0.6469000000000003 0.2935000000000000 0.1272000000000001 # Rh15
+ 0.3819999999999999 0.9582999999999998 0.0955000000000003 # Rh16
+ 0.3470000000000001 0.8754999999999998 0.3670000000000002 # Rh17
+ 0.1469000000000003 0.7934999999999999 0.1272000000000001 # Rh18
+ 0.1180000000000001 0.5416999999999997 0.9045000000000000 # Rh19
+ 0.1529999999999998 0.6244999999999999 0.6330000000000000 # Rh20
+ 0.3531000000000005 0.7064999999999998 0.8728000000000000 # Rh21
+ 0.6179999999999999 0.0417000000000001 0.9045000000000000 # Rh22
+ 0.6529999999999998 0.1244999999999999 0.6330000000000000 # Rh23
+ 0.8530999999999997 0.2064999999999999 0.8728000000000000 # Rh24
+ 0.1180000000000001 0.4582999999999999 0.4045000000000002 # Rh25
+ 0.1529999999999998 0.3754999999999997 0.1330000000000003 # Rh26
+ 0.3531000000000005 0.2935000000000000 0.3728000000000003 # Rh27
+ 0.6179999999999999 0.9582999999999998 0.4045000000000002 # Rh28
+ 0.6530000000000006 0.8754999999999998 0.1330000000000003 # Rh29
+ 0.8531000000000004 0.7934999999999999 0.3728000000000003 # Rh30
+ 0.8819999999999999 0.5416999999999997 0.5955000000000000 # Rh31
+ 0.8470000000000001 0.6244999999999999 0.8669999999999999 # Rh32
+ 0.6469000000000003 0.7064999999999998 0.6271999999999999 # Rh33
+ 0.3819999999999999 0.0417000000000001 0.5955000000000000 # Rh34
+ 0.3470000000000001 0.1244999999999999 0.8669999999999999 # Rh35
+ 0.1469000000000003 0.2064999999999999 0.6271999999999999 # Rh36
+ 0.8819999999999999 0.0417000000000001 0.4045000000000002 # Rh37
+ 0.8470000000000001 0.1244999999999999 0.1330000000000003 # Rh38
+ 0.6469000000000003 0.2064999999999999 0.3728000000000003 # Rh39
+ 0.3819999999999999 0.5416999999999997 0.4045000000000002 # Rh40
+ 0.3470000000000001 0.6244999999999999 0.1330000000000003 # Rh41
+ 0.1469000000000003 0.7064999999999998 0.3728000000000003 # Rh42
+ 0.1180000000000001 0.9582999999999998 0.5955000000000000 # Rh43
+ 0.1530000000000006 0.8754999999999998 0.8669999999999999 # Rh44
+ 0.3531000000000005 0.7934999999999999 0.6271999999999999 # Rh45
+ 0.6179999999999999 0.4582999999999999 0.5955000000000000 # Rh46
+ 0.6530000000000006 0.3754999999999997 0.8669999999999999 # Rh47
+ 0.8530999999999997 0.2935000000000000 0.6271999999999999 # Rh48
+ 0.1300000000000003 0.1470000000000001 0.0699999999999998 # B1
+ 0.1900000000000003 0.0230000000000001 0.4000000000000004 # B2
+ 0.3600000000000003 0.3180000000000001 0.0900000000000002 # B3
+ 0.6300000000000001 0.6469999999999998 0.0699999999999998 # B4
+ 0.6900000000000004 0.5230000000000001 0.4000000000000004 # B5
+ 0.8600000000000003 0.8179999999999999 0.0900000000000002 # B6
+ 0.8700000000000003 0.8529999999999999 0.9300000000000005 # B7
+ 0.8100000000000004 0.9770000000000000 0.5999999999999996 # B8
+ 0.6400000000000005 0.6819999999999997 0.9100000000000000 # B9
+ 0.3700000000000005 0.3529999999999999 0.9300000000000005 # B10
+ 0.3100000000000004 0.4769999999999999 0.5999999999999996 # B11
+ 0.1400000000000003 0.1820000000000001 0.9100000000000000 # B12
+ 0.8700000000000003 0.3529999999999999 0.0699999999999998 # B13
+ 0.8100000000000004 0.4769999999999999 0.4000000000000004 # B14
+ 0.6400000000000005 0.1819999999999999 0.0900000000000002 # B15
+ 0.3700000000000005 0.8529999999999999 0.0699999999999998 # B16
+ 0.3100000000000004 0.9770000000000000 0.4000000000000004 # B17
+ 0.1400000000000003 0.6819999999999997 0.0900000000000002 # B18
+ 0.1300000000000003 0.6469999999999998 0.9300000000000005 # B19
+ 0.1900000000000003 0.5230000000000001 0.5999999999999996 # B20
+ 0.3600000000000003 0.8179999999999999 0.9100000000000000 # B21
+ 0.6300000000000001 0.1470000000000001 0.9300000000000005 # B22
+ 0.6900000000000004 0.0230000000000001 0.5999999999999996 # B23
+ 0.8600000000000003 0.3179999999999999 0.9100000000000000 # B24
+ 0.1300000000000003 0.3529999999999999 0.4299999999999999 # B25
+ 0.1900000000000003 0.4769999999999999 0.1000000000000001 # B26
+ 0.3600000000000003 0.1819999999999999 0.4100000000000002 # B27
+ 0.6300000000000001 0.8529999999999999 0.4299999999999999 # B28
+ 0.6900000000000004 0.9770000000000000 0.1000000000000001 # B29
+ 0.8600000000000003 0.6819999999999997 0.4100000000000002 # B30
+ 0.8700000000000003 0.6469999999999998 0.5700000000000002 # B31
+ 0.8100000000000004 0.5230000000000001 0.9000000000000001 # B32
+ 0.6400000000000005 0.8179999999999999 0.5899999999999999 # B33
+ 0.3699999999999998 0.1470000000000001 0.5700000000000002 # B34
+ 0.3100000000000004 0.0230000000000001 0.9000000000000001 # B35
+ 0.1400000000000003 0.3180000000000001 0.5899999999999999 # B36
+ 0.8700000000000003 0.1470000000000001 0.4299999999999999 # B37
+ 0.8100000000000004 0.0230000000000001 0.1000000000000001 # B38
+ 0.6400000000000005 0.3179999999999999 0.4100000000000002 # B39
+ 0.3700000000000005 0.6469999999999998 0.4299999999999999 # B40
+ 0.3100000000000004 0.5230000000000001 0.1000000000000001 # B41
+ 0.1400000000000003 0.8179999999999999 0.4100000000000002 # B42
+ 0.1300000000000003 0.8529999999999999 0.5700000000000002 # B43
+ 0.1900000000000003 0.9770000000000000 0.9000000000000001 # B44
+ 0.3600000000000003 0.6819999999999997 0.5899999999999999 # B45
+ 0.6300000000000001 0.3529999999999999 0.5700000000000002 # B46
+ 0.6900000000000004 0.4769999999999999 0.9000000000000001 # B47
+ 0.8600000000000003 0.1820000000000001 0.5899999999999999 # B48
diff --git a/test/data/orthorhombic/POSCAR-068-2 b/test/data/orthorhombic/POSCAR-068-2
new file mode 100644
index 0000000..aa2cd16
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-068-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 6.4179969800629122 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.3659946518222270 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3839969960613354
+ 4 16
+Direct
+ 0.0000000000000000 0.2500000000000001 0.2499999999999998 # Pt1
+ 0.5000000000000004 0.7500000000000001 0.2499999999999998 # Pt2
+ 0.0000000000000000 0.7500000000000001 0.7500000000000001 # Pt3
+ 0.5000000000000004 0.2500000000000001 0.7500000000000001 # Pt4
+ 0.3338999999999998 0.1233000000000002 0.0840000000000000 # Sn1
+ 0.8339000000000003 0.6233000000000004 0.0840000000000000 # Sn2
+ 0.6661000000000002 0.8767000000000000 0.9159999999999998 # Sn3
+ 0.1660999999999999 0.3767000000000003 0.9159999999999998 # Sn4
+ 0.6661000000000002 0.3766999999999998 0.0840000000000000 # Sn5
+ 0.1660999999999999 0.8767000000000000 0.0840000000000000 # Sn6
+ 0.3338999999999998 0.6233000000000004 0.9159999999999998 # Sn7
+ 0.8339000000000003 0.1233000000000002 0.9159999999999998 # Sn8
+ 0.3338999999999998 0.3766999999999998 0.4159999999999995 # Sn9
+ 0.8339000000000003 0.8767000000000000 0.4159999999999995 # Sn10
+ 0.6661000000000002 0.6233000000000004 0.5839999999999995 # Sn11
+ 0.1660999999999999 0.1233000000000002 0.5839999999999995 # Sn12
+ 0.6661000000000002 0.1233000000000002 0.4159999999999995 # Sn13
+ 0.1660999999999999 0.6233000000000004 0.4159999999999995 # Sn14
+ 0.3338999999999998 0.8767000000000000 0.5839999999999995 # Sn15
+ 0.8339000000000003 0.3766999999999998 0.5839999999999995 # Sn16
diff --git a/test/data/orthorhombic/POSCAR-069 b/test/data/orthorhombic/POSCAR-069
new file mode 100644
index 0000000..eff5aa7
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-069
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 10.8599948899163685 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.5999936006319153 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3899969932380829
+ 8 12 16
+Direct
+ 0.0000000000000000 0.3420000000000000 0.0000000000000000 # Cs1
+ 0.0000000000000000 0.8420000000000000 0.4999999999999999 # Cs2
+ 0.4999999999999997 0.3420000000000000 0.4999999999999999 # Cs3
+ 0.4999999999999997 0.8420000000000000 0.0000000000000000 # Cs4
+ 0.0000000000000000 0.6579999999999999 0.0000000000000000 # Cs5
+ 0.0000000000000000 0.1580000000000000 0.4999999999999999 # Cs6
+ 0.4999999999999997 0.6579999999999999 0.4999999999999999 # Cs7
+ 0.4999999999999997 0.1580000000000000 0.0000000000000000 # Cs8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Pt1
+ 0.2500000000000001 0.0000000000000000 0.2499999999999999 # Pt2
+ 0.0000000000000000 0.5000000000000000 0.4999999999999999 # Pt3
+ 0.2500000000000001 0.5000000000000000 0.7500000000000000 # Pt4
+ 0.4999999999999997 0.0000000000000000 0.4999999999999999 # Pt5
+ 0.7499999999999998 0.0000000000000000 0.7500000000000000 # Pt6
+ 0.4999999999999997 0.5000000000000000 0.0000000000000000 # Pt7
+ 0.7499999999999998 0.5000000000000000 0.2499999999999999 # Pt8
+ 0.7499999999999998 0.0000000000000000 0.2499999999999999 # Pt9
+ 0.7499999999999998 0.5000000000000000 0.7500000000000000 # Pt10
+ 0.2500000000000001 0.0000000000000000 0.7500000000000000 # Pt11
+ 0.2500000000000001 0.5000000000000000 0.2499999999999999 # Pt12
+ 0.1649999999999998 0.1160000000000000 0.0000000000000000 # S1
+ 0.1649999999999998 0.6160000000000001 0.4999999999999999 # S2
+ 0.6650000000000000 0.1160000000000000 0.4999999999999999 # S3
+ 0.6650000000000000 0.6160000000000001 0.0000000000000000 # S4
+ 0.8349999999999997 0.8839999999999999 0.0000000000000000 # S5
+ 0.8349999999999997 0.3840000000000000 0.4999999999999999 # S6
+ 0.3349999999999998 0.8839999999999999 0.4999999999999999 # S7
+ 0.3349999999999998 0.3840000000000000 0.0000000000000000 # S8
+ 0.1649999999999998 0.8839999999999999 0.0000000000000000 # S9
+ 0.1649999999999998 0.3840000000000000 0.4999999999999999 # S10
+ 0.6650000000000000 0.8839999999999999 0.4999999999999999 # S11
+ 0.6650000000000000 0.3840000000000000 0.0000000000000000 # S12
+ 0.8349999999999997 0.1160000000000000 0.0000000000000000 # S13
+ 0.8349999999999997 0.6160000000000001 0.4999999999999999 # S14
+ 0.3349999999999998 0.1160000000000000 0.4999999999999999 # S15
+ 0.3349999999999998 0.6160000000000001 0.0000000000000000 # S16
diff --git a/test/data/orthorhombic/POSCAR-069-2 b/test/data/orthorhombic/POSCAR-069-2
new file mode 100644
index 0000000..6813d28
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-069-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 12.4266941527185750 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.2607947013232241 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.7382087115578151
+ 4 8
+Direct
+ 0.2500000000000001 0.2499999999999998 0.2499999999999995 # Cu1
+ 0.7500000000000000 0.7499999999999998 0.2499999999999995 # Cu2
+ 0.2500000000000001 0.7499999999999998 0.7500000000000004 # Cu3
+ 0.7500000000000000 0.2500000000000002 0.7500000000000004 # Cu4
+ 0.2500000000000001 0.6346999999999999 0.2499999999999995 # O1
+ 0.2500000000000001 0.1347000000000000 0.7500000000000004 # O2
+ 0.7500000000000000 0.6346999999999999 0.7500000000000004 # O3
+ 0.7500000000000000 0.1347000000000000 0.2499999999999995 # O4
+ 0.7500000000000000 0.8653000000000002 0.7500000000000004 # O5
+ 0.2500000000000001 0.3653000000000001 0.7500000000000004 # O6
+ 0.2500000000000001 0.8653000000000002 0.2499999999999995 # O7
+ 0.7500000000000000 0.3653000000000001 0.2499999999999995 # O8
diff --git a/test/data/orthorhombic/POSCAR-070 b/test/data/orthorhombic/POSCAR-070
new file mode 100644
index 0000000..c1e9b22
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-070
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 8.3559960681529581 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1859952070615201 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.0389966878564731
+ 16 16 16
+Direct
+ 0.3257999999999998 0.1249999999999998 0.1250000000000000 # In1
+ 0.3258000000000005 0.6249999999999999 0.6250000000000000 # In2
+ 0.8258000000000006 0.1249999999999998 0.6250000000000000 # In3
+ 0.8258000000000006 0.6249999999999999 0.1250000000000000 # In4
+ 0.6742000000000004 0.8749999999999999 0.8749999999999998 # In5
+ 0.6742000000000004 0.3749999999999998 0.3749999999999999 # In6
+ 0.1742000000000003 0.8749999999999999 0.3749999999999999 # In7
+ 0.1742000000000003 0.3749999999999998 0.8749999999999998 # In8
+ 0.9242000000000004 0.1249999999999998 0.1250000000000000 # In9
+ 0.9242000000000004 0.6249999999999999 0.6250000000000000 # In10
+ 0.4242000000000002 0.1249999999999998 0.6250000000000000 # In11
+ 0.4242000000000002 0.6249999999999999 0.1250000000000000 # In12
+ 0.0758000000000004 0.8749999999999999 0.8749999999999998 # In13
+ 0.0757999999999998 0.3749999999999998 0.3749999999999999 # In14
+ 0.5758000000000005 0.8749999999999999 0.3749999999999999 # In15
+ 0.5758000000000000 0.3749999999999998 0.8749999999999998 # In16
+ 0.1250000000000004 0.2617999999999998 0.1250000000000000 # O1
+ 0.1250000000000004 0.7617999999999999 0.6250000000000000 # O2
+ 0.6250000000000004 0.2617999999999998 0.6250000000000000 # O3
+ 0.6250000000000004 0.7617999999999999 0.1250000000000000 # O4
+ 0.8750000000000006 0.7382000000000000 0.8749999999999998 # O5
+ 0.8750000000000006 0.2381999999999999 0.3749999999999999 # O6
+ 0.3750000000000004 0.7382000000000000 0.3749999999999999 # O7
+ 0.3750000000000004 0.2381999999999999 0.8749999999999998 # O8
+ 0.1250000000000004 0.9882000000000001 0.1250000000000000 # O9
+ 0.1250000000000004 0.4882000000000000 0.6250000000000000 # O10
+ 0.6250000000000004 0.9882000000000001 0.6250000000000000 # O11
+ 0.6250000000000004 0.4882000000000000 0.1250000000000000 # O12
+ 0.8750000000000006 0.0118000000000002 0.8749999999999998 # O13
+ 0.8750000000000006 0.5117999999999998 0.3749999999999999 # O14
+ 0.3750000000000004 0.0118000000000002 0.3749999999999999 # O15
+ 0.3750000000000004 0.5117999999999998 0.8749999999999998 # O16
+ 0.5000000000000000 0.5000000000000002 0.5000000000000000 # F1
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # F2
+ 0.0000000000000000 0.5000000000000002 0.0000000000000000 # F3
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # F4
+ 0.7500000000000001 0.7499999999999997 0.5000000000000000 # F5
+ 0.7500000000000001 0.2500000000000001 0.0000000000000000 # F6
+ 0.2500000000000001 0.7499999999999997 0.0000000000000000 # F7
+ 0.2500000000000001 0.2500000000000001 0.5000000000000000 # F8
+ 0.5000000000000000 0.7500000000000002 0.7499999999999999 # F9
+ 0.5000000000000000 0.2500000000000001 0.2500000000000000 # F10
+ 0.0000000000000000 0.7499999999999997 0.2500000000000000 # F11
+ 0.0000000000000000 0.2500000000000001 0.7499999999999999 # F12
+ 0.7500000000000001 0.5000000000000002 0.7499999999999999 # F13
+ 0.7500000000000001 0.0000000000000000 0.2500000000000000 # F14
+ 0.2500000000000001 0.5000000000000002 0.2500000000000000 # F15
+ 0.2500000000000001 0.0000000000000000 0.7499999999999999 # F16
diff --git a/test/data/orthorhombic/POSCAR-070-2 b/test/data/orthorhombic/POSCAR-070-2
new file mode 100644
index 0000000..b1f7138
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-070-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 9.6989954362153643 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.6029954813873726 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4619964888173005
+ 16 8 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Cu2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Cu3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cu4
+ 0.2499999999999997 0.2499999999999999 0.0000000000000000 # Cu5
+ 0.2500000000000003 0.7500000000000000 0.5000000000000000 # Cu6
+ 0.7499999999999998 0.2499999999999999 0.5000000000000000 # Cu7
+ 0.7499999999999998 0.7500000000000000 0.0000000000000000 # Cu8
+ 0.0000000000000000 0.2499999999999999 0.2500000000000000 # Cu9
+ 0.0000000000000000 0.7500000000000000 0.7500000000000001 # Cu10
+ 0.5000000000000000 0.2499999999999999 0.7500000000000001 # Cu11
+ 0.5000000000000000 0.7500000000000000 0.2500000000000000 # Cu12
+ 0.2499999999999997 0.0000000000000000 0.2500000000000000 # Cu13
+ 0.2500000000000003 0.5000000000000000 0.7500000000000001 # Cu14
+ 0.7499999999999998 0.0000000000000000 0.7500000000000001 # Cu15
+ 0.7499999999999998 0.5000000000000000 0.2500000000000000 # Cu16
+ 0.1249999999999998 0.1250000000000002 0.1250000000000000 # O1
+ 0.1249999999999998 0.6250000000000002 0.6250000000000001 # O2
+ 0.6249999999999998 0.1250000000000002 0.6250000000000001 # O3
+ 0.6249999999999998 0.6250000000000002 0.1250000000000000 # O4
+ 0.8749999999999993 0.8750000000000002 0.8750000000000001 # O5
+ 0.8749999999999993 0.3750000000000003 0.3750000000000001 # O6
+ 0.3750000000000001 0.8750000000000002 0.3750000000000001 # O7
+ 0.3750000000000001 0.3750000000000003 0.8750000000000001 # O8
+ 0.8239999999999997 0.1250000000000002 0.1250000000000000 # Cl1
+ 0.8239999999999997 0.6250000000000002 0.6250000000000001 # Cl2
+ 0.3240000000000000 0.1250000000000002 0.6250000000000001 # Cl3
+ 0.3240000000000000 0.6250000000000002 0.1250000000000000 # Cl4
+ 0.1760000000000001 0.8750000000000002 0.8750000000000001 # Cl5
+ 0.1760000000000001 0.3750000000000003 0.3750000000000001 # Cl6
+ 0.6760000000000000 0.8750000000000002 0.3750000000000001 # Cl7
+ 0.6760000000000000 0.3750000000000003 0.8750000000000001 # Cl8
+ 0.4259999999999998 0.1250000000000002 0.1250000000000000 # Cl9
+ 0.4259999999999998 0.6250000000000002 0.6250000000000001 # Cl10
+ 0.9259999999999997 0.1250000000000002 0.6250000000000001 # Cl11
+ 0.9259999999999997 0.6250000000000002 0.1250000000000000 # Cl12
+ 0.5740000000000001 0.8750000000000002 0.8750000000000001 # Cl13
+ 0.5739999999999996 0.3750000000000003 0.3750000000000001 # Cl14
+ 0.0739999999999996 0.8750000000000002 0.3750000000000001 # Cl15
+ 0.0739999999999996 0.3750000000000003 0.8750000000000001 # Cl16
diff --git a/test/data/orthorhombic/POSCAR-071 b/test/data/orthorhombic/POSCAR-071
new file mode 100644
index 0000000..d4e4b7c
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-071
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 4.7149977813955477 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 15.7069926092004017 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.8749986471924052
+ 4 6 12
+Direct
+ 0.0000000000000000 0.1514000000000001 0.5000000000000000 # W1
+ 0.5000000000000000 0.6514000000000001 0.0000000000000000 # W2
+ 0.0000000000000000 0.8486000000000002 0.5000000000000000 # W3
+ 0.5000000000000000 0.3486000000000000 0.0000000000000000 # W4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ir1
+ 0.0000000000000000 0.4055000000000000 0.5000000000000000 # Ir2
+ 0.5000000000000000 0.5000000000000002 0.5000000000000000 # Ir3
+ 0.5000000000000000 0.9055000000000001 0.0000000000000000 # Ir4
+ 0.0000000000000000 0.5945000000000000 0.5000000000000000 # Ir5
+ 0.5000000000000000 0.0944999999999998 0.0000000000000000 # Ir6
+ 0.2877999999999999 0.2199999999999999 0.0000000000000000 # B1
+ 0.1509999999999997 0.5000000000000002 0.0000000000000000 # B2
+ 0.7878000000000009 0.7200000000000001 0.5000000000000000 # B3
+ 0.6510000000000008 0.0000000000000000 0.5000000000000000 # B4
+ 0.7122000000000001 0.7800000000000001 0.0000000000000000 # B5
+ 0.8490000000000003 0.5000000000000002 0.0000000000000000 # B6
+ 0.2122000000000000 0.2800000000000000 0.5000000000000000 # B7
+ 0.3490000000000003 0.0000000000000000 0.5000000000000000 # B8
+ 0.2877999999999999 0.7800000000000001 0.0000000000000000 # B9
+ 0.7877999999999998 0.2800000000000000 0.5000000000000000 # B10
+ 0.7122000000000001 0.2199999999999999 0.0000000000000000 # B11
+ 0.2122000000000000 0.7200000000000001 0.5000000000000000 # B12
diff --git a/test/data/orthorhombic/POSCAR-071-2 b/test/data/orthorhombic/POSCAR-071-2
new file mode 100644
index 0000000..0bb5f5f
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-071-2
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 3.5419983333410485 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.6959940260016726 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8269981992366424
+ 2 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # V1
+ 0.4999999999999992 0.4999999999999998 0.5000000000000000 # V2
+ 0.4999999999999992 0.4999999999999998 0.0000000000000000 # O1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # O2
+ 0.0000000000000000 0.3649999999999999 0.5000000000000000 # Br1
+ 0.4999999999999992 0.8650000000000002 0.0000000000000000 # Br2
+ 0.0000000000000000 0.6349999999999998 0.5000000000000000 # Br3
+ 0.4999999999999992 0.1350000000000000 0.0000000000000000 # Br4
diff --git a/test/data/orthorhombic/POSCAR-072 b/test/data/orthorhombic/POSCAR-072
new file mode 100644
index 0000000..83eb411
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-072
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 15.9659924873300838 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.5009964704661733 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.8579977141080768
+ 24 20
+Direct
+ 0.1427000000000000 0.1133000000000003 0.0000000000000000 # V1
+ 0.4356000000000002 0.2458000000000003 0.0000000000000000 # V2
+ 0.3104000000000001 0.0000000000000000 0.2499999999999997 # V3
+ 0.6427000000000002 0.6133000000000004 0.4999999999999993 # V4
+ 0.8103999999999998 0.5000000000000000 0.7500000000000001 # V5
+ 0.8573000000000000 0.8867000000000005 0.0000000000000000 # V6
+ 0.5643999999999998 0.7542000000000005 0.0000000000000000 # V7
+ 0.6896000000000000 0.0000000000000000 0.7500000000000001 # V8
+ 0.3572999999999998 0.3867000000000004 0.4999999999999993 # V9
+ 0.0644000000000000 0.2541999999999998 0.4999999999999993 # V10
+ 0.1896000000000001 0.5000000000000000 0.2499999999999997 # V11
+ 0.1896000000000001 0.5000000000000000 0.7500000000000001 # V12
+ 0.3104000000000001 0.0000000000000000 0.7500000000000001 # V13
+ 0.9356000000000000 0.7458000000000002 0.4999999999999993 # V14
+ 0.8103999999999998 0.5000000000000000 0.2499999999999997 # V15
+ 0.1427000000000000 0.8867000000000005 0.4999999999999993 # V16
+ 0.4356000000000002 0.7542000000000005 0.4999999999999993 # V17
+ 0.6427000000000002 0.3866999999999997 0.0000000000000000 # V18
+ 0.9356000000000000 0.2541999999999998 0.0000000000000000 # V19
+ 0.8573000000000000 0.1133000000000003 0.4999999999999993 # V20
+ 0.5643999999999998 0.2458000000000003 0.4999999999999993 # V21
+ 0.6896000000000000 0.0000000000000000 0.2499999999999997 # V22
+ 0.3572999999999998 0.6133000000000004 0.0000000000000000 # V23
+ 0.0644000000000000 0.7458000000000002 0.0000000000000000 # V24
+ 0.2867999999999999 0.2985000000000004 0.0000000000000000 # Si1
+ 0.0641000000000002 0.4106000000000005 0.0000000000000000 # Si2
+ 0.0000000000000000 0.0000000000000000 0.2499999999999997 # Si3
+ 0.4999999999999998 0.5000000000000000 0.7500000000000001 # Si4
+ 0.7131999999999999 0.7015000000000003 0.0000000000000000 # Si5
+ 0.9358999999999998 0.5894000000000004 0.0000000000000000 # Si6
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # Si7
+ 0.2131999999999999 0.2015000000000003 0.4999999999999993 # Si8
+ 0.4359000000000000 0.0894000000000002 0.4999999999999993 # Si9
+ 0.7867999999999997 0.7985000000000004 0.4999999999999993 # Si10
+ 0.5640999999999999 0.9106000000000005 0.4999999999999993 # Si11
+ 0.2867999999999999 0.7015000000000003 0.4999999999999993 # Si12
+ 0.0641000000000002 0.5894000000000004 0.4999999999999993 # Si13
+ 0.7867999999999997 0.2015000000000003 0.0000000000000000 # Si14
+ 0.5640999999999999 0.0894000000000002 0.0000000000000000 # Si15
+ 0.4999999999999998 0.5000000000000000 0.2499999999999997 # Si16
+ 0.7131999999999999 0.2985000000000004 0.4999999999999993 # Si17
+ 0.9358999999999998 0.4106000000000005 0.4999999999999993 # Si18
+ 0.2131999999999999 0.7985000000000004 0.0000000000000000 # Si19
+ 0.4359000000000000 0.9106000000000005 0.0000000000000000 # Si20
diff --git a/test/data/orthorhombic/POSCAR-072-2 b/test/data/orthorhombic/POSCAR-072-2
new file mode 100644
index 0000000..f1926c1
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-072-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 5.9669971922772547 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.4799950687222410 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.4019974581333505
+ 4 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000005 # Zn1
+ 0.5000000000000000 0.5000000000000000 0.7500000000000004 # Zn2
+ 0.0000000000000000 0.0000000000000000 0.7500000000000004 # Zn3
+ 0.5000000000000000 0.5000000000000000 0.2500000000000005 # Zn4
+ 0.3679999999999998 0.1530000000000001 0.0000000000000000 # K1
+ 0.8679999999999997 0.6530000000000000 0.5000000000000000 # K2
+ 0.6319999999999993 0.8470000000000002 0.0000000000000000 # K3
+ 0.1320000000000002 0.3469999999999999 0.5000000000000000 # K4
+ 0.3679999999999998 0.8470000000000002 0.5000000000000000 # K5
+ 0.1320000000000002 0.6530000000000000 0.0000000000000000 # K6
+ 0.8679999999999997 0.3469999999999999 0.0000000000000000 # K7
+ 0.6319999999999993 0.1530000000000001 0.5000000000000000 # K8
+ 0.1970000000000003 0.9079999999999999 0.0000000000000000 # O1
+ 0.6969999999999993 0.4079999999999998 0.5000000000000000 # O2
+ 0.8029999999999996 0.0919999999999997 0.0000000000000000 # O3
+ 0.3029999999999997 0.5919999999999997 0.5000000000000000 # O4
+ 0.3029999999999997 0.4079999999999998 0.0000000000000000 # O5
+ 0.6969999999999993 0.5919999999999997 0.0000000000000000 # O6
+ 0.1970000000000003 0.0920000000000003 0.5000000000000000 # O7
+ 0.8029999999999996 0.9079999999999999 0.5000000000000000 # O8
diff --git a/test/data/orthorhombic/POSCAR-073 b/test/data/orthorhombic/POSCAR-073
new file mode 100644
index 0000000..09b23e1
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-073
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 8.2701961085254432 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.3114960890920688 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 20.6069903035457216
+ 8 8 80
+Direct
+ 0.5000000000000003 0.2500000000000000 0.1504000000000000 # I1
+ 0.5000000000000003 0.7500000000000000 0.8496000000000000 # I2
+ 0.0000000000000000 0.2500000000000000 0.3496000000000001 # I3
+ 0.0000000000000000 0.7500000000000000 0.6504000000000000 # I4
+ 0.5000000000000003 0.7500000000000000 0.3496000000000001 # I5
+ 0.0000000000000000 0.2500000000000000 0.8496000000000000 # I6
+ 0.5000000000000003 0.2500000000000000 0.6504000000000000 # I7
+ 0.0000000000000000 0.7500000000000000 0.1504000000000000 # I8
+ 0.0000000000000000 0.2500000000000000 0.0856000000000001 # Sb1
+ 0.0000000000000000 0.7500000000000000 0.9144000000000002 # Sb2
+ 0.5000000000000003 0.2500000000000000 0.4144000000000000 # Sb3
+ 0.5000000000000003 0.7500000000000000 0.5856000000000000 # Sb4
+ 0.0000000000000000 0.7500000000000000 0.4144000000000000 # Sb5
+ 0.5000000000000003 0.2500000000000000 0.9144000000000002 # Sb6
+ 0.0000000000000000 0.2500000000000000 0.5856000000000000 # Sb7
+ 0.5000000000000003 0.7500000000000000 0.0856000000000001 # Sb8
+ 0.3785999999999999 0.1313000000000001 0.2047000000000000 # F1
+ 0.3490000000000001 0.4031000000000002 0.1742000000000000 # F2
+ 0.0000000000000000 0.2500000000000000 -0.0039999999999999 # F3
+ 0.0000000000000000 0.2500000000000000 0.1752000000000001 # F4
+ 0.2237999999999998 0.2068999999999998 0.0857000000000000 # F5
+ 0.0438999999999998 0.4724999999999998 0.0852999999999999 # F6
+ -0.1213999999999998 0.6313000000000001 0.7047000000000001 # F7
+ -0.1510000000000002 0.9031000000000002 0.6742000000000001 # F8
+ 0.7238000000000002 0.7069000000000005 0.5857000000000001 # F9
+ 0.5439000000000001 0.9725000000000005 0.5853000000000000 # F10
+ 0.6214000000000001 0.8687000000000006 0.7953000000000001 # F11
+ 0.6510000000000006 0.5969000000000004 0.8258000000000001 # F12
+ 0.0000000000000000 0.7500000000000007 1.0040000000000000 # F13
+ 0.0000000000000000 0.7500000000000000 0.8248000000000000 # F14
+ -0.2237999999999998 0.7931000000000001 0.9143000000000002 # F15
+ -0.0438999999999998 0.5275000000000001 0.9147000000000002 # F16
+ 0.1213999999999998 0.3687000000000000 0.2953000000000001 # F17
+ 0.1510000000000002 0.0968999999999998 0.3257999999999999 # F18
+ 0.5000000000000003 0.2500000000000000 0.5040000000000000 # F19
+ 0.5000000000000003 0.2500000000000000 0.3248000000000000 # F20
+ 0.2761999999999998 0.2931000000000002 0.4143000000000002 # F21
+ 0.4560999999999999 0.0275000000000002 0.4147000000000000 # F22
+ 0.6214000000000001 0.3687000000000000 0.2047000000000000 # F23
+ 0.6509999999999998 0.0968999999999998 0.1742000000000000 # F24
+ -0.2237999999999998 0.2931000000000002 0.0857000000000000 # F25
+ -0.0438999999999998 0.0275000000000002 0.0852999999999999 # F26
+ 0.1213999999999998 0.8687000000000006 0.7047000000000001 # F27
+ 0.1510000000000002 0.5969000000000004 0.6742000000000001 # F28
+ 0.5000000000000003 0.7500000000000000 0.4960000000000000 # F29
+ 0.5000000000000003 0.7500000000000000 0.6752000000000002 # F30
+ 0.2762000000000005 0.7931000000000001 0.5857000000000001 # F31
+ 0.4561000000000006 0.5275000000000001 0.5853000000000000 # F32
+ 0.3786000000000005 0.6313000000000001 0.7953000000000001 # F33
+ 0.3490000000000001 0.9031000000000002 0.8258000000000001 # F34
+ 0.2238000000000005 0.7069000000000005 0.9143000000000002 # F35
+ 0.0439000000000004 0.9725000000000005 0.9147000000000002 # F36
+ -0.1213999999999998 0.1313000000000001 0.2953000000000001 # F37
+ -0.1510000000000002 0.4031000000000002 0.3257999999999999 # F38
+ 0.7238000000000002 0.2068999999999998 0.4143000000000002 # F39
+ 0.5439000000000001 0.4725000000000004 0.4147000000000000 # F40
+ 0.3785999999999999 0.8687000000000006 0.2953000000000001 # F41
+ 0.3490000000000001 0.5969000000000004 0.3257999999999999 # F42
+ 0.0000000000000000 0.7500000000000000 0.5040000000000000 # F43
+ 0.0000000000000000 0.7500000000000000 0.3248000000000000 # F44
+ 0.2238000000000005 0.7931000000000001 0.4143000000000002 # F45
+ 0.0439000000000004 0.5275000000000001 0.4147000000000000 # F46
+ -0.1213999999999998 0.3687000000000005 0.7953000000000001 # F47
+ -0.1510000000000002 0.0969000000000004 0.8258000000000001 # F48
+ 0.5000000000000003 0.2500000000000000 1.0040000000000000 # F49
+ 0.5000000000000003 0.2500000000000000 0.8248000000000000 # F50
+ 0.7238000000000002 0.2931000000000002 0.9143000000000002 # F51
+ 0.5439000000000001 0.0275000000000002 0.9147000000000002 # F52
+ 0.6214000000000001 0.1313000000000001 0.7047000000000001 # F53
+ 0.6510000000000006 0.4031000000000002 0.6742000000000001 # F54
+ 0.0000000000000000 0.2500000000000000 0.4960000000000000 # F55
+ 0.0000000000000000 0.2500000000000000 0.6752000000000002 # F56
+ -0.2237999999999998 0.2069000000000005 0.5857000000000001 # F57
+ -0.0438999999999998 0.4725000000000004 0.5853000000000000 # F58
+ 0.1213999999999998 0.6313000000000001 0.2047000000000000 # F59
+ 0.1510000000000002 0.9031000000000002 0.1742000000000000 # F60
+ 0.5000000000000003 0.7500000000000000 -0.0039999999999999 # F61
+ 0.5000000000000003 0.7500000000000000 0.1752000000000001 # F62
+ 0.2761999999999998 0.7069000000000005 0.0857000000000000 # F63
+ 0.4560999999999999 0.9725000000000005 0.0852999999999999 # F64
+ 0.1213999999999998 0.1313000000000001 0.7953000000000001 # F65
+ 0.1510000000000002 0.4031000000000002 0.8258000000000001 # F66
+ 0.2762000000000005 0.2069000000000005 0.9143000000000002 # F67
+ 0.4561000000000006 0.4725000000000004 0.9147000000000002 # F68
+ 0.6214000000000001 0.6313000000000001 0.2953000000000001 # F69
+ 0.6510000000000006 0.9031000000000002 0.3257999999999999 # F70
+ -0.2237999999999998 0.7069000000000005 0.4143000000000002 # F71
+ -0.0438999999999998 0.9725000000000005 0.4147000000000000 # F72
+ -0.1213999999999998 0.8687000000000006 0.2047000000000000 # F73
+ -0.1510000000000002 0.5968999999999998 0.1742000000000000 # F74
+ 0.7238000000000002 0.7931000000000001 0.0857000000000000 # F75
+ 0.5439000000000001 0.5275000000000001 0.0852999999999999 # F76
+ 0.3786000000000005 0.3687000000000005 0.7047000000000001 # F77
+ 0.3490000000000001 0.0969000000000004 0.6742000000000001 # F78
+ 0.2238000000000005 0.2931000000000002 0.5857000000000001 # F79
+ 0.0439000000000004 0.0275000000000002 0.5853000000000000 # F80
diff --git a/test/data/orthorhombic/POSCAR-073-2 b/test/data/orthorhombic/POSCAR-073-2
new file mode 100644
index 0000000..42c487b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-073-2
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 20.2299904809399713 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7499972943848165 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9499972002764601
+ 8 8 24 8
+Direct
+ 0.8179999999999999 0.0000000000000000 0.2500000000000002 # K1
+ 0.3179999999999999 0.5000000000000006 0.7500000000000007 # K2
+ 0.1820000000000001 0.0000000000000000 0.7500000000000007 # K3
+ 0.6819999999999999 0.4999999999999995 0.2500000000000002 # K4
+ 0.1819999999999999 0.4999999999999995 0.2500000000000002 # K5
+ 0.6819999999999999 0.0000000000000000 0.7500000000000007 # K6
+ 0.8179999999999999 0.5000000000000006 0.7500000000000007 # K7
+ 0.3179999999999999 0.0000000000000000 0.2500000000000002 # K8
+ 0.1220000000000001 0.0000000000000000 0.2500000000000002 # C1
+ 0.6219999999999999 0.5000000000000006 0.7500000000000007 # C2
+ 0.8780000000000001 0.0000000000000000 0.7500000000000007 # C3
+ 0.3780000000000000 0.4999999999999995 0.2500000000000002 # C4
+ 0.8780000000000001 0.4999999999999995 0.2500000000000002 # C5
+ 0.3780000000000000 0.0000000000000000 0.7500000000000007 # C6
+ 0.1220000000000001 0.5000000000000006 0.7500000000000007 # C7
+ 0.6219999999999999 0.0000000000000000 0.2500000000000002 # C8
+ 0.1869999999999999 0.0000000000000000 0.2500000000000002 # O1
+ 0.0889999999999999 0.1460000000000004 0.3780000000000006 # O2
+ 0.6870000000000003 0.5000000000000006 0.7500000000000007 # O3
+ 0.5890000000000000 0.6460000000000000 0.8780000000000001 # O4
+ 0.8130000000000002 0.0000000000000000 0.7500000000000007 # O5
+ 0.9109999999999999 0.8539999999999998 0.6220000000000004 # O6
+ 0.3130000000000001 0.4999999999999995 0.2500000000000002 # O7
+ 0.4110000000000001 0.3540000000000001 0.1220000000000000 # O8
+ 0.8130000000000002 0.4999999999999995 0.2500000000000002 # O9
+ 0.9109999999999999 0.3540000000000001 0.3780000000000006 # O10
+ 0.3130000000000001 0.0000000000000000 0.7500000000000007 # O11
+ 0.4110000000000001 0.8540000000000005 0.8780000000000001 # O12
+ 0.1869999999999999 0.5000000000000006 0.7500000000000007 # O13
+ 0.0889999999999999 0.8539999999999998 0.1220000000000000 # O14
+ 0.5890000000000000 0.3540000000000001 0.6220000000000004 # O15
+ 0.9109999999999999 0.1460000000000004 0.8780000000000001 # O16
+ 0.4110000000000001 0.6460000000000000 0.3780000000000006 # O17
+ 0.4110000000000001 0.1460000000000004 0.6220000000000004 # O18
+ 0.9109999999999999 0.6460000000000000 0.1220000000000000 # O19
+ 0.5890000000000000 0.8539999999999998 0.3780000000000006 # O20
+ 0.0889999999999999 0.3540000000000001 0.8780000000000001 # O21
+ 0.0889999999999999 0.6460000000000000 0.6220000000000004 # O22
+ 0.6870000000000003 0.0000000000000000 0.2500000000000002 # O23
+ 0.5890000000000000 0.1460000000000004 0.1220000000000000 # O24
+ 0.0000000000000000 0.2499999999999998 0.1280000000000002 # Ag1
+ 0.5000000000000001 0.7500000000000002 0.6280000000000007 # Ag2
+ 0.0000000000000000 0.7500000000000002 0.3720000000000002 # Ag3
+ 0.5000000000000001 0.2499999999999998 0.8720000000000008 # Ag4
+ 0.0000000000000000 0.2499999999999998 0.6280000000000007 # Ag5
+ 0.5000000000000001 0.7500000000000002 0.1280000000000002 # Ag6
+ 0.0000000000000000 0.7500000000000002 0.8720000000000008 # Ag7
+ 0.5000000000000001 0.2499999999999998 0.3720000000000002 # Ag8
diff --git a/test/data/orthorhombic/POSCAR-074 b/test/data/orthorhombic/POSCAR-074
new file mode 100644
index 0000000..49e982b
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-074
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 8.2479961189714714 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.4439946151199727 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6959973197940732
+ 16 8 32
+Direct
+ 0.2267999999999998 0.0000000000000000 0.7500000000000000 # Mg1
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000 # Mg2
+ 0.0000000000000000 0.3711000000000000 0.0000000000000000 # Mg3
+ 0.7267999999999998 0.5000000000000000 0.2500000000000003 # Mg4
+ 0.7500000000000001 0.7499999999999999 0.2500000000000003 # Mg5
+ 0.5000000000000000 0.8710999999999999 0.4999999999999995 # Mg6
+ 0.7731999999999997 0.0000000000000000 0.2500000000000003 # Mg7
+ 0.0000000000000000 0.6289000000000001 0.0000000000000000 # Mg8
+ 0.2732000000000003 0.5000000000000000 0.7500000000000000 # Mg9
+ 0.5000000000000000 0.1289000000000000 0.4999999999999995 # Mg10
+ 0.5000000000000000 0.1289000000000000 0.0000000000000000 # Mg11
+ 0.0000000000000000 0.3711000000000000 0.4999999999999995 # Mg12
+ 0.5000000000000000 0.8710999999999999 0.0000000000000000 # Mg13
+ 0.2500000000000000 0.7499999999999999 0.7500000000000000 # Mg14
+ 0.0000000000000000 0.6289000000000001 0.4999999999999995 # Mg15
+ 0.7500000000000001 0.2500000000000000 0.2500000000000003 # Mg16
+ 0.1295000000000003 0.1266000000000002 0.2500000000000003 # Si1
+ 0.6294999999999996 0.6266000000000003 0.7500000000000000 # Si2
+ 0.8705000000000004 0.8733999999999997 0.7500000000000000 # Si3
+ 0.3705000000000004 0.3733999999999998 0.2500000000000003 # Si4
+ 0.1295000000000003 -0.1265999999999997 0.2500000000000003 # Si5
+ 0.6294999999999996 0.3734000000000002 0.7500000000000000 # Si6
+ 0.8705000000000004 1.1266000000000000 0.7500000000000000 # Si7
+ 0.3705000000000004 0.6266000000000003 0.2500000000000003 # Si8
+ 0.0313000000000002 0.0000000000000000 0.2500000000000003 # O1
+ 0.5248000000000005 0.0000000000000000 0.2500000000000003 # O2
+ 0.0032000000000002 0.2362000000000000 0.2500000000000003 # O3
+ 0.2555999999999998 0.3752000000000000 0.0166999999999999 # O4
+ 0.5313000000000001 0.5000000000000000 0.7500000000000000 # O5
+ 0.0247999999999997 0.5000000000000000 0.7500000000000000 # O6
+ 0.5032000000000003 0.7362000000000000 0.7500000000000000 # O7
+ 0.7556000000000005 0.8752000000000001 0.5166999999999995 # O8
+ 0.9687000000000007 1.0000000000000000 0.7500000000000000 # O9
+ 0.4752000000000003 0.0000000000000000 0.7500000000000000 # O10
+ 0.9967999999999998 0.7637999999999998 0.7500000000000000 # O11
+ 0.7443999999999997 0.6248000000000000 0.9832999999999992 # O12
+ 0.4686999999999999 0.5000000000000000 0.2500000000000003 # O13
+ 0.9751999999999997 0.5000000000000000 0.2500000000000003 # O14
+ 0.4967999999999999 0.2637999999999999 0.2500000000000003 # O15
+ 0.2444000000000003 0.1248000000000000 0.4832999999999996 # O16
+ 0.7443999999999997 0.6248000000000000 0.5166999999999995 # O17
+ 0.2444000000000003 0.1248000000000000 0.0166999999999999 # O18
+ 0.2555999999999998 0.3752000000000000 0.4832999999999996 # O19
+ 0.7556000000000005 0.8752000000000001 0.9832999999999992 # O20
+ 0.0032000000000002 -0.2362000000000000 0.2500000000000003 # O21
+ 0.2555999999999998 0.6248000000000000 0.4832999999999996 # O22
+ 0.5032000000000003 0.2637999999999999 0.7500000000000000 # O23
+ 0.7556000000000005 1.1248000000000000 0.9832999999999992 # O24
+ 0.9967999999999998 1.2362000000000000 0.7500000000000000 # O25
+ 0.7443999999999997 0.3752000000000000 0.5166999999999995 # O26
+ 0.4968000000000005 0.7362000000000000 0.2500000000000003 # O27
+ 0.2444000000000003 -0.1248000000000000 0.0166999999999999 # O28
+ 0.7443999999999997 0.3752000000000000 0.9832999999999992 # O29
+ 0.2444000000000003 -0.1248000000000000 0.4832999999999996 # O30
+ 0.2555999999999998 0.6248000000000000 0.0166999999999999 # O31
+ 0.7556000000000005 1.1248000000000000 0.5166999999999995 # O32
diff --git a/test/data/orthorhombic/POSCAR-074-2 b/test/data/orthorhombic/POSCAR-074-2
new file mode 100644
index 0000000..e4e22cb
--- /dev/null
+++ b/test/data/orthorhombic/POSCAR-074-2
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 5.9119972181570528 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.9449972026291711 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3879960530956250
+ 12 16
+Direct
+ 0.0000000000000000 0.2500000000000005 0.1249999999999999 # Fe1
+ 0.2500000000000000 0.2500000000000005 0.7500000000000002 # Fe2
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # Fe3
+ 0.5000000000000000 0.7500000000000004 0.6249999999999994 # Fe4
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Fe5
+ 0.5000000000000000 0.2500000000000005 0.3749999999999998 # Fe6
+ 0.7499999999999998 0.2500000000000005 0.7500000000000002 # Fe7
+ 0.2500000000000000 0.7500000000000004 0.2499999999999998 # Fe8
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Fe9
+ 0.0000000000000000 0.7500000000000004 0.8750000000000001 # Fe10
+ 0.7499999999999998 0.7500000000000004 0.2499999999999998 # Fe11
+ 0.0000000000000000 0.5000000000000000 0.4999999999999997 # Fe12
+ 0.0000000000000000 0.5237000000000001 0.2444999999999999 # O1
+ 0.2445000000000002 0.2500000000000005 0.9850000000000000 # O2
+ 0.5000000000000000 0.0237000000000000 0.7445000000000002 # O3
+ 0.0000000000000000 0.4763000000000001 0.7555000000000002 # O4
+ 0.7554999999999997 0.7500000000000004 0.0150000000000000 # O5
+ 0.5000000000000000 0.9763000000000001 0.2554999999999998 # O6
+ 0.2554999999999997 0.2500000000000005 0.5149999999999997 # O7
+ 0.0000000000000000 0.9763000000000001 0.2444999999999999 # O8
+ 0.7554999999999997 0.2500000000000005 0.9850000000000000 # O9
+ 0.2554999999999997 0.7500000000000004 0.4849999999999997 # O10
+ 0.0000000000000000 0.0237000000000000 0.7555000000000002 # O11
+ 0.2445000000000002 0.7500000000000004 0.0150000000000000 # O12
+ 0.5000000000000000 0.5237000000000001 0.2554999999999998 # O13
+ 0.7444999999999992 0.2500000000000005 0.5149999999999997 # O14
+ 0.5000000000000000 0.4763000000000001 0.7445000000000002 # O15
+ 0.7444999999999992 0.7500000000000004 0.4849999999999997 # O16
diff --git a/test/data/others/spg/CONTCAR_1 b/test/data/others/spg/CONTCAR_1
new file mode 100644
index 0000000..2060475
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_1
@@ -0,0 +1,48 @@
+FINDSYM finds Cmc2_1
+ 1.00000000000000
+ 6.0566497821097043 0.3795121972298890 0.0416889858265167
+ 1.1892305190531443 2.6030960258193159 -0.0094870012677909
+ -0.5988630056472680 -1.2540077098048823 2.5018934392124548
+ 18 2
+Direct
+ 0.3595174582943753 0.5176827568981921 0.0012114976337420
+ 0.7225791892967559 0.5076971291774203 0.6481950697065459
+ 0.0698939458762775 0.4157742719950184 0.9274907124380144
+ 0.0697627563137735 0.8795223041070420 0.3935062668041655
+ 0.0599618376458357 0.3219093523037698 0.4920593659107028
+ 0.5700474147042542 0.5958569156889288 0.2483146452411631
+ 0.7564008059540728 0.8185841738045437 0.3032567839611864
+ 0.5858014370160861 0.2444031336587713 0.5946505820807004
+ 0.2566102910903806 0.2843150504257914 0.3371762409353116
+ 0.5858335854443069 0.6974200671154371 0.0481837256445709
+ 0.3901262038197285 0.1688711406511725 0.3189859356241224
+ 0.2225770912212840 0.6632539334212298 0.9928511728845461
+ 0.8899389874294216 0.6670256283206281 0.3214713883251348
+ 0.8594749399598607 0.3792242142205383 0.6392373425020790
+ 0.0856848206680562 0.2009593974856005 0.0460867402881626
+ 0.5697801939326591 0.0610201932622665 0.7130201663515697
+ 0.0861797032443645 0.7453681950826812 0.5932837305405847
+ 0.5600355158774711 0.1714650538951173 0.1461758468824457
+ 0.3424316793489581 0.8742328696958156 0.6616426675432113
+ 0.8425094428620844 0.0566577187900324 0.9787883487020472
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_2 b/test/data/others/spg/CONTCAR_2
new file mode 100644
index 0000000..b4dc926
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_2
@@ -0,0 +1,48 @@
+FINDSYM finds Pc
+ 1.00000000000000
+ 3.7668658779046242 -0.2526363169248627 -0.3909143489813395
+ 0.4126424943540823 7.5129095763967930 -0.0136225756754529
+ 0.6901112196345119 0.0603991507863854 7.4962532790130991
+ 4 4 12
+Direct
+ 0.9525215854179879 0.1735141612887874 0.7435424941602350
+ 0.9524739822599507 0.6735210653178597 0.2434632277491809
+ 0.9524597533682075 0.6768418642821685 0.7401677083403142
+ 0.9525357970439058 0.1768643727314607 0.2402074707235176
+ 0.5042814350986156 0.4060570640528923 0.9634950823257925
+ 0.5043776071753769 0.3971423498507791 0.4725044636138762
+ 0.5043541530369365 0.9061088755369511 0.4633792004988111
+ 0.5040377679741697 0.8970685669303987 0.9723981712277499
+ 0.4395713802410722 0.1877909978827128 0.7553060494815979
+ 0.9158719130536632 0.9307118467682090 0.2376235115863232
+ 0.4395653037379523 0.1883698213177756 0.2548042015674308
+ 0.4395074161919428 0.6883731372626732 0.7547580735678250
+ 0.9287250570758719 0.4298180259292276 0.2716754705129796
+ 0.9286085523637826 0.2048168416405981 0.9966170013660888
+ 0.9158232419533636 0.6707213209807763 0.9974502608217271
+ 0.9283827894076810 0.7047056862464066 0.4965602196967903
+ 0.9287713911515645 0.9298090277507504 0.7716838694177337
+ 0.9158562604089533 0.4306908021571946 0.7375890681822121
+ 0.4395130866383787 0.6878349360194402 0.2551439498569619
+ 0.9157795264006211 0.1707042360529422 0.4975145053028533
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_3 b/test/data/others/spg/CONTCAR_3
new file mode 100644
index 0000000..ddfe852
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_3
@@ -0,0 +1,48 @@
+FINDSYM finds Pc
+ 1.00000000000000
+ 3.7484850618560537 0.5179527621527573 0.2725676000178477
+ 2.5954120365612385 7.9478524331504028 0.7065992265067038
+ 3.1731369922769055 0.0785542643845797 7.7623356251774149
+ 4 4 12
+Direct
+ 0.4389346288864205 0.1795598238971019 0.7431541681120870
+ 0.4389412564990736 0.6795644110895200 0.2431557484978026
+ 0.9389356389821629 0.6765346698939011 0.7461778169618284
+ 0.9389501232170477 0.1765415445420275 0.2461756297366314
+ 0.3390501567323055 0.4481451150190989 0.0224142991053908
+ 0.8390147964137699 0.4563780753333657 0.5142060952865755
+ 0.3390152622678815 0.9481162864188853 0.5224106714099574
+ 0.8390355287372468 0.9564111778151828 0.0142011459673810
+ 0.9781846373640883 0.1649408017525918 0.7314431658862622
+ 0.2466718723094136 0.9231612147636865 0.2162428250409335
+ 0.4780695044177173 0.1643555753931630 0.2321488003074096
+ 0.4780507965806047 0.6643414392518678 0.7321621645020625
+ 0.7276808634381611 0.4223653701660671 0.2479653568307503
+ 0.2276784133946161 0.1810091104319382 0.9891980490356383
+ 0.7463791888996706 0.6492677818631516 0.9900013558969673
+ 0.2276808569331891 0.6810235977688703 0.4892004444024919
+ 0.7276847343627200 0.9223598206645673 0.7479570915952536
+ 0.2466458869191910 0.4231569924803437 0.7162315854213671
+ 0.9781965053169768 0.6649451293532957 0.2314368458367852
+ 0.7463983483277447 0.1492850621013686 0.4899991401664211
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_4 b/test/data/others/spg/CONTCAR_4
new file mode 100644
index 0000000..3b0821d
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_4
@@ -0,0 +1,48 @@
+FINDSYM finds Cm
+ 1.00000000000000
+ 3.0399837305035393 -0.2689430591255473 0.3854696358687387
+ 2.3242680883263844 8.9135745201241541 0.1859370039210433
+ 0.5019497901415106 1.1955705707455986 9.1769697990207320
+ 4 4 12
+Direct
+ 0.6365543883399805 0.2168683250241590 0.8349212688156322
+ 0.3180000041714035 0.9560280191806216 0.7340163351485731
+ 0.8777658498052986 0.1151121088405078 0.4550310878776788
+ 0.1065864621846289 0.0072121351676283 0.1059871883491276
+ 0.8956928686074498 0.3695383567748922 0.1624958578471075
+ 0.1922885604268676 0.4192789041684393 0.5205495216332791
+ 0.9488203816782870 0.5994115216774315 0.8292348064600047
+ 0.5898435066848926 0.7942902854820374 0.3520358955206325
+ 0.3599410765687004 0.2377653830839307 0.3669711624331613
+ 0.7524476676322344 0.0257219682341220 0.7953979917597759
+ 0.5759129909960143 0.1345892233591163 0.0382336680660868
+ 0.3676355339298624 0.7757062443086886 0.8147813248507079
+ 0.3917193637416118 0.5021606191740612 0.0381871115153924
+ 0.5565967621554688 0.5620020817252123 0.6498210853653984
+ 0.3938088061491354 0.9971691044555090 0.5413402125396135
+ 0.0109879077720433 0.0004392493049988 0.3040222591491542
+ 0.0915177347389307 0.3099506674339617 0.8313742862297122
+ 0.7396062065249935 0.2436662766992443 0.6014294689601524
+ 0.6674747362028992 0.8704642893766082 0.1224072925140652
+ 0.7367029916892964 0.5218437165288294 0.3287928749647472
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_5 b/test/data/others/spg/CONTCAR_5
new file mode 100644
index 0000000..c5fddcd
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_5
@@ -0,0 +1,48 @@
+FINDSYM finds C2
+ 1.00000000000000
+ 3.0862034428882930 -0.0061740449954627 0.0771065378323145
+ -0.0055817307757720 8.9378071882876462 1.0714808471957371
+ -1.7595384299272794 -1.6712253860455217 8.5174514397732199
+ 4 4 12
+Direct
+ 0.7547618719861585 0.3709352584036946 0.8230239017554005
+ 0.6443508030928182 0.5454740910209043 0.5381432194472726
+ 0.1062598885949522 0.2749413120284499 0.5336098522688195
+ 0.2905875486578091 0.1004206121165623 0.8185004046861083
+ 0.9297688542593573 0.1201878185036251 0.1619513616718719
+ 0.9384630226831360 0.5261913092938726 0.1947748632807444
+ 0.5712063114181114 0.9157174396752665 0.4936963142826873
+ 0.2526914069082718 0.7301215757162289 0.8629747740075776
+ 0.5885785991643846 0.2059496924559126 0.6821007421686507
+ 0.7830989072993487 0.5533003058122447 0.9262417846511573
+ 0.0822153391481205 0.4403736916886365 0.6739116006240883
+ 0.5463548945355902 0.3550867628012769 0.4390531475907071
+ 0.6649389611065935 0.7006297095938352 0.6814275044074063
+ 0.1645368528607244 0.9454748234433605 0.6751850183046780
+ 0.8271559009576183 0.0355078280357572 0.9145445869245249
+ 0.0848109682071294 0.6108859194665607 0.4420059034073893
+ 0.4382664209869460 0.9691193700624927 0.1822645552220600
+ 0.0368252033973344 0.0925606680223063 0.4302065522766315
+ 0.4262835864572549 0.6772099041761191 0.1738038318846121
+ 0.2896425582783375 0.2910093076828788 0.9171800811376110
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_6 b/test/data/others/spg/CONTCAR_6
new file mode 100644
index 0000000..32c76a4
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_6
@@ -0,0 +1,48 @@
+FINDSYM finds R3c
+ 1.00000000000000
+ 4.7942520956467618 1.8132449716985586 1.4056177222130293
+ 0.9704420851364433 5.2472757220847637 -0.0319252043134948
+ -0.7125145139300034 -5.2812187925442569 9.2463501243322401
+ 4 4 12
+Direct
+ 0.6132393258962139 0.5093212166281099 0.2491032478593813
+ 0.1132361501382182 0.5093253872552627 0.4991004961922642
+ 0.1132341501382161 0.5093273872552576 0.9991024961922591
+ 0.6132403258962114 0.5093212166281099 0.7491022478593767
+ 0.8835744293252432 0.9687073199303989 0.3841365540657756
+ 0.3835205431545627 0.9687223525994858 0.1341457509046580
+ 0.8835734293252457 0.9687103199303985 0.8841385540657777
+ 0.3835215431545673 0.9687213525994883 0.6341437509046559
+ 0.3128398967974319 0.0189254279547384 0.8640621686521445
+ 0.4039701697167126 0.4888677712238338 0.5989619684257496
+ 0.3128398967974319 0.0189276279547357 0.3640641686521466
+ 0.8128037616748905 0.5798935619454914 0.3945428636351558
+ 0.8429745940861260 0.5800730975794738 0.1445751729598932
+ 0.3429416892717691 0.4888120730264633 0.3489346460144048
+ 0.9040044399388294 0.0189382918567536 0.6140081312905754
+ 0.3429416892717691 0.4888120730264633 0.8489336460144074
+ 0.4039661697167156 0.4888687712238313 0.0989622684257531
+ 0.8429755940861234 0.5800750975794758 0.6445761729598907
+ 0.8128017616748885 0.5798945619454959 0.8945428636351559
+ 0.9040034399388319 0.0189356918567516 0.1140071312905779
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_7 b/test/data/others/spg/CONTCAR_7
new file mode 100644
index 0000000..2fd6ada
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_7
@@ -0,0 +1,48 @@
+FINDSYM finds R3c
+ 1.00000000000000
+ 5.2386732990927829 0.0620684076961739 -0.8967987333915093
+ 2.3679063142316981 4.4775818945618298 -1.6088112683742066
+ 1.7347298504277189 -3.6803835541052039 9.8687247185511779
+ 4 4 12
+Direct
+ 0.0962798210161998 0.5170843566615981 0.2630526154233745
+ 0.5962754807006138 0.5169623503816645 0.5130279899581097
+ 0.5963155510814035 0.5168358038460884 0.0129959699724357
+ 0.0962735166431018 0.5168407092014133 0.7629937318816394
+ 0.8261107796303290 0.0574718682112428 0.6684702093732453
+ 0.3261951799956889 0.0572013971333357 0.9184814857397195
+ 0.8261272244649722 0.0576268664705952 0.1684664169604693
+ 0.3261949383395789 0.0574370121569265 0.4184863275298087
+ 0.3964235407574523 0.0073884068532714 0.6229646864128351
+ 0.8963380376244441 0.4465043666947668 0.3729738986883339
+ 0.3965315636519186 0.0073811592615584 0.1230233097908227
+ 0.3056171906240864 0.5375565794150340 0.6232002983091213
+ 0.3662707565706725 0.5375237171031766 0.3731765041163740
+ 0.8664413937918374 0.4465521566853209 0.1231132123325286
+ 0.8054735826178311 0.0073840257945862 0.8731461553303717
+ 0.8664350177463623 0.4466318334241460 0.6230750692665478
+ 0.8963222349590436 0.4463498121000720 0.8730004106198560
+ 0.3662973036906439 0.5373795046009668 0.8731841025308469
+ 0.3055698460566810 0.5376042224815617 0.1232255686839733
+ 0.8055230400371350 0.0074671815226643 0.3731271370795857
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/CONTCAR_8 b/test/data/others/spg/CONTCAR_8
new file mode 100644
index 0000000..9e0eed3
--- /dev/null
+++ b/test/data/others/spg/CONTCAR_8
@@ -0,0 +1,48 @@
+FINDSYM finds Pm
+ 1.00000000000000
+ 8.0943599431500619 1.1192953662079574 0.2124852717787376
+ -0.3331047875897422 10.3307452998719995 0.5522385040675464
+ 1.5026702063150483 -0.1235835645426292 3.2318413332096600
+ 4 4 12
+Direct
+ 0.5628373386139545 0.4675279486619908 0.3736509412121640
+ 0.4144517745341517 0.2348839504977093 0.5228803782765324
+ 0.4577172623262692 0.0247176004582578 0.9797603510330830
+ 0.1107867235553859 0.4705593586175230 0.8264299232938191
+ 0.8519506300745351 0.2622720843991122 0.5849356368374070
+ 0.2671410488153801 0.7641324549232515 0.6702856042329719
+ 0.8707220647547756 0.9737561901565297 0.0675007311013605
+ 0.7625536988437068 0.6740848777320714 0.6740024400289993
+ 0.7049290678618302 0.9578321138681671 0.7330643295890477
+ 0.6462553590903216 0.2880401516311415 0.2907157922467546
+ 0.3320947671702134 0.8856945920034146 0.1050905796370375
+ 0.0042374676465210 0.3282885752447982 0.9327822996111709
+ 0.4773743661091608 0.0509088045564334 0.4600878046306823
+ 0.9241071631639931 0.6052235803192286 0.0127092421720842
+ 0.6761186536175543 0.4714987190072530 0.7608088486683141
+ 0.3675155533541983 0.1993459063454150 0.0699297342361592
+ 0.2504622934616821 0.6089222995292373 0.1869660354586283
+ 0.3471308203794815 0.4112918893853741 0.5898680554584943
+ 0.5406525716243471 0.6475069829949255 0.3959695386207170
+ 0.1231553750025310 0.5119387196681738 0.3139850336545835
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/others/spg/README b/test/data/others/spg/README
new file mode 100644
index 0000000..61b19b8
--- /dev/null
+++ b/test/data/others/spg/README
@@ -0,0 +1,8 @@
+CONTCAR_1:FINDSYM finds Cmc2_1
+CONTCAR_2:FINDSYM finds Pc
+CONTCAR_3:FINDSYM finds Pc
+CONTCAR_4:FINDSYM finds Cm
+CONTCAR_5:FINDSYM finds C2
+CONTCAR_6:FINDSYM finds R3c
+CONTCAR_7:FINDSYM finds R3c
+CONTCAR_8:FINDSYM finds Pm
diff --git a/test/data/test-all.zsh b/test/data/test-all.zsh
new file mode 100755
index 0000000..a0eb9dd
--- /dev/null
+++ b/test/data/test-all.zsh
@@ -0,0 +1,22 @@
+#!/usr/bin/zsh
+
+echo "Triclinic"
+./test-tricli.zsh $1
+
+echo "Monoclinic"
+./test-monocli.zsh $1
+
+echo "Orthorhombic"
+./test-ortho.zsh $1
+
+echo "Tetragonal"
+./test-tetra.zsh $1
+
+echo "Trigonal"
+./test-trigo.zsh $1
+
+echo "Hexagonal"
+./test-hexa.zsh $1
+
+echo "Cubic"
+./test-cubic.zsh $1
diff --git a/test/data/test-cubic.zsh b/test/data/test-cubic.zsh
new file mode 100755
index 0000000..1a0fcf0
--- /dev/null
+++ b/test/data/test-cubic.zsh
@@ -0,0 +1,38 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+for i in `/bin/ls cubic/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/test-hexa.zsh b/test/data/test-hexa.zsh
new file mode 100755
index 0000000..49449f0
--- /dev/null
+++ b/test/data/test-hexa.zsh
@@ -0,0 +1,39 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+#for i in `/bin/ls POSCAR-{070..100} POSCAR-{070..100}-2`;do
+for i in `/bin/ls hexagonal/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/test-monocli.zsh b/test/data/test-monocli.zsh
new file mode 100755
index 0000000..7819d8c
--- /dev/null
+++ b/test/data/test-monocli.zsh
@@ -0,0 +1,39 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+#for i in `/bin/ls POSCAR-{070..100} POSCAR-{070..100}-2`;do
+for i in `/bin/ls monoclinic/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/test-ortho.zsh b/test/data/test-ortho.zsh
new file mode 100755
index 0000000..4fc0028
--- /dev/null
+++ b/test/data/test-ortho.zsh
@@ -0,0 +1,39 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+#for i in `/bin/ls POSCAR-{070..100} POSCAR-{070..100}-2`;do
+for i in `/bin/ls orthorhombic/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -s 1e-5 -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/test-refined_symmetry.zsh b/test/data/test-refined_symmetry.zsh
new file mode 100755
index 0000000..1663e52
--- /dev/null
+++ b/test/data/test-refined_symmetry.zsh
@@ -0,0 +1,11 @@
+#!/bin/zsh
+
+for j in `/bin/ls -d *(/)`;do
+ echo $j
+ cd $j
+ for i in `ls POSCAR-*`;do
+ echo -n $i" "
+ ../../check_consistency.py $i
+ done
+cd ..
+done
diff --git a/test/data/test-tetra.zsh b/test/data/test-tetra.zsh
new file mode 100755
index 0000000..0bd3dbc
--- /dev/null
+++ b/test/data/test-tetra.zsh
@@ -0,0 +1,38 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+for i in `/bin/ls tetragonal/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/test-tricli.zsh b/test/data/test-tricli.zsh
new file mode 100755
index 0000000..9184113
--- /dev/null
+++ b/test/data/test-tricli.zsh
@@ -0,0 +1,39 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+#for i in `/bin/ls POSCAR-{070..100} POSCAR-{070..100}-2`;do
+for i in `/bin/ls triclinic/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/test-trigo.zsh b/test/data/test-trigo.zsh
new file mode 100755
index 0000000..29c0008
--- /dev/null
+++ b/test/data/test-trigo.zsh
@@ -0,0 +1,39 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../src/.libs
+export RUBYLIB=`pwd`/..
+
+findsym=$1
+# this is special check using findsym
+if [ x$findsym = "xfindsym" ]; then
+ export ISODATA=~/tools/isotropy/
+fi
+
+#for i in `/bin/ls POSCAR-{070..100} POSCAR-{070..100}-2`;do
+for i in `/bin/ls trigonal/POSCAR-*`;do
+ spg=`ruby ../symPoscar.rb -n $i`
+ numspg=`echo $spg|awk -F"(" '{print $2}'|sed s/\)//`
+ numposcar=`echo $i|awk -F"/" '{print $2}'|cut -c 8-10|awk '{print $1*1}'`
+
+ if [ x$findsym = "xfindsym" ]; then
+ numfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $3}'`
+# spgfindsym=`../poscar2findsym.rb $i | $ISODATA/findsym|grep Space|awk '{print $5}'`
+ fi
+
+ if [ $numspg = $numposcar ]; then
+ echo -n 'ok'
+ else
+ echo -n 'fail (' $numposcar ')'
+ fi
+
+ if [ x$findsym = "xfindsym" ]; then
+ if [ $numspg = $numfindsym ]; then
+ echo " ..." $spg '(ok)'
+ else
+ echo " ..." $spg ' fail (' $numfindsym ')'
+ fi
+ else
+ echo " ..." $spg
+ fi
+done
+
diff --git a/test/data/tetragonal/POSCAR-075 b/test/data/tetragonal/POSCAR-075
new file mode 100644
index 0000000..c3c9c98
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-075
@@ -0,0 +1,101 @@
+$cell vectors
+1.0
+ 17.4899917702244245 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 17.4899917702244245 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.9439981441832530
+ 24 64 6
+Direct
+ 0.0654000000000001 0.1357000000000001 0.0550000000000000 # Nb1
+ 0.0731000000000001 0.3740000000000000 0.0607999999999999 # Nb2
+ 0.2477999999999999 0.0674000000000001 0.0474000000000000 # Nb3
+ 0.2508999999999998 0.2601000000000000 0.0944999999999996 # Nb4
+ 0.4298999999999998 0.1421000000000001 0.0711000000000000 # Nb5
+ 0.4477999999999998 0.3558999999999998 0.0510000000000002 # Nb6
+ 0.8642999999999998 0.0654000000000001 0.0550000000000000 # Nb7
+ 0.6260000000000000 0.0731000000000001 0.0607999999999999 # Nb8
+ 0.9326000000000000 0.2477999999999999 0.0474000000000000 # Nb9
+ 0.7398999999999998 0.2508999999999998 0.0944999999999996 # Nb10
+ 0.8578999999999999 0.4298999999999998 0.0711000000000000 # Nb11
+ 0.6441000000000000 0.4477999999999998 0.0510000000000002 # Nb12
+ 0.9346000000000000 0.8642999999999998 0.0550000000000000 # Nb13
+ 0.9268999999999999 0.6260000000000000 0.0607999999999999 # Nb14
+ 0.7522000000000001 0.9326000000000000 0.0474000000000000 # Nb15
+ 0.7491000000000001 0.7398999999999998 0.0944999999999996 # Nb16
+ 0.5701000000000002 0.8578999999999999 0.0711000000000000 # Nb17
+ 0.5521999999999999 0.6441000000000000 0.0510000000000002 # Nb18
+ 0.1357000000000001 0.9346000000000000 0.0550000000000000 # Nb19
+ 0.3740000000000000 0.9268999999999999 0.0607999999999999 # Nb20
+ 0.0674000000000001 0.7521999999999999 0.0474000000000000 # Nb21
+ 0.2601000000000000 0.7491000000000001 0.0944999999999996 # Nb22
+ 0.1421000000000001 0.5701000000000002 0.0711000000000000 # Nb23
+ 0.3559000000000001 0.5521999999999999 0.0510000000000002 # Nb24
+ 0.1357000000000001 0.0447999999999999 0.1130000000000006 # O1
+ 0.3721999999999998 0.0430000000000000 0.0930000000000000 # O2
+ 0.1825999999999999 0.1695999999999998 0.0329999999999995 # O3
+ 0.3173000000000001 0.1770000000000000 0.1210000000000003 # O4
+ 0.0427999999999999 0.2473000000000000 0.0249999999999998 # O5
+ 0.4739999999999998 0.2453000000000001 0.0910000000000001 # O6
+ 0.1696000000000002 0.3463999999999998 0.0209999999999999 # O7
+ 0.3332000000000001 0.3277000000000000 0.1349999999999998 # O8
+ 0.0865000000000002 0.4717999999999998 0.1009999999999997 # O9
+ 0.3993000000000002 0.4644999999999999 0.1210000000000003 # O10
+ 0.0688000000000000 0.1340000000000000 0.5740000000000006 # O11
+ 0.2501999999999999 0.0766000000000002 0.5530000000000007 # O12
+ 0.4308000000000001 0.1419000000000001 0.5510000000000008 # O13
+ 0.2503000000000001 0.2649000000000001 0.5520000000000002 # O14
+ 0.0634000000000001 0.3668000000000000 0.5639999999999996 # O15
+ 0.4362000000000000 0.3542000000000000 0.5619999999999997 # O16
+ 0.9551999999999996 0.1357000000000001 0.1130000000000006 # O17
+ 0.9570000000000000 0.3721999999999998 0.0930000000000000 # O18
+ 0.8303999999999997 0.1825999999999999 0.0329999999999995 # O19
+ 0.8230000000000000 0.3173000000000001 0.1210000000000003 # O20
+ 0.7527000000000000 0.0427999999999999 0.0249999999999998 # O21
+ 0.7546999999999999 0.4739999999999998 0.0910000000000001 # O22
+ 0.6535999999999998 0.1695999999999998 0.0209999999999999 # O23
+ 0.6722999999999999 0.3332000000000001 0.1349999999999998 # O24
+ 0.5281999999999998 0.0864999999999999 0.1009999999999997 # O25
+ 0.5354999999999998 0.3992999999999998 0.1210000000000003 # O26
+ 0.8660000000000000 0.0688000000000000 0.5740000000000006 # O27
+ 0.9234000000000000 0.2501999999999999 0.5530000000000007 # O28
+ 0.8580999999999999 0.4308000000000001 0.5510000000000008 # O29
+ 0.7351000000000000 0.2503000000000001 0.5520000000000002 # O30
+ 0.6332000000000002 0.0634000000000001 0.5639999999999996 # O31
+ 0.6457999999999997 0.4362000000000000 0.5619999999999997 # O32
+ 0.8643000000000003 0.9551999999999996 0.1130000000000006 # O33
+ 0.6277999999999999 0.9570000000000000 0.0930000000000000 # O34
+ 0.8174000000000001 0.8303999999999997 0.0329999999999995 # O35
+ 0.6826999999999999 0.8230000000000000 0.1210000000000003 # O36
+ 0.9572000000000001 0.7527000000000000 0.0249999999999998 # O37
+ 0.5259999999999998 0.7546999999999999 0.0910000000000001 # O38
+ 0.8303999999999997 0.6535999999999998 0.0209999999999999 # O39
+ 0.6667999999999998 0.6722999999999999 0.1349999999999998 # O40
+ 0.9134999999999998 0.5281999999999998 0.1009999999999997 # O41
+ 0.6006999999999998 0.5354999999999998 0.1210000000000003 # O42
+ 0.9311999999999998 0.8660000000000000 0.5740000000000006 # O43
+ 0.7498000000000001 0.9234000000000000 0.5530000000000007 # O44
+ 0.5691999999999998 0.8580999999999999 0.5510000000000008 # O45
+ 0.7496999999999998 0.7351000000000000 0.5520000000000002 # O46
+ 0.9366000000000000 0.6332000000000002 0.5639999999999996 # O47
+ 0.5638000000000000 0.6457999999999997 0.5619999999999997 # O48
+ 0.0447999999999999 0.8642999999999998 0.1130000000000006 # O49
+ 0.0430000000000000 0.6277999999999999 0.0930000000000000 # O50
+ 0.1696000000000002 0.8173999999999999 0.0329999999999995 # O51
+ 0.1770000000000000 0.6826999999999999 0.1210000000000003 # O52
+ 0.2473000000000000 0.9572000000000001 0.0249999999999998 # O53
+ 0.2453000000000001 0.5259999999999998 0.0910000000000001 # O54
+ 0.3464000000000000 0.8303999999999997 0.0209999999999999 # O55
+ 0.3277000000000000 0.6667999999999998 0.1349999999999998 # O56
+ 0.4718000000000002 0.9134999999999998 0.1009999999999997 # O57
+ 0.4644999999999999 0.6006999999999998 0.1210000000000003 # O58
+ 0.1340000000000000 0.9311999999999998 0.5740000000000006 # O59
+ 0.0766000000000002 0.7498000000000001 0.5530000000000007 # O60
+ 0.1419000000000001 0.5691999999999998 0.5510000000000008 # O61
+ 0.2649000000000001 0.7496999999999998 0.5520000000000002 # O62
+ 0.3668000000000000 0.9366000000000000 0.5639999999999996 # O63
+ 0.3542000000000000 0.5638000000000000 0.5619999999999997 # O64
+ 0.2588000000000000 0.4238999999999999 0.5330000000000003 # Na1
+ 0.4999999999999999 0.0000000000000000 0.6699999999999999 # Na2
+ 0.5761000000000001 0.2588000000000000 0.5330000000000003 # Na3
+ 0.7412000000000001 0.5761000000000001 0.5330000000000003 # Na4
+ 0.4238999999999999 0.7412000000000001 0.5330000000000003 # Na5
+ 0.0000000000000000 0.4999999999999999 0.6699999999999999 # Na6
diff --git a/test/data/tetragonal/POSCAR-075-2 b/test/data/tetragonal/POSCAR-075-2
new file mode 100644
index 0000000..011c0f2
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-075-2
@@ -0,0 +1,67 @@
+$cell vectors
+1.0
+ 9.1969956724273310 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.1969956724273310 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 20.5049903515409824
+ 48 12
+Direct
+ 0.2222000000000000 0.0975000000000003 0.9990000000000000 # Te1
+ 0.0906000000000001 0.2432999999999997 0.1683000000000000 # Te2
+ 0.2470999999999998 0.0855000000000000 0.3292999999999999 # Te3
+ 0.0979000000000001 0.2194000000000005 0.5000000000000001 # Te4
+ 0.2433000000000003 0.0913000000000000 0.6680000000000000 # Te5
+ 0.0864000000000003 0.2450000000000002 0.8329999999999999 # Te6
+ 0.7442000000000002 0.5849000000000004 0.9990000000000000 # Te7
+ 0.5944000000000003 0.7346000000000001 0.1626999999999997 # Te8
+ 0.7199000000000001 0.5964000000000002 0.3307000000000001 # Te9
+ 0.5840000000000002 0.7464000000000000 0.4999000000000000 # Te10
+ 0.7339000000000002 0.5940000000000000 0.6623000000000002 # Te11
+ 0.5954999999999999 0.7240000000000001 0.8326000000000000 # Te12
+ 0.9024999999999999 0.2222000000000005 0.9990000000000000 # Te13
+ 0.7567000000000000 0.0906000000000001 0.1683000000000000 # Te14
+ 0.9144999999999998 0.2471000000000003 0.3292999999999999 # Te15
+ 0.7806000000000003 0.0979000000000001 0.5000000000000001 # Te16
+ 0.9087000000000003 0.2433000000000003 0.6680000000000000 # Te17
+ 0.7550000000000001 0.0864000000000003 0.8329999999999999 # Te18
+ 0.4151000000000004 0.7442000000000002 0.9990000000000000 # Te19
+ 0.2654000000000001 0.5944000000000003 0.1626999999999997 # Te20
+ 0.4036000000000000 0.7199000000000001 0.3307000000000001 # Te21
+ 0.2536000000000002 0.5840000000000002 0.4999000000000000 # Te22
+ 0.4060000000000003 0.7339000000000002 0.6623000000000002 # Te23
+ 0.2760000000000001 0.5955000000000005 0.8326000000000000 # Te24
+ 0.7778000000000003 0.9024999999999999 0.9990000000000000 # Te25
+ 0.9094000000000001 0.7567000000000000 0.1683000000000000 # Te26
+ 0.7528999999999998 0.9144999999999998 0.3292999999999999 # Te27
+ 0.9021000000000001 0.7806000000000003 0.5000000000000001 # Te28
+ 0.7567000000000000 0.9087000000000003 0.6680000000000000 # Te29
+ 0.9136000000000000 0.7550000000000001 0.8329999999999999 # Te30
+ 0.2558000000000000 0.4151000000000004 0.9990000000000000 # Te31
+ 0.4056000000000000 0.2654000000000001 0.1626999999999997 # Te32
+ 0.2801000000000002 0.4036000000000000 0.3307000000000001 # Te33
+ 0.4160000000000001 0.2536000000000002 0.4999000000000000 # Te34
+ 0.2660999999999999 0.4060000000000003 0.6623000000000002 # Te35
+ 0.4045000000000003 0.2760000000000001 0.8326000000000000 # Te36
+ 0.0975000000000003 0.7778000000000003 0.9990000000000000 # Te37
+ 0.2432999999999997 0.9094000000000001 0.1683000000000000 # Te38
+ 0.0855000000000000 0.7528999999999998 0.3292999999999999 # Te39
+ 0.2193999999999999 0.9021000000000001 0.5000000000000001 # Te40
+ 0.0913000000000000 0.7567000000000000 0.6680000000000000 # Te41
+ 0.2450000000000002 0.9136000000000000 0.8329999999999999 # Te42
+ 0.5848999999999999 0.2558000000000000 0.9990000000000000 # Te43
+ 0.7346000000000001 0.4056000000000000 0.1626999999999997 # Te44
+ 0.5964000000000002 0.2801000000000002 0.3307000000000001 # Te45
+ 0.7464000000000000 0.4160000000000001 0.4999000000000000 # Te46
+ 0.5940000000000000 0.2660999999999999 0.6623000000000002 # Te47
+ 0.7240000000000001 0.4045000000000003 0.8326000000000000 # Te48
+ 0.0000000000000000 0.0000000000000000 0.0969000000000000 # Nb1
+ 0.0000000000000000 0.0000000000000000 0.2516999999999999 # Nb2
+ 0.0000000000000000 0.0000000000000000 0.4013999999999999 # Nb3
+ 0.0000000000000000 0.0000000000000000 0.5929000000000001 # Nb4
+ 0.0000000000000000 0.0000000000000000 0.7512000000000001 # Nb5
+ 0.0000000000000000 0.0000000000000000 0.9067000000000001 # Nb6
+ 0.5000000000000000 0.5000000000000000 0.0773999999999998 # Nb7
+ 0.5000000000000000 0.5000000000000000 0.2375999999999998 # Nb8
+ 0.5000000000000000 0.5000000000000000 0.4285999999999999 # Nb9
+ 0.5000000000000000 0.5000000000000000 0.5778000000000000 # Nb10
+ 0.5000000000000000 0.5000000000000000 0.7349999999999999 # Nb11
+ 0.5000000000000000 0.5000000000000000 0.9250000000000002 # Nb12
diff --git a/test/data/tetragonal/POSCAR-076 b/test/data/tetragonal/POSCAR-076
new file mode 100644
index 0000000..ddb93b1
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-076
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 3.9809981267732071 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.9809981267732071 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.3499927771838127
+ 4 4 8
+Direct
+ 0.1525000000000006 0.1538999999999999 0.8750000000000002 # La1
+ 0.8461000000000001 0.1525000000000006 0.1250000000000001 # La2
+ 0.8475000000000008 0.8461000000000001 0.3750000000000001 # La3
+ 0.1538999999999999 0.8475000000000008 0.6250000000000002 # La4
+ 0.3422000000000004 0.3481000000000001 0.4687000000000001 # Rh1
+ 0.6518999999999999 0.3422000000000004 0.7187000000000001 # Rh2
+ 0.6578000000000008 0.6519000000000011 0.9687000000000002 # Rh3
+ 0.3481000000000001 0.6578000000000008 0.2187000000000000 # Rh4
+ 0.6430000000000000 0.3270000000000001 0.5840000000000000 # C1
+ 0.8530000000000008 0.3590000000000006 0.5160000000000000 # C2
+ 0.6729999999999999 0.6430000000000000 0.8340000000000001 # C3
+ 0.6410000000000007 0.8530000000000008 0.7660000000000001 # C4
+ 0.3569999999999999 0.6729999999999999 0.0840000000000002 # C5
+ 0.1470000000000006 0.6410000000000007 0.0159999999999999 # C6
+ 0.3270000000000001 0.3569999999999999 0.3340000000000000 # C7
+ 0.3590000000000006 0.1470000000000006 0.2660000000000000 # C8
diff --git a/test/data/tetragonal/POSCAR-076-2 b/test/data/tetragonal/POSCAR-076-2
new file mode 100644
index 0000000..90ac430
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-076-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 8.4479960248631158 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4479960248631158 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.9119929832811131
+ 12 4 20
+Direct
+ 0.9942000000000004 0.8074000000000005 0.8029999999999998 # Tl1
+ 0.1212000000000002 0.3198000000000004 0.8785999999999998 # Tl2
+ 0.6216000000000004 0.1804000000000001 0.8210999999999999 # Tl3
+ 0.1926000000000000 0.9942000000000004 0.0529999999999999 # Tl4
+ 0.6802000000000004 0.1212000000000002 0.1285999999999999 # Tl5
+ 0.8196000000000006 0.6216000000000004 0.0710999999999999 # Tl6
+ 0.0058000000000003 0.1926000000000000 0.3030000000000000 # Tl7
+ 0.8788000000000005 0.6802000000000004 0.3786000000000000 # Tl8
+ 0.3784000000000002 0.8196000000000006 0.3211000000000001 # Tl9
+ 0.8074000000000005 0.0058000000000003 0.5530000000000002 # Tl10
+ 0.3198000000000004 0.8788000000000005 0.6286000000000002 # Tl11
+ 0.1804000000000001 0.3784000000000002 0.5711000000000002 # Tl12
+ 0.4940000000000005 0.6936000000000004 0.8963000000000001 # Pb1
+ 0.3064000000000002 0.4939999999999998 0.1463000000000001 # Pb2
+ 0.5060000000000001 0.3064000000000002 0.3963000000000002 # Pb3
+ 0.6936000000000004 0.5060000000000001 0.6463000000000000 # Pb4
+ 0.3370000000000002 0.1570000000000004 0.2310000000000001 # Cl1
+ 0.6870000000000003 0.0080000000000001 0.3539999999999999 # Cl2
+ 0.0259999999999998 0.8390000000000002 0.2100000000000000 # Cl3
+ 0.5280000000000005 0.6500000000000007 0.5079999999999998 # Cl4
+ 0.4899999999999998 0.8060000000000006 0.1079999999999999 # Cl5
+ 0.8430000000000003 0.3370000000000002 0.4809999999999998 # Cl6
+ 0.9920000000000004 0.6870000000000003 0.6039999999999999 # Cl7
+ 0.1610000000000004 0.0259999999999998 0.4600000000000000 # Cl8
+ 0.3500000000000000 0.5280000000000005 0.7580000000000000 # Cl9
+ 0.1940000000000000 0.4900000000000005 0.3580000000000001 # Cl10
+ 0.6630000000000005 0.8430000000000003 0.7310000000000000 # Cl11
+ 0.3130000000000004 0.9920000000000004 0.8540000000000002 # Cl12
+ 0.9740000000000003 0.1610000000000004 0.7099999999999999 # Cl13
+ 0.4720000000000001 0.3500000000000000 0.0080000000000000 # Cl14
+ 0.5100000000000002 0.1940000000000000 0.6080000000000001 # Cl15
+ 0.1570000000000004 0.6630000000000005 0.9809999999999997 # Cl16
+ 0.0080000000000001 0.3129999999999998 0.1040000000000001 # Cl17
+ 0.8390000000000002 0.9740000000000009 0.9599999999999999 # Cl18
+ 0.6500000000000007 0.4720000000000001 0.2580000000000001 # Cl19
+ 0.8060000000000006 0.5100000000000002 0.8579999999999999 # Cl20
diff --git a/test/data/tetragonal/POSCAR-077 b/test/data/tetragonal/POSCAR-077
new file mode 100644
index 0000000..9305b67
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-077
@@ -0,0 +1,119 @@
+$cell vectors
+1.0
+ 11.1639947468716674 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.1639947468716674 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.6379949943766423
+ 8 12 16 28 48
+Direct
+ 0.9138999999999998 0.0860000000000001 0.2148000000000002 # Cu1
+ 0.5851000000000000 0.4148000000000002 0.0551999999999998 # Cu2
+ 0.9140000000000000 0.9138999999999998 0.7147999999999999 # Cu3
+ 0.5851999999999999 0.5851000000000000 0.5551999999999999 # Cu4
+ 0.0861000000000001 0.9140000000000000 0.2148000000000002 # Cu5
+ 0.4149000000000002 0.5851999999999999 0.0551999999999998 # Cu6
+ 0.0860000000000001 0.0861000000000001 0.7147999999999999 # Cu7
+ 0.4147999999999996 0.4149000000000002 0.5551999999999999 # Cu8
+ 0.1225000000000000 0.1225000000000000 0.1574000000000001 # S1
+ 0.6244000000000000 0.6244000000000000 0.9979999999999996 # S2
+ 0.6947000000000002 0.3052000000000002 0.9119999999999997 # S3
+ 0.8775000000000001 0.1225000000000000 0.6573999999999998 # S4
+ 0.3756000000000000 0.6244000000000000 0.4979999999999999 # S5
+ 0.6948000000000002 0.6947000000000002 0.4120000000000001 # S6
+ 0.8775000000000001 0.8775000000000001 0.1574000000000001 # S7
+ 0.3756000000000000 0.3756000000000000 0.9979999999999996 # S8
+ 0.3052999999999998 0.6948000000000002 0.9119999999999997 # S9
+ 0.1225000000000000 0.8775000000000001 0.6573999999999998 # S10
+ 0.6244000000000000 0.3756000000000000 0.4979999999999999 # S11
+ 0.3051999999999998 0.3053000000000003 0.4120000000000001 # S12
+ 0.8907000000000003 0.1093000000000003 0.3934000000000000 # N1
+ 0.6088000000000002 0.3911999999999998 0.2347000000000000 # N2
+ 0.8233999999999996 0.1765999999999998 0.0901999999999998 # N3
+ 1.0000000000000000 0.5000000000000000 0.2422000000000001 # N4
+ 0.8907000000000003 0.8907000000000003 0.8933999999999996 # N5
+ 0.6088000000000002 0.6088000000000002 0.7346999999999998 # N6
+ 0.8233999999999996 0.8233999999999996 0.5901999999999999 # N7
+ 0.5000000000000000 1.0000000000000000 0.7421999999999997 # N8
+ 0.1092999999999998 0.8907000000000003 0.3934000000000000 # N9
+ 0.3911999999999998 0.6088000000000002 0.2347000000000000 # N10
+ 0.1766000000000003 0.8233999999999996 0.0901999999999998 # N11
+ 0.1092999999999998 0.1093000000000003 0.8933999999999996 # N12
+ 0.3911999999999998 0.3911999999999998 0.7346999999999998 # N13
+ 0.1765999999999998 0.1766000000000003 0.5901999999999999 # N14
+ 0.0000000000000000 0.5000000000000000 0.7421999999999997 # N15
+ 0.5000000000000000 0.0000000000000000 0.2422000000000001 # N16
+ 0.1132999999999998 0.1132999999999998 0.0014999999999998 # C1
+ 0.6142000000000000 0.6142000000000000 0.8419999999999997 # C2
+ 0.7715000000000002 0.2285000000000000 0.0164999999999999 # C3
+ 1.0434000000000001 0.6011999999999998 0.3208999999999999 # C4
+ 1.1005000000000003 0.4577000000000002 0.1612000000000001 # C5
+ 0.8867000000000002 0.1132999999999998 0.5015000000000001 # C6
+ 0.3858000000000000 0.6142000000000000 0.3419999999999996 # C7
+ 0.7715000000000002 0.7715000000000002 0.5165000000000001 # C8
+ 0.3988000000000002 1.0434000000000005 0.8208999999999995 # C9
+ 0.5422999999999998 1.1005000000000003 0.6611999999999998 # C10
+ 0.8867000000000002 0.8867000000000002 0.0014999999999998 # C11
+ 0.3858000000000000 0.3858000000000000 0.8419999999999997 # C12
+ 0.2285000000000000 0.7715000000000002 0.0164999999999999 # C13
+ 0.9565999999999999 0.3988000000000002 0.3208999999999999 # C14
+ 0.8994999999999999 0.5422999999999998 0.1612000000000001 # C15
+ 0.1133000000000002 0.8867000000000002 0.5015000000000001 # C16
+ 0.6142000000000000 0.3858000000000000 0.3419999999999996 # C17
+ 0.2285000000000000 0.2285000000000000 0.5165000000000001 # C18
+ 0.6012000000000003 0.9565999999999999 0.8208999999999995 # C19
+ 0.4577000000000002 0.8994999999999999 0.6611999999999998 # C20
+ -0.0434000000000001 0.6011999999999998 0.8208999999999995 # C21
+ -0.1005000000000001 0.4577000000000002 0.6611999999999998 # C22
+ 0.0434000000000001 0.3988000000000002 0.8208999999999995 # C23
+ 0.1005000000000001 0.5422999999999998 0.6611999999999998 # C24
+ 0.3988000000000002 -0.0434000000000001 0.3208999999999999 # C25
+ 0.5422999999999998 -0.1005000000000001 0.1612000000000001 # C26
+ 0.6011999999999998 0.0434000000000001 0.3208999999999999 # C27
+ 0.4577000000000002 0.1005000000000001 0.1612000000000001 # C28
+ 1.1097999999999999 0.5764000000000001 0.3705000000000000 # H1
+ 1.0671000000000002 0.6654000000000001 0.2675999999999998 # H2
+ 0.9805000000000001 0.6272000000000002 0.3744999999999999 # H3
+ 1.0765000000000002 0.3916999999999999 0.1106000000000002 # H4
+ 1.1234999999999997 0.5225000000000000 0.1084999999999999 # H5
+ 1.1665000000000003 0.4348000000000000 0.2124999999999999 # H6
+ 0.4236000000000003 1.1097999999999999 0.8704999999999996 # H7
+ 0.3346000000000000 1.0671000000000002 0.7675999999999999 # H8
+ 0.3728000000000003 0.9805000000000001 0.8744999999999995 # H9
+ 0.6083000000000001 1.0765000000000002 0.6105999999999998 # H10
+ 0.4775000000000000 1.1234999999999997 0.6084999999999996 # H11
+ 0.5651999999999999 1.1665000000000003 0.7124999999999996 # H12
+ 0.8902000000000002 0.4235999999999998 0.3705000000000000 # H13
+ 0.9329000000000003 0.3346000000000000 0.2675999999999998 # H14
+ 1.0194999999999996 0.3727999999999999 0.3744999999999999 # H15
+ 0.9234999999999999 0.6083000000000001 0.1106000000000002 # H16
+ 0.8764999999999997 0.4775000000000000 0.1084999999999999 # H17
+ 0.8334999999999997 0.5651999999999999 0.2124999999999999 # H18
+ 0.5764000000000001 0.8902000000000002 0.8704999999999996 # H19
+ 0.6654000000000001 0.9329000000000006 0.7675999999999999 # H20
+ 0.6272000000000002 1.0194999999999996 0.8744999999999995 # H21
+ 0.3916999999999999 0.9234999999999999 0.6105999999999998 # H22
+ 0.5225000000000000 0.8764999999999997 0.6084999999999996 # H23
+ 0.4348000000000000 0.8334999999999997 0.7124999999999996 # H24
+ -0.1097999999999999 0.5764000000000001 0.8704999999999996 # H25
+ -0.0671000000000000 0.6654000000000001 0.7675999999999999 # H26
+ 0.0195000000000003 0.6272000000000002 0.8744999999999995 # H27
+ -0.0764999999999997 0.3916999999999999 0.6105999999999998 # H28
+ -0.1234999999999998 0.5225000000000000 0.6084999999999996 # H29
+ -0.1665000000000003 0.4348000000000000 0.7124999999999996 # H30
+ 0.1097999999999999 0.4236000000000003 0.8704999999999996 # H31
+ 0.0671000000000000 0.3346000000000000 0.7675999999999999 # H32
+ -0.0194999999999998 0.3727999999999999 0.8744999999999995 # H33
+ 0.0765000000000002 0.6083000000000001 0.6105999999999998 # H34
+ 0.1235000000000002 0.4775000000000000 0.6084999999999996 # H35
+ 0.1665000000000003 0.5651999999999999 0.7124999999999996 # H36
+ 0.4235999999999998 -0.1097999999999999 0.3705000000000000 # H37
+ 0.3346000000000000 -0.0671000000000000 0.2675999999999998 # H38
+ 0.3727999999999999 0.0194999999999998 0.3744999999999999 # H39
+ 0.6083000000000001 -0.0765000000000002 0.1106000000000002 # H40
+ 0.4775000000000000 -0.1234999999999998 0.1084999999999999 # H41
+ 0.5651999999999999 -0.1665000000000003 0.2124999999999999 # H42
+ 0.5764000000000001 0.1097999999999999 0.3705000000000000 # H43
+ 0.6654000000000001 0.0671000000000000 0.2675999999999998 # H44
+ 0.6272000000000002 -0.0194999999999998 0.3744999999999999 # H45
+ 0.3916999999999999 0.0765000000000002 0.1106000000000002 # H46
+ 0.5225000000000000 0.1235000000000002 0.1084999999999999 # H47
+ 0.4348000000000000 0.1665000000000003 0.2124999999999999 # H48
diff --git a/test/data/tetragonal/POSCAR-077-2 b/test/data/tetragonal/POSCAR-077-2
new file mode 100644
index 0000000..6efc34c
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-077-2
@@ -0,0 +1,79 @@
+$cell vectors
+1.0
+ 7.9799962450766673 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.9799962450766673 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.7799953981014784
+ 16 24 32
+Direct
+ 0.2499999999999999 0.2499999999999999 0.5180000000000000 # N1
+ 0.2499999999999999 0.2499999999999999 0.0179999999999998 # N2
+ 0.0000000000000000 0.0000000000000000 0.2500000000000002 # N3
+ 0.4999999999999998 0.0000000000000000 0.2500000000000002 # N4
+ 0.5000000000000004 0.5000000000000004 0.2500000000000002 # N5
+ 0.0000000000000000 0.5000000000000004 0.2500000000000002 # N6
+ 0.7500000000000003 0.2499999999999999 0.0179999999999998 # N7
+ 0.7500000000000003 0.2499999999999999 0.5180000000000000 # N8
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # N9
+ 0.0000000000000000 0.5000000000000004 0.7500000000000000 # N10
+ 0.5000000000000004 0.5000000000000004 0.7500000000000000 # N11
+ 0.5000000000000004 0.0000000000000000 0.7500000000000000 # N12
+ 0.7500000000000003 0.7500000000000003 0.5180000000000000 # N13
+ 0.7500000000000003 0.7500000000000003 0.0179999999999998 # N14
+ 0.2499999999999999 0.7500000000000003 0.0179999999999998 # N15
+ 0.2499999999999999 0.7500000000000003 0.5180000000000000 # N16
+ 0.1200000000000002 0.2700000000000001 0.4559999999999999 # O1
+ 0.3800000000000002 0.2300000000000003 0.4559999999999999 # O2
+ 0.2499999999999999 0.2499999999999999 0.6420000000000000 # O3
+ 0.1200000000000002 0.2300000000000003 -0.0439999999999999 # O4
+ 0.3800000000000002 0.2700000000000001 -0.0439999999999999 # O5
+ 0.2499999999999999 0.2499999999999999 0.1420000000000002 # O6
+ 0.7300000000000000 0.1200000000000002 -0.0439999999999999 # O7
+ 0.7699999999999999 0.3800000000000002 -0.0439999999999999 # O8
+ 0.7500000000000003 0.2499999999999999 0.1419999999999997 # O9
+ 0.7699999999999999 0.1200000000000002 0.4559999999999999 # O10
+ 0.7300000000000000 0.3800000000000002 0.4559999999999999 # O11
+ 0.7500000000000003 0.2499999999999999 0.6420000000000000 # O12
+ 0.8800000000000000 0.7300000000000000 0.4559999999999999 # O13
+ 0.6200000000000000 0.7699999999999999 0.4559999999999999 # O14
+ 0.7500000000000003 0.7500000000000003 0.6420000000000000 # O15
+ 0.8800000000000000 0.7699999999999999 -0.0439999999999999 # O16
+ 0.6200000000000000 0.7300000000000000 -0.0439999999999999 # O17
+ 0.7500000000000003 0.7500000000000003 0.1420000000000002 # O18
+ 0.2700000000000001 0.8800000000000000 -0.0439999999999999 # O19
+ 0.2300000000000003 0.6200000000000000 -0.0439999999999999 # O20
+ 0.2499999999999999 0.7500000000000003 0.1419999999999997 # O21
+ 0.2300000000000003 0.8800000000000000 0.4559999999999999 # O22
+ 0.2700000000000001 0.6200000000000000 0.4559999999999999 # O23
+ 0.2499999999999999 0.7500000000000003 0.6420000000000000 # O24
+ 0.0760000000000003 0.0760000000000003 0.1899999999999997 # H1
+ 0.0760000000000003 -0.0759999999999997 0.3100000000000001 # H2
+ 0.5760000000000001 0.0760000000000003 0.1899999999999997 # H3
+ 0.4240000000000001 0.0760000000000003 0.3100000000000001 # H4
+ 0.4240000000000001 0.4240000000000001 0.3100000000000001 # H5
+ 0.4240000000000001 0.5760000000000001 0.1899999999999997 # H6
+ -0.0759999999999997 0.4240000000000001 0.3100000000000001 # H7
+ -0.0759999999999997 0.5760000000000001 0.1899999999999997 # H8
+ -0.0759999999999997 0.0760000000000003 0.6900000000000002 # H9
+ 0.0760000000000003 0.0760000000000003 0.8100000000000003 # H10
+ -0.0759999999999997 0.5760000000000001 0.6900000000000002 # H11
+ -0.0759999999999997 0.4240000000000001 0.8100000000000003 # H12
+ 0.5760000000000001 0.4240000000000001 0.8100000000000003 # H13
+ 0.4240000000000001 0.4240000000000001 0.6900000000000002 # H14
+ 0.5760000000000001 -0.0759999999999997 0.8100000000000003 # H15
+ 0.4240000000000001 -0.0759999999999997 0.6900000000000002 # H16
+ -0.0760000000000003 -0.0760000000000003 0.1899999999999997 # H17
+ -0.0760000000000003 0.0760000000000003 0.3100000000000001 # H18
+ 0.4240000000000001 -0.0760000000000003 0.1899999999999997 # H19
+ 0.5760000000000001 -0.0759999999999997 0.3100000000000001 # H20
+ 0.5760000000000001 0.5760000000000001 0.3100000000000001 # H21
+ 0.5760000000000001 0.4240000000000001 0.1899999999999997 # H22
+ 0.0760000000000003 0.5760000000000001 0.3100000000000001 # H23
+ 0.0760000000000003 0.4240000000000001 0.1899999999999997 # H24
+ 0.0760000000000003 -0.0759999999999997 0.6900000000000002 # H25
+ -0.0759999999999997 -0.0759999999999997 0.8100000000000003 # H26
+ 0.0760000000000003 0.4240000000000001 0.6900000000000002 # H27
+ 0.0760000000000003 0.5760000000000001 0.8100000000000003 # H28
+ 0.4240000000000001 0.5760000000000001 0.8100000000000003 # H29
+ 0.5760000000000001 0.5760000000000001 0.6900000000000002 # H30
+ 0.4240000000000001 0.0760000000000003 0.8100000000000003 # H31
+ 0.5760000000000001 0.0760000000000003 0.6900000000000002 # H32
diff --git a/test/data/tetragonal/POSCAR-077-3 b/test/data/tetragonal/POSCAR-077-3
new file mode 100644
index 0000000..9305b67
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-077-3
@@ -0,0 +1,119 @@
+$cell vectors
+1.0
+ 11.1639947468716674 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.1639947468716674 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.6379949943766423
+ 8 12 16 28 48
+Direct
+ 0.9138999999999998 0.0860000000000001 0.2148000000000002 # Cu1
+ 0.5851000000000000 0.4148000000000002 0.0551999999999998 # Cu2
+ 0.9140000000000000 0.9138999999999998 0.7147999999999999 # Cu3
+ 0.5851999999999999 0.5851000000000000 0.5551999999999999 # Cu4
+ 0.0861000000000001 0.9140000000000000 0.2148000000000002 # Cu5
+ 0.4149000000000002 0.5851999999999999 0.0551999999999998 # Cu6
+ 0.0860000000000001 0.0861000000000001 0.7147999999999999 # Cu7
+ 0.4147999999999996 0.4149000000000002 0.5551999999999999 # Cu8
+ 0.1225000000000000 0.1225000000000000 0.1574000000000001 # S1
+ 0.6244000000000000 0.6244000000000000 0.9979999999999996 # S2
+ 0.6947000000000002 0.3052000000000002 0.9119999999999997 # S3
+ 0.8775000000000001 0.1225000000000000 0.6573999999999998 # S4
+ 0.3756000000000000 0.6244000000000000 0.4979999999999999 # S5
+ 0.6948000000000002 0.6947000000000002 0.4120000000000001 # S6
+ 0.8775000000000001 0.8775000000000001 0.1574000000000001 # S7
+ 0.3756000000000000 0.3756000000000000 0.9979999999999996 # S8
+ 0.3052999999999998 0.6948000000000002 0.9119999999999997 # S9
+ 0.1225000000000000 0.8775000000000001 0.6573999999999998 # S10
+ 0.6244000000000000 0.3756000000000000 0.4979999999999999 # S11
+ 0.3051999999999998 0.3053000000000003 0.4120000000000001 # S12
+ 0.8907000000000003 0.1093000000000003 0.3934000000000000 # N1
+ 0.6088000000000002 0.3911999999999998 0.2347000000000000 # N2
+ 0.8233999999999996 0.1765999999999998 0.0901999999999998 # N3
+ 1.0000000000000000 0.5000000000000000 0.2422000000000001 # N4
+ 0.8907000000000003 0.8907000000000003 0.8933999999999996 # N5
+ 0.6088000000000002 0.6088000000000002 0.7346999999999998 # N6
+ 0.8233999999999996 0.8233999999999996 0.5901999999999999 # N7
+ 0.5000000000000000 1.0000000000000000 0.7421999999999997 # N8
+ 0.1092999999999998 0.8907000000000003 0.3934000000000000 # N9
+ 0.3911999999999998 0.6088000000000002 0.2347000000000000 # N10
+ 0.1766000000000003 0.8233999999999996 0.0901999999999998 # N11
+ 0.1092999999999998 0.1093000000000003 0.8933999999999996 # N12
+ 0.3911999999999998 0.3911999999999998 0.7346999999999998 # N13
+ 0.1765999999999998 0.1766000000000003 0.5901999999999999 # N14
+ 0.0000000000000000 0.5000000000000000 0.7421999999999997 # N15
+ 0.5000000000000000 0.0000000000000000 0.2422000000000001 # N16
+ 0.1132999999999998 0.1132999999999998 0.0014999999999998 # C1
+ 0.6142000000000000 0.6142000000000000 0.8419999999999997 # C2
+ 0.7715000000000002 0.2285000000000000 0.0164999999999999 # C3
+ 1.0434000000000001 0.6011999999999998 0.3208999999999999 # C4
+ 1.1005000000000003 0.4577000000000002 0.1612000000000001 # C5
+ 0.8867000000000002 0.1132999999999998 0.5015000000000001 # C6
+ 0.3858000000000000 0.6142000000000000 0.3419999999999996 # C7
+ 0.7715000000000002 0.7715000000000002 0.5165000000000001 # C8
+ 0.3988000000000002 1.0434000000000005 0.8208999999999995 # C9
+ 0.5422999999999998 1.1005000000000003 0.6611999999999998 # C10
+ 0.8867000000000002 0.8867000000000002 0.0014999999999998 # C11
+ 0.3858000000000000 0.3858000000000000 0.8419999999999997 # C12
+ 0.2285000000000000 0.7715000000000002 0.0164999999999999 # C13
+ 0.9565999999999999 0.3988000000000002 0.3208999999999999 # C14
+ 0.8994999999999999 0.5422999999999998 0.1612000000000001 # C15
+ 0.1133000000000002 0.8867000000000002 0.5015000000000001 # C16
+ 0.6142000000000000 0.3858000000000000 0.3419999999999996 # C17
+ 0.2285000000000000 0.2285000000000000 0.5165000000000001 # C18
+ 0.6012000000000003 0.9565999999999999 0.8208999999999995 # C19
+ 0.4577000000000002 0.8994999999999999 0.6611999999999998 # C20
+ -0.0434000000000001 0.6011999999999998 0.8208999999999995 # C21
+ -0.1005000000000001 0.4577000000000002 0.6611999999999998 # C22
+ 0.0434000000000001 0.3988000000000002 0.8208999999999995 # C23
+ 0.1005000000000001 0.5422999999999998 0.6611999999999998 # C24
+ 0.3988000000000002 -0.0434000000000001 0.3208999999999999 # C25
+ 0.5422999999999998 -0.1005000000000001 0.1612000000000001 # C26
+ 0.6011999999999998 0.0434000000000001 0.3208999999999999 # C27
+ 0.4577000000000002 0.1005000000000001 0.1612000000000001 # C28
+ 1.1097999999999999 0.5764000000000001 0.3705000000000000 # H1
+ 1.0671000000000002 0.6654000000000001 0.2675999999999998 # H2
+ 0.9805000000000001 0.6272000000000002 0.3744999999999999 # H3
+ 1.0765000000000002 0.3916999999999999 0.1106000000000002 # H4
+ 1.1234999999999997 0.5225000000000000 0.1084999999999999 # H5
+ 1.1665000000000003 0.4348000000000000 0.2124999999999999 # H6
+ 0.4236000000000003 1.1097999999999999 0.8704999999999996 # H7
+ 0.3346000000000000 1.0671000000000002 0.7675999999999999 # H8
+ 0.3728000000000003 0.9805000000000001 0.8744999999999995 # H9
+ 0.6083000000000001 1.0765000000000002 0.6105999999999998 # H10
+ 0.4775000000000000 1.1234999999999997 0.6084999999999996 # H11
+ 0.5651999999999999 1.1665000000000003 0.7124999999999996 # H12
+ 0.8902000000000002 0.4235999999999998 0.3705000000000000 # H13
+ 0.9329000000000003 0.3346000000000000 0.2675999999999998 # H14
+ 1.0194999999999996 0.3727999999999999 0.3744999999999999 # H15
+ 0.9234999999999999 0.6083000000000001 0.1106000000000002 # H16
+ 0.8764999999999997 0.4775000000000000 0.1084999999999999 # H17
+ 0.8334999999999997 0.5651999999999999 0.2124999999999999 # H18
+ 0.5764000000000001 0.8902000000000002 0.8704999999999996 # H19
+ 0.6654000000000001 0.9329000000000006 0.7675999999999999 # H20
+ 0.6272000000000002 1.0194999999999996 0.8744999999999995 # H21
+ 0.3916999999999999 0.9234999999999999 0.6105999999999998 # H22
+ 0.5225000000000000 0.8764999999999997 0.6084999999999996 # H23
+ 0.4348000000000000 0.8334999999999997 0.7124999999999996 # H24
+ -0.1097999999999999 0.5764000000000001 0.8704999999999996 # H25
+ -0.0671000000000000 0.6654000000000001 0.7675999999999999 # H26
+ 0.0195000000000003 0.6272000000000002 0.8744999999999995 # H27
+ -0.0764999999999997 0.3916999999999999 0.6105999999999998 # H28
+ -0.1234999999999998 0.5225000000000000 0.6084999999999996 # H29
+ -0.1665000000000003 0.4348000000000000 0.7124999999999996 # H30
+ 0.1097999999999999 0.4236000000000003 0.8704999999999996 # H31
+ 0.0671000000000000 0.3346000000000000 0.7675999999999999 # H32
+ -0.0194999999999998 0.3727999999999999 0.8744999999999995 # H33
+ 0.0765000000000002 0.6083000000000001 0.6105999999999998 # H34
+ 0.1235000000000002 0.4775000000000000 0.6084999999999996 # H35
+ 0.1665000000000003 0.5651999999999999 0.7124999999999996 # H36
+ 0.4235999999999998 -0.1097999999999999 0.3705000000000000 # H37
+ 0.3346000000000000 -0.0671000000000000 0.2675999999999998 # H38
+ 0.3727999999999999 0.0194999999999998 0.3744999999999999 # H39
+ 0.6083000000000001 -0.0765000000000002 0.1106000000000002 # H40
+ 0.4775000000000000 -0.1234999999999998 0.1084999999999999 # H41
+ 0.5651999999999999 -0.1665000000000003 0.2124999999999999 # H42
+ 0.5764000000000001 0.1097999999999999 0.3705000000000000 # H43
+ 0.6654000000000001 0.0671000000000000 0.2675999999999998 # H44
+ 0.6272000000000002 -0.0194999999999998 0.3744999999999999 # H45
+ 0.3916999999999999 0.0765000000000002 0.1106000000000002 # H46
+ 0.5225000000000000 0.1235000000000002 0.1084999999999999 # H47
+ 0.4348000000000000 0.1665000000000003 0.2124999999999999 # H48
diff --git a/test/data/tetragonal/POSCAR-078 b/test/data/tetragonal/POSCAR-078
new file mode 100644
index 0000000..80cffc9
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-078
@@ -0,0 +1,115 @@
+$cell vectors
+1.0
+ 10.8649948875636575 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.8649948875636575 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 28.3569866568469990
+ 36 16 8 48
+Direct
+ 0.8306000000000002 0.5302999999999998 0.0000000000000000 # Hg1
+ 0.1995000000000002 0.1106000000000001 0.1977999999999999 # Hg2
+ 0.8652999999999998 0.2693999999999996 0.2025000000000000 # Hg3
+ 0.0282999999999998 0.2667000000000000 0.0731000000000000 # Hg4
+ 0.5629999999999999 0.4907999999999999 0.1933000000000000 # Hg5
+ 0.5529999999999999 0.6910999999999999 0.0704999999999999 # Hg6
+ 0.4264000000000002 0.8336999999999999 0.1989999999999999 # Hg7
+ 0.2410000000000000 0.5758000000000000 0.1322000000000000 # Hg8
+ 0.8978000000000000 0.9681999999999997 0.1385000000000001 # Hg9
+ 0.4697000000000001 0.8306000000000003 0.7500000000000000 # Hg10
+ 0.8894000000000003 0.1994999999999998 0.9477999999999998 # Hg11
+ 0.7306000000000001 0.8652999999999998 0.9525000000000000 # Hg12
+ 0.7333000000000003 0.0282999999999999 0.8230999999999997 # Hg13
+ 0.5092000000000003 0.5629999999999999 0.9433000000000000 # Hg14
+ 0.3089000000000001 0.5529999999999999 0.8204999999999999 # Hg15
+ 0.1663000000000003 0.4263999999999997 0.9489999999999998 # Hg16
+ 0.4242000000000004 0.2410000000000000 0.8822000000000000 # Hg17
+ 0.0318000000000001 0.8977999999999999 0.8884999999999998 # Hg18
+ 0.1694000000000003 0.4696999999999999 0.5000000000000000 # Hg19
+ 0.8005000000000001 0.8894000000000005 0.6977999999999999 # Hg20
+ 0.1347000000000001 0.7305999999999998 0.7025000000000000 # Hg21
+ 0.9717000000000000 0.7332999999999994 0.5730999999999999 # Hg22
+ 0.4370000000000004 0.5091999999999995 0.6932999999999999 # Hg23
+ 0.4469999999999999 0.3088999999999998 0.5704999999999999 # Hg24
+ 0.5736000000000001 0.1663000000000000 0.6990000000000000 # Hg25
+ 0.7590000000000000 0.4242000000000000 0.6321999999999999 # Hg26
+ 0.1021999999999999 0.0317999999999998 0.6385000000000001 # Hg27
+ 0.5303000000000003 0.1694000000000002 0.2500000000000001 # Hg28
+ 0.1106000000000002 0.8004999999999999 0.4477999999999998 # Hg29
+ 0.2694000000000003 0.1346999999999999 0.4525000000000001 # Hg30
+ 0.2667000000000001 0.9716999999999999 0.3230999999999999 # Hg31
+ 0.4908000000000000 0.4369999999999997 0.4433000000000000 # Hg32
+ 0.6911000000000004 0.4469999999999997 0.3205000000000001 # Hg33
+ 0.8337000000000000 0.5735999999999999 0.4490000000000001 # Hg34
+ 0.5758000000000001 0.7589999999999998 0.3821999999999999 # Hg35
+ 0.9681999999999998 0.1021999999999997 0.3885000000000000 # Hg36
+ 0.6588000000000005 0.6768000000000002 0.9960000000000000 # As1
+ 0.9860000000000000 0.3654999999999997 0.9979999999999998 # As2
+ 0.4515000000000001 0.6516000000000001 0.1491000000000000 # As3
+ 0.0150000000000000 0.1584000000000002 0.1519000000000000 # As4
+ 0.3232000000000004 0.6588000000000002 0.7460000000000000 # As5
+ 0.6345000000000001 0.9860000000000001 0.7479999999999998 # As6
+ 0.3484000000000003 0.4514999999999997 0.8991000000000000 # As7
+ 0.8416000000000001 0.0150000000000000 0.9018999999999999 # As8
+ 0.3411999999999998 0.3231999999999997 0.4959999999999998 # As9
+ 0.0140000000000000 0.6344999999999998 0.4979999999999999 # As10
+ 0.5485000000000002 0.3483999999999999 0.6490999999999999 # As11
+ 0.9850000000000005 0.8415999999999998 0.6518999999999999 # As12
+ 0.6768000000000000 0.3411999999999997 0.2459999999999999 # As13
+ 0.3655000000000002 0.0139999999999999 0.2480000000000000 # As14
+ 0.6516000000000002 0.5485000000000000 0.3990999999999998 # As15
+ 0.1584000000000003 0.9850000000000003 0.4019000000000001 # As16
+ 0.2269000000000000 0.8642999999999997 0.0074000000000000 # Bi1
+ 0.5702000000000004 0.1880999999999999 0.0616000000000001 # Bi2
+ 0.1357000000000002 0.2268999999999997 0.7574000000000000 # Bi3
+ 0.8119000000000004 0.5701999999999999 0.8115999999999998 # Bi4
+ 0.7730999999999998 0.1356999999999999 0.5074000000000000 # Bi5
+ 0.4298000000000001 0.8119000000000002 0.5616000000000000 # Bi6
+ 0.8642999999999997 0.7730999999999997 0.2573999999999999 # Bi7
+ 0.1880999999999999 0.4298000000000000 0.3115999999999999 # Bi8
+ 0.9902000000000004 0.7875000000000002 0.0096000000000000 # Br1
+ 0.4844000000000002 0.9570000000000000 0.0178000000000000 # Br2
+ 0.0973999999999998 0.8289999999999998 0.2289000000000000 # Br3
+ 0.6105000000000002 0.2968999999999995 0.9707999999999999 # Br4
+ 0.2947000000000001 0.6044000000000002 0.0233000000000000 # Br5
+ 0.8016000000000002 0.0590000000000000 0.0434000000000002 # Br6
+ 0.3389000000000000 0.2908000000000000 0.0880000000000001 # Br7
+ 0.7049000000000001 0.3860999999999998 0.1000000000000001 # Br8
+ 0.2059000000000000 0.9009999999999999 0.1020000000000000 # Br9
+ 0.0229000000000000 0.5218000000000000 0.1251000000000000 # Br10
+ 0.7928999999999999 0.7640999999999998 0.1457999999999999 # Br11
+ 0.5889000000000000 0.0645000000000002 0.1485000000000000 # Br12
+ 0.2125000000000002 0.9902000000000001 0.7596000000000003 # Br13
+ 0.0430000000000005 0.4843999999999998 0.7678000000000000 # Br14
+ 0.1710000000000000 0.0973999999999998 0.9788999999999999 # Br15
+ 0.7031000000000004 0.6104999999999998 0.7208000000000000 # Br16
+ 0.3956000000000002 0.2946999999999997 0.7732999999999997 # Br17
+ 0.9410000000000004 0.8015999999999999 0.7934000000000000 # Br18
+ 0.7092000000000003 0.3388999999999996 0.8379999999999999 # Br19
+ 0.6139000000000003 0.7049000000000001 0.8499999999999998 # Br20
+ 0.0990000000000000 0.2058999999999996 0.8520000000000000 # Br21
+ 0.4782000000000003 0.0228999999999996 0.8750999999999999 # Br22
+ 0.2359000000000001 0.7929000000000000 0.8957999999999998 # Br23
+ 0.9355000000000001 0.5889000000000001 0.8984999999999999 # Br24
+ 0.0098000000000001 0.2125000000000000 0.5096000000000001 # Br25
+ 0.5156000000000002 0.0430000000000007 0.5178000000000000 # Br26
+ 0.9026000000000002 0.1710000000000001 0.7288999999999999 # Br27
+ 0.3895000000000002 0.7031000000000002 0.4708000000000001 # Br28
+ 0.7053000000000004 0.3955999999999999 0.5232999999999999 # Br29
+ 0.1984000000000002 0.9410000000000002 0.5433999999999999 # Br30
+ 0.6611000000000005 0.7091999999999999 0.5880000000000001 # Br31
+ 0.2951000000000004 0.6139000000000000 0.5999999999999996 # Br32
+ 0.7941000000000003 0.0989999999999997 0.6020000000000000 # Br33
+ 0.9770999999999996 0.4781999999999995 0.6250999999999999 # Br34
+ 0.2071000000000000 0.2358999999999997 0.6457999999999999 # Br35
+ 0.4111000000000004 0.9355000000000004 0.6484999999999999 # Br36
+ 0.7875000000000002 0.0098000000000000 0.2595999999999999 # Br37
+ 0.9570000000000000 0.5156000000000001 0.2678000000000000 # Br38
+ 0.8290000000000000 0.9026000000000000 0.4789000000000000 # Br39
+ 0.2969000000000000 0.3894999999999996 0.2208000000000001 # Br40
+ 0.6044000000000002 0.7053000000000003 0.2733000000000000 # Br41
+ 0.0590000000000000 0.1983999999999997 0.2933999999999999 # Br42
+ 0.2908000000000001 0.6610999999999998 0.3379999999999999 # Br43
+ 0.3860999999999999 0.2950999999999998 0.3499999999999999 # Br44
+ 0.9009999999999999 0.7941000000000000 0.3520000000000000 # Br45
+ 0.5218000000000002 0.9770999999999994 0.3751000000000000 # Br46
+ 0.7640999999999999 0.2070999999999998 0.3958000000000001 # Br47
+ 0.0645000000000002 0.4110999999999997 0.3984999999999999 # Br48
diff --git a/test/data/tetragonal/POSCAR-078-2 b/test/data/tetragonal/POSCAR-078-2
new file mode 100644
index 0000000..da8e51d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-078-2
@@ -0,0 +1,119 @@
+$cell vectors
+1.0
+ 7.6289964102368302 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.6289964102368302 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 29.4969861204293764
+ 16 16 64 4 12
+Direct
+ 0.8853999999999995 0.9355999999999999 0.2253000000000001 # Rb1
+ 0.7726999999999997 0.5188999999999999 0.1197000000000001 # Rb2
+ 0.3801000000000002 0.6350000000000001 0.2382000000000001 # Rb3
+ 0.4709000000000002 0.0250999999999998 0.1098999999999999 # Rb4
+ 0.0644000000000001 0.8853999999999996 0.9753000000000002 # Rb5
+ 0.4811000000000001 0.7726999999999999 0.8697000000000004 # Rb6
+ 0.3649999999999999 0.3800999999999995 0.9882000000000001 # Rb7
+ 0.9749000000000003 0.4708999999999995 0.8599000000000002 # Rb8
+ 0.1146000000000005 0.0643999999999996 0.7253000000000002 # Rb9
+ 0.2273000000000004 0.4810999999999997 0.6197000000000000 # Rb10
+ 0.6199000000000000 0.3650000000000000 0.7382000000000002 # Rb11
+ 0.5291000000000000 0.9748999999999999 0.6099000000000001 # Rb12
+ 0.9356000000000000 0.1146000000000002 0.4753000000000000 # Rb13
+ 0.5189000000000000 0.2273000000000001 0.3697000000000000 # Rb14
+ 0.6350000000000002 0.6198999999999997 0.4882000000000000 # Rb15
+ 0.0250999999999999 0.5290999999999998 0.3599000000000001 # Rb16
+ 0.4097000000000001 0.1228999999999997 0.2372000000000001 # S1
+ 0.8751000000000001 0.4618999999999998 0.2386999999999999 # S2
+ 0.3028999999999999 0.5377000000000000 0.1102000000000001 # S3
+ 0.9637000000000002 0.0045000000000000 0.1066999999999999 # S4
+ 0.8771000000000003 0.4096999999999995 0.9872000000000002 # S5
+ 0.5381000000000001 0.8750999999999994 0.9887000000000001 # S6
+ 0.4623000000000002 0.3028999999999999 0.8602000000000002 # S7
+ 0.9955000000000001 0.9636999999999997 0.8567000000000002 # S8
+ 0.5903000000000000 0.8770999999999998 0.7372000000000002 # S9
+ 0.1249000000000001 0.5380999999999996 0.7387000000000001 # S10
+ 0.6971000000000002 0.4622999999999997 0.6102000000000002 # S11
+ 0.0363000000000000 0.9954999999999996 0.6067000000000000 # S12
+ 0.1228999999999999 0.5902999999999997 0.4872000000000001 # S13
+ 0.4619000000000000 0.1248999999999997 0.4887000000000001 # S14
+ 0.5377000000000001 0.6970999999999999 0.3602000000000000 # S15
+ 0.0045000000000001 0.0362999999999997 0.3567000000000001 # S16
+ 0.3434000000000000 0.2546999999999995 0.2063000000000000 # O1
+ 0.2547999999999999 0.0265000000000000 0.2509000000000001 # O2
+ 0.5092999999999999 0.2070999999999999 0.2734000000000001 # O3
+ 0.5111000000000003 -0.0070000000000001 0.2131000000000002 # O4
+ 1.0232999999999997 0.5592999999999996 0.2561000000000000 # O5
+ 0.7436999999999997 0.5726000000000003 0.2179000000000000 # O6
+ 0.7898999999999998 0.3779999999999995 0.2813000000000001 # O7
+ 0.9232000000000000 0.3178999999999998 0.2085000000000001 # O8
+ 0.8330000000000000 -0.1065999999999998 0.1279000000000000 # O9
+ 1.0867999999999998 0.0721000000000001 0.1408000000000000 # O10
+ 1.0685999999999998 -0.0858000000000003 0.0709000000000001 # O11
+ 0.8693000000000000 0.1574000000000000 0.0850000000000000 # O12
+ 0.1556000000000003 0.4885999999999998 0.1373000000000001 # O13
+ 0.4022999999999999 0.3929999999999997 0.0925000000000001 # O14
+ 0.2313000000000001 0.6263000000000000 0.0669000000000001 # O15
+ 0.4114999999999999 0.6649000000000002 0.1330000000000000 # O16
+ 0.7453000000000004 0.3433999999999994 0.9563000000000001 # O17
+ 0.9735000000000000 0.2547999999999999 1.0009000000000001 # O18
+ 0.7929000000000002 0.5093000000000000 1.0234000000000001 # O19
+ 1.0070000000000001 0.5110999999999997 0.9631000000000003 # O20
+ 0.4407000000000003 1.0232999999999997 1.0061000000000002 # O21
+ 0.4274000000000004 0.7436999999999998 0.9679000000000000 # O22
+ 0.6220000000000004 0.7898999999999998 1.0313000000000001 # O23
+ 0.6821000000000003 0.9231999999999994 0.9585000000000001 # O24
+ 1.1066000000000000 0.8329999999999994 0.8779000000000002 # O25
+ 0.9278999999999999 1.0867999999999998 0.8908000000000000 # O26
+ 1.0857999999999997 1.0685999999999998 0.8209000000000001 # O27
+ 0.8426000000000000 0.8692999999999994 0.8350000000000001 # O28
+ 0.5114000000000003 0.1555999999999997 0.8873000000000002 # O29
+ 0.6070000000000002 0.4023000000000000 0.8425000000000004 # O30
+ 0.3737000000000001 0.2312999999999995 0.8169000000000002 # O31
+ 0.3351000000000000 0.4114999999999999 0.8830000000000003 # O32
+ 0.6566000000000003 0.7453000000000000 0.7063000000000001 # O33
+ 0.7452000000000003 0.9734999999999995 0.7509000000000001 # O34
+ 0.4907000000000002 0.7928999999999996 0.7734000000000002 # O35
+ 0.4888999999999998 1.0069999999999997 0.7131000000000002 # O36
+ -0.0232999999999994 0.4406999999999998 0.7561000000000002 # O37
+ 0.2563000000000004 0.4273999999999999 0.7179000000000000 # O38
+ 0.2101000000000004 0.6219999999999999 0.7813000000000002 # O39
+ 0.0768000000000001 0.6820999999999998 0.7085000000000000 # O40
+ 0.1670000000000002 1.1065999999999996 0.6279000000000001 # O41
+ -0.0867999999999996 0.9278999999999995 0.6408000000000000 # O42
+ -0.0685999999999995 1.0857999999999992 0.5709000000000002 # O43
+ 0.1307000000000002 0.8425999999999996 0.5850000000000002 # O44
+ 0.8443999999999998 0.5113999999999999 0.6373000000000002 # O45
+ 0.5977000000000002 0.6069999999999998 0.5925000000000001 # O46
+ 0.7687000000000000 0.3736999999999997 0.5669000000000002 # O47
+ 0.5885000000000004 0.3350999999999996 0.6330000000000000 # O48
+ 0.2547000000000004 0.6566000000000000 0.4563000000000001 # O49
+ 0.0265000000000001 0.7452000000000000 0.5009000000000001 # O50
+ 0.2071000000000001 0.4906999999999999 0.5234000000000000 # O51
+ -0.0070000000000000 0.4888999999999994 0.4631000000000001 # O52
+ 0.5592999999999998 -0.0232999999999998 0.5061000000000001 # O53
+ 0.5726000000000004 0.2563000000000000 0.4679000000000001 # O54
+ 0.3779999999999997 0.2101000000000000 0.5313000000000000 # O55
+ 0.3179000000000000 0.0767999999999997 0.4585000000000000 # O56
+ -0.1065999999999998 0.1669999999999999 0.3779000000000001 # O57
+ 0.0721000000000002 -0.0867999999999999 0.3908000000000001 # O58
+ -0.0858000000000002 -0.0685999999999998 0.3209000000000000 # O59
+ 0.1574000000000001 0.1307000000000000 0.3350000000000001 # O60
+ 0.4885999999999999 0.8443999999999996 0.3873000000000000 # O61
+ 0.3929999999999998 0.5977000000000000 0.3425000000000001 # O62
+ 0.6263000000000000 0.7686999999999998 0.3169000000000000 # O63
+ 0.6649000000000003 0.5885000000000001 0.3830000000000001 # O64
+ 0.1285000000000003 0.2769000000000000 0.1728000000000000 # Li1
+ 0.7231000000000000 0.1284999999999996 0.9228000000000003 # Li2
+ 0.8715000000000001 0.7230999999999995 0.6728000000000003 # Li3
+ 0.2769000000000001 0.8714999999999997 0.4228000000000002 # Li4
+ 0.2288000000000002 0.0782000000000001 0.2884000000000001 # H1
+ 0.6831999999999999 0.3165999999999997 0.2726000000000001 # H2
+ 0.1515999999999999 0.7204999999999999 0.0748000000000001 # H3
+ 0.9217999999999998 0.2288000000000001 0.0384000000000000 # H4
+ 0.6834000000000002 0.6831999999999998 1.0226000000000000 # H5
+ 0.2795000000000003 0.1516000000000000 0.8248000000000000 # H6
+ 0.7711999999999999 0.9217999999999998 0.7884000000000002 # H7
+ 0.3168000000000003 0.6833999999999997 0.7726000000000000 # H8
+ 0.8484000000000003 0.2794999999999999 0.5747999999999999 # H9
+ 0.0782000000000003 0.7711999999999996 0.5384000000000001 # H10
+ 0.3165999999999999 0.3167999999999999 0.5226000000000001 # H11
+ 0.7204999999999999 0.8484000000000000 0.3248000000000001 # H12
diff --git a/test/data/tetragonal/POSCAR-079 b/test/data/tetragonal/POSCAR-079
new file mode 100644
index 0000000..d824363
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-079
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 8.4839960079236114 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4839960079236114 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8129972647406838
+ 4 8 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.1763000000000004 # Cu1
+ 0.4999999999999999 0.4999999999999999 0.1710000000000003 # Cu2
+ 0.4999999999999999 0.4999999999999999 0.6763000000000005 # Cu3
+ 0.0000000000000000 0.0000000000000000 0.6710000000000004 # Cu4
+ 0.1682999999999998 0.3316000000000002 0.0000000000000000 # Bi1
+ 0.6683000000000004 0.8316000000000002 0.4999999999999999 # Bi2
+ 0.6684000000000005 0.1682999999999998 0.0000000000000000 # Bi3
+ 0.1683999999999998 0.6683000000000004 0.4999999999999999 # Bi4
+ 0.8317000000000003 0.6684000000000005 0.0000000000000000 # Bi5
+ 0.3317000000000001 0.1683999999999998 0.4999999999999999 # Bi6
+ 0.3316000000000002 0.8317000000000003 0.0000000000000000 # Bi7
+ 0.8316000000000002 0.3317000000000001 0.4999999999999999 # Bi8
+ 0.0979999999999999 0.2030000000000002 0.6540000000000001 # O1
+ 0.2019999999999998 0.1009999999999999 0.1609999999999996 # O2
+ 0.5979999999999999 0.7030000000000002 0.1540000000000001 # O3
+ 0.7020000000000004 0.6010000000000006 0.6609999999999996 # O4
+ 0.7970000000000004 0.0979999999999999 0.6540000000000001 # O5
+ 0.8990000000000001 0.2019999999999998 0.1609999999999996 # O6
+ 0.2970000000000004 0.5979999999999999 0.1540000000000001 # O7
+ 0.3990000000000001 0.7020000000000004 0.6609999999999996 # O8
+ 0.9020000000000000 0.7970000000000004 0.6540000000000001 # O9
+ 0.7980000000000003 0.8990000000000001 0.1609999999999996 # O10
+ 0.4020000000000001 0.2969999999999998 0.1540000000000001 # O11
+ 0.2980000000000002 0.3990000000000001 0.6609999999999996 # O12
+ 0.2030000000000002 0.9020000000000000 0.6540000000000001 # O13
+ 0.1009999999999999 0.7980000000000003 0.1609999999999996 # O14
+ 0.7030000000000002 0.4020000000000001 0.1540000000000001 # O15
+ 0.6010000000000006 0.2980000000000002 0.6609999999999996 # O16
diff --git a/test/data/tetragonal/POSCAR-079-2 b/test/data/tetragonal/POSCAR-079-2
new file mode 100644
index 0000000..1aafb28
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-079-2
@@ -0,0 +1,119 @@
+$cell vectors
+1.0
+ 14.9189929799873191 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 14.9189929799873191 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.6089964196476654
+ 16 16 80
+Direct
+ 0.2166000000000000 0.0555000000000001 0.0000000000000000 # Ba1
+ 0.0684999999999999 0.2494000000000002 0.5056000000000000 # Ba2
+ 0.7166000000000000 0.5555000000000001 0.4999999999999996 # Ba3
+ 0.5684999999999998 0.7494000000000003 0.0055999999999998 # Ba4
+ 0.9445000000000000 0.2166000000000000 0.0000000000000000 # Ba5
+ 0.7505999999999997 0.0684999999999999 0.5056000000000000 # Ba6
+ 0.4445000000000000 0.7166000000000000 0.4999999999999996 # Ba7
+ 0.2506000000000002 0.5684999999999998 0.0055999999999998 # Ba8
+ 0.7834000000000001 0.9445000000000000 0.0000000000000000 # Ba9
+ 0.9314999999999998 0.7505999999999997 0.5056000000000000 # Ba10
+ 0.2834000000000000 0.4445000000000000 0.4999999999999996 # Ba11
+ 0.4315000000000002 0.2505999999999998 0.0055999999999998 # Ba12
+ 0.0555000000000001 0.7834000000000001 0.0000000000000000 # Ba13
+ 0.2494000000000002 0.9314999999999998 0.5056000000000000 # Ba14
+ 0.5555000000000001 0.2834000000000000 0.4999999999999996 # Ba15
+ 0.7494000000000003 0.4315000000000002 0.0055999999999998 # Ba16
+ 0.0000000000000000 0.0000000000000000 0.2730000000000001 # Fe1
+ 0.0000000000000000 0.0000000000000000 0.7296999999999997 # Fe2
+ 0.0000000000000000 0.5000000000000000 0.0162999999999999 # Fe3
+ 0.1828000000000001 0.3333000000000002 0.9849999999999997 # Fe4
+ 0.5000000000000000 0.5000000000000000 0.7729999999999997 # Fe5
+ 0.5000000000000000 0.5000000000000000 0.2297000000000002 # Fe6
+ 0.5000000000000000 0.0000000000000000 0.5163000000000002 # Fe7
+ 0.6828000000000003 0.8333000000000002 0.4850000000000000 # Fe8
+ 0.5000000000000000 0.0000000000000000 0.0162999999999999 # Fe9
+ 0.6667000000000000 0.1827999999999997 0.9849999999999997 # Fe10
+ 0.0000000000000000 0.5000000000000000 0.5163000000000002 # Fe11
+ 0.1667000000000002 0.6828000000000003 0.4850000000000000 # Fe12
+ 0.8172000000000000 0.6667000000000000 0.9849999999999997 # Fe13
+ 0.3172000000000000 0.1667000000000002 0.4850000000000000 # Fe14
+ 0.3333000000000002 0.8172000000000000 0.9849999999999997 # Fe15
+ 0.8333000000000002 0.3172000000000000 0.4850000000000000 # Fe16
+ 0.0000000000000000 0.0000000000000000 0.9849999999999997 # F1
+ 0.0000000000000000 0.0000000000000000 0.5004999999999996 # F2
+ 0.0514000000000000 0.1192000000000001 0.2684999999999998 # F3
+ 0.0500000000000001 0.0965000000000002 0.7779999999999999 # F4
+ 0.0000000000000000 0.5000000000000000 0.2490000000000000 # F5
+ 0.1159000000000001 0.4373000000000001 0.0236000000000000 # F6
+ 0.1091000000000001 0.4312999999999999 0.5230000000000002 # F7
+ 0.2644000000000001 0.3796999999999999 0.1703999999999997 # F8
+ 0.2485000000000002 0.4058000000000002 0.8169999999999996 # F9
+ 0.1053999999999998 0.2968000000000000 0.1603999999999997 # F10
+ 0.1003000000000000 0.2696000000000002 0.8619999999999999 # F11
+ 0.2479999999999999 0.2298000000000001 0.0280000000000002 # F12
+ 0.5000000000000000 0.5000000000000000 0.4850000000000000 # F13
+ 0.5000000000000000 0.5000000000000000 0.0005000000000001 # F14
+ 0.5514000000000000 0.6192000000000001 0.7684999999999993 # F15
+ 0.5500000000000002 0.5965000000000003 0.2779999999999997 # F16
+ 0.5000000000000000 0.0000000000000000 0.7489999999999996 # F17
+ 0.6159000000000001 0.9373000000000001 0.5235999999999996 # F18
+ 0.6090999999999998 0.9313000000000000 0.0229999999999999 # F19
+ 0.7644000000000001 0.8796999999999999 0.6704000000000001 # F20
+ 0.7484999999999999 0.9057999999999998 0.3170000000000001 # F21
+ 0.6053999999999998 0.7968000000000001 0.6603999999999999 # F22
+ 0.6003000000000001 0.7696000000000002 0.3619999999999996 # F23
+ 0.7479999999999999 0.7298000000000000 0.5279999999999998 # F24
+ 0.8807999999999999 0.0514000000000000 0.2684999999999998 # F25
+ 0.9034999999999999 0.0500000000000001 0.7779999999999999 # F26
+ 0.5000000000000000 0.0000000000000000 0.2490000000000000 # F27
+ 0.5627000000000000 0.1159000000000001 0.0236000000000000 # F28
+ 0.5686999999999998 0.1091000000000001 0.5230000000000002 # F29
+ 0.6203000000000001 0.2644000000000001 0.1703999999999997 # F30
+ 0.5942000000000003 0.2485000000000002 0.8169999999999996 # F31
+ 0.7031999999999999 0.1053999999999998 0.1603999999999997 # F32
+ 0.7303999999999999 0.1002999999999997 0.8619999999999999 # F33
+ 0.7702000000000001 0.2479999999999999 0.0280000000000002 # F34
+ 0.3808000000000000 0.5514000000000000 0.7684999999999993 # F35
+ 0.4035000000000002 0.5500000000000002 0.2779999999999997 # F36
+ 0.0000000000000000 0.5000000000000000 0.7489999999999996 # F37
+ 0.0626999999999999 0.6159000000000001 0.5235999999999996 # F38
+ 0.0687000000000002 0.6090999999999998 0.0229999999999999 # F39
+ 0.1203000000000001 0.7644000000000001 0.6704000000000001 # F40
+ 0.0942000000000002 0.7484999999999999 0.3170000000000001 # F41
+ 0.2032000000000000 0.6053999999999998 0.6603999999999999 # F42
+ 0.2304000000000002 0.6003000000000001 0.3619999999999996 # F43
+ 0.2702000000000000 0.7479999999999999 0.5279999999999998 # F44
+ 0.9486000000000000 0.8807999999999999 0.2684999999999998 # F45
+ 0.9500000000000000 0.9034999999999999 0.7779999999999999 # F46
+ 0.8841000000000001 0.5627000000000000 0.0236000000000000 # F47
+ 0.8909000000000000 0.5686999999999998 0.5230000000000002 # F48
+ 0.7356000000000000 0.6203000000000001 0.1703999999999997 # F49
+ 0.7514999999999999 0.5942000000000003 0.8169999999999996 # F50
+ 0.8946000000000000 0.7031999999999999 0.1603999999999997 # F51
+ 0.8996999999999999 0.7303999999999999 0.8619999999999999 # F52
+ 0.7520000000000002 0.7702000000000001 0.0280000000000002 # F53
+ 0.4486000000000001 0.3808000000000000 0.7684999999999993 # F54
+ 0.4500000000000000 0.4034999999999998 0.2779999999999997 # F55
+ 0.3840999999999999 0.0626999999999999 0.5235999999999996 # F56
+ 0.3908999999999999 0.0687000000000002 0.0229999999999999 # F57
+ 0.2356000000000000 0.1203000000000001 0.6704000000000001 # F58
+ 0.2514999999999999 0.0942000000000002 0.3170000000000001 # F59
+ 0.3946000000000002 0.2032000000000000 0.6603999999999999 # F60
+ 0.3997000000000000 0.2303999999999999 0.3619999999999996 # F61
+ 0.2520000000000001 0.2702000000000000 0.5279999999999998 # F62
+ 0.1192000000000001 0.9486000000000000 0.2684999999999998 # F63
+ 0.0965000000000002 0.9500000000000000 0.7779999999999999 # F64
+ 0.4373000000000001 0.8841000000000001 0.0236000000000000 # F65
+ 0.4313000000000003 0.8909000000000000 0.5230000000000002 # F66
+ 0.3796999999999999 0.7356000000000000 0.1703999999999997 # F67
+ 0.4058000000000002 0.7514999999999999 0.8169999999999996 # F68
+ 0.2968000000000000 0.8946000000000000 0.1603999999999997 # F69
+ 0.2696000000000002 0.8996999999999999 0.8619999999999999 # F70
+ 0.2298000000000001 0.7520000000000002 0.0280000000000002 # F71
+ 0.6192000000000001 0.4486000000000001 0.7684999999999993 # F72
+ 0.5965000000000003 0.4500000000000000 0.2779999999999997 # F73
+ 0.9373000000000001 0.3840999999999999 0.5235999999999996 # F74
+ 0.9313000000000000 0.3908999999999999 0.0229999999999999 # F75
+ 0.8796999999999999 0.2356000000000000 0.6704000000000001 # F76
+ 0.9057999999999998 0.2514999999999999 0.3170000000000001 # F77
+ 0.7968000000000001 0.3946000000000002 0.6603999999999999 # F78
+ 0.7696000000000002 0.3997000000000000 0.3619999999999996 # F79
+ 0.7298000000000000 0.2520000000000001 0.5279999999999998 # F80
diff --git a/test/data/tetragonal/POSCAR-080 b/test/data/tetragonal/POSCAR-080
new file mode 100644
index 0000000..6ec2cb0
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-080
@@ -0,0 +1,143 @@
+$cell vectors
+1.0
+ 20.3379904301214545 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 20.3379904301214545 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.6679930980933033
+ 72 48 16
+Direct
+ 0.1385000000000000 0.0816000000000000 0.0000000000000000 # Sr1
+ 0.1385000000000000 0.0804000000000001 0.5043000000000000 # Sr2
+ 0.0795000000000000 0.8640000000000003 0.0034999999999998 # Sr3
+ 0.0791000000000001 0.8660000000000001 0.5031999999999998 # Sr4
+ 0.1682000000000000 0.9130000000000005 0.2498000000000001 # Sr5
+ 0.1693000000000003 0.9110000000000005 0.7500000000000001 # Sr6
+ 0.9150000000000005 0.8370000000000000 0.2498000000000001 # Sr7
+ 0.9120000000000005 0.8360000000000003 0.7503000000000000 # Sr8
+ 0.2371000000000000 0.7521000000000003 0.3676000000000000 # Sr9
+ 0.6385000000000004 0.5816000000000002 0.4999999999999998 # Sr10
+ 0.6385000000000004 0.5804000000000002 0.0042999999999998 # Sr11
+ 0.5795000000000001 0.3640000000000002 0.5035000000000001 # Sr12
+ 0.5791000000000002 0.3660000000000002 0.0031999999999999 # Sr13
+ 0.6682000000000001 0.4130000000000003 0.7497999999999999 # Sr14
+ 0.6693000000000005 0.4110000000000003 0.2499999999999999 # Sr15
+ 0.4150000000000001 0.3370000000000002 0.7497999999999999 # Sr16
+ 0.4120000000000003 0.3360000000000002 0.2502999999999998 # Sr17
+ 0.7371000000000004 0.2521000000000002 0.8675999999999999 # Sr18
+ 0.9184000000000003 0.6385000000000004 0.2499999999999999 # Sr19
+ 0.9196000000000001 0.6385000000000004 0.7542999999999999 # Sr20
+ 0.1360000000000001 0.5795000000000001 0.2535000000000001 # Sr21
+ 0.1340000000000003 0.5791000000000002 0.7531999999999999 # Sr22
+ 0.0870000000000001 0.6682000000000001 0.4998000000000000 # Sr23
+ 0.0890000000000002 0.6693000000000005 0.0000000000000000 # Sr24
+ 0.1630000000000001 0.4150000000000001 0.4998000000000000 # Sr25
+ 0.1640000000000001 0.4120000000000003 0.0002999999999999 # Sr26
+ 0.2479000000000001 0.7371000000000004 0.6175999999999999 # Sr27
+ 0.4184000000000000 0.1385000000000002 0.7500000000000001 # Sr28
+ 0.4196000000000000 0.1385000000000000 0.2543000000000001 # Sr29
+ 0.6360000000000001 0.0795000000000002 0.7534999999999998 # Sr30
+ 0.6340000000000001 0.0791000000000001 0.2531999999999998 # Sr31
+ 0.5870000000000002 0.1682000000000000 0.9997999999999998 # Sr32
+ 0.5890000000000003 0.1693000000000000 0.4999999999999998 # Sr33
+ 0.6630000000000005 0.9150000000000005 0.9997999999999998 # Sr34
+ 0.6640000000000003 0.9120000000000005 0.5003000000000001 # Sr35
+ 0.7479000000000002 0.2371000000000000 0.1176000000000001 # Sr36
+ 0.8615000000000000 0.9184000000000003 0.0000000000000000 # Sr37
+ 0.8615000000000000 0.9196000000000001 0.5043000000000000 # Sr38
+ 0.9205000000000003 0.1360000000000001 0.0034999999999998 # Sr39
+ 0.9209000000000005 0.1340000000000000 0.5031999999999998 # Sr40
+ 0.8318000000000005 0.0870000000000001 0.2498000000000001 # Sr41
+ 0.8307000000000001 0.0890000000000002 0.7500000000000001 # Sr42
+ 0.0850000000000000 0.1630000000000001 0.2498000000000001 # Sr43
+ 0.0880000000000001 0.1640000000000001 0.7503000000000000 # Sr44
+ 0.7629000000000002 0.2479000000000001 0.3676000000000000 # Sr45
+ 0.3615000000000002 0.4184000000000000 0.4999999999999998 # Sr46
+ 0.3615000000000002 0.4196000000000000 0.0042999999999998 # Sr47
+ 0.4205000000000002 0.6360000000000001 0.5035000000000001 # Sr48
+ 0.4209000000000002 0.6340000000000001 0.0031999999999999 # Sr49
+ 0.3318000000000001 0.5870000000000002 0.7497999999999999 # Sr50
+ 0.3307000000000001 0.5890000000000003 0.2499999999999999 # Sr51
+ 0.5850000000000001 0.6630000000000003 0.7497999999999999 # Sr52
+ 0.5880000000000002 0.6640000000000003 0.2502999999999998 # Sr53
+ 0.2629000000000004 0.7479000000000005 0.8675999999999999 # Sr54
+ 0.0816000000000000 0.3615000000000002 0.2499999999999999 # Sr55
+ 0.0804000000000001 0.3615000000000002 0.7542999999999999 # Sr56
+ 0.8640000000000003 0.4205000000000002 0.2535000000000001 # Sr57
+ 0.8660000000000001 0.4209000000000002 0.7531999999999999 # Sr58
+ 0.9130000000000005 0.3318000000000001 0.4998000000000000 # Sr59
+ 0.9110000000000005 0.3307000000000001 0.0000000000000000 # Sr60
+ 0.8370000000000000 0.5850000000000001 0.4998000000000000 # Sr61
+ 0.8360000000000003 0.5880000000000002 0.0002999999999999 # Sr62
+ 0.7521000000000003 0.2629000000000001 0.6175999999999999 # Sr63
+ 0.5816000000000003 0.8615000000000000 0.7500000000000001 # Sr64
+ 0.5804000000000006 0.8615000000000000 0.2543000000000001 # Sr65
+ 0.3640000000000002 0.9205000000000003 0.7534999999999998 # Sr66
+ 0.3660000000000002 0.9209000000000005 0.2531999999999998 # Sr67
+ 0.4130000000000003 0.8318000000000005 0.9997999999999998 # Sr68
+ 0.4110000000000003 0.8307000000000001 0.4999999999999998 # Sr69
+ 0.3370000000000002 0.0850000000000002 0.9997999999999998 # Sr70
+ 0.3360000000000002 0.0880000000000001 0.5003000000000001 # Sr71
+ 0.2521000000000002 0.7629000000000002 0.1176000000000001 # Sr72
+ 0.0000000000000000 0.0000000000000000 0.1472000000000001 # Fe1
+ 0.0000000000000000 0.0000000000000000 0.6430999999999999 # Fe2
+ 0.0000000000000000 0.0000000000000000 0.3815000000000000 # Fe3
+ 0.0000000000000000 0.0000000000000000 0.8767999999999999 # Fe4
+ 0.2618000000000001 0.9140000000000005 0.9989999999999999 # Fe5
+ 0.2616000000000002 0.9080000000000004 0.4959999999999999 # Fe6
+ 0.9310000000000003 0.7440000000000002 0.9949999999999999 # Fe7
+ 0.9270000000000003 0.7460000000000000 0.4879000000000000 # Fe8
+ 0.5000000000000000 0.5000000000000000 0.6472000000000000 # Fe9
+ 0.5000000000000000 0.5000000000000000 0.1431000000000001 # Fe10
+ 0.5000000000000000 0.5000000000000000 0.8814999999999998 # Fe11
+ 0.5000000000000000 0.5000000000000000 0.3767999999999999 # Fe12
+ 0.7618000000000005 0.4140000000000001 0.4990000000000001 # Fe13
+ 0.7616000000000003 0.4080000000000003 0.9960000000000000 # Fe14
+ 0.4310000000000002 0.2440000000000002 0.4949999999999997 # Fe15
+ 0.4270000000000003 0.2460000000000002 0.9878999999999998 # Fe16
+ 0.0000000000000000 0.5000000000000000 0.3972000000000000 # Fe17
+ 0.0000000000000000 0.5000000000000000 0.8930999999999999 # Fe18
+ 0.0000000000000000 0.5000000000000000 0.6315000000000000 # Fe19
+ 0.0000000000000000 0.5000000000000000 0.1267999999999999 # Fe20
+ 0.0860000000000000 0.7618000000000005 0.2490000000000001 # Fe21
+ 0.0920000000000000 0.7616000000000003 0.7459999999999999 # Fe22
+ 0.2560000000000002 0.4310000000000002 0.2449999999999999 # Fe23
+ 0.2540000000000002 0.4270000000000003 0.7378999999999999 # Fe24
+ 0.5000000000000000 0.0000000000000000 0.8971999999999999 # Fe25
+ 0.5000000000000000 0.0000000000000000 0.3931000000000001 # Fe26
+ 0.5000000000000000 0.0000000000000000 0.1315000000000001 # Fe27
+ 0.5000000000000000 0.0000000000000000 0.6268000000000000 # Fe28
+ 0.5860000000000001 0.2618000000000001 0.7489999999999999 # Fe29
+ 0.5920000000000001 0.2616000000000002 0.2460000000000000 # Fe30
+ 0.7560000000000003 0.9310000000000003 0.7449999999999999 # Fe31
+ 0.7540000000000006 0.9270000000000003 0.2379000000000001 # Fe32
+ 0.7382000000000004 0.0860000000000000 0.9989999999999999 # Fe33
+ 0.7384000000000003 0.0920000000000000 0.4959999999999999 # Fe34
+ 0.0690000000000000 0.2560000000000002 0.9949999999999999 # Fe35
+ 0.0730000000000002 0.2540000000000002 0.4879000000000000 # Fe36
+ 0.2382000000000003 0.5860000000000001 0.4990000000000001 # Fe37
+ 0.2384000000000002 0.5920000000000001 0.9960000000000000 # Fe38
+ 0.5690000000000003 0.7560000000000003 0.4949999999999997 # Fe39
+ 0.5730000000000004 0.7540000000000006 0.9878999999999998 # Fe40
+ 0.9140000000000005 0.2382000000000001 0.2490000000000001 # Fe41
+ 0.9080000000000004 0.2384000000000002 0.7459999999999999 # Fe42
+ 0.7440000000000002 0.5690000000000001 0.2449999999999999 # Fe43
+ 0.7460000000000000 0.5730000000000004 0.7378999999999999 # Fe44
+ 0.4140000000000003 0.7382000000000004 0.7489999999999999 # Fe45
+ 0.4080000000000003 0.7384000000000003 0.2460000000000000 # Fe46
+ 0.2440000000000002 0.0690000000000000 0.7449999999999999 # Fe47
+ 0.2460000000000000 0.0730000000000002 0.2379000000000001 # Fe48
+ 0.2660000000000002 0.8600000000000004 0.2379999999999999 # F1
+ 0.2720000000000002 0.8410000000000004 0.7259999999999999 # F2
+ 0.7660000000000002 0.3600000000000000 0.7380000000000001 # F3
+ 0.7720000000000004 0.3410000000000002 0.2260000000000001 # F4
+ 0.1400000000000000 0.7660000000000002 0.4880000000000000 # F5
+ 0.1590000000000002 0.7720000000000004 0.9759999999999998 # F6
+ 0.6400000000000002 0.2660000000000002 0.9880000000000000 # F7
+ 0.6590000000000004 0.2720000000000002 0.4760000000000000 # F8
+ 0.7340000000000003 0.1400000000000000 0.2379999999999999 # F9
+ 0.7280000000000002 0.1590000000000002 0.7259999999999999 # F10
+ 0.2340000000000002 0.6400000000000002 0.7380000000000001 # F11
+ 0.2280000000000001 0.6590000000000004 0.2260000000000001 # F12
+ 0.8600000000000004 0.2340000000000002 0.4880000000000000 # F13
+ 0.8410000000000004 0.2280000000000001 0.9759999999999998 # F14
+ 0.3600000000000000 0.7340000000000003 0.9880000000000000 # F15
+ 0.3410000000000002 0.7280000000000002 0.4760000000000000 # F16
diff --git a/test/data/tetragonal/POSCAR-080-2 b/test/data/tetragonal/POSCAR-080-2
new file mode 100644
index 0000000..2902a1b
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-080-2
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 9.6929954390386115 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.6929954390386115 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9849971838075025
+ 16 32
+Direct
+ 0.2620999999999999 0.5076000000000002 0.0298999999999999 # Nb1
+ 0.2455000000000003 0.4908999999999999 0.4803999999999999 # Nb2
+ 0.7620999999999998 0.0076000000000002 0.5298999999999998 # Nb3
+ 0.7455000000000003 0.9908999999999998 0.9803999999999998 # Nb4
+ 0.4924000000000003 0.7620999999999998 0.2799000000000003 # Nb5
+ 0.5091000000000000 0.7455000000000003 0.7303999999999994 # Nb6
+ 0.9924000000000002 0.2620999999999999 0.7798999999999995 # Nb7
+ 0.0091000000000000 0.2455000000000003 0.2303999999999995 # Nb8
+ 0.7378999999999999 0.4923999999999997 0.0298999999999999 # Nb9
+ 0.7545000000000002 0.5091000000000000 0.4803999999999999 # Nb10
+ 0.2379000000000000 0.9924000000000002 0.5298999999999998 # Nb11
+ 0.2545000000000003 0.0091000000000000 0.9803999999999998 # Nb12
+ 0.5076000000000002 0.2379000000000000 0.2799000000000003 # Nb13
+ 0.4908999999999999 0.2545000000000003 0.7303999999999994 # Nb14
+ 0.0076000000000002 0.7378999999999999 0.7798999999999995 # Nb15
+ 0.9908999999999998 0.7545000000000002 0.2303999999999995 # Nb16
+ 0.3973999999999999 0.1497000000000002 0.0077000000000004 # O1
+ 0.1102000000000003 0.3642000000000000 0.9919999999999998 # O2
+ 0.6085999999999998 0.3609000000000002 0.5064000000000002 # O3
+ 0.6500000000000001 0.1037999999999998 0.2483999999999997 # O4
+ 0.8973999999999998 0.6497000000000001 0.5076999999999995 # O5
+ 0.6101999999999997 0.8641999999999999 0.4919999999999999 # O6
+ 0.1085999999999999 0.8609000000000001 0.0064000000000003 # O7
+ 0.1500000000000002 0.6038000000000003 0.7483999999999998 # O8
+ 0.8503000000000003 0.8973999999999998 0.2576999999999999 # O9
+ 0.6358000000000000 0.6102000000000003 0.2420000000000003 # O10
+ 0.6391000000000002 0.1085999999999999 0.7563999999999997 # O11
+ 0.8962000000000001 0.1499999999999997 0.4984000000000001 # O12
+ 0.3503000000000003 0.3973999999999999 0.7576999999999998 # O13
+ 0.1358000000000001 0.1102000000000003 0.7419999999999994 # O14
+ 0.1391000000000003 0.6085999999999998 0.2563999999999998 # O15
+ 0.3962000000000001 0.6500000000000001 0.9983999999999992 # O16
+ 0.6026000000000000 0.8503000000000003 0.0077000000000004 # O17
+ 0.8898000000000000 0.6358000000000000 0.9919999999999998 # O18
+ 0.3914000000000001 0.6391000000000002 0.5064000000000002 # O19
+ 0.3500000000000003 0.8962000000000001 0.2483999999999997 # O20
+ 0.1026000000000001 0.3503000000000003 0.5076999999999995 # O21
+ 0.3898000000000002 0.1358000000000001 0.4919999999999999 # O22
+ 0.8914000000000001 0.1390999999999998 0.0064000000000003 # O23
+ 0.8500000000000002 0.3962000000000001 0.7483999999999998 # O24
+ 0.1497000000000002 0.1026000000000001 0.2576999999999999 # O25
+ 0.3642000000000000 0.3898000000000002 0.2420000000000003 # O26
+ 0.3609000000000002 0.8914000000000001 0.7563999999999997 # O27
+ 0.1037999999999998 0.8500000000000002 0.4984000000000001 # O28
+ 0.6497000000000001 0.6026000000000000 0.7576999999999998 # O29
+ 0.8641999999999999 0.8898000000000000 0.7419999999999994 # O30
+ 0.8609000000000001 0.3914000000000001 0.2563999999999998 # O31
+ 0.6038000000000003 0.3500000000000003 0.9983999999999992 # O32
diff --git a/test/data/tetragonal/POSCAR-081 b/test/data/tetragonal/POSCAR-081
new file mode 100644
index 0000000..be80808
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-081
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 7.6208964140482189 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.6208964140482189 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3199970261760088
+ 4 4 4 10
+Direct
+ 0.6480999999999999 0.8290999999999996 0.3564999999999999 # Te1
+ 0.8290999999999996 0.3519000000000001 0.6434999999999993 # Te2
+ 0.3519000000000001 0.1709000000000003 0.3564999999999999 # Te3
+ 0.1709000000000003 0.6480999999999999 0.6434999999999993 # Te4
+ 0.7308999999999998 0.4530999999999998 0.1579000000000002 # Cu1
+ 0.4530999999999998 0.2691000000000002 0.8421000000000000 # Cu2
+ 0.2691000000000002 0.5468999999999995 0.1579000000000002 # Cu3
+ 0.5468999999999995 0.7308999999999998 0.8421000000000000 # Cu4
+ 0.9077999999999997 0.2221999999999999 0.1878999999999998 # Cl1
+ 0.2221999999999999 0.0922000000000003 0.8120999999999994 # Cl2
+ 0.0921999999999996 0.7777999999999999 0.1878999999999998 # Cl3
+ 0.7777999999999999 0.9077999999999997 0.8120999999999994 # Cl4
+ 0.5857999999999995 0.6674999999999994 0.1408000000000003 # O1
+ 0.4718000000000002 0.7712999999999999 0.5516000000000001 # O2
+ 0.5000000000000000 0.0000000000000000 0.2156999999999996 # O3
+ 0.6674999999999994 0.4142000000000003 0.8592000000000001 # O4
+ 0.7712999999999999 0.5281999999999998 0.4484000000000001 # O5
+ 0.0000000000000000 0.5000000000000000 0.7842999999999997 # O6
+ 0.4141999999999996 0.3324999999999998 0.1408000000000003 # O7
+ 0.5281999999999998 0.2287000000000002 0.5516000000000001 # O8
+ 0.3324999999999998 0.5857999999999995 0.8592000000000001 # O9
+ 0.2287000000000002 0.4718000000000002 0.4484000000000001 # O10
diff --git a/test/data/tetragonal/POSCAR-081-2 b/test/data/tetragonal/POSCAR-081-2
new file mode 100644
index 0000000..928b465
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-081-2
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 10.1814952091789586 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.1814952091789586 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2949975084813232
+ 30
+Direct
+ 0.4999999999999998 0.0000000000000000 0.2472999999999998 # Ta1
+ 0.7597999999999998 0.0657999999999998 0.2492999999999998 # Ta2
+ 0.4318999999999998 0.7380000000000001 0.2518000000000004 # Ta3
+ 0.0341000000000002 0.1278000000000003 0.2519999999999998 # Ta4
+ 0.3703999999999999 0.4649999999999997 0.2487000000000003 # Ta5
+ 0.1064000000000002 0.3960000000000001 0.2519000000000001 # Ta6
+ 0.8179999999999998 0.3183000000000000 0.0004999999999997 # Ta7
+ 0.8178000000000001 0.3183000000000000 0.5004999999999997 # Ta8
+ 0.0000000000000000 0.4999999999999998 0.7527000000000000 # Ta9
+ 0.0657999999999998 0.2402000000000001 0.7507000000000001 # Ta10
+ 0.7380000000000001 0.5680999999999996 0.7481999999999995 # Ta11
+ 0.1278000000000003 0.9658999999999998 0.7480000000000000 # Ta12
+ 0.4649999999999997 0.6296000000000002 0.7512999999999996 # Ta13
+ 0.3960000000000001 0.8935999999999996 0.7480999999999998 # Ta14
+ 0.3183000000000000 0.1820000000000001 0.9995000000000003 # Ta15
+ 0.3183000000000000 0.1821999999999999 0.4995000000000002 # Ta16
+ 0.2402000000000001 0.9341999999999996 0.2492999999999998 # Ta17
+ 0.5681000000000003 0.2619999999999998 0.2518000000000004 # Ta18
+ 0.9658999999999998 0.8721999999999996 0.2519999999999998 # Ta19
+ 0.6296000000000002 0.5350000000000001 0.2487000000000003 # Ta20
+ 0.8935999999999996 0.6040000000000000 0.2519000000000001 # Ta21
+ 0.1820000000000001 0.6817000000000001 0.0004999999999997 # Ta22
+ 0.1821999999999999 0.6817000000000001 0.5004999999999997 # Ta23
+ 0.9341999999999996 0.7597999999999998 0.7507000000000001 # Ta24
+ 0.2619999999999998 0.4318999999999998 0.7481999999999995 # Ta25
+ 0.8721999999999996 0.0341000000000002 0.7480000000000000 # Ta26
+ 0.5350000000000001 0.3703999999999999 0.7512999999999996 # Ta27
+ 0.6040000000000000 0.1064000000000002 0.7480999999999998 # Ta28
+ 0.6817000000000001 0.8179999999999998 0.9995000000000003 # Ta29
+ 0.6817000000000001 0.8178000000000001 0.4995000000000002 # Ta30
diff --git a/test/data/tetragonal/POSCAR-082 b/test/data/tetragonal/POSCAR-082
new file mode 100644
index 0000000..61cf6bd
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-082
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 5.5479973894342551 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.5479973894342551 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1699952145901857
+ 2 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cd1
+ 0.4999999999999996 0.4999999999999996 0.5000000000000003 # Cd2
+ 0.0000000000000000 0.0000000000000000 0.5000000000000003 # Ga1
+ 0.0000000000000000 0.4999999999999996 0.2499999999999999 # Ga2
+ 0.4999999999999996 0.4999999999999996 0.0000000000000000 # Ga3
+ 0.4999999999999996 0.0000000000000000 0.7500000000000002 # Ga4
+ 0.2500000000000003 0.2500000000000003 0.1500000000000001 # S1
+ 0.7499999999999999 0.7499999999999999 0.6499999999999999 # S2
+ 0.2500000000000003 0.7499999999999999 0.8500000000000001 # S3
+ 0.7499999999999999 0.2500000000000003 0.3500000000000002 # S4
+ 0.7499999999999999 0.7499999999999999 0.1500000000000001 # S5
+ 0.2500000000000003 0.2500000000000003 0.6499999999999999 # S6
+ 0.7499999999999999 0.2500000000000003 0.8500000000000001 # S7
+ 0.2500000000000003 0.7499999999999999 0.3500000000000002 # S8
diff --git a/test/data/tetragonal/POSCAR-082-2 b/test/data/tetragonal/POSCAR-082-2
new file mode 100644
index 0000000..1925576
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-082-2
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 6.3219970252349214 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.3219970252349214 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.6049940688209769
+ 8 2 4
+Direct
+ 0.2652000000000003 0.2284000000000004 0.1331999999999999 # I1
+ 0.7652000000000008 0.7284000000000002 0.6332000000000001 # I2
+ 0.2284000000000004 0.7348000000000006 0.8668000000000000 # I3
+ 0.7284000000000002 0.2348000000000001 0.3667999999999999 # I4
+ 0.7348000000000006 0.7716000000000004 0.1331999999999999 # I5
+ 0.2348000000000001 0.2716000000000000 0.6332000000000001 # I6
+ 0.7716000000000004 0.2652000000000003 0.8668000000000000 # I7
+ 0.2716000000000000 0.7652000000000008 0.3667999999999999 # I8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Hg1
+ 0.5000000000000004 0.5000000000000004 0.4999999999999998 # Hg2
+ 0.0000000000000000 0.0000000000000000 0.4999999999999998 # Ag1
+ 0.0000000000000000 0.5000000000000004 0.2499999999999999 # Ag2
+ 0.5000000000000004 0.5000000000000004 0.0000000000000000 # Ag3
+ 0.5000000000000004 0.0000000000000000 0.7499999999999996 # Ag4
diff --git a/test/data/tetragonal/POSCAR-083 b/test/data/tetragonal/POSCAR-083
new file mode 100644
index 0000000..4eabb91
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-083
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 8.3279960813281289 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.3279960813281289 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.1344985250868156
+ 4 8 8
+Direct
+ 0.0000000000000000 0.5000000000000003 0.0000000000000000 # U1
+ 0.5000000000000003 0.0000000000000000 0.5000000000000008 # U2
+ 0.5000000000000003 0.0000000000000000 0.0000000000000000 # U3
+ 0.0000000000000000 0.5000000000000003 0.5000000000000008 # U4
+ 0.3575999999999998 0.1746000000000001 0.0000000000000000 # W1
+ 0.1154000000000000 0.3454999999999999 0.5000000000000008 # W2
+ 0.6424000000000001 0.8253999999999998 0.0000000000000000 # W3
+ 0.8846000000000001 0.6545000000000001 0.5000000000000008 # W4
+ 0.8253999999999998 0.3575999999999998 0.0000000000000000 # W5
+ 0.6545000000000001 0.1154000000000000 0.5000000000000008 # W6
+ 0.1746000000000001 0.6424000000000001 0.0000000000000000 # W7
+ 0.3454999999999999 0.8846000000000001 0.5000000000000008 # W8
+ 0.2140000000000001 0.1029999999999998 0.5000000000000008 # C1
+ 0.3249999999999998 0.4139999999999999 0.0000000000000000 # C2
+ 0.7860000000000005 0.8970000000000001 0.5000000000000008 # C3
+ 0.6750000000000002 0.5860000000000001 0.0000000000000000 # C4
+ 0.8970000000000001 0.2140000000000001 0.5000000000000008 # C5
+ 0.5860000000000001 0.3249999999999998 0.0000000000000000 # C6
+ 0.1029999999999998 0.7859999999999999 0.5000000000000008 # C7
+ 0.4139999999999999 0.6750000000000002 0.0000000000000000 # C8
diff --git a/test/data/tetragonal/POSCAR-083-2 b/test/data/tetragonal/POSCAR-083-2
new file mode 100644
index 0000000..43c95b4
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-083-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 12.5999940711736826 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.5999940711736826 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.9999981178329143
+ 31 9
+Direct
+ 0.5000000000000002 0.5000000000000002 0.0000000000000000 # Au1
+ 1.0000000000000000 0.5000000000000002 0.0000000000000000 # Au2
+ 0.0999999999999999 0.2000000000000001 0.0000000000000000 # Au3
+ 0.3000000000000000 0.0999999999999999 0.0000000000000000 # Au4
+ 0.2000000000000001 0.3999999999999999 0.0000000000000000 # Au5
+ 0.1500000000000002 0.0499999999999999 0.5000000000000007 # Au6
+ 0.2500000000000001 0.2500000000000001 0.5000000000000007 # Au7
+ 0.4499999999999998 0.1500000000000002 0.5000000000000007 # Au8
+ 0.3500000000000000 0.4499999999999998 0.5000000000000007 # Au9
+ 0.9000000000000000 0.8000000000000002 0.0000000000000000 # Au10
+ 0.7000000000000001 0.9000000000000000 0.0000000000000000 # Au11
+ 0.8000000000000002 0.6000000000000000 0.0000000000000000 # Au12
+ 0.8500000000000001 0.9500000000000001 0.5000000000000007 # Au13
+ 0.7499999999999998 0.7499999999999998 0.5000000000000007 # Au14
+ 0.5500000000000002 0.8500000000000001 0.5000000000000007 # Au15
+ 0.6500000000000000 0.5500000000000002 0.5000000000000007 # Au16
+ 0.5000000000000002 1.0000000000000000 0.0000000000000000 # Au17
+ 0.8000000000000002 0.0999999999999999 0.0000000000000000 # Au18
+ 0.9000000000000000 0.3000000000000000 0.0000000000000000 # Au19
+ 0.6000000000000000 0.2000000000000001 0.0000000000000000 # Au20
+ 0.9500000000000001 0.1500000000000002 0.5000000000000007 # Au21
+ 0.7499999999999998 0.2500000000000001 0.5000000000000007 # Au22
+ 0.8500000000000001 0.4500000000000003 0.5000000000000007 # Au23
+ 0.5500000000000002 0.3500000000000000 0.5000000000000007 # Au24
+ 0.2000000000000001 0.9000000000000000 0.0000000000000000 # Au25
+ 0.0999999999999999 0.7000000000000001 0.0000000000000000 # Au26
+ 0.3999999999999999 0.8000000000000002 0.0000000000000000 # Au27
+ 0.0499999999999999 0.8500000000000001 0.5000000000000007 # Au28
+ 0.2500000000000001 0.7499999999999998 0.5000000000000007 # Au29
+ 0.1500000000000002 0.5500000000000002 0.5000000000000007 # Au30
+ 0.4500000000000003 0.6500000000000000 0.5000000000000007 # Au31
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mn1
+ 0.3999999999999999 0.3000000000000000 0.0000000000000000 # Mn2
+ 0.0499999999999999 0.3500000000000000 0.5000000000000007 # Mn3
+ 0.6000000000000000 0.7000000000000001 0.0000000000000000 # Mn4
+ 0.9500000000000001 0.6500000000000000 0.5000000000000007 # Mn5
+ 0.7000000000000001 0.3999999999999999 0.0000000000000000 # Mn6
+ 0.6500000000000000 0.0499999999999999 0.5000000000000007 # Mn7
+ 0.3000000000000000 0.6000000000000000 0.0000000000000000 # Mn8
+ 0.3500000000000004 0.9500000000000001 0.5000000000000007 # Mn9
diff --git a/test/data/tetragonal/POSCAR-083-3 b/test/data/tetragonal/POSCAR-083-3
new file mode 100644
index 0000000..abc84bb
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-083-3
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 7.8199963203633498 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.8199963203633498 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.3599965368125666
+ 4 4 32
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # Te1
+ 0.4999999999999999 0.4999999999999999 0.2500000000000000 # Te2
+ 0.0000000000000000 0.0000000000000000 0.7499999999999999 # Te3
+ 0.4999999999999999 0.4999999999999999 0.7499999999999999 # Te4
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # K1
+ 0.0000000000000000 0.4999999999999999 0.4999999999999999 # K2
+ 0.4999999999999999 0.0000000000000000 0.4999999999999999 # K3
+ 0.4999999999999999 0.0000000000000000 0.0000000000000000 # K4
+ 0.2280000000000002 0.0809999999999999 0.2500000000000000 # O1
+ 0.7280000000000001 0.5809999999999998 0.2500000000000000 # O2
+ 0.0669999999999999 0.0360000000000001 0.0000000000000000 # O3
+ 0.5669999999999999 0.5360000000000000 0.0000000000000000 # O4
+ 0.0360000000000001 0.9329999999999999 0.0000000000000000 # O5
+ 0.5360000000000000 0.4330000000000001 0.0000000000000000 # O6
+ 0.7719999999999998 0.9190000000000000 0.7499999999999999 # O7
+ 0.2719999999999998 0.4190000000000001 0.7499999999999999 # O8
+ 0.9329999999999999 0.9639999999999999 0.0000000000000000 # O9
+ 0.4330000000000001 0.4639999999999999 0.0000000000000000 # O10
+ 0.9639999999999999 0.0669999999999999 0.0000000000000000 # O11
+ 0.4639999999999999 0.5669999999999999 0.0000000000000000 # O12
+ 0.9190000000000000 0.2280000000000002 0.7499999999999999 # O13
+ 0.4190000000000001 0.7280000000000001 0.7499999999999999 # O14
+ 0.9639999999999999 0.0669999999999999 0.4999999999999999 # O15
+ 0.4639999999999999 0.5669999999999999 0.4999999999999999 # O16
+ 0.0669999999999999 0.0360000000000001 0.4999999999999999 # O17
+ 0.5669999999999999 0.5360000000000000 0.4999999999999999 # O18
+ 0.0809999999999999 0.7719999999999998 0.2500000000000000 # O19
+ 0.5809999999999998 0.2719999999999998 0.2500000000000000 # O20
+ 0.0360000000000001 0.9329999999999999 0.4999999999999999 # O21
+ 0.5360000000000000 0.4330000000000001 0.4999999999999999 # O22
+ 0.9329999999999999 0.9639999999999999 0.4999999999999999 # O23
+ 0.4330000000000001 0.4639999999999999 0.4999999999999999 # O24
+ 0.7719999999999998 0.9190000000000000 0.2500000000000000 # O25
+ 0.2719999999999998 0.4190000000000001 0.2500000000000000 # O26
+ 0.2280000000000002 0.0809999999999999 0.7499999999999999 # O27
+ 0.7280000000000001 0.5809999999999998 0.7499999999999999 # O28
+ 0.0809999999999999 0.7719999999999998 0.7499999999999999 # O29
+ 0.5809999999999998 0.2719999999999998 0.7499999999999999 # O30
+ 0.9190000000000000 0.2280000000000002 0.2500000000000000 # O31
+ 0.4190000000000001 0.7280000000000001 0.2500000000000000 # O32
diff --git a/test/data/tetragonal/POSCAR-084 b/test/data/tetragonal/POSCAR-084
new file mode 100644
index 0000000..eeb90de
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-084
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 6.4299969744164143 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.4299969744164143 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.6299968803080569
+ 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000004 # Pd1
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # Pd2
+ 0.4750000000000001 0.2499999999999999 0.0000000000000000 # Pd3
+ 0.5249999999999998 0.7499999999999999 0.0000000000000000 # Pd4
+ 0.7499999999999999 0.4750000000000001 0.4999999999999999 # Pd5
+ 0.0000000000000000 0.0000000000000000 0.7500000000000003 # Pd6
+ 0.4999999999999999 0.0000000000000000 0.4999999999999999 # Pd7
+ 0.2499999999999999 0.5249999999999998 0.4999999999999999 # Pd8
+ 0.2000000000000003 0.3199999999999997 0.2200000000000002 # S1
+ 0.7999999999999997 0.6800000000000002 0.7799999999999998 # S2
+ 0.6799999999999995 0.2000000000000003 0.7200000000000002 # S3
+ 0.3199999999999997 0.7999999999999997 0.2799999999999997 # S4
+ 0.7999999999999997 0.6799999999999995 0.2200000000000002 # S5
+ 0.2000000000000003 0.3199999999999997 0.7799999999999998 # S6
+ 0.6799999999999995 0.2000000000000003 0.2799999999999997 # S7
+ 0.3199999999999997 0.7999999999999997 0.7200000000000002 # S8
diff --git a/test/data/tetragonal/POSCAR-084-2 b/test/data/tetragonal/POSCAR-084-2
new file mode 100644
index 0000000..6ee6da6
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-084-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 7.1669966276271246 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.1669966276271246 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.5979968953653971
+ 10 8 2
+Direct
+ 0.6555000000000001 0.1883000000000000 0.0000000000000000 # Zr1
+ 0.1831000000000003 0.3504000000000003 0.0000000000000000 # Zr2
+ 0.0000000000000000 0.0000000000000000 0.2499999999999996 # Zr3
+ 0.3445000000000000 0.8117000000000000 0.0000000000000000 # Zr4
+ 0.8169000000000004 0.6495999999999996 0.0000000000000000 # Zr5
+ 0.0000000000000000 0.0000000000000000 0.7499999999999997 # Zr6
+ 0.8117000000000000 0.6555000000000001 0.5000000000000000 # Zr7
+ 0.6495999999999996 0.1831000000000003 0.5000000000000000 # Zr8
+ 0.1883000000000000 0.3445000000000000 0.5000000000000000 # Zr9
+ 0.3504000000000003 0.8169000000000004 0.5000000000000000 # Zr10
+ 0.8792999999999999 0.3672000000000003 0.2574999999999997 # Ni1
+ 0.1207000000000001 0.6328000000000004 0.7424999999999993 # Ni2
+ 0.6328000000000004 0.8793000000000006 0.7574999999999996 # Ni3
+ 0.3672000000000003 0.1207000000000001 0.2425000000000002 # Ni4
+ 0.1207000000000001 0.6328000000000004 0.2574999999999997 # Ni5
+ 0.8792999999999999 0.3672000000000003 0.7424999999999993 # Ni6
+ 0.3672000000000003 0.1207000000000001 0.7574999999999996 # Ni7
+ 0.6328000000000004 0.8792999999999999 0.2425000000000002 # Ni8
+ 0.4999999999999999 0.4999999999999999 0.2499999999999996 # Al1
+ 0.4999999999999999 0.4999999999999999 0.7499999999999997 # Al2
diff --git a/test/data/tetragonal/POSCAR-085 b/test/data/tetragonal/POSCAR-085
new file mode 100644
index 0000000..7e1a93f
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-085
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 6.2609970539379711 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.2609970539379711 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.1009980703081945
+ 2 10 2
+Direct
+ 0.0000000000000000 0.5000000000000000 0.6176000000000000 # V1
+ 0.5000000000000000 0.0000000000000000 0.3824000000000000 # V2
+ 0.0000000000000000 0.5000000000000000 0.2200000000000006 # O1
+ 0.5380000000000000 0.6829999999999997 0.2850000000000006 # O2
+ 0.5000000000000000 0.0000000000000000 0.7800000000000007 # O3
+ 0.9620000000000001 0.8170000000000004 0.7150000000000006 # O4
+ 0.8170000000000004 0.0380000000000000 0.2850000000000006 # O5
+ 0.4620000000000001 0.3170000000000003 0.2850000000000006 # O6
+ 0.1829999999999997 0.9620000000000001 0.2850000000000006 # O7
+ 0.6829999999999997 0.4620000000000001 0.7150000000000006 # O8
+ 0.3170000000000003 0.5380000000000000 0.7150000000000006 # O9
+ 0.0380000000000000 0.1829999999999997 0.7150000000000006 # O10
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # S1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # S2
diff --git a/test/data/tetragonal/POSCAR-085-2 b/test/data/tetragonal/POSCAR-085-2
new file mode 100644
index 0000000..49ed047
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-085-2
@@ -0,0 +1,41 @@
+$cell vectors
+1.0
+ 8.3799960568599605 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.3799960568599605 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4899964756421369
+ 2 8 24
+Direct
+ 0.2499999999999996 0.2499999999999996 0.0603000000000003 # Zr1
+ 0.7499999999999997 0.7499999999999997 0.9396999999999998 # Zr2
+ 0.9940000000000000 0.9700000000000000 0.2698999999999999 # I1
+ 0.0060000000000001 0.0299999999999999 0.7300999999999995 # I2
+ 0.5299999999999998 0.9940000000000000 0.2698999999999999 # I3
+ 0.4700000000000001 0.0060000000000001 0.7300999999999995 # I4
+ 0.5060000000000000 0.5299999999999998 0.2698999999999999 # I5
+ 0.4939999999999999 0.4700000000000001 0.7300999999999995 # I6
+ 0.9700000000000000 0.5060000000000000 0.2698999999999999 # I7
+ 0.0299999999999999 0.4939999999999999 0.7300999999999995 # I8
+ 0.1547000000000002 0.9980000000000001 0.5577999999999997 # O1
+ 0.0403999999999999 0.1787000000000000 0.2173000000000001 # O2
+ 0.8419999999999999 0.9569999999999999 0.0928999999999996 # O3
+ 0.8452999999999997 0.0019999999999998 0.4421999999999996 # O4
+ 0.9596000000000000 0.8212999999999999 0.7827000000000000 # O5
+ 0.1580000000000001 0.0430000000000000 0.9070999999999999 # O6
+ 0.5019999999999999 0.1547000000000002 0.5577999999999997 # O7
+ 0.3213000000000000 0.0403999999999999 0.2173000000000001 # O8
+ 0.5430000000000000 0.8419999999999999 0.0928999999999996 # O9
+ 0.4980000000000002 0.8452999999999997 0.4421999999999996 # O10
+ 0.6787000000000000 0.9596000000000000 0.7827000000000000 # O11
+ 0.4569999999999999 0.1580000000000001 0.9070999999999999 # O12
+ 0.3453000000000004 0.5019999999999999 0.5577999999999997 # O13
+ 0.4596000000000001 0.3213000000000000 0.2173000000000001 # O14
+ 0.6580000000000000 0.5430000000000000 0.0928999999999996 # O15
+ 0.6547000000000003 0.4980000000000002 0.4421999999999996 # O16
+ 0.5403999999999999 0.6787000000000000 0.7827000000000000 # O17
+ 0.3419999999999999 0.4569999999999999 0.9070999999999999 # O18
+ 0.9980000000000001 0.3452999999999998 0.5577999999999997 # O19
+ 0.1787000000000000 0.4596000000000001 0.2173000000000001 # O20
+ 0.9569999999999999 0.6580000000000000 0.0928999999999996 # O21
+ 0.0019999999999998 0.6547000000000003 0.4421999999999996 # O22
+ 0.8212999999999999 0.5403999999999999 0.7827000000000000 # O23
+ 0.0430000000000000 0.3419999999999999 0.9070999999999999 # O24
diff --git a/test/data/tetragonal/POSCAR-086 b/test/data/tetragonal/POSCAR-086
new file mode 100644
index 0000000..7f34da3
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-086
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 11.1869947360492095 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.1869947360492095 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1889970878169809
+ 8 8 16
+Direct
+ 0.1169999999999998 0.1597000000000001 0.1700999999999996 # N1
+ 0.8829999999999998 0.8402999999999998 0.8298999999999994 # N2
+ 0.8402999999999998 0.6169999999999998 0.6700999999999996 # N3
+ 0.1597000000000001 0.3829999999999996 0.3298999999999995 # N4
+ 0.3829999999999996 0.3402999999999999 0.1700999999999996 # N5
+ 0.6169999999999998 0.6596999999999996 0.8298999999999994 # N6
+ 0.6596999999999996 0.8829999999999998 0.6700999999999996 # N7
+ 0.3402999999999999 0.1169999999999998 0.3298999999999995 # N8
+ 0.2048999999999999 0.0807000000000002 0.3086000000000003 # P1
+ 0.7950999999999997 0.9192999999999997 0.6913999999999997 # P2
+ 0.9192999999999997 0.7048999999999997 0.8085999999999993 # P3
+ 0.0807000000000002 0.2951000000000001 0.1913999999999997 # P4
+ 0.2951000000000001 0.4192999999999997 0.3086000000000003 # P5
+ 0.7048999999999997 0.5806999999999997 0.6913999999999997 # P6
+ 0.5806999999999997 0.7950999999999997 0.8085999999999993 # P7
+ 0.4192999999999997 0.2048999999999999 0.1913999999999997 # P8
+ 0.1412999999999999 0.0551000000000002 0.6358999999999998 # Br1
+ 0.1930000000000001 -0.0959999999999999 0.1657000000000001 # Br2
+ 0.8586999999999996 0.9448999999999994 0.3641000000000002 # Br3
+ 0.8069999999999997 1.0959999999999999 0.8342999999999999 # Br4
+ 0.9448999999999994 0.6412999999999999 1.1358999999999997 # Br5
+ 1.0959999999999999 0.6930000000000002 0.6657000000000001 # Br6
+ 0.0551000000000002 0.3587000000000000 -0.1358999999999997 # Br7
+ -0.0959999999999999 0.3069999999999998 0.3342999999999998 # Br8
+ 0.3587000000000000 0.4448999999999998 0.6358999999999998 # Br9
+ 0.3069999999999998 0.5959999999999999 0.1657000000000001 # Br10
+ 0.6412999999999999 0.5550999999999997 0.3641000000000002 # Br11
+ 0.6930000000000002 0.4040000000000001 0.8342999999999999 # Br12
+ 0.5551000000000003 0.8586999999999996 1.1358999999999997 # Br13
+ 0.4040000000000001 0.8069999999999997 0.6657000000000001 # Br14
+ 0.4448999999999998 0.1412999999999999 -0.1358999999999997 # Br15
+ 0.5959999999999999 0.1930000000000001 0.3342999999999998 # Br16
diff --git a/test/data/tetragonal/POSCAR-086-2 b/test/data/tetragonal/POSCAR-086-2
new file mode 100644
index 0000000..dd12755
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-086-2
@@ -0,0 +1,25 @@
+$cell vectors
+1.0
+ 7.0699966732696797 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.0699966732696797 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.8219982015893534
+ 2 8 8
+Direct
+ 0.2500000000000002 0.2500000000000002 0.2499999999999997 # Nd1
+ 0.7499999999999999 0.7499999999999999 0.7499999999999990 # Nd2
+ 0.6250000000000001 0.1070000000000000 0.3619999999999998 # Co1
+ 0.3749999999999999 0.8929999999999999 0.6380000000000001 # Co2
+ 0.8929999999999999 0.1249999999999997 0.8619999999999991 # Co3
+ 0.1070000000000000 0.8750000000000002 0.1379999999999995 # Co4
+ 0.8750000000000002 0.3929999999999996 0.3619999999999998 # Co5
+ 0.1249999999999997 0.6069999999999997 0.6380000000000001 # Co6
+ 0.6069999999999997 0.3749999999999999 0.8619999999999991 # Co7
+ 0.3930000000000003 0.6250000000000001 0.1379999999999995 # Co8
+ 0.0250000000000004 0.5999999999999996 0.1249999999999998 # B1
+ 0.9749999999999996 0.4000000000000003 0.8749999999999987 # B2
+ 0.4000000000000003 0.5250000000000000 0.6249999999999990 # B3
+ 0.5999999999999996 0.4750000000000000 0.3749999999999994 # B4
+ 0.4750000000000000 0.8999999999999999 0.1249999999999998 # B5
+ 0.5250000000000000 0.1000000000000001 0.8749999999999987 # B6
+ 0.1000000000000001 0.9749999999999996 0.6249999999999990 # B7
+ 0.8999999999999999 0.0249999999999996 0.3749999999999994 # B8
diff --git a/test/data/tetragonal/POSCAR-087 b/test/data/tetragonal/POSCAR-087
new file mode 100644
index 0000000..53f1ead
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-087
@@ -0,0 +1,65 @@
+$cell vectors
+1.0
+ 11.4079946320594772 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.4079946320594772 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.2559951741235977
+ 12 16 30
+Direct
+ 0.0000000000000000 0.0000000000000000 0.3044000000000000 # Ba1
+ 0.2484000000000002 0.1304000000000000 0.0000000000000000 # Ba2
+ 0.5000000000000000 0.5000000000000000 0.8043999999999999 # Ba3
+ 0.7483999999999996 0.6304000000000000 0.4999999999999999 # Ba4
+ 0.0000000000000000 0.0000000000000000 0.6955999999999999 # Ba5
+ 0.7515999999999998 0.8695999999999998 0.0000000000000000 # Ba6
+ 0.5000000000000000 0.5000000000000000 0.1956000000000000 # Ba7
+ 0.2515999999999998 0.3696000000000000 0.4999999999999999 # Ba8
+ 0.8695999999999998 0.2484000000000002 0.0000000000000000 # Ba9
+ 0.3696000000000000 0.7483999999999996 0.4999999999999999 # Ba10
+ 0.1304000000000000 0.7515999999999998 0.0000000000000000 # Ba11
+ 0.6304000000000000 0.2515999999999998 0.4999999999999999 # Ba12
+ 0.1536999999999998 0.4383999999999998 0.1364999999999998 # Fe1
+ 0.6536999999999997 0.9383999999999998 0.6364999999999997 # Fe2
+ 0.8462999999999997 0.5615999999999998 0.8634999999999996 # Fe3
+ 0.3463000000000002 0.0615999999999998 0.3635000000000001 # Fe4
+ 0.5615999999999998 0.1536999999999998 0.1364999999999998 # Fe5
+ 0.0616000000000002 0.6536999999999997 0.6364999999999997 # Fe6
+ 0.4384000000000002 0.8463000000000002 0.8634999999999996 # Fe7
+ 0.9383999999999998 0.3462999999999997 0.3635000000000001 # Fe8
+ 0.8462999999999997 0.5615999999999998 0.1364999999999998 # Fe9
+ 0.3463000000000002 0.0615999999999998 0.6364999999999997 # Fe10
+ 0.1537000000000002 0.4384000000000002 0.8634999999999996 # Fe11
+ 0.6536999999999997 0.9383999999999998 0.3635000000000001 # Fe12
+ 0.4384000000000002 0.8462999999999997 0.1364999999999998 # Fe13
+ 0.9383999999999998 0.3463000000000002 0.6364999999999997 # Fe14
+ 0.5615999999999998 0.1536999999999998 0.8634999999999996 # Fe15
+ 0.0616000000000002 0.6536999999999997 0.3635000000000001 # Fe16
+ 0.0790000000000000 0.2700000000000001 0.2266000000000001 # S1
+ 0.3035000000000001 0.3950999999999998 0.0000000000000000 # S2
+ 0.0000000000000000 0.5000000000000000 0.4999999999999999 # S3
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # S4
+ 0.5790000000000000 0.7699999999999996 0.7266000000000000 # S5
+ 0.8035000000000002 0.8950999999999999 0.4999999999999999 # S6
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # S7
+ 0.5000000000000000 0.5000000000000000 0.4999999999999999 # S8
+ 0.9209999999999995 0.7299999999999999 0.7733999999999999 # S9
+ 0.6964999999999999 0.6049000000000001 0.0000000000000000 # S10
+ 0.4210000000000000 0.2299999999999999 0.2733999999999999 # S11
+ 0.1964999999999998 0.1048999999999996 0.4999999999999999 # S12
+ 0.7299999999999999 0.0790000000000000 0.2266000000000001 # S13
+ 0.6049000000000001 0.3034999999999996 0.0000000000000000 # S14
+ 0.5000000000000000 0.0000000000000000 0.4999999999999999 # S15
+ 0.2299999999999999 0.5790000000000000 0.7266000000000000 # S16
+ 0.1049000000000001 0.8035000000000002 0.4999999999999999 # S17
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # S18
+ 0.2700000000000001 0.9209999999999995 0.7733999999999999 # S19
+ 0.3950999999999998 0.6964999999999999 0.0000000000000000 # S20
+ 0.7699999999999996 0.4210000000000000 0.2733999999999999 # S21
+ 0.8950999999999999 0.1964999999999998 0.4999999999999999 # S22
+ 0.9209999999999995 0.7299999999999999 0.2266000000000001 # S23
+ 0.4210000000000000 0.2299999999999999 0.7266000000000000 # S24
+ 0.0790000000000000 0.2700000000000001 0.7733999999999999 # S25
+ 0.5790000000000000 0.7699999999999996 0.2733999999999999 # S26
+ 0.2700000000000001 0.9209999999999995 0.2266000000000001 # S27
+ 0.7699999999999996 0.4210000000000000 0.7266000000000000 # S28
+ 0.7299999999999999 0.0790000000000000 0.7733999999999999 # S29
+ 0.2299999999999999 0.5790000000000000 0.2733999999999999 # S30
diff --git a/test/data/tetragonal/POSCAR-087-2 b/test/data/tetragonal/POSCAR-087-2
new file mode 100644
index 0000000..7d82243
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-087-2
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 9.8849953486945950 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.8849953486945950 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.1269985286158799
+ 8 2 16
+Direct
+ 0.3501999999999999 0.1677000000000002 0.0000000000000000 # Ru1
+ 0.8501999999999997 0.6676999999999996 0.5000000000000009 # Ru2
+ 0.6498000000000000 0.8322999999999996 0.0000000000000000 # Ru3
+ 0.3322999999999998 0.8501999999999997 0.5000000000000009 # Ru4
+ 0.1677000000000002 0.6498000000000000 0.0000000000000000 # Ru5
+ 0.6676999999999996 0.1498000000000001 0.5000000000000009 # Ru6
+ 0.1498000000000001 0.3322999999999998 0.5000000000000009 # Ru7
+ 0.8322999999999996 0.3501999999999999 0.0000000000000000 # Ru8
+ 0.0000000000000000 0.0000000000000000 0.5000000000000009 # K1
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # K2
+ 0.1477999999999998 0.1985000000000001 0.0000000000000000 # O1
+ 0.5458000000000000 0.1578000000000000 0.0000000000000000 # O2
+ 0.6477999999999998 0.6985000000000000 0.5000000000000009 # O3
+ 0.0457999999999999 0.6578000000000001 0.5000000000000009 # O4
+ 0.8521999999999996 0.8014999999999999 0.0000000000000000 # O5
+ 0.8421999999999999 0.5458000000000000 0.0000000000000000 # O6
+ 0.3014999999999999 0.6477999999999998 0.5000000000000009 # O7
+ 0.3421999999999999 0.0457999999999999 0.5000000000000009 # O8
+ 0.1985000000000001 0.8521999999999996 0.0000000000000000 # O9
+ 0.1578000000000000 0.4542000000000002 0.0000000000000000 # O10
+ 0.6985000000000000 0.3522000000000001 0.5000000000000009 # O11
+ 0.6578000000000001 0.9541999999999994 0.5000000000000009 # O12
+ 0.4542000000000002 0.8421999999999999 0.0000000000000000 # O13
+ 0.3522000000000001 0.3014999999999999 0.5000000000000009 # O14
+ 0.9541999999999994 0.3421999999999999 0.5000000000000009 # O15
+ 0.8014999999999999 0.1477999999999998 0.0000000000000000 # O16
diff --git a/test/data/tetragonal/POSCAR-088 b/test/data/tetragonal/POSCAR-088
new file mode 100644
index 0000000..c18d360
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-088
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 13.6959935554598999 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.6959935554598999 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9809971856896675
+ 32 64
+Direct
+ 0.1160000000000003 0.1229999999999999 0.4879999999999997 # Nb1
+ 0.1329999999999999 0.1240000000000000 0.0310000000000003 # Nb2
+ 0.6160000000000001 0.6230000000000001 0.9879999999999998 # Nb3
+ 0.6330000000000000 0.6240000000000002 0.5310000000000002 # Nb4
+ 0.8840000000000001 0.8770000000000001 0.5120000000000003 # Nb5
+ 0.8670000000000000 0.8760000000000000 0.9689999999999998 # Nb6
+ 0.3840000000000000 0.3769999999999999 0.0120000000000003 # Nb7
+ 0.3669999999999999 0.3760000000000001 0.4689999999999997 # Nb8
+ 0.6270000000000002 0.3660000000000002 0.7380000000000002 # Nb9
+ 0.6260000000000002 0.3830000000000002 0.2809999999999998 # Nb10
+ 0.1270000000000000 0.8660000000000000 0.2380000000000001 # Nb11
+ 0.1260000000000003 0.8830000000000000 0.7809999999999998 # Nb12
+ 0.3730000000000002 0.6340000000000002 0.2619999999999998 # Nb13
+ 0.3740000000000003 0.6170000000000001 0.7190000000000000 # Nb14
+ 0.8730000000000001 0.1340000000000001 0.7619999999999998 # Nb15
+ 0.8740000000000002 0.1170000000000000 0.2190000000000001 # Nb16
+ 0.8840000000000001 0.3769999999999999 0.4879999999999997 # Nb17
+ 0.8670000000000000 0.3759999999999998 0.0310000000000003 # Nb18
+ 0.3840000000000000 0.8770000000000001 0.9879999999999998 # Nb19
+ 0.3670000000000003 0.8760000000000000 0.5310000000000002 # Nb20
+ 0.1160000000000003 0.6230000000000001 0.5120000000000003 # Nb21
+ 0.1329999999999999 0.6240000000000002 0.9689999999999998 # Nb22
+ 0.6160000000000001 0.1229999999999999 0.0120000000000003 # Nb23
+ 0.6330000000000000 0.1240000000000000 0.4689999999999997 # Nb24
+ 0.3730000000000002 0.1340000000000001 0.7380000000000002 # Nb25
+ 0.3739999999999999 0.1170000000000000 0.2809999999999998 # Nb26
+ 0.8730000000000001 0.6340000000000002 0.2380000000000001 # Nb27
+ 0.8740000000000002 0.6170000000000001 0.7809999999999998 # Nb28
+ 0.6270000000000002 0.8660000000000000 0.2619999999999998 # Nb29
+ 0.6260000000000002 0.8830000000000000 0.7190000000000000 # Nb30
+ 0.1270000000000000 0.3660000000000002 0.7619999999999998 # Nb31
+ 0.1259999999999999 0.3830000000000002 0.2190000000000001 # Nb32
+ 0.9870000000000001 0.1329999999999999 0.9950000000000002 # O1
+ 0.9760000000000002 0.1259999999999999 0.4849999999999998 # O2
+ 0.2740000000000001 0.1190000000000002 0.9869999999999995 # O3
+ 0.2650000000000002 0.1259999999999999 0.5089999999999995 # O4
+ 0.4870000000000002 0.6330000000000000 0.4950000000000002 # O5
+ 0.4760000000000001 0.6260000000000002 0.9849999999999999 # O6
+ 0.7740000000000002 0.6190000000000001 0.4870000000000006 # O7
+ 0.7649999999999999 0.6260000000000002 0.0089999999999996 # O8
+ 0.0130000000000000 0.8670000000000000 0.0049999999999998 # O9
+ 0.0240000000000001 0.8740000000000002 0.5150000000000001 # O10
+ 0.7259999999999999 0.8810000000000003 0.0130000000000003 # O11
+ 0.7350000000000003 0.8740000000000002 0.4910000000000004 # O12
+ 0.5130000000000002 0.3669999999999999 0.5049999999999997 # O13
+ 0.5239999999999999 0.3739999999999999 0.0150000000000002 # O14
+ 0.2260000000000001 0.3810000000000001 0.5130000000000001 # O15
+ 0.2350000000000001 0.3740000000000003 0.9909999999999995 # O16
+ 0.6170000000000001 0.2370000000000003 0.2449999999999998 # O17
+ 0.6240000000000002 0.2260000000000001 0.7350000000000002 # O18
+ 0.6310000000000000 0.5239999999999999 0.2370000000000001 # O19
+ 0.6240000000000002 0.5150000000000001 0.7589999999999999 # O20
+ 0.1170000000000000 0.7370000000000001 0.7449999999999998 # O21
+ 0.1240000000000000 0.7259999999999999 0.2350000000000003 # O22
+ 0.1310000000000001 0.0240000000000001 0.7370000000000000 # O23
+ 0.1240000000000000 0.0149999999999998 0.2590000000000000 # O24
+ 0.3830000000000002 0.7630000000000002 0.7550000000000001 # O25
+ 0.3760000000000001 0.7740000000000002 0.2649999999999997 # O26
+ 0.3690000000000002 0.4760000000000001 0.7629999999999998 # O27
+ 0.3760000000000001 0.4849999999999999 0.2410000000000000 # O28
+ 0.8830000000000000 0.2629999999999999 0.2550000000000002 # O29
+ 0.8760000000000000 0.2740000000000001 0.7649999999999997 # O30
+ 0.8690000000000003 0.9760000000000002 0.2629999999999998 # O31
+ 0.8760000000000000 0.9850000000000002 0.7409999999999999 # O32
+ 0.0130000000000000 0.3670000000000003 0.9950000000000002 # O33
+ 0.0240000000000001 0.3739999999999999 0.4849999999999998 # O34
+ 0.7259999999999999 0.3810000000000001 0.9869999999999995 # O35
+ 0.7350000000000003 0.3739999999999999 0.5089999999999995 # O36
+ 0.5130000000000002 0.8670000000000000 0.4950000000000002 # O37
+ 0.5240000000000004 0.8740000000000002 0.9849999999999999 # O38
+ 0.2260000000000001 0.8810000000000003 0.4870000000000006 # O39
+ 0.2350000000000001 0.8740000000000002 0.0089999999999996 # O40
+ 0.9870000000000001 0.6330000000000000 0.0049999999999998 # O41
+ 0.9760000000000002 0.6260000000000002 0.5150000000000001 # O42
+ 0.2740000000000001 0.6190000000000001 0.0130000000000003 # O43
+ 0.2650000000000002 0.6260000000000002 0.4910000000000004 # O44
+ 0.4870000000000002 0.1329999999999999 0.5049999999999997 # O45
+ 0.4760000000000001 0.1259999999999999 0.0150000000000002 # O46
+ 0.7740000000000002 0.1190000000000002 0.5130000000000001 # O47
+ 0.7650000000000003 0.1259999999999999 0.9909999999999995 # O48
+ 0.3830000000000002 0.2629999999999999 0.2449999999999998 # O49
+ 0.3760000000000001 0.2740000000000001 0.7350000000000002 # O50
+ 0.3690000000000002 0.9760000000000002 0.2370000000000001 # O51
+ 0.3760000000000001 0.9850000000000002 0.7589999999999999 # O52
+ 0.8830000000000000 0.7630000000000002 0.7449999999999998 # O53
+ 0.8760000000000000 0.7740000000000002 0.2350000000000003 # O54
+ 0.8690000000000001 0.4760000000000001 0.7370000000000000 # O55
+ 0.8760000000000000 0.4849999999999999 0.2590000000000000 # O56
+ 0.6170000000000001 0.7370000000000001 0.7550000000000001 # O57
+ 0.6240000000000002 0.7259999999999999 0.2649999999999997 # O58
+ 0.6310000000000003 0.0240000000000001 0.7629999999999998 # O59
+ 0.6240000000000002 0.0149999999999998 0.2410000000000000 # O60
+ 0.1170000000000000 0.2370000000000003 0.2550000000000002 # O61
+ 0.1240000000000000 0.2260000000000001 0.7649999999999997 # O62
+ 0.1310000000000001 0.5239999999999999 0.2629999999999998 # O63
+ 0.1240000000000000 0.5150000000000001 0.7409999999999999 # O64
diff --git a/test/data/tetragonal/POSCAR-088-2 b/test/data/tetragonal/POSCAR-088-2
new file mode 100644
index 0000000..40836b3
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-088-2
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 5.7409972986196927 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7409972986196927 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.1209938260214241
+ 4 4 16 16
+Direct
+ 0.0000000000000000 0.2500000000000000 0.1250000000000001 # Tc1
+ 0.5000000000000000 0.7500000000000000 0.6249999999999998 # Tc2
+ 0.0000000000000000 0.7500000000000000 0.8749999999999999 # Tc3
+ 0.5000000000000000 0.2500000000000000 0.3749999999999999 # Tc4
+ 0.0000000000000000 0.2500000000000000 0.6249999999999998 # N1
+ 0.5000000000000000 0.7500000000000000 0.1250000000000001 # N2
+ 0.0000000000000000 0.7500000000000000 0.3749999999999999 # N3
+ 0.5000000000000000 0.2500000000000000 0.8749999999999999 # N4
+ 0.1107000000000002 0.4676000000000003 0.1997999999999999 # O1
+ 0.6107000000000002 0.9676000000000003 0.6998000000000000 # O2
+ -0.1107000000000002 0.5324000000000007 0.8001999999999998 # O3
+ 0.3892999999999999 0.0323999999999996 0.3002000000000002 # O4
+ 0.2823999999999997 0.3607000000000002 0.4498000000000001 # O5
+ -0.2175999999999995 0.8607000000000002 0.9497999999999998 # O6
+ 0.7176000000000005 0.6392999999999999 0.5502000000000000 # O7
+ 0.2176000000000004 0.1392999999999998 0.0501999999999999 # O8
+ -0.1107000000000002 0.0323999999999996 0.1997999999999999 # O9
+ 0.3892999999999999 0.5323999999999997 0.6998000000000000 # O10
+ 0.1107000000000002 0.9676000000000003 0.8001999999999998 # O11
+ 0.6107000000000002 0.4676000000000003 0.3002000000000002 # O12
+ 0.7176000000000005 0.1392999999999998 0.4498000000000001 # O13
+ 0.2176000000000004 0.6392999999999999 0.9497999999999998 # O14
+ 0.2823999999999997 0.8607000000000002 0.5502000000000000 # O15
+ -0.2176000000000004 0.3607000000000002 0.0501999999999999 # O16
+ 0.0970000000000005 0.1889999999999998 0.5929999999999997 # H1
+ 0.5969999999999995 0.6889999999999998 0.0930000000000001 # H2
+ -0.0969999999999995 0.8110000000000004 0.4069999999999999 # H3
+ 0.4030000000000005 0.3110000000000002 0.9069999999999999 # H4
+ 0.5610000000000002 0.3470000000000005 0.8430000000000000 # H5
+ 0.0610000000000002 0.8470000000000005 0.3429999999999999 # H6
+ 0.4389999999999998 0.6529999999999997 0.1570000000000001 # H7
+ -0.0610000000000002 0.1530000000000005 0.6569999999999998 # H8
+ -0.0969999999999995 0.3110000000000002 0.5929999999999997 # H9
+ 0.4030000000000005 0.8110000000000004 0.0930000000000001 # H10
+ 0.0970000000000005 0.6889999999999998 0.4069999999999999 # H11
+ 0.5970000000000005 0.1889999999999998 0.9069999999999999 # H12
+ 0.4389999999999998 0.1530000000000005 0.8430000000000000 # H13
+ -0.0610000000000002 0.6529999999999997 0.3429999999999999 # H14
+ 0.5610000000000002 0.8469999999999995 0.1570000000000001 # H15
+ 0.0610000000000002 0.3470000000000005 0.6569999999999998 # H16
diff --git a/test/data/tetragonal/POSCAR-090 b/test/data/tetragonal/POSCAR-090
new file mode 100644
index 0000000..8819bef
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-090
@@ -0,0 +1,61 @@
+$cell vectors
+1.0
+ 9.5597955017147775 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.5597955017147775 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.1599966309209186
+ 2 8 2 8 34
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ba1
+ 0.4999999999999997 0.4999999999999997 0.0000000000000000 # Ba2
+ 0.2638000000000000 0.9846999999999996 0.4069999999999999 # Cu1
+ 0.5152999999999999 0.7637999999999995 0.4069999999999999 # Cu2
+ 0.7361999999999999 0.0153000000000002 0.4069999999999999 # Cu3
+ 0.4847000000000000 0.2362000000000002 0.4069999999999999 # Cu4
+ 0.7637999999999995 0.5152999999999999 0.5930000000000001 # Cu5
+ 0.2362000000000002 0.4847000000000000 0.5930000000000001 # Cu6
+ 0.9846999999999996 0.2638000000000000 0.5930000000000001 # Cu7
+ 0.0153000000000002 0.7361999999999999 0.5930000000000001 # Cu8
+ 0.5000000000000001 0.9999999999999999 0.9769999999999996 # V1
+ 0.0000000000000000 0.4999999999999997 0.0230000000000002 # V2
+ 0.2792000000000001 0.1884999999999997 0.7390999999999996 # P1
+ 0.3114999999999999 0.7791999999999998 0.7390999999999996 # P2
+ 0.7207999999999998 0.8115000000000000 0.7390999999999996 # P3
+ 0.6884999999999999 0.2208000000000007 0.7390999999999996 # P4
+ 0.7791999999999998 0.3114999999999999 0.2609000000000003 # P5
+ 0.2208000000000001 0.6884999999999999 0.2609000000000003 # P6
+ 0.1885000000000003 0.2792000000000001 0.2609000000000003 # P7
+ 0.8114999999999994 0.7207999999999998 0.2609000000000003 # P8
+ 0.3475000000000003 0.1335999999999998 0.5535000000000002 # O1
+ 0.1214000000000001 0.1619999999999999 0.7293000000000001 # O2
+ 0.3334000000000000 0.1036000000000000 0.9057000000000004 # O3
+ 0.5000000000000001 0.9999999999999999 0.2035000000000003 # O4
+ 0.3162000000000000 0.3439999999999996 0.7532000000000001 # O5
+ 0.3663999999999998 0.8474999999999998 0.5535000000000002 # O6
+ 0.3380000000000002 0.6213999999999996 0.7293000000000001 # O7
+ 0.3964000000000002 0.8333999999999997 0.9057000000000004 # O8
+ 0.1560000000000000 0.8162000000000001 0.7532000000000001 # O9
+ 0.6525000000000002 0.8663999999999998 0.5535000000000002 # O10
+ 0.8785999999999997 0.8379999999999999 0.7293000000000001 # O11
+ 0.6666000000000002 0.8963999999999996 0.9057000000000004 # O12
+ 0.6837999999999999 0.6559999999999996 0.7532000000000001 # O13
+ 0.6335999999999999 0.1525000000000005 0.5535000000000002 # O14
+ 0.6620000000000000 0.3786000000000007 0.7293000000000001 # O15
+ 0.6036000000000002 0.1666000000000007 0.9057000000000004 # O16
+ 0.8439999999999998 0.1838000000000008 0.7532000000000001 # O17
+ 0.8474999999999998 0.3663999999999998 0.4464999999999998 # O18
+ 0.6213999999999996 0.3380000000000002 0.2706999999999998 # O19
+ 0.8333999999999997 0.3963999999999996 0.0943000000000003 # O20
+ 0.0000000000000000 0.5000000000000001 0.7964999999999995 # O21
+ 0.8161999999999996 0.1560000000000000 0.2467999999999998 # O22
+ 0.1525000000000000 0.6335999999999999 0.4464999999999998 # O23
+ 0.3786000000000001 0.6620000000000000 0.2706999999999998 # O24
+ 0.1666000000000001 0.6036000000000002 0.0943000000000003 # O25
+ 0.1838000000000002 0.8439999999999998 0.2467999999999998 # O26
+ 0.1335999999999998 0.3474999999999997 0.4464999999999998 # O27
+ 0.1619999999999999 0.1214000000000001 0.2706999999999998 # O28
+ 0.1036000000000000 0.3334000000000000 0.0943000000000003 # O29
+ 0.3439999999999996 0.3162000000000000 0.2467999999999998 # O30
+ 0.8663999999999998 0.6524999999999996 0.4464999999999998 # O31
+ 0.8379999999999999 0.8785999999999997 0.2706999999999998 # O32
+ 0.8963999999999996 0.6665999999999997 0.0943000000000003 # O33
+ 0.6559999999999996 0.6837999999999999 0.2467999999999998 # O34
diff --git a/test/data/tetragonal/POSCAR-090-2 b/test/data/tetragonal/POSCAR-090-2
new file mode 100644
index 0000000..bfbc8d9
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-090-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 7.4299965038746407 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.4299965038746407 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.6099950075518112
+ 4 8 24
+Direct
+ 0.2500000000000000 0.2500000000000000 0.2499999999999997 # Sn1
+ 0.7500000000000001 0.7500000000000001 0.2499999999999997 # Sn2
+ 0.2500000000000000 0.7500000000000001 0.7499999999999997 # Sn3
+ 0.7500000000000001 0.2500000000000000 0.7499999999999997 # Sn4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # K1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # K2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # K3
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # K4
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # K5
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # K6
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # K7
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # K8
+ 0.2500000000000000 0.2500000000000000 0.5399999999999998 # Br1
+ 0.2500000000000000 0.2500000000000000 0.9800000000000000 # Br2
+ 0.2200000000000002 0.0000000000000000 0.2449999999999998 # Br3
+ 0.7500000000000001 0.7500000000000001 0.5399999999999998 # Br4
+ 0.7500000000000001 0.7500000000000001 0.9800000000000000 # Br5
+ 0.7200000000000002 0.5000000000000000 0.2449999999999998 # Br6
+ 0.0000000000000000 0.7200000000000002 0.2449999999999998 # Br7
+ 0.5000000000000000 0.2200000000000002 0.2449999999999998 # Br8
+ 0.7799999999999999 0.0000000000000000 0.2449999999999998 # Br9
+ 0.2799999999999999 0.5000000000000000 0.2449999999999998 # Br10
+ 0.0000000000000000 0.2799999999999999 0.2449999999999998 # Br11
+ 0.5000000000000000 0.7799999999999999 0.2449999999999998 # Br12
+ 0.2500000000000000 0.7500000000000001 0.4599999999999997 # Br13
+ 0.2500000000000000 0.7500000000000001 0.0200000000000001 # Br14
+ 0.2200000000000002 0.0000000000000000 0.7549999999999997 # Br15
+ 0.7500000000000001 0.2500000000000000 0.4599999999999997 # Br16
+ 0.7500000000000001 0.2500000000000000 0.0200000000000001 # Br17
+ 0.7200000000000002 0.5000000000000000 0.7549999999999997 # Br18
+ 0.7799999999999999 0.0000000000000000 0.7549999999999997 # Br19
+ 0.2799999999999999 0.5000000000000000 0.7549999999999997 # Br20
+ 0.0000000000000000 0.7200000000000002 0.7549999999999997 # Br21
+ 0.5000000000000000 0.2200000000000002 0.7549999999999997 # Br22
+ 0.0000000000000000 0.2799999999999999 0.7549999999999997 # Br23
+ 0.5000000000000000 0.7799999999999999 0.7549999999999997 # Br24
diff --git a/test/data/tetragonal/POSCAR-091 b/test/data/tetragonal/POSCAR-091
new file mode 100644
index 0000000..17c6894
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-091
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 7.0081967023491600 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.0081967023491600 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.6517959289667061
+ 12 4 16
+Direct
+ 0.2574999999999997 0.0000000000000000 0.2499999999999998 # Ag1
+ 0.0000000000000000 0.2084999999999998 0.0000000000000000 # Ag2
+ 0.5000000000000003 0.7921999999999999 0.0000000000000000 # Ag3
+ 0.0000000000000000 0.2574999999999997 0.4999999999999996 # Ag4
+ 0.7915000000000001 0.0000000000000000 0.2499999999999998 # Ag5
+ 0.2077999999999999 0.5000000000000003 0.2499999999999998 # Ag6
+ 0.7425000000000000 0.0000000000000000 0.7500000000000001 # Ag7
+ 0.0000000000000000 0.7915000000000001 0.4999999999999996 # Ag8
+ 0.5000000000000003 0.2077999999999999 0.4999999999999996 # Ag9
+ 0.0000000000000000 0.7425000000000000 0.0000000000000000 # Ag10
+ 0.2084999999999998 0.0000000000000000 0.7500000000000001 # Ag11
+ 0.7921999999999999 0.5000000000000003 0.7500000000000001 # Ag12
+ 0.5000000000000003 0.2803999999999999 0.0000000000000000 # Ru1
+ 0.7195999999999999 0.5000000000000003 0.2499999999999998 # Ru2
+ 0.5000000000000003 0.7195999999999999 0.4999999999999996 # Ru3
+ 0.2803999999999999 0.5000000000000003 0.7500000000000001 # Ru4
+ 0.6940999999999999 0.4871999999999998 0.0247999999999999 # O1
+ 0.3062999999999997 0.0904999999999998 0.0159000000000003 # O2
+ 0.5128000000000001 0.6940999999999999 0.2747999999999998 # O3
+ 0.9095000000000001 0.3062999999999997 0.2659000000000001 # O4
+ 0.3058999999999999 0.5128000000000001 0.5248000000000003 # O5
+ 0.6937000000000002 0.9095000000000001 0.5159000000000000 # O6
+ 0.4871999999999998 0.3058999999999999 0.7747999999999999 # O7
+ 0.0904999999999998 0.6937000000000002 0.7658999999999997 # O8
+ 0.6940999999999999 0.5128000000000001 0.4751999999999997 # O9
+ 0.3063000000000005 0.9095000000000001 0.4841000000000000 # O10
+ 0.3058999999999999 0.4872000000000006 0.9752000000000000 # O11
+ 0.6937000000000002 0.0904999999999998 0.9840999999999995 # O12
+ 0.4871999999999998 0.6940999999999999 0.7252000000000002 # O13
+ 0.0904999999999998 0.3063000000000005 0.7340999999999999 # O14
+ 0.5128000000000001 0.3058999999999999 0.2251999999999999 # O15
+ 0.9095000000000001 0.6937000000000002 0.2341000000000002 # O16
diff --git a/test/data/tetragonal/POSCAR-091-2 b/test/data/tetragonal/POSCAR-091-2
new file mode 100644
index 0000000..17d499d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-091-2
@@ -0,0 +1,199 @@
+$cell vectors
+1.0
+ 12.4639941351673649 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.4639941351673649 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 26.2229876609831365
+ 64 128
+Direct
+ 0.3349000000000003 0.7906000000000000 0.0576999999999999 # Si1
+ 0.3347000000000002 0.5369000000000000 0.0574999999999999 # Si2
+ 0.7117999999999998 0.7931000000000000 0.0573999999999999 # Si3
+ 0.7117000000000002 0.5423000000000001 0.0578000000000001 # Si4
+ 0.9578999999999999 0.7959999999999999 0.0541000000000001 # Si5
+ 0.9576999999999999 0.5414000000000002 0.0551000000000000 # Si6
+ 0.1388000000000000 0.8612000000000000 0.1250000000000000 # Si7
+ 0.5283000000000000 0.8587000000000000 0.1253000000000000 # Si8
+ 0.5275000000000000 0.4725000000000000 0.1250000000000000 # Si9
+ 0.2094000000000001 0.3349000000000001 0.3077000000000000 # Si10
+ 0.4631000000000001 0.3347000000000001 0.3075000000000002 # Si11
+ 0.2069000000000000 0.7118000000000002 0.3073999999999998 # Si12
+ 0.4577000000000004 0.7117000000000001 0.3078000000000000 # Si13
+ 0.2040000000000000 0.9578999999999998 0.3040999999999999 # Si14
+ 0.4586000000000002 0.9577000000000002 0.3051000000000000 # Si15
+ 0.1388000000000000 0.1387999999999998 0.3749999999999998 # Si16
+ 0.1413000000000000 0.5282999999999999 0.3752999999999999 # Si17
+ 0.5275000000000004 0.5274999999999999 0.3749999999999998 # Si18
+ 0.6651000000000002 0.2093999999999998 0.5577000000000001 # Si19
+ 0.6653000000000002 0.4630999999999998 0.5575000000000002 # Si20
+ 0.2882000000000001 0.2068999999999998 0.5574000000000000 # Si21
+ 0.2882999999999999 0.4577000000000002 0.5578000000000002 # Si22
+ 0.0421000000000001 0.2039999999999997 0.5540999999999999 # Si23
+ 0.0423000000000001 0.4586000000000000 0.5550999999999999 # Si24
+ 0.8612000000000000 0.1387999999999997 0.6250000000000000 # Si25
+ 0.4717000000000001 0.1412999999999997 0.6252999999999999 # Si26
+ 0.4725000000000001 0.5275000000000002 0.6250000000000001 # Si27
+ 0.7906000000000004 0.6650999999999999 0.8077000000000001 # Si28
+ 0.5369000000000004 0.6652999999999999 0.8075000000000000 # Si29
+ 0.7931000000000004 0.2881999999999998 0.8074000000000000 # Si30
+ 0.5423000000000001 0.2882999999999999 0.8078000000000000 # Si31
+ 0.7960000000000005 0.0420999999999997 0.8041000000000000 # Si32
+ 0.5414000000000002 0.0422999999999998 0.8051000000000001 # Si33
+ 0.8612000000000000 0.8611999999999996 0.8750000000000001 # Si34
+ 0.8587000000000000 0.4716999999999997 0.8752999999999999 # Si35
+ 0.4725000000000001 0.4725000000000001 0.8750000000000001 # Si36
+ 0.3348999999999998 0.2093999999999999 0.4423000000000000 # Si37
+ 0.3347000000000002 0.4630999999999999 0.4424999999999997 # Si38
+ 0.7117999999999998 0.2068999999999998 0.4426000000000000 # Si39
+ 0.7117000000000002 0.4576999999999997 0.4422000000000000 # Si40
+ 0.9578999999999999 0.2039999999999998 0.4459000000000001 # Si41
+ 0.9576999999999999 0.4586000000000001 0.4449000000000000 # Si42
+ 0.5283000000000000 0.1412999999999998 0.3746999999999999 # Si43
+ 0.6651000000000002 0.7906000000000000 0.9422999999999999 # Si44
+ 0.6653000000000002 0.5368999999999999 0.9425000000000000 # Si45
+ 0.2882000000000001 0.7930999999999999 0.9426000000000000 # Si46
+ 0.2883000000000003 0.5422999999999997 0.9422000000000003 # Si47
+ 0.0421000000000001 0.7960000000000000 0.9458999999999999 # Si48
+ 0.0423000000000001 0.5413999999999998 0.9449000000000000 # Si49
+ 0.4717000000000001 0.8586999999999997 0.8746999999999999 # Si50
+ 0.7906000000000004 0.3349000000000000 0.6923000000000002 # Si51
+ 0.5369000000000000 0.3346999999999999 0.6925000000000000 # Si52
+ 0.7931000000000004 0.7118000000000000 0.6926000000000000 # Si53
+ 0.5423000000000001 0.7116999999999999 0.6922000000000000 # Si54
+ 0.7960000000000005 0.9579000000000000 0.6959000000000001 # Si55
+ 0.5414000000000002 0.9577000000000000 0.6949000000000002 # Si56
+ 0.8587000000000000 0.5282999999999998 0.6247000000000001 # Si57
+ 0.2094000000000001 0.6650999999999997 0.1923000000000000 # Si58
+ 0.4631000000000001 0.6653000000000001 0.1924999999999999 # Si59
+ 0.2069000000000000 0.2882000000000001 0.1925999999999999 # Si60
+ 0.4576999999999999 0.2882999999999998 0.1922000000000000 # Si61
+ 0.2040000000000000 0.0421000000000000 0.1959000000000000 # Si62
+ 0.4586000000000002 0.0423000000000000 0.1948999999999999 # Si63
+ 0.1413000000000000 0.4717000000000000 0.1247000000000001 # Si64
+ 0.3234000000000001 0.6637000000000000 0.0673999999999999 # O1
+ 0.3347000000000002 0.8228999999999999 0.9979000000000001 # O2
+ 0.2263000000000003 0.8492000000000003 0.0796000000000001 # O3
+ 0.4458000000000003 0.8389000000000003 0.0783000000000000 # O4
+ 0.3370000000000002 0.5096999999999998 0.9971999999999999 # O5
+ 0.2302000000000000 0.4794999999999999 0.0823000000000000 # O6
+ 0.4488000000000002 0.4906000000000000 0.0771999999999999 # O7
+ 0.7064999999999999 0.6687000000000002 0.0704000000000000 # O8
+ 0.8362000000000002 0.8364000000000001 0.0618000000000001 # O9
+ 0.6455000000000001 0.8614000000000002 0.0989000000000001 # O10
+ 0.8364000000000001 0.5035999999999999 0.0611000000000000 # O11
+ 0.6431000000000001 0.4764000000000002 0.0990000000000001 # O12
+ 0.0000000000000000 0.8443000000000004 0.0000000000000000 # O13
+ 0.9687999999999999 0.6685999999999999 0.0601000000000001 # O14
+ 0.0255000000000002 0.8528000000000000 0.0972000000000001 # O15
+ 0.0000000000000000 0.4993000000000001 0.0000000000000000 # O16
+ 0.0259000000000002 0.4859000000000001 0.0993000000000001 # O17
+ 0.3363000000000000 0.3234000000000000 0.3174000000000002 # O18
+ 0.1771000000000001 0.3347000000000001 0.2479000000000001 # O19
+ 0.1508000000000003 0.2262999999999997 0.3295999999999999 # O20
+ 0.1611000000000002 0.4458000000000001 0.3282999999999999 # O21
+ 0.4903000000000001 0.3370000000000001 0.2471999999999999 # O22
+ 0.5205000000000002 0.2301999999999998 0.3322999999999999 # O23
+ 0.5094000000000001 0.4488000000000000 0.3271999999999998 # O24
+ 0.3313000000000003 0.7064999999999998 0.3203999999999999 # O25
+ 0.1636000000000003 0.8362000000000001 0.3118000000000000 # O26
+ 0.1385999999999999 0.6455000000000000 0.3489000000000000 # O27
+ 0.4964000000000001 0.8364000000000000 0.3111000000000000 # O28
+ 0.5236000000000002 0.6431000000000000 0.3490000000000000 # O29
+ 0.1557000000000001 -0.0000000000000001 0.2500000000000001 # O30
+ 0.3314000000000001 0.9688000000000002 0.3100999999999999 # O31
+ 0.1472000000000000 0.0255000000000000 0.3471999999999999 # O32
+ 0.5006999999999999 -0.0000000000000001 0.2500000000000001 # O33
+ 0.5140999999999999 0.0259000000000000 0.3492999999999999 # O34
+ 0.6766000000000003 0.3363000000000001 0.5673999999999999 # O35
+ 0.6653000000000002 0.1770999999999999 0.4979000000000000 # O36
+ 0.7737000000000002 0.1508000000000000 0.5796000000000000 # O37
+ 0.5542000000000001 0.1611000000000000 0.5783000000000001 # O38
+ 0.6630000000000001 0.4902999999999999 0.4971999999999998 # O39
+ 0.7697999999999998 0.5205000000000000 0.5823000000000004 # O40
+ 0.5511999999999999 0.5093999999999999 0.5772000000000003 # O41
+ 0.2935000000000000 0.3313000000000000 0.5704000000000001 # O42
+ 0.1637999999999999 0.1636000000000000 0.5617999999999999 # O43
+ 0.3544999999999999 0.1385999999999997 0.5988999999999998 # O44
+ 0.1636000000000003 0.4963999999999998 0.5610999999999998 # O45
+ 0.3569000000000002 0.5236000000000000 0.5990000000000002 # O46
+ 0.0000000000000000 0.1556999999999999 0.4999999999999999 # O47
+ 0.0312000000000001 0.3313999999999999 0.5600999999999999 # O48
+ 0.9745000000000001 0.1471999999999997 0.5972000000000001 # O49
+ 0.0000000000000000 0.5007000000000001 0.4999999999999999 # O50
+ 0.9741000000000002 0.5141000000000001 0.5992999999999998 # O51
+ 0.6637000000000000 0.6766000000000000 0.8174000000000002 # O52
+ 0.8229000000000003 0.6652999999999999 0.7479000000000000 # O53
+ 0.8492000000000003 0.7736999999999998 0.8296000000000002 # O54
+ 0.8389000000000003 0.5541999999999998 0.8283000000000000 # O55
+ 0.5097000000000003 0.6629999999999998 0.7472000000000001 # O56
+ 0.4795000000000003 0.7697999999999995 0.8323000000000000 # O57
+ 0.4906000000000004 0.5512000000000000 0.8272000000000000 # O58
+ 0.6687000000000002 0.2934999999999997 0.8204000000000002 # O59
+ 0.8364000000000001 0.1637999999999999 0.8118000000000002 # O60
+ 0.8614000000000002 0.3545000000000001 0.8489000000000001 # O61
+ 0.5036000000000004 0.1635999999999999 0.8110999999999998 # O62
+ 0.4764000000000003 0.3568999999999998 0.8490000000000000 # O63
+ 0.8443000000000004 -0.0000000000000003 0.7500000000000000 # O64
+ 0.6685999999999999 0.0312000000000002 0.8100999999999999 # O65
+ 0.8528000000000000 0.9744999999999998 0.8472000000000002 # O66
+ 0.4993000000000001 -0.0000000000000003 0.7500000000000000 # O67
+ 0.4859000000000002 0.9740999999999999 0.8493000000000001 # O68
+ 0.3234000000000001 0.3362999999999998 0.4325999999999998 # O69
+ 0.3347000000000002 0.1770999999999999 0.5020999999999999 # O70
+ 0.2262999999999998 0.1508000000000001 0.4204000000000000 # O71
+ 0.4458000000000003 0.1611000000000000 0.4216999999999999 # O72
+ 0.3370000000000002 0.4902999999999999 0.5027999999999998 # O73
+ 0.2302000000000000 0.5205000000000000 0.4176999999999999 # O74
+ 0.4488000000000002 0.5093999999999999 0.4228000000000001 # O75
+ 0.7064999999999999 0.3313000000000001 0.4295999999999998 # O76
+ 0.8362000000000002 0.1636000000000001 0.4381999999999999 # O77
+ 0.6455000000000001 0.1385999999999998 0.4011000000000000 # O78
+ 0.8364000000000001 0.4963999999999999 0.4389000000000000 # O79
+ 0.6431000000000001 0.5236000000000000 0.4009999999999998 # O80
+ 0.9687999999999999 0.3313999999999999 0.4398999999999999 # O81
+ 0.0255000000000002 0.1471999999999998 0.4028000000000001 # O82
+ 0.0259000000000002 0.5140999999999997 0.4006999999999998 # O83
+ 0.6766000000000003 0.6636999999999995 0.9326000000000001 # O84
+ 0.6653000000000002 0.8228999999999999 0.0021000000000000 # O85
+ 0.7737000000000002 0.8491999999999998 0.9204000000000001 # O86
+ 0.5542000000000001 0.8388999999999999 0.9217000000000002 # O87
+ 0.6630000000000001 0.5096999999999999 0.0028000000000001 # O88
+ 0.7697999999999998 0.4794999999999999 0.9177000000000001 # O89
+ 0.5511999999999999 0.4906000000000000 0.9227999999999998 # O90
+ 0.2935000000000000 0.6686999999999997 0.9296000000000001 # O91
+ 0.1638000000000003 0.8363999999999997 0.9382000000000001 # O92
+ 0.3545000000000004 0.8613999999999998 0.9011000000000002 # O93
+ 0.1636000000000003 0.5035999999999999 0.9389000000000001 # O94
+ 0.3569000000000002 0.4763999999999999 0.9009999999999999 # O95
+ 0.0312000000000001 0.6686000000000000 0.9399000000000001 # O96
+ 0.9745000000000001 0.8527999999999997 0.9027999999999998 # O97
+ 0.9741000000000002 0.4858999999999998 0.9007000000000002 # O98
+ 0.6637000000000000 0.3233999999999999 0.6826000000000001 # O99
+ 0.8229000000000003 0.3346999999999999 0.7521000000000001 # O100
+ 0.8492000000000003 0.2263000000000000 0.6704000000000001 # O101
+ 0.8389000000000003 0.4458000000000000 0.6717000000000002 # O102
+ 0.5097000000000003 0.3369999999999999 0.7528000000000001 # O103
+ 0.4794999999999999 0.2301999999999997 0.6676999999999997 # O104
+ 0.4906000000000000 0.4487999999999999 0.6728000000000003 # O105
+ 0.6687000000000002 0.7064999999999996 0.6796000000000002 # O106
+ 0.8364000000000001 0.8361999999999998 0.6882000000000003 # O107
+ 0.8614000000000002 0.6454999999999999 0.6510999999999999 # O108
+ 0.5036000000000004 0.8363999999999998 0.6889000000000001 # O109
+ 0.4764000000000003 0.6430999999999999 0.6510000000000002 # O110
+ 0.6685999999999999 0.9688000000000000 0.6899000000000000 # O111
+ 0.8528000000000000 0.0254999999999999 0.6528000000000002 # O112
+ 0.4859000000000002 0.0258999999999999 0.6507000000000002 # O113
+ 0.3363000000000000 0.6765999999999998 0.1825999999999999 # O114
+ 0.1771000000000001 0.6653000000000001 0.2520999999999998 # O115
+ 0.1508000000000003 0.7737000000000001 0.1704000000000000 # O116
+ 0.1611000000000002 0.5542000000000000 0.1717000000000001 # O117
+ 0.4903000000000001 0.6630000000000000 0.2528000000000000 # O118
+ 0.5205000000000002 0.7697999999999997 0.1677000000000001 # O119
+ 0.5094000000000001 0.5511999999999998 0.1727999999999999 # O120
+ 0.3313000000000003 0.2934999999999999 0.1796000000000001 # O121
+ 0.1635999999999998 0.1637999999999998 0.1882000000000000 # O122
+ 0.1385999999999999 0.3544999999999999 0.1511000000000000 # O123
+ 0.4964000000000001 0.1635999999999997 0.1888999999999999 # O124
+ 0.5236000000000002 0.3569000000000001 0.1510000000000000 # O125
+ 0.3314000000000001 0.0312000000000000 0.1899000000000000 # O126
+ 0.1472000000000000 0.9745000000000000 0.1528000000000000 # O127
+ 0.5140999999999999 0.9740999999999996 0.1507000000000000 # O128
diff --git a/test/data/tetragonal/POSCAR-092 b/test/data/tetragonal/POSCAR-092
new file mode 100644
index 0000000..e3812f1
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-092
@@ -0,0 +1,87 @@
+$cell vectors
+1.0
+ 7.1039966572712574 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.1039966572712574 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 36.5969827795828024
+ 48 32
+Direct
+ 0.9660000000000000 0.9660000000000000 0.0000000000000000 # Y1
+ 0.3170000000000000 0.3170000000000000 0.0000000000000000 # Y2
+ 0.8080000000000005 0.4430000000000001 0.0156000000000001 # Y3
+ 0.1629999999999999 0.6590000000000001 0.0679999999999999 # Y4
+ 0.6449999999999999 0.8090000000000001 0.0747000000000001 # Y5
+ 0.0120000000000003 0.1629999999999999 0.0891000000000001 # Y6
+ 0.5140000000000000 0.2930000000000000 0.0933000000000000 # Y7
+ 0.5340000000000005 0.4660000000000002 0.2500000000000000 # Y8
+ 0.1830000000000004 0.8170000000000002 0.2500000000000000 # Y9
+ 0.0570000000000003 0.3079999999999999 0.2656000000000000 # Y10
+ 0.8410000000000002 0.6630000000000000 0.3180000000000001 # Y11
+ 0.6910000000000003 0.1450000000000000 0.3247000000000000 # Y12
+ 0.3370000000000005 0.5119999999999998 0.3391000000000000 # Y13
+ 0.2070000000000002 0.0140000000000001 0.3433000000000000 # Y14
+ 0.0340000000000001 0.0339999999999997 0.5000000000000000 # Y15
+ 0.6830000000000001 0.6830000000000005 0.5000000000000000 # Y16
+ 0.1920000000000003 0.5570000000000004 0.5156000000000001 # Y17
+ 0.8370000000000001 0.3410000000000002 0.5680000000000001 # Y18
+ 0.3550000000000001 0.1909999999999994 0.5747000000000000 # Y19
+ 0.9880000000000005 0.8369999999999996 0.5890999999999998 # Y20
+ 0.4860000000000000 0.7070000000000002 0.5932999999999999 # Y21
+ 0.4660000000000004 0.5339999999999999 0.7500000000000000 # Y22
+ 0.8170000000000004 0.1829999999999999 0.7500000000000000 # Y23
+ 0.9430000000000004 0.6920000000000002 0.7656000000000001 # Y24
+ 0.1590000000000006 0.3369999999999999 0.8180000000000002 # Y25
+ 0.3090000000000006 0.8549999999999999 0.8247000000000000 # Y26
+ 0.6630000000000003 0.4880000000000002 0.8391000000000000 # Y27
+ 0.7930000000000006 0.9859999999999998 0.8433000000000000 # Y28
+ 0.3080000000000001 0.0569999999999997 0.7344000000000001 # Y29
+ 0.6630000000000003 0.8409999999999996 0.6820000000000001 # Y30
+ 0.1450000000000002 0.6909999999999997 0.6753000000000000 # Y31
+ 0.5120000000000000 0.3370000000000000 0.6609000000000002 # Y32
+ 0.0140000000000003 0.2069999999999997 0.6567000000000002 # Y33
+ 0.6919999999999999 0.9430000000000002 0.2344000000000000 # Y34
+ 0.3369999999999997 0.1589999999999997 0.1820000000000000 # Y35
+ 0.8549999999999998 0.3090000000000004 0.1753000000000001 # Y36
+ 0.4880000000000001 0.6630000000000001 0.1609000000000000 # Y37
+ 0.9860000000000004 0.7929999999999997 0.1567000000000000 # Y38
+ 0.4430000000000008 0.8079999999999997 0.9844000000000001 # Y39
+ 0.6590000000000001 0.1630000000000000 0.9320000000000002 # Y40
+ 0.8090000000000002 0.6449999999999999 0.9253000000000002 # Y41
+ 0.1630000000000007 0.0119999999999996 0.9109000000000003 # Y42
+ 0.2930000000000001 0.5140000000000000 0.9067000000000001 # Y43
+ 0.5569999999999999 0.1919999999999999 0.4844000000000001 # Y44
+ 0.3410000000000006 0.8369999999999997 0.4320000000000000 # Y45
+ 0.1909999999999999 0.3549999999999998 0.4253000000000000 # Y46
+ 0.8370000000000001 0.9880000000000002 0.4109000000000000 # Y47
+ 0.7069999999999997 0.4859999999999998 0.4067000000000001 # Y48
+ 0.3100000000000001 0.0080000000000002 0.0484000000000001 # Ni1
+ 0.6299999999999999 0.1009999999999999 0.0257000000000000 # Ni2
+ 0.8399999999999999 0.5099999999999998 0.1063000000000000 # Ni3
+ 0.3220000000000005 0.9430000000000003 0.1167000000000000 # Ni4
+ 0.4920000000000002 0.8100000000000003 0.2984000000000000 # Ni5
+ 0.3990000000000005 0.1300000000000000 0.2757000000000000 # Ni6
+ 0.9900000000000005 0.3399999999999999 0.3563000000000000 # Ni7
+ 0.5569999999999999 0.8220000000000000 0.3667000000000001 # Ni8
+ 0.6899999999999998 0.9920000000000001 0.5484000000000001 # Ni9
+ 0.3700000000000002 0.8989999999999998 0.5257000000000002 # Ni10
+ 0.1600000000000002 0.4899999999999997 0.6063000000000003 # Ni11
+ 0.6780000000000004 0.0569999999999998 0.6167000000000001 # Ni12
+ 0.5080000000000006 0.1899999999999996 0.7984000000000001 # Ni13
+ 0.6010000000000003 0.8700000000000000 0.7757000000000001 # Ni14
+ 0.0100000000000002 0.6600000000000000 0.8563000000000003 # Ni15
+ 0.4430000000000001 0.1780000000000000 0.8667000000000002 # Ni16
+ 0.8100000000000005 0.4919999999999997 0.7015999999999999 # Ni17
+ 0.1300000000000002 0.3990000000000000 0.7243000000000001 # Ni18
+ 0.3400000000000002 0.9900000000000001 0.6437000000000000 # Ni19
+ 0.8220000000000002 0.5570000000000003 0.6333000000000002 # Ni20
+ 0.1900000000000002 0.5079999999999998 0.2016000000000000 # Ni21
+ 0.8700000000000006 0.6010000000000001 0.2243000000000001 # Ni22
+ 0.6599999999999998 0.0100000000000001 0.1437000000000001 # Ni23
+ 0.1779999999999999 0.4430000000000000 0.1333000000000001 # Ni24
+ 0.0080000000000002 0.3100000000000002 0.9516000000000002 # Ni25
+ 0.1010000000000006 0.6299999999999998 0.9743000000000003 # Ni26
+ 0.5100000000000007 0.8399999999999999 0.8937000000000000 # Ni27
+ 0.9430000000000004 0.3219999999999998 0.8833000000000001 # Ni28
+ 0.9920000000000005 0.6900000000000004 0.4516000000000000 # Ni29
+ 0.8990000000000002 0.3699999999999998 0.4743000000000001 # Ni30
+ 0.4900000000000002 0.1599999999999999 0.3937000000000001 # Ni31
+ 0.0570000000000003 0.6780000000000000 0.3833000000000000 # Ni32
diff --git a/test/data/tetragonal/POSCAR-092-2 b/test/data/tetragonal/POSCAR-092-2
new file mode 100644
index 0000000..5d8cd77
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-092-2
@@ -0,0 +1,59 @@
+$cell vectors
+1.0
+ 6.5899968991297264 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.5899968991297264 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.0399919819682175
+ 8 8 36
+Direct
+ 0.4782000000000005 0.6504999999999997 0.0923000000000000 # Sb1
+ -0.1504999999999998 0.9782000000000004 0.3422999999999999 # Sb2
+ 0.5218000000000004 0.3495000000000002 0.5923000000000002 # Sb3
+ 1.1505000000000005 0.0218000000000004 0.8423000000000000 # Sb4
+ 0.9782000000000004 -0.1504999999999998 0.6576999999999998 # Sb5
+ 0.0218000000000004 1.1505000000000005 0.1577000000000000 # Sb6
+ 0.6504999999999997 0.4782000000000005 -0.0923000000000000 # Sb7
+ 0.3495000000000002 0.5218000000000004 0.4077000000000000 # Sb8
+ 0.1473000000000000 0.5338000000000003 -0.0530000000000001 # S1
+ -0.0338000000000003 0.6472999999999999 0.1970000000000002 # S2
+ 0.8527000000000000 0.4662000000000004 0.4470000000000001 # S3
+ 1.0338000000000003 0.3527000000000000 0.6970000000000000 # S4
+ 0.6472999999999999 -0.0337999999999995 0.8030000000000002 # S5
+ 0.3527000000000000 1.0338000000000003 0.3030000000000001 # S6
+ 0.5338000000000003 0.1473000000000000 0.0530000000000001 # S7
+ 0.4662000000000004 0.8527000000000000 0.5530000000000000 # S8
+ 0.0000000000000000 0.3746999999999999 -0.0459999999999999 # O1
+ 0.2065999999999998 0.6099000000000001 0.0230000000000000 # O2
+ 0.3292000000000004 0.4629999999999998 -0.0980000000000001 # O3
+ 0.0467999999999998 0.6968999999999997 -0.0940000000000001 # O4
+ 0.6378000000000003 0.6378000000000003 0.0000000000000000 # O5
+ 0.1253000000000002 0.4999999999999999 0.2040000000000000 # O6
+ -0.1099000000000002 0.7066000000000007 0.2730000000000002 # O7
+ 0.0370000000000001 0.8292000000000002 0.1520000000000001 # O8
+ -0.1968999999999999 0.5468000000000005 0.1560000000000001 # O9
+ -0.1378000000000003 1.1378000000000001 0.2500000000000000 # O10
+ 1.0000000000000009 0.6253000000000002 0.4540000000000000 # O11
+ 0.7934000000000000 0.3901000000000006 0.5230000000000001 # O12
+ 0.6708000000000003 0.5370000000000000 0.4020000000000001 # O13
+ 0.9532000000000002 0.3031000000000000 0.4060000000000000 # O14
+ 0.3622000000000005 0.3622000000000005 0.5000000000000002 # O15
+ 0.8747000000000006 0.4999999999999999 0.7039999999999998 # O16
+ 1.1099000000000010 0.2934000000000001 0.7730000000000001 # O17
+ 0.9630000000000007 0.1708000000000004 0.6520000000000000 # O18
+ 1.1969000000000007 0.4532000000000002 0.6559999999999999 # O19
+ 1.1378000000000001 -0.1378000000000003 0.7500000000000001 # O20
+ 0.4999999999999999 0.1253000000000002 0.7960000000000004 # O21
+ 0.7066000000000007 -0.1099000000000002 0.7270000000000002 # O22
+ 0.8292000000000002 0.0370000000000001 0.8480000000000000 # O23
+ 0.5468000000000005 -0.1968999999999999 0.8439999999999999 # O24
+ 0.4999999999999999 0.8747000000000006 0.2960000000000002 # O25
+ 0.2934000000000001 1.1099000000000010 0.2270000000000000 # O26
+ 0.1708000000000004 0.9630000000000007 0.3480000000000001 # O27
+ 0.4532000000000002 1.1969000000000007 0.3440000000000001 # O28
+ 0.3746999999999999 0.0000000000000000 0.0459999999999999 # O29
+ 0.6099000000000001 0.2065999999999998 -0.0230000000000000 # O30
+ 0.4629999999999998 0.3292000000000004 0.0980000000000001 # O31
+ 0.6968999999999997 0.0467999999999998 0.0940000000000001 # O32
+ 0.6253000000000002 1.0000000000000009 0.5460000000000002 # O33
+ 0.3901000000000006 0.7934000000000000 0.4769999999999999 # O34
+ 0.5370000000000000 0.6708000000000003 0.5980000000000000 # O35
+ 0.3031000000000000 0.9532000000000002 0.5940000000000000 # O36
diff --git a/test/data/tetragonal/POSCAR-092-3 b/test/data/tetragonal/POSCAR-092-3
new file mode 100644
index 0000000..2b965a6
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-092-3
@@ -0,0 +1,32 @@
+$cell vectors
+ 1.00000000000000
+ 4.0643712983834455 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.0643712983838070 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6346473254990181
+ 4 8
+Direct
+ 0.3104835876939455 0.3104835876939455 0.0000000000000000
+ 0.1895164123060545 0.8104835876939452 0.2500000000000000
+ 0.6895164123060548 0.6895164123060548 0.5000000000000000
+ 0.8104835876939452 0.1895164123060545 0.7500000000000000
+ 0.2285875164715268 0.1552150730745774 0.2088186912759548
+ 0.3447849269254225 0.7285875164715337 0.4588186912759548
+ 0.7714124835284663 0.8447849269254226 0.7088186912759549
+ 0.6552150730745774 0.2714124835284803 0.9588186912759549
+ 0.7285875164715337 0.3447849269254225 0.5411813087240451
+ 0.2714124835284803 0.6552150730745774 0.0411813087240452
+ 0.1552150730745774 0.2285875164715268 0.7911813087240451
+ 0.8447849269254226 0.7714124835284663 0.2911813087240452
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/tetragonal/POSCAR-094 b/test/data/tetragonal/POSCAR-094
new file mode 100644
index 0000000..20f1c3d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-094
@@ -0,0 +1,25 @@
+$cell vectors
+1.0
+ 4.6862977949000992 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.6862977949000992 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.1909956752505835
+ 4 2 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.3376999999999997 # Li1
+ 0.4999999999999993 0.5000000000000004 0.8377000000000001 # Li2
+ 0.4999999999999993 0.4999999999999993 0.1623000000000001 # Li3
+ 0.0000000000000000 0.0000000000000000 0.6623000000000000 # Li4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mo1
+ 0.4999999999999993 0.4999999999999993 0.4999999999999998 # Mo2
+ 0.2929999999999998 0.3159999999999998 0.3424000000000000 # F1
+ 0.2906999999999996 0.2906999999999996 0.0000000000000000 # F2
+ 0.1839999999999996 -0.2069999999999995 -0.1575999999999999 # F3
+ 0.2092999999999998 0.7907000000000002 0.4999999999999998 # F4
+ 0.7070000000000000 0.6840000000000002 0.3424000000000000 # F5
+ -0.2906999999999996 -0.2906999999999996 0.0000000000000000 # F6
+ -0.1839999999999996 0.2069999999999995 -0.1575999999999999 # F7
+ 0.7907000000000002 0.2092999999999998 0.4999999999999998 # F8
+ -0.2069999999999995 0.1839999999999996 0.1575999999999999 # F9
+ 0.2069999999999995 -0.1839999999999996 0.1575999999999999 # F10
+ 0.3159999999999998 0.2929999999999998 0.6575999999999996 # F11
+ 0.6840000000000002 0.7070000000000000 0.6575999999999996 # F12
diff --git a/test/data/tetragonal/POSCAR-094-2 b/test/data/tetragonal/POSCAR-094-2
new file mode 100644
index 0000000..01f06fe
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-094-2
@@ -0,0 +1,191 @@
+$cell vectors
+1.0
+ 9.9619953124628751 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.9619953124628751 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.4139936881526847
+ 24 32 48 80
+Direct
+ 0.4371000000000003 0.4371000000000003 0.2500000000000000 # Na1
+ 0.4493000000000001 0.5506999999999999 0.7499999999999999 # Na2
+ 0.4618000000000002 0.4511999999999998 0.4980999999999999 # Na3
+ 0.0628999999999999 -0.0628999999999999 -0.2500000000000000 # Na4
+ -0.0507000000000001 -0.0507000000000001 0.2500000000000000 # Na5
+ 0.0487999999999998 -0.0382000000000001 -0.0019000000000002 # Na6
+ 0.5629000000000002 0.5629000000000002 0.2500000000000000 # Na7
+ 0.5507000000000003 0.4493000000000001 0.7499999999999999 # Na8
+ 0.5382000000000003 0.5488000000000001 0.4980999999999999 # Na9
+ -0.0628999999999999 0.0628999999999999 -0.2500000000000000 # Na10
+ 0.0507000000000001 0.0507000000000001 0.2500000000000000 # Na11
+ -0.0487999999999998 0.0382000000000001 -0.0019000000000002 # Na12
+ -0.0628999999999999 0.0628999999999999 0.2500000000000000 # Na13
+ -0.0507000000000001 -0.0507000000000001 -0.2500000000000000 # Na14
+ -0.0382000000000001 0.0487999999999998 0.0019000000000002 # Na15
+ 0.0628999999999999 -0.0628999999999999 0.2500000000000000 # Na16
+ 0.0507000000000001 0.0507000000000001 -0.2500000000000000 # Na17
+ 0.0382000000000001 -0.0487999999999998 0.0019000000000002 # Na18
+ 0.4371000000000003 0.4371000000000003 0.7499999999999999 # Na19
+ 0.5506999999999999 0.4493000000000001 0.2500000000000000 # Na20
+ 0.4511999999999998 0.4618000000000002 0.5018999999999998 # Na21
+ 0.5629000000000002 0.5628999999999997 0.7499999999999999 # Na22
+ 0.4493000000000001 0.5506999999999999 0.2500000000000000 # Na23
+ 0.5488000000000001 0.5382000000000003 0.5018999999999998 # Na24
+ 0.3619000000000001 0.5522000000000001 0.1515000000000001 # O1
+ 0.3506000000000003 0.5450000000000000 0.1049999999999997 # O2
+ 0.6525000000000002 0.5191000000000000 0.6529999999999998 # O3
+ 0.6282000000000004 0.5558000000000000 0.6024999999999999 # O4
+ -0.0521999999999999 -0.1381000000000001 -0.3485000000000000 # O5
+ -0.0450000000000002 -0.1494000000000000 -0.3949999999999999 # O6
+ -0.0190999999999998 0.1524999999999999 0.1530000000000002 # O7
+ -0.0557999999999997 0.1282000000000001 0.1024999999999999 # O8
+ 0.6381000000000004 0.4477999999999999 0.1515000000000001 # O9
+ 0.6494000000000002 0.4550000000000000 0.1049999999999997 # O10
+ 0.3475000000000004 0.4809000000000005 0.6529999999999998 # O11
+ 0.3718000000000001 0.4442000000000000 0.6024999999999999 # O12
+ 0.0521999999999999 0.1381000000000001 -0.3485000000000000 # O13
+ 0.0449999999999997 0.1494000000000000 -0.3949999999999999 # O14
+ 0.0190999999999998 -0.1524999999999999 0.1530000000000002 # O15
+ 0.0558000000000002 -0.1282000000000001 0.1024999999999999 # O16
+ -0.1381000000000001 -0.0521999999999999 0.3485000000000000 # O17
+ -0.1494000000000000 -0.0450000000000002 0.3949999999999999 # O18
+ 0.1524999999999999 -0.0190999999999998 -0.1530000000000002 # O19
+ 0.1282000000000001 -0.0558000000000002 -0.1024999999999999 # O20
+ 0.1381000000000001 0.0521999999999999 0.3485000000000000 # O21
+ 0.1494000000000000 0.0450000000000002 0.3949999999999999 # O22
+ -0.1524999999999999 0.0190999999999998 -0.1530000000000002 # O23
+ -0.1282000000000001 0.0558000000000002 -0.1024999999999999 # O24
+ 0.5522000000000001 0.3619000000000001 0.8484999999999999 # O25
+ 0.5450000000000005 0.3506000000000003 0.8949999999999998 # O26
+ 0.5191000000000000 0.6525000000000002 0.3469999999999998 # O27
+ 0.5558000000000000 0.6282000000000004 0.3975000000000001 # O28
+ 0.4477999999999999 0.6381000000000004 0.8484999999999999 # O29
+ 0.4550000000000000 0.6494000000000002 0.8949999999999998 # O30
+ 0.4808999999999999 0.3475000000000004 0.3469999999999998 # O31
+ 0.4442000000000000 0.3718000000000001 0.3975000000000001 # O32
+ 0.4378999999999999 0.0636000000000001 0.0113999999999999 # B1
+ 0.4389000000000003 0.0645000000000001 0.2268999999999999 # B2
+ 0.3352000000000002 0.0412000000000002 0.1187999999999998 # B3
+ 0.6034000000000002 0.1012999999999998 0.0523000000000000 # B4
+ 0.6024000000000004 0.1006000000000002 0.1853000000000000 # B5
+ 0.4623999999999999 0.1652000000000001 0.1189999999999999 # B6
+ 0.4364000000000002 -0.0620999999999999 0.5113999999999999 # B7
+ 0.4355000000000001 -0.0611000000000000 0.7269000000000000 # B8
+ 0.4588000000000001 -0.1648000000000001 0.6187999999999998 # B9
+ 0.3986999999999999 0.1034000000000004 0.5523000000000000 # B10
+ 0.3994000000000001 0.1024000000000001 0.6853000000000000 # B11
+ 0.3348000000000001 -0.0375999999999998 0.6189999999999999 # B12
+ 0.5621000000000002 -0.0636000000000001 0.0113999999999999 # B13
+ 0.5610999999999997 -0.0645000000000001 0.2268999999999999 # B14
+ 0.6648000000000003 -0.0412000000000002 0.1187999999999998 # B15
+ 0.3965999999999998 -0.1012999999999998 0.0523000000000000 # B16
+ 0.3976000000000002 -0.1006000000000002 0.1853000000000000 # B17
+ 0.5376000000000001 -0.1652000000000001 0.1189999999999999 # B18
+ 0.5635999999999999 0.0621000000000004 0.5113999999999999 # B19
+ 0.5645000000000003 0.0611000000000000 0.7269000000000000 # B20
+ 0.5412000000000000 0.1648000000000001 0.6187999999999998 # B21
+ 0.6013000000000002 -0.1033999999999999 0.5523000000000000 # B22
+ 0.6006000000000004 -0.1024000000000001 0.6853000000000000 # B23
+ 0.6652000000000003 0.0376000000000003 0.6189999999999999 # B24
+ -0.0620999999999999 0.4364000000000002 0.4885999999999998 # B25
+ -0.0611000000000000 0.4355000000000001 0.2731000000000002 # B26
+ -0.1648000000000001 0.4588000000000001 0.3811999999999998 # B27
+ 0.1034000000000004 0.3987000000000004 0.4476999999999999 # B28
+ 0.1024000000000001 0.3994000000000001 0.3147000000000000 # B29
+ -0.0375999999999998 0.3348000000000001 0.3810000000000002 # B30
+ 0.0621000000000004 0.5636000000000004 0.4885999999999998 # B31
+ 0.0611000000000000 0.5644999999999999 0.2731000000000002 # B32
+ 0.1648000000000001 0.5412000000000000 0.3811999999999998 # B33
+ -0.1033999999999999 0.6013000000000002 0.4476999999999999 # B34
+ -0.1024000000000001 0.6006000000000004 0.3147000000000000 # B35
+ 0.0376000000000003 0.6652000000000003 0.3810000000000002 # B36
+ 0.0636000000000001 0.4379000000000004 0.9886000000000003 # B37
+ 0.0645000000000001 0.4389000000000003 0.7730999999999997 # B38
+ 0.0412000000000002 0.3352000000000002 0.8812000000000003 # B39
+ 0.1013000000000004 0.6034000000000002 0.9477000000000000 # B40
+ 0.1006000000000002 0.6024000000000004 0.8146999999999996 # B41
+ 0.1652000000000001 0.4624000000000004 0.8809999999999998 # B42
+ -0.0636000000000001 0.5621000000000002 0.9886000000000003 # B43
+ -0.0645000000000001 0.5611000000000004 0.7730999999999997 # B44
+ -0.0412000000000002 0.6648000000000003 0.8812000000000003 # B45
+ -0.1012999999999998 0.3966000000000003 0.9477000000000000 # B46
+ -0.1006000000000002 0.3976000000000002 0.8146999999999996 # B47
+ -0.1652000000000001 0.5376000000000001 0.8809999999999998 # B48
+ 0.3999999999999998 0.1050000000000000 -0.0520000000000000 # H1
+ 0.3960000000000000 0.1070000000000002 0.2940000000000000 # H2
+ 0.2169999999999999 0.0689999999999999 0.1180000000000002 # H3
+ 0.6800000000000002 0.1630000000000002 0.0069999999999999 # H4
+ 0.6640000000000003 0.1750000000000002 0.2300000000000001 # H5
+ 0.4279999999999998 0.2729999999999999 0.1220000000000001 # H6
+ 0.6240000000000002 0.3319999999999999 0.3819999999999999 # H7
+ 0.5119999999999997 0.2729999999999999 0.3670000000000001 # H8
+ 0.3430000000000001 0.3720000000000004 0.8760000000000000 # H9
+ 0.4640000000000000 0.2790000000000000 0.8979999999999998 # H10
+ 0.3950000000000002 -0.0999999999999998 0.4480000000000000 # H11
+ 0.3930000000000000 -0.1039999999999997 0.7940000000000000 # H12
+ 0.4310000000000004 -0.2829999999999998 0.6179999999999998 # H13
+ 0.3370000000000001 0.1800000000000005 0.5069999999999999 # H14
+ 0.3250000000000000 0.1640000000000005 0.7300000000000001 # H15
+ 0.2269999999999998 -0.0719999999999999 0.6220000000000001 # H16
+ 0.1679999999999998 0.1240000000000005 0.8819999999999999 # H17
+ 0.2269999999999998 0.0120000000000001 -0.1330000000000000 # H18
+ 0.1280000000000004 0.8430000000000003 0.3760000000000002 # H19
+ 0.2210000000000003 -0.0360000000000002 0.3980000000000002 # H20
+ 0.6000000000000001 -0.1050000000000000 -0.0520000000000000 # H21
+ 0.6040000000000000 -0.1070000000000002 0.2940000000000000 # H22
+ 0.7830000000000000 -0.0689999999999999 0.1180000000000002 # H23
+ 0.3199999999999998 -0.1630000000000002 0.0069999999999999 # H24
+ 0.3360000000000002 -0.1750000000000002 0.2300000000000001 # H25
+ 0.5720000000000002 -0.2729999999999999 0.1220000000000001 # H26
+ 0.3760000000000003 0.6680000000000001 0.3819999999999999 # H27
+ 0.4880000000000002 0.7270000000000001 0.3670000000000001 # H28
+ 0.6570000000000005 0.6280000000000001 0.8760000000000000 # H29
+ 0.5359999999999998 0.7210000000000001 0.8979999999999998 # H30
+ 0.6050000000000003 0.1000000000000004 0.4480000000000000 # H31
+ 0.6070000000000000 0.1040000000000002 0.7940000000000000 # H32
+ 0.5690000000000001 0.2830000000000003 0.6179999999999998 # H33
+ 0.6629999999999999 -0.1799999999999999 0.5069999999999999 # H34
+ 0.6750000000000005 -0.1640000000000000 0.7300000000000001 # H35
+ 0.7730000000000001 0.0720000000000004 0.6220000000000001 # H36
+ 0.8320000000000001 0.8760000000000006 0.8819999999999999 # H37
+ -0.2269999999999998 -0.0120000000000001 -0.1330000000000000 # H38
+ 0.8720000000000003 0.1570000000000001 0.3760000000000002 # H39
+ -0.2209999999999998 0.0359999999999997 0.3980000000000002 # H40
+ -0.0999999999999998 0.3950000000000002 0.5520000000000000 # H41
+ -0.1040000000000002 0.3930000000000000 0.2059999999999999 # H42
+ -0.2829999999999998 0.4310000000000004 0.3819999999999999 # H43
+ 0.1800000000000005 0.3370000000000001 0.4929999999999997 # H44
+ 0.1640000000000000 0.3250000000000000 0.2699999999999999 # H45
+ -0.0719999999999999 0.2269999999999998 0.3779999999999999 # H46
+ 0.1240000000000000 0.1679999999999998 0.1180000000000002 # H47
+ 0.0120000000000001 0.2269999999999998 0.1330000000000000 # H48
+ 0.8430000000000003 0.1280000000000004 0.6240000000000000 # H49
+ -0.0360000000000002 0.2210000000000003 -0.3980000000000002 # H50
+ 0.1000000000000004 0.6050000000000003 0.5520000000000000 # H51
+ 0.1040000000000002 0.6070000000000000 0.2059999999999999 # H52
+ 0.2830000000000003 0.5690000000000001 0.3819999999999999 # H53
+ -0.1799999999999999 0.6630000000000005 0.4929999999999997 # H54
+ -0.1640000000000000 0.6750000000000000 0.2699999999999999 # H55
+ 0.0720000000000004 0.7730000000000001 0.3779999999999999 # H56
+ 0.8760000000000000 0.8320000000000001 0.1180000000000002 # H57
+ -0.0120000000000001 -0.2269999999999998 0.1330000000000000 # H58
+ 0.1570000000000001 0.8720000000000003 0.6240000000000000 # H59
+ 0.0360000000000002 -0.2210000000000003 -0.3980000000000002 # H60
+ 0.1050000000000000 0.4000000000000004 1.0520000000000003 # H61
+ 0.1070000000000002 0.3960000000000000 0.7059999999999997 # H62
+ 0.0690000000000004 0.2169999999999999 0.8819999999999999 # H63
+ 0.1630000000000002 0.6800000000000002 0.9929999999999997 # H64
+ 0.1750000000000002 0.6640000000000003 0.7699999999999999 # H65
+ 0.2730000000000004 0.4280000000000004 0.8779999999999998 # H66
+ 0.3320000000000004 0.6240000000000002 0.6179999999999998 # H67
+ 0.2730000000000004 0.5120000000000002 0.6330000000000000 # H68
+ 0.3719999999999999 0.3430000000000001 0.1239999999999999 # H69
+ 0.2790000000000000 0.4640000000000000 0.1019999999999999 # H70
+ -0.1050000000000000 0.6000000000000001 1.0520000000000003 # H71
+ -0.1069999999999997 0.6040000000000000 0.7059999999999997 # H72
+ -0.0689999999999999 0.7830000000000007 0.8819999999999999 # H73
+ -0.1629999999999997 0.3200000000000003 0.9929999999999997 # H74
+ -0.1749999999999997 0.3360000000000002 0.7699999999999999 # H75
+ -0.2729999999999999 0.5720000000000002 0.8779999999999998 # H76
+ 0.6680000000000001 0.3760000000000003 0.6179999999999998 # H77
+ 0.7270000000000001 0.4880000000000002 0.6330000000000000 # H78
+ 0.6280000000000001 0.6570000000000005 0.1239999999999999 # H79
+ 0.7210000000000001 0.5359999999999998 0.1019999999999999 # H80
diff --git a/test/data/tetragonal/POSCAR-094-3 b/test/data/tetragonal/POSCAR-094-3
new file mode 100644
index 0000000..27c4a3a
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-094-3
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 7.3449965438706899 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.3449965438706899 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.3999951063655800
+ 6 10 28
+Direct
+ 0.0000000000000000 0.5000000000000003 0.4984000000000002 # Fe1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Fe2
+ 0.0000000000000000 0.5000000000000003 0.9984000000000002 # Fe3
+ 0.5000000000000003 0.5000000000000003 0.5000000000000000 # Fe4
+ 0.5000000000000003 0.0000000000000000 0.0015999999999998 # Fe5
+ 0.5000000000000003 0.0000000000000000 0.5016000000000004 # Fe6
+ 0.2651999999999998 0.7311999999999999 0.2596999999999999 # Na1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Na2
+ 0.7688000000000008 0.7652000000000003 0.7597000000000005 # Na3
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # Na4
+ 0.7348000000000002 0.2688000000000003 0.2596999999999999 # Na5
+ 0.2312000000000001 0.2347999999999999 0.7597000000000005 # Na6
+ 0.7652000000000003 0.7687999999999999 0.2403000000000001 # Na7
+ 0.2347999999999999 0.2312000000000001 0.2403000000000001 # Na8
+ 0.7312000000000005 0.2651999999999998 0.7403000000000001 # Na9
+ 0.2688000000000003 0.7348000000000002 0.7403000000000001 # Na10
+ 0.9976000000000000 0.2913999999999999 0.3719000000000002 # F1
+ 0.3425000000000005 0.9713000000000001 0.3758000000000002 # F2
+ 0.2500000000000002 0.5399999999999998 0.4552000000000000 # F3
+ 0.0000000000000000 0.0000000000000000 0.1774999999999999 # F4
+ 0.2086000000000006 0.4976000000000003 0.8719000000000002 # F5
+ 0.5287000000000005 0.8425000000000000 0.8758000000000001 # F6
+ 0.9600000000000006 0.7500000000000007 0.9552000000000000 # F7
+ 0.5000000000000003 0.5000000000000003 0.6774999999999998 # F8
+ 0.0024000000000001 0.7086000000000002 0.3719000000000002 # F9
+ 0.6575000000000005 0.0287000000000000 0.3758000000000002 # F10
+ 0.7499999999999998 0.4600000000000002 0.4552000000000000 # F11
+ 0.7914000000000003 0.5024000000000005 0.8719000000000002 # F12
+ 0.4713000000000004 0.1575000000000000 0.8758000000000001 # F13
+ 0.0400000000000002 0.2500000000000002 0.9552000000000000 # F14
+ 0.4976000000000003 0.2085999999999998 0.1280999999999998 # F15
+ 0.8425000000000000 0.5287000000000005 0.1241999999999998 # F16
+ 0.7499999999999998 0.9600000000000000 0.0447999999999999 # F17
+ 0.5000000000000003 0.5000000000000003 0.3225000000000001 # F18
+ 0.5024000000000005 0.7914000000000003 0.1280999999999998 # F19
+ 0.1575000000000000 0.4713000000000004 0.1241999999999998 # F20
+ 0.2500000000000002 0.0400000000000002 0.0447999999999999 # F21
+ 0.2913999999999999 0.9976000000000006 0.6281000000000002 # F22
+ 0.9713000000000001 0.3425000000000005 0.6241999999999999 # F23
+ 0.5399999999999998 0.2500000000000002 0.5447999999999998 # F24
+ 0.0000000000000000 0.0000000000000000 0.8225000000000000 # F25
+ 0.7086000000000002 0.0024000000000001 0.6281000000000002 # F26
+ 0.0287000000000000 0.6575000000000005 0.6241999999999999 # F27
+ 0.4600000000000002 0.7500000000000007 0.5447999999999998 # F28
diff --git a/test/data/tetragonal/POSCAR-095 b/test/data/tetragonal/POSCAR-095
new file mode 100644
index 0000000..8f9e077
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-095
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 6.1699970967572737 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.1699970967572737 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.5639959702802742
+ 16 4 8
+Direct
+ 0.2719999999999997 0.0109999999999999 0.0090000000000001 # O1
+ 0.2919999999999998 0.5209999999999999 0.0150000000000001 # O2
+ 0.9889999999999993 0.2719999999999997 0.7589999999999996 # O3
+ 0.4790000000000001 0.2919999999999998 0.7649999999999995 # O4
+ 0.7279999999999994 0.9890000000000003 0.5089999999999999 # O5
+ 0.7080000000000003 0.4790000000000001 0.5150000000000000 # O6
+ 0.0109999999999999 0.7279999999999994 0.2589999999999997 # O7
+ 0.5209999999999999 0.7080000000000003 0.2649999999999997 # O8
+ 0.2719999999999997 0.9890000000000003 0.4909999999999999 # O9
+ 0.2919999999999998 0.4790000000000001 0.4849999999999998 # O10
+ 0.7280000000000003 0.0109999999999999 0.9909999999999998 # O11
+ 0.7080000000000003 0.5209999999999999 0.9849999999999998 # O12
+ 0.0109999999999999 0.2719999999999997 0.2410000000000002 # O13
+ 0.5209999999999999 0.2919999999999998 0.2350000000000002 # O14
+ 0.9889999999999993 0.7280000000000003 0.7410000000000001 # O15
+ 0.4790000000000001 0.7080000000000003 0.7349999999999994 # O16
+ 0.5000000000000000 0.2469999999999997 0.0000000000000000 # Ti1
+ 0.7529999999999996 0.5000000000000000 0.7500000000000002 # Ti2
+ 0.5000000000000000 0.7529999999999996 0.4999999999999999 # Ti3
+ 0.2469999999999997 0.5000000000000000 0.2499999999999996 # Ti4
+ 0.0000000000000000 0.2419999999999996 0.0000000000000000 # Mn1
+ 0.2409999999999998 0.2409999999999998 0.6250000000000001 # Mn2
+ 0.7579999999999997 0.0000000000000000 0.7500000000000002 # Mn3
+ 0.7589999999999995 0.2409999999999998 0.3749999999999998 # Mn4
+ 0.0000000000000000 0.7579999999999997 0.4999999999999999 # Mn5
+ 0.7589999999999995 0.7589999999999995 0.1250000000000001 # Mn6
+ 0.2419999999999996 0.0000000000000000 0.2499999999999996 # Mn7
+ 0.2409999999999998 0.7590000000000003 0.8749999999999997 # Mn8
diff --git a/test/data/tetragonal/POSCAR-095-2 b/test/data/tetragonal/POSCAR-095-2
new file mode 100644
index 0000000..573a937
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-095-2
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 6.0803971389178173 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.0803971389178173 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3987960480137716
+ 4 4 4 16
+Direct
+ 0.2253999999999998 0.0000000000000000 0.2500000000000003 # Li1
+ 0.0000000000000000 0.2253999999999998 0.0000000000000000 # Li2
+ 0.7745999999999994 0.0000000000000000 0.7499999999999997 # Li3
+ 0.0000000000000000 0.7746000000000003 0.5000000000000000 # Li4
+ 0.2619000000000000 0.2619000000000000 0.6249999999999999 # Zn1
+ 0.7381000000000002 0.2619000000000000 0.3750000000000002 # Zn2
+ 0.7381000000000002 0.7381000000000002 0.1249999999999999 # Zn3
+ 0.2619000000000000 0.7381000000000002 0.8750000000000002 # Zn4
+ 0.4999999999999996 0.2156000000000000 0.0000000000000000 # Nb1
+ 0.7844000000000001 0.4999999999999996 0.7499999999999997 # Nb2
+ 0.4999999999999996 0.7844000000000001 0.5000000000000000 # Nb3
+ 0.2156000000000000 0.4999999999999996 0.2500000000000003 # Nb4
+ 0.2637000000000000 0.0186000000000001 0.9951000000000004 # O1
+ 0.2678999999999998 0.4793999999999994 0.0172000000000001 # O2
+ 0.9813999999999999 0.2637000000000000 0.7451000000000001 # O3
+ 0.5205999999999996 0.2678999999999998 0.7672000000000005 # O4
+ 0.7363000000000000 0.9813999999999999 0.4950999999999998 # O5
+ 0.7321000000000001 0.5205999999999996 0.5172000000000002 # O6
+ 0.0186000000000001 0.7363000000000000 0.2451000000000001 # O7
+ 0.4794000000000004 0.7321000000000001 0.2671999999999999 # O8
+ 0.2637000000000000 0.9813999999999999 0.5049000000000002 # O9
+ 0.2678999999999998 0.5205999999999996 0.4828000000000000 # O10
+ 0.7363000000000000 0.0186000000000001 0.0049000000000003 # O11
+ 0.7321000000000001 0.4794000000000004 0.9827999999999999 # O12
+ 0.0186000000000001 0.2637000000000000 0.2549000000000000 # O13
+ 0.4793999999999994 0.2678999999999998 0.2328000000000003 # O14
+ 0.9813999999999999 0.7363000000000000 0.7548999999999999 # O15
+ 0.5205999999999996 0.7321000000000001 0.7328000000000003 # O16
diff --git a/test/data/tetragonal/POSCAR-096 b/test/data/tetragonal/POSCAR-096
new file mode 100644
index 0000000..b94a4f0
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-096
@@ -0,0 +1,91 @@
+$cell vectors
+1.0
+ 7.4899964756421369 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.4899964756421369 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.2399937700269543
+ 4 16 64
+Direct
+ -0.0710000000000003 -0.0710000000000003 0.0000000000000000 # U1
+ 0.5710000000000004 0.4289999999999998 0.7500000000000000 # U2
+ 1.0709999999999997 1.0709999999999997 0.4999999999999998 # U3
+ 0.4289999999999998 0.5709999999999996 0.2500000000000001 # U4
+ 0.2107999999999997 -0.0789999999999997 -0.1030000000000000 # B1
+ 0.7969999999999998 0.6560000000000001 0.8750000000000000 # B2
+ 0.5789999999999997 0.7107999999999997 0.6469999999999998 # B3
+ 0.8439999999999999 0.2969999999999998 0.6249999999999999 # B4
+ 0.7892000000000005 1.0789999999999995 0.3969999999999997 # B5
+ 0.2030000000000003 0.3439999999999999 0.3749999999999997 # B6
+ 0.4209999999999997 0.2892000000000003 0.1470000000000001 # B7
+ 0.1560000000000002 0.7029999999999996 0.1250000000000001 # B8
+ 0.7107999999999997 0.5789999999999997 0.3529999999999997 # B9
+ 0.2969999999999998 0.8439999999999999 0.3749999999999997 # B10
+ 0.2892000000000003 0.4210000000000004 0.8530000000000000 # B11
+ 0.7030000000000004 0.1560000000000002 0.8750000000000000 # B12
+ -0.0789999999999997 0.2107999999999997 0.1030000000000000 # B13
+ 0.6560000000000001 0.7969999999999998 0.1250000000000001 # B14
+ 1.0789999999999995 0.7892000000000005 0.6029999999999999 # B15
+ 0.3439999999999999 0.2030000000000003 0.6249999999999999 # B16
+ 0.3751000000000001 0.3489999999999998 0.3816000000000002 # H1
+ 0.1460000000000003 0.4469000000000001 0.3149000000000000 # H2
+ 0.1478999999999998 0.3685999999999998 0.4586000000000001 # H3
+ 0.1763999999999998 0.1781999999999997 0.3431999999999998 # H4
+ 0.0101000000000002 0.0894000000000001 0.1464000000000001 # H5
+ 0.2873999999999997 0.3437000000000004 0.1587000000000000 # H6
+ 0.4985999999999999 0.2693999999999997 0.2361999999999998 # H7
+ 0.4214000000000002 0.1467999999999999 0.0980999999999999 # H8
+ 0.1510000000000002 0.8750999999999997 0.1316000000000000 # H9
+ 0.0530999999999999 0.6459999999999996 0.0648999999999999 # H10
+ 0.1314000000000002 0.6478999999999999 0.2086000000000000 # H11
+ 0.3218000000000004 0.6763999999999999 0.0932000000000001 # H12
+ 0.4106000000000000 0.5101000000000002 0.8963999999999998 # H13
+ 0.1562999999999997 -0.2126000000000003 -0.0913000000000002 # H14
+ 0.2306000000000003 0.9985999999999999 0.9861999999999996 # H15
+ 0.3532000000000001 -0.0785999999999998 -0.1518999999999998 # H16
+ 0.6249000000000000 0.6510000000000002 0.8815999999999999 # H17
+ 0.8539999999999999 0.5530999999999999 0.8148999999999998 # H18
+ 0.8520999999999996 0.6314000000000002 0.9585999999999999 # H19
+ 0.8236000000000003 0.8217999999999996 0.8431999999999996 # H20
+ 0.9898999999999998 0.9106000000000001 0.6463999999999999 # H21
+ 0.7126000000000003 0.6562999999999998 0.6587000000000001 # H22
+ 0.5014000000000001 0.7305999999999997 0.7361999999999994 # H23
+ 0.5785999999999999 0.8532000000000003 0.5981000000000000 # H24
+ 0.8489999999999999 0.1248999999999999 0.6315999999999997 # H25
+ 0.9469000000000002 0.3539999999999998 0.5648999999999996 # H26
+ 0.8685999999999998 0.3521000000000002 0.7086000000000002 # H27
+ 0.6781999999999997 0.3236000000000002 0.5931999999999998 # H28
+ 0.5894000000000003 0.4898999999999998 0.3963999999999998 # H29
+ 0.8436999999999998 1.2125999999999999 0.4087000000000001 # H30
+ 0.7693999999999998 0.0014000000000001 0.4861999999999999 # H31
+ 0.6468000000000000 1.0786000000000000 0.3481000000000000 # H32
+ 0.8751000000000002 0.1510000000000002 0.8683999999999999 # H33
+ 0.6459999999999996 0.0530999999999999 0.9350999999999998 # H34
+ 0.6478999999999999 0.1314000000000002 0.7913999999999995 # H35
+ 0.6763999999999999 0.3218000000000004 0.9067999999999999 # H36
+ 0.5100999999999996 0.4106000000000000 0.1036000000000000 # H37
+ -0.2125999999999997 0.1562999999999997 0.0913000000000002 # H38
+ 0.9985999999999999 0.2306000000000003 0.0137999999999999 # H39
+ -0.0785999999999998 0.3532000000000001 0.1518999999999998 # H40
+ 0.1248999999999999 0.8489999999999999 0.3683999999999997 # H41
+ 0.3539999999999998 0.9469000000000002 0.4350999999999999 # H42
+ 0.3521000000000002 0.8685999999999998 0.2913999999999998 # H43
+ 0.3236000000000002 0.6781999999999997 0.4068000000000001 # H44
+ 0.4898999999999998 0.5894000000000003 0.6035999999999998 # H45
+ 1.2125999999999999 0.8436999999999998 0.5912999999999999 # H46
+ 0.0014000000000001 0.7693999999999998 0.5137999999999997 # H47
+ 1.0786000000000000 0.6468000000000000 0.6518999999999997 # H48
+ 0.3489999999999998 0.3751000000000001 0.6183999999999999 # H49
+ 0.4469000000000001 0.1460000000000003 0.6851000000000000 # H50
+ 0.3685999999999998 0.1478999999999998 0.5414000000000000 # H51
+ 0.1781999999999997 0.1763999999999998 0.6567999999999997 # H52
+ 0.0894000000000001 0.0101000000000002 0.8536000000000000 # H53
+ 0.3437000000000004 0.2874000000000004 0.8412999999999996 # H54
+ 0.2693999999999997 0.4985999999999999 0.7637999999999999 # H55
+ 0.1467999999999999 0.4214000000000002 0.9018999999999997 # H56
+ 0.6510000000000002 0.6249000000000000 0.1184000000000001 # H57
+ 0.5530999999999999 0.8539999999999999 0.1850999999999998 # H58
+ 0.6313999999999995 0.8520999999999996 0.0414000000000001 # H59
+ 0.8217999999999996 0.8235999999999996 0.1568000000000000 # H60
+ 0.9106000000000001 0.9898999999999998 0.3536000000000001 # H61
+ 0.6562999999999998 0.7126000000000003 0.3412999999999999 # H62
+ 0.7305999999999997 0.5014000000000001 0.2638000000000000 # H63
+ 0.8532000000000003 0.5785999999999999 0.4018999999999999 # H64
diff --git a/test/data/tetragonal/POSCAR-096-2 b/test/data/tetragonal/POSCAR-096-2
new file mode 100644
index 0000000..4c44162
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-096-2
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 5.9969971781609965 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.9969971781609965 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 39.1909815589974500
+ 16 32 16
+Direct
+ 0.7989000000000008 0.3010000000000002 0.9950000000000002 # I1
+ 0.3330000000000003 0.2408000000000003 0.9179999999999999 # I2
+ 1.1990000000000007 0.2989000000000002 0.7450000000000001 # I3
+ 1.2592000000000010 -0.1670000000000004 0.6680000000000000 # I4
+ 0.2011000000000002 0.6990000000000004 0.4950000000000001 # I5
+ 0.6670000000000008 0.7592000000000007 0.4180000000000001 # I6
+ -0.1989999999999998 0.7010999999999999 0.2450000000000001 # I7
+ -0.2591999999999999 1.1670000000000005 0.1679999999999999 # I8
+ 0.2989000000000008 1.1990000000000005 0.2549999999999999 # I9
+ -0.1669999999999998 1.2592000000000008 0.3320000000000001 # I10
+ 0.7011000000000002 -0.1990000000000005 0.7550000000000000 # I11
+ 1.1670000000000007 -0.2592000000000006 0.8320000000000001 # I12
+ 0.3010000000000003 0.7988999999999999 0.0050000000000000 # I13
+ 0.2408000000000002 0.3330000000000002 0.0820000000000000 # I14
+ 0.6990000000000008 0.2010999999999997 0.5050000000000000 # I15
+ 0.7592000000000010 0.6670000000000003 0.5820000000000000 # I16
+ 0.7456000000000006 0.4759999999999999 0.9510000000000001 # C1
+ 0.5926000000000008 0.4491999999999998 0.9260000000000000 # C2
+ 0.6767000000000002 0.6437000000000002 0.9049999999999997 # C3
+ 0.8554000000000008 0.6791000000000005 0.9330000000000001 # C4
+ 1.0240000000000005 0.2455999999999998 0.7010000000000001 # C5
+ 1.0508000000000004 0.0926000000000001 0.6760000000000000 # C6
+ 0.8563000000000002 0.1766999999999996 0.6550000000000000 # C7
+ 0.8209000000000007 0.3554000000000002 0.6830000000000002 # C8
+ 0.2544000000000006 0.5239999999999998 0.4510000000000000 # C9
+ 0.4074000000000003 0.5508000000000001 0.4260000000000000 # C10
+ 0.3233000000000008 0.3562999999999997 0.4050000000000000 # C11
+ 0.1446000000000002 0.3209000000000002 0.4330000000000002 # C12
+ -0.0240000000000003 0.7544000000000004 0.2010000000000001 # C13
+ -0.0507999999999995 0.9074000000000002 0.1760000000000000 # C14
+ 0.1436999999999999 0.8233000000000007 0.1550000000000000 # C15
+ 0.1791000000000003 0.6446000000000002 0.1829999999999999 # C16
+ 0.2456000000000004 1.0240000000000002 0.2990000000000000 # C17
+ 0.0925999999999998 1.0508000000000002 0.3240000000000001 # C18
+ 0.1767000000000002 0.8562999999999998 0.3450000000000000 # C19
+ 0.3554000000000008 0.8209000000000004 0.3170000000000000 # C20
+ 0.7544000000000006 -0.0240000000000001 0.7990000000000000 # C21
+ 0.9074000000000003 -0.0508000000000002 0.8240000000000002 # C22
+ 0.8233000000000008 0.1437000000000001 0.8450000000000002 # C23
+ 0.6446000000000003 0.1790999999999996 0.8169999999999999 # C24
+ 0.4759999999999998 0.7456000000000006 0.0490000000000000 # C25
+ 0.4492000000000006 0.5926000000000007 0.0740000000000000 # C26
+ 0.6437000000000000 0.6767000000000001 0.0950000000000001 # C27
+ 0.6791000000000004 0.8554000000000007 0.0670000000000000 # C28
+ 0.5240000000000002 0.2544000000000001 0.5490000000000000 # C29
+ 0.5508000000000004 0.4073999999999998 0.5739999999999998 # C30
+ 0.3563000000000001 0.3233000000000003 0.5950000000000000 # C31
+ 0.3209000000000006 0.1445999999999997 0.5669999999999999 # C32
+ 0.6292000000000003 0.7299000000000000 0.8790000000000001 # O1
+ 1.0054000000000007 0.7994000000000008 0.9399999999999999 # O2
+ 0.7701000000000002 0.1291999999999997 0.6289999999999999 # O3
+ 0.7006000000000006 0.5054000000000002 0.6899999999999999 # O4
+ 0.3707999999999999 0.2701000000000000 0.3790000000000001 # O5
+ -0.0053999999999998 0.2006000000000001 0.4399999999999999 # O6
+ 0.2298999999999997 0.8708000000000006 0.1290000000000000 # O7
+ 0.2994000000000004 0.4946000000000001 0.1900000000000000 # O8
+ 0.1292000000000002 0.7700999999999999 0.3710000000000000 # O9
+ 0.5053999999999998 0.7006000000000003 0.3100000000000000 # O10
+ 0.8708000000000007 0.2298999999999998 0.8710000000000000 # O11
+ 0.4946000000000003 0.2993999999999997 0.8100000000000001 # O12
+ 0.7298999999999999 0.6292000000000002 0.1210000000000001 # O13
+ 0.7994000000000004 1.0053999999999998 0.0599999999999999 # O14
+ 0.2701000000000003 0.3708000000000002 0.6210000000000001 # O15
+ 0.2006000000000005 -0.0054000000000003 0.5599999999999999 # O16
diff --git a/test/data/tetragonal/POSCAR-097 b/test/data/tetragonal/POSCAR-097
new file mode 100644
index 0000000..96de0f3
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-097
@@ -0,0 +1,69 @@
+$cell vectors
+1.0
+ 7.4829964789359247 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.4829964789359247 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.8929929922214050
+ 2 4 16 40
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Th1
+ 0.5000000000000001 0.5000000000000001 0.4999999999999998 # Th2
+ 0.5000000000000001 0.0000000000000000 0.0000000000000000 # Ca1
+ 0.0000000000000000 0.5000000000000001 0.4999999999999998 # Ca2
+ 0.0000000000000000 0.5000000000000001 0.0000000000000000 # Ca3
+ 0.5000000000000001 0.0000000000000000 0.4999999999999998 # Ca4
+ 0.3334999999999999 0.2540000000000004 0.1478999999999999 # Si1
+ 0.8335000000000007 0.7540000000000004 0.6479000000000001 # Si2
+ 0.7460000000000003 0.3334999999999999 0.1478999999999999 # Si3
+ 0.2460000000000003 0.8335000000000007 0.6479000000000001 # Si4
+ 0.6665000000000002 0.7460000000000003 0.1478999999999999 # Si5
+ 0.1665000000000002 0.2460000000000003 0.6479000000000001 # Si6
+ 0.2540000000000004 0.6665000000000002 0.1478999999999999 # Si7
+ 0.7540000000000004 0.1665000000000002 0.6479000000000001 # Si8
+ 0.3335000000000005 0.7460000000000003 0.8520999999999999 # Si9
+ 0.8335000000000007 0.2460000000000003 0.3521000000000000 # Si10
+ 0.6665000000000002 0.2540000000000004 0.8520999999999999 # Si11
+ 0.1665000000000002 0.7540000000000004 0.3521000000000000 # Si12
+ 0.2540000000000004 0.3335000000000005 0.8520999999999999 # Si13
+ 0.7540000000000004 0.8335000000000007 0.3521000000000000 # Si14
+ 0.7460000000000003 0.6665000000000002 0.8520999999999999 # Si15
+ 0.2460000000000003 0.1665000000000002 0.3521000000000000 # Si16
+ 0.7924000000000001 0.2924000000000000 0.2500000000000001 # O1
+ 0.2544000000000001 0.4520999999999999 0.1251000000000000 # O2
+ 0.2553000000000000 0.1075000000000001 0.0817999999999999 # O3
+ 0.2924000000000000 0.7924000000000001 0.7499999999999999 # O4
+ 0.7544000000000002 0.9521000000000006 0.6250999999999999 # O5
+ 0.7553000000000007 0.6075000000000003 0.5817999999999998 # O6
+ 0.7076000000000000 0.7924000000000001 0.2500000000000001 # O7
+ 0.5479000000000002 0.2544000000000001 0.1251000000000000 # O8
+ 0.8925000000000001 0.2553000000000000 0.0817999999999999 # O9
+ 0.2076000000000000 0.2924000000000000 0.7499999999999999 # O10
+ 0.0479000000000001 0.7544000000000002 0.6250999999999999 # O11
+ 0.3925000000000000 0.7553000000000007 0.5817999999999998 # O12
+ 0.2076000000000000 0.7076000000000000 0.2500000000000001 # O13
+ 0.7456000000000000 0.5479000000000002 0.1251000000000000 # O14
+ 0.7447000000000001 0.8925000000000001 0.0817999999999999 # O15
+ 0.7076000000000000 0.2076000000000000 0.7499999999999999 # O16
+ 0.2456000000000000 0.0479000000000001 0.6250999999999999 # O17
+ 0.2447000000000001 0.3925000000000000 0.5817999999999998 # O18
+ 0.2924000000000000 0.2076000000000000 0.2500000000000001 # O19
+ 0.4520999999999999 0.7456000000000000 0.1251000000000000 # O20
+ 0.1075000000000001 0.7447000000000001 0.0817999999999999 # O21
+ 0.7924000000000001 0.7076000000000000 0.7499999999999999 # O22
+ 0.9521000000000006 0.2456000000000000 0.6250999999999999 # O23
+ 0.6075000000000003 0.2447000000000001 0.5817999999999998 # O24
+ 0.2544000000000001 0.5479000000000002 0.8749000000000000 # O25
+ 0.2553000000000000 0.8925000000000006 0.9181999999999997 # O26
+ 0.7544000000000002 0.0479000000000001 0.3748999999999998 # O27
+ 0.7553000000000007 0.3925000000000000 0.4182000000000000 # O28
+ 0.7456000000000007 0.4521000000000007 0.8749000000000000 # O29
+ 0.7447000000000001 0.1075000000000001 0.9181999999999997 # O30
+ 0.2456000000000000 0.9521000000000006 0.3748999999999998 # O31
+ 0.2447000000000001 0.6075000000000003 0.4182000000000000 # O32
+ 0.4520999999999999 0.2544000000000001 0.8749000000000000 # O33
+ 0.1075000000000001 0.2553000000000006 0.9181999999999997 # O34
+ 0.9520999999999999 0.7544000000000002 0.3748999999999998 # O35
+ 0.6075000000000003 0.7553000000000007 0.4182000000000000 # O36
+ 0.5479000000000002 0.7456000000000007 0.8749000000000000 # O37
+ 0.8925000000000001 0.7447000000000001 0.9181999999999997 # O38
+ 0.0479000000000001 0.2456000000000000 0.3748999999999998 # O39
+ 0.3925000000000000 0.2447000000000001 0.4182000000000000 # O40
diff --git a/test/data/tetragonal/POSCAR-097-2 b/test/data/tetragonal/POSCAR-097-2
new file mode 100644
index 0000000..fb0733e
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-097-2
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 9.5309955152663814 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.5309955152663814 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8239939657723259
+ 8 4 32
+Direct
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000 # Ta1
+ 0.0000000000000000 0.5000000000000000 0.2500000000000001 # Ta2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000002 # Ta3
+ 0.5000000000000000 0.0000000000000000 0.7500000000000002 # Ta4
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # Ta5
+ 0.5000000000000000 0.0000000000000000 0.2500000000000001 # Ta6
+ 0.0000000000000000 0.5000000000000000 0.5000000000000002 # Ta7
+ 0.0000000000000000 0.5000000000000000 0.7500000000000002 # Ta8
+ 0.0000000000000000 0.0000000000000000 0.1553000000000001 # I1
+ 0.5000000000000000 0.5000000000000000 0.6552999999999999 # I2
+ 0.0000000000000000 0.0000000000000000 0.8447000000000000 # I3
+ 0.5000000000000000 0.5000000000000000 0.3447000000000001 # I4
+ 0.1211999999999999 0.3120000000000002 0.8809000000000001 # Se1
+ 0.2160000000000002 0.5448999999999998 0.8693000000000000 # Se2
+ 0.6211999999999999 0.8120000000000002 0.3809000000000002 # Se3
+ 0.7159999999999996 0.0449000000000004 0.3692999999999999 # Se4
+ 0.6880000000000002 0.1211999999999999 0.8809000000000001 # Se5
+ 0.4551000000000001 0.2160000000000002 0.8693000000000000 # Se6
+ 0.1880000000000003 0.6211999999999999 0.3809000000000002 # Se7
+ 0.9550999999999993 0.7160000000000002 0.3692999999999999 # Se8
+ 0.8787999999999999 0.6880000000000002 0.8809000000000001 # Se9
+ 0.7840000000000003 0.4551000000000001 0.8693000000000000 # Se10
+ 0.3788000000000000 0.1880000000000003 0.3809000000000002 # Se11
+ 0.2840000000000003 0.9550999999999993 0.3692999999999999 # Se12
+ 0.3120000000000002 0.8787999999999999 0.8809000000000001 # Se13
+ 0.5449000000000003 0.7840000000000003 0.8693000000000000 # Se14
+ 0.8119999999999996 0.3788000000000000 0.3809000000000002 # Se15
+ 0.0449000000000004 0.2840000000000003 0.3692999999999999 # Se16
+ 0.1211999999999999 0.6879999999999996 0.1191000000000000 # Se17
+ 0.2160000000000002 0.4550999999999996 0.1307000000000000 # Se18
+ 0.6211999999999999 0.1880000000000003 0.6191000000000002 # Se19
+ 0.7160000000000002 0.9550999999999993 0.6307000000000004 # Se20
+ 0.8787999999999999 0.3119999999999997 0.1191000000000000 # Se21
+ 0.7839999999999996 0.5448999999999998 0.1307000000000000 # Se22
+ 0.3788000000000000 0.8120000000000002 0.6191000000000002 # Se23
+ 0.2840000000000003 0.0449000000000004 0.6307000000000004 # Se24
+ 0.3120000000000002 0.1211999999999999 0.1191000000000000 # Se25
+ 0.5448999999999998 0.2160000000000002 0.1307000000000000 # Se26
+ 0.8120000000000002 0.6211999999999999 0.6191000000000002 # Se27
+ 0.0449000000000004 0.7160000000000002 0.6307000000000004 # Se28
+ 0.6880000000000002 0.8787999999999999 0.1191000000000000 # Se29
+ 0.4551000000000001 0.7839999999999996 0.1307000000000000 # Se30
+ 0.1880000000000003 0.3788000000000000 0.6191000000000002 # Se31
+ 0.9550999999999993 0.2840000000000003 0.6307000000000004 # Se32
diff --git a/test/data/tetragonal/POSCAR-098 b/test/data/tetragonal/POSCAR-098
new file mode 100644
index 0000000..749298d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-098
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 7.9539962573107550 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.9539962573107550 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.6779977988055927
+ 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cd1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Cd2
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # Cd3
+ 0.5000000000000000 0.0000000000000000 0.7500000000000000 # Cd4
+ 0.4399999999999997 0.2500000000000000 0.1250000000000006 # As1
+ 0.9399999999999997 0.7500000000000001 0.6250000000000007 # As2
+ 0.7500000000000001 0.9399999999999997 0.3750000000000006 # As3
+ 0.2500000000000000 0.4399999999999997 0.8750000000000008 # As4
+ 0.5599999999999996 0.7500000000000001 0.1250000000000006 # As5
+ 0.0600000000000003 0.2500000000000000 0.6250000000000007 # As6
+ 0.2500000000000000 0.0600000000000003 0.3750000000000006 # As7
+ 0.7500000000000001 0.5600000000000004 0.8750000000000008 # As8
diff --git a/test/data/tetragonal/POSCAR-098-2 b/test/data/tetragonal/POSCAR-098-2
new file mode 100644
index 0000000..4f44f5f
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-098-2
@@ -0,0 +1,191 @@
+$cell vectors
+1.0
+ 9.3829955849065581 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.3829955849065581 0.0000000000000000
+ 0.0000000000000053 0.0000000000000053 54.5999743084192986
+ 48 104 24 8
+Direct
+ 0.5906999999999999 0.3794000000000001 0.8396000000000000 # Ta1
+ 0.5787999999999999 0.3628000000000000 0.7850000000000003 # Ta2
+ 0.1872000000000001 0.1148999999999998 0.3134999999999999 # Ta3
+ 0.0906999999999999 0.8794000000000002 0.3396000000000000 # Ta4
+ 0.0787999999999999 0.8628000000000007 0.2850000000000001 # Ta5
+ 0.6872000000000000 0.6149000000000006 0.8135000000000000 # Ta6
+ 0.6206000000000000 0.0907000000000001 0.0896000000000000 # Ta7
+ 0.6372000000000002 0.0788000000000000 0.0350000000000002 # Ta8
+ 0.8851000000000003 0.6872000000000001 0.5634999999999999 # Ta9
+ 0.1205999999999999 0.5907000000000000 0.5895999999999998 # Ta10
+ 0.1372000000000000 0.5788000000000005 0.5350000000000000 # Ta11
+ 0.3851000000000002 0.1872000000000003 0.0634999999999999 # Ta12
+ 0.4093000000000002 0.6206000000000006 0.8396000000000000 # Ta13
+ 0.4211999999999998 0.6372000000000002 0.7850000000000003 # Ta14
+ 0.8128000000000001 0.8851000000000004 0.3134999999999999 # Ta15
+ 0.9093000000000002 0.1206000000000001 0.3395999999999995 # Ta16
+ 0.9212000000000006 0.1372000000000002 0.2850000000000001 # Ta17
+ 0.3128000000000001 0.3851000000000004 0.8135000000000000 # Ta18
+ 0.3794000000000005 0.9093000000000004 0.0896000000000000 # Ta19
+ 0.3627999999999999 0.9212000000000007 0.0350000000000002 # Ta20
+ 0.1148999999999997 0.3128000000000002 0.5634999999999999 # Ta21
+ 0.8794000000000001 0.4093000000000004 0.5895999999999998 # Ta22
+ 0.8628000000000005 0.4212000000000000 0.5350000000000000 # Ta23
+ 0.6149000000000003 0.8128000000000003 0.0634999999999999 # Ta24
+ 0.5907000000000001 0.1206000000000000 0.4103999999999997 # Ta25
+ 0.5788000000000001 0.1372000000000001 0.4649999999999997 # Ta26
+ 0.1871999999999998 0.3851000000000003 0.9365000000000000 # Ta27
+ 0.0906999999999996 0.6206000000000005 0.9104000000000001 # Ta28
+ 0.0788000000000001 0.6372000000000001 0.9650000000000000 # Ta29
+ 0.6872000000000003 0.8851000000000004 0.4364999999999998 # Ta30
+ 0.4093000000000000 0.8794000000000002 0.4103999999999997 # Ta31
+ 0.4212000000000000 0.8628000000000006 0.4649999999999997 # Ta32
+ 0.8128000000000002 0.6149000000000004 0.9365000000000000 # Ta33
+ 0.9092999999999999 0.3794000000000001 0.9104000000000001 # Ta34
+ 0.9212000000000001 0.3627999999999999 0.9650000000000000 # Ta35
+ 0.3127999999999997 0.1149000000000003 0.4364999999999998 # Ta36
+ 0.3793999999999999 0.5907000000000002 0.1604000000000002 # Ta37
+ 0.3628000000000003 0.5788000000000002 0.2149999999999999 # Ta38
+ 0.1148999999999996 0.1871999999999999 0.6864999999999999 # Ta39
+ 0.8794000000000001 0.0907000000000003 0.6604000000000000 # Ta40
+ 0.8628000000000003 0.0788000000000002 0.7150000000000001 # Ta41
+ 0.6149000000000002 0.6872000000000004 0.1865000000000001 # Ta42
+ 0.6206000000000005 0.4093000000000001 0.1604000000000002 # Ta43
+ 0.6372000000000001 0.4212000000000001 0.2149999999999999 # Ta44
+ 0.8851000000000003 0.8128000000000004 0.6864999999999999 # Ta45
+ 0.1205999999999999 0.9093000000000001 0.6604000000000000 # Ta46
+ 0.1371999999999999 0.9212000000000002 0.7150000000000001 # Ta47
+ 0.3851000000000002 0.3127999999999999 0.1865000000000001 # Ta48
+ 0.3828000000000000 0.2010000000000000 0.8481000000000001 # Br1
+ 0.1763000000000000 0.5210000000000000 0.7793000000000000 # Br2
+ 0.3625000000000001 0.1899000000000000 0.7817000000000001 # Br3
+ 0.3045999999999999 0.8242000000000004 0.8129000000000001 # Br4
+ 0.4999999999999999 0.5000000000000006 0.7467000000000001 # Br5
+ 0.0552000000000002 0.2537000000000000 0.8209000000000001 # Br6
+ 0.2500000000000002 0.7620000000000005 0.8750000000000001 # Br7
+ 0.1715999999999999 0.8284000000000000 0.0000000000000000 # Br8
+ 0.8828000000000006 0.7010000000000004 0.3481000000000001 # Br9
+ 0.6763000000000000 0.0210000000000000 0.2793000000000002 # Br10
+ 0.8625000000000007 0.6899000000000002 0.2816999999999998 # Br11
+ 0.8046000000000004 0.3242000000000004 0.3129000000000000 # Br12
+ -0.0000000000000001 -0.0000000000000001 0.2467000000000002 # Br13
+ 0.5552000000000001 0.7536999999999999 0.3209000000000001 # Br14
+ 0.7500000000000002 0.2620000000000003 0.3749999999999996 # Br15
+ 0.6716000000000000 0.3284000000000001 0.4999999999999998 # Br16
+ 0.7990000000000000 0.8828000000000003 0.0981000000000001 # Br17
+ 0.4790000000000001 0.6763000000000001 0.0293000000000001 # Br18
+ 0.8101000000000000 0.8625000000000003 0.0316999999999999 # Br19
+ 0.1758000000000003 0.8046000000000001 0.0629000000000000 # Br20
+ 0.4999999999999998 0.0000000000000000 0.9967000000000000 # Br21
+ 0.7463000000000002 0.5552000000000004 0.0709000000000000 # Br22
+ 0.2380000000000002 0.7500000000000003 0.1250000000000000 # Br23
+ 0.1716000000000003 0.6716000000000002 0.2500000000000000 # Br24
+ 0.2990000000000001 0.3828000000000001 0.5981000000000000 # Br25
+ 0.9790000000000001 0.1763000000000002 0.5292999999999999 # Br26
+ 0.3101000000000002 0.3625000000000003 0.5316999999999998 # Br27
+ 0.6758000000000004 0.3046000000000000 0.5628999999999998 # Br28
+ -0.0000000000000003 0.5000000000000000 0.4967000000000000 # Br29
+ 0.2463000000000000 0.0552000000000003 0.5709000000000000 # Br30
+ 0.7380000000000002 0.2500000000000004 0.6250000000000000 # Br31
+ 0.6715999999999999 0.1716000000000000 0.7500000000000001 # Br32
+ 0.6172000000000003 0.7990000000000002 0.8481000000000001 # Br33
+ 0.8237000000000004 0.4790000000000003 0.7793000000000000 # Br34
+ 0.6375000000000001 0.8101000000000003 0.7817000000000001 # Br35
+ 0.6954000000000004 0.1757999999999999 0.8129000000000001 # Br36
+ 0.9448000000000001 0.7463000000000002 0.8209000000000001 # Br37
+ 0.7500000000000000 0.2380000000000003 0.8750000000000001 # Br38
+ 0.8284000000000000 0.1715999999999999 0.0000000000000000 # Br39
+ 0.1172000000000002 0.2990000000000002 0.3481000000000001 # Br40
+ 0.3237000000000003 0.9790000000000003 0.2793000000000002 # Br41
+ 0.1375000000000001 0.3101000000000003 0.2816999999999998 # Br42
+ 0.1953999999999998 0.6758000000000005 0.3129000000000000 # Br43
+ 0.4448000000000000 0.2463000000000001 0.3209000000000001 # Br44
+ 0.2499999999999999 0.7380000000000003 0.3749999999999996 # Br45
+ 0.3284000000000001 0.6716000000000000 0.4999999999999998 # Br46
+ 0.2009999999999998 0.1172000000000004 0.0981000000000001 # Br47
+ 0.5209999999999999 0.3236999999999999 0.0293000000000001 # Br48
+ 0.1898999999999999 0.1375000000000003 0.0316999999999999 # Br49
+ 0.8242000000000003 0.1954000000000000 0.0629000000000000 # Br50
+ 0.2536999999999999 0.4448000000000001 0.0709000000000000 # Br51
+ 0.7620000000000002 0.2500000000000001 0.1250000000000000 # Br52
+ 0.8284000000000006 0.3284000000000002 0.2500000000000000 # Br53
+ 0.7010000000000003 0.6172000000000004 0.5981000000000000 # Br54
+ 0.0209999999999999 0.8237000000000005 0.5292999999999999 # Br55
+ 0.6899000000000000 0.6375000000000002 0.5316999999999998 # Br56
+ 0.3242000000000002 0.6954000000000005 0.5628999999999998 # Br57
+ 0.7537000000000004 0.9448000000000009 0.5709000000000000 # Br58
+ 0.2620000000000002 0.7500000000000001 0.6250000000000000 # Br59
+ 0.3284000000000000 0.8284000000000002 0.7500000000000001 # Br60
+ 0.3828000000000003 0.2990000000000002 0.4018999999999999 # Br61
+ 0.1763000000000002 0.9790000000000008 0.4706999999999998 # Br62
+ 0.3625000000000003 0.3101000000000002 0.4682999999999999 # Br63
+ 0.3046000000000001 0.6758000000000005 0.4370999999999999 # Br64
+ 0.5000000000000000 0.0000000000000003 0.5032999999999997 # Br65
+ 0.0551999999999998 0.2463000000000001 0.4291000000000000 # Br66
+ 0.8828000000000003 0.7990000000000000 0.9018999999999999 # Br67
+ 0.6763000000000002 0.4790000000000001 0.9707000000000001 # Br68
+ 0.8625000000000003 0.8101000000000002 0.9683000000000002 # Br69
+ 0.8046000000000001 0.1758000000000004 0.9371000000000002 # Br70
+ 0.0000000000000000 0.5000000000000003 0.0032999999999999 # Br71
+ 0.5551999999999998 0.7463000000000001 0.9291000000000001 # Br72
+ 0.6172000000000000 0.7010000000000004 0.4018999999999999 # Br73
+ 0.8237000000000007 0.0209999999999999 0.4706999999999998 # Br74
+ 0.6375000000000003 0.6899000000000005 0.4682999999999999 # Br75
+ 0.6954000000000000 0.3242000000000003 0.4370999999999999 # Br76
+ 0.9448000000000003 0.7537000000000005 0.4291000000000000 # Br77
+ 0.1171999999999999 0.2010000000000000 0.9018999999999999 # Br78
+ 0.3236999999999999 0.5210000000000005 0.9707000000000001 # Br79
+ 0.1374999999999998 0.1898999999999999 0.9683000000000002 # Br80
+ 0.1954000000000000 0.8242000000000003 0.9371000000000002 # Br81
+ 0.4447999999999997 0.2537000000000000 0.9291000000000001 # Br82
+ 0.2009999999999998 0.3828000000000004 0.1518999999999999 # Br83
+ 0.5210000000000004 0.1763000000000003 0.2206999999999999 # Br84
+ 0.1899000000000003 0.3624999999999999 0.2183000000000002 # Br85
+ 0.8242000000000002 0.3046000000000002 0.1871000000000001 # Br86
+ 0.5000000000000002 0.5000000000000002 0.2532999999999999 # Br87
+ 0.2536999999999998 0.0552000000000000 0.1791000000000000 # Br88
+ 0.7010000000000003 0.8828000000000005 0.6519000000000000 # Br89
+ 0.0209999999999998 0.6763000000000003 0.7206999999999999 # Br90
+ 0.6899000000000003 0.8625000000000004 0.7182999999999999 # Br91
+ 0.3242000000000002 0.8046000000000003 0.6870999999999999 # Br92
+ -0.0000000000000004 0.0000000000000001 0.7533000000000001 # Br93
+ 0.7537000000000004 0.5552000000000006 0.6790999999999998 # Br94
+ 0.7989999999999999 0.6172000000000001 0.1518999999999999 # Br95
+ 0.4790000000000006 0.8237000000000008 0.2206999999999999 # Br96
+ 0.8100999999999999 0.6375000000000000 0.2183000000000002 # Br97
+ 0.1758000000000002 0.6954000000000001 0.1871000000000001 # Br98
+ 0.7463000000000005 0.9448000000000004 0.1791000000000000 # Br99
+ 0.2990000000000000 0.1172000000000001 0.6519000000000000 # Br100
+ 0.9790000000000000 0.3237000000000000 0.7206999999999999 # Br101
+ 0.3101000000000000 0.1374999999999999 0.7182999999999999 # Br102
+ 0.6758000000000004 0.1954000000000002 0.6870999999999999 # Br103
+ 0.2462999999999999 0.4448000000000004 0.6790999999999998 # Br104
+ 0.4999999999999998 0.5000000000000006 0.8671000000000000 # O1
+ 0.2299999999999997 0.5130000000000005 0.8381999999999999 # O2
+ -0.0000000000000002 -0.0000000000000002 0.3670999999999995 # O3
+ 0.7300000000000002 0.0129999999999999 0.3382000000000001 # O4
+ 0.5000000000000002 -0.0000000000000001 0.1171000000000000 # O5
+ 0.4870000000000001 0.7300000000000004 0.0882000000000001 # O6
+ -0.0000000000000003 0.5000000000000000 0.6170999999999999 # O7
+ 0.9870000000000000 0.2299999999999998 0.5881999999999998 # O8
+ 0.7700000000000000 0.4870000000000003 0.8381999999999999 # O9
+ 0.2700000000000000 0.9870000000000001 0.3382000000000001 # O10
+ 0.5130000000000005 0.2700000000000001 0.0882000000000001 # O11
+ 0.0129999999999998 0.7700000000000007 0.5881999999999998 # O12
+ 0.5000000000000001 -0.0000000000000002 0.3828999999999998 # O13
+ 0.2300000000000000 0.9870000000000001 0.4117999999999999 # O14
+ 0.0000000000000001 0.5000000000000006 0.8829000000000002 # O15
+ 0.7299999999999999 0.4870000000000003 0.9117999999999999 # O16
+ 0.7700000000000002 0.0129999999999999 0.4117999999999999 # O17
+ 0.2700000000000002 0.5130000000000003 0.9117999999999999 # O18
+ 0.5000000000000002 0.5000000000000002 0.1329000000000001 # O19
+ 0.5130000000000003 0.2300000000000001 0.1618000000000000 # O20
+ -0.0000000000000004 0.0000000000000002 0.6329000000000000 # O21
+ 0.0129999999999997 0.7300000000000001 0.6618000000000001 # O22
+ 0.4870000000000000 0.7700000000000004 0.1618000000000000 # O23
+ 0.9870000000000000 0.2700000000000003 0.6618000000000001 # O24
+ 0.4999999999999998 0.5000000000000004 0.9041999999999999 # Lu1
+ 0.9999999999999998 -0.0000000000000002 0.4041999999999997 # Lu2
+ 0.5000000000000002 -0.0000000000000001 0.1541999999999999 # Lu3
+ -0.0000000000000004 0.4999999999999999 0.6542000000000001 # Lu4
+ 0.5000000000000001 -0.0000000000000002 0.3457999999999998 # Lu5
+ 0.0000000000000001 0.5000000000000006 0.8458000000000002 # Lu6
+ 0.5000000000000003 0.5000000000000003 0.0958000000000001 # Lu7
+ -0.0000000000000003 0.0000000000000002 0.5958000000000000 # Lu8
diff --git a/test/data/tetragonal/POSCAR-099 b/test/data/tetragonal/POSCAR-099
new file mode 100644
index 0000000..70158cb
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-099
@@ -0,0 +1,12 @@
+$cell vectors
+1.0
+ 3.8989981653576335 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8989981653576335 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.1669980392524382
+ 1 1 3
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Pb1
+ 0.4999999999999999 0.4999999999999999 0.5410000000000003 # Ti1
+ 0.4999999999999999 0.4999999999999999 0.1147999999999999 # O1
+ 0.4999999999999999 0.0000000000000000 0.6208000000000005 # O2
+ 0.0000000000000000 0.4999999999999999 0.6208000000000005 # O3
diff --git a/test/data/tetragonal/POSCAR-099-2 b/test/data/tetragonal/POSCAR-099-2
new file mode 100644
index 0000000..7f2eda8
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-099-2
@@ -0,0 +1,12 @@
+$cell vectors
+1.0
+ 3.8071982085533707 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8071982085533707 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.6981977893006528
+ 1 1 3
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Pb1
+ 0.5000000000000000 0.5000000000000000 0.5674000000000002 # V1
+ 0.5000000000000000 0.5000000000000000 0.2101999999999996 # O1
+ 0.5000000000000000 0.0000000000000000 0.6915000000000003 # O2
+ 0.0000000000000000 0.5000000000000000 0.6915000000000003 # O3
diff --git a/test/data/tetragonal/POSCAR-100 b/test/data/tetragonal/POSCAR-100
new file mode 100644
index 0000000..79a3aa2
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-100
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 8.8699958262944900 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.8699958262944900 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2149975461246667
+ 4 6 16
+Direct
+ 0.3010000000000000 0.8010000000000002 0.9594999999999991 # K1
+ 0.1989999999999997 0.3010000000000000 0.9594999999999991 # K2
+ 0.6990000000000000 0.1990000000000003 0.9594999999999991 # K3
+ 0.8010000000000002 0.6990000000000000 0.9594999999999991 # K4
+ 0.0000000000000000 0.0000000000000000 0.4950999999999996 # V1
+ 0.1340000000000002 0.6339999999999999 0.4899999999999995 # V2
+ 0.3660000000000001 0.1340000000000002 0.4899999999999995 # V3
+ 0.8659999999999997 0.3660000000000001 0.4899999999999995 # V4
+ 0.6339999999999999 0.8659999999999997 0.4899999999999995 # V5
+ 0.5000000000000002 0.5000000000000002 0.4950999999999996 # V6
+ 0.0865999999999999 0.8081000000000000 0.5996000000000001 # O1
+ 0.1299000000000002 0.6298999999999998 0.1780000000000002 # O2
+ 0.0000000000000000 0.4999999999999997 0.6103999999999999 # O3
+ 0.0000000000000000 0.0000000000000000 0.1918000000000002 # O4
+ 0.1919000000000000 0.0865999999999999 0.5996000000000001 # O5
+ 0.3701000000000002 0.1299000000000002 0.1780000000000002 # O6
+ 0.5000000000000002 0.0000000000000000 0.6103999999999999 # O7
+ 0.9134000000000002 0.1919000000000000 0.5996000000000001 # O8
+ 0.8700999999999999 0.3701000000000002 0.1780000000000002 # O9
+ 0.8081000000000000 0.9134000000000002 0.5996000000000001 # O10
+ 0.6298999999999998 0.8700999999999999 0.1780000000000002 # O11
+ 0.4133999999999998 0.3081000000000003 0.5996000000000001 # O12
+ 0.5000000000000002 0.5000000000000002 0.1918000000000002 # O13
+ 0.5866000000000002 0.6918999999999998 0.5996000000000001 # O14
+ 0.6918999999999998 0.4134000000000004 0.5996000000000001 # O15
+ 0.3081000000000003 0.5866000000000002 0.5996000000000001 # O16
diff --git a/test/data/tetragonal/POSCAR-100-2 b/test/data/tetragonal/POSCAR-100-2
new file mode 100644
index 0000000..9dfd667
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-100-2
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 8.3119960888567981 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.3119960888567981 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0699952616443671
+ 4 2 4 20
+Direct
+ 0.3283000000000002 0.8282999999999998 0.0000000000000000 # Sr1
+ 0.1717000000000002 0.3283000000000002 0.0000000000000000 # Sr2
+ 0.6717000000000000 0.1717000000000002 0.0000000000000000 # Sr3
+ 0.8282999999999998 0.6717000000000000 0.0000000000000000 # Sr4
+ 0.0000000000000000 0.0000000000000000 0.7349999999999999 # Ti1
+ 0.5000000000000003 0.5000000000000003 0.7349999999999999 # Ti2
+ 0.1292999999999997 0.6293000000000001 0.7449999999999999 # Si1
+ 0.3706999999999999 0.1292999999999997 0.7449999999999999 # Si2
+ 0.8707000000000003 0.3706999999999999 0.7449999999999999 # Si3
+ 0.6293000000000001 0.8707000000000003 0.7449999999999999 # Si4
+ 0.0000000000000000 0.5000000000000003 0.6879999999999997 # O1
+ 0.1260000000000001 0.6250000000000002 0.9029999999999997 # O2
+ 0.2943999999999999 0.5814000000000000 0.6740000000000002 # O3
+ 0.0000000000000000 0.0000000000000000 0.9019999999999997 # O4
+ 0.5000000000000003 0.0000000000000000 0.6879999999999997 # O5
+ 0.3749999999999998 0.1260000000000001 0.9029999999999997 # O6
+ 0.4186000000000001 0.2943999999999999 0.6740000000000002 # O7
+ 0.8740000000000000 0.3750000000000004 0.9029999999999997 # O8
+ 0.7056000000000002 0.4186000000000001 0.6740000000000002 # O9
+ 0.6250000000000002 0.8740000000000000 0.9029999999999997 # O10
+ 0.5814000000000000 0.7056000000000002 0.6740000000000002 # O11
+ 0.3740000000000003 0.1249999999999999 0.9029999999999997 # O12
+ 0.2055999999999998 0.0814000000000003 0.6740000000000002 # O13
+ 0.5000000000000003 0.5000000000000003 0.9019999999999997 # O14
+ 0.6260000000000003 0.8750000000000001 0.9029999999999997 # O15
+ 0.7944000000000002 0.9185999999999999 0.6740000000000002 # O16
+ 0.8750000000000001 0.3740000000000003 0.9029999999999997 # O17
+ 0.9185999999999999 0.2055999999999998 0.6740000000000002 # O18
+ 0.1249999999999999 0.6260000000000003 0.9029999999999997 # O19
+ 0.0814000000000003 0.7944000000000002 0.6740000000000002 # O20
diff --git a/test/data/tetragonal/POSCAR-102 b/test/data/tetragonal/POSCAR-102
new file mode 100644
index 0000000..4c43f5e
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-102
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 8.8639958291177443 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.8639958291177443 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.0199962262549924
+ 12 8
+Direct
+ 0.1519999999999997 0.1519999999999997 0.2680000000000005 # Ca1
+ 0.2049999999999997 0.2049999999999997 0.7420000000000003 # Ca2
+ 0.0000000000000000 0.5000000000000000 0.5170000000000000 # Ca3
+ 0.3480000000000001 0.6519999999999996 0.7680000000000005 # Ca4
+ 0.2950000000000002 0.7049999999999997 0.2420000000000003 # Ca5
+ 0.0000000000000000 0.5000000000000000 0.0170000000000000 # Ca6
+ 0.8480000000000001 0.8479999999999994 0.2680000000000005 # Ca7
+ 0.7949999999999995 0.7950000000000000 0.7420000000000003 # Ca8
+ 0.6519999999999996 0.3480000000000001 0.7680000000000005 # Ca9
+ 0.7049999999999997 0.2950000000000002 0.2420000000000003 # Ca10
+ 0.5000000000000000 0.0000000000000000 0.0170000000000000 # Ca11
+ 0.5000000000000000 0.0000000000000000 0.5170000000000000 # Ca12
+ 0.3769999999999999 0.3769999999999999 0.0479999999999999 # Cd1
+ 0.3960000000000001 0.3960000000000001 0.4560000000000001 # Cd2
+ 0.1229999999999999 -0.1229999999999999 0.5479999999999998 # Cd3
+ 0.1039999999999999 -0.1039999999999999 0.9560000000000001 # Cd4
+ 0.6229999999999998 0.6229999999999998 0.0479999999999999 # Cd5
+ 0.6039999999999998 0.6039999999999998 0.4560000000000001 # Cd6
+ -0.1229999999999999 0.1229999999999999 0.5479999999999998 # Cd7
+ -0.1039999999999999 0.1040000000000004 0.9560000000000001 # Cd8
diff --git a/test/data/tetragonal/POSCAR-102-2 b/test/data/tetragonal/POSCAR-102-2
new file mode 100644
index 0000000..0cc7400
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-102-2
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 10.7589949374410878 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.7589949374410878 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6559973386157436
+ 30
+Direct
+ 0.0000000000000000 0.0000000000000000 0.4999999999999994 # U1
+ 0.1070000000000001 0.1070000000000001 0.9860000000000001 # U2
+ 0.3029999999999998 0.3029999999999998 0.7690000000000001 # U3
+ 0.3209999999999997 0.3210000000000002 0.2939999999999997 # U4
+ 0.5580000000000001 0.2249999999999998 0.0519999999999996 # U5
+ 0.3720000000000001 0.0450000000000001 0.9769999999999993 # U6
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # U7
+ 0.3929999999999999 0.6070000000000001 0.4859999999999998 # U8
+ 0.1970000000000002 0.8029999999999997 0.2689999999999997 # U9
+ 0.1790000000000002 0.8209999999999996 0.7939999999999999 # U10
+ 0.2750000000000001 0.0580000000000001 0.5519999999999999 # U11
+ 0.4549999999999998 0.8719999999999997 0.4769999999999999 # U12
+ 0.8929999999999997 0.8929999999999997 0.9860000000000001 # U13
+ 0.6970000000000002 0.6969999999999995 0.7690000000000001 # U14
+ 0.6789999999999997 0.6789999999999997 0.2939999999999997 # U15
+ 0.4419999999999997 0.7749999999999997 0.0519999999999996 # U16
+ 0.6279999999999999 0.9550000000000000 0.9769999999999993 # U17
+ 0.6070000000000001 0.3929999999999999 0.4859999999999998 # U18
+ 0.8029999999999997 0.1970000000000002 0.2689999999999997 # U19
+ 0.8209999999999996 0.1790000000000002 0.7939999999999999 # U20
+ 0.7249999999999998 0.9419999999999997 0.5519999999999999 # U21
+ 0.5449999999999999 0.1279999999999999 0.4769999999999999 # U22
+ 0.9419999999999997 0.7249999999999998 0.5519999999999999 # U23
+ 0.1279999999999999 0.5449999999999999 0.4769999999999999 # U24
+ 0.0580000000000001 0.2750000000000001 0.5519999999999999 # U25
+ 0.8719999999999997 0.4549999999999998 0.4769999999999999 # U26
+ 0.7749999999999997 0.4419999999999997 0.0519999999999996 # U27
+ 0.9550000000000000 0.6279999999999999 0.9769999999999993 # U28
+ 0.2249999999999998 0.5580000000000001 0.0519999999999996 # U29
+ 0.0450000000000001 0.3720000000000001 0.9769999999999993 # U30
diff --git a/test/data/tetragonal/POSCAR-103 b/test/data/tetragonal/POSCAR-103
new file mode 100644
index 0000000..28ff07a
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-103
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 6.5509969174808598 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.5509969174808598 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.8469967782004941
+ 2 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2419999999999997 # Nb1
+ 0.0000000000000000 0.0000000000000000 0.7420000000000001 # Nb2
+ 0.1440000000000003 0.3275999999999999 0.0000000000000000 # Te1
+ 0.6724000000000002 0.1440000000000003 0.0000000000000000 # Te2
+ 0.8559999999999998 0.6724000000000002 0.0000000000000000 # Te3
+ 0.3275999999999999 0.8559999999999998 0.0000000000000000 # Te4
+ 0.8559999999999998 0.3275999999999999 0.4999999999999997 # Te5
+ 0.1440000000000003 0.6724000000000002 0.4999999999999997 # Te6
+ 0.6724000000000002 0.8559999999999998 0.4999999999999997 # Te7
+ 0.3275999999999999 0.1440000000000003 0.4999999999999997 # Te8
diff --git a/test/data/tetragonal/POSCAR-103-2 b/test/data/tetragonal/POSCAR-103-2
new file mode 100644
index 0000000..5476d78
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-103-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 6.5139969348909057 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.5139969348909057 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.8089967960810807
+ 2 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2245000000000001 # Ta1
+ 0.0000000000000000 0.0000000000000000 0.7244999999999998 # Ta2
+ 0.1440000000000002 0.3280000000000000 0.0000000000000000 # Te1
+ 0.6719999999999999 0.1440000000000002 0.0000000000000000 # Te2
+ 0.8559999999999998 0.6719999999999999 0.0000000000000000 # Te3
+ 0.3280000000000000 0.8559999999999998 0.0000000000000000 # Te4
+ 0.8559999999999998 0.3280000000000000 0.4999999999999996 # Te5
+ 0.1440000000000002 0.6719999999999999 0.4999999999999996 # Te6
+ 0.6719999999999999 0.8559999999999998 0.4999999999999996 # Te7
+ 0.3280000000000000 0.1440000000000002 0.4999999999999996 # Te8
diff --git a/test/data/tetragonal/POSCAR-104 b/test/data/tetragonal/POSCAR-104
new file mode 100644
index 0000000..9613aef
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-104
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 9.4159955693786834 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.4159955693786834 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.2369956536056641
+ 8 2 12
+Direct
+ 0.3549000000000000 0.8523000000000003 0.2479999999999998 # Tl1
+ 0.1477000000000003 0.3549000000000000 0.2479999999999998 # Tl2
+ 0.6450999999999999 0.1477000000000003 0.2479999999999998 # Tl3
+ 0.8523000000000003 0.6450999999999999 0.2479999999999998 # Tl4
+ 0.1450999999999999 0.3523000000000002 0.7479999999999998 # Tl5
+ 0.8549000000000001 0.6477000000000004 0.7479999999999998 # Tl6
+ 0.6477000000000004 0.1450999999999999 0.7479999999999998 # Tl7
+ 0.3523000000000002 0.8549000000000001 0.7479999999999998 # Tl8
+ 0.0000000000000000 0.0000000000000000 0.9970000000000001 # Hg1
+ 0.5000000000000000 0.5000000000000000 0.4970000000000001 # Hg2
+ 0.0000000000000000 0.0000000000000000 1.2848999999999990 # I1
+ 0.0000000000000000 0.0000000000000000 0.7149999999999996 # I2
+ 0.3302000000000000 0.1455000000000003 0.0001000000000000 # I3
+ 0.8545000000000003 0.3302000000000000 0.0001000000000000 # I4
+ 0.6698000000000004 0.8545000000000003 0.0001000000000000 # I5
+ 0.1455000000000003 0.6697999999999998 0.0001000000000000 # I6
+ 0.5000000000000000 0.5000000000000000 0.7848999999999998 # I7
+ 0.5000000000000000 0.5000000000000000 0.2150000000000002 # I8
+ 0.1697999999999999 0.6455000000000002 0.5001000000000000 # I9
+ 0.8302000000000000 0.3545000000000003 0.5001000000000000 # I10
+ 0.3545000000000003 0.1697999999999999 0.5001000000000000 # I11
+ 0.6455000000000002 0.8302000000000000 0.5001000000000000 # I12
diff --git a/test/data/tetragonal/POSCAR-104-2 b/test/data/tetragonal/POSCAR-104-2
new file mode 100644
index 0000000..b19e20d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-104-2
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 10.6199950028463928 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.6199950028463928 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0089957608891833
+ 10 10 8
+Direct
+ 0.3905000000000000 0.1907000000000001 0.6903000000000000 # Bi1
+ 0.4999999999999997 0.4999999999999997 0.3179999999999999 # Bi2
+ 0.8092999999999998 0.3905000000000000 0.6903000000000000 # Bi3
+ 0.6095000000000000 0.8092999999999998 0.6903000000000000 # Bi4
+ 0.1907000000000001 0.6095000000000000 0.6903000000000000 # Bi5
+ 0.1094999999999998 0.6906999999999998 0.1903000000000000 # Bi6
+ 0.0000000000000000 0.0000000000000000 0.8180000000000001 # Bi7
+ 0.8904999999999996 0.3093000000000001 0.1903000000000000 # Bi8
+ 0.3093000000000001 0.1094999999999998 0.1903000000000000 # Bi9
+ 0.6906999999999998 0.8904999999999996 0.1903000000000000 # Bi10
+ 0.6056999999999997 0.1884000000000000 0.3739999999999999 # Ba1
+ 0.4999999999999997 0.4999999999999997 0.7000999999999998 # Ba2
+ 0.8116000000000000 0.6056999999999997 0.3739999999999999 # Ba3
+ 0.3942999999999999 0.8116000000000000 0.3739999999999999 # Ba4
+ 0.1884000000000000 0.3942999999999999 0.3739999999999999 # Ba5
+ 0.8942999999999998 0.6883999999999998 0.8740000000000001 # Ba6
+ 0.0000000000000000 0.0000000000000000 0.2000999999999998 # Ba7
+ 0.1057000000000003 0.3116000000000002 0.8740000000000001 # Ba8
+ 0.3116000000000002 0.8942999999999998 0.8740000000000001 # Ba9
+ 0.6883999999999998 0.1057000000000003 0.8740000000000001 # Ba10
+ 0.1834000000000001 0.0720000000000001 0.5316000000000002 # In1
+ 0.9279999999999997 0.1834000000000001 0.5316000000000002 # In2
+ 0.8165999999999995 0.9279999999999997 0.5316000000000002 # In3
+ 0.0720000000000001 0.8165999999999995 0.5316000000000002 # In4
+ 0.3166000000000002 0.5719999999999998 0.0316000000000001 # In5
+ 0.6833999999999998 0.4280000000000002 0.0316000000000001 # In6
+ 0.4280000000000002 0.3165999999999997 0.0316000000000001 # In7
+ 0.5719999999999998 0.6833999999999998 0.0316000000000001 # In8
diff --git a/test/data/tetragonal/POSCAR-105 b/test/data/tetragonal/POSCAR-105
new file mode 100644
index 0000000..42dc9c3
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-105
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 7.6179964154127893 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.6179964154127893 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4999960003949475
+ 4 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ba1
+ 0.5000000000000000 0.0000000000000000 0.0276000000000003 # Ba2
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # Ba3
+ 0.0000000000000000 0.5000000000000000 0.5276000000000000 # Ba4
+ 0.3318000000000002 0.5000000000000000 0.8655000000000003 # Ge1
+ 0.5000000000000000 0.1656000000000003 0.6140999999999996 # Ge2
+ 0.5000000000000000 0.3318000000000002 0.3654999999999999 # Ge3
+ 0.8343999999999997 0.5000000000000000 0.1141000000000001 # Ge4
+ 0.6681999999999999 0.5000000000000000 0.8655000000000003 # Ge5
+ 0.5000000000000000 0.8344000000000005 0.6140999999999996 # Ge6
+ 0.5000000000000000 0.6681999999999999 0.3654999999999999 # Ge7
+ 0.1656000000000003 0.5000000000000000 0.1141000000000001 # Ge8
+ 0.2315000000000002 0.2488000000000002 0.2564000000000002 # P1
+ 0.7511999999999999 0.2315000000000002 0.7563999999999999 # P2
+ 0.7684999999999997 0.7511999999999999 0.2564000000000002 # P3
+ 0.2488000000000002 0.7684999999999997 0.7563999999999999 # P4
+ 0.7684999999999997 0.2488000000000002 0.2564000000000002 # P5
+ 0.2315000000000002 0.7511999999999999 0.2564000000000002 # P6
+ 0.7511999999999999 0.7684999999999997 0.7563999999999999 # P7
+ 0.2488000000000002 0.2315000000000002 0.7563999999999999 # P8
diff --git a/test/data/tetragonal/POSCAR-105-2 b/test/data/tetragonal/POSCAR-105-2
new file mode 100644
index 0000000..e8afac3
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-105-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.6399973461444119 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.6399973461444119 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0499957415969732
+ 2 2 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Al1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Al2
+ 0.4999999999999995 0.0000000000000000 0.5000000000000000 # P1
+ 0.0000000000000000 0.4999999999999995 0.0000000000000000 # P2
+ 0.2000000000000004 0.2599999999999997 0.1270000000000003 # S1
+ 0.7399999999999994 0.2000000000000004 0.6269999999999997 # S2
+ 0.7999999999999995 0.7399999999999994 0.1270000000000003 # S3
+ 0.2599999999999997 0.7999999999999995 0.6269999999999997 # S4
+ 0.7999999999999995 0.2599999999999997 0.1270000000000003 # S5
+ 0.2000000000000004 0.7399999999999994 0.1270000000000003 # S6
+ 0.7399999999999994 0.7999999999999995 0.6269999999999997 # S7
+ 0.2599999999999997 0.2000000000000004 0.6269999999999997 # S8
diff --git a/test/data/tetragonal/POSCAR-106 b/test/data/tetragonal/POSCAR-106
new file mode 100644
index 0000000..bbaa38e
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-106
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 10.8389948997977434 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.8389948997977434 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3079975023642811
+ 8 8 24 24
+Direct
+ 0.3800999999999999 0.4073000000000000 0.9679999999999994 # Na1
+ 0.5927000000000000 0.3800999999999999 0.4679999999999997 # Na2
+ 0.6199000000000001 0.5927000000000000 0.9679999999999994 # Na3
+ 0.4073000000000000 0.6199000000000001 0.4679999999999997 # Na4
+ 0.1198999999999998 0.9073000000000002 0.9679999999999994 # Na5
+ 0.8801000000000001 0.0927000000000003 0.9679999999999994 # Na6
+ 0.0927000000000003 0.1198999999999998 0.4679999999999997 # Na7
+ 0.9073000000000002 0.8801000000000001 0.4679999999999997 # Na8
+ 0.0566999999999998 0.3070999999999998 0.0000000000000000 # Zn1
+ 0.6929000000000001 0.0566999999999998 0.4999999999999996 # Zn2
+ 0.9433000000000001 0.6929000000000001 0.0000000000000000 # Zn3
+ 0.3070999999999998 0.9433000000000001 0.4999999999999996 # Zn4
+ 0.4432999999999999 0.8071000000000000 0.0000000000000000 # Zn5
+ 0.5567000000000000 0.1929000000000000 0.0000000000000000 # Zn6
+ 0.1929000000000000 0.4432999999999999 0.4999999999999996 # Zn7
+ 0.8071000000000000 0.5567000000000000 0.4999999999999996 # Zn8
+ 0.6697999999999997 0.0682000000000003 0.8739999999999993 # O1
+ 0.0971000000000002 0.1320000000000001 0.9359999999999995 # O2
+ 0.8800000000000000 0.3153999999999999 0.9329999999999997 # O3
+ 0.9318000000000002 0.6697999999999997 0.3739999999999999 # O4
+ 0.8679999999999998 0.0971000000000002 0.4360000000000000 # O5
+ 0.6846000000000001 0.8800000000000000 0.4330000000000001 # O6
+ 0.3302000000000002 0.9318000000000002 0.8739999999999993 # O7
+ 0.9029000000000001 0.8679999999999998 0.9359999999999995 # O8
+ 0.1200000000000003 0.6846000000000001 0.9329999999999997 # O9
+ 0.0681999999999998 0.3302000000000002 0.3739999999999999 # O10
+ 0.1320000000000001 0.9029000000000001 0.4360000000000000 # O11
+ 0.3153999999999999 0.1199999999999998 0.4330000000000001 # O12
+ 0.8302000000000000 0.5681999999999999 0.8739999999999993 # O13
+ 0.4029000000000000 0.6320000000000003 0.9359999999999995 # O14
+ 0.6200000000000000 0.8154000000000001 0.9329999999999997 # O15
+ 0.1698000000000000 0.4318000000000000 0.8739999999999993 # O16
+ 0.5971000000000000 0.3680000000000001 0.9359999999999995 # O17
+ 0.3799999999999999 0.1845999999999998 0.9329999999999997 # O18
+ 0.4318000000000000 0.8302000000000000 0.3739999999999999 # O19
+ 0.3680000000000001 0.4029000000000000 0.4360000000000000 # O20
+ 0.1845999999999998 0.6200000000000000 0.4330000000000001 # O21
+ 0.5681999999999999 0.1698000000000000 0.3739999999999999 # O22
+ 0.6319999999999999 0.5971000000000000 0.4360000000000000 # O23
+ 0.8154000000000001 0.3799999999999999 0.4330000000000001 # O24
+ 0.6019999999999998 0.0150000000000003 0.8409999999999992 # H1
+ 0.1610000000000000 0.1450000000000001 0.9389999999999994 # H2
+ 0.8630000000000001 0.3190000000000002 0.7469999999999993 # H3
+ 0.9850000000000002 0.6019999999999998 0.3409999999999997 # H4
+ 0.8549999999999998 0.1610000000000000 0.4389999999999998 # H5
+ 0.6810000000000003 0.8630000000000001 0.2469999999999999 # H6
+ 0.3980000000000001 0.9850000000000002 0.8409999999999992 # H7
+ 0.8389999999999999 0.8549999999999998 0.9389999999999994 # H8
+ 0.1369999999999999 0.6809999999999999 0.7469999999999993 # H9
+ 0.0149999999999998 0.3980000000000001 0.3409999999999997 # H10
+ 0.1450000000000001 0.8389999999999999 0.4389999999999998 # H11
+ 0.3190000000000002 0.1369999999999999 0.2469999999999999 # H12
+ 0.8979999999999999 0.5150000000000000 0.8410000000000002 # H13
+ 0.3390000000000002 0.6450000000000004 0.9389999999999994 # H14
+ 0.6370000000000000 0.8190000000000000 0.7469999999999993 # H15
+ 0.1020000000000001 0.4849999999999999 0.8409999999999992 # H16
+ 0.6610000000000003 0.3550000000000001 0.9389999999999994 # H17
+ 0.3629999999999999 0.1810000000000001 0.7469999999999993 # H18
+ 0.4849999999999999 0.8979999999999999 0.3409999999999997 # H19
+ 0.3550000000000001 0.3390000000000002 0.4389999999999998 # H20
+ 0.1810000000000001 0.6370000000000000 0.2469999999999999 # H21
+ 0.5150000000000000 0.1020000000000001 0.3409999999999997 # H22
+ 0.6449999999999998 0.6610000000000003 0.4389999999999998 # H23
+ 0.8190000000000000 0.3629999999999999 0.2469999999999999 # H24
diff --git a/test/data/tetragonal/POSCAR-107 b/test/data/tetragonal/POSCAR-107
new file mode 100644
index 0000000..a117132
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-107
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 7.7619963476547715 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.7619963476547715 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.7459944730163599
+ 4 10 26
+Direct
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # Cs1
+ 0.5000000000000000 0.0000000000000000 0.7499999999999996 # Cs2
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # Cs3
+ 0.0000000000000000 0.5000000000000000 0.7499999999999996 # Cs4
+ 0.2239000000000003 0.2239000000000003 0.0029000000000000 # V1
+ 0.0000000000000000 0.0000000000000000 0.6493000000000000 # V2
+ 0.7239000000000003 0.7239000000000003 0.5029000000000001 # V3
+ 0.5000000000000000 0.5000000000000000 0.1492999999999999 # V4
+ 0.7761000000000003 0.2239000000000003 0.0029000000000000 # V5
+ 0.2761000000000003 0.7239000000000003 0.5029000000000001 # V6
+ 0.7761000000000003 0.7761000000000003 0.0029000000000000 # V7
+ 0.2761000000000003 0.2761000000000003 0.5029000000000001 # V8
+ 0.2239000000000003 0.7761000000000003 0.0029000000000000 # V9
+ 0.7239000000000003 0.2761000000000003 0.5029000000000001 # V10
+ 0.3163999999999997 0.3163999999999997 0.1163000000000002 # O1
+ 0.3058000000000002 0.3058000000000002 0.8901999999999997 # O2
+ 0.2713999999999999 0.0000000000000000 0.9899999999999997 # O3
+ 0.0000000000000000 0.0000000000000000 0.7844000000000000 # O4
+ 0.8164000000000006 0.8164000000000006 0.6162999999999997 # O5
+ 0.8058000000000001 0.8058000000000001 0.3902000000000003 # O6
+ 0.7714000000000000 0.5000000000000000 0.4900000000000001 # O7
+ 0.5000000000000000 0.5000000000000000 0.2843999999999999 # O8
+ 0.6836000000000003 0.3163999999999997 0.1163000000000002 # O9
+ 0.6942000000000006 0.3058000000000002 0.8901999999999997 # O10
+ 0.0000000000000000 0.2713999999999999 0.9899999999999997 # O11
+ 0.1836000000000003 0.8164000000000006 0.6162999999999997 # O12
+ 0.1941999999999998 0.8058000000000001 0.3902000000000003 # O13
+ 0.5000000000000000 0.7714000000000000 0.4900000000000001 # O14
+ 0.6836000000000003 0.6836000000000003 0.1163000000000002 # O15
+ 0.6942000000000006 0.6942000000000006 0.8901999999999997 # O16
+ 0.7286000000000001 0.0000000000000000 0.9899999999999997 # O17
+ 0.1836000000000003 0.1836000000000003 0.6162999999999997 # O18
+ 0.1941999999999998 0.1941999999999998 0.3902000000000003 # O19
+ 0.2286000000000001 0.5000000000000000 0.4900000000000001 # O20
+ 0.3164000000000005 0.6836000000000003 0.1163000000000002 # O21
+ 0.3058000000000002 0.6942000000000006 0.8901999999999997 # O22
+ 0.0000000000000000 0.7286000000000001 0.9899999999999997 # O23
+ 0.8164000000000006 0.1836000000000003 0.6162999999999997 # O24
+ 0.8058000000000001 0.1941999999999998 0.3902000000000003 # O25
+ 0.5000000000000000 0.2286000000000001 0.4900000000000001 # O26
diff --git a/test/data/tetragonal/POSCAR-107-2 b/test/data/tetragonal/POSCAR-107-2
new file mode 100644
index 0000000..5a2a7e6
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-107-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 4.1199980613679008 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.1199980613679008 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.4749950710749467
+ 2 6 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Pd1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Pd2
+ 0.0000000000000000 0.5000000000000000 0.2519999999999998 # Si1
+ 0.0000000000000000 0.0000000000000000 0.3910000000000001 # Si2
+ 0.5000000000000000 0.0000000000000000 0.7519999999999999 # Si3
+ 0.5000000000000000 0.0000000000000000 0.2519999999999998 # Si4
+ 0.0000000000000000 0.5000000000000000 0.7519999999999999 # Si5
+ 0.5000000000000000 0.5000000000000000 0.8909999999999999 # Si6
+ 0.0000000000000000 0.0000000000000000 0.6260000000000000 # Li1
+ 0.5000000000000000 0.5000000000000000 0.1259999999999999 # Li2
diff --git a/test/data/tetragonal/POSCAR-107-3 b/test/data/tetragonal/POSCAR-107-3
new file mode 100644
index 0000000..7d6188d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-107-3
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 3.5518983286826846 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.5518983286826846 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 25.6453879327680632
+ 6 8 8 6
+Direct
+ 0.0000000000000000 -0.0000000000000002 0.1040000000000000 # Y1
+ 0.0000000000000000 -0.0000000000000006 0.4031999999999999 # Y2
+ 0.0000000000000000 -0.0000000000000012 0.8039999999999999 # Y3
+ 0.5000000000000000 0.4999999999999991 0.6040000000000000 # Y4
+ 0.5000000000000000 0.4999999999999987 0.9032000000000000 # Y5
+ 0.5000000000000000 0.4999999999999996 0.3040000000000001 # Y6
+ 0.0000000000000000 0.5000000000000000 0.0040000000000000 # Ni1
+ 0.0000000000000000 0.4999999999999997 0.2080000000000000 # Ni2
+ 0.5000000000000000 -0.0000000000000008 0.5040000000000000 # Ni3
+ 0.5000000000000000 -0.0000000000000011 0.7079999999999999 # Ni4
+ 0.5000000000000000 0.0000000000000000 0.0040000000000000 # Ni5
+ 0.5000000000000000 -0.0000000000000003 0.2080000000000000 # Ni6
+ 0.0000000000000000 0.4999999999999992 0.5040000000000000 # Ni7
+ 0.0000000000000000 0.4999999999999989 0.7079999999999999 # Ni8
+ 0.0000000000000000 -0.0000000000000004 0.2550000000000000 # B1
+ 0.0000000000000000 -0.0000000000000008 0.5469999999999999 # B2
+ 0.0000000000000000 -0.0000000000000010 0.6610000000000000 # B3
+ 0.0000000000000000 0.0000000000000001 0.9530000000000000 # B4
+ 0.5000000000000000 0.4999999999999989 0.7550000000000000 # B5
+ 0.5000000000000000 0.4999999999999999 0.0470000000000002 # B6
+ 0.5000000000000000 0.4999999999999998 0.1610000000000000 # B7
+ 0.5000000000000000 0.4999999999999993 0.4529999999999998 # B8
+ 0.0000000000000000 -0.0000000000000005 0.3049999999999999 # C1
+ 0.0000000000000000 -0.0000000000000009 0.6040000000000000 # C2
+ 0.0000000000000000 -0.0000000000000013 0.9019999999999999 # C3
+ 0.5000000000000000 0.4999999999999988 0.8049999999999997 # C4
+ 0.5000000000000000 0.4999999999999998 0.1040000000000000 # C5
+ 0.5000000000000000 0.4999999999999994 0.4020000000000002 # C6
diff --git a/test/data/tetragonal/POSCAR-108 b/test/data/tetragonal/POSCAR-108
new file mode 100644
index 0000000..5d825f8
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-108
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 6.1399971108735256 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.1399971108735256 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.5719950254323969
+ 4 16 4 4
+Direct
+ 0.4999999999999996 0.0000000000000000 0.5000000000000000 # Cl1
+ 1.0000000000000000 0.5000000000000004 1.0000000000000000 # Cl2
+ 0.0000000000000000 0.4999999999999996 0.5000000000000000 # Cl3
+ 0.5000000000000004 1.0000000000000000 1.0000000000000000 # Cl4
+ 0.6543999999999998 0.1544000000000003 0.3760999999999998 # F1
+ 0.6405999999999998 0.1406000000000002 0.6154999999999998 # F2
+ 1.1543999999999994 0.6543999999999998 0.8760999999999999 # F3
+ 1.1406000000000001 0.6405999999999998 1.1154999999999999 # F4
+ -0.1544000000000003 0.6543999999999998 0.3760999999999998 # F5
+ -0.1406000000000002 0.6405999999999998 0.6154999999999998 # F6
+ 0.3456000000000002 1.1543999999999994 0.8760999999999999 # F7
+ 0.3594000000000001 1.1406000000000001 1.1154999999999999 # F8
+ 0.3456000000000002 -0.1544000000000003 0.3760999999999998 # F9
+ 0.3594000000000001 -0.1406000000000002 0.6154999999999998 # F10
+ 0.8455999999999997 0.3456000000000002 0.8760999999999999 # F11
+ 0.8593999999999997 0.3594000000000001 1.1154999999999999 # F12
+ 0.1544000000000003 0.3456000000000002 0.3760999999999998 # F13
+ 0.1406000000000002 0.3594000000000001 0.6154999999999998 # F14
+ 0.6543999999999998 0.8455999999999997 0.8760999999999999 # F15
+ 0.6405999999999998 0.8593999999999997 1.1154999999999999 # F16
+ 0.0000000000000000 0.0000000000000000 0.3288000000000001 # N1
+ 0.4999999999999996 0.5000000000000004 0.8288000000000001 # N2
+ 0.0000000000000000 0.0000000000000000 0.8288000000000001 # N3
+ 0.4999999999999996 0.4999999999999996 0.3288000000000001 # N4
+ 0.0000000000000000 0.0000000000000000 0.2284999999999999 # O1
+ 0.4999999999999996 0.5000000000000004 0.7284999999999999 # O2
+ 0.0000000000000000 0.0000000000000000 0.7284999999999999 # O3
+ 0.4999999999999996 0.4999999999999996 0.2284999999999999 # O4
diff --git a/test/data/tetragonal/POSCAR-108-2 b/test/data/tetragonal/POSCAR-108-2
new file mode 100644
index 0000000..f560cae
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-108-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 8.0549962097860348 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.0549962097860348 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.6879926181406955
+ 20 12
+Direct
+ 0.1760000000000001 0.6759999999999998 0.1430000000000000 # Sr1
+ 0.1760000000000001 0.6760000000000004 0.8569999999999999 # Sr2
+ 0.0000000000000000 0.0000000000000000 0.0069999999999999 # Sr3
+ 0.6759999999999998 0.1760000000000001 0.6430000000000001 # Sr4
+ 0.6759999999999998 0.1760000000000001 0.3569999999999998 # Sr5
+ 0.5000000000000004 0.5000000000000004 0.5070000000000001 # Sr6
+ 0.3239999999999996 0.1760000000000001 0.1430000000000000 # Sr7
+ 0.3240000000000003 0.1760000000000001 0.8569999999999999 # Sr8
+ 0.8240000000000000 0.6759999999999998 0.6430000000000001 # Sr9
+ 0.8240000000000000 0.6759999999999998 0.3569999999999998 # Sr10
+ 0.8240000000000000 0.3240000000000003 0.1430000000000000 # Sr11
+ 0.8240000000000000 0.3240000000000003 0.8569999999999999 # Sr12
+ 0.3240000000000003 0.8240000000000000 0.6430000000000001 # Sr13
+ 0.3240000000000003 0.8240000000000000 0.3569999999999998 # Sr14
+ 0.6759999999999998 0.8240000000000000 0.1430000000000000 # Sr15
+ 0.6760000000000004 0.8240000000000000 0.8569999999999999 # Sr16
+ 0.1760000000000001 0.3240000000000003 0.6430000000000001 # Sr17
+ 0.1760000000000001 0.3240000000000003 0.3569999999999998 # Sr18
+ 0.0000000000000000 0.0000000000000000 0.5070000000000001 # Sr19
+ 0.4999999999999998 0.4999999999999998 0.0069999999999999 # Sr20
+ 0.3909999999999998 0.8910000000000002 0.0000000000000000 # Si1
+ 0.0000000000000000 0.0000000000000000 0.2500000000000001 # Si2
+ 0.8910000000000002 0.3909999999999998 0.4999999999999998 # Si3
+ 0.5000000000000004 0.5000000000000004 0.7499999999999998 # Si4
+ 0.1089999999999999 0.3909999999999998 0.0000000000000000 # Si5
+ 0.6090000000000002 0.8910000000000002 0.4999999999999998 # Si6
+ 0.6089999999999997 0.1089999999999999 0.0000000000000000 # Si7
+ 0.1089999999999999 0.6090000000000002 0.4999999999999998 # Si8
+ 0.8910000000000002 0.6089999999999997 0.0000000000000000 # Si9
+ 0.3909999999999998 0.1089999999999999 0.4999999999999998 # Si10
+ 0.0000000000000000 0.0000000000000000 0.7499999999999998 # Si11
+ 0.4999999999999998 0.4999999999999998 0.2500000000000001 # Si12
diff --git a/test/data/tetragonal/POSCAR-109 b/test/data/tetragonal/POSCAR-109
new file mode 100644
index 0000000..7397120
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-109
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 3.4516983758309689 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.4516983758309689 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.6799945040721109
+ 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Nb1
+ 0.5000000000000008 0.0000000000000000 0.7500000000000002 # Nb2
+ 0.5000000000000008 0.5000000000000008 0.5000000000000000 # Nb3
+ 0.0000000000000000 0.5000000000000008 0.2500000000000003 # Nb4
+ 0.0000000000000000 0.0000000000000000 0.4160000000000002 # As1
+ 0.5000000000000008 0.0000000000000000 0.1659999999999999 # As2
+ 0.5000000000000008 0.5000000000000008 0.9160000000000000 # As3
+ 0.0000000000000000 0.5000000000000008 0.6659999999999999 # As4
diff --git a/test/data/tetragonal/POSCAR-109-2 b/test/data/tetragonal/POSCAR-109-2
new file mode 100644
index 0000000..275d464
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-109-2
@@ -0,0 +1,95 @@
+$cell vectors
+1.0
+ 11.3799946452346461 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.3799946452346461 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.7499958827595030
+ 8 8 24 48
+Direct
+ 0.0000000000000000 0.2039999999999999 0.0000000000000000 # K1
+ 0.5000000000000003 0.7040000000000001 0.5000000000000000 # K2
+ 0.7960000000000002 0.5000000000000003 0.2499999999999998 # K3
+ 0.2959999999999999 0.0000000000000000 0.7500000000000004 # K4
+ 0.0000000000000000 0.7960000000000002 0.0000000000000000 # K5
+ 0.5000000000000003 0.2959999999999999 0.5000000000000000 # K6
+ 0.2039999999999999 0.5000000000000003 0.2499999999999998 # K7
+ 0.7040000000000001 0.0000000000000000 0.7500000000000004 # K8
+ 0.5000000000000003 0.2660000000000001 -0.0090000000000000 # C1
+ 1.0000000000000000 0.7659999999999998 0.4909999999999999 # C2
+ 0.7339999999999999 1.0000000000000000 0.2409999999999997 # C3
+ 0.2340000000000002 0.5000000000000003 0.7409999999999998 # C4
+ 0.5000000000000003 0.7339999999999999 -0.0090000000000000 # C5
+ 0.0000000000000000 0.2340000000000002 0.4909999999999999 # C6
+ 0.2660000000000001 0.0000000000000000 0.2409999999999997 # C7
+ 0.7659999999999998 0.5000000000000003 0.7409999999999998 # C8
+ 0.5000000000000003 0.1420000000000002 -0.0300000000000002 # N1
+ 0.3900000000000001 0.2799999999999999 0.0539999999999999 # N2
+ 1.0000000000000000 0.6419999999999999 0.4699999999999999 # N3
+ 0.8899999999999999 0.7800000000000001 0.5539999999999999 # N4
+ 0.8579999999999999 1.0000000000000000 0.2200000000000001 # N5
+ 0.7200000000000001 0.8899999999999999 0.3040000000000003 # N6
+ 0.3580000000000001 0.5000000000000003 0.7200000000000002 # N7
+ 0.2199999999999998 0.3900000000000001 0.8040000000000003 # N8
+ 0.5000000000000003 0.8579999999999999 -0.0300000000000002 # N9
+ 0.6100000000000000 0.7200000000000001 0.0539999999999999 # N10
+ 0.0000000000000000 0.3580000000000001 0.4699999999999999 # N11
+ 0.1100000000000002 0.2199999999999998 0.5539999999999999 # N12
+ 0.1420000000000002 0.0000000000000000 0.2200000000000001 # N13
+ 0.2799999999999999 0.1100000000000002 0.3040000000000003 # N14
+ 0.6419999999999999 0.5000000000000003 0.7200000000000002 # N15
+ 0.7800000000000001 0.6100000000000000 0.8040000000000003 # N16
+ 0.6100000000000000 0.2799999999999999 0.0539999999999999 # N17
+ 1.1099999999999997 0.7800000000000001 0.5539999999999999 # N18
+ 0.3900000000000001 0.7200000000000001 0.0539999999999999 # N19
+ -0.1100000000000002 0.2199999999999998 0.5539999999999999 # N20
+ 0.7200000000000001 1.1099999999999997 0.3040000000000003 # N21
+ 0.2199999999999998 0.6100000000000000 0.8040000000000003 # N22
+ 0.2799999999999999 -0.1100000000000002 0.3040000000000003 # N23
+ 0.7800000000000001 0.3900000000000001 0.8040000000000003 # N24
+ 0.5000000000000003 0.1090000000000001 -0.1599999999999998 # O1
+ 0.5000000000000003 0.1059999999999998 0.1029999999999997 # O2
+ 0.2899999999999999 0.2569999999999998 0.0160000000000000 # O3
+ 0.3979999999999999 0.3859999999999997 0.0899999999999999 # O4
+ 1.0000000000000000 0.6089999999999999 0.3400000000000002 # O5
+ 1.0000000000000000 0.6060000000000001 0.6029999999999999 # O6
+ 0.7900000000000001 0.7570000000000001 0.5160000000000001 # O7
+ 0.8980000000000001 0.8860000000000000 0.5899999999999999 # O8
+ 0.8910000000000000 1.0000000000000000 0.0899999999999999 # O9
+ 0.8940000000000000 1.0000000000000000 0.3530000000000001 # O10
+ 0.7429999999999998 0.7900000000000001 0.2659999999999997 # O11
+ 0.6140000000000002 0.8980000000000001 0.3400000000000002 # O12
+ 0.3910000000000001 0.5000000000000003 0.5899999999999999 # O13
+ 0.3940000000000000 0.5000000000000003 0.8530000000000001 # O14
+ 0.2430000000000000 0.2899999999999999 0.7660000000000003 # O15
+ 0.1140000000000000 0.3980000000000004 0.8400000000000003 # O16
+ 0.5000000000000003 0.8910000000000000 -0.1599999999999998 # O17
+ 0.5000000000000003 0.8940000000000000 0.1029999999999997 # O18
+ 0.7100000000000002 0.7429999999999998 0.0160000000000000 # O19
+ 0.6019999999999996 0.6139999999999998 0.0899999999999999 # O20
+ 0.0000000000000000 0.3910000000000001 0.3400000000000002 # O21
+ 0.0000000000000000 0.3940000000000000 0.6029999999999999 # O22
+ 0.2100000000000000 0.2430000000000000 0.5160000000000001 # O23
+ 0.1019999999999999 0.1140000000000000 0.5899999999999999 # O24
+ 0.1090000000000001 0.0000000000000000 0.0899999999999999 # O25
+ 0.1059999999999998 0.0000000000000000 0.3530000000000001 # O26
+ 0.2569999999999998 0.2100000000000000 0.2659999999999997 # O27
+ 0.3859999999999997 0.1019999999999999 0.3400000000000002 # O28
+ 0.6089999999999999 0.5000000000000003 0.5899999999999999 # O29
+ 0.6060000000000001 0.5000000000000003 0.8530000000000001 # O30
+ 0.7570000000000001 0.7100000000000002 0.7660000000000003 # O31
+ 0.8860000000000000 0.6020000000000002 0.8400000000000003 # O32
+ 0.7100000000000002 0.2569999999999998 0.0160000000000000 # O33
+ 0.6019999999999996 0.3859999999999997 0.0899999999999999 # O34
+ 1.2100000000000000 0.7570000000000001 0.5160000000000001 # O35
+ 1.1019999999999999 0.8860000000000000 0.5899999999999999 # O36
+ 0.2900000000000003 0.7429999999999998 0.0160000000000000 # O37
+ 0.3979999999999999 0.6139999999999998 0.0899999999999999 # O38
+ -0.2100000000000000 0.2430000000000000 0.5160000000000001 # O39
+ -0.1019999999999999 0.1140000000000000 0.5899999999999999 # O40
+ 0.7429999999999998 1.2100000000000000 0.2659999999999997 # O41
+ 0.6140000000000002 1.1019999999999999 0.3400000000000002 # O42
+ 0.2430000000000000 0.7100000000000002 0.7660000000000003 # O43
+ 0.1140000000000000 0.6020000000000002 0.8400000000000003 # O44
+ 0.2569999999999998 -0.2100000000000000 0.2659999999999997 # O45
+ 0.3859999999999997 -0.1019999999999999 0.3400000000000002 # O46
+ 0.7570000000000001 0.2900000000000003 0.7660000000000003 # O47
+ 0.8860000000000000 0.3980000000000004 0.8400000000000003 # O48
diff --git a/test/data/tetragonal/POSCAR-110 b/test/data/tetragonal/POSCAR-110
new file mode 100644
index 0000000..38e6c96
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-110
@@ -0,0 +1,183 @@
+$cell vectors
+1.0
+ 13.6199935912210748 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 13.6199935912210748 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0999957180698825
+ 32 16 128
+Direct
+ 0.1638000000000000 0.9510000000000002 0.0089999999999998 # B1
+ 0.1386000000000001 0.1934999999999999 0.1203999999999999 # B2
+ 0.6638000000000003 0.4510000000000003 0.5090000000000002 # B3
+ 0.6386000000000001 0.6935000000000001 0.6203999999999998 # B4
+ 0.0489999999999999 0.6638000000000003 0.2589999999999998 # B5
+ 0.8065000000000002 0.6386000000000001 0.3703999999999999 # B6
+ 0.5490000000000002 0.1638000000000000 0.7589999999999997 # B7
+ 0.3065000000000000 0.1386000000000001 0.8703999999999998 # B8
+ 0.8362000000000004 0.0489999999999999 0.0089999999999998 # B9
+ 0.8613999999999999 0.8065000000000002 0.1203999999999999 # B10
+ 0.3362000000000002 0.5490000000000002 0.5090000000000002 # B11
+ 0.3614000000000001 0.3065000000000000 0.6203999999999998 # B12
+ 0.9510000000000002 0.3362000000000002 0.2589999999999998 # B13
+ 0.1935000000000003 0.3614000000000001 0.3703999999999999 # B14
+ 0.4510000000000003 0.8362000000000004 0.7589999999999997 # B15
+ 0.6935000000000001 0.8613999999999999 0.8703999999999998 # B16
+ 0.8362000000000004 0.9510000000000002 0.5090000000000002 # B17
+ 0.8613999999999999 0.1935000000000003 0.6203999999999998 # B18
+ 0.3362000000000002 0.4510000000000003 0.0089999999999998 # B19
+ 0.3614000000000001 0.6935000000000001 0.1203999999999999 # B20
+ 0.1638000000000000 0.0489999999999999 0.5090000000000002 # B21
+ 0.1386000000000001 0.8065000000000002 0.6203999999999998 # B22
+ 0.6638000000000003 0.5490000000000002 0.0089999999999998 # B23
+ 0.6386000000000001 0.3065000000000000 0.1203999999999999 # B24
+ 0.5490000000000002 0.8362000000000004 0.2589999999999998 # B25
+ 0.3065000000000000 0.8613999999999999 0.3703999999999999 # B26
+ 0.0489999999999999 0.3362000000000002 0.7589999999999997 # B27
+ 0.8065000000000002 0.3614000000000001 0.8703999999999998 # B28
+ 0.4510000000000003 0.1638000000000000 0.2589999999999998 # B29
+ 0.6935000000000001 0.1386000000000001 0.3703999999999999 # B30
+ 0.9510000000000002 0.6638000000000003 0.7589999999999997 # B31
+ 0.1935000000000003 0.6386000000000001 0.8703999999999998 # B32
+ 0.1998000000000001 0.0869000000000002 0.0000000000000000 # Be1
+ 0.6997999999999999 0.5869000000000001 0.5000000000000000 # Be2
+ 0.9131000000000002 0.6997999999999999 0.2500000000000001 # Be3
+ 0.4131000000000000 0.1998000000000001 0.7500000000000000 # Be4
+ 0.8002000000000005 0.9131000000000002 0.0000000000000000 # Be5
+ 0.3002000000000001 0.4131000000000000 0.5000000000000000 # Be6
+ 0.0869000000000002 0.3002000000000001 0.2500000000000001 # Be7
+ 0.5869000000000001 0.8002000000000005 0.7500000000000000 # Be8
+ 0.8002000000000005 0.0869000000000002 0.5000000000000000 # Be9
+ 0.3002000000000001 0.5869000000000001 0.0000000000000000 # Be10
+ 0.1998000000000001 0.9131000000000002 0.5000000000000000 # Be11
+ 0.6997999999999999 0.4131000000000000 0.0000000000000000 # Be12
+ 0.4131000000000000 0.8002000000000005 0.2500000000000001 # Be13
+ 0.9131000000000002 0.3002000000000001 0.7500000000000000 # Be14
+ 0.5869000000000001 0.1998000000000001 0.2500000000000001 # Be15
+ 0.0869000000000002 0.6997999999999999 0.7500000000000000 # Be16
+ 0.0955000000000000 0.9320000000000003 0.0598000000000001 # H1
+ 0.2193000000000003 0.8990000000000004 -0.0410000000000002 # H2
+ 0.2069000000000001 0.9970000000000002 0.0982000000000002 # H3
+ 0.1413000000000001 1.0083000000000004 -0.0840000000000001 # H4
+ 0.1054000000000002 0.1564000000000001 0.0252000000000001 # H5
+ 0.2122000000000002 0.1626000000000002 0.1404000000000002 # H6
+ 0.1450000000000002 0.2713999999999999 0.1014999999999999 # H7
+ 0.0899000000000000 0.1849999999999999 0.2261000000000000 # H8
+ 0.5955000000000001 0.4320000000000001 0.5598000000000001 # H9
+ 0.7193000000000002 0.3990000000000001 0.4589999999999997 # H10
+ 0.7069000000000000 0.4970000000000000 0.5982000000000001 # H11
+ 0.6413000000000003 0.5083000000000001 0.4159999999999999 # H12
+ 0.6054000000000000 0.6564000000000002 0.5252000000000000 # H13
+ 0.7121999999999999 0.6626000000000000 0.6404000000000002 # H14
+ 0.6450000000000001 0.7714000000000001 0.6014999999999998 # H15
+ 0.5899000000000003 0.6850000000000002 0.7261000000000000 # H16
+ 0.0680000000000002 0.5955000000000001 0.3098000000000001 # H17
+ 0.1010000000000001 0.7193000000000002 0.2089999999999997 # H18
+ 0.0030000000000002 0.7069000000000000 0.3482000000000002 # H19
+ -0.0082999999999999 0.6413000000000003 0.1660000000000000 # H20
+ 0.8436000000000003 0.6054000000000000 0.2752000000000001 # H21
+ 0.8374000000000003 0.7121999999999999 0.3904000000000003 # H22
+ 0.7286000000000002 0.6450000000000001 0.3514999999999999 # H23
+ 0.8150000000000001 0.5899000000000003 0.4761000000000000 # H24
+ 0.5680000000000004 0.0955000000000000 0.8098000000000000 # H25
+ 0.6010000000000003 0.2193000000000003 0.7090000000000003 # H26
+ 0.5030000000000000 0.2069000000000001 0.8482000000000002 # H27
+ 0.4917000000000000 0.1413000000000001 0.6659999999999999 # H28
+ 0.3436000000000001 0.1054000000000002 0.7752000000000001 # H29
+ 0.3374000000000000 0.2122000000000002 0.8904000000000002 # H30
+ 0.2286000000000000 0.1450000000000002 0.8514999999999998 # H31
+ 0.3150000000000002 0.0899000000000000 0.9761000000000000 # H32
+ 0.9045000000000001 0.0680000000000002 0.0598000000000001 # H33
+ 0.7807000000000001 0.1010000000000001 -0.0410000000000002 # H34
+ 0.7931000000000002 0.0030000000000002 0.0982000000000002 # H35
+ 0.8587000000000002 -0.0082999999999999 -0.0840000000000001 # H36
+ 0.8946000000000003 0.8436000000000003 0.0252000000000001 # H37
+ 0.7878000000000002 0.8374000000000003 0.1404000000000002 # H38
+ 0.8550000000000001 0.7286000000000002 0.1014999999999999 # H39
+ 0.9101000000000002 0.8150000000000001 0.2261000000000000 # H40
+ 0.4045000000000002 0.5680000000000004 0.5598000000000001 # H41
+ 0.2806999999999999 0.6010000000000003 0.4589999999999997 # H42
+ 0.2931000000000000 0.5030000000000000 0.5982000000000001 # H43
+ 0.3587000000000001 0.4917000000000000 0.4159999999999999 # H44
+ 0.3946000000000001 0.3436000000000001 0.5252000000000000 # H45
+ 0.2878000000000000 0.3374000000000000 0.6404000000000002 # H46
+ 0.3550000000000000 0.2286000000000000 0.6014999999999998 # H47
+ 0.4101000000000002 0.3150000000000002 0.7261000000000000 # H48
+ 0.9320000000000003 0.4045000000000002 0.3098000000000001 # H49
+ 0.8990000000000004 0.2806999999999999 0.2089999999999997 # H50
+ 0.9970000000000002 0.2931000000000000 0.3482000000000002 # H51
+ 1.0083000000000004 0.3587000000000001 0.1660000000000000 # H52
+ 0.1564000000000001 0.3946000000000001 0.2752000000000001 # H53
+ 0.1626000000000002 0.2878000000000000 0.3904000000000003 # H54
+ 0.2714000000000003 0.3550000000000000 0.3514999999999999 # H55
+ 0.1849999999999999 0.4101000000000002 0.4761000000000000 # H56
+ 0.4320000000000001 0.9045000000000001 0.8098000000000000 # H57
+ 0.3990000000000001 0.7807000000000001 0.7090000000000003 # H58
+ 0.4970000000000000 0.7931000000000002 0.8482000000000002 # H59
+ 0.5083000000000001 0.8587000000000002 0.6659999999999999 # H60
+ 0.6564000000000002 0.8946000000000003 0.7752000000000001 # H61
+ 0.6626000000000000 0.7878000000000002 0.8904000000000002 # H62
+ 0.7714000000000001 0.8550000000000001 0.8514999999999998 # H63
+ 0.6850000000000002 0.9101000000000002 0.9761000000000000 # H64
+ 0.9045000000000001 0.9320000000000003 0.5598000000000001 # H65
+ 0.7807000000000001 0.8990000000000004 0.4589999999999997 # H66
+ 0.7931000000000002 0.9970000000000002 0.5982000000000001 # H67
+ 0.8587000000000002 1.0083000000000004 0.4159999999999999 # H68
+ 0.8946000000000003 0.1564000000000001 0.5252000000000000 # H69
+ 0.7878000000000002 0.1626000000000002 0.6404000000000002 # H70
+ 0.8550000000000001 0.2714000000000003 0.6014999999999998 # H71
+ 0.9101000000000002 0.1849999999999999 0.7261000000000000 # H72
+ 0.4045000000000002 0.4320000000000001 0.0598000000000001 # H73
+ 0.2806999999999999 0.3990000000000001 -0.0410000000000002 # H74
+ 0.2931000000000000 0.4970000000000000 0.0982000000000002 # H75
+ 0.3587000000000001 0.5083000000000001 -0.0840000000000001 # H76
+ 0.3946000000000001 0.6564000000000002 0.0252000000000001 # H77
+ 0.2878000000000000 0.6626000000000000 0.1404000000000002 # H78
+ 0.3550000000000000 0.7714000000000001 0.1014999999999999 # H79
+ 0.4101000000000002 0.6850000000000002 0.2261000000000000 # H80
+ 0.0955000000000000 0.0680000000000002 0.5598000000000001 # H81
+ 0.2192999999999999 0.1010000000000001 0.4589999999999997 # H82
+ 0.2069000000000001 0.0030000000000002 0.5982000000000001 # H83
+ 0.1413000000000001 -0.0082999999999999 0.4159999999999999 # H84
+ 0.1054000000000002 0.8436000000000003 0.5252000000000000 # H85
+ 0.2122000000000002 0.8374000000000003 0.6404000000000002 # H86
+ 0.1450000000000002 0.7286000000000002 0.6014999999999998 # H87
+ 0.0899000000000000 0.8150000000000001 0.7261000000000000 # H88
+ 0.5955000000000001 0.5680000000000004 0.0598000000000001 # H89
+ 0.7193000000000002 0.6010000000000003 -0.0410000000000002 # H90
+ 0.7069000000000000 0.5030000000000000 0.0982000000000002 # H91
+ 0.6413000000000003 0.4917000000000000 -0.0840000000000001 # H92
+ 0.6054000000000000 0.3436000000000001 0.0252000000000001 # H93
+ 0.7121999999999999 0.3374000000000000 0.1404000000000002 # H94
+ 0.6450000000000001 0.2286000000000000 0.1014999999999999 # H95
+ 0.5899000000000003 0.3150000000000002 0.2261000000000000 # H96
+ 0.5680000000000004 0.9045000000000001 0.3098000000000001 # H97
+ 0.6010000000000003 0.7807000000000001 0.2089999999999997 # H98
+ 0.5030000000000000 0.7931000000000002 0.3482000000000002 # H99
+ 0.4917000000000003 0.8587000000000002 0.1660000000000000 # H100
+ 0.3436000000000001 0.8946000000000003 0.2752000000000001 # H101
+ 0.3374000000000000 0.7878000000000002 0.3904000000000003 # H102
+ 0.2286000000000000 0.8550000000000001 0.3514999999999999 # H103
+ 0.3150000000000002 0.9101000000000002 0.4761000000000000 # H104
+ 0.0680000000000002 0.4045000000000002 0.8098000000000000 # H105
+ 0.1010000000000001 0.2806999999999999 0.7090000000000003 # H106
+ 0.0030000000000002 0.2931000000000000 0.8482000000000002 # H107
+ -0.0082999999999999 0.3587000000000001 0.6659999999999999 # H108
+ 0.8436000000000003 0.3946000000000001 0.7752000000000001 # H109
+ 0.8374000000000003 0.2878000000000000 0.8904000000000002 # H110
+ 0.7286000000000002 0.3550000000000000 0.8514999999999998 # H111
+ 0.8150000000000001 0.4101000000000002 0.9761000000000000 # H112
+ 0.4320000000000001 0.0955000000000000 0.3098000000000001 # H113
+ 0.3990000000000001 0.2192999999999999 0.2089999999999997 # H114
+ 0.4970000000000000 0.2069000000000001 0.3482000000000002 # H115
+ 0.5083000000000001 0.1413000000000001 0.1660000000000000 # H116
+ 0.6564000000000002 0.1054000000000002 0.2752000000000001 # H117
+ 0.6626000000000000 0.2122000000000002 0.3904000000000003 # H118
+ 0.7714000000000001 0.1450000000000002 0.3514999999999999 # H119
+ 0.6850000000000002 0.0899000000000000 0.4761000000000000 # H120
+ 0.9320000000000003 0.5955000000000001 0.8098000000000000 # H121
+ 0.8990000000000004 0.7193000000000002 0.7090000000000003 # H122
+ 0.9970000000000002 0.7069000000000000 0.8482000000000002 # H123
+ 1.0083000000000004 0.6413000000000003 0.6659999999999999 # H124
+ 0.1564000000000001 0.6054000000000000 0.7752000000000001 # H125
+ 0.1626000000000002 0.7121999999999999 0.8904000000000002 # H126
+ 0.2714000000000003 0.6450000000000001 0.8514999999999998 # H127
+ 0.1849999999999999 0.5899000000000003 0.9761000000000000 # H128
diff --git a/test/data/tetragonal/POSCAR-110-2 b/test/data/tetragonal/POSCAR-110-2
new file mode 100644
index 0000000..8910f4e
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-110-2
@@ -0,0 +1,167 @@
+$cell vectors
+1.0
+ 11.7822944559356912 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.7822944559356912 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 23.6384888770983430
+ 96 64
+Direct
+ 0.3530000000000001 0.1297999999999999 0.0615000000000001 # Zn1
+ 0.1072000000000002 0.3590000000000000 0.0468000000000000 # Zn2
+ 0.3871000000000001 0.3841000000000001 0.0639000000000000 # Zn3
+ 0.0980999999999999 0.1025999999999999 0.1757000000000000 # Zn4
+ 0.3848999999999997 0.1440000000000002 0.1866000000000000 # Zn5
+ 0.1363000000000001 0.3760999999999999 0.1892000000000000 # Zn6
+ 0.8529999999999998 0.6298000000000001 0.5615000000000002 # Zn7
+ 0.6072000000000000 0.8590000000000003 0.5468000000000001 # Zn8
+ 0.8871000000000000 0.8840999999999999 0.5639000000000000 # Zn9
+ 0.5981000000000001 0.6026000000000001 0.6757000000000001 # Zn10
+ 0.8849000000000000 0.6439999999999999 0.6866000000000001 # Zn11
+ 0.6363000000000003 0.8761000000000002 0.6892000000000001 # Zn12
+ 0.8702000000000001 0.8529999999999998 0.3115000000000001 # Zn13
+ 0.6409999999999999 0.6072000000000000 0.2968000000000000 # Zn14
+ 0.6158999999999999 0.8871000000000000 0.3139000000000000 # Zn15
+ 0.8973999999999994 0.5981000000000001 0.4257000000000001 # Zn16
+ 0.8559999999999998 0.8849000000000000 0.4366000000000000 # Zn17
+ 0.6239000000000000 0.6363000000000003 0.4392000000000001 # Zn18
+ 0.3701999999999999 0.3530000000000001 0.8114999999999999 # Zn19
+ 0.1410000000000002 0.1072000000000002 0.7968000000000002 # Zn20
+ 0.1159000000000002 0.3871000000000001 0.8139000000000003 # Zn21
+ 0.3973999999999998 0.0981000000000004 0.9257000000000002 # Zn22
+ 0.3560000000000001 0.3849000000000002 0.9366000000000002 # Zn23
+ 0.1239000000000002 0.1363000000000001 0.9392000000000001 # Zn24
+ 0.6469999999999998 0.8702000000000001 0.0615000000000001 # Zn25
+ 0.8927999999999999 0.6409999999999999 0.0468000000000000 # Zn26
+ 0.6128999999999999 0.6158999999999999 0.0639000000000000 # Zn27
+ 0.9019000000000000 0.8974000000000001 0.1757000000000000 # Zn28
+ 0.6150999999999998 0.8559999999999998 0.1866000000000000 # Zn29
+ 0.8637000000000000 0.6239000000000000 0.1892000000000000 # Zn30
+ 0.1470000000000001 0.3702000000000004 0.5615000000000002 # Zn31
+ 0.3928000000000001 0.1410000000000002 0.5468000000000001 # Zn32
+ 0.1129000000000002 0.1159000000000002 0.5639000000000000 # Zn33
+ 0.4018999999999999 0.3973999999999998 0.6757000000000001 # Zn34
+ 0.1151000000000000 0.3560000000000001 0.6866000000000001 # Zn35
+ 0.3637000000000002 0.1239000000000002 0.6892000000000001 # Zn36
+ 0.1297999999999999 0.1470000000000001 0.3115000000000001 # Zn37
+ 0.3590000000000000 0.3928000000000001 0.2968000000000000 # Zn38
+ 0.3841000000000001 0.1129000000000002 0.3139000000000000 # Zn39
+ 0.1025999999999999 0.4018999999999999 0.4257000000000001 # Zn40
+ 0.1440000000000002 0.1151000000000000 0.4366000000000000 # Zn41
+ 0.3760999999999999 0.3637000000000002 0.4392000000000001 # Zn42
+ 0.6298000000000001 0.6469999999999998 0.8114999999999999 # Zn43
+ 0.8590000000000003 0.8927999999999999 0.7968000000000002 # Zn44
+ 0.8840999999999999 0.6128999999999999 0.8139000000000003 # Zn45
+ 0.6026000000000001 0.9019000000000000 0.9257000000000002 # Zn46
+ 0.6439999999999999 0.6151000000000002 0.9366000000000002 # Zn47
+ 0.8761000000000002 0.8637000000000000 0.9392000000000001 # Zn48
+ 0.6469999999999998 0.1297999999999999 0.5615000000000002 # Zn49
+ 0.8927999999999999 0.3590000000000000 0.5468000000000001 # Zn50
+ 0.6128999999999999 0.3841000000000001 0.5639000000000000 # Zn51
+ 0.9019000000000000 0.1025999999999999 0.6757000000000001 # Zn52
+ 0.6150999999999998 0.1440000000000002 0.6866000000000001 # Zn53
+ 0.8637000000000000 0.3760999999999999 0.6892000000000001 # Zn54
+ 0.1470000000000001 0.6298000000000001 0.0615000000000001 # Zn55
+ 0.3928000000000001 0.8590000000000000 0.0468000000000000 # Zn56
+ 0.1129000000000002 0.8840999999999999 0.0639000000000000 # Zn57
+ 0.4018999999999999 0.6026000000000001 0.1757000000000000 # Zn58
+ 0.1151000000000000 0.6439999999999999 0.1866000000000000 # Zn59
+ 0.3637000000000002 0.8760999999999997 0.1892000000000000 # Zn60
+ 0.3530000000000001 0.8702000000000001 0.5615000000000002 # Zn61
+ 0.1072000000000002 0.6409999999999999 0.5468000000000001 # Zn62
+ 0.3871000000000001 0.6159000000000003 0.5639000000000000 # Zn63
+ 0.0980999999999999 0.8974000000000001 0.6757000000000001 # Zn64
+ 0.3849000000000002 0.8560000000000003 0.6866000000000001 # Zn65
+ 0.1363000000000001 0.6239000000000000 0.6892000000000001 # Zn66
+ 0.8529999999999998 0.3701999999999999 0.0615000000000001 # Zn67
+ 0.6072000000000000 0.1410000000000002 0.0468000000000000 # Zn68
+ 0.8871000000000000 0.1159000000000002 0.0639000000000000 # Zn69
+ 0.5980999999999996 0.3973999999999998 0.1757000000000000 # Zn70
+ 0.8849000000000000 0.3560000000000001 0.1866000000000000 # Zn71
+ 0.6362999999999998 0.1238999999999998 0.1892000000000000 # Zn72
+ 0.3702000000000004 0.6469999999999998 0.3115000000000001 # Zn73
+ 0.1410000000000002 0.8927999999999999 0.2968000000000000 # Zn74
+ 0.1159000000000002 0.6128999999999999 0.3139000000000000 # Zn75
+ 0.3973999999999998 0.9019000000000000 0.4257000000000001 # Zn76
+ 0.3560000000000001 0.6150999999999998 0.4366000000000000 # Zn77
+ 0.1239000000000002 0.8637000000000000 0.4392000000000001 # Zn78
+ 0.8702000000000001 0.1470000000000001 0.8114999999999999 # Zn79
+ 0.6409999999999999 0.3928000000000001 0.7968000000000002 # Zn80
+ 0.6158999999999999 0.1129000000000002 0.8139000000000003 # Zn81
+ 0.8974000000000001 0.4019000000000003 0.9257000000000002 # Zn82
+ 0.8560000000000003 0.1151000000000000 0.9366000000000002 # Zn83
+ 0.6239000000000000 0.3637000000000002 0.9392000000000001 # Zn84
+ 0.6298000000000001 0.3530000000000001 0.3115000000000001 # Zn85
+ 0.8590000000000000 0.1072000000000002 0.2968000000000000 # Zn86
+ 0.8840999999999999 0.3871000000000001 0.3139000000000000 # Zn87
+ 0.6026000000000001 0.0980999999999999 0.4257000000000001 # Zn88
+ 0.6439999999999999 0.3849000000000002 0.4366000000000000 # Zn89
+ 0.8760999999999997 0.1363000000000001 0.4392000000000001 # Zn90
+ 0.1297999999999999 0.8529999999999998 0.8114999999999999 # Zn91
+ 0.3590000000000000 0.6072000000000000 0.7968000000000002 # Zn92
+ 0.3841000000000001 0.8871000000000000 0.8139000000000003 # Zn93
+ 0.1025999999999999 0.5981000000000001 0.9257000000000002 # Zn94
+ 0.1440000000000002 0.8849000000000000 0.9366000000000002 # Zn95
+ 0.3761000000000003 0.6363000000000003 0.9392000000000001 # Zn96
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # As1
+ 0.0000000000000000 0.0000000000000000 0.2469000000000000 # As2
+ 0.0072000000000000 0.2496000000000000 0.1227000000000001 # As3
+ 0.2565999999999998 0.9964999999999998 0.1249000000000001 # As4
+ 0.2571000000000000 0.2515000000000003 0.9980000000000000 # As5
+ 0.5000000000000002 0.4999999999999998 0.5000000000000000 # As6
+ 0.4999999999999998 0.5000000000000002 0.7469000000000003 # As7
+ 0.5072000000000002 0.7496000000000003 0.6227000000000001 # As8
+ 0.7566000000000001 0.4965000000000000 0.6249000000000001 # As9
+ 0.7570999999999997 0.7515000000000001 0.4980000000000001 # As10
+ 0.0000000000000000 0.4999999999999998 0.2500000000000000 # As11
+ 0.0000000000000000 0.4999999999999998 0.4969000000000001 # As12
+ 0.7504000000000000 0.5072000000000002 0.3727000000000001 # As13
+ 0.0035000000000001 0.7566000000000001 0.3749000000000001 # As14
+ 0.7484999999999996 0.7570999999999997 0.2479999999999999 # As15
+ 0.4999999999999998 0.0000000000000000 0.7500000000000002 # As16
+ 0.5000000000000002 0.0000000000000000 0.9969000000000000 # As17
+ 0.2504000000000002 0.0072000000000004 0.8727000000000000 # As18
+ 0.5034999999999999 0.2566000000000003 0.8749000000000002 # As19
+ 0.2484999999999999 0.2571000000000000 0.7479999999999999 # As20
+ 0.9927999999999996 0.7504000000000000 0.1227000000000001 # As21
+ 0.7434000000000002 0.0035000000000001 0.1249000000000001 # As22
+ 0.7428999999999999 0.7485000000000003 0.9980000000000000 # As23
+ 0.4928000000000002 0.2504000000000002 0.6227000000000001 # As24
+ 0.2433999999999999 0.5034999999999999 0.6249000000000001 # As25
+ 0.2429000000000002 0.2484999999999999 0.4980000000000001 # As26
+ 0.2496000000000000 0.4928000000000002 0.3727000000000001 # As27
+ 0.9964999999999998 0.2433999999999999 0.3749000000000001 # As28
+ 0.2514999999999999 0.2428999999999998 0.2479999999999999 # As29
+ 0.7496000000000003 0.9928000000000001 0.8727000000000000 # As30
+ 0.4965000000000000 0.7434000000000002 0.8749000000000002 # As31
+ 0.7515000000000001 0.7428999999999999 0.7479999999999999 # As32
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # As33
+ 0.0000000000000000 0.0000000000000000 0.7469000000000003 # As34
+ 0.9928000000000001 0.2496000000000000 0.6227000000000001 # As35
+ 0.7434000000000002 0.9965000000000003 0.6249000000000001 # As36
+ 0.7428999999999999 0.2515000000000003 0.4980000000000001 # As37
+ 0.4999999999999998 0.4999999999999998 0.0000000000000000 # As38
+ 0.4999999999999998 0.4999999999999998 0.2469000000000000 # As39
+ 0.4928000000000002 0.7495999999999997 0.1227000000000001 # As40
+ 0.2433999999999999 0.4965000000000000 0.1249000000000001 # As41
+ 0.2429000000000002 0.7515000000000001 0.9980000000000000 # As42
+ 0.0072000000000000 0.7504000000000000 0.6227000000000001 # As43
+ 0.2565999999999998 0.0035000000000001 0.6249000000000001 # As44
+ 0.2571000000000000 0.7485000000000003 0.4980000000000001 # As45
+ 0.5071999999999998 0.2504000000000002 0.1227000000000001 # As46
+ 0.7566000000000001 0.5034999999999999 0.1249000000000001 # As47
+ 0.7571000000000002 0.2485000000000003 0.9980000000000000 # As48
+ 0.4999999999999998 0.0000000000000000 0.2500000000000000 # As49
+ 0.4999999999999998 0.0000000000000000 0.4969000000000001 # As50
+ 0.2504000000000002 0.9928000000000001 0.3727000000000001 # As51
+ 0.5034999999999999 0.7434000000000002 0.3749000000000001 # As52
+ 0.2484999999999999 0.7428999999999999 0.2479999999999999 # As53
+ 0.0000000000000000 0.5000000000000002 0.7500000000000002 # As54
+ 0.0000000000000000 0.5000000000000002 0.9969000000000000 # As55
+ 0.7504000000000000 0.4928000000000002 0.8727000000000000 # As56
+ 0.0035000000000001 0.2434000000000004 0.8749000000000002 # As57
+ 0.7485000000000003 0.2429000000000002 0.7479999999999999 # As58
+ 0.7496000000000003 0.0072000000000000 0.3727000000000001 # As59
+ 0.4965000000000000 0.2565999999999998 0.3749000000000001 # As60
+ 0.7514999999999996 0.2571000000000000 0.2479999999999999 # As61
+ 0.2496000000000000 0.5072000000000002 0.8727000000000000 # As62
+ 0.9965000000000003 0.7566000000000001 0.8749000000000002 # As63
+ 0.2515000000000003 0.7571000000000002 0.7479999999999999 # As64
diff --git a/test/data/tetragonal/POSCAR-111 b/test/data/tetragonal/POSCAR-111
new file mode 100644
index 0000000..9f9227c
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-111
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 5.1599975720044595 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.1599975720044595 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0699952616443671
+ 2 2 16
+Direct
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # K1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # K2
+ 0.0000000000000000 0.0000000000000000 0.2504000000000002 # Sb1
+ 0.0000000000000000 0.0000000000000000 0.7495999999999997 # Sb2
+ 0.1876000000000005 0.1876000000000005 0.1280000000000000 # F1
+ 0.1744999999999996 0.1744999999999996 0.3824999999999998 # F2
+ 0.2529000000000005 -0.2520000000000005 0.2630000000000002 # F3
+ 0.1876000000000005 -0.1875999999999995 0.8719999999999998 # F4
+ 0.1744999999999996 -0.1744999999999996 0.6174999999999996 # F5
+ -0.2520000000000005 -0.2528999999999995 0.7369999999999999 # F6
+ -0.1876000000000005 -0.1875999999999995 0.1280000000000000 # F7
+ -0.1744999999999996 -0.1744999999999996 0.3824999999999998 # F8
+ -0.2529000000000005 0.2520000000000005 0.2630000000000002 # F9
+ -0.1875999999999995 0.1876000000000005 0.8719999999999998 # F10
+ -0.1744999999999996 0.1745000000000006 0.6174999999999996 # F11
+ 0.2520000000000005 0.2529000000000005 0.7369999999999999 # F12
+ 0.2529000000000005 0.2520000000000005 0.7369999999999999 # F13
+ -0.2529000000000005 -0.2519999999999995 0.7369999999999999 # F14
+ 0.2520000000000005 -0.2529000000000005 0.2630000000000002 # F15
+ -0.2520000000000005 0.2529000000000005 0.2630000000000002 # F16
diff --git a/test/data/tetragonal/POSCAR-111-2 b/test/data/tetragonal/POSCAR-111-2
new file mode 100644
index 0000000..97df6b5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-111-2
@@ -0,0 +1,14 @@
+$cell vectors
+1.0
+ 5.8150972637525484 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.8150972637525484 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.8013972701989722
+ 1 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cd1
+ 0.5000000000000000 0.0000000000000000 0.4999999999999995 # In1
+ 0.0000000000000000 0.5000000000000000 0.4999999999999995 # In2
+ 0.2706999999999999 0.2706999999999999 0.2300000000000003 # Se1
+ 0.2706999999999999 0.7293000000000002 0.7699999999999997 # Se2
+ 0.7293000000000002 0.7293000000000002 0.2300000000000003 # Se3
+ 0.7293000000000002 0.2706999999999999 0.7699999999999997 # Se4
diff --git a/test/data/tetragonal/POSCAR-112 b/test/data/tetragonal/POSCAR-112
new file mode 100644
index 0000000..ee02405
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-112
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.4299974449581816 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4299974449581816 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0959952494102776
+ 2 2 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.5000000000000002 # Cu1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu2
+ 0.0000000000000000 0.5000000000000006 0.2499999999999999 # Al1
+ 0.5000000000000006 0.0000000000000000 0.7500000000000002 # Al2
+ 0.2333999999999999 0.2761000000000002 0.3705000000000003 # Cl1
+ 0.2761000000000002 0.7665999999999999 0.6294999999999998 # Cl2
+ 0.7665999999999999 0.7238999999999998 0.3705000000000003 # Cl3
+ 0.7238999999999998 0.2333999999999999 0.6294999999999998 # Cl4
+ 0.2333999999999999 0.7238999999999998 0.1295000000000001 # Cl5
+ 0.7665999999999999 0.2761000000000002 0.1295000000000001 # Cl6
+ 0.7239000000000009 0.7665999999999999 0.8705000000000002 # Cl7
+ 0.2761000000000002 0.2333999999999999 0.8705000000000002 # Cl8
diff --git a/test/data/tetragonal/POSCAR-112-2 b/test/data/tetragonal/POSCAR-112-2
new file mode 100644
index 0000000..f1efbd2
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-112-2
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 5.4149974520163102 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.4149974520163102 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1969952018855583
+ 8 2 2
+Direct
+ 0.7610000000000003 0.7289999999999999 0.6290000000000001 # Cl1
+ 0.7289999999999999 0.2389999999999996 0.3709999999999999 # Cl2
+ 0.2389999999999996 0.2710000000000000 0.6290000000000001 # Cl3
+ 0.2710000000000000 0.7610000000000003 0.3709999999999999 # Cl4
+ 0.7610000000000003 0.2710000000000000 0.8709999999999999 # Cl5
+ 0.2389999999999996 0.7289999999999999 0.8709999999999999 # Cl6
+ 0.2710000000000000 0.2389999999999996 0.1290000000000002 # Cl7
+ 0.7289999999999999 0.7610000000000003 0.1290000000000002 # Cl8
+ 0.0000000000000000 0.5000000000000004 0.7500000000000000 # Ga1
+ 0.5000000000000004 0.0000000000000000 0.2500000000000000 # Ga2
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Cu1
+ 1.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu2
diff --git a/test/data/tetragonal/POSCAR-113 b/test/data/tetragonal/POSCAR-113
new file mode 100644
index 0000000..dc88fd8
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-113
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 5.6619973357924893 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.6619973357924893 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.7159977809250062
+ 2 2 4 8
+Direct
+ 0.0000000000000000 0.4999999999999999 0.3300000000000005 # C1
+ 0.4999999999999999 0.0000000000000000 0.6700000000000006 # C2
+ 0.0000000000000000 0.4999999999999999 0.5979999999999995 # O1
+ 0.4999999999999999 0.0000000000000000 0.4020000000000004 # O2
+ 0.1432999999999998 0.6433000000000009 0.1847000000000005 # N1
+ 0.6433000000000009 -0.1432999999999998 0.8153000000000006 # N2
+ -0.1432999999999998 0.3567000000000002 0.1847000000000005 # N3
+ 0.3567000000000002 0.1432999999999998 0.8153000000000006 # N4
+ 0.2430000000000002 0.7430000000000002 0.2810000000000006 # H1
+ 0.1420000000000002 0.6420000000000002 0.0280000000000000 # H2
+ 0.7430000000000002 -0.2430000000000002 0.7190000000000004 # H3
+ 0.6420000000000002 -0.1420000000000002 0.9719999999999999 # H4
+ -0.2430000000000002 0.2569999999999998 0.2810000000000006 # H5
+ -0.1420000000000002 0.3579999999999999 0.0280000000000000 # H6
+ 0.2569999999999998 0.2430000000000002 0.7190000000000004 # H7
+ 0.3579999999999999 0.1420000000000002 0.9719999999999999 # H8
diff --git a/test/data/tetragonal/POSCAR-113-2 b/test/data/tetragonal/POSCAR-113-2
new file mode 100644
index 0000000..95eb6c5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-113-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 6.4023969874033648 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.4023969874033648 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.2785979867399773
+ 6 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.6470000000000000 0.8530000000000002 0.2190000000000003 # Cu2
+ 0.8530000000000002 0.3530000000000002 0.7809999999999997 # Cu3
+ 0.3530000000000002 0.1469999999999999 0.2190000000000003 # Cu4
+ 0.1469999999999999 0.6470000000000000 0.7809999999999997 # Cu5
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cu6
+ 0.2719999999999997 0.7719999999999997 0.2640000000000002 # Se1
+ 0.7719999999999997 0.7279999999999996 0.7359999999999998 # Se2
+ 0.7279999999999996 0.2280000000000004 0.2640000000000002 # Se3
+ 0.2280000000000004 0.2720000000000005 0.7359999999999998 # Se4
diff --git a/test/data/tetragonal/POSCAR-114 b/test/data/tetragonal/POSCAR-114
new file mode 100644
index 0000000..5dc1ea4
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-114
@@ -0,0 +1,45 @@
+$cell vectors
+1.0
+ 7.4839964784653841 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.4839964784653841 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3489970125302939
+ 2 16 20
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # S1
+ 0.5000000000000000 0.5000000000000000 0.4999999999999998 # S2
+ 0.1361000000000003 0.0884999999999998 0.1325999999999997 # O1
+ 0.0598000000000004 0.3490000000000003 0.5801000000000002 # O2
+ 0.0884999999999998 -0.1361000000000003 -0.1325999999999997 # O3
+ 0.3490000000000003 0.9402000000000003 0.4199000000000003 # O4
+ -0.1361000000000003 -0.0884999999999998 0.1325999999999997 # O5
+ 0.9402000000000003 0.6509999999999998 0.5801000000000002 # O6
+ -0.0884999999999998 0.1361000000000003 -0.1325999999999997 # O7
+ 0.6509999999999998 0.0598000000000004 0.4199000000000003 # O8
+ 0.6361000000000001 0.4115000000000002 0.3674000000000002 # O9
+ 0.5598000000000003 0.1510000000000004 0.9199000000000003 # O10
+ 0.3639000000000004 0.5885000000000005 0.3674000000000002 # O11
+ 0.4402000000000004 0.8490000000000002 0.9199000000000003 # O12
+ 0.4115000000000002 0.3639000000000004 0.6326000000000005 # O13
+ 0.1509999999999998 0.4402000000000004 0.0800999999999995 # O14
+ 0.5885000000000005 0.6361000000000001 0.6326000000000005 # O15
+ 0.8490000000000002 0.5598000000000003 0.0800999999999995 # O16
+ 0.0029999999999997 0.2675000000000002 0.6902000000000001 # H1
+ 0.1945000000000003 0.3547000000000002 0.6001000000000002 # H2
+ 0.0000000000000000 0.5000000000000000 0.5800000000000002 # H3
+ 0.2675000000000002 0.9970000000000002 0.3097999999999998 # H4
+ 0.3547000000000002 0.8054999999999997 0.3999000000000004 # H5
+ 0.5000000000000000 0.0000000000000000 0.4200000000000005 # H6
+ 0.9970000000000002 0.7325000000000005 0.6902000000000001 # H7
+ 0.8054999999999997 0.6452999999999998 0.6001000000000002 # H8
+ 0.7324999999999997 0.0029999999999997 0.3097999999999998 # H9
+ 0.6452999999999998 0.1945000000000003 0.3999000000000004 # H10
+ 0.5030000000000004 0.2324999999999998 0.8098000000000006 # H11
+ 0.6945000000000003 0.1452999999999998 0.8999000000000004 # H12
+ 0.5000000000000000 0.0000000000000000 0.9200000000000005 # H13
+ 0.4970000000000003 0.7675000000000004 0.8098000000000006 # H14
+ 0.3055000000000005 0.8547000000000002 0.8999000000000004 # H15
+ 0.2324999999999998 0.4970000000000003 0.1902000000000001 # H16
+ 0.1452999999999998 0.3054999999999998 0.1001000000000002 # H17
+ 0.0000000000000000 0.5000000000000000 0.0800000000000003 # H18
+ 0.7675000000000004 0.5029999999999998 0.1902000000000001 # H19
+ 0.8547000000000002 0.6945000000000003 0.1001000000000002 # H20
diff --git a/test/data/tetragonal/POSCAR-114-2 b/test/data/tetragonal/POSCAR-114-2
new file mode 100644
index 0000000..0254d10
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-114-2
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 10.8099949134434539 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.8099949134434539 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.8099967956105401
+ 8 32 24
+Direct
+ 0.2640000000000003 0.9860000000000002 0.2300000000000001 # P1
+ 0.9860000000000002 0.7360000000000002 0.7699999999999999 # P2
+ 0.7360000000000002 0.0139999999999998 0.2300000000000001 # P3
+ 0.0140000000000003 0.2640000000000003 0.7699999999999999 # P4
+ 0.7640000000000002 0.5140000000000002 0.2700000000000002 # P5
+ 0.2360000000000002 0.4860000000000002 0.2700000000000002 # P6
+ 0.5140000000000002 0.2360000000000002 0.7299999999999998 # P7
+ 0.4860000000000002 0.7640000000000002 0.7299999999999998 # P8
+ 0.1650000000000001 0.9180000000000004 0.3560000000000001 # O1
+ 0.3739999999999999 0.8959999999999997 0.2069999999999999 # O2
+ 0.2100000000000003 1.0170000000000001 0.0240000000000001 # O3
+ 0.3050000000000000 1.1050000000000002 0.3329999999999998 # O4
+ 0.9180000000000004 0.8350000000000003 0.6439999999999999 # O5
+ 0.8959999999999997 0.6260000000000000 0.7930000000000000 # O6
+ 1.0170000000000001 0.7900000000000003 0.9760000000000000 # O7
+ 1.1050000000000002 0.6950000000000003 0.6670000000000004 # O8
+ 0.8350000000000003 0.0820000000000000 0.3560000000000001 # O9
+ 0.6260000000000000 0.1040000000000001 0.2069999999999999 # O10
+ 0.7900000000000003 -0.0170000000000001 0.0240000000000001 # O11
+ 0.6950000000000000 -0.1050000000000002 0.3329999999999998 # O12
+ 0.0820000000000000 0.1650000000000001 0.6439999999999999 # O13
+ 0.1040000000000001 0.3739999999999999 0.7930000000000000 # O14
+ -0.0170000000000001 0.2100000000000003 0.9760000000000000 # O15
+ -0.1050000000000002 0.3050000000000000 0.6670000000000004 # O16
+ 0.6650000000000001 0.5820000000000001 0.1440000000000003 # O17
+ 0.8740000000000000 0.6040000000000000 0.2929999999999997 # O18
+ 0.7099999999999999 0.4830000000000000 0.4759999999999995 # O19
+ 0.8050000000000000 0.3950000000000003 0.1669999999999998 # O20
+ 0.3349999999999998 0.4179999999999999 0.1440000000000003 # O21
+ 0.1260000000000001 0.3959999999999999 0.2929999999999997 # O22
+ 0.2900000000000002 0.5170000000000001 0.4759999999999995 # O23
+ 0.1949999999999999 0.6050000000000002 0.1669999999999998 # O24
+ 0.5820000000000001 0.3349999999999998 0.8559999999999998 # O25
+ 0.6040000000000000 0.1260000000000001 0.7069999999999995 # O26
+ 0.4830000000000000 0.2900000000000002 0.5239999999999997 # O27
+ 0.3950000000000003 0.1949999999999999 0.8329999999999995 # O28
+ 0.4179999999999999 0.6650000000000001 0.8559999999999998 # O29
+ 0.3959999999999999 0.8740000000000000 0.7069999999999995 # O30
+ 0.5170000000000001 0.7099999999999999 0.5239999999999997 # O31
+ 0.6050000000000002 0.8050000000000000 0.8329999999999995 # O32
+ 0.2600000000000000 0.0359999999999998 0.6889999999999997 # Na1
+ 0.2159999999999998 0.2429999999999999 0.0360000000000001 # Na2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Na3
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # Na4
+ 0.0000000000000000 0.5000000000000000 0.0390000000000003 # Na5
+ 0.0359999999999998 0.7400000000000000 0.3110000000000001 # Na6
+ 0.2429999999999999 0.7840000000000000 0.9640000000000000 # Na7
+ 0.5000000000000000 0.0000000000000000 0.9609999999999997 # Na8
+ 0.7400000000000000 0.9640000000000001 0.6889999999999997 # Na9
+ 0.7840000000000000 0.7570000000000001 0.0360000000000001 # Na10
+ 0.9640000000000001 0.2600000000000000 0.3110000000000001 # Na11
+ 0.7570000000000001 0.2159999999999998 0.9640000000000000 # Na12
+ 0.7599999999999999 0.4640000000000001 0.8109999999999998 # Na13
+ 0.7159999999999999 0.2570000000000001 0.4639999999999996 # Na14
+ 0.5000000000000000 0.5000000000000000 0.4999999999999997 # Na15
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Na16
+ 0.5000000000000000 0.0000000000000000 0.4610000000000001 # Na17
+ 0.2400000000000001 0.5360000000000003 0.8109999999999998 # Na18
+ 0.2840000000000001 0.7430000000000002 0.4639999999999996 # Na19
+ 0.4640000000000001 0.2400000000000001 0.1890000000000003 # Na20
+ 0.2570000000000001 0.2840000000000001 0.5359999999999998 # Na21
+ 0.0000000000000000 0.5000000000000000 0.5389999999999999 # Na22
+ 0.5360000000000003 0.7599999999999999 0.1890000000000003 # Na23
+ 0.7430000000000002 0.7159999999999999 0.5359999999999998 # Na24
diff --git a/test/data/tetragonal/POSCAR-115 b/test/data/tetragonal/POSCAR-115
new file mode 100644
index 0000000..53fe4c5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-115
@@ -0,0 +1,12 @@
+$cell vectors
+1.0
+ 3.3269984345075292 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.3269984345075292 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1509971056975674
+ 3 2
+Direct
+ 0.0000000000000000 0.4999999999999998 0.3691999999999995 # Rh1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Rh2
+ 0.4999999999999998 0.0000000000000000 0.6307999999999997 # Rh3
+ 0.0000000000000000 0.4999999999999998 0.7469999999999997 # P1
+ 0.4999999999999998 0.0000000000000000 0.2530000000000002 # P2
diff --git a/test/data/tetragonal/POSCAR-115-2 b/test/data/tetragonal/POSCAR-115-2
new file mode 100644
index 0000000..c87a54f
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-115-2
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 3.8589981841793080 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.8589981841793080 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.7099944899558590
+ 2 1 3 8
+Direct
+ 0.4999999999999993 0.4999999999999993 0.1900000000000002 # Ba1
+ 0.4999999999999993 0.4999999999999993 0.8100000000000004 # Ba2
+ 0.4999999999999993 0.4999999999999993 0.5000000000000003 # Y1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.0000000000000000 0.0000000000000000 0.3600000000000000 # Cu2
+ 0.0000000000000000 0.0000000000000000 0.6399999999999999 # Cu3
+ 0.4999999999999993 0.0000000000000000 0.0300000000000002 # O1
+ 0.4999999999999993 0.0000000000000000 0.3799999999999998 # O2
+ 0.4999999999999993 0.0000000000000000 0.6100000000000002 # O3
+ 0.0000000000000000 0.0000000000000000 0.1500000000000001 # O4
+ 0.0000000000000000 0.5000000000000007 0.9700000000000002 # O5
+ 0.0000000000000000 0.4999999999999993 0.6200000000000001 # O6
+ 0.0000000000000000 0.4999999999999993 0.3900000000000003 # O7
+ 0.0000000000000000 0.0000000000000000 0.8500000000000001 # O8
diff --git a/test/data/tetragonal/POSCAR-115-3 b/test/data/tetragonal/POSCAR-115-3
new file mode 100644
index 0000000..c8c6952
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-115-3
@@ -0,0 +1,20 @@
+POSCAR generated by cell class
+ 1.00000000000000
+ 3.2989861563198493 0.0000000000000001 0.0000000000000000
+ 0.0000000000000001 3.2989861563198493 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.7886334409887343
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.0775811333791551
+ 0.7500000000000000 0.7500000000000000 0.0775811333791551
+ 0.2500000000000000 0.7500000000000000 0.4224188666208449
+ 0.7500000000000000 0.2500000000000000 0.4224188666208449
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/tetragonal/POSCAR-115-4 b/test/data/tetragonal/POSCAR-115-4
new file mode 100644
index 0000000..4854126
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-115-4
@@ -0,0 +1,22 @@
+$cell vectors
+1.0
+ 5.0189976383508528 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.0189976383508528 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.4279960342739564
+ 1 2 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ca1
+ 0.0000000000000000 0.5000000000000000 0.2779999999999999 # Au1
+ 0.5000000000000000 0.0000000000000000 0.7220000000000000 # Au2
+ 0.2620000000000003 0.7619999999999993 0.2779999999999999 # F1
+ 0.2620000000000003 0.2379999999999996 0.2779999999999999 # F2
+ 0.0000000000000000 0.5000000000000000 0.4989999999999999 # F3
+ 0.0000000000000000 0.5000000000000000 0.0569999999999999 # F4
+ 0.7619999999999993 -0.2619999999999993 0.7220000000000000 # F5
+ 0.2379999999999996 -0.2619999999999993 0.7220000000000000 # F6
+ 0.5000000000000000 0.0000000000000000 0.5010000000000001 # F7
+ 0.5000000000000000 0.0000000000000000 0.9429999999999998 # F8
+ -0.2620000000000003 0.2379999999999996 0.2779999999999999 # F9
+ -0.2619999999999993 0.7619999999999993 0.2779999999999999 # F10
+ 0.2379999999999996 0.2620000000000003 0.7220000000000000 # F11
+ 0.7619999999999993 0.2620000000000003 0.7220000000000000 # F12
diff --git a/test/data/tetragonal/POSCAR-115-5 b/test/data/tetragonal/POSCAR-115-5
new file mode 100644
index 0000000..3d8ea72
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-115-5
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 5.2799975155394518 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.2799975155394518 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2049975508300834
+ 2 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cu2
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000 # Fe1
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000 # Fe2
+ 0.2500000000000000 0.2500000000000000 0.1900000000000004 # S1
+ 0.2500000000000000 0.7500000000000000 0.8099999999999998 # S2
+ 0.7500000000000000 0.7500000000000000 0.1900000000000004 # S3
+ 0.7500000000000000 0.2500000000000000 0.8099999999999998 # S4
diff --git a/test/data/tetragonal/POSCAR-116 b/test/data/tetragonal/POSCAR-116
new file mode 100644
index 0000000..07f85ef
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-116
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 5.5249974002567139 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.5249974002567139 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.4629917829290484
+ 16 28
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000002 # Mn1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mn2
+ 0.5000000000000004 0.5000000000000004 0.1250000000000001 # Mn3
+ 0.0000000000000000 0.5000000000000004 0.0625000000000001 # Mn4
+ 0.0000000000000000 0.5000000000000004 0.3124999999999999 # Mn5
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # Mn6
+ 0.5000000000000004 0.5000000000000004 0.8750000000000002 # Mn7
+ 0.5000000000000004 0.0000000000000000 0.9375000000000001 # Mn8
+ 0.5000000000000004 0.0000000000000000 0.6875000000000003 # Mn9
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Mn10
+ 0.5000000000000004 0.5000000000000004 0.3750000000000001 # Mn11
+ 0.5000000000000004 0.0000000000000000 0.4375000000000001 # Mn12
+ 0.5000000000000004 0.0000000000000000 0.1875000000000002 # Mn13
+ 0.5000000000000004 0.5000000000000004 0.6250000000000002 # Mn14
+ 0.0000000000000000 0.5000000000000004 0.5625000000000002 # Mn15
+ 0.0000000000000000 0.5000000000000004 0.8125000000000001 # Mn16
+ 0.3435999999999998 0.7721000000000000 0.0409000000000001 # Si1
+ 0.1933000000000001 0.1506999999999999 0.1129000000000001 # Si2
+ 0.1627000000000006 0.6791000000000005 0.1814999999999999 # Si3
+ 0.3330000000000004 0.3330000000000004 0.2500000000000002 # Si4
+ 0.7721000000000000 0.6564000000000002 0.9591000000000006 # Si5
+ 0.1506999999999999 0.8067000000000007 0.8871000000000006 # Si6
+ 0.6791000000000005 0.8373000000000005 0.8185000000000002 # Si7
+ 0.3330000000000004 0.6670000000000007 0.7500000000000001 # Si8
+ 0.6564000000000002 0.2279000000000001 0.0409000000000001 # Si9
+ 0.8067000000000000 0.8493000000000003 0.1129000000000001 # Si10
+ 0.8373000000000005 0.3209000000000005 0.1814999999999999 # Si11
+ 0.6670000000000007 0.6670000000000007 0.2500000000000002 # Si12
+ 0.2279000000000001 0.3436000000000008 0.9591000000000006 # Si13
+ 0.8493000000000003 0.1933000000000001 0.8871000000000006 # Si14
+ 0.3209000000000005 0.1627000000000006 0.8185000000000002 # Si15
+ 0.6670000000000007 0.3330000000000004 0.7500000000000001 # Si16
+ 0.7721000000000000 0.3435999999999998 0.4591000000000001 # Si17
+ 0.1506999999999999 0.1933000000000001 0.3871000000000000 # Si18
+ 0.6791000000000005 0.1627000000000006 0.3185000000000002 # Si19
+ 0.2279000000000001 0.6564000000000002 0.4591000000000001 # Si20
+ 0.8493000000000003 0.8067000000000000 0.3871000000000000 # Si21
+ 0.3209000000000005 0.8373000000000005 0.3185000000000002 # Si22
+ 0.6564000000000002 0.7721000000000000 0.5409000000000003 # Si23
+ 0.8067000000000000 0.1506999999999999 0.6129000000000000 # Si24
+ 0.8373000000000005 0.6791000000000005 0.6815000000000000 # Si25
+ 0.3435999999999998 0.2279000000000001 0.5409000000000003 # Si26
+ 0.1933000000000001 0.8493000000000003 0.6129000000000000 # Si27
+ 0.1627000000000006 0.3209000000000005 0.6815000000000000 # Si28
diff --git a/test/data/tetragonal/POSCAR-116-2 b/test/data/tetragonal/POSCAR-116-2
new file mode 100644
index 0000000..3caac4b
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-116-2
@@ -0,0 +1,227 @@
+$cell vectors
+1.0
+ 10.5659950282556494 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.5659950282556494 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 25.2199881329365390
+ 28 96 96
+Direct
+ 0.2500000000000002 0.2499999999999998 0.7499999999999997 # Pr1
+ 0.2489999999999998 0.2519999999999999 0.3230000000000000 # Pr2
+ 0.2520000000000001 0.2519999999999999 0.4680999999999997 # Pr3
+ 0.2469999999999999 0.2499999999999999 0.5971999999999998 # Pr4
+ 0.2500000000000002 0.7499999999999998 0.2499999999999999 # Pr5
+ 0.2520000000000001 0.7509999999999999 0.6769999999999998 # Pr6
+ 0.2520000000000001 0.7479999999999997 0.5318999999999998 # Pr7
+ 0.2500000000000002 0.7529999999999999 0.4027999999999999 # Pr8
+ 0.7499999999999999 0.7499999999999996 0.7499999999999997 # Pr9
+ 0.7510000000000002 0.7479999999999998 0.3230000000000000 # Pr10
+ 0.7479999999999999 0.7479999999999997 0.4680999999999997 # Pr11
+ 0.7530000000000001 0.7499999999999996 0.5971999999999998 # Pr12
+ 0.7499999999999999 0.2500000000000001 0.2499999999999999 # Pr13
+ 0.7479999999999999 0.2489999999999995 0.6769999999999998 # Pr14
+ 0.7479999999999999 0.2519999999999998 0.5318999999999998 # Pr15
+ 0.7499999999999999 0.2469999999999997 0.4027999999999999 # Pr16
+ 0.2520000000000001 0.2489999999999997 0.1770000000000000 # Pr17
+ 0.2520000000000001 0.2520000000000001 0.0319000000000000 # Pr18
+ 0.2500000000000002 0.2469999999999999 0.9027999999999997 # Pr19
+ 0.7479999999999999 0.7510000000000001 0.1770000000000000 # Pr20
+ 0.7479999999999999 0.7479999999999999 0.0319000000000000 # Pr21
+ 0.7499999999999999 0.7529999999999997 0.9027999999999997 # Pr22
+ 0.7510000000000002 0.2519999999999997 0.8229999999999996 # Pr23
+ 0.7479999999999999 0.2519999999999996 0.9680999999999995 # Pr24
+ 0.7529999999999997 0.2500000000000001 0.0971999999999999 # Pr25
+ 0.2489999999999998 0.7479999999999994 0.8229999999999996 # Pr26
+ 0.2520000000000001 0.7479999999999994 0.9680999999999995 # Pr27
+ 0.2469999999999999 0.7499999999999999 0.0971999999999999 # Pr28
+ 0.9820000000000000 0.1293999999999998 0.0407000000000000 # Re1
+ 0.9909999999999998 0.1285999999999997 0.2065999999999998 # Re2
+ 0.0164000000000001 0.1283999999999999 0.3771999999999999 # Re3
+ 0.1281999999999998 0.4899999999999997 0.0847000000000000 # Re4
+ 0.1281999999999998 0.4868000000000001 0.2496000000000000 # Re5
+ 0.1277000000000000 0.4889999999999998 0.4155999999999998 # Re6
+ 0.4890000000000000 0.3717999999999999 0.1238999999999998 # Re7
+ 0.5059999999999998 0.3721999999999998 0.2926999999999998 # Re8
+ 0.5110000000000000 0.3721999999999997 0.4589999999999998 # Re9
+ 0.3729000000000001 0.0069999999999998 0.0000000000000000 # Re10
+ 0.3725999999999999 0.9909999999999997 0.1674000000000000 # Re11
+ 0.3724000000000001 0.9910000000000001 0.3327999999999998 # Re12
+ 0.1294000000000003 0.0179999999999996 0.9592999999999997 # Re13
+ 0.1286000000000004 0.0089999999999999 0.7933999999999997 # Re14
+ 0.1284000000000001 0.9835999999999996 0.6227999999999997 # Re15
+ 0.4900000000000002 0.8717999999999998 0.9152999999999998 # Re16
+ 0.4868000000000002 0.8717999999999999 0.7503999999999997 # Re17
+ 0.4890000000000000 0.8722999999999995 0.5843999999999999 # Re18
+ 0.3718000000000000 0.5109999999999996 0.8760999999999997 # Re19
+ 0.3721999999999999 0.4939999999999999 0.7072999999999998 # Re20
+ 0.3721999999999999 0.4889999999999997 0.5409999999999998 # Re21
+ 0.0070000000000003 0.6270999999999999 0.0000000000000000 # Re22
+ 0.9910000000000003 0.6273999999999996 0.8325999999999998 # Re23
+ 0.9910000000000003 0.6275999999999995 0.6671999999999999 # Re24
+ 0.0180000000000001 0.8705999999999997 0.0407000000000000 # Re25
+ 0.0090000000000003 0.8713999999999996 0.2065999999999998 # Re26
+ 0.9835999999999999 0.8715999999999996 0.3771999999999999 # Re27
+ 0.8717999999999998 0.5099999999999998 0.0847000000000000 # Re28
+ 0.8717999999999998 0.5131999999999997 0.2496000000000000 # Re29
+ 0.8722999999999995 0.5109999999999998 0.4155999999999998 # Re30
+ 0.5110000000000000 0.6282000000000000 0.1238999999999998 # Re31
+ 0.4939999999999997 0.6278000000000000 0.2926999999999998 # Re32
+ 0.4890000000000000 0.6277999999999999 0.4589999999999998 # Re33
+ 0.6270999999999999 0.9929999999999997 0.0000000000000000 # Re34
+ 0.6273999999999995 0.0089999999999997 0.1674000000000000 # Re35
+ 0.6275999999999998 0.0090000000000001 0.3327999999999998 # Re36
+ 0.8705999999999997 0.9819999999999995 0.9592999999999997 # Re37
+ 0.8713999999999997 0.9909999999999999 0.7933999999999997 # Re38
+ 0.8715999999999998 0.0163999999999998 0.6227999999999997 # Re39
+ 0.5100000000000003 0.1281999999999999 0.9152999999999998 # Re40
+ 0.5131999999999998 0.1282000000000000 0.7503999999999997 # Re41
+ 0.5110000000000000 0.1276999999999996 0.5843999999999999 # Re42
+ 0.6282000000000001 0.4889999999999995 0.8760999999999997 # Re43
+ 0.6278000000000001 0.5060000000000000 0.7072999999999998 # Re44
+ 0.6278000000000001 0.5109999999999998 0.5410000000000000 # Re45
+ 0.9929999999999997 0.3729000000000001 0.0000000000000000 # Re46
+ 0.0090000000000003 0.3725999999999995 0.8325999999999996 # Re47
+ 0.0090000000000003 0.3723999999999998 0.6671999999999999 # Re48
+ 0.1294000000000003 0.9819999999999998 0.4592999999999999 # Re49
+ 0.1285999999999999 0.9909999999999997 0.2933999999999998 # Re50
+ 0.1284000000000001 0.0164000000000000 0.1227999999999999 # Re51
+ 0.4899999999999997 0.1282000000000001 0.4152999999999997 # Re52
+ 0.4867999999999997 0.1281999999999997 0.2504000000000000 # Re53
+ 0.4890000000000000 0.1276999999999999 0.0843999999999999 # Re54
+ 0.3718000000000000 0.4889999999999998 0.3760999999999997 # Re55
+ 0.3721999999999999 0.5059999999999997 0.2072999999999999 # Re56
+ 0.3721999999999999 0.5110000000000000 0.0409999999999998 # Re57
+ 0.0070000000000003 0.3728999999999998 0.4999999999999998 # Re58
+ 0.9909999999999998 0.3725999999999998 0.3325999999999998 # Re59
+ 0.9909999999999998 0.3724000000000000 0.1672000000000000 # Re60
+ 0.8705999999999997 0.0179999999999999 0.4592999999999999 # Re61
+ 0.8713999999999997 0.0090000000000001 0.2933999999999998 # Re62
+ 0.8715999999999998 0.9835999999999998 0.1227999999999999 # Re63
+ 0.5100000000000003 0.8718000000000000 0.4152999999999997 # Re64
+ 0.5131999999999998 0.8717999999999997 0.2503999999999998 # Re65
+ 0.5110000000000000 0.8722999999999995 0.0843999999999999 # Re66
+ 0.6282000000000001 0.5109999999999998 0.3760999999999997 # Re67
+ 0.6278000000000001 0.4939999999999996 0.2072999999999999 # Re68
+ 0.6278000000000001 0.4890000000000000 0.0409999999999998 # Re69
+ 0.9929999999999997 0.6270999999999997 0.4999999999999998 # Re70
+ 0.0090000000000003 0.6273999999999998 0.3325999999999998 # Re71
+ 0.0090000000000003 0.6275999999999997 0.1672000000000000 # Re72
+ 0.0180000000000001 0.1294000000000000 0.5406999999999997 # Re73
+ 0.0090000000000003 0.1286000000000000 0.7065999999999998 # Re74
+ 0.9835999999999999 0.1283999999999996 0.8771999999999999 # Re75
+ 0.8717999999999998 0.4899999999999999 0.5846999999999998 # Re76
+ 0.8718000000000002 0.4867999999999998 0.7495999999999997 # Re77
+ 0.8722999999999999 0.4889999999999995 0.9155999999999997 # Re78
+ 0.5110000000000000 0.3717999999999996 0.6238999999999998 # Re79
+ 0.4939999999999997 0.3721999999999995 0.7926999999999998 # Re80
+ 0.4890000000000000 0.3721999999999994 0.9589999999999997 # Re81
+ 0.6270999999999999 0.0070000000000000 0.4999999999999998 # Re82
+ 0.6274000000000001 0.9910000000000000 0.6673999999999997 # Re83
+ 0.6275999999999998 0.9909999999999999 0.8327999999999995 # Re84
+ 0.9820000000000000 0.8705999999999995 0.5406999999999995 # Re85
+ 0.9910000000000003 0.8713999999999994 0.7065999999999998 # Re86
+ 0.0164000000000001 0.8715999999999994 0.8771999999999999 # Re87
+ 0.1282000000000003 0.5100000000000000 0.5846999999999998 # Re88
+ 0.1282000000000003 0.5132000000000001 0.7495999999999997 # Re89
+ 0.1277000000000000 0.5109999999999996 0.9155999999999997 # Re90
+ 0.4890000000000000 0.6281999999999998 0.6239000000000000 # Re91
+ 0.5059999999999998 0.6277999999999997 0.7926999999999998 # Re92
+ 0.5110000000000000 0.6277999999999997 0.9589999999999997 # Re93
+ 0.3729000000000001 0.9929999999999994 0.4999999999999998 # Re94
+ 0.3725999999999999 0.0090000000000000 0.6673999999999997 # Re95
+ 0.3724000000000001 0.0089999999999999 0.8327999999999995 # Re96
+ 0.5002000000000000 0.1844000000000001 0.4992999999999998 # B1
+ 0.3161000000000003 0.9987999999999995 0.9176999999999996 # B2
+ 0.3161999999999997 0.0010000000000002 0.0838000000000001 # B3
+ 0.9995000000000002 0.1849999999999999 0.2927999999999999 # B4
+ 0.3152999999999998 0.5005999999999999 0.2901999999999999 # B5
+ 0.4987999999999997 0.1834999999999996 0.6653000000000000 # B6
+ 0.5018000000000000 0.1833999999999999 0.3329999999999999 # B7
+ 0.3156999999999998 0.4982999999999999 0.1241000000000001 # B8
+ 0.0016999999999999 0.1845000000000001 0.1268000000000001 # B9
+ 0.3172999999999999 0.0015999999999999 0.2509000000000000 # B10
+ 0.3161000000000003 0.5013000000000000 0.4529999999999998 # B11
+ 0.9987999999999999 0.1838999999999997 0.4593999999999999 # B12
+ 0.1843999999999998 0.4997999999999997 0.5006999999999997 # B13
+ 0.9987999999999999 0.6838999999999997 0.0823000000000001 # B14
+ 0.0010000000000003 0.6837999999999995 0.9161999999999998 # B15
+ 0.1850000000000001 0.0005000000000000 0.7071999999999999 # B16
+ 0.5006000000000000 0.6846999999999999 0.7097999999999999 # B17
+ 0.1834999999999999 0.5011999999999995 0.3346999999999999 # B18
+ 0.1834000000000001 0.4981999999999997 0.6669999999999999 # B19
+ 0.4983000000000000 0.6842999999999998 0.8758999999999997 # B20
+ 0.1845000000000002 0.9982999999999999 0.8731999999999996 # B21
+ 0.0016000000000000 0.6826999999999994 0.7490999999999995 # B22
+ 0.5013000000000002 0.6839000000000000 0.5469999999999999 # B23
+ 0.1839000000000000 0.0011999999999997 0.5405999999999997 # B24
+ 0.4998000000000000 0.8155999999999999 0.4992999999999998 # B25
+ 0.6839000000000002 0.0011999999999995 0.9176999999999996 # B26
+ 0.6838000000000000 0.9989999999999997 0.0838000000000001 # B27
+ 0.0004999999999999 0.8149999999999999 0.2927999999999999 # B28
+ 0.6847000000000002 0.4993999999999998 0.2901999999999999 # B29
+ 0.5012000000000002 0.8164999999999997 0.6653000000000000 # B30
+ 0.4982000000000000 0.8165999999999997 0.3329999999999999 # B31
+ 0.6842999999999997 0.5017000000000000 0.1240999999999997 # B32
+ 0.9982999999999996 0.8154999999999996 0.1268000000000001 # B33
+ 0.6826999999999998 0.9983999999999994 0.2509000000000000 # B34
+ 0.6838999999999997 0.4986999999999996 0.4529999999999998 # B35
+ 0.0012000000000000 0.8160999999999999 0.4593999999999999 # B36
+ 0.8155999999999995 0.5001999999999998 0.5006999999999997 # B37
+ 0.0012000000000000 0.3160999999999998 0.0823000000000001 # B38
+ 0.9989999999999997 0.3161999999999997 0.9161999999999998 # B39
+ 0.8150000000000001 0.9994999999999998 0.7071999999999999 # B40
+ 0.4994000000000000 0.3153000000000000 0.7097999999999999 # B41
+ 0.8165000000000000 0.4987999999999996 0.3346999999999999 # B42
+ 0.8165999999999999 0.5017999999999997 0.6669999999999999 # B43
+ 0.5017000000000001 0.3156999999999999 0.8758999999999997 # B44
+ 0.8154999999999997 0.0016999999999999 0.8731999999999996 # B45
+ 0.9984000000000000 0.3172999999999999 0.7490999999999995 # B46
+ 0.4986999999999999 0.3161000000000000 0.5469999999999998 # B47
+ 0.8161000000000002 0.9987999999999997 0.5405999999999997 # B48
+ 0.1843999999999998 0.5002000000000000 0.0007000000000002 # B49
+ 0.9987999999999999 0.3161000000000000 0.5822999999999998 # B50
+ 0.0010000000000003 0.3161999999999999 0.4161999999999999 # B51
+ 0.1850000000000001 0.9995000000000001 0.2072000000000000 # B52
+ 0.5006000000000000 0.3152999999999997 0.2097999999999999 # B53
+ 0.1834999999999999 0.4987999999999998 0.8346999999999997 # B54
+ 0.1834000000000001 0.5017999999999999 0.1670000000000001 # B55
+ 0.4983000000000000 0.3156999999999996 0.3758999999999998 # B56
+ 0.1845000000000002 0.0017000000000002 0.3732000000000000 # B57
+ 0.0016000000000000 0.3172999999999997 0.2490999999999998 # B58
+ 0.5012999999999996 0.3160999999999998 0.0470000000000002 # B59
+ 0.1839000000000000 0.9987999999999999 0.0405999999999999 # B60
+ 0.8155999999999995 0.4998000000000000 0.0007000000000000 # B61
+ 0.0012000000000000 0.6838999999999998 0.5822999999999998 # B62
+ 0.9989999999999997 0.6837999999999997 0.4161999999999999 # B63
+ 0.8150000000000001 0.0004999999999998 0.2072000000000000 # B64
+ 0.4994000000000000 0.6847000000000001 0.2097999999999999 # B65
+ 0.8165000000000000 0.5011999999999998 0.8346999999999997 # B66
+ 0.8165999999999999 0.4981999999999999 0.1670000000000001 # B67
+ 0.5017000000000001 0.6843000000000000 0.3758999999999998 # B68
+ 0.8154999999999997 0.9983000000000001 0.3732000000000000 # B69
+ 0.9983999999999995 0.6826999999999996 0.2490999999999998 # B70
+ 0.4986999999999999 0.6838999999999997 0.0470000000000000 # B71
+ 0.8161000000000002 0.0012000000000000 0.0405999999999999 # B72
+ 0.4998000000000000 0.1843999999999998 0.9992999999999997 # B73
+ 0.6839000000000002 0.9987999999999997 0.4176999999999999 # B74
+ 0.6838000000000000 0.0010000000000000 0.5837999999999999 # B75
+ 0.0004999999999999 0.1849999999999997 0.7927999999999995 # B76
+ 0.6847000000000002 0.5005999999999996 0.7901999999999996 # B77
+ 0.5011999999999998 0.1834999999999999 0.1652999999999999 # B78
+ 0.4982000000000000 0.1833999999999997 0.8329999999999997 # B79
+ 0.6843000000000002 0.4982999999999996 0.6241000000000000 # B80
+ 0.9983000000000003 0.1844999999999999 0.6267999999999998 # B81
+ 0.6826999999999998 0.0015999999999996 0.7508999999999996 # B82
+ 0.6839000000000002 0.5012999999999997 0.9529999999999997 # B83
+ 0.0012000000000000 0.1839000000000000 0.9593999999999997 # B84
+ 0.5002000000000000 0.8155999999999995 0.9992999999999997 # B85
+ 0.3160999999999998 0.0011999999999998 0.4176999999999999 # B86
+ 0.3162000000000001 0.9989999999999993 0.5837999999999999 # B87
+ 0.9995000000000002 0.8149999999999996 0.7927999999999998 # B88
+ 0.3153000000000003 0.4993999999999996 0.7901999999999996 # B89
+ 0.4987999999999997 0.8164999999999999 0.1652999999999999 # B90
+ 0.5018000000000000 0.8165999999999994 0.8329999999999997 # B91
+ 0.3156999999999998 0.5016999999999998 0.6240999999999997 # B92
+ 0.0017000000000004 0.8154999999999993 0.6267999999999998 # B93
+ 0.3173000000000003 0.9983999999999996 0.7508999999999998 # B94
+ 0.3161000000000003 0.4986999999999994 0.9529999999999998 # B95
+ 0.9987999999999999 0.8160999999999997 0.9593999999999999 # B96
diff --git a/test/data/tetragonal/POSCAR-117 b/test/data/tetragonal/POSCAR-117
new file mode 100644
index 0000000..3a35308
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-117
@@ -0,0 +1,47 @@
+$cell vectors
+1.0
+ 10.9299948569784409 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.9299948569784409 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6199973555552463
+ 16 24
+Direct
+ 0.1362000000000000 0.1138000000000002 0.2500000000000003 # Bi1
+ 0.6362000000000003 0.6137999999999999 0.2500000000000003 # Bi2
+ 0.1138000000000002 0.8638000000000001 0.7499999999999999 # Bi3
+ 0.6137999999999999 0.3638000000000003 0.7499999999999999 # Bi4
+ 0.8638000000000001 0.8862000000000003 0.2500000000000003 # Bi5
+ 0.3638000000000003 0.3862000000000000 0.2500000000000003 # Bi6
+ 0.8862000000000003 0.1362000000000000 0.7499999999999999 # Bi7
+ 0.3862000000000000 0.6362000000000003 0.7499999999999999 # Bi8
+ 0.1362000000000000 0.3862000000000000 0.7499999999999999 # Bi9
+ 0.6362000000000003 0.8862000000000003 0.7499999999999999 # Bi10
+ 0.8638000000000001 0.6137999999999999 0.7499999999999999 # Bi11
+ 0.3638000000000003 0.1138000000000002 0.7499999999999999 # Bi12
+ 0.8862000000000003 0.3637999999999998 0.2500000000000003 # Bi13
+ 0.3862000000000000 0.8638000000000001 0.2500000000000003 # Bi14
+ 0.1138000000000002 0.6362000000000003 0.2500000000000003 # Bi15
+ 0.6137999999999999 0.1362000000000000 0.2500000000000003 # Bi16
+ 0.0224000000000002 0.2500000000000001 0.0000000000000000 # O1
+ 0.0224000000000002 0.2500000000000001 0.4999999999999996 # O2
+ 0.2500000000000001 0.2500000000000001 0.0000000000000000 # O3
+ 0.0000000000000000 0.0000000000000000 0.4999999999999996 # O4
+ 0.5224000000000001 0.7499999999999999 0.0000000000000000 # O5
+ 0.5224000000000001 0.7499999999999999 0.4999999999999996 # O6
+ 0.7499999999999999 0.7499999999999999 0.0000000000000000 # O7
+ 0.5000000000000002 0.5000000000000002 0.4999999999999996 # O8
+ 0.2500000000000001 0.9776000000000004 0.0000000000000000 # O9
+ 0.2500000000000001 0.9776000000000004 0.4999999999999996 # O10
+ 0.2500000000000001 0.7499999999999999 0.0000000000000000 # O11
+ 0.7499999999999999 0.4776000000000001 0.0000000000000000 # O12
+ 0.7499999999999999 0.4776000000000001 0.4999999999999996 # O13
+ 0.7499999999999999 0.2500000000000001 0.0000000000000000 # O14
+ 0.9776000000000004 0.7499999999999999 0.0000000000000000 # O15
+ 0.9776000000000004 0.7499999999999999 0.4999999999999996 # O16
+ 0.4776000000000001 0.2500000000000001 0.0000000000000000 # O17
+ 0.4776000000000001 0.2500000000000001 0.4999999999999996 # O18
+ 0.7499999999999999 0.0223999999999998 0.0000000000000000 # O19
+ 0.7499999999999999 0.0224000000000002 0.4999999999999996 # O20
+ 0.2500000000000001 0.5224000000000001 0.0000000000000000 # O21
+ 0.2500000000000001 0.5224000000000001 0.4999999999999996 # O22
+ 0.0000000000000000 0.5000000000000002 0.4999999999999996 # O23
+ 0.5000000000000002 0.0000000000000000 0.4999999999999996 # O24
diff --git a/test/data/tetragonal/POSCAR-117-2 b/test/data/tetragonal/POSCAR-117-2
new file mode 100644
index 0000000..b7b072e
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-117-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 5.7099973132064861 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.7099973132064861 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 16.4579922558235303
+ 8 4 24
+Direct
+ 0.0000000000000000 0.5000000000000003 0.1620000000000000 # Sr1
+ 0.0000000000000000 0.0000000000000000 0.3370000000000002 # Sr2
+ 0.5000000000000003 0.0000000000000000 0.8379999999999997 # Sr3
+ 0.0000000000000000 0.0000000000000000 0.6629999999999999 # Sr4
+ 0.0000000000000000 0.5000000000000003 0.8379999999999997 # Sr5
+ 0.5000000000000003 0.5000000000000003 0.6629999999999999 # Sr6
+ 0.5000000000000003 0.0000000000000000 0.1620000000000000 # Sr7
+ 0.5000000000000003 0.5000000000000003 0.3370000000000002 # Sr8
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cu1
+ 0.0000000000000000 0.5000000000000003 0.5000000000000000 # Cu2
+ 0.5000000000000003 0.0000000000000000 0.5000000000000000 # Cu3
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # Cu4
+ 0.3570000000000003 0.3230000000000004 0.0749999999999999 # F1
+ 0.2350000000000002 0.2589999999999997 0.2510000000000000 # F2
+ 0.3230000000000004 0.1419999999999998 0.4220000000000000 # F3
+ 0.3230000000000004 0.6429999999999997 -0.0749999999999999 # F4
+ 0.2590000000000006 0.7650000000000007 0.7490000000000002 # F5
+ 0.1419999999999998 0.6770000000000004 0.5780000000000001 # F6
+ 0.6430000000000006 0.6770000000000004 0.0749999999999999 # F7
+ 0.7649999999999996 0.7410000000000003 0.2510000000000000 # F8
+ 0.6770000000000004 -0.1419999999999998 0.4220000000000000 # F9
+ 0.6770000000000004 0.3570000000000003 -0.0749999999999999 # F10
+ 0.7410000000000003 0.2350000000000002 0.7490000000000002 # F11
+ -0.1419999999999998 0.3230000000000004 0.5780000000000001 # F12
+ -0.1770000000000000 -0.1430000000000002 -0.0749999999999999 # F13
+ 0.7590000000000000 0.7350000000000007 0.7490000000000002 # F14
+ 0.6420000000000002 -0.1770000000000000 0.5780000000000001 # F15
+ 0.1770000000000000 0.1430000000000002 -0.0749999999999999 # F16
+ 0.2409999999999998 0.2650000000000002 0.7490000000000002 # F17
+ 0.3579999999999997 0.1770000000000000 0.5780000000000001 # F18
+ 0.1430000000000002 -0.1770000000000000 0.0749999999999999 # F19
+ 0.2650000000000002 0.7590000000000000 0.2510000000000000 # F20
+ 0.1770000000000000 0.6420000000000002 0.4220000000000000 # F21
+ -0.1430000000000002 0.1770000000000000 0.0749999999999999 # F22
+ 0.7349999999999997 0.2409999999999998 0.2510000000000000 # F23
+ -0.1770000000000000 0.3580000000000007 0.4220000000000000 # F24
diff --git a/test/data/tetragonal/POSCAR-118 b/test/data/tetragonal/POSCAR-118
new file mode 100644
index 0000000..14e683c
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-118
@@ -0,0 +1,13 @@
+$cell vectors
+1.0
+ 6.5959968963064783 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.5959968963064783 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.1646975697929172
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Zn1
+ 0.5000000000000000 0.5000000000000000 0.4999999999999996 # Zn2
+ 0.3400000000000003 0.1599999999999998 0.2499999999999998 # Sb1
+ 0.1599999999999998 0.6599999999999999 0.7499999999999992 # Sb2
+ 0.6599999999999999 0.8400000000000003 0.2499999999999998 # Sb3
+ 0.8400000000000003 0.3400000000000003 0.7499999999999992 # Sb4
diff --git a/test/data/tetragonal/POSCAR-118-2 b/test/data/tetragonal/POSCAR-118-2
new file mode 100644
index 0000000..a8eb3a5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-118-2
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 7.8229963189517262 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.8229963189517262 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.0529957401853434
+ 6 4 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.5000000000000003 # Zn1
+ 0.0000000000000000 0.5000000000000000 0.9809000000000005 # Zn2
+ 0.5000000000000000 1.0000000000000000 0.0191000000000003 # Zn3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Zn4
+ 0.0000000000000000 0.5000000000000000 0.5191000000000000 # Zn5
+ 0.5000000000000000 0.0000000000000000 0.4809000000000000 # Zn6
+ 0.2553000000000000 0.7553000000000000 0.2500000000000002 # P1
+ 0.7553000000000000 0.7447000000000001 0.7500000000000006 # P2
+ 0.7447000000000001 0.2447000000000001 0.2500000000000002 # P3
+ 0.2447000000000001 0.2553000000000000 0.7500000000000006 # P4
+ 0.7660000000000002 0.0323999999999997 0.1259000000000001 # S1
+ 0.7528999999999998 0.4784000000000002 0.1384000000000000 # S2
+ 0.0323999999999997 0.2339999999999998 0.8741000000000007 # S3
+ 0.4784000000000002 0.2471000000000003 0.8616000000000001 # S4
+ 0.2339999999999998 0.9675999999999998 0.1259000000000001 # S5
+ 0.2471000000000003 0.5215999999999998 0.1384000000000000 # S6
+ 0.9676000000000003 0.7660000000000002 0.8741000000000007 # S7
+ 0.5215999999999998 0.7529000000000005 0.8616000000000001 # S8
+ 0.5323999999999998 0.2660000000000003 0.3741000000000003 # S9
+ 0.9783999999999997 0.2528999999999998 0.3616000000000004 # S10
+ 0.4676000000000003 0.7339999999999999 0.3741000000000003 # S11
+ 0.0215999999999998 0.7470999999999997 0.3616000000000004 # S12
+ 0.7339999999999999 0.5324000000000004 0.6259000000000005 # S13
+ 0.7471000000000002 0.9784000000000003 0.6384000000000003 # S14
+ 0.2660000000000003 0.4676000000000003 0.6259000000000005 # S15
+ 0.2528999999999998 0.0215999999999998 0.6384000000000003 # S16
diff --git a/test/data/tetragonal/POSCAR-119 b/test/data/tetragonal/POSCAR-119
new file mode 100644
index 0000000..b1fe834
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-119
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 6.2679970506441780 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.2679970506441780 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.7819930444515428
+ 6 18
+Direct
+ 0.0000000000000000 0.0000000000000000 0.3755999999999999 # K1
+ 0.0000000000000000 0.5000000000000003 0.7500000000000001 # K2
+ 0.5000000000000003 0.5000000000000003 0.8755999999999996 # K3
+ 0.5000000000000003 0.0000000000000000 0.2499999999999999 # K4
+ 0.0000000000000000 0.0000000000000000 0.6243999999999997 # K5
+ 0.5000000000000003 0.5000000000000003 0.1243999999999999 # K6
+ 0.1943000000000003 0.0000000000000000 0.8574000000000001 # Ga1
+ 0.2932999999999998 0.0000000000000000 0.0282999999999998 # Ga2
+ 0.0000000000000000 0.5000000000000003 0.2499999999999999 # Ga3
+ 0.6942999999999998 0.5000000000000003 0.3573999999999999 # Ga4
+ 0.7933000000000002 0.5000000000000003 0.5283000000000001 # Ga5
+ 0.5000000000000003 0.0000000000000000 0.7500000000000001 # Ga6
+ 0.0000000000000000 0.8056999999999996 0.1425999999999999 # Ga7
+ 0.0000000000000000 0.7067000000000002 0.9716999999999999 # Ga8
+ 0.5000000000000003 0.3057000000000000 0.6425999999999998 # Ga9
+ 0.5000000000000003 0.2066999999999997 0.4716999999999996 # Ga10
+ 0.8057000000000004 0.0000000000000000 0.8574000000000001 # Ga11
+ 0.7067000000000002 0.0000000000000000 0.0282999999999998 # Ga12
+ 0.3057000000000000 0.5000000000000003 0.3573999999999999 # Ga13
+ 0.2066999999999997 0.5000000000000003 0.5283000000000001 # Ga14
+ 0.0000000000000000 0.1943000000000003 0.1425999999999999 # Ga15
+ 0.0000000000000000 0.2933000000000007 0.9716999999999999 # Ga16
+ 0.5000000000000003 0.6942999999999998 0.6425999999999998 # Ga17
+ 0.5000000000000003 0.7933000000000002 0.4716999999999996 # Ga18
diff --git a/test/data/tetragonal/POSCAR-119-2 b/test/data/tetragonal/POSCAR-119-2
new file mode 100644
index 0000000..8e2dc6b
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-119-2
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 3.9199981554762582 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.9199981554762582 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.2199928383542424
+ 2 2 4
+Direct
+ 0.0000000000000000 0.5000000000000000 0.2499999999999999 # Ag1
+ 0.5000000000000000 0.0000000000000000 0.7500000000000001 # Ag2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Tl1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000002 # Tl2
+ 0.0000000000000000 0.0000000000000000 0.3690000000000002 # Te1
+ 0.5000000000000000 0.5000000000000000 0.1310000000000001 # Te2
+ 0.5000000000000000 0.5000000000000000 0.8690000000000003 # Te3
+ 0.0000000000000000 0.0000000000000000 0.6310000000000002 # Te4
diff --git a/test/data/tetragonal/POSCAR-120 b/test/data/tetragonal/POSCAR-120
new file mode 100644
index 0000000..348b1a8
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-120
@@ -0,0 +1,63 @@
+$cell vectors
+1.0
+ 8.4669960159228221 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4669960159228221 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.7449940029451287
+ 8 4 4 40
+Direct
+ 0.2530000000000001 0.7530000000000001 0.0000000000000000 # Xe1
+ 0.7530000000000001 0.2530000000000001 0.5000000000000000 # Xe2
+ 0.7530000000000001 0.7470000000000004 0.0000000000000000 # Xe3
+ 0.2530000000000001 0.2469999999999999 0.5000000000000000 # Xe4
+ 0.7470000000000004 0.2469999999999999 0.0000000000000000 # Xe5
+ 0.2469999999999999 0.7470000000000004 0.5000000000000000 # Xe6
+ 0.2469999999999999 0.2530000000000001 0.0000000000000000 # Xe7
+ 0.7470000000000004 0.7530000000000001 0.5000000000000000 # Xe8
+ 0.5000000000000000 0.5000000000000000 0.2499999999999998 # Ag1
+ 0.0000000000000000 0.0000000000000000 0.7499999999999998 # Ag2
+ 0.5000000000000000 0.5000000000000000 0.7499999999999998 # Ag3
+ 0.0000000000000000 0.0000000000000000 0.2499999999999998 # Ag4
+ 0.0000000000000000 0.5000000000000000 0.2499999999999998 # P1
+ 0.5000000000000000 0.0000000000000000 0.7499999999999998 # P2
+ 0.5000000000000000 0.0000000000000000 0.2499999999999998 # P3
+ 1.0000000000000000 0.5000000000000000 0.7499999999999998 # P4
+ 0.0000000000000000 0.5000000000000000 0.3750999999999997 # F1
+ 0.0788999999999999 0.6717000000000000 0.2490000000000002 # F2
+ 0.1120000000000002 -0.1240000000000000 0.5974000000000000 # F3
+ 0.5000000000000000 0.0000000000000000 0.8750999999999998 # F4
+ 0.5788999999999999 0.1716999999999999 0.7489999999999998 # F5
+ 0.6120000000000002 0.3759999999999999 0.0974000000000001 # F6
+ 0.5000000000000000 0.0000000000000000 0.6248999999999999 # F7
+ 0.6717000000000005 -0.0788999999999999 0.7510000000000000 # F8
+ -0.1240000000000000 -0.1120000000000002 0.4026000000000000 # F9
+ 0.0000000000000000 0.5000000000000000 0.1248999999999999 # F10
+ 0.1716999999999999 0.4211000000000001 0.2509999999999998 # F11
+ 0.3759999999999999 0.3880000000000005 0.9026000000000000 # F12
+ -0.0788999999999999 0.3283000000000001 0.2490000000000002 # F13
+ -0.1120000000000002 0.1240000000000000 0.5974000000000000 # F14
+ 0.4211000000000001 -0.1716999999999999 0.7489999999999998 # F15
+ 0.3880000000000005 0.6240000000000000 0.0974000000000001 # F16
+ 0.3283000000000001 0.0788999999999999 0.7510000000000000 # F17
+ 0.1240000000000000 0.1120000000000002 0.4026000000000000 # F18
+ -0.1716999999999999 0.5788999999999999 0.2509999999999998 # F19
+ 0.6240000000000006 0.6120000000000002 0.9026000000000000 # F20
+ 0.5000000000000000 0.0000000000000000 0.1248999999999999 # F21
+ 0.6717000000000000 0.0788999999999999 0.2509999999999998 # F22
+ -0.1240000000000000 0.1120000000000002 0.9026000000000000 # F23
+ 1.0000000000000000 0.5000000000000000 0.6248999999999999 # F24
+ 1.1717000000000004 0.5788999999999999 0.7510000000000000 # F25
+ 0.3759999999999999 0.6120000000000002 0.4026000000000000 # F26
+ 0.3283000000000001 -0.0788999999999999 0.2509999999999998 # F27
+ 0.1240000000000000 -0.1120000000000002 0.9026000000000000 # F28
+ 0.8283000000000007 0.4211000000000001 0.7510000000000000 # F29
+ 0.6240000000000000 0.3880000000000005 0.4026000000000000 # F30
+ 1.0000000000000000 0.5000000000000000 0.8750999999999998 # F31
+ 0.9211000000000007 0.6717000000000005 0.7489999999999998 # F32
+ -0.1120000000000002 -0.1240000000000000 0.0974000000000001 # F33
+ 0.5000000000000000 0.0000000000000000 0.3750999999999997 # F34
+ 0.4211000000000001 0.1716999999999999 0.2490000000000002 # F35
+ 0.3880000000000005 0.3759999999999999 0.5974000000000000 # F36
+ 1.0789000000000006 0.3283000000000001 0.7489999999999998 # F37
+ 0.1120000000000002 0.1240000000000000 0.0974000000000001 # F38
+ 0.5788999999999999 -0.1716999999999999 0.2490000000000002 # F39
+ 0.6120000000000002 0.6240000000000006 0.5974000000000000 # F40
diff --git a/test/data/tetragonal/POSCAR-120-2 b/test/data/tetragonal/POSCAR-120-2
new file mode 100644
index 0000000..f368200
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-120-2
@@ -0,0 +1,127 @@
+$cell vectors
+1.0
+ 12.4475941428842525 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.4475941428842525 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.9276939169771463
+ 20 20 80
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000001 # Cs1
+ 0.3499000000000000 0.8282000000000002 0.6815999999999999 # Cs2
+ 0.4999999999999998 0.4999999999999998 0.7499999999999999 # Cs3
+ 0.8498999999999999 0.3282000000000000 0.1816000000000001 # Cs4
+ 0.0000000000000000 0.0000000000000000 0.7499999999999999 # Cs5
+ 0.8281999999999998 0.6501000000000000 0.3184000000000001 # Cs6
+ 0.4999999999999998 0.4999999999999998 0.2500000000000001 # Cs7
+ 0.3282000000000000 0.1501000000000002 0.8183999999999999 # Cs8
+ 0.6501000000000000 0.1718000000000003 0.6815999999999999 # Cs9
+ 0.1501000000000002 0.6718000000000001 0.1816000000000001 # Cs10
+ 0.1718000000000003 0.3499000000000000 0.3184000000000001 # Cs11
+ 0.6718000000000001 0.8498999999999999 0.8183999999999999 # Cs12
+ 0.8281999999999998 0.3499000000000000 0.8183999999999999 # Cs13
+ 0.3282000000000000 0.8498999999999999 0.3184000000000001 # Cs14
+ 0.1717999999999998 0.6501000000000000 0.8183999999999999 # Cs15
+ 0.6717999999999996 0.1500999999999998 0.3184000000000001 # Cs16
+ 0.6501000000000000 0.8281999999999998 0.1816000000000001 # Cs17
+ 0.1500999999999998 0.3282000000000000 0.6815999999999999 # Cs18
+ 0.3499000000000000 0.1717999999999998 0.1816000000000001 # Cs19
+ 0.8498999999999999 0.6718000000000001 0.6815999999999999 # Cs20
+ 0.4999999999999998 0.0000000000000000 0.0000000000000000 # Co1
+ 0.7917999999999996 0.0725000000000001 0.9832999999999998 # Co2
+ 0.0000000000000000 0.4999999999999998 0.4999999999999998 # Co3
+ 0.2917999999999998 0.5724999999999999 0.4832999999999996 # Co4
+ 0.0000000000000000 0.4999999999999998 0.9999999999999997 # Co5
+ 0.0725000000000001 0.2082000000000001 0.0166999999999998 # Co6
+ 0.5000000000000002 0.0000000000000000 0.4999999999999998 # Co7
+ 0.5724999999999999 0.7081999999999999 0.5167000000000000 # Co8
+ 0.2082000000000001 0.9275000000000001 0.9832999999999998 # Co9
+ 0.7081999999999999 0.4275000000000002 0.4832999999999996 # Co10
+ 0.9275000000000001 0.7918000000000001 0.0166999999999998 # Co11
+ 0.4275000000000002 0.2917999999999998 0.5167000000000000 # Co12
+ 0.0725000000000001 0.7918000000000001 0.5167000000000000 # Co13
+ 0.5724999999999999 0.2917999999999998 0.0167000000000002 # Co14
+ 0.9275000000000001 0.2082000000000001 0.5167000000000000 # Co15
+ 0.4275000000000002 0.7081999999999999 0.0167000000000002 # Co16
+ 0.2082000000000001 0.0725000000000001 0.4833000000000000 # Co17
+ 0.7081999999999999 0.5724999999999999 0.9832999999999998 # Co18
+ 0.7918000000000001 0.9275000000000001 0.4832999999999996 # Co19
+ 0.2917999999999998 0.4275000000000002 0.9832999999999998 # Co20
+ 0.3421000000000001 0.9998999999999999 0.9946999999999997 # F1
+ 0.1397000000000000 0.0661000000000003 0.9842999999999998 # F2
+ 0.0754999999999999 0.2071999999999999 0.1408999999999999 # F3
+ 0.9192999999999999 0.7909000000000002 0.8615999999999997 # F4
+ 0.2196000000000001 0.7195999999999999 0.4999999999999998 # F5
+ 0.0000000000000000 0.4999999999999998 0.1418999999999999 # F6
+ 0.8421000000000000 0.4999000000000000 0.4947000000000000 # F7
+ 0.6396999999999998 0.5661000000000000 0.4842999999999999 # F8
+ 0.5755000000000001 0.7071999999999999 0.6409000000000001 # F9
+ 0.4193000000000000 0.2909000000000003 0.3615999999999999 # F10
+ 0.7195999999999999 0.2196000000000001 0.0000000000000000 # F11
+ 0.5000000000000002 0.0000000000000000 0.6419000000000001 # F12
+ 0.9998999999999999 0.6578999999999999 0.0052999999999998 # F13
+ 0.0661000000000003 0.8603000000000001 0.0156999999999999 # F14
+ 0.2071999999999999 0.9244999999999999 0.8591000000000000 # F15
+ 0.7909000000000002 0.0807000000000002 0.1383999999999999 # F16
+ 0.7195999999999999 0.7804000000000000 0.4999999999999998 # F17
+ 0.4999999999999998 0.0000000000000000 0.8580999999999998 # F18
+ 0.4999000000000000 0.1579000000000001 0.5052999999999996 # F19
+ 0.5661000000000000 0.3603000000000003 0.5156999999999997 # F20
+ 0.7071999999999999 0.4245000000000000 0.3590999999999999 # F21
+ 0.2909000000000003 0.5807000000000000 0.6383999999999997 # F22
+ 0.2196000000000001 0.2804000000000001 0.0000000000000000 # F23
+ 0.0000000000000000 0.4999999999999998 0.3580999999999999 # F24
+ 0.6578999999999999 0.0001000000000003 0.9946999999999997 # F25
+ 0.8602999999999997 0.9339000000000000 0.9842999999999998 # F26
+ 0.9244999999999999 0.7927999999999998 0.1408999999999999 # F27
+ 0.0807000000000002 0.2091000000000000 0.8615999999999997 # F28
+ 0.7804000000000000 0.2804000000000001 0.4999999999999998 # F29
+ 0.1579000000000001 0.5001000000000001 0.4947000000000000 # F30
+ 0.3603000000000000 0.4339000000000000 0.4842999999999999 # F31
+ 0.4245000000000000 0.2928000000000000 0.6408999999999997 # F32
+ 0.5807000000000000 0.7090999999999998 0.3616000000000003 # F33
+ 0.2804000000000001 0.7804000000000000 0.0000000000000000 # F34
+ 0.0000999999999999 0.3421000000000001 0.0052999999999998 # F35
+ 0.9339000000000000 0.1397000000000000 0.0156999999999999 # F36
+ 0.7927999999999998 0.0755000000000003 0.8591000000000000 # F37
+ 0.2091000000000000 0.9192999999999999 0.1383999999999999 # F38
+ 0.2804000000000001 0.2196000000000001 0.4999999999999998 # F39
+ 0.5001000000000001 0.8421000000000000 0.5053000000000001 # F40
+ 0.4339000000000000 0.6396999999999998 0.5157000000000002 # F41
+ 0.2928000000000000 0.5755000000000001 0.3590999999999999 # F42
+ 0.7090999999999998 0.4193000000000000 0.6383999999999997 # F43
+ 0.7804000000000000 0.7195999999999999 0.0000000000000000 # F44
+ 0.9998999999999999 0.3421000000000001 0.5053000000000001 # F45
+ 0.0661000000000003 0.1397000000000000 0.5157000000000002 # F46
+ 0.2071999999999999 0.0754999999999999 0.3590999999999999 # F47
+ 0.7909000000000002 0.9192999999999999 0.6383999999999997 # F48
+ 0.5000000000000002 0.0000000000000000 0.3580999999999999 # F49
+ 0.4999000000000000 0.8421000000000000 0.0052999999999998 # F50
+ 0.5661000000000000 0.6396999999999998 0.0156999999999999 # F51
+ 0.7071999999999999 0.5755000000000001 0.8591000000000000 # F52
+ 0.2909000000000003 0.4193000000000000 0.1383999999999999 # F53
+ 0.0000000000000000 0.4999999999999998 0.8580999999999998 # F54
+ 0.0000999999999999 0.6578999999999999 0.5053000000000001 # F55
+ 0.9339000000000000 0.8603000000000001 0.5157000000000002 # F56
+ 0.7927999999999998 0.9244999999999999 0.3590999999999999 # F57
+ 0.2091000000000000 0.0807000000000002 0.6383999999999997 # F58
+ 0.5001000000000001 0.1579000000000001 0.0052999999999998 # F59
+ 0.4339000000000000 0.3603000000000000 0.0156999999999999 # F60
+ 0.2928000000000000 0.4245000000000000 0.8591000000000000 # F61
+ 0.7090999999999998 0.5807000000000000 0.1383999999999999 # F62
+ 0.6578999999999999 0.9998999999999999 0.4947000000000000 # F63
+ 0.8603000000000001 0.0661000000000003 0.4842999999999999 # F64
+ 0.9244999999999999 0.2071999999999999 0.6409000000000001 # F65
+ 0.0807000000000002 0.7909000000000002 0.3616000000000003 # F66
+ 0.0000000000000000 0.4999999999999998 0.6419000000000001 # F67
+ 0.1579000000000001 0.4999000000000000 0.9947000000000003 # F68
+ 0.3603000000000000 0.5661000000000000 0.9843000000000003 # F69
+ 0.4245000000000000 0.7071999999999999 0.1408999999999999 # F70
+ 0.5807000000000000 0.2909000000000003 0.8615999999999997 # F71
+ 0.4999999999999998 0.0000000000000000 0.1418999999999999 # F72
+ 0.3420999999999997 0.0000999999999999 0.4947000000000000 # F73
+ 0.1397000000000000 0.9339000000000000 0.4842999999999999 # F74
+ 0.0754999999999999 0.7927999999999998 0.6409000000000001 # F75
+ 0.9192999999999999 0.2091000000000000 0.3616000000000003 # F76
+ 0.8421000000000000 0.5001000000000001 0.9947000000000003 # F77
+ 0.6396999999999998 0.4339000000000000 0.9843000000000003 # F78
+ 0.5755000000000001 0.2928000000000000 0.1408999999999999 # F79
+ 0.4193000000000000 0.7090999999999998 0.8615999999999997 # F80
diff --git a/test/data/tetragonal/POSCAR-121 b/test/data/tetragonal/POSCAR-121
new file mode 100644
index 0000000..a795681
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-121
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 4.9759976585841450 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.9759976585841450 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.7459968257252134
+ 2 2 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Ag1
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Ag2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Cl1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # Cl2
+ 0.1647000000000002 0.1647000000000002 0.1338999999999998 # O1
+ 0.6647000000000003 0.6647000000000003 0.6338999999999998 # O2
+ 0.1647000000000002 0.8353000000000000 0.8660999999999995 # O3
+ 0.6647000000000003 0.3352999999999999 0.3661000000000003 # O4
+ 0.8353000000000000 0.8353000000000000 0.1338999999999998 # O5
+ 0.3352999999999999 0.3352999999999999 0.6338999999999998 # O6
+ 0.8353000000000000 0.1647000000000002 0.8660999999999995 # O7
+ 0.3352999999999999 0.6647000000000003 0.3661000000000003 # O8
diff --git a/test/data/tetragonal/POSCAR-121-2 b/test/data/tetragonal/POSCAR-121-2
new file mode 100644
index 0000000..90aed22
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-121-2
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 5.0469976251756830 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.0469976251756830 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.4859969480660746
+ 4 2 2 8
+Direct
+ 0.0000000000000000 0.4999999999999996 0.2499999999999996 # Li1
+ 0.4999999999999996 0.0000000000000000 0.7499999999999997 # Li2
+ 0.0000000000000000 0.4999999999999996 0.7499999999999997 # Li3
+ 0.4999999999999996 0.0000000000000000 0.2499999999999996 # Li4
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Ca1
+ 0.4999999999999996 0.4999999999999996 0.0000000000000000 # Ca2
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Si1
+ 0.4999999999999996 0.4999999999999996 0.5000000000000000 # Si2
+ 0.1890000000000000 0.1890000000000000 0.1419999999999998 # O1
+ 0.6889999999999996 0.6889999999999996 0.6419999999999999 # O2
+ 0.1890000000000000 -0.1890000000000000 -0.1419999999999998 # O3
+ 0.6889999999999996 0.3109999999999996 0.3580000000000002 # O4
+ -0.1890000000000000 -0.1890000000000000 0.1419999999999998 # O5
+ 0.3109999999999996 0.3109999999999996 0.6419999999999999 # O6
+ -0.1890000000000000 0.1890000000000000 -0.1419999999999998 # O7
+ 0.3109999999999996 0.6889999999999996 0.3580000000000002 # O8
diff --git a/test/data/tetragonal/POSCAR-122 b/test/data/tetragonal/POSCAR-122
new file mode 100644
index 0000000..7a3b82b
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-122
@@ -0,0 +1,91 @@
+$cell vectors
+1.0
+ 11.4839945962983041 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.4839945962983041 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6199973555552463
+ 12 48 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.4999999999999996 # Cu1
+ 0.0815000000000000 0.2500000000000000 0.1249999999999997 # Cu2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cu3
+ 0.5814999999999999 0.7499999999999999 0.6250000000000002 # Cu4
+ 0.2500000000000000 0.9184999999999999 0.8750000000000003 # Cu5
+ 0.7499999999999999 0.4184999999999999 0.3749999999999999 # Cu6
+ 0.9184999999999999 0.7499999999999999 0.1249999999999997 # Cu7
+ 0.4184999999999999 0.2500000000000000 0.6250000000000002 # Cu8
+ 0.7499999999999999 0.0815000000000000 0.8750000000000003 # Cu9
+ 0.2500000000000000 0.5814999999999999 0.3749999999999999 # Cu10
+ 0.0000000000000000 0.5000000000000000 0.7499999999999999 # Cu11
+ 0.5000000000000000 0.0000000000000000 0.2500000000000003 # Cu12
+ 0.1590000000000001 0.0708000000000001 0.4981000000000001 # O1
+ 0.2527999999999999 0.2500000000000000 0.6250000000000002 # O2
+ 0.2500000000000000 0.0827000000000001 0.8750000000000003 # O3
+ 0.0745000000000001 0.1890000000000001 0.7956000000000001 # O4
+ 0.6589999999999997 0.5708000000000001 0.9980999999999997 # O5
+ 0.7527999999999999 0.7499999999999999 0.1249999999999997 # O6
+ 0.7499999999999999 0.5826999999999996 0.3749999999999999 # O7
+ 0.5745000000000001 0.6889999999999999 0.2955999999999995 # O8
+ 0.0708000000000001 0.8409999999999996 0.5019000000000000 # O9
+ 0.2500000000000000 0.7471999999999996 0.3749999999999999 # O10
+ 0.0827000000000001 0.7499999999999999 0.1249999999999997 # O11
+ 0.1890000000000001 0.9254999999999999 0.2044000000000001 # O12
+ 0.5707999999999996 0.3409999999999999 0.0019000000000004 # O13
+ 0.7499999999999999 0.2472000000000001 0.8750000000000003 # O14
+ 0.5826999999999996 0.2500000000000000 0.6250000000000002 # O15
+ 0.6889999999999999 0.4254999999999999 0.7043999999999997 # O16
+ 0.8409999999999996 0.9291999999999999 0.4981000000000001 # O17
+ 0.7471999999999996 0.7499999999999999 0.6250000000000002 # O18
+ 0.7499999999999999 0.9172999999999999 0.8750000000000003 # O19
+ 0.9254999999999999 0.8109999999999999 0.7956000000000001 # O20
+ 0.3409999999999999 0.4291999999999998 0.9980999999999997 # O21
+ 0.2471999999999996 0.2500000000000000 0.1250000000000006 # O22
+ 0.2500000000000000 0.4172999999999999 0.3749999999999999 # O23
+ 0.4254999999999999 0.3109999999999999 0.2955999999999995 # O24
+ 0.9291999999999999 0.1590000000000001 0.5019000000000000 # O25
+ 0.7499999999999999 0.2527999999999999 0.3749999999999999 # O26
+ 0.9172999999999999 0.2500000000000000 0.1249999999999997 # O27
+ 0.8109999999999999 0.0745000000000001 0.2044000000000001 # O28
+ 0.4291999999999998 0.6589999999999997 0.0019000000000004 # O29
+ 0.2500000000000000 0.7527999999999999 0.8750000000000003 # O30
+ 0.4172999999999999 0.7499999999999999 0.6250000000000002 # O31
+ 0.3109999999999999 0.5744999999999996 0.7043999999999997 # O32
+ 0.1590000000000001 0.4291999999999998 0.7519000000000001 # O33
+ 0.0745000000000001 0.3109999999999999 0.4544000000000004 # O34
+ 0.6590000000000000 0.9291999999999999 0.2518999999999997 # O35
+ 0.5745000000000001 0.8109999999999999 0.9543999999999998 # O36
+ 0.8409999999999996 0.5708000000000001 0.7519000000000001 # O37
+ 0.9254999999999999 0.6889999999999999 0.4544000000000004 # O38
+ 0.3409999999999999 0.0708000000000001 0.2518999999999997 # O39
+ 0.4254999999999999 0.1890000000000001 0.9543999999999998 # O40
+ 0.9291999999999999 0.3409999999999999 0.7481000000000003 # O41
+ 0.8109999999999999 0.4254999999999999 0.0456000000000002 # O42
+ 0.4291999999999998 0.8409999999999996 0.2480999999999998 # O43
+ 0.3109999999999999 0.9254999999999999 0.5455999999999998 # O44
+ 0.0708000000000001 0.6590000000000000 0.7481000000000003 # O45
+ 0.1890000000000001 0.5744999999999996 0.0456000000000002 # O46
+ 0.5707999999999996 0.1590000000000001 0.2480999999999998 # O47
+ 0.6889999999999999 0.0745000000000001 0.5455999999999998 # O48
+ 0.1838000000000001 0.1484000000000000 0.6991999999999996 # B1
+ 0.9989999999999999 0.2500000000000000 0.6250000000000002 # B2
+ 0.6838000000000000 0.6484000000000000 0.1992000000000001 # B3
+ 0.4990000000000000 0.7499999999999999 0.1249999999999997 # B4
+ 0.1484000000000000 0.8161999999999998 0.3008000000000005 # B5
+ 0.2500000000000000 0.0010000000000000 0.3749999999999999 # B6
+ 0.6484000000000000 0.3161999999999999 0.8008000000000000 # B7
+ 0.7499999999999999 0.5009999999999999 0.8750000000000003 # B8
+ 0.8161999999999998 0.8515999999999999 0.6991999999999996 # B9
+ 0.0010000000000000 0.7499999999999999 0.6250000000000002 # B10
+ 0.3161999999999999 0.3515999999999999 0.1992000000000001 # B11
+ 0.5009999999999999 0.2500000000000000 0.1249999999999997 # B12
+ 0.8515999999999999 0.1838000000000001 0.3008000000000005 # B13
+ 0.7499999999999999 0.9989999999999999 0.3749999999999999 # B14
+ 0.3515999999999999 0.6838000000000000 0.8008000000000000 # B15
+ 0.2500000000000000 0.4990000000000000 0.8750000000000003 # B16
+ 0.1838000000000001 0.3515999999999999 0.5507999999999998 # B17
+ 0.6838000000000000 0.8515999999999999 0.0508000000000002 # B18
+ 0.8161999999999998 0.6484000000000000 0.5507999999999998 # B19
+ 0.3161999999999999 0.1484000000000000 0.0508000000000002 # B20
+ 0.8515999999999999 0.3161999999999999 0.9492000000000000 # B21
+ 0.3515999999999999 0.8161999999999998 0.4492000000000003 # B22
+ 0.1484000000000000 0.6838000000000000 0.9492000000000000 # B23
+ 0.6484000000000000 0.1838000000000001 0.4492000000000003 # B24
diff --git a/test/data/tetragonal/POSCAR-122-2 b/test/data/tetragonal/POSCAR-122-2
new file mode 100644
index 0000000..7208d3d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-122-2
@@ -0,0 +1,135 @@
+$cell vectors
+1.0
+ 14.9329929733997311 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 14.9329929733997311 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.5469926844870852
+ 16 16 16 80
+Direct
+ 0.2590000000000001 0.3286000000000000 0.1391000000000000 # S1
+ 0.7590000000000001 0.8286000000000003 0.6391000000000000 # S2
+ 0.3286000000000003 0.7410000000000002 0.8609000000000001 # S3
+ 0.8286000000000003 0.2409999999999999 0.3609000000000000 # S4
+ 0.7410000000000002 0.6714000000000001 0.1391000000000000 # S5
+ 0.2409999999999999 0.1714000000000000 0.6391000000000000 # S6
+ 0.6714000000000001 0.2590000000000001 0.8609000000000001 # S7
+ 0.1714000000000000 0.7590000000000001 0.3609000000000000 # S8
+ 0.2590000000000001 0.1714000000000000 0.1109000000000000 # S9
+ 0.7590000000000001 0.6714000000000001 0.6108999999999999 # S10
+ 0.7410000000000002 0.8286000000000003 0.1109000000000000 # S11
+ 0.2410000000000002 0.3286000000000000 0.6108999999999999 # S12
+ 0.6714000000000001 0.2410000000000002 0.3891000000000000 # S13
+ 0.1714000000000000 0.7410000000000002 0.8891000000000000 # S14
+ 0.3286000000000000 0.7590000000000001 0.3891000000000000 # S15
+ 0.8286000000000003 0.2590000000000001 0.8891000000000000 # S16
+ 0.1862000000000002 0.2500000000000002 0.1250000000000002 # N1
+ 0.3324999999999999 0.2500000000000002 0.1250000000000002 # N2
+ 0.6861999999999997 0.7500000000000001 0.6249999999999999 # N3
+ 0.8324999999999999 0.7500000000000001 0.6249999999999999 # N4
+ 0.2500000000000002 0.8138000000000001 0.8750000000000002 # N5
+ 0.2500000000000002 0.6675000000000002 0.8750000000000002 # N6
+ 0.7500000000000001 0.3138000000000001 0.3750000000000001 # N7
+ 0.7500000000000001 0.1675000000000001 0.3750000000000001 # N8
+ 0.8138000000000001 0.7500000000000001 0.1250000000000002 # N9
+ 0.6675000000000002 0.7500000000000001 0.1250000000000002 # N10
+ 0.3138000000000001 0.2500000000000002 0.6249999999999999 # N11
+ 0.1675000000000001 0.2500000000000002 0.6249999999999999 # N12
+ 0.7500000000000001 0.1862000000000002 0.8750000000000002 # N13
+ 0.7500000000000001 0.3325000000000003 0.8750000000000002 # N14
+ 0.2500000000000002 0.6861999999999997 0.3750000000000001 # N15
+ 0.2500000000000002 0.8324999999999999 0.3750000000000001 # N16
+ 0.0334000000000001 0.2500000000000002 0.1250000000000002 # Sb1
+ 0.4855000000000000 0.2500000000000002 0.1250000000000002 # Sb2
+ 0.5334000000000000 0.7500000000000001 0.6249999999999999 # Sb3
+ 0.9855000000000000 0.7500000000000001 0.6249999999999999 # Sb4
+ 0.2500000000000002 0.9666000000000003 0.8750000000000002 # Sb5
+ 0.2500000000000002 0.5145000000000000 0.8750000000000002 # Sb6
+ 0.7500000000000001 0.4665999999999999 0.3750000000000001 # Sb7
+ 0.7500000000000001 0.0145000000000000 0.3750000000000001 # Sb8
+ 0.9666000000000003 0.7500000000000001 0.1250000000000002 # Sb9
+ 0.5145000000000000 0.7500000000000001 0.1250000000000002 # Sb10
+ 0.4665999999999999 0.2500000000000002 0.6249999999999999 # Sb11
+ 0.0145000000000000 0.2500000000000002 0.6249999999999999 # Sb12
+ 0.7500000000000001 0.0334000000000001 0.8750000000000002 # Sb13
+ 0.7500000000000001 0.4855000000000000 0.8750000000000002 # Sb14
+ 0.2500000000000002 0.5334000000000000 0.3750000000000001 # Sb15
+ 0.2500000000000002 0.9855000000000000 0.3750000000000001 # Sb16
+ 0.0587000000000000 0.4015000000000001 0.1412000000000001 # Cl1
+ 0.0452999999999999 0.2307999999999999 0.2721000000000001 # Cl2
+ -0.1209999999999998 0.2500000000000002 0.1250000000000002 # Cl3
+ 0.4603000000000000 0.3932999999999998 0.1695999999999999 # Cl4
+ 0.4734000000000002 0.2034999999999998 0.2655000000000002 # Cl5
+ 0.6404000000000001 0.2500000000000002 0.1250000000000002 # Cl6
+ 0.5587000000000001 0.9015000000000001 0.6412000000000002 # Cl7
+ 0.5453000000000002 0.7308000000000002 0.7721000000000000 # Cl8
+ 0.3790000000000002 0.7500000000000001 0.6249999999999999 # Cl9
+ 0.9602999999999999 0.8933000000000001 0.6696000000000002 # Cl10
+ 0.9734000000000003 0.7035000000000002 0.7655000000000001 # Cl11
+ 1.1404000000000001 0.7500000000000001 0.6249999999999999 # Cl12
+ 0.4015000000000001 0.9413000000000004 0.8587999999999999 # Cl13
+ 0.2308000000000002 0.9547000000000001 0.7279000000000000 # Cl14
+ 0.2500000000000002 1.1209999999999998 0.8750000000000002 # Cl15
+ 0.3933000000000002 0.5397000000000004 0.8304000000000001 # Cl16
+ 0.2035000000000002 0.5266000000000002 0.7344999999999999 # Cl17
+ 0.2500000000000002 0.3596000000000003 0.8750000000000002 # Cl18
+ 0.9015000000000001 0.4413000000000000 0.3587999999999999 # Cl19
+ 0.7308000000000000 0.4547000000000001 0.2278999999999999 # Cl20
+ 0.7500000000000001 0.6210000000000001 0.3750000000000001 # Cl21
+ 0.8933000000000001 0.0397000000000001 0.3304000000000001 # Cl22
+ 0.7034999999999999 0.0266000000000002 0.2344999999999999 # Cl23
+ 0.7500000000000001 -0.1404000000000001 0.3750000000000001 # Cl24
+ 0.9413000000000000 0.5984999999999999 0.1412000000000001 # Cl25
+ 0.9547000000000001 0.7692000000000001 0.2721000000000001 # Cl26
+ 1.1209999999999998 0.7500000000000001 0.1250000000000002 # Cl27
+ 0.5397000000000001 0.6066999999999999 0.1695999999999999 # Cl28
+ 0.5266000000000002 0.7965000000000001 0.2655000000000002 # Cl29
+ 0.3596000000000003 0.7500000000000001 0.1250000000000002 # Cl30
+ 0.4413000000000000 0.0984999999999999 0.6412000000000002 # Cl31
+ 0.4547000000000001 0.2692000000000001 0.7721000000000000 # Cl32
+ 0.6210000000000001 0.2500000000000002 0.6249999999999999 # Cl33
+ 0.0397000000000001 0.1067000000000002 0.6696000000000002 # Cl34
+ 0.0266000000000002 0.2965000000000002 0.7655000000000001 # Cl35
+ -0.1404000000000001 0.2500000000000002 0.6249999999999999 # Cl36
+ 0.5984999999999999 0.0587000000000000 0.8587999999999999 # Cl37
+ 0.7692000000000001 0.0453000000000003 0.7279000000000000 # Cl38
+ 0.7500000000000001 -0.1209999999999998 0.8750000000000002 # Cl39
+ 0.6066999999999999 0.4603000000000003 0.8304000000000001 # Cl40
+ 0.7965000000000001 0.4734000000000002 0.7344999999999999 # Cl41
+ 0.7500000000000001 0.6404000000000001 0.8750000000000002 # Cl42
+ 0.0984999999999999 0.5587000000000001 0.3587999999999999 # Cl43
+ 0.2692000000000001 0.5453000000000002 0.2278999999999999 # Cl44
+ 0.2500000000000002 0.3790000000000002 0.3750000000000001 # Cl45
+ 0.1067000000000002 0.9602999999999999 0.3304000000000001 # Cl46
+ 0.2965000000000002 0.9734000000000003 0.2344999999999999 # Cl47
+ 0.2500000000000002 1.1404000000000001 0.3750000000000001 # Cl48
+ 0.0587000000000000 0.0984999999999999 0.1087999999999999 # Cl49
+ 0.0452999999999999 0.2692000000000001 -0.0221000000000001 # Cl50
+ 0.4603000000000000 0.1067000000000002 0.0804000000000001 # Cl51
+ 0.4734000000000002 0.2965000000000002 -0.0155000000000001 # Cl52
+ 0.5587000000000001 0.5985000000000003 0.6088000000000002 # Cl53
+ 0.5453000000000002 0.7692000000000001 0.4779000000000003 # Cl54
+ 0.9602999999999999 0.6067000000000001 0.5804000000000001 # Cl55
+ 0.9734000000000003 0.7965000000000001 0.4844999999999999 # Cl56
+ 0.9413000000000000 0.9015000000000001 0.1087999999999999 # Cl57
+ 0.9547000000000001 0.7308000000000000 -0.0221000000000001 # Cl58
+ 0.5397000000000001 0.8933000000000001 0.0804000000000001 # Cl59
+ 0.5266000000000002 0.7034999999999999 -0.0155000000000001 # Cl60
+ 0.4413000000000000 0.4015000000000001 0.6088000000000002 # Cl61
+ 0.4547000000000001 0.2307999999999999 0.4779000000000003 # Cl62
+ 0.0397000000000001 0.3933000000000002 0.5804000000000001 # Cl63
+ 0.0266000000000002 0.2035000000000002 0.4844999999999999 # Cl64
+ 0.5984999999999999 0.4413000000000000 0.3912000000000001 # Cl65
+ 0.7692000000000001 0.4547000000000001 0.5221000000000001 # Cl66
+ 0.6066999999999999 0.0397000000000001 0.4195999999999999 # Cl67
+ 0.7965000000000001 0.0266000000000002 0.5155000000000002 # Cl68
+ 0.0985000000000003 0.9413000000000004 0.8912000000000001 # Cl69
+ 0.2692000000000001 0.9547000000000001 1.0221000000000000 # Cl70
+ 0.1067000000000002 0.5397000000000004 0.9196000000000000 # Cl71
+ 0.2965000000000002 0.5266000000000002 1.0155000000000001 # Cl72
+ 0.4015000000000001 0.5587000000000001 0.3912000000000001 # Cl73
+ 0.2307999999999999 0.5453000000000002 0.5221000000000001 # Cl74
+ 0.3933000000000002 0.9602999999999999 0.4195999999999999 # Cl75
+ 0.2035000000000002 0.9734000000000003 0.5155000000000002 # Cl76
+ 0.9015000000000001 0.0587000000000000 0.8912000000000001 # Cl77
+ 0.7308000000000002 0.0453000000000003 1.0221000000000000 # Cl78
+ 0.8933000000000001 0.4603000000000003 0.9196000000000000 # Cl79
+ 0.7035000000000002 0.4734000000000002 1.0155000000000001 # Cl80
diff --git a/test/data/tetragonal/POSCAR-122-3 b/test/data/tetragonal/POSCAR-122-3
new file mode 100644
index 0000000..28d2b16
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-122-3
@@ -0,0 +1,32 @@
+$cell vectors
+ 1.00000000000000
+ 3.9576830212877665 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.9576830212877665 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9764745199193001
+ 4 8
+Direct
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6652608401630655 0.3750000000000000
+ 0.7500000000000000 0.1652608401630656 0.8750000000000000
+ 0.6652608401630655 0.7500000000000000 0.6250000000000000
+ 0.1652608401630656 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3347391598369345 0.3750000000000000
+ 0.2500000000000000 0.8347391598369343 0.8750000000000000
+ 0.3347391598369345 0.2500000000000000 0.6250000000000000
+ 0.8347391598369343 0.7500000000000000 0.1250000000000000
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/tetragonal/POSCAR-123 b/test/data/tetragonal/POSCAR-123
new file mode 100644
index 0000000..6bf42f4
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-123
@@ -0,0 +1,9 @@
+$cell vectors
+1.0
+ 4.0189981088926210 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.0189981088926210 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.2789984570935329
+ 1 1
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # La1
+ 0.5000000000000006 0.5000000000000006 0.4999999999999991 # Sb1
diff --git a/test/data/tetragonal/POSCAR-123-2 b/test/data/tetragonal/POSCAR-123-2
new file mode 100644
index 0000000..1b6fdde
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-123-2
@@ -0,0 +1,163 @@
+$cell vectors
+1.0
+ 8.9809957740643540 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.9809957740643540 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.6379940532930934
+ 12 46 98
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2010000000000002 # Ho1
+ 0.5000000000000003 0.5000000000000003 0.3040000000000000 # Ho2
+ 0.2219999999999998 0.2219999999999998 0.0000000000000000 # Ho3
+ 0.2990000000000003 0.2990000000000003 0.5000000000000003 # Ho4
+ 0.0000000000000000 0.0000000000000000 0.7990000000000000 # Ho5
+ 0.5000000000000003 0.5000000000000003 0.6960000000000002 # Ho6
+ 0.7780000000000001 0.7780000000000001 0.0000000000000000 # Ho7
+ 0.7010000000000003 0.7010000000000003 0.5000000000000003 # Ho8
+ 0.7780000000000001 0.2219999999999998 0.0000000000000000 # Ho9
+ 0.7010000000000003 0.2990000000000003 0.5000000000000003 # Ho10
+ 0.2219999999999998 0.7780000000000001 0.0000000000000000 # Ho11
+ 0.2990000000000003 0.7010000000000003 0.5000000000000003 # Ho12
+ 0.0000000000000000 0.0000000000000000 0.5000000000000003 # Mn1
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # Mn2
+ 0.0000000000000000 0.5000000000000003 0.5000000000000003 # Mn3
+ 0.0000000000000000 0.5000000000000003 0.0000000000000000 # Mn4
+ 0.2460000000000001 0.2460000000000001 0.7620000000000003 # Mn5
+ 0.3290000000000003 0.0000000000000000 0.1610000000000001 # Mn6
+ 0.2559999999999999 0.0000000000000000 0.3990000000000001 # Mn7
+ 0.1300000000000000 0.5000000000000003 0.3120000000000003 # Mn8
+ 0.2660000000000003 0.5000000000000003 0.1500000000000003 # Mn9
+ 0.7539999999999999 0.7539999999999999 0.2380000000000000 # Mn10
+ 0.6710000000000003 0.0000000000000000 0.8390000000000002 # Mn11
+ 0.7440000000000000 0.0000000000000000 0.6010000000000002 # Mn12
+ 0.8700000000000000 0.5000000000000003 0.6880000000000004 # Mn13
+ 0.7340000000000002 0.5000000000000003 0.8500000000000004 # Mn14
+ 0.5000000000000003 0.0000000000000000 0.5000000000000003 # Mn15
+ 0.5000000000000003 0.0000000000000000 0.0000000000000000 # Mn16
+ 0.7539999999999999 0.2460000000000001 0.7620000000000003 # Mn17
+ 0.0000000000000000 0.3290000000000003 0.1610000000000001 # Mn18
+ 0.0000000000000000 0.2559999999999999 0.3990000000000001 # Mn19
+ 0.5000000000000003 0.1300000000000000 0.3120000000000003 # Mn20
+ 0.5000000000000003 0.2659999999999997 0.1500000000000003 # Mn21
+ 0.2460000000000001 0.7539999999999999 0.2380000000000000 # Mn22
+ 0.0000000000000000 0.6710000000000003 0.8390000000000002 # Mn23
+ 0.0000000000000000 0.7440000000000000 0.6010000000000002 # Mn24
+ 0.5000000000000003 0.8700000000000000 0.6880000000000004 # Mn25
+ 0.5000000000000003 0.7340000000000002 0.8500000000000004 # Mn26
+ 0.7539999999999999 0.7539999999999999 0.7620000000000003 # Mn27
+ 0.6710000000000003 0.0000000000000000 0.1610000000000001 # Mn28
+ 0.7440000000000000 0.0000000000000000 0.3990000000000001 # Mn29
+ 0.8700000000000000 0.5000000000000003 0.3120000000000003 # Mn30
+ 0.7340000000000002 0.5000000000000003 0.1499999999999999 # Mn31
+ 0.2460000000000001 0.2460000000000001 0.2380000000000000 # Mn32
+ 0.3290000000000003 0.0000000000000000 0.8390000000000002 # Mn33
+ 0.2559999999999999 0.0000000000000000 0.6010000000000002 # Mn34
+ 0.1300000000000000 0.5000000000000003 0.6880000000000004 # Mn35
+ 0.2660000000000003 0.5000000000000003 0.8500000000000004 # Mn36
+ 0.2460000000000001 0.7539999999999999 0.7620000000000003 # Mn37
+ 0.0000000000000000 0.6710000000000003 0.1610000000000001 # Mn38
+ 0.0000000000000000 0.7440000000000000 0.3990000000000001 # Mn39
+ 0.5000000000000003 0.8700000000000000 0.3120000000000003 # Mn40
+ 0.5000000000000003 0.7340000000000002 0.1499999999999999 # Mn41
+ 0.7539999999999999 0.2460000000000001 0.2380000000000000 # Mn42
+ 0.0000000000000000 0.3290000000000003 0.8390000000000002 # Mn43
+ 0.0000000000000000 0.2559999999999999 0.6010000000000002 # Mn44
+ 0.5000000000000003 0.1300000000000000 0.6880000000000004 # Mn45
+ 0.5000000000000003 0.2660000000000003 0.8500000000000004 # Mn46
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # H1
+ 0.5000000000000003 0.5000000000000003 0.5000000000000003 # H2
+ 0.1910000000000002 0.4489999999999999 0.0000000000000000 # H3
+ 0.1990000000000003 0.9949999999999997 0.5000000000000003 # H4
+ 0.1439999999999999 0.1439999999999999 0.3260000000000001 # H5
+ 0.3350000000000000 0.3350000000000000 0.0590000000000002 # H6
+ 0.1519999999999999 0.0000000000000000 0.0590000000000002 # H7
+ 0.2380000000000000 0.0000000000000000 0.1170000000000000 # H8
+ 0.2700000000000004 0.5000000000000003 0.3870000000000003 # H9
+ 0.1919999999999998 0.5000000000000003 0.4580000000000002 # H10
+ 0.1879999999999997 0.1340000000000000 0.1620000000000001 # H11
+ 0.2770000000000002 0.3800000000000001 0.3220000000000002 # H12
+ 0.8089999999999997 0.5510000000000000 0.0000000000000000 # H13
+ 0.8010000000000003 0.0050000000000002 0.5000000000000003 # H14
+ 0.8560000000000001 0.8560000000000001 0.6740000000000002 # H15
+ 0.6649999999999998 0.6649999999999998 0.9410000000000003 # H16
+ 0.8480000000000000 0.0000000000000000 0.9410000000000003 # H17
+ 0.7620000000000000 0.0000000000000000 0.8830000000000002 # H18
+ 0.7300000000000001 0.5000000000000003 0.6130000000000004 # H19
+ 0.8080000000000002 0.5000000000000003 0.5420000000000004 # H20
+ 0.8120000000000003 0.8659999999999999 0.8380000000000003 # H21
+ 0.7230000000000002 0.6199999999999998 0.6780000000000000 # H22
+ 0.5510000000000000 0.1910000000000002 0.0000000000000000 # H23
+ 0.0050000000000002 0.1990000000000003 0.5000000000000003 # H24
+ 0.8560000000000001 0.1439999999999999 0.3260000000000001 # H25
+ 0.6649999999999998 0.3350000000000000 0.0590000000000002 # H26
+ 0.0000000000000000 0.1519999999999999 0.0590000000000002 # H27
+ 0.0000000000000000 0.2380000000000000 0.1170000000000000 # H28
+ 0.5000000000000003 0.2700000000000004 0.3870000000000003 # H29
+ 0.5000000000000003 0.1919999999999998 0.4580000000000002 # H30
+ 0.8659999999999999 0.1879999999999997 0.1620000000000001 # H31
+ 0.6199999999999998 0.2770000000000002 0.3220000000000002 # H32
+ 0.4489999999999999 0.8089999999999997 0.0000000000000000 # H33
+ 0.9949999999999997 0.8010000000000003 0.5000000000000003 # H34
+ 0.1439999999999999 0.8560000000000001 0.6740000000000002 # H35
+ 0.3350000000000000 0.6649999999999998 0.9410000000000003 # H36
+ 0.0000000000000000 0.8480000000000000 0.9410000000000003 # H37
+ 0.0000000000000000 0.7620000000000000 0.8830000000000002 # H38
+ 0.5000000000000003 0.7300000000000001 0.6130000000000004 # H39
+ 0.5000000000000003 0.8080000000000002 0.5420000000000004 # H40
+ 0.1340000000000000 0.8120000000000003 0.8380000000000003 # H41
+ 0.3800000000000001 0.7230000000000002 0.6780000000000000 # H42
+ 0.8560000000000001 0.8560000000000001 0.3260000000000001 # H43
+ 0.6649999999999998 0.6649999999999998 0.0590000000000002 # H44
+ 0.8480000000000000 0.0000000000000000 0.0590000000000002 # H45
+ 0.7620000000000000 0.0000000000000000 0.1170000000000000 # H46
+ 0.7299999999999995 0.5000000000000003 0.3870000000000003 # H47
+ 0.8080000000000002 0.5000000000000003 0.4580000000000002 # H48
+ 0.8120000000000003 0.8659999999999999 0.1620000000000001 # H49
+ 0.7229999999999996 0.6199999999999998 0.3220000000000002 # H50
+ 0.1439999999999999 0.1439999999999999 0.6740000000000002 # H51
+ 0.3350000000000000 0.3350000000000000 0.9410000000000003 # H52
+ 0.1519999999999999 0.0000000000000000 0.9410000000000003 # H53
+ 0.2380000000000000 0.0000000000000000 0.8830000000000002 # H54
+ 0.2700000000000004 0.5000000000000003 0.6130000000000004 # H55
+ 0.1919999999999998 0.5000000000000003 0.5420000000000004 # H56
+ 0.1880000000000003 0.1340000000000000 0.8380000000000003 # H57
+ 0.2770000000000002 0.3800000000000001 0.6780000000000000 # H58
+ 0.1439999999999999 0.8560000000000001 0.3260000000000001 # H59
+ 0.3350000000000000 0.6649999999999998 0.0590000000000002 # H60
+ 0.0000000000000000 0.8480000000000000 0.0590000000000002 # H61
+ 0.0000000000000000 0.7620000000000000 0.1170000000000000 # H62
+ 0.5000000000000003 0.7300000000000001 0.3870000000000003 # H63
+ 0.5000000000000003 0.8080000000000002 0.4580000000000002 # H64
+ 0.1340000000000000 0.8120000000000003 0.1620000000000001 # H65
+ 0.3800000000000001 0.7230000000000002 0.3220000000000002 # H66
+ 0.8560000000000001 0.1439999999999999 0.6740000000000002 # H67
+ 0.6649999999999998 0.3350000000000000 0.9410000000000003 # H68
+ 0.0000000000000000 0.1519999999999999 0.9410000000000003 # H69
+ 0.0000000000000000 0.2380000000000000 0.8830000000000002 # H70
+ 0.5000000000000003 0.2700000000000004 0.6130000000000004 # H71
+ 0.5000000000000003 0.1919999999999998 0.5420000000000004 # H72
+ 0.8659999999999999 0.1880000000000003 0.8380000000000003 # H73
+ 0.6199999999999998 0.2770000000000002 0.6780000000000000 # H74
+ 0.1910000000000002 0.5510000000000000 0.0000000000000000 # H75
+ 0.1990000000000003 0.0050000000000002 0.5000000000000003 # H76
+ 0.1880000000000003 0.8659999999999999 0.8380000000000003 # H77
+ 0.2770000000000002 0.6199999999999998 0.6780000000000000 # H78
+ 0.8089999999999997 0.4489999999999999 0.0000000000000000 # H79
+ 0.8010000000000003 0.9949999999999997 0.5000000000000003 # H80
+ 0.8120000000000003 0.1340000000000000 0.1620000000000001 # H81
+ 0.7229999999999996 0.3800000000000001 0.3220000000000002 # H82
+ 0.8120000000000003 0.1340000000000000 0.8380000000000003 # H83
+ 0.7230000000000002 0.3800000000000001 0.6780000000000000 # H84
+ 0.1880000000000003 0.8659999999999999 0.1620000000000001 # H85
+ 0.2770000000000002 0.6199999999999998 0.3220000000000002 # H86
+ 0.4489999999999999 0.1910000000000002 0.0000000000000000 # H87
+ 0.9949999999999997 0.1990000000000003 0.5000000000000003 # H88
+ 0.1340000000000000 0.1880000000000003 0.8380000000000003 # H89
+ 0.3800000000000001 0.2770000000000002 0.6780000000000000 # H90
+ 0.5510000000000000 0.8089999999999997 0.0000000000000000 # H91
+ 0.0050000000000002 0.8010000000000003 0.5000000000000003 # H92
+ 0.8659999999999999 0.8120000000000003 0.1620000000000001 # H93
+ 0.6199999999999998 0.7230000000000002 0.3220000000000002 # H94
+ 0.8659999999999999 0.8120000000000003 0.8380000000000003 # H95
+ 0.6199999999999998 0.7230000000000002 0.6780000000000000 # H96
+ 0.1340000000000000 0.1879999999999997 0.1620000000000001 # H97
+ 0.3800000000000001 0.2770000000000002 0.3220000000000002 # H98
diff --git a/test/data/tetragonal/POSCAR-123-3 b/test/data/tetragonal/POSCAR-123-3
new file mode 100644
index 0000000..4318d41
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-123-3
@@ -0,0 +1,12 @@
+$cell vectors
+1.0
+ 4.1999980237245627 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.1999980237245627 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.9599962544875025
+ 1 3 1
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Hg1
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Cl1
+ 0.0000000000000000 0.0000000000000000 0.2943999999999997 # Cl2
+ 0.0000000000000000 0.0000000000000000 -0.2943999999999997 # Cl3
+ 0.5000000000000000 0.5000000000000000 0.4999999999999997 # N1
diff --git a/test/data/tetragonal/POSCAR-124 b/test/data/tetragonal/POSCAR-124
new file mode 100644
index 0000000..034e686
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-124
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 6.1179971212254429 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.1179971212254429 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.9959976491733107
+ 8 2 2
+Direct
+ 0.1620000000000002 0.6619999999999998 0.0000000000000000 # Nb1
+ 0.8379999999999997 0.3380000000000002 0.0000000000000000 # Nb2
+ 0.3380000000000002 0.1620000000000002 0.0000000000000000 # Nb3
+ 0.6619999999999998 0.8379999999999997 0.0000000000000000 # Nb4
+ 0.6619999999999998 0.1620000000000002 0.5000000000000001 # Nb5
+ 0.3380000000000002 0.8379999999999997 0.5000000000000001 # Nb6
+ 0.8379999999999997 0.6619999999999998 0.5000000000000001 # Nb7
+ 0.1620000000000002 0.3380000000000002 0.5000000000000001 # Nb8
+ 0.0000000000000000 0.0000000000000000 0.2500000000000005 # Co1
+ 0.0000000000000000 0.0000000000000000 0.7500000000000006 # Co2
+ 0.5000000000000003 0.5000000000000003 0.2500000000000005 # P1
+ 0.5000000000000003 0.5000000000000003 0.7500000000000006 # P2
diff --git a/test/data/tetragonal/POSCAR-124-2 b/test/data/tetragonal/POSCAR-124-2
new file mode 100644
index 0000000..7dfc0f8
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-124-2
@@ -0,0 +1,29 @@
+$cell vectors
+1.0
+ 6.2099970779355989 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.2099970779355989 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.0019948230994373
+ 2 20
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # Ca1
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # Ca2
+ 0.5000000000000004 0.5000000000000004 0.1820000000000001 # O1
+ 0.3090000000000001 0.1290000000000001 0.1280000000000000 # O2
+ 0.6910000000000008 0.8710000000000000 0.8720000000000000 # O3
+ 0.8710000000000000 0.3090000000000001 0.1280000000000000 # O4
+ 0.1290000000000001 0.6910000000000008 0.8720000000000000 # O5
+ 0.6909999999999998 0.8710000000000000 0.1280000000000000 # O6
+ 0.3090000000000001 0.1290000000000001 0.8720000000000000 # O7
+ 0.1290000000000001 0.6909999999999998 0.1280000000000000 # O8
+ 0.5000000000000004 0.5000000000000004 0.8179999999999998 # O9
+ 0.8710000000000000 0.3090000000000001 0.8720000000000000 # O10
+ 0.5000000000000004 0.5000000000000004 0.3179999999999999 # O11
+ 0.3090000000000001 0.8710000000000000 0.3720000000000001 # O12
+ 0.5000000000000004 0.5000000000000004 0.6819999999999995 # O13
+ 0.6909999999999998 0.1290000000000001 0.6280000000000000 # O14
+ 0.6909999999999998 0.1290000000000001 0.3720000000000001 # O15
+ 0.3090000000000001 0.8710000000000000 0.6280000000000000 # O16
+ 0.1290000000000001 0.3090000000000001 0.3720000000000001 # O17
+ 0.8710000000000000 0.6910000000000008 0.6280000000000000 # O18
+ 0.8710000000000000 0.6910000000000008 0.3720000000000001 # O19
+ 0.1290000000000001 0.3090000000000001 0.6280000000000000 # O20
diff --git a/test/data/tetragonal/POSCAR-125 b/test/data/tetragonal/POSCAR-125
new file mode 100644
index 0000000..3748943
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-125
@@ -0,0 +1,21 @@
+$cell vectors
+1.0
+ 8.5159959928662783 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.5159959928662783 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.7129968412530898
+ 2 4 8
+Direct
+ 0.2500000000000002 0.2500000000000002 0.0000000000000000 # Ba1
+ 0.7499999999999998 0.7499999999999998 0.0000000000000000 # Ba2
+ 0.7499999999999998 0.2500000000000002 0.0000000000000000 # Al1
+ 0.7499999999999998 0.2500000000000002 0.5000000000000004 # Al2
+ 0.2500000000000002 0.7499999999999998 0.0000000000000000 # Al3
+ 0.2500000000000002 0.7499999999999998 0.5000000000000004 # Al4
+ 0.9180000000000001 0.0820000000000003 0.7484000000000004 # Te1
+ 0.0820000000000003 0.9179999999999995 0.2516000000000003 # Te2
+ 0.4179999999999999 0.9180000000000001 0.7484000000000004 # Te3
+ 0.5820000000000000 0.0819999999999997 0.2516000000000003 # Te4
+ 0.5820000000000000 0.4179999999999999 0.7484000000000004 # Te5
+ 0.4179999999999999 0.5820000000000000 0.2516000000000003 # Te6
+ 0.0820000000000003 0.5820000000000000 0.7484000000000004 # Te7
+ 0.9180000000000001 0.4179999999999999 0.2516000000000003 # Te8
diff --git a/test/data/tetragonal/POSCAR-125-2 b/test/data/tetragonal/POSCAR-125-2
new file mode 100644
index 0000000..13a636b
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-125-2
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 6.3759969998256709 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.3759969998256709 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3289960808575874
+ 2 16 2
+Direct
+ 0.2499999999999996 0.2499999999999996 0.0000000000000000 # Ce1
+ 0.7499999999999994 0.7499999999999994 0.0000000000000000 # Ce2
+ 0.8829999999999997 0.1177999999999998 0.2162999999999998 # Se1
+ 0.1170000000000001 0.8822000000000001 0.7837000000000003 # Se2
+ 0.3822000000000000 0.8829999999999997 0.2162999999999998 # Se3
+ 0.6177999999999997 0.1170000000000001 0.7837000000000003 # Se4
+ 0.6170000000000000 0.3822000000000000 0.2162999999999998 # Se5
+ 0.3829999999999998 0.6177999999999997 0.7837000000000003 # Se6
+ 0.1177999999999998 0.6170000000000000 0.2162999999999998 # Se7
+ 0.8821999999999992 0.3829999999999998 0.7837000000000003 # Se8
+ 0.8829999999999997 0.3822000000000000 0.7837000000000003 # Se9
+ 0.1170000000000001 0.6177999999999997 0.2162999999999998 # Se10
+ 0.6170000000000000 0.1177999999999998 0.7837000000000003 # Se11
+ 0.3829999999999998 0.8821999999999992 0.2162999999999998 # Se12
+ 0.1177999999999998 0.8829999999999997 0.7837000000000003 # Se13
+ 0.8821999999999992 0.1170000000000001 0.2162999999999998 # Se14
+ 0.3822000000000000 0.6170000000000000 0.7837000000000003 # Se15
+ 0.6177999999999997 0.3829999999999998 0.2162999999999998 # Se16
+ 0.2499999999999996 0.2499999999999996 0.5000000000000003 # K1
+ 0.7499999999999994 0.7499999999999994 0.5000000000000003 # K2
diff --git a/test/data/tetragonal/POSCAR-126 b/test/data/tetragonal/POSCAR-126
new file mode 100644
index 0000000..ab13e50
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-126
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 11.3499946593508980 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.3499946593508980 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1899970873464403
+ 6 8 16
+Direct
+ 0.2499999999999998 0.2499999999999998 0.2499999999999995 # Ba1
+ 0.2500000000000003 0.7499999999999999 0.7499999999999994 # Ba2
+ 0.7499999999999999 0.7499999999999999 0.7499999999999994 # Ba3
+ 0.7499999999999999 0.2499999999999998 0.2499999999999995 # Ba4
+ 0.7499999999999999 0.2500000000000003 0.7499999999999994 # Ba5
+ 0.2500000000000003 0.7499999999999999 0.2499999999999995 # Ba6
+ 0.9953000000000001 0.9953000000000001 0.2499999999999995 # Al1
+ 0.0047000000000003 0.0047000000000003 0.7499999999999994 # Al2
+ 0.5046999999999998 0.9953000000000001 0.2499999999999995 # Al3
+ 0.4952999999999996 0.0047000000000003 0.7499999999999994 # Al4
+ 0.5046999999999998 0.5046999999999998 0.2499999999999995 # Al5
+ 0.4952999999999996 0.4953000000000001 0.7499999999999994 # Al6
+ 0.9953000000000001 0.5046999999999998 0.2499999999999995 # Al7
+ 0.0047000000000003 0.4953000000000001 0.7499999999999994 # Al8
+ 0.1605000000000000 0.9966000000000002 0.0079000000000002 # Se1
+ 0.8395000000000000 0.0034000000000000 0.9920999999999999 # Se2
+ 0.5034000000000000 0.1605000000000000 0.0079000000000002 # Se3
+ 0.4966000000000000 0.8395000000000000 0.9920999999999999 # Se4
+ 0.3395000000000000 0.5034000000000000 0.0079000000000002 # Se5
+ 0.6605000000000000 0.4966000000000000 0.9920999999999999 # Se6
+ 0.9966000000000002 0.3395000000000000 0.0079000000000002 # Se7
+ 0.0034000000000000 0.6605000000000000 0.9920999999999999 # Se8
+ 0.1605000000000000 0.5034000000000000 0.4920999999999998 # Se9
+ 0.8395000000000000 0.4966000000000000 0.5079000000000001 # Se10
+ 0.3395000000000000 0.9966000000000002 0.4920999999999998 # Se11
+ 0.6605000000000000 0.0034000000000000 0.5079000000000001 # Se12
+ 0.9966000000000002 0.1605000000000000 0.4920999999999998 # Se13
+ 0.0034000000000000 0.8395000000000000 0.5079000000000001 # Se14
+ 0.5034000000000000 0.3395000000000000 0.4920999999999998 # Se15
+ 0.4966000000000000 0.6605000000000000 0.5079000000000001 # Se16
diff --git a/test/data/tetragonal/POSCAR-126-2 b/test/data/tetragonal/POSCAR-126-2
new file mode 100644
index 0000000..5c6c6e5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-126-2
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 6.3123970297521268 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.3123970297521268 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.5494955065613585
+ 2 2 4 16
+Direct
+ 0.2500000000000000 0.2500000000000000 0.2500000000000002 # Tl1
+ 0.7499999999999998 0.7499999999999998 0.7499999999999999 # Tl2
+ 0.2500000000000000 0.2500000000000000 0.7499999999999999 # Pr1
+ 0.7499999999999998 0.7499999999999998 0.2500000000000002 # Pr2
+ 0.2500000000000000 0.7499999999999998 0.0000000000000000 # Mo1
+ 0.7499999999999998 0.2500000000000000 0.0000000000000000 # Mo2
+ 0.2500000000000000 0.7499999999999998 0.4999999999999996 # Mo3
+ 0.7499999999999998 0.2500000000000000 0.4999999999999996 # Mo4
+ 0.1392000000000000 0.5610999999999998 0.8917000000000000 # O1
+ 0.8607999999999999 0.4389000000000001 0.1083000000000001 # O2
+ 0.9388999999999992 0.1392000000000000 0.8917000000000000 # O3
+ 0.0610999999999998 0.8607999999999999 0.1083000000000001 # O4
+ 0.3608000000000000 0.9388999999999992 0.8917000000000000 # O5
+ 0.6391999999999999 0.0610999999999998 0.1083000000000001 # O6
+ 0.5610999999999998 0.3608000000000000 0.8917000000000000 # O7
+ 0.4389000000000001 0.6391999999999999 0.1083000000000001 # O8
+ 0.1392000000000000 0.9388999999999992 0.6082999999999997 # O9
+ 0.8607999999999999 0.0610999999999998 0.3917000000000002 # O10
+ 0.3608000000000000 0.5610999999999998 0.6082999999999997 # O11
+ 0.6391999999999999 0.4389000000000001 0.3917000000000002 # O12
+ 0.5610999999999998 0.1392000000000000 0.6082999999999997 # O13
+ 0.4389000000000001 0.8607999999999999 0.3917000000000002 # O14
+ 0.9388999999999992 0.3608000000000000 0.6082999999999997 # O15
+ 0.0610999999999998 0.6391999999999999 0.3917000000000002 # O16
diff --git a/test/data/tetragonal/POSCAR-127 b/test/data/tetragonal/POSCAR-127
new file mode 100644
index 0000000..b41b82a
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-127
@@ -0,0 +1,27 @@
+$cell vectors
+1.0
+ 5.8939972266267997 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.8939972266267997 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3479960719172936
+ 4 4 12
+Direct
+ 0.5000000000000003 0.0000000000000000 0.2460000000000003 # K1
+ 0.5000000000000003 0.0000000000000000 0.7540000000000004 # K2
+ 0.0000000000000000 0.5000000000000003 0.2460000000000003 # K3
+ 0.0000000000000000 0.5000000000000003 0.7540000000000004 # K4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mn1
+ 0.0000000000000000 0.0000000000000000 0.5000000000000004 # Mn2
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # Mn3
+ 0.5000000000000003 0.5000000000000003 0.5000000000000004 # Mn4
+ 0.0000000000000000 0.0000000000000000 0.2499999999999998 # F1
+ 0.2730000000000001 0.7730000000000006 0.5000000000000004 # F2
+ 0.2499999999999997 0.7500000000000000 0.0000000000000000 # F3
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # F4
+ 0.7270000000000006 0.2270000000000003 0.5000000000000004 # F5
+ 0.7500000000000000 0.2499999999999997 0.0000000000000000 # F6
+ 0.2270000000000003 0.2730000000000001 0.5000000000000004 # F7
+ 0.2499999999999997 0.2499999999999997 0.0000000000000000 # F8
+ 0.7730000000000006 0.7270000000000006 0.5000000000000004 # F9
+ 0.7500000000000000 0.7500000000000000 0.0000000000000000 # F10
+ 0.5000000000000003 0.5000000000000003 0.7500000000000001 # F11
+ 0.5000000000000003 0.5000000000000003 0.2499999999999998 # F12
diff --git a/test/data/tetragonal/POSCAR-127-2 b/test/data/tetragonal/POSCAR-127-2
new file mode 100644
index 0000000..ed53fd9
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-127-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 7.1049966568007168 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.1049966568007168 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.1439980500749014
+ 2 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Li1
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # Li2
+ 0.1810000000000001 0.6809999999999997 0.5000000000000000 # Y1
+ 0.6809999999999997 0.8189999999999997 0.5000000000000000 # Y2
+ 0.3190000000000002 0.1810000000000001 0.5000000000000000 # Y3
+ 0.8189999999999997 0.3190000000000002 0.5000000000000000 # Y4
+ 0.3830000000000004 0.8829999999999999 0.0000000000000000 # Si1
+ 0.8829999999999999 0.6170000000000003 0.0000000000000000 # Si2
+ 0.1170000000000000 0.3830000000000004 0.0000000000000000 # Si3
+ 0.6170000000000003 0.1170000000000000 0.0000000000000000 # Si4
diff --git a/test/data/tetragonal/POSCAR-128 b/test/data/tetragonal/POSCAR-128
new file mode 100644
index 0000000..20d7569
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-128
@@ -0,0 +1,25 @@
+$cell vectors
+1.0
+ 7.0576966790573437 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.0576966790573437 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.9783953047459910
+ 4 2 12
+Direct
+ 0.4999999999999996 0.0000000000000000 0.2499999999999999 # K1
+ 0.0000000000000000 0.4999999999999996 0.7500000000000001 # K2
+ 0.0000000000000000 0.4999999999999996 0.2499999999999999 # K3
+ 0.4999999999999996 0.0000000000000000 0.7500000000000001 # K4
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Sn1
+ 0.4999999999999996 0.4999999999999996 0.5000000000000002 # Sn2
+ 0.2511000000000000 0.2216999999999998 0.0000000000000000 # Cl1
+ 0.0000000000000000 0.0000000000000000 0.2523000000000003 # Cl2
+ -0.2216999999999998 0.2511000000000000 0.0000000000000000 # Cl3
+ 0.2216999999999998 -0.2511000000000000 0.0000000000000000 # Cl4
+ -0.2511000000000000 -0.2216999999999998 0.0000000000000000 # Cl5
+ 0.0000000000000000 0.0000000000000000 -0.2523000000000003 # Cl6
+ 0.2488999999999996 0.7217000000000001 0.5000000000000002 # Cl7
+ 0.7510999999999997 0.2782999999999998 0.5000000000000002 # Cl8
+ 0.4999999999999996 0.4999999999999996 0.7523000000000001 # Cl9
+ 0.7216999999999992 0.7510999999999997 0.5000000000000002 # Cl10
+ 0.4999999999999996 0.4999999999999996 0.2477000000000000 # Cl11
+ 0.2782999999999998 0.2488999999999996 0.5000000000000002 # Cl12
diff --git a/test/data/tetragonal/POSCAR-128-2 b/test/data/tetragonal/POSCAR-128-2
new file mode 100644
index 0000000..7c496b9
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-128-2
@@ -0,0 +1,41 @@
+$cell vectors
+1.0
+ 7.7435963563127403 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.7435963563127403 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.6402945227526224
+ 2 12 4 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Re1
+ 0.5000000000000003 0.5000000000000003 0.0000000000000000 # Re2
+ 0.0000000000000000 0.0000000000000000 0.2641999999999998 # I1
+ 0.2010000000000000 -0.2870000000000001 0.5000000000000000 # I2
+ 0.0000000000000000 0.0000000000000000 0.7357999999999996 # I3
+ -0.2010000000000000 0.2870000000000001 0.5000000000000000 # I4
+ 0.2870000000000001 0.2010000000000000 0.5000000000000000 # I5
+ -0.2870000000000001 -0.2010000000000000 0.5000000000000000 # I6
+ 0.5000000000000003 0.5000000000000003 0.2358000000000002 # I7
+ 0.7010000000000004 0.7869999999999998 0.0000000000000000 # I8
+ 0.5000000000000003 0.4999999999999997 -0.2358000000000002 # I9
+ 0.2990000000000003 0.2130000000000002 0.0000000000000000 # I10
+ 0.2130000000000002 0.7010000000000004 0.0000000000000000 # I11
+ 0.7869999999999998 0.2990000000000003 0.0000000000000000 # I12
+ 0.0000000000000000 0.5000000000000003 0.2500000000000000 # N1
+ 0.0000000000000000 0.5000000000000003 0.7499999999999999 # N2
+ 0.5000000000000003 0.0000000000000000 0.2500000000000000 # N3
+ 0.5000000000000003 0.0000000000000000 0.7499999999999999 # N4
+ 0.0100000000000002 0.6170000000000002 0.2800000000000001 # H1
+ -0.0100000000000002 0.3830000000000004 0.7199999999999998 # H2
+ 0.3829999999999997 0.0100000000000002 0.2800000000000001 # H3
+ 0.6170000000000002 -0.0100000000000002 0.7199999999999998 # H4
+ -0.0100000000000002 0.3829999999999997 0.2800000000000001 # H5
+ 0.0100000000000002 0.6170000000000002 0.7199999999999998 # H6
+ 0.6170000000000002 -0.0100000000000002 0.2800000000000001 # H7
+ 0.3829999999999997 0.0100000000000002 0.7199999999999998 # H8
+ 0.5099999999999998 -0.1170000000000000 0.2199999999999998 # H9
+ 0.4900000000000002 0.1170000000000000 0.7800000000000000 # H10
+ 0.4900000000000002 0.1170000000000000 0.2199999999999998 # H11
+ 0.5099999999999998 -0.1170000000000000 0.7800000000000000 # H12
+ 0.1170000000000000 0.5099999999999998 0.2199999999999998 # H13
+ -0.1170000000000000 0.4900000000000002 0.7800000000000000 # H14
+ -0.1170000000000000 0.4900000000000002 0.2199999999999998 # H15
+ 0.1170000000000000 0.5099999999999998 0.7800000000000000 # H16
diff --git a/test/data/tetragonal/POSCAR-129 b/test/data/tetragonal/POSCAR-129
new file mode 100644
index 0000000..ffa47f1
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-129
@@ -0,0 +1,11 @@
+$cell vectors
+1.0
+ 4.2819979851401362 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.2819979851401362 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1819970911107696
+ 2 2
+Direct
+ 0.0000000000000000 0.4999999999999994 0.2020000000000000 # K1
+ 0.5000000000000006 0.0000000000000000 0.7979999999999998 # K2
+ 0.0000000000000000 0.5000000000000006 0.7370000000000007 # N1
+ 0.4999999999999994 0.0000000000000000 0.2630000000000001 # N2
diff --git a/test/data/tetragonal/POSCAR-129-2 b/test/data/tetragonal/POSCAR-129-2
new file mode 100644
index 0000000..f0f0df5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-129-2
@@ -0,0 +1,11 @@
+$cell vectors
+1.0
+ 5.0049976449384346 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.0049976449384346 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.8099977366940800
+ 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # In1
+ 0.5000000000000007 0.5000000000000007 0.0000000000000000 # In2
+ 0.0000000000000000 0.5000000000000007 0.3887999999999995 # Bi1
+ 0.5000000000000007 0.0000000000000000 0.6112000000000006 # Bi2
diff --git a/test/data/tetragonal/POSCAR-129-3 b/test/data/tetragonal/POSCAR-129-3
new file mode 100644
index 0000000..3f01309
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-129-3
@@ -0,0 +1,11 @@
+$cell vectors
+1.0
+ 4.2819979851401362 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.2819979851401362 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.1819970911107696
+ 2 2
+Direct
+ 0.0000000000000000 0.5000000000000006 0.7370000000000007 # N1
+ 0.4999999999999994 0.0000000000000000 0.2630000000000001 # N2
+ 0.0000000000000000 0.4999999999999994 0.2020000000000000 # K1
+ 0.5000000000000006 0.0000000000000000 0.7979999999999998 # K2
diff --git a/test/data/tetragonal/POSCAR-130 b/test/data/tetragonal/POSCAR-130
new file mode 100644
index 0000000..dc6c575
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-130
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 5.9239972125105469 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.9239972125105469 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 18.1299914690776909
+ 4 12 20
+Direct
+ 0.0000000000000000 0.5000000000000000 0.1250000000000001 # I1
+ 0.5000000000000000 0.0000000000000000 0.8750000000000000 # I2
+ 0.5000000000000000 0.0000000000000000 0.3749999999999999 # I3
+ 0.0000000000000000 0.5000000000000000 0.6249999999999998 # I4
+ 0.0000000000000000 0.5000000000000000 0.3919999999999998 # K1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # K2
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # K3
+ 0.5000000000000000 0.0000000000000000 0.6080000000000001 # K4
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # K5
+ 0.5000000000000000 0.5000000000000000 0.7499999999999999 # K6
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000 # K7
+ 0.0000000000000000 0.0000000000000000 0.7499999999999999 # K8
+ 0.5000000000000000 0.0000000000000000 0.1079999999999998 # K9
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000 # K10
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # K11
+ 0.0000000000000000 0.5000000000000010 0.8919999999999998 # K12
+ 0.0000000000000000 0.5000000000000000 0.2190000000000000 # O1
+ 0.1239999999999999 0.7780000000000004 0.1199999999999998 # O2
+ 0.5000000000000000 0.0000000000000000 0.7809999999999999 # O3
+ 0.3760000000000001 -0.2780000000000002 0.8799999999999998 # O4
+ -0.2780000000000002 0.6240000000000000 0.1199999999999998 # O5
+ -0.1239999999999999 0.2219999999999999 0.1199999999999998 # O6
+ 0.2780000000000002 0.3760000000000001 0.1199999999999998 # O7
+ 0.7780000000000004 -0.1239999999999999 0.8799999999999998 # O8
+ 0.2219999999999999 0.1239999999999999 0.8799999999999998 # O9
+ 0.5000000000000000 0.0000000000000000 0.2809999999999999 # O10
+ 0.6240000000000000 -0.2780000000000002 0.3799999999999998 # O11
+ 0.3760000000000001 0.2780000000000002 0.3799999999999998 # O12
+ 0.7780000000000004 0.1239999999999999 0.3799999999999998 # O13
+ 0.2219999999999999 -0.1239999999999999 0.3799999999999998 # O14
+ 0.6240000000000000 0.2780000000000002 0.8799999999999998 # O15
+ 0.0000000000000000 0.5000000000000000 0.7190000000000001 # O16
+ -0.1239999999999999 0.7780000000000004 0.6199999999999998 # O17
+ 0.1239999999999999 0.2219999999999999 0.6199999999999998 # O18
+ -0.2780000000000002 0.3760000000000001 0.6199999999999998 # O19
+ 0.2780000000000002 0.6240000000000000 0.6199999999999998 # O20
diff --git a/test/data/tetragonal/POSCAR-130-2 b/test/data/tetragonal/POSCAR-130-2
new file mode 100644
index 0000000..26a1098
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-130-2
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 7.3771965287192449 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.3771965287192449 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 15.1230928839497452
+ 4 4 16 40
+Direct
+ 0.2500000000000002 0.7499999999999998 0.0000000000000000 # Ca1
+ 0.7499999999999998 0.2500000000000002 0.0000000000000000 # Ca2
+ 0.7500000000000006 0.2500000000000002 0.4999999999999999 # Ca3
+ 0.2500000000000002 0.7500000000000006 0.4999999999999999 # Ca4
+ 0.2500000000000002 0.2500000000000002 0.0790999999999999 # Cr1
+ 0.7500000000000006 0.7500000000000006 0.9209000000000001 # Cr2
+ 0.7499999999999998 0.7500000000000006 0.4208999999999997 # Cr3
+ 0.2500000000000002 0.2500000000000002 0.5790999999999999 # Cr4
+ 0.5030000000000002 0.9223000000000002 0.1476000000000000 # Si1
+ 0.4970000000000006 0.0777000000000006 0.8523999999999999 # Si2
+ 0.5777000000000002 0.5030000000000002 0.1476000000000000 # Si3
+ 0.4223000000000006 0.4970000000000006 0.8523999999999999 # Si4
+ 0.9970000000000003 0.5777000000000002 0.1476000000000000 # Si5
+ 0.0030000000000005 0.4223000000000006 0.8523999999999999 # Si6
+ 0.9223000000000002 0.9970000000000003 0.1476000000000000 # Si7
+ 0.0777000000000006 0.0030000000000005 0.8523999999999999 # Si8
+ 0.0030000000000005 0.0776999999999998 0.3524000000000000 # Si9
+ 0.9970000000000003 0.9223000000000002 0.6475999999999998 # Si10
+ 0.4969999999999999 0.4222999999999998 0.3524000000000000 # Si11
+ 0.5030000000000002 0.5777000000000002 0.6475999999999998 # Si12
+ 0.4222999999999998 0.0030000000000005 0.3524000000000000 # Si13
+ 0.5777000000000002 0.9970000000000003 0.6475999999999998 # Si14
+ 0.0776999999999998 0.4969999999999999 0.3524000000000000 # Si15
+ 0.9223000000000002 0.5030000000000002 0.6475999999999998 # Si16
+ 0.4573000000000002 0.9573000000000006 0.2500000000000000 # O1
+ 0.7052000000000007 0.9987000000000006 0.1265000000000001 # O2
+ 0.3574000000000001 0.0013999999999998 0.0821000000000001 # O3
+ 0.5426999999999998 0.0427000000000002 0.7499999999999999 # O4
+ 0.2948000000000002 0.0013000000000002 0.8734999999999997 # O5
+ 0.6426000000000007 0.9986000000000003 0.9178999999999998 # O6
+ 0.5426999999999998 0.4573000000000002 0.2500000000000000 # O7
+ 0.5012999999999997 0.7052000000000007 0.1265000000000001 # O8
+ 0.4985999999999998 0.3574000000000001 0.0821000000000001 # O9
+ 0.4573000000000002 0.5426999999999998 0.7499999999999999 # O10
+ 0.4987000000000003 0.2948000000000002 0.8734999999999997 # O11
+ 0.5014000000000002 0.6426000000000007 0.9178999999999998 # O12
+ 0.0427000000000002 0.5426999999999998 0.2500000000000000 # O13
+ 0.7947999999999998 0.5012999999999997 0.1265000000000001 # O14
+ 0.1426000000000003 0.4985999999999998 0.0821000000000001 # O15
+ 0.9573000000000006 0.4573000000000002 0.7499999999999999 # O16
+ 0.2052000000000002 0.4987000000000003 0.8734999999999997 # O17
+ 0.8574000000000005 0.5014000000000002 0.9178999999999998 # O18
+ 0.9573000000000006 0.0427000000000002 0.2500000000000000 # O19
+ 0.9987000000000006 0.7947999999999998 0.1265000000000001 # O20
+ 0.0013999999999998 0.1426000000000003 0.0821000000000001 # O21
+ 0.0427000000000002 0.9573000000000006 0.7499999999999999 # O22
+ 0.0013000000000002 0.2052000000000002 0.8734999999999997 # O23
+ 0.9986000000000003 0.8574000000000005 0.9178999999999998 # O24
+ 0.2052000000000002 0.0013000000000002 0.3734999999999999 # O25
+ 0.8574000000000005 0.9986000000000003 0.4178999999999998 # O26
+ 0.7948000000000004 0.9987000000000006 0.6265000000000001 # O27
+ 0.1425999999999996 0.0013999999999998 0.5821000000000001 # O28
+ 0.2948000000000002 0.4987000000000003 0.3734999999999999 # O29
+ 0.6426000000000001 0.5014000000000002 0.4178999999999998 # O30
+ 0.7052000000000007 0.5013000000000005 0.6265000000000001 # O31
+ 0.3574000000000001 0.4986000000000005 0.5821000000000001 # O32
+ 0.4987000000000003 0.2052000000000002 0.3734999999999999 # O33
+ 0.5014000000000002 0.8574000000000005 0.4178999999999998 # O34
+ 0.5013000000000005 0.7948000000000004 0.6265000000000001 # O35
+ 0.4986000000000005 0.1426000000000003 0.5821000000000001 # O36
+ 0.0013000000000002 0.2948000000000002 0.3734999999999999 # O37
+ 0.9986000000000003 0.6426000000000001 0.4178999999999998 # O38
+ 0.9987000000000006 0.7052000000000007 0.6265000000000001 # O39
+ 0.0013999999999998 0.3574000000000001 0.5821000000000001 # O40
diff --git a/test/data/tetragonal/POSCAR-131 b/test/data/tetragonal/POSCAR-131
new file mode 100644
index 0000000..8a0cc97
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-131
@@ -0,0 +1,11 @@
+$cell vectors
+1.0
+ 3.0199985789638522 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.0199985789638522 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3099975014231937
+ 2 2
+Direct
+ 0.4999999999999991 0.0000000000000000 0.0000000000000000 # Pd1
+ 0.0000000000000000 0.4999999999999991 0.5000000000000000 # Pd2
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # O1
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # O2
diff --git a/test/data/tetragonal/POSCAR-131-2 b/test/data/tetragonal/POSCAR-131-2
new file mode 100644
index 0000000..6ff2609
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-131-2
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 4.9262976819700732 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.9262976819700732 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2849961015614273
+ 2 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.2500000000000003 # Rb1
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # Rb2
+ 0.5000000000000007 0.5000000000000007 0.0000000000000000 # Cu1
+ 0.5000000000000007 0.5000000000000007 0.4999999999999999 # Cu2
+ 0.1218999999999999 0.5000000000000007 0.4999999999999999 # C1
+ 0.8781000000000002 0.5000000000000007 0.4999999999999999 # C2
+ 0.5000000000000007 0.1218999999999999 0.0000000000000000 # C3
+ 0.5000000000000007 0.8781000000000002 0.0000000000000000 # C4
diff --git a/test/data/tetragonal/POSCAR-132 b/test/data/tetragonal/POSCAR-132
new file mode 100644
index 0000000..ea17704
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-132
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 6.1659970986394388 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.1659970986394388 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.0519971522811993
+ 6 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Li1
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # Li2
+ 0.0000000000000000 0.5000000000000000 0.7500000000000000 # Li4
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Li6
+ 0.5000000000000000 0.0000000000000000 0.7500000000000000 # Li7
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # Li8
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000 # Mn1
+ 0.5000000000000000 0.5000000000000000 0.7500000000000000 # Mn2
+ 0.2500000000000000 0.2500000000000000 0.0000000000000000 # As1
+ 0.7499999999999999 0.7499999999999999 0.0000000000000000 # As2
+ 0.7499999999999999 0.2500000000000000 0.5000000000000000 # As3
+ 0.2500000000000000 0.7499999999999999 0.5000000000000000 # As4
diff --git a/test/data/tetragonal/POSCAR-132-2 b/test/data/tetragonal/POSCAR-132-2
new file mode 100644
index 0000000..8b61b03
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-132-2
@@ -0,0 +1,25 @@
+$cell vectors
+1.0
+ 5.8519972463895558 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 5.8519972463895558 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.2339933023084324
+ 4 2 4 8
+Direct
+ 0.2395999999999999 0.2395999999999999 0.0000000000000000 # Cs1
+ 0.7604000000000002 0.7604000000000002 0.0000000000000000 # Cs2
+ 0.7604000000000002 0.2395999999999999 0.5000000000000000 # Cs3
+ 0.2395999999999999 0.7604000000000002 0.5000000000000000 # Cs4
+ 0.5000000000000000 0.5000000000000000 0.2500000000000000 # Ti1
+ 0.5000000000000000 0.5000000000000000 0.7500000000000002 # Ti2
+ 0.0000000000000000 0.5000000000000000 0.2500000000000000 # Cu1
+ 0.0000000000000000 0.5000000000000000 0.7500000000000002 # Cu2
+ 0.5000000000000000 0.0000000000000000 0.7500000000000002 # Cu3
+ 0.5000000000000000 0.0000000000000000 0.2500000000000000 # Cu4
+ 0.2604000000000001 0.2604000000000001 0.3450000000000001 # Se1
+ 0.7396000000000001 0.2604000000000001 0.8449999999999998 # Se2
+ 0.2604000000000001 0.7396000000000001 0.1550000000000000 # Se3
+ 0.7396000000000001 0.2604000000000001 0.1550000000000000 # Se4
+ 0.2604000000000001 0.7396000000000001 0.8449999999999998 # Se5
+ 0.2604000000000001 0.2604000000000001 0.6550000000000001 # Se6
+ 0.7396000000000001 0.7396000000000001 0.3450000000000001 # Se7
+ 0.7396000000000001 0.7396000000000001 0.6550000000000001 # Se8
diff --git a/test/data/tetragonal/POSCAR-133 b/test/data/tetragonal/POSCAR-133
new file mode 100644
index 0000000..8df7bb0
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-133
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 9.3809955858476446 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 9.3809955858476446 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.6629978058637214
+ 24 8
+Direct
+ 0.4079999999999999 0.9080000000000000 0.0000000000000000 # V1
+ 0.2028000000000000 0.7028000000000001 0.0000000000000000 # V2
+ 0.1486000000000000 0.0000000000000000 0.7500000000000000 # V3
+ 0.0920000000000002 0.5920000000000003 0.5000000000000000 # V4
+ 0.2972000000000001 0.7972000000000001 0.5000000000000000 # V5
+ 0.3514000000000000 0.5000000000000000 0.7500000000000000 # V6
+ 0.5920000000000003 0.9080000000000000 0.5000000000000000 # V7
+ 0.7972000000000001 0.7028000000000001 0.5000000000000000 # V8
+ 0.5000000000000000 0.6486000000000002 0.2500000000000000 # V9
+ 0.5920000000000003 0.0920000000000002 0.0000000000000000 # V10
+ 0.7972000000000001 0.2972000000000001 0.0000000000000000 # V11
+ 0.8514000000000000 0.0000000000000000 0.7500000000000000 # V12
+ 0.4079999999999999 0.0920000000000002 0.5000000000000000 # V13
+ 0.2028000000000000 0.2972000000000001 0.5000000000000000 # V14
+ 0.5000000000000000 0.3514000000000000 0.2500000000000000 # V15
+ 0.9080000000000000 0.5920000000000003 0.0000000000000000 # V16
+ 0.7028000000000001 0.7972000000000001 0.0000000000000000 # V17
+ 0.0000000000000000 0.8514000000000000 0.2500000000000000 # V18
+ 0.0920000000000002 0.4080000000000005 0.0000000000000000 # V19
+ 0.2972000000000001 0.2028000000000000 0.0000000000000000 # V20
+ 0.6486000000000002 0.5000000000000000 0.7500000000000000 # V21
+ 0.9080000000000006 0.4080000000000005 0.5000000000000000 # V22
+ 0.7028000000000001 0.2028000000000000 0.5000000000000000 # V23
+ 0.0000000000000000 0.1486000000000000 0.2500000000000000 # V24
+ 0.2170999999999999 0.0000000000000000 0.2500000000000000 # S1
+ 0.2829000000000002 0.5000000000000000 0.2500000000000000 # S2
+ 0.5000000000000000 0.7171000000000000 0.7500000000000000 # S3
+ 0.7829000000000003 0.0000000000000000 0.2500000000000000 # S4
+ 0.5000000000000000 0.2829000000000002 0.7500000000000000 # S5
+ 0.0000000000000000 0.7829000000000003 0.7500000000000000 # S6
+ 0.7171000000000000 0.5000000000000000 0.2500000000000000 # S7
+ 0.0000000000000000 0.2170999999999999 0.7500000000000000 # S8
diff --git a/test/data/tetragonal/POSCAR-133-2 b/test/data/tetragonal/POSCAR-133-2
new file mode 100644
index 0000000..984c215
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-133-2
@@ -0,0 +1,167 @@
+$cell vectors
+1.0
+ 11.7889944527830615 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.7889944527830615 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 23.6349888787452400
+ 64 96
+Direct
+ 0.7500000000000002 0.2499999999999999 0.1239999999999999 # As1
+ 0.2499999999999999 0.2499999999999999 0.1250999999999999 # As2
+ 0.9959999999999999 0.2499999999999999 0.5000000000000001 # As3
+ 0.9979999999999998 0.2499999999999999 0.0000000000000000 # As4
+ 0.2455000000000002 0.9990999999999995 0.2477000000000000 # As5
+ 0.9959999999999999 0.9989999999999999 0.1269000000000001 # As6
+ 0.2499999999999999 0.7500000000000002 0.8760000000000000 # As7
+ 0.7500000000000002 0.7500000000000002 0.8748999999999999 # As8
+ 0.0040000000000001 0.7500000000000008 0.5000000000000001 # As9
+ 0.0019999999999998 0.7500000000000002 0.0000000000000000 # As10
+ 0.7544999999999998 0.0008999999999999 0.7523000000000000 # As11
+ 0.0040000000000001 0.0010000000000001 0.8731000000000000 # As12
+ 0.2499999999999999 0.7500000000000002 0.6239999999999999 # As13
+ 0.2499999999999999 0.2499999999999999 0.6251000000000000 # As14
+ 0.2499999999999999 0.9959999999999999 0.0000000000000000 # As15
+ 0.2499999999999999 0.9979999999999998 0.5000000000000001 # As16
+ 0.5009000000000002 0.2455000000000002 0.7477000000000003 # As17
+ 0.5010000000000000 0.9959999999999999 0.6268999999999999 # As18
+ 0.7500000000000002 0.2499999999999999 0.3759999999999999 # As19
+ 0.7500000000000002 0.7500000000000002 0.3748999999999998 # As20
+ 0.7500000000000002 0.0040000000000001 0.0000000000000000 # As21
+ 0.7500000000000002 0.0020000000000003 0.5000000000000001 # As22
+ 0.4990999999999998 0.7544999999999998 0.2523000000000001 # As23
+ 0.4990000000000001 0.0040000000000001 0.3731000000000000 # As24
+ 0.5039999999999999 0.2499999999999999 0.5000000000000001 # As25
+ 0.5020000000000001 0.2499999999999999 0.0000000000000000 # As26
+ 0.2545000000000001 0.5008999999999997 0.2477000000000000 # As27
+ 0.5039999999999999 0.5010000000000000 0.1269000000000001 # As28
+ 0.4960000000000002 0.7500000000000002 0.5000000000000001 # As29
+ 0.4979999999999999 0.7500000000000002 0.0000000000000000 # As30
+ 0.7454999999999998 0.4991000000000004 0.7523000000000000 # As31
+ 0.4960000000000002 0.4990000000000001 0.8731000000000000 # As32
+ 0.2499999999999999 0.5039999999999999 0.0000000000000000 # As33
+ 0.2499999999999999 0.5020000000000001 0.5000000000000001 # As34
+ 0.9991000000000001 0.2545000000000001 0.7477000000000003 # As35
+ 0.9989999999999999 0.5039999999999999 0.6268999999999999 # As36
+ 0.7500000000000002 0.4960000000000002 0.0000000000000000 # As37
+ 0.7500000000000002 0.4979999999999999 0.5000000000000001 # As38
+ 0.0009000000000004 0.7454999999999998 0.2523000000000001 # As39
+ 0.0010000000000001 0.4960000000000002 0.3731000000000000 # As40
+ 0.7500000000000002 0.2500000000000003 0.8760000000000000 # As41
+ 0.2499999999999999 0.2500000000000003 0.8748999999999999 # As42
+ 0.2455000000000002 0.5009000000000002 0.7523000000000000 # As43
+ 0.9959999999999999 0.5010000000000003 0.8731000000000000 # As44
+ 0.2499999999999999 0.7500000000000002 0.1239999999999999 # As45
+ 0.7500000000000002 0.7500000000000002 0.1250999999999999 # As46
+ 0.7544999999999998 0.4990999999999998 0.2477000000000000 # As47
+ 0.0040000000000001 0.4989999999999997 0.1269000000000001 # As48
+ 0.2545000000000001 0.9991000000000001 0.7523000000000000 # As49
+ 0.5039999999999999 0.9990000000000003 0.8731000000000000 # As50
+ 0.7454999999999998 0.0008999999999999 0.2477000000000000 # As51
+ 0.4960000000000002 0.0010000000000001 0.1269000000000001 # As52
+ 0.2499999999999999 0.7500000000000002 0.3759999999999999 # As53
+ 0.2499999999999999 0.2499999999999999 0.3748999999999998 # As54
+ 0.9990999999999995 0.2455000000000002 0.2523000000000001 # As55
+ 0.9989999999999999 0.9959999999999999 0.3731000000000000 # As56
+ 0.7500000000000002 0.2499999999999999 0.6239999999999999 # As57
+ 0.7500000000000002 0.7500000000000002 0.6251000000000000 # As58
+ 0.0009000000000004 0.7544999999999998 0.7477000000000003 # As59
+ 0.0010000000000001 0.0040000000000001 0.6268999999999999 # As60
+ 0.5008999999999997 0.2545000000000001 0.2523000000000001 # As61
+ 0.5010000000000000 0.5039999999999999 0.3731000000000000 # As62
+ 0.4990999999999998 0.7454999999999998 0.7477000000000003 # As63
+ 0.4990000000000001 0.4960000000000002 0.6268999999999999 # As64
+ 0.1377000000000000 0.3606999999999998 0.0547000000000000 # Zn1
+ 0.1031000000000000 0.6286999999999999 0.0619000000000000 # Zn2
+ 0.3623999999999999 0.6093000000000001 0.0709000000000001 # Zn3
+ 0.1305000000000000 0.1133000000000000 0.1791999999999999 # Zn4
+ 0.1408999999999999 0.6401999999999997 0.1958999999999999 # Zn5
+ 0.3970000000000000 0.1287999999999999 0.1872999999999999 # Zn6
+ 0.8623000000000000 0.6393000000000002 0.9453000000000001 # Zn7
+ 0.8969000000000001 0.3713000000000001 0.9381000000000002 # Zn8
+ 0.6376000000000001 0.3907000000000004 0.9291000000000003 # Zn9
+ 0.8694999999999999 0.8866999999999999 0.8208000000000000 # Zn10
+ 0.8591000000000001 0.3598000000000003 0.8040999999999999 # Zn11
+ 0.6030000000000001 0.8712000000000003 0.8127000000000001 # Zn12
+ 0.1393000000000000 0.1377000000000000 0.5547000000000000 # Zn13
+ 0.8712999999999999 0.1031000000000000 0.5619000000000000 # Zn14
+ 0.8907000000000002 0.3624000000000004 0.5709000000000000 # Zn15
+ 0.3866999999999999 0.1305000000000000 0.6791999999999999 # Zn16
+ 0.8598000000000001 0.1408999999999999 0.6959000000000000 # Zn17
+ 0.3711999999999999 0.3970000000000000 0.6873000000000000 # Zn18
+ 0.8606999999999997 0.8623000000000000 0.4453000000000000 # Zn19
+ 0.1286999999999997 0.8969000000000001 0.4381000000000001 # Zn20
+ 0.1093000000000003 0.6376000000000001 0.4291000000000000 # Zn21
+ 0.6133000000000003 0.8694999999999999 0.3207999999999999 # Zn22
+ 0.1402000000000004 0.8591000000000001 0.3041000000000001 # Zn23
+ 0.6288000000000001 0.6030000000000001 0.3126999999999999 # Zn24
+ 0.3623000000000002 0.1393000000000000 0.0547000000000000 # Zn25
+ 0.3969000000000001 0.8712999999999999 0.0619000000000000 # Zn26
+ 0.1375999999999998 0.8907000000000002 0.0709000000000001 # Zn27
+ 0.3694999999999997 0.3867000000000003 0.1791999999999999 # Zn28
+ 0.3590999999999998 0.8597999999999997 0.1958999999999999 # Zn29
+ 0.1029999999999998 0.3711999999999999 0.1872999999999999 # Zn30
+ 0.6377000000000003 0.8607000000000000 0.9453000000000001 # Zn31
+ 0.6031000000000003 0.1287000000000001 0.9381000000000002 # Zn32
+ 0.8624000000000002 0.1093000000000003 0.9291000000000003 # Zn33
+ 0.6305000000000004 0.6132999999999997 0.8208000000000000 # Zn34
+ 0.6409000000000002 0.1402000000000004 0.8040999999999999 # Zn35
+ 0.8970000000000001 0.6288000000000001 0.8127000000000001 # Zn36
+ 0.3606999999999998 0.3623000000000002 0.5547000000000000 # Zn37
+ 0.6286999999999999 0.3969000000000001 0.5619000000000000 # Zn38
+ 0.6093000000000001 0.1376000000000003 0.5709000000000000 # Zn39
+ 0.1133000000000000 0.3695000000000002 0.6791999999999999 # Zn40
+ 0.6402000000000001 0.3591000000000003 0.6959000000000000 # Zn41
+ 0.1287999999999999 0.1029999999999998 0.6873000000000000 # Zn42
+ 0.6393000000000002 0.6376999999999998 0.4453000000000000 # Zn43
+ 0.3712999999999997 0.6030999999999997 0.4381000000000001 # Zn44
+ 0.3907000000000004 0.8624000000000002 0.4291000000000000 # Zn45
+ 0.8866999999999999 0.6305000000000004 0.3207999999999999 # Zn46
+ 0.3597999999999999 0.6409000000000002 0.3041000000000001 # Zn47
+ 0.8711999999999999 0.8970000000000001 0.3126999999999999 # Zn48
+ 0.1377000000000000 0.1393000000000000 0.9453000000000001 # Zn49
+ 0.1031000000000000 0.8712999999999999 0.9381000000000002 # Zn50
+ 0.3624000000000004 0.8907000000000002 0.9291000000000003 # Zn51
+ 0.1305000000000000 0.3867000000000003 0.8208000000000000 # Zn52
+ 0.1408999999999999 0.8598000000000001 0.8040999999999999 # Zn53
+ 0.3970000000000000 0.3711999999999999 0.8127000000000001 # Zn54
+ 0.8623000000000000 0.8607000000000000 0.0547000000000000 # Zn55
+ 0.8969000000000001 0.1287000000000001 0.0619000000000000 # Zn56
+ 0.6376000000000001 0.1092999999999999 0.0709000000000001 # Zn57
+ 0.8694999999999999 0.6133000000000003 0.1791999999999999 # Zn58
+ 0.8591000000000001 0.1401999999999999 0.1958999999999999 # Zn59
+ 0.6030000000000001 0.6288000000000001 0.1872999999999999 # Zn60
+ 0.3623000000000002 0.3607000000000002 0.9453000000000001 # Zn61
+ 0.3969000000000001 0.6287000000000004 0.9381000000000002 # Zn62
+ 0.1376000000000003 0.6093000000000001 0.9291000000000003 # Zn63
+ 0.3695000000000002 0.1133000000000005 0.8208000000000000 # Zn64
+ 0.3591000000000003 0.6401999999999997 0.8040999999999999 # Zn65
+ 0.1030000000000003 0.1287999999999999 0.8127000000000001 # Zn66
+ 0.6376999999999998 0.6392999999999998 0.0547000000000000 # Zn67
+ 0.6030999999999997 0.3713000000000001 0.0619000000000000 # Zn68
+ 0.8624000000000002 0.3907000000000000 0.0709000000000001 # Zn69
+ 0.6305000000000004 0.8866999999999999 0.1791999999999999 # Zn70
+ 0.6408999999999997 0.3597999999999999 0.1958999999999999 # Zn71
+ 0.8970000000000001 0.8711999999999999 0.1872999999999999 # Zn72
+ 0.3606999999999998 0.1377000000000000 0.4453000000000000 # Zn73
+ 0.6286999999999999 0.1031000000000000 0.4381000000000001 # Zn74
+ 0.6092999999999996 0.3623999999999999 0.4291000000000000 # Zn75
+ 0.1132999999999996 0.1305000000000000 0.3207999999999999 # Zn76
+ 0.6401999999999997 0.1408999999999999 0.3041000000000001 # Zn77
+ 0.1287999999999999 0.3970000000000000 0.3126999999999999 # Zn78
+ 0.6393000000000002 0.8623000000000000 0.5547000000000000 # Zn79
+ 0.3713000000000001 0.8969000000000001 0.5619000000000000 # Zn80
+ 0.3907000000000004 0.6376000000000001 0.5709000000000000 # Zn81
+ 0.8866999999999999 0.8694999999999999 0.6791999999999999 # Zn82
+ 0.3597999999999999 0.8591000000000001 0.6959000000000000 # Zn83
+ 0.8711999999999999 0.6030000000000001 0.6873000000000000 # Zn84
+ 0.1393000000000000 0.3623000000000002 0.4453000000000000 # Zn85
+ 0.8712999999999999 0.3969000000000001 0.4381000000000001 # Zn86
+ 0.8906999999999997 0.1375999999999998 0.4291000000000000 # Zn87
+ 0.3866999999999999 0.3695000000000002 0.3207999999999999 # Zn88
+ 0.8597999999999997 0.3591000000000003 0.3041000000000001 # Zn89
+ 0.3711999999999999 0.1030000000000003 0.3126999999999999 # Zn90
+ 0.8606999999999997 0.6376999999999998 0.5547000000000000 # Zn91
+ 0.1287000000000001 0.6031000000000003 0.5619000000000000 # Zn92
+ 0.1092999999999999 0.8624000000000002 0.5709000000000000 # Zn93
+ 0.6133000000000003 0.6305000000000004 0.6791999999999999 # Zn94
+ 0.1402000000000004 0.6409000000000002 0.6959000000000000 # Zn95
+ 0.6288000000000001 0.8970000000000001 0.6873000000000000 # Zn96
diff --git a/test/data/tetragonal/POSCAR-134 b/test/data/tetragonal/POSCAR-134
new file mode 100644
index 0000000..844af87
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-134
@@ -0,0 +1,57 @@
+$cell vectors
+1.0
+ 8.4269960347444961 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4269960347444961 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.4919931809086542
+ 8 26 16
+Direct
+ 0.2500000000000002 0.2500000000000002 0.0000000000000000 # Tl1
+ 0.2500000000000002 0.2500000000000002 0.2500000000000000 # Tl2
+ 0.7499999999999999 0.7499999999999999 0.0000000000000000 # Tl3
+ 0.7499999999999999 0.7499999999999999 0.7500000000000001 # Tl4
+ 0.2500000000000002 0.2500000000000002 0.5000000000000004 # Tl5
+ 0.2500000000000002 0.2500000000000002 0.7500000000000001 # Tl6
+ 0.7499999999999999 0.7499999999999999 0.5000000000000004 # Tl7
+ 0.7499999999999999 0.7499999999999999 0.2500000000000000 # Tl8
+ 0.2500000000000002 0.7499999999999999 0.2500000000000000 # Cu1
+ 0.3760000000000003 0.6240000000000004 0.9631999999999999 # Cu2
+ 0.1309999999999999 0.8690000000000002 0.4237999999999998 # Cu3
+ 0.8679999999999998 0.1320000000000003 0.2080000000000000 # Cu4
+ 0.7499999999999999 0.2500000000000002 0.7500000000000001 # Cu5
+ 0.6239999999999998 0.3760000000000003 0.0368000000000002 # Cu6
+ 0.8690000000000002 0.1309999999999999 0.5761999999999998 # Cu7
+ 0.1320000000000003 0.8679999999999998 0.7920000000000000 # Cu8
+ 0.8760000000000000 0.3760000000000003 0.4632000000000003 # Cu9
+ 0.6309999999999996 0.1309999999999999 0.9238000000000000 # Cu10
+ 0.3680000000000001 0.8679999999999998 0.7080000000000002 # Cu11
+ 0.1240000000000001 0.6240000000000004 0.5367999999999998 # Cu12
+ 0.3689999999999998 0.8690000000000002 0.0761999999999998 # Cu13
+ 0.6320000000000000 0.1320000000000003 0.2919999999999999 # Cu14
+ 0.1240000000000001 0.8760000000000000 0.9631999999999999 # Cu15
+ 0.3689999999999998 0.6310000000000002 0.4237999999999998 # Cu16
+ 0.6320000000000000 0.3680000000000001 0.2080000000000000 # Cu17
+ 0.8760000000000000 0.1240000000000001 0.0368000000000002 # Cu18
+ 0.6310000000000002 0.3689999999999998 0.5761999999999998 # Cu19
+ 0.3680000000000001 0.6320000000000000 0.7920000000000000 # Cu20
+ 0.6239999999999998 0.1240000000000001 0.4632000000000003 # Cu21
+ 0.8690000000000002 0.3689999999999998 0.9238000000000000 # Cu22
+ 0.1320000000000003 0.6320000000000000 0.7080000000000002 # Cu23
+ 0.3759999999999997 0.8760000000000000 0.5367999999999998 # Cu24
+ 0.1309999999999999 0.6309999999999996 0.0761999999999998 # Cu25
+ 0.8679999999999998 0.3680000000000001 0.2919999999999999 # Cu26
+ 0.4262999999999999 0.5737000000000001 0.1372000000000002 # Te1
+ 0.5833000000000000 0.4167000000000002 0.3823000000000002 # Te2
+ 0.5737000000000001 0.4262999999999999 0.8628000000000000 # Te3
+ 0.4167000000000002 0.5833000000000000 0.6176999999999999 # Te4
+ 0.9263000000000002 0.4262999999999999 0.6372000000000001 # Te5
+ 0.0833000000000002 0.5833000000000000 0.8822999999999999 # Te6
+ 0.0737000000000004 0.5737000000000001 0.3627999999999999 # Te7
+ 0.9167000000000000 0.4167000000000002 0.1176999999999999 # Te8
+ 0.0736999999999998 0.9262999999999998 0.1372000000000002 # Te9
+ 0.9167000000000000 0.0833000000000002 0.3823000000000002 # Te10
+ 0.9263000000000002 0.0737000000000004 0.8628000000000000 # Te11
+ 0.0833000000000002 0.9167000000000000 0.6176999999999999 # Te12
+ 0.5737000000000001 0.0737000000000004 0.6372000000000001 # Te13
+ 0.4167000000000002 0.9167000000000000 0.8822999999999999 # Te14
+ 0.4262999999999999 0.9263000000000002 0.3627999999999999 # Te15
+ 0.5833000000000000 0.0833000000000002 0.1176999999999999 # Te16
diff --git a/test/data/tetragonal/POSCAR-134-2 b/test/data/tetragonal/POSCAR-134-2
new file mode 100644
index 0000000..719d923
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-134-2
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 6.1689970972278161 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.1689970972278161 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.2129970765239761
+ 4 6 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ag1
+ 0.4999999999999999 0.0000000000000000 0.5000000000000004 # Ag2
+ 0.4999999999999999 0.4999999999999999 0.0000000000000000 # Ag3
+ 0.0000000000000000 0.4999999999999999 0.5000000000000004 # Ag4
+ 0.0000000000000000 0.0000000000000000 0.5000000000000004 # Li1
+ 0.7499999999999996 0.2499999999999995 0.2499999999999998 # Li2
+ 0.2500000000000003 0.7499999999999996 0.7500000000000003 # Li3
+ 0.4999999999999999 0.0000000000000000 0.0000000000000000 # Li4
+ 0.4999999999999999 0.4999999999999999 0.5000000000000004 # Li5
+ 0.0000000000000000 0.4999999999999999 0.0000000000000000 # Li6
+ 0.2499999999999995 0.2499999999999995 0.2499999999999998 # Ge1
+ 0.2499999999999995 0.7499999999999996 0.2499999999999998 # Ge2
+ 0.7499999999999996 0.7499999999999996 0.7500000000000003 # Ge3
+ 0.7499999999999996 0.2500000000000003 0.7500000000000003 # Ge4
+ 0.2499999999999995 0.2500000000000003 0.7500000000000003 # Ge5
+ 0.7499999999999996 0.7499999999999996 0.2499999999999998 # Ge6
diff --git a/test/data/tetragonal/POSCAR-135 b/test/data/tetragonal/POSCAR-135
new file mode 100644
index 0000000..3a0d755
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-135
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 8.5899959580461864 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.5899959580461864 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9129972176865051
+ 4 8 16
+Direct
+ 0.0000000000000000 0.5000000000000003 0.2499999999999998 # Fe1
+ 0.0000000000000000 0.5000000000000003 0.7500000000000003 # Fe2
+ 0.5000000000000003 1.0000000000000000 0.7500000000000003 # Fe3
+ 0.5000000000000003 1.0000000000000000 0.2499999999999998 # Fe4
+ 0.1763000000000002 0.1657999999999999 0.0000000000000000 # Sb1
+ 0.8236999999999998 0.8341999999999999 0.0000000000000000 # Sb2
+ 0.8341999999999999 0.1763000000000002 0.5000000000000006 # Sb3
+ 0.1657999999999999 0.8236999999999998 0.5000000000000006 # Sb4
+ 0.6762999999999998 0.3342000000000003 0.0000000000000000 # Sb5
+ 0.3237000000000001 0.6658000000000002 0.0000000000000000 # Sb6
+ 0.6658000000000002 0.6762999999999998 0.5000000000000006 # Sb7
+ 0.3341999999999998 0.3237000000000001 0.5000000000000006 # Sb8
+ 0.6793999999999999 0.1794000000000003 0.2499999999999998 # O1
+ 0.1017999999999998 0.6411999999999999 0.0000000000000000 # O2
+ 0.3205999999999999 0.8206000000000003 0.7500000000000003 # O3
+ 0.8982000000000001 0.3588000000000000 0.0000000000000000 # O4
+ 0.8206000000000003 0.6793999999999999 0.7500000000000003 # O5
+ 0.3588000000000000 0.1017999999999998 0.5000000000000006 # O6
+ 0.1794000000000003 0.3205999999999999 0.2499999999999998 # O7
+ 0.6411999999999999 0.8982000000000001 0.5000000000000006 # O8
+ 0.3205999999999999 0.8206000000000003 0.2499999999999998 # O9
+ 0.6793999999999999 0.1794000000000003 0.7500000000000003 # O10
+ 0.1794000000000003 0.3205999999999999 0.7500000000000003 # O11
+ 0.8206000000000003 0.6793999999999999 0.2499999999999998 # O12
+ 0.6018000000000001 0.8588000000000002 0.0000000000000000 # O13
+ 0.3981999999999998 0.1411999999999997 0.0000000000000000 # O14
+ 0.1412000000000003 0.6018000000000001 0.5000000000000006 # O15
+ 0.8588000000000002 0.3981999999999998 0.5000000000000006 # O16
diff --git a/test/data/tetragonal/POSCAR-135-2 b/test/data/tetragonal/POSCAR-135-2
new file mode 100644
index 0000000..3ed48e0
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-135-2
@@ -0,0 +1,35 @@
+$cell vectors
+1.0
+ 8.5269959876903165 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.5269959876903165 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.9419972040407956
+ 4 8 16
+Direct
+ 0.0000000000000000 0.5000000000000000 0.2499999999999999 # Zn1
+ 0.0000000000000000 0.5000000000000000 0.7499999999999999 # Zn2
+ 0.5000000000000000 0.0000000000000000 0.2499999999999999 # Zn3
+ 0.5000000000000000 0.0000000000000000 0.7499999999999999 # Zn4
+ 0.3221000000000001 0.3361999999999997 0.0000000000000000 # Sb1
+ 0.6779000000000002 0.6637999999999999 0.0000000000000000 # Sb2
+ 0.3362000000000003 0.6779000000000002 0.5000000000000000 # Sb3
+ 0.6637999999999999 0.3221000000000001 0.5000000000000000 # Sb4
+ 0.8221000000000002 0.1637999999999998 0.0000000000000000 # Sb5
+ 0.1779000000000000 0.8362000000000005 0.0000000000000000 # Sb6
+ 0.8362000000000005 0.8221000000000002 0.5000000000000000 # Sb7
+ 0.1637999999999998 0.1779000000000000 0.5000000000000000 # Sb8
+ 0.0962999999999999 0.3599999999999999 0.0000000000000000 # O1
+ 0.1803999999999999 0.6804000000000000 0.2499999999999999 # O2
+ 0.9037000000000002 0.6400000000000005 0.0000000000000000 # O3
+ 0.8196000000000003 0.3196000000000002 0.7499999999999999 # O4
+ 0.3196000000000002 0.1803999999999999 0.7499999999999999 # O5
+ 0.6804000000000000 0.8195999999999996 0.2499999999999999 # O6
+ 0.8196000000000003 0.3196000000000002 0.2499999999999999 # O7
+ 0.1803999999999999 0.6804000000000000 0.7499999999999999 # O8
+ 0.3599999999999999 0.9037000000000002 0.5000000000000000 # O9
+ 0.6804000000000000 0.8196000000000003 0.7499999999999999 # O10
+ 0.6400000000000005 0.0962999999999999 0.5000000000000000 # O11
+ 0.3196000000000002 0.1803999999999999 0.2499999999999999 # O12
+ 0.5962999999999999 0.1400000000000002 0.0000000000000000 # O13
+ 0.4037000000000002 0.8600000000000001 0.0000000000000000 # O14
+ 0.8600000000000001 0.5962999999999999 0.5000000000000000 # O15
+ 0.1400000000000002 0.4037000000000002 0.5000000000000000 # O16
diff --git a/test/data/tetragonal/POSCAR-136 b/test/data/tetragonal/POSCAR-136
new file mode 100644
index 0000000..72d20f5
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-136
@@ -0,0 +1,13 @@
+$cell vectors
+1.0
+ 4.3982979304161285 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.3982979304161285 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.8729986481334930
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Mn1
+ 0.5000000000000000 0.5000000000000000 0.4999999999999992 # Mn2
+ 0.3050999999999995 0.3050999999999995 0.0000000000000000 # O1
+ 0.6949000000000006 0.6949000000000006 0.0000000000000000 # O2
+ 0.1949000000000005 0.8050999999999996 0.4999999999999992 # O3
+ 0.8050999999999996 0.1949000000000005 0.4999999999999992 # O4
diff --git a/test/data/tetragonal/POSCAR-136-2 b/test/data/tetragonal/POSCAR-136-2
new file mode 100644
index 0000000..05c754a
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-136-2
@@ -0,0 +1,13 @@
+$cell vectors
+1.0
+ 4.5844978428012535 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.5844978428012535 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.9532986103489849
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ti1
+ 0.5000000000000000 0.5000000000000000 0.5000000000000010 # Ti2
+ 0.3049000000000000 0.3049000000000000 0.0000000000000000 # O1
+ 0.6951000000000001 0.6951000000000001 0.0000000000000000 # O2
+ 0.1951000000000000 0.8049000000000001 0.5000000000000010 # O3
+ 0.8049000000000001 0.1951000000000000 0.5000000000000010 # O4
diff --git a/test/data/tetragonal/POSCAR-136-3 b/test/data/tetragonal/POSCAR-136-3
new file mode 100644
index 0000000..6193002
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-136-3
@@ -0,0 +1,20 @@
+POSCAR generated by cell class
+ 1.00000000000000
+ 4.2266540199664249 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.2266540199664249 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 2.6888359272289208
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.3067891334429594 0.3067891334429594 0.0000000000000000
+ 0.6932108665570406 0.6932108665570406 0.0000000000000000
+ 0.1932108665570406 0.8067891334429594 0.5000000000000000
+ 0.8067891334429594 0.1932108665570406 0.5000000000000000
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/tetragonal/POSCAR-136-4 b/test/data/tetragonal/POSCAR-136-4
new file mode 100644
index 0000000..56eeb20
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-136-4
@@ -0,0 +1,19 @@
+$cell vectors
+1.0
+ 4.6685978032286863 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.6685978032286863 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2149975461246667
+ 6 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.4999999999999994 # Li1
+ 0.0000000000000000 0.5000000000000000 0.2499999999999997 # Li2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Li3
+ 0.0000000000000000 0.5000000000000000 0.7499999999999991 # Li4
+ 0.5000000000000000 0.0000000000000000 0.2499999999999997 # Li5
+ 0.5000000000000000 0.0000000000000000 0.7499999999999991 # Li6
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # B1
+ 0.5000000000000000 0.5000000000000000 0.4999999999999994 # B2
+ 0.2962000000000005 0.2962000000000005 0.0000000000000000 # N1
+ 0.2037999999999995 -0.2037999999999995 0.4999999999999994 # N2
+ 0.7038000000000006 0.7038000000000006 0.0000000000000000 # N3
+ -0.2037999999999995 0.2037999999999995 0.4999999999999994 # N4
diff --git a/test/data/tetragonal/POSCAR-136-5 b/test/data/tetragonal/POSCAR-136-5
new file mode 100644
index 0000000..3cd563d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-136-5
@@ -0,0 +1,11 @@
+$cell vectors
+1.0
+ 6.7539968219608788 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.7539968219608788 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.1099980660733237
+ 4
+Direct
+ 0.2199999999999999 0.2799999999999997 0.0000000000000000 # S1
+ 0.7199999999999995 0.2199999999999999 0.5000000000000000 # S2
+ 0.7799999999999999 0.7199999999999995 0.0000000000000000 # S3
+ 0.2799999999999997 0.7799999999999999 0.5000000000000000 # S4
diff --git a/test/data/tetragonal/POSCAR-137 b/test/data/tetragonal/POSCAR-137
new file mode 100644
index 0000000..7fb3163
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-137
@@ -0,0 +1,23 @@
+$cell vectors
+1.0
+ 8.0899961933170719 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.0899961933170719 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.4499974355473464
+ 8 8
+Direct
+ 0.1050000000000002 0.0000000000000000 0.3850000000000005 # B1
+ 0.3950000000000001 0.4999999999999997 0.1150000000000000 # B2
+ 0.4999999999999997 0.6049999999999999 -0.1150000000000000 # B3
+ -0.1050000000000002 0.0000000000000000 0.3850000000000005 # B4
+ 0.4999999999999997 0.3950000000000001 -0.1150000000000000 # B5
+ 0.0000000000000000 -0.1050000000000002 0.6150000000000005 # B6
+ 0.0000000000000000 0.1050000000000002 0.6150000000000005 # B7
+ 0.6049999999999999 0.4999999999999997 0.1150000000000000 # B8
+ 0.2750000000000001 0.0000000000000000 0.2040000000000003 # Cl1
+ 0.2249999999999997 0.4999999999999997 0.2960000000000002 # Cl2
+ 0.4999999999999997 0.7750000000000004 -0.2960000000000002 # Cl3
+ -0.2750000000000001 0.0000000000000000 0.2040000000000003 # Cl4
+ 0.4999999999999997 0.2249999999999997 -0.2960000000000002 # Cl5
+ 0.0000000000000000 -0.2750000000000001 0.7960000000000007 # Cl6
+ 0.0000000000000000 0.2750000000000001 0.7960000000000007 # Cl7
+ 0.7750000000000004 0.4999999999999997 0.2960000000000002 # Cl8
diff --git a/test/data/tetragonal/POSCAR-137-2 b/test/data/tetragonal/POSCAR-137-2
new file mode 100644
index 0000000..c488cc8
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-137-2
@@ -0,0 +1,13 @@
+$cell vectors
+1.0
+ 3.6399982872279524 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 3.6399982872279524 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.2699975202448686
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Zr1
+ 0.5000000000000000 0.5000000000000000 0.4999999999999995 # Zr2
+ 0.0000000000000000 0.5000000000000000 0.1879999999999995 # O1
+ 0.5000000000000000 0.0000000000000000 0.3119999999999999 # O2
+ 0.5000000000000000 0.0000000000000000 0.8119999999999994 # O3
+ 0.0000000000000000 0.5000000000000000 0.6879999999999999 # O4
diff --git a/test/data/tetragonal/POSCAR-137-3 b/test/data/tetragonal/POSCAR-137-3
new file mode 100644
index 0000000..fa96040
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-137-3
@@ -0,0 +1,20 @@
+POSCAR generated by cell class
+ 1.00000000000000
+ 2.2423146612608544 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 2.2423146612608535 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.8505089201520102
+ 2 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.1174487711550606
+ 0.0000000000000000 0.5000000000000000 0.3825512288449394
+ 0.5000000000000000 0.0000000000000000 0.6174487711550606
+ 0.0000000000000000 0.5000000000000000 0.8825512288449394
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/tetragonal/POSCAR-138 b/test/data/tetragonal/POSCAR-138
new file mode 100644
index 0000000..0ad8090
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-138
@@ -0,0 +1,55 @@
+$cell vectors
+1.0
+ 8.4335960316389205 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.4335960316389205 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.6781963870861745
+ 16 32
+Direct
+ 0.1892999999999997 0.0175999999999997 0.1178000000000001 # V1
+ 0.3107000000000000 0.4823999999999999 0.3822000000000002 # V2
+ 0.4823999999999999 0.6893000000000000 0.6177999999999996 # V3
+ 0.8107000000000003 0.9823999999999996 0.1178000000000001 # V4
+ 0.5176000000000001 0.3107000000000000 0.6177999999999996 # V5
+ 0.0176000000000004 0.8107000000000003 0.8821999999999997 # V6
+ 0.9823999999999996 0.1893000000000004 0.8821999999999997 # V7
+ 0.6893000000000000 0.4823999999999999 0.8821999999999997 # V8
+ 0.3107000000000000 0.5176000000000001 0.8821999999999997 # V9
+ 0.0175999999999997 0.1892999999999997 0.3822000000000002 # V10
+ 0.9823999999999996 0.8106999999999998 0.3822000000000002 # V11
+ 0.6893000000000000 0.5176000000000001 0.3822000000000002 # V12
+ 0.8106999999999998 0.0176000000000004 0.6177999999999996 # V13
+ 0.1893000000000004 0.9823999999999996 0.6177999999999996 # V14
+ 0.4823999999999999 0.3107000000000000 0.1178000000000001 # V15
+ 0.5176000000000001 0.6893000000000000 0.1178000000000001 # V16
+ 0.1633999999999998 0.6634000000000001 0.3416000000000002 # O1
+ 0.1352000000000001 0.6351999999999998 0.8929999999999996 # O2
+ 0.1674000000000000 0.0012000000000003 0.3742999999999997 # O3
+ 0.3365999999999999 0.8365999999999996 0.1584000000000000 # O4
+ 0.3648000000000002 0.8648000000000000 0.6069999999999998 # O5
+ 0.3326000000000003 0.4988000000000000 0.1256999999999999 # O6
+ 0.8365999999999996 0.6634000000000001 0.8415999999999998 # O7
+ 0.8648000000000000 0.6351999999999998 0.3930000000000000 # O8
+ 0.4988000000000000 0.6673999999999997 0.8743000000000000 # O9
+ 0.8365999999999996 0.3365999999999999 0.3416000000000002 # O10
+ 0.8648000000000000 0.3648000000000002 0.8929999999999996 # O11
+ 0.8326000000000000 0.9987999999999997 0.3742999999999997 # O12
+ 0.1633999999999998 0.3365999999999999 0.8415999999999998 # O13
+ 0.1352000000000001 0.3648000000000002 0.3930000000000000 # O14
+ 0.5012000000000001 0.3326000000000003 0.8743000000000000 # O15
+ 0.6634000000000001 0.8366000000000002 0.6583999999999995 # O16
+ 0.6351999999999998 0.8648000000000000 0.1070000000000003 # O17
+ 0.0012000000000003 0.8326000000000000 0.6256999999999995 # O18
+ 0.3365999999999999 0.1633999999999998 0.6583999999999995 # O19
+ 0.3647999999999997 0.1352000000000001 0.1070000000000003 # O20
+ 0.9987999999999997 0.1674000000000000 0.6256999999999995 # O21
+ 0.6673999999999997 0.4988000000000000 0.6256999999999995 # O22
+ 0.3326000000000003 0.5012000000000001 0.6256999999999995 # O23
+ 0.6634000000000001 0.1633999999999998 0.1584000000000000 # O24
+ 0.6351999999999998 0.1352000000000001 0.6069999999999998 # O25
+ 0.0012000000000003 0.1674000000000000 0.1256999999999999 # O26
+ 0.9987999999999997 0.8326000000000000 0.1256999999999999 # O27
+ 0.6673999999999997 0.5012000000000001 0.1256999999999999 # O28
+ 0.8326000000000000 0.0012000000000003 0.8743000000000000 # O29
+ 0.1674000000000000 0.9987999999999997 0.8743000000000000 # O30
+ 0.4988000000000000 0.3326000000000003 0.3742999999999997 # O31
+ 0.5012000000000001 0.6673999999999997 0.3742999999999997 # O32
diff --git a/test/data/tetragonal/POSCAR-138-2 b/test/data/tetragonal/POSCAR-138-2
new file mode 100644
index 0000000..fc991e0
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-138-2
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 4.3499979531432977 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.3499979531432977 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.7299935394614856
+ 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Au1
+ 0.5000000000000000 0.0000000000000000 0.4999999999999999 # Au2
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # Au3
+ 0.0000000000000000 0.5000000000000000 0.4999999999999999 # Au4
+ 0.2500000000000001 0.2500000000000001 0.1530000000000000 # I1
+ 0.7500000000000001 0.7500000000000001 0.8469999999999996 # I2
+ 0.2500000000000001 0.2500000000000001 0.6529999999999999 # I3
+ 0.7500000000000001 0.7500000000000001 0.3469999999999999 # I4
diff --git a/test/data/tetragonal/POSCAR-139 b/test/data/tetragonal/POSCAR-139
new file mode 100644
index 0000000..93698fd
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-139
@@ -0,0 +1,91 @@
+$cell vectors
+1.0
+ 11.9399943817312515 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.9399943817312515 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.3999918125731838
+ 44 40
+Direct
+ 0.0000000000000000 0.2520000000000001 0.1890000000000001 # Ca1
+ 0.1670000000000000 0.1670000000000000 0.0000000000000000 # Ca2
+ 0.0000000000000000 0.0000000000000000 0.3370000000000000 # Ca3
+ 0.0000000000000000 0.3380000000000005 0.3959999999999999 # Ca4
+ 0.5000000000000000 0.7520000000000006 0.6889999999999999 # Ca5
+ 0.6670000000000005 0.6670000000000005 0.4999999999999998 # Ca6
+ 0.5000000000000000 0.8380000000000004 0.8959999999999998 # Ca7
+ 0.0000000000000000 0.7480000000000004 0.8109999999999997 # Ca8
+ 0.0000000000000000 0.0000000000000000 0.6629999999999997 # Ca9
+ 0.0000000000000000 0.6620000000000001 0.6039999999999999 # Ca10
+ 0.5000000000000000 0.2480000000000000 0.3110000000000001 # Ca11
+ 0.5000000000000000 0.1620000000000001 0.1040000000000000 # Ca12
+ 0.7480000000000000 0.0000000000000000 0.1890000000000001 # Ca13
+ 0.8330000000000001 0.1670000000000000 0.0000000000000000 # Ca14
+ 0.6620000000000001 0.0000000000000000 0.3959999999999999 # Ca15
+ 0.2480000000000000 0.5000000000000000 0.6889999999999999 # Ca16
+ 0.3330000000000001 0.6670000000000005 0.4999999999999998 # Ca17
+ 0.1620000000000001 0.5000000000000000 0.8959999999999998 # Ca18
+ 0.2520000000000001 0.0000000000000000 0.8109999999999997 # Ca19
+ 0.1670000000000000 0.8330000000000001 0.0000000000000000 # Ca20
+ 0.3380000000000005 0.0000000000000000 0.6039999999999999 # Ca21
+ 0.7519999999999999 0.5000000000000000 0.3110000000000001 # Ca22
+ 0.6670000000000005 0.3330000000000001 0.4999999999999998 # Ca23
+ 0.5000000000000000 0.5000000000000000 0.1629999999999999 # Ca24
+ 0.8379999999999999 0.5000000000000000 0.1040000000000000 # Ca25
+ 0.0000000000000000 0.7480000000000000 0.1890000000000001 # Ca26
+ 0.8330000000000001 0.8330000000000001 0.0000000000000000 # Ca27
+ 0.0000000000000000 0.6620000000000001 0.3959999999999999 # Ca28
+ 0.5000000000000000 0.2480000000000000 0.6889999999999999 # Ca29
+ 0.3330000000000001 0.3330000000000001 0.4999999999999998 # Ca30
+ 0.5000000000000000 0.5000000000000000 0.8369999999999997 # Ca31
+ 0.5000000000000000 0.1620000000000001 0.8959999999999998 # Ca32
+ 0.0000000000000000 0.2520000000000001 0.8109999999999997 # Ca33
+ 0.0000000000000000 0.3380000000000005 0.6039999999999999 # Ca34
+ 0.5000000000000000 0.7519999999999999 0.3110000000000001 # Ca35
+ 0.5000000000000000 0.8379999999999999 0.1040000000000000 # Ca36
+ 0.2520000000000001 0.0000000000000000 0.1890000000000001 # Ca37
+ 0.3380000000000000 0.0000000000000000 0.3959999999999999 # Ca38
+ 0.7519999999999999 0.5000000000000000 0.6889999999999999 # Ca39
+ 0.8380000000000004 0.5000000000000000 0.8959999999999998 # Ca40
+ 0.7480000000000000 0.0000000000000000 0.8109999999999997 # Ca41
+ 0.6620000000000001 0.0000000000000000 0.6039999999999999 # Ca42
+ 0.2480000000000000 0.5000000000000000 0.3110000000000001 # Ca43
+ 0.1620000000000001 0.5000000000000000 0.1040000000000000 # Ca44
+ 0.3463999999999999 0.0000000000000000 0.0000000000000000 # Sb1
+ 0.0000000000000000 0.0000000000000000 0.1295999999999998 # Sb2
+ 0.3744000000000001 0.3744000000000001 0.0000000000000000 # Sb3
+ 0.0000000000000000 0.5000000000000000 0.2500000000000001 # Sb4
+ 0.2059999999999999 0.2059999999999999 0.3232000000000000 # Sb5
+ 0.8464000000000004 0.5000000000000000 0.4999999999999998 # Sb6
+ 0.5000000000000000 0.5000000000000000 0.6296000000000000 # Sb7
+ -0.1255999999999999 -0.1255999999999999 0.4999999999999998 # Sb8
+ 0.5000000000000000 0.0000000000000000 0.7500000000000000 # Sb9
+ 0.7060000000000000 0.7060000000000004 0.8231999999999999 # Sb10
+ 0.0000000000000000 0.0000000000000000 0.8704000000000000 # Sb11
+ 0.0000000000000000 0.5000000000000000 0.7500000000000000 # Sb12
+ 0.7940000000000000 0.7940000000000000 0.6768000000000002 # Sb13
+ 0.1536000000000001 0.5000000000000000 0.4999999999999998 # Sb14
+ 0.1255999999999999 0.1255999999999999 0.4999999999999998 # Sb15
+ 0.2940000000000001 0.2940000000000001 0.1767999999999999 # Sb16
+ 0.0000000000000000 0.3463999999999999 0.0000000000000000 # Sb17
+ 0.6255999999999999 0.3744000000000001 0.0000000000000000 # Sb18
+ 0.7940000000000000 0.2059999999999999 0.3232000000000000 # Sb19
+ 0.5000000000000000 0.8464000000000004 0.4999999999999998 # Sb20
+ 0.1255999999999999 -0.1255999999999999 0.4999999999999998 # Sb21
+ 0.2940000000000001 0.7060000000000004 0.8231999999999999 # Sb22
+ 0.0000000000000000 0.6536000000000001 0.0000000000000000 # Sb23
+ 0.3744000000000001 0.6255999999999999 0.0000000000000000 # Sb24
+ 0.2059999999999999 0.7940000000000000 0.6768000000000002 # Sb25
+ 0.5000000000000000 0.1536000000000001 0.4999999999999998 # Sb26
+ 0.5000000000000000 0.5000000000000000 0.3704000000000001 # Sb27
+ -0.1255999999999999 0.1255999999999999 0.4999999999999998 # Sb28
+ 0.7060000000000000 0.2940000000000001 0.1767999999999999 # Sb29
+ 0.6536000000000001 0.0000000000000000 0.0000000000000000 # Sb30
+ 0.6255999999999999 0.6255999999999999 0.0000000000000000 # Sb31
+ 0.7940000000000000 0.7940000000000000 0.3232000000000000 # Sb32
+ 0.2940000000000001 0.2940000000000001 0.8231999999999999 # Sb33
+ 0.2059999999999999 0.2059999999999999 0.6768000000000002 # Sb34
+ 0.5000000000000000 0.0000000000000000 0.2500000000000001 # Sb35
+ 0.7060000000000000 0.7060000000000000 0.1767999999999999 # Sb36
+ 0.2059999999999999 0.7940000000000000 0.3232000000000000 # Sb37
+ 0.7060000000000000 0.2940000000000001 0.8231999999999999 # Sb38
+ 0.7940000000000000 0.2059999999999999 0.6768000000000002 # Sb39
+ 0.2940000000000001 0.7060000000000000 0.1767999999999999 # Sb40
diff --git a/test/data/tetragonal/POSCAR-139-2 b/test/data/tetragonal/POSCAR-139-2
new file mode 100644
index 0000000..dd59041
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-139-2
@@ -0,0 +1,17 @@
+$cell vectors
+1.0
+ 4.1699980378408146 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 4.1699980378408146 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.8799948805055333
+ 2 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ca1
+ 0.5000000000000006 0.5000000000000006 0.4999999999999997 # Ca2
+ 0.0000000000000000 0.5000000000000006 0.2499999999999998 # Mn1
+ 0.5000000000000006 0.0000000000000000 0.7499999999999996 # Mn2
+ 0.0000000000000000 0.5000000000000006 0.7499999999999996 # Mn3
+ 0.4999999999999993 0.0000000000000000 0.2499999999999998 # Mn4
+ 0.0000000000000000 0.0000000000000000 0.3809999999999999 # Ge1
+ 0.5000000000000006 0.5000000000000006 0.8810000000000000 # Ge2
+ 0.0000000000000000 0.0000000000000000 0.6190000000000000 # Ge3
+ 0.4999999999999993 0.4999999999999993 0.1189999999999998 # Ge4
diff --git a/test/data/tetragonal/POSCAR-140 b/test/data/tetragonal/POSCAR-140
new file mode 100644
index 0000000..9e7b537
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-140
@@ -0,0 +1,211 @@
+$cell vectors
+1.0
+ 11.0759947882793401 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.0759947882793401 0.0000000000000000
+ 0.0000000000000000 0.0000000000000053 36.9329826214807682
+ 124 80
+Direct
+ 0.0000000000000000 0.5000000000000001 0.2499999999999999 # Pu1
+ 0.0000000000000000 0.5000000000000002 0.0755999999999999 # Pu2
+ 0.0000000000000000 0.5000000000000001 0.1656000000000000 # Pu3
+ 0.1586000000000003 0.6586000000000001 0.0000000000000000 # Pu4
+ 0.2947000000000003 0.4299000000000003 0.0500000000000000 # Pu5
+ 0.2855000000000003 0.5774000000000000 0.1346000000000000 # Pu6
+ 0.2819000000000004 0.4125000000000003 0.2114000000000000 # Pu7
+ 0.7947000000000005 0.9299000000000004 0.5499999999999998 # Pu8
+ 0.7855000000000006 0.0774000000000001 0.6346000000000001 # Pu9
+ 0.7819000000000003 0.9125000000000003 0.7113999999999999 # Pu10
+ 0.0000000000000000 0.4999999999999999 0.7500000000000000 # Pu11
+ 0.0000000000000000 0.4999999999999998 0.9243999999999999 # Pu12
+ 0.0000000000000000 0.4999999999999998 0.8344000000000000 # Pu13
+ 0.8414000000000003 0.3413999999999999 0.0000000000000000 # Pu14
+ 0.7053000000000003 0.5701000000000003 0.9500000000000000 # Pu15
+ 0.7145000000000001 0.4226000000000000 0.8653999999999998 # Pu16
+ 0.7181000000000002 0.5875000000000002 0.7885999999999999 # Pu17
+ 0.5000000000000002 -0.0000000000000001 0.2499999999999999 # Pu18
+ 0.5000000000000002 -0.0000000000000002 0.4243999999999999 # Pu19
+ 0.5000000000000002 -0.0000000000000002 0.3344000000000000 # Pu20
+ 0.3414000000000005 0.8414000000000000 0.4999999999999999 # Pu21
+ 0.2053000000000000 0.0700999999999998 0.4500000000000000 # Pu22
+ 0.2145000000000004 0.9226000000000004 0.3654000000000000 # Pu23
+ 0.2180999999999999 0.0875000000000002 0.2886000000000000 # Pu24
+ 0.5000000000000002 0.0000000000000000 0.0755999999999999 # Pu25
+ 0.5000000000000002 -0.0000000000000001 0.1656000000000000 # Pu26
+ 0.3413999999999999 0.1585999999999998 0.0000000000000000 # Pu27
+ 0.5701000000000003 0.2947000000000003 0.0500000000000000 # Pu28
+ 0.4226000000000004 0.2854999999999998 0.1346000000000000 # Pu29
+ 0.5875000000000001 0.2819000000000003 0.2114000000000000 # Pu30
+ 0.0000000000000000 0.4999999999999999 0.5756000000000000 # Pu31
+ 0.0000000000000000 0.4999999999999999 0.6655999999999999 # Pu32
+ 0.8414000000000003 0.6586000000000004 0.4999999999999999 # Pu33
+ 0.0701000000000000 0.7947000000000003 0.5499999999999998 # Pu34
+ 0.9226000000000006 0.7855000000000003 0.6346000000000001 # Pu35
+ 0.0875000000000003 0.7819000000000004 0.7113999999999999 # Pu36
+ 0.5000000000000002 0.0000000000000001 0.7500000000000000 # Pu37
+ 0.5000000000000002 0.0000000000000000 0.9243999999999999 # Pu38
+ 0.5000000000000002 0.0000000000000001 0.8344000000000000 # Pu39
+ 0.6586000000000001 0.8414000000000003 0.0000000000000000 # Pu40
+ 0.4299000000000003 0.7053000000000003 0.9500000000000000 # Pu41
+ 0.5774000000000007 0.7145000000000002 0.8653999999999998 # Pu42
+ 0.4125000000000004 0.7181000000000003 0.7885999999999999 # Pu43
+ 0.9299000000000006 0.2053000000000002 0.4500000000000000 # Pu44
+ 0.0773999999999999 0.2145000000000002 0.3654000000000000 # Pu45
+ 0.9125000000000002 0.2181000000000002 0.2886000000000000 # Pu46
+ 0.7053000000000003 0.5701000000000003 0.0500000000000000 # Pu47
+ 0.7145000000000001 0.4226000000000003 0.1346000000000000 # Pu48
+ 0.7181000000000002 0.5875000000000000 0.2114000000000000 # Pu49
+ 0.5000000000000002 -0.0000000000000003 0.5756000000000000 # Pu50
+ 0.5000000000000002 0.0000000000000002 0.6655999999999999 # Pu51
+ 0.2053000000000004 0.0701000000000002 0.5499999999999998 # Pu52
+ 0.2145000000000004 0.9226000000000003 0.6346000000000001 # Pu53
+ 0.2181000000000004 0.0875000000000000 0.7113999999999999 # Pu54
+ 0.2947000000000003 0.4298999999999999 0.9500000000000000 # Pu55
+ 0.2855000000000003 0.5774000000000002 0.8653999999999998 # Pu56
+ 0.2819000000000004 0.4125000000000000 0.7885999999999999 # Pu57
+ 0.6586000000000001 0.1586000000000001 0.4999999999999999 # Pu58
+ 0.7947000000000005 0.9299000000000004 0.4500000000000000 # Pu59
+ 0.7855000000000001 0.0773999999999997 0.3654000000000000 # Pu60
+ 0.7819000000000003 0.9125000000000001 0.2886000000000000 # Pu61
+ 0.4299000000000003 0.7053000000000003 0.0500000000000000 # Pu62
+ 0.5774000000000001 0.7145000000000000 0.1346000000000000 # Pu63
+ 0.4125000000000004 0.7181000000000001 0.2114000000000000 # Pu64
+ 0.9299000000000006 0.2053000000000002 0.5499999999999998 # Pu65
+ 0.0773999999999999 0.2145000000000001 0.6346000000000001 # Pu66
+ 0.9125000000000002 0.2181000000000000 0.7113999999999999 # Pu67
+ 0.5701000000000003 0.2946999999999999 0.9500000000000000 # Pu68
+ 0.4226000000000004 0.2854999999999999 0.8653999999999998 # Pu69
+ 0.5875000000000001 0.2819000000000000 0.7885999999999999 # Pu70
+ 0.0701000000000000 0.7947000000000003 0.4500000000000000 # Pu71
+ 0.9226000000000001 0.7855000000000004 0.3654000000000000 # Pu72
+ 0.0875000000000003 0.7819000000000002 0.2886000000000000 # Pu73
+ 0.0000000000000000 0.5000000000000000 0.4243999999999999 # Pu74
+ 0.0000000000000000 0.5000000000000001 0.3344000000000000 # Pu75
+ 0.1586000000000003 0.3414000000000003 0.4999999999999999 # Pu76
+ 0.2947000000000003 0.5701000000000001 0.4500000000000000 # Pu77
+ 0.2855000000000003 0.4226000000000002 0.3654000000000000 # Pu78
+ 0.2819000000000004 0.5875000000000000 0.2886000000000000 # Pu79
+ 0.7947000000000005 0.0701000000000000 0.9500000000000000 # Pu80
+ 0.7855000000000006 0.9226000000000002 0.8653999999999998 # Pu81
+ 0.7819000000000003 0.0875000000000000 0.7885999999999999 # Pu82
+ 0.7053000000000003 0.4299000000000001 0.5499999999999998 # Pu83
+ 0.7145000000000001 0.5774000000000004 0.6346000000000001 # Pu84
+ 0.7181000000000002 0.4125000000000001 0.7113999999999999 # Pu85
+ 0.2053000000000000 0.9299000000000006 0.0500000000000000 # Pu86
+ 0.2144999999999999 0.0773999999999999 0.1346000000000000 # Pu87
+ 0.2181000000000004 0.9125000000000001 0.2114000000000000 # Pu88
+ 0.7053000000000003 0.4299000000000001 0.4500000000000000 # Pu89
+ 0.7145000000000001 0.5773999999999999 0.3654000000000000 # Pu90
+ 0.7181000000000002 0.4125000000000003 0.2886000000000000 # Pu91
+ 0.2053000000000004 0.9299000000000002 0.9500000000000000 # Pu92
+ 0.2145000000000004 0.0774000000000000 0.8653999999999998 # Pu93
+ 0.2181000000000004 0.9125000000000003 0.7885999999999999 # Pu94
+ 0.2947000000000003 0.5701000000000005 0.5499999999999998 # Pu95
+ 0.2855000000000003 0.4226000000000001 0.6346000000000001 # Pu96
+ 0.2819000000000004 0.5875000000000002 0.7113999999999999 # Pu97
+ 0.7947000000000001 0.0701000000000000 0.0500000000000000 # Pu98
+ 0.7855000000000001 0.9226000000000000 0.1346000000000000 # Pu99
+ 0.7819000000000003 0.0875000000000002 0.2114000000000000 # Pu100
+ 0.4299000000000003 0.2947000000000001 0.4500000000000000 # Pu101
+ 0.5774000000000001 0.2854999999999997 0.3654000000000000 # Pu102
+ 0.4125000000000004 0.2819000000000003 0.2886000000000000 # Pu103
+ 0.9299000000000006 0.7947000000000001 0.9500000000000000 # Pu104
+ 0.0774000000000004 0.7855000000000002 0.8653999999999998 # Pu105
+ 0.9125000000000002 0.7819000000000004 0.7885999999999999 # Pu106
+ 0.5701000000000003 0.7053000000000005 0.5499999999999998 # Pu107
+ 0.4226000000000004 0.7145000000000004 0.6346000000000001 # Pu108
+ 0.5875000000000006 0.7181000000000003 0.7113999999999999 # Pu109
+ 0.0701000000000000 0.2052999999999999 0.0500000000000000 # Pu110
+ 0.9226000000000001 0.2144999999999999 0.1346000000000000 # Pu111
+ 0.0875000000000003 0.2180999999999998 0.2114000000000000 # Pu112
+ 0.5701000000000003 0.7053000000000000 0.4500000000000000 # Pu113
+ 0.4226000000000004 0.7144999999999999 0.3654000000000000 # Pu114
+ 0.5875000000000001 0.7181000000000001 0.2886000000000000 # Pu115
+ 0.0701000000000005 0.2053000000000000 0.9500000000000000 # Pu116
+ 0.9226000000000006 0.2144999999999999 0.8653999999999998 # Pu117
+ 0.0875000000000003 0.2181000000000000 0.7885999999999999 # Pu118
+ 0.4299000000000003 0.2947000000000000 0.5499999999999998 # Pu119
+ 0.5774000000000001 0.2855000000000000 0.6346000000000001 # Pu120
+ 0.4125000000000004 0.2819000000000001 0.7113999999999999 # Pu121
+ 0.9299000000000006 0.7947000000000001 0.0500000000000000 # Pu122
+ 0.0773999999999999 0.7855000000000000 0.1346000000000000 # Pu123
+ 0.9125000000000002 0.7819000000000002 0.2114000000000000 # Pu124
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Rh1
+ 0.0000000000000000 -0.0000000000000001 0.2499999999999999 # Rh2
+ 0.0000000000000000 0.0000000000000000 0.0940000000000001 # Rh3
+ 0.0000000000000000 -0.0000000000000001 0.1733999999999999 # Rh4
+ 0.4035000000000000 0.9035000000000002 0.0000000000000000 # Rh5
+ 0.1812000000000002 0.6812000000000005 0.0726000000000000 # Rh6
+ 0.3417000000000004 0.8417000000000001 0.1269000000000001 # Rh7
+ 0.1536000000000003 0.6536000000000000 0.2109000000000001 # Rh8
+ 0.5000000000000002 0.5000000000000000 0.4999999999999999 # Rh9
+ 0.5000000000000002 0.4999999999999999 0.7500000000000000 # Rh10
+ 0.5000000000000002 0.4999999999999999 0.5939999999999999 # Rh11
+ 0.5000000000000002 0.4999999999999999 0.6734000000000001 # Rh12
+ 0.9035000000000002 0.4034999999999997 0.4999999999999999 # Rh13
+ 0.6812000000000005 0.1811999999999999 0.5726000000000000 # Rh14
+ 0.8417000000000002 0.3417000000000002 0.6268999999999999 # Rh15
+ 0.6536000000000001 0.1536000000000000 0.7108999999999999 # Rh16
+ 0.0000000000000000 0.0000000000000001 0.7500000000000000 # Rh17
+ 0.0000000000000000 0.0000000000000000 0.9059999999999999 # Rh18
+ 0.0000000000000000 0.0000000000000001 0.8266000000000000 # Rh19
+ 0.5965000000000000 0.0965000000000003 0.0000000000000000 # Rh20
+ 0.8188000000000004 0.3188000000000001 0.9273999999999998 # Rh21
+ 0.6583000000000006 0.1582999999999999 0.8731000000000000 # Rh22
+ 0.8464000000000003 0.3464000000000000 0.7890999999999999 # Rh23
+ 0.5000000000000002 0.5000000000000001 0.2499999999999999 # Rh24
+ 0.5000000000000002 0.5000000000000000 0.4060000000000000 # Rh25
+ 0.5000000000000002 0.5000000000000001 0.3265999999999999 # Rh26
+ 0.0965000000000003 0.5965000000000004 0.4999999999999999 # Rh27
+ 0.3188000000000001 0.8188000000000002 0.4274000000000000 # Rh28
+ 0.1583000000000003 0.6583000000000003 0.3731000000000000 # Rh29
+ 0.3464000000000004 0.8464000000000002 0.2891000000000001 # Rh30
+ 0.0965000000000003 0.4035000000000000 0.0000000000000000 # Rh31
+ 0.3188000000000001 0.1812000000000001 0.0726000000000000 # Rh32
+ 0.1583000000000003 0.3416999999999999 0.1269000000000001 # Rh33
+ 0.3464000000000004 0.1536000000000002 0.2109000000000001 # Rh34
+ 0.5965000000000006 0.9035000000000000 0.4999999999999999 # Rh35
+ 0.8188000000000004 0.6812000000000002 0.5726000000000000 # Rh36
+ 0.6583000000000006 0.8416999999999999 0.6268999999999999 # Rh37
+ 0.8464000000000003 0.6536000000000003 0.7108999999999999 # Rh38
+ 0.9035000000000002 0.5965000000000000 0.0000000000000000 # Rh39
+ 0.6812000000000005 0.8188000000000000 0.9273999999999998 # Rh40
+ 0.8417000000000002 0.6583000000000001 0.8731000000000000 # Rh41
+ 0.6536000000000006 0.8464000000000003 0.7890999999999999 # Rh42
+ 0.1812000000000002 0.3187999999999999 0.4274000000000000 # Rh43
+ 0.3416999999999999 0.1583000000000001 0.3731000000000000 # Rh44
+ 0.1536000000000003 0.3464000000000003 0.2891000000000001 # Rh45
+ 0.8188000000000004 0.3188000000000001 0.0726000000000000 # Rh46
+ 0.6583000000000001 0.1583000000000002 0.1269000000000001 # Rh47
+ 0.8464000000000003 0.3464000000000003 0.2109000000000001 # Rh48
+ 0.3188000000000001 0.8188000000000002 0.5726000000000000 # Rh49
+ 0.1583000000000003 0.6583000000000002 0.6268999999999999 # Rh50
+ 0.3464000000000004 0.8464000000000003 0.7108999999999999 # Rh51
+ 0.1812000000000002 0.6812000000000000 0.9273999999999998 # Rh52
+ 0.3417000000000004 0.8417000000000003 0.8731000000000000 # Rh53
+ 0.1536000000000003 0.6536000000000003 0.7890999999999999 # Rh54
+ 0.6812000000000005 0.1812000000000000 0.4274000000000000 # Rh55
+ 0.8417000000000002 0.3416999999999998 0.3731000000000000 # Rh56
+ 0.6536000000000001 0.1536000000000002 0.2891000000000001 # Rh57
+ 0.6812000000000005 0.8188000000000004 0.0726000000000000 # Rh58
+ 0.8417000000000002 0.6583000000000000 0.1269000000000001 # Rh59
+ 0.6536000000000001 0.8464000000000002 0.2109000000000001 # Rh60
+ 0.1812000000000002 0.3187999999999999 0.5726000000000000 # Rh61
+ 0.3416999999999999 0.1583000000000000 0.6268999999999999 # Rh62
+ 0.1536000000000003 0.3464000000000001 0.7108999999999999 # Rh63
+ 0.3188000000000001 0.1812000000000002 0.9273999999999998 # Rh64
+ 0.1583000000000003 0.3417000000000000 0.8731000000000000 # Rh65
+ 0.3464000000000004 0.1535999999999999 0.7890999999999999 # Rh66
+ 0.8188000000000004 0.6812000000000002 0.4274000000000000 # Rh67
+ 0.6583000000000006 0.8417000000000000 0.3731000000000000 # Rh68
+ 0.8464000000000003 0.6536000000000000 0.2891000000000001 # Rh69
+ 0.0000000000000000 -0.0000000000000002 0.4999999999999999 # Rh70
+ 0.0000000000000000 -0.0000000000000002 0.4060000000000000 # Rh71
+ 0.0000000000000000 -0.0000000000000002 0.3265999999999999 # Rh72
+ 0.4035000000000005 0.0965000000000000 0.4999999999999999 # Rh73
+ 0.5000000000000002 0.5000000000000002 0.0000000000000000 # Rh74
+ 0.5000000000000002 0.4999999999999998 0.9059999999999999 # Rh75
+ 0.5000000000000002 0.4999999999999998 0.8266000000000000 # Rh76
+ 0.0000000000000000 -0.0000000000000003 0.5939999999999999 # Rh77
+ 0.0000000000000000 0.0000000000000002 0.6734000000000001 # Rh78
+ 0.5000000000000002 0.5000000000000002 0.0940000000000001 # Rh79
+ 0.5000000000000002 0.5000000000000001 0.1733999999999999 # Rh80
diff --git a/test/data/tetragonal/POSCAR-140-2 b/test/data/tetragonal/POSCAR-140-2
new file mode 100644
index 0000000..3142ef7
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-140-2
@@ -0,0 +1,39 @@
+$cell vectors
+1.0
+ 11.0119948183940206 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 11.0119948183940206 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.7269973052072745
+ 20 12
+Direct
+ 0.0000000000000000 0.4999999999999998 0.2499999999999998 # Pu1
+ 0.0845000000000001 0.2183999999999998 0.0000000000000000 # Pu2
+ 0.4999999999999998 0.0000000000000000 0.7500000000000001 # Pu3
+ 0.5844999999999998 0.7184000000000000 0.5000000000000006 # Pu4
+ 0.0000000000000000 0.4999999999999998 0.7500000000000001 # Pu5
+ 0.9155000000000000 0.7815999999999997 0.0000000000000000 # Pu6
+ 0.4999999999999998 0.0000000000000000 0.2499999999999998 # Pu7
+ 0.4154999999999998 0.2816000000000000 0.5000000000000006 # Pu8
+ 0.7815999999999997 0.0845000000000001 0.0000000000000000 # Pu9
+ 0.2816000000000000 0.5844999999999998 0.5000000000000006 # Pu10
+ 0.2183999999999998 0.9155000000000000 0.0000000000000000 # Pu11
+ 0.7184000000000000 0.4154999999999998 0.5000000000000006 # Pu12
+ 0.0845000000000001 0.7815999999999997 0.5000000000000006 # Pu13
+ 0.5844999999999998 0.2816000000000000 0.0000000000000000 # Pu14
+ 0.9155000000000000 0.2183999999999998 0.5000000000000006 # Pu15
+ 0.4155000000000001 0.7184000000000000 0.0000000000000000 # Pu16
+ 0.2183999999999998 0.0845000000000001 0.5000000000000006 # Pu17
+ 0.7184000000000000 0.5844999999999998 0.0000000000000000 # Pu18
+ 0.7815999999999997 0.9155000000000000 0.5000000000000006 # Pu19
+ 0.2816000000000000 0.4154999999999998 0.0000000000000000 # Pu20
+ 0.0000000000000000 0.0000000000000000 0.2499999999999998 # Ir1
+ 0.1582999999999998 0.6583000000000000 0.0000000000000000 # Ir2
+ 0.4999999999999998 0.4999999999999998 0.7500000000000001 # Ir3
+ 0.6583000000000000 0.1583000000000003 0.5000000000000006 # Ir4
+ 0.0000000000000000 0.0000000000000000 0.7500000000000001 # Ir5
+ 0.8416999999999997 0.3417000000000000 0.0000000000000000 # Ir6
+ 0.4999999999999998 0.4999999999999998 0.2499999999999998 # Ir7
+ 0.3417000000000000 0.8416999999999997 0.5000000000000006 # Ir8
+ 0.3417000000000000 0.1582999999999998 0.0000000000000000 # Ir9
+ 0.8416999999999997 0.6583000000000000 0.5000000000000006 # Ir10
+ 0.6583000000000000 0.8416999999999997 0.0000000000000000 # Ir11
+ 0.1583000000000003 0.3417000000000000 0.5000000000000006 # Ir12
diff --git a/test/data/tetragonal/POSCAR-141 b/test/data/tetragonal/POSCAR-141
new file mode 100644
index 0000000..559809a
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-141
@@ -0,0 +1,31 @@
+$cell vectors
+1.0
+ 7.1771966228276014 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 7.1771966228276014 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3288970219881859
+ 4 4 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Tb1
+ 0.4999999999999996 0.4999999999999996 0.4999999999999997 # Tb2
+ 0.0000000000000000 0.4999999999999996 0.2500000000000002 # Tb3
+ 0.4999999999999996 0.0000000000000000 0.7499999999999999 # Tb4
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # V1
+ 0.4999999999999996 0.4999999999999996 0.0000000000000000 # V2
+ 0.4999999999999996 0.0000000000000000 0.2500000000000002 # V3
+ 0.0000000000000000 0.4999999999999996 0.7499999999999999 # V4
+ 0.0000000000000000 0.1850000000000000 0.3260000000000000 # O1
+ 0.5000000000000003 0.6850000000000002 0.8259999999999995 # O2
+ 0.8149999999999999 0.4999999999999996 0.5760000000000002 # O3
+ 0.3149999999999996 0.0000000000000000 0.0759999999999997 # O4
+ 0.0000000000000000 0.8149999999999999 0.3260000000000000 # O5
+ 0.4999999999999996 0.3150000000000004 0.8259999999999995 # O6
+ 0.1850000000000000 0.4999999999999996 0.5760000000000002 # O7
+ 0.6849999999999995 0.0000000000000000 0.0759999999999997 # O8
+ 0.1850000000000000 0.0000000000000000 0.6740000000000000 # O9
+ 0.6849999999999995 0.4999999999999996 0.1739999999999997 # O10
+ 0.8149999999999999 0.0000000000000000 0.6740000000000000 # O11
+ 0.3149999999999996 0.4999999999999996 0.1739999999999997 # O12
+ 0.0000000000000000 0.3150000000000004 0.9239999999999995 # O13
+ 0.4999999999999996 0.8149999999999999 0.4239999999999999 # O14
+ 0.0000000000000000 0.6850000000000002 0.9239999999999995 # O15
+ 0.4999999999999996 0.1850000000000000 0.4239999999999999 # O16
diff --git a/test/data/tetragonal/POSCAR-141-2 b/test/data/tetragonal/POSCAR-141-2
new file mode 100644
index 0000000..450f025
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-141-2
@@ -0,0 +1,71 @@
+$cell vectors
+1.0
+ 6.9012967526500741 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 6.9012967526500741 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.9753906007399067
+ 16 48
+Direct
+ 0.0000000000000000 0.2500000000000000 0.0617999999999999 # U1
+ 0.0000000000000000 0.0000000000000000 0.4999999999999998 # U2
+ 0.5000000000000000 0.7500000000000007 0.5618000000000001 # U3
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000 # U4
+ 0.0000000000000000 0.7500000000000007 0.9381999999999999 # U5
+ 0.5000000000000000 0.2500000000000000 0.4382000000000000 # U6
+ 0.0000000000000000 0.7500000000000007 0.3118000000000000 # U7
+ 0.2500000000000000 0.7500000000000007 0.7499999999999999 # U8
+ 0.5000000000000000 0.2500000000000000 0.8118000000000000 # U9
+ 0.7500000000000000 0.2500000000000000 0.2500000000000001 # U10
+ 0.0000000000000000 0.2500000000000000 0.6882000000000000 # U11
+ 0.5000000000000000 0.7500000000000000 0.1881999999999999 # U12
+ 0.0000000000000000 0.5000000000000000 0.4999999999999998 # U13
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000 # U14
+ 0.2500000000000000 0.2500000000000000 0.2500000000000001 # U15
+ 0.7500000000000007 0.7500000000000007 0.7499999999999999 # U16
+ 0.0000000000000000 0.9476000000000006 0.4073000000000001 # O1
+ 0.0000000000000000 0.0496000000000004 0.2645000000000000 # O2
+ 0.0000000000000000 0.5100000000000001 0.0659999999999999 # O3
+ 0.5000000000000000 0.4476000000000006 0.9072999999999999 # O4
+ 0.5000000000000000 0.5496000000000004 0.7645000000000000 # O5
+ 0.5000000000000000 0.0100000000000002 0.5660000000000001 # O6
+ 0.0000000000000000 0.0524000000000002 0.5926999999999999 # O7
+ 0.0000000000000000 0.9504000000000002 0.7355000000000003 # O8
+ 0.0000000000000000 0.4900000000000006 0.9340000000000001 # O9
+ 0.5000000000000000 0.5524000000000002 0.0927000000000000 # O10
+ 0.5000000000000000 0.4504000000000004 0.2355000000000001 # O11
+ 0.5000000000000000 0.9900000000000005 0.4340000000000000 # O12
+ 0.3024000000000002 0.7500000000000007 0.6573000000000002 # O13
+ 0.2004000000000003 0.7500000000000007 0.5145000000000002 # O14
+ 0.7400000000000005 0.7500000000000007 0.3160000000000001 # O15
+ 0.8024000000000001 0.2500000000000000 0.1573000000000001 # O16
+ 0.7004000000000001 0.2500000000000000 0.0145000000000000 # O17
+ 0.2400000000000006 0.2500000000000000 0.8159999999999998 # O18
+ 0.6975999999999998 0.2500000000000000 0.3427000000000001 # O19
+ 0.7996000000000005 0.2500000000000000 0.4854999999999999 # O20
+ 0.2600000000000002 0.2500000000000000 0.6840000000000001 # O21
+ 0.1976000000000006 0.7500000000000007 0.8426999999999999 # O22
+ 0.2996000000000004 0.7500000000000007 0.9855000000000002 # O23
+ 0.7600000000000002 0.7500000000000000 0.1839999999999999 # O24
+ 0.0000000000000000 0.5524000000000002 0.4073000000000001 # O25
+ 0.0000000000000000 0.4504000000000004 0.2645000000000000 # O26
+ 0.0000000000000000 0.9900000000000005 0.0659999999999999 # O27
+ 0.5000000000000000 0.0524000000000002 0.9072999999999999 # O28
+ 0.5000000000000000 0.9504000000000002 0.7645000000000000 # O29
+ 0.5000000000000000 0.4900000000000006 0.5660000000000001 # O30
+ 0.0000000000000000 0.4476000000000006 0.5926999999999999 # O31
+ 0.0000000000000000 0.5496000000000004 0.7355000000000003 # O32
+ 0.0000000000000000 0.0100000000000002 0.9340000000000001 # O33
+ 0.5000000000000000 0.9476000000000006 0.0927000000000000 # O34
+ 0.5000000000000000 0.0496000000000004 0.2355000000000001 # O35
+ 0.5000000000000000 0.5100000000000001 0.4340000000000000 # O36
+ 0.1975999999999998 0.2500000000000000 0.1573000000000001 # O37
+ 0.2996000000000004 0.2500000000000000 0.0145000000000000 # O38
+ 0.7600000000000002 0.2500000000000000 0.8159999999999998 # O39
+ 0.6976000000000006 0.7500000000000007 0.6573000000000002 # O40
+ 0.7996000000000005 0.7500000000000007 0.5145000000000002 # O41
+ 0.2600000000000002 0.7500000000000007 0.3160000000000001 # O42
+ 0.8024000000000001 0.7500000000000007 0.8426999999999999 # O43
+ 0.7004000000000001 0.7500000000000007 0.9855000000000002 # O44
+ 0.2399999999999998 0.7500000000000000 0.1839999999999999 # O45
+ 0.3024000000000002 0.2500000000000000 0.3427000000000001 # O46
+ 0.2004000000000003 0.2500000000000000 0.4854999999999999 # O47
+ 0.7400000000000005 0.2500000000000000 0.6840000000000001 # O48
diff --git a/test/data/tetragonal/POSCAR-142 b/test/data/tetragonal/POSCAR-142
new file mode 100644
index 0000000..964eb79
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-142
@@ -0,0 +1,239 @@
+$cell vectors
+1.0
+ 10.3299951393035059 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.3299951393035059 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 20.3799904103587082
+ 8 16 80 128
+Direct
+ 0.0000000000000000 0.7500000000000001 0.8749999999999999 # Mg1
+ 0.5000000000000000 0.2500000000000000 0.3749999999999999 # Mg2
+ 0.0000000000000000 0.2500000000000000 0.1250000000000001 # Mg3
+ 0.5000000000000000 0.7500000000000001 0.6249999999999998 # Mg4
+ 0.5000000000000000 0.7500000000000001 0.1250000000000001 # Mg5
+ 0.0000000000000000 0.2500000000000000 0.6249999999999998 # Mg6
+ 0.5000000000000000 0.2500000000000000 0.8749999999999999 # Mg7
+ 0.0000000000000000 0.7500000000000001 0.3749999999999999 # Mg8
+ 0.2401000000000001 0.0000000000000000 0.2499999999999999 # P1
+ 0.7401000000000001 0.5000000000000000 0.7499999999999999 # P2
+ 0.7598999999999999 0.0000000000000000 0.7499999999999999 # P3
+ 0.2599000000000000 0.5000000000000000 0.2499999999999999 # P4
+ 0.2500000000000000 0.9901000000000001 0.5000000000000000 # P5
+ 0.7500000000000001 0.4901000000000001 0.0000000000000000 # P6
+ 0.7500000000000001 0.0099000000000000 0.5000000000000000 # P7
+ 0.2500000000000000 0.5098999999999999 0.0000000000000000 # P8
+ 0.7598999999999999 0.5000000000000000 0.2499999999999999 # P9
+ 0.2599000000000000 0.0000000000000000 0.7499999999999999 # P10
+ 0.2401000000000001 0.5000000000000000 0.7499999999999999 # P11
+ 0.7401000000000001 0.0000000000000000 0.2499999999999999 # P12
+ 0.2500000000000000 0.0099000000000000 0.0000000000000000 # P13
+ 0.7500000000000001 0.5098999999999999 0.5000000000000000 # P14
+ 0.7500000000000001 0.9901000000000001 0.0000000000000000 # P15
+ 0.2500000000000000 0.4901000000000001 0.5000000000000000 # P16
+ 0.0000000000000000 0.7500000000000001 0.7650000000000000 # O1
+ 0.1977999999999999 0.7480000000000000 0.8739999999999999 # O2
+ 0.1630000000000002 -0.0869999999999998 0.2054999999999999 # O3
+ 0.5000000000000000 0.2500000000000000 0.2650000000000000 # O4
+ 0.6978000000000000 0.2480000000000001 0.3739999999999999 # O5
+ 0.6630000000000003 0.4130000000000003 0.7054999999999999 # O6
+ 0.0000000000000000 0.2500000000000000 0.2350000000000000 # O7
+ 0.8022000000000000 0.2520000000000000 0.1259999999999998 # O8
+ 0.8370000000000003 0.0870000000000003 0.7945000000000001 # O9
+ 0.5000000000000000 0.7500000000000001 0.7349999999999998 # O10
+ 0.3022000000000001 0.7520000000000000 0.6260000000000001 # O11
+ 0.3369999999999998 0.5869999999999999 0.2944999999999999 # O12
+ 0.5000000000000000 0.7500000000000001 0.0150000000000001 # O13
+ 0.5019999999999999 0.9477999999999998 0.1240000000000000 # O14
+ 0.3369999999999998 0.9130000000000001 0.4555000000000001 # O15
+ 0.0000000000000000 0.2500000000000000 0.5149999999999998 # O16
+ 0.0020000000000000 0.4477999999999999 0.6240000000000001 # O17
+ 0.8369999999999999 0.4130000000000003 -0.0445000000000000 # O18
+ 0.5000000000000000 0.2500000000000000 0.9849999999999999 # O19
+ 0.4980000000000000 0.0522000000000001 0.8760000000000002 # O20
+ 0.6630000000000003 0.0870000000000003 0.5444999999999999 # O21
+ 0.0000000000000000 0.7500000000000001 0.4849999999999999 # O22
+ 0.9980000000000000 0.5522000000000000 0.3760000000000000 # O23
+ 0.1630000000000002 0.5869999999999999 0.0445000000000000 # O24
+ 0.8022000000000000 0.7520000000000000 0.8739999999999999 # O25
+ 0.8369999999999999 0.5869999999999999 0.2054999999999999 # O26
+ 0.3022000000000001 0.2520000000000000 0.3739999999999999 # O27
+ 0.3369999999999998 0.0870000000000003 0.7054999999999999 # O28
+ 0.1977999999999999 0.2480000000000001 0.1259999999999998 # O29
+ 0.1630000000000002 0.4130000000000003 0.7945000000000001 # O30
+ 0.6978000000000000 0.7480000000000000 0.6260000000000001 # O31
+ 0.6630000000000003 -0.0869999999999998 0.2944999999999999 # O32
+ 0.9980000000000000 0.0522000000000001 0.6240000000000001 # O33
+ 0.1630000000000002 0.0869999999999998 -0.0445000000000000 # O34
+ 0.4980000000000000 0.5522000000000000 0.1240000000000000 # O35
+ 0.6630000000000003 0.5869999999999999 0.4555000000000001 # O36
+ 0.0020000000000000 0.9477999999999998 0.3760000000000000 # O37
+ 0.8369999999999999 0.9130000000000001 0.0445000000000000 # O38
+ 0.5019999999999999 0.4477999999999999 0.8760000000000002 # O39
+ 0.3369999999999998 0.4130000000000003 0.5444999999999999 # O40
+ 0.0000000000000000 0.2500000000000000 0.7349999999999998 # O41
+ 0.1977999999999999 0.2520000000000000 0.6260000000000001 # O42
+ 0.1630000000000002 0.0870000000000003 0.2944999999999999 # O43
+ 0.5000000000000000 0.7500000000000001 0.2350000000000000 # O44
+ 0.6978000000000000 0.7520000000000000 0.1259999999999998 # O45
+ 0.6630000000000003 0.5870000000000003 0.7945000000000001 # O46
+ 0.0000000000000000 0.7500000000000001 0.2650000000000000 # O47
+ 0.8022000000000000 0.7480000000000000 0.3739999999999999 # O48
+ 0.8369999999999999 -0.0869999999999998 0.7054999999999999 # O49
+ 0.5000000000000000 0.2500000000000000 0.7650000000000000 # O50
+ 0.3022000000000001 0.2480000000000001 0.8739999999999999 # O51
+ 0.3369999999999998 0.4130000000000003 0.2054999999999999 # O52
+ 0.3022000000000001 0.7480000000000000 0.1259999999999998 # O53
+ 0.3369999999999998 -0.0869999999999998 0.7945000000000001 # O54
+ 0.8022000000000000 0.2480000000000001 0.6260000000000001 # O55
+ 0.8369999999999999 0.4130000000000003 0.2944999999999999 # O56
+ 0.6978000000000000 0.2520000000000000 0.8739999999999999 # O57
+ 0.6630000000000003 0.0869999999999998 0.2054999999999999 # O58
+ 0.1977999999999999 0.7520000000000000 0.3739999999999999 # O59
+ 0.1630000000000002 0.5870000000000003 0.7054999999999999 # O60
+ 0.5000000000000000 0.2500000000000000 0.4849999999999999 # O61
+ 0.4980000000000000 0.4477999999999999 0.3760000000000000 # O62
+ 0.6630000000000003 0.4130000000000003 0.0445000000000000 # O63
+ 0.0000000000000000 0.7500000000000001 0.9849999999999999 # O64
+ 0.9980000000000000 0.9477999999999998 0.8760000000000002 # O65
+ 0.1630000000000002 0.9130000000000001 0.5444999999999999 # O66
+ 0.5000000000000000 0.7500000000000001 0.5149999999999998 # O67
+ 0.5019999999999999 0.5522000000000000 0.6240000000000001 # O68
+ 0.3369999999999998 0.5869999999999999 -0.0445000000000000 # O69
+ 0.0000000000000000 0.2500000000000000 0.0150000000000001 # O70
+ 0.0020000000000000 0.0522000000000001 0.1240000000000000 # O71
+ 0.8369999999999999 0.0870000000000003 0.4555000000000001 # O72
+ 0.5019999999999999 0.0522000000000001 0.3760000000000000 # O73
+ 0.3369999999999998 0.0869999999999998 0.0445000000000000 # O74
+ 0.0020000000000000 0.5522000000000000 0.8760000000000002 # O75
+ 0.8369999999999999 0.5869999999999999 0.5444999999999999 # O76
+ 0.4980000000000000 0.9477999999999998 0.6240000000000001 # O77
+ 0.6630000000000003 0.9130000000000001 -0.0445000000000000 # O78
+ 0.9980000000000000 0.4477999999999999 0.1240000000000000 # O79
+ 0.1630000000000002 0.4130000000000003 0.4555000000000001 # O80
+ 0.0560000000000002 0.8089999999999997 0.2480000000000001 # H1
+ 0.2450000000000001 0.8099999999999996 0.1469999999999999 # H2
+ 0.2500000000000000 0.6770000000000000 0.1040000000000000 # H3
+ 0.3289999999999999 0.9049999999999997 0.2910000000000000 # H4
+ 0.5560000000000003 0.3090000000000002 0.7480000000000000 # H5
+ 0.7450000000000001 0.3100000000000002 0.6469999999999999 # H6
+ 0.7500000000000001 0.1770000000000000 0.6040000000000001 # H7
+ 0.8290000000000004 0.4050000000000003 0.7909999999999997 # H8
+ -0.0559999999999997 0.1910000000000003 0.7520000000000000 # H9
+ 0.7549999999999999 0.1900000000000004 0.8530000000000001 # H10
+ 0.7500000000000001 0.3230000000000000 0.8960000000000000 # H11
+ 0.6710000000000002 0.0950000000000002 0.7090000000000002 # H12
+ 0.4439999999999998 0.6909999999999998 0.2520000000000000 # H13
+ 0.2549999999999999 0.6899999999999998 0.3529999999999998 # H14
+ 0.2500000000000000 0.8230000000000002 0.3960000000000000 # H15
+ 0.1710000000000001 0.5950000000000002 0.2090000000000000 # H16
+ 0.4410000000000003 0.8060000000000002 0.4979999999999999 # H17
+ 0.4399999999999999 -0.0049999999999999 0.3970000000000001 # H18
+ 0.5730000000000000 0.0000000000000000 0.3539999999999999 # H19
+ 0.3450000000000001 0.0789999999999999 0.5409999999999998 # H20
+ -0.0590000000000002 0.3059999999999997 -0.0020000000000001 # H21
+ -0.0599999999999997 0.4950000000000001 0.8970000000000001 # H22
+ 0.0730000000000000 0.5000000000000000 0.8539999999999999 # H23
+ 0.8449999999999998 0.5790000000000000 0.0410000000000001 # H24
+ 0.5590000000000002 0.1940000000000003 0.5020000000000001 # H25
+ 0.5600000000000003 1.0049999999999999 0.6030000000000000 # H26
+ 0.4270000000000000 1.0000000000000000 0.6460000000000001 # H27
+ 0.6550000000000005 0.9209999999999999 0.4589999999999999 # H28
+ 0.0590000000000002 0.6940000000000003 1.0019999999999998 # H29
+ 1.0599999999999996 0.5049999999999999 0.1030000000000000 # H30
+ 0.9269999999999998 0.5000000000000000 0.1459999999999999 # H31
+ 0.1550000000000003 0.4210000000000002 0.9590000000000000 # H32
+ -0.0559999999999997 0.6909999999999998 0.2480000000000001 # H33
+ 0.7549999999999999 0.6899999999999998 0.1469999999999999 # H34
+ 0.7500000000000001 0.8230000000000002 0.1040000000000000 # H35
+ 0.6710000000000002 0.5950000000000002 0.2910000000000000 # H36
+ 0.4439999999999998 0.1910000000000003 0.7480000000000000 # H37
+ 0.2549999999999999 0.1900000000000004 0.6469999999999999 # H38
+ 0.2500000000000000 0.3230000000000000 0.6040000000000001 # H39
+ 0.1710000000000001 0.0950000000000002 0.7909999999999997 # H40
+ 0.0560000000000002 0.3090000000000002 0.7520000000000000 # H41
+ 0.2450000000000001 0.3100000000000002 0.8530000000000001 # H42
+ 0.2500000000000000 0.1770000000000000 0.8960000000000000 # H43
+ 0.3289999999999999 0.4050000000000003 0.7090000000000002 # H44
+ 0.5560000000000003 0.8089999999999997 0.2520000000000000 # H45
+ 0.7450000000000001 0.8099999999999996 0.3529999999999998 # H46
+ 0.7500000000000001 0.6770000000000000 0.3960000000000000 # H47
+ 0.8289999999999998 0.9049999999999997 0.2090000000000000 # H48
+ 0.0590000000000002 0.1939999999999998 -0.0020000000000001 # H49
+ 1.0600000000000001 1.0049999999999999 0.8970000000000001 # H50
+ 0.9269999999999998 1.0000000000000000 0.8539999999999999 # H51
+ 0.1549999999999998 0.9209999999999999 0.0410000000000001 # H52
+ 0.5590000000000002 0.6939999999999998 0.4979999999999999 # H53
+ 0.5600000000000003 0.5049999999999999 0.3970000000000001 # H54
+ 0.4270000000000000 0.5000000000000000 0.3539999999999999 # H55
+ 0.6549999999999999 0.4210000000000002 0.5409999999999998 # H56
+ -0.0589999999999997 0.8060000000000002 1.0019999999999998 # H57
+ -0.0600000000000002 -0.0049999999999999 0.1030000000000000 # H58
+ 0.0730000000000000 0.0000000000000000 0.1459999999999999 # H59
+ 0.8450000000000001 0.0790000000000004 0.9590000000000000 # H60
+ 0.4410000000000003 0.3060000000000002 0.5020000000000001 # H61
+ 0.4399999999999999 0.4950000000000001 0.6030000000000000 # H62
+ 0.5730000000000000 0.5000000000000000 0.6460000000000001 # H63
+ 0.3450000000000001 0.5790000000000000 0.4589999999999999 # H64
+ 0.0560000000000002 0.1909999999999998 0.2520000000000000 # H65
+ 0.2450000000000001 0.1899999999999998 0.3529999999999998 # H66
+ 0.2500000000000000 0.3230000000000000 0.3960000000000000 # H67
+ 0.3289999999999999 0.0950000000000002 0.2090000000000000 # H68
+ 0.5560000000000003 0.6910000000000004 0.7520000000000000 # H69
+ 0.7450000000000001 0.6900000000000004 0.8530000000000001 # H70
+ 0.7500000000000001 0.8230000000000002 0.8960000000000000 # H71
+ 0.8289999999999998 0.5950000000000002 0.7090000000000002 # H72
+ -0.0559999999999997 0.8090000000000002 0.7480000000000000 # H73
+ 0.7549999999999999 0.8100000000000002 0.6469999999999999 # H74
+ 0.7500000000000001 0.6770000000000000 0.6040000000000001 # H75
+ 0.6710000000000002 0.9050000000000002 0.7909999999999997 # H76
+ 0.4439999999999998 0.3090000000000002 0.2480000000000001 # H77
+ 0.2549999999999999 0.3100000000000002 0.1469999999999999 # H78
+ 0.2500000000000000 0.1770000000000000 0.1040000000000000 # H79
+ 0.1710000000000001 0.4049999999999998 0.2910000000000000 # H80
+ 0.4440000000000003 0.8090000000000002 0.7520000000000000 # H81
+ 0.2549999999999999 0.8100000000000002 0.8530000000000001 # H82
+ 0.2500000000000000 0.6770000000000000 0.8960000000000000 # H83
+ 0.1710000000000001 0.9050000000000002 0.7090000000000002 # H84
+ -0.0559999999999997 0.3090000000000002 0.2520000000000000 # H85
+ 0.7549999999999999 0.3100000000000002 0.3529999999999998 # H86
+ 0.7500000000000001 0.1770000000000000 0.3960000000000000 # H87
+ 0.6710000000000002 0.4049999999999998 0.2090000000000000 # H88
+ 0.5560000000000003 0.1909999999999998 0.2480000000000001 # H89
+ 0.7450000000000001 0.1899999999999998 0.1469999999999999 # H90
+ 0.7500000000000001 0.3230000000000000 0.1040000000000000 # H91
+ 0.8289999999999998 0.0950000000000002 0.2910000000000000 # H92
+ 0.0560000000000002 0.6910000000000004 0.7480000000000000 # H93
+ 0.2450000000000001 0.6900000000000004 0.6469999999999999 # H94
+ 0.2500000000000000 0.8230000000000002 0.6040000000000001 # H95
+ 0.3289999999999999 0.5950000000000002 0.7909999999999997 # H96
+ 0.5590000000000002 0.3060000000000002 1.0019999999999998 # H97
+ 0.5600000000000003 0.4950000000000001 0.1030000000000000 # H98
+ 0.4270000000000000 0.5000000000000000 0.1459999999999999 # H99
+ 0.6549999999999999 0.5790000000000000 0.9590000000000000 # H100
+ 0.0590000000000002 0.8060000000000002 0.5020000000000001 # H101
+ 1.0599999999999996 -0.0049999999999999 0.6030000000000000 # H102
+ 0.9269999999999998 0.0000000000000000 0.6460000000000001 # H103
+ 0.1549999999999998 0.0789999999999999 0.4589999999999999 # H104
+ 0.4409999999999999 0.6939999999999998 -0.0020000000000001 # H105
+ 0.4399999999999999 0.5049999999999999 0.8970000000000001 # H106
+ 0.5730000000000000 0.5000000000000000 0.8539999999999999 # H107
+ 0.3450000000000001 0.4210000000000002 0.0410000000000001 # H108
+ -0.0589999999999997 0.1940000000000003 0.4979999999999999 # H109
+ -0.0599999999999997 1.0049999999999999 0.3970000000000001 # H110
+ 0.0730000000000000 1.0000000000000000 0.3539999999999999 # H111
+ 0.8449999999999998 0.9209999999999999 0.5409999999999998 # H112
+ 0.4410000000000003 0.1940000000000003 1.0019999999999998 # H113
+ 0.4399999999999999 1.0049999999999999 0.1030000000000000 # H114
+ 0.5730000000000000 1.0000000000000000 0.1459999999999999 # H115
+ 0.3450000000000001 0.9209999999999999 0.9590000000000000 # H116
+ -0.0589999999999997 0.6939999999999998 0.5020000000000001 # H117
+ -0.0599999999999997 0.5049999999999999 0.6030000000000000 # H118
+ 0.0730000000000000 0.5000000000000000 0.6460000000000001 # H119
+ 0.8449999999999998 0.4210000000000002 0.4589999999999999 # H120
+ 0.5590000000000002 0.8060000000000002 -0.0020000000000001 # H121
+ 0.5600000000000003 -0.0049999999999999 0.8970000000000001 # H122
+ 0.4270000000000000 0.0000000000000000 0.8539999999999999 # H123
+ 0.6549999999999999 0.0789999999999999 0.0410000000000001 # H124
+ 0.0590000000000002 0.3060000000000002 0.4979999999999999 # H125
+ 1.0599999999999996 0.4950000000000001 0.3970000000000001 # H126
+ 0.9269999999999998 0.5000000000000000 0.3539999999999999 # H127
+ 0.1550000000000003 0.5790000000000000 0.5409999999999998 # H128
diff --git a/test/data/tetragonal/POSCAR-142-2 b/test/data/tetragonal/POSCAR-142-2
new file mode 100644
index 0000000..890daf3
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-142-2
@@ -0,0 +1,103 @@
+$cell vectors
+1.0
+ 12.2839942198648870 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.2839942198648870 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 23.5819889036839534
+ 64 32
+Direct
+ 0.0000000000000000 0.2499999999999998 0.0047000000000000 # I1
+ 0.2619999999999997 0.0000000000000000 0.2500000000000000 # I2
+ 0.0113000000000000 0.9993000000000002 0.1279000000000000 # I3
+ 0.5000000000000001 0.7500000000000003 0.5047000000000001 # I4
+ 0.7620000000000001 0.5000000000000001 0.7500000000000000 # I5
+ 0.5113000000000000 0.4993000000000001 0.6279000000000001 # I6
+ 0.0000000000000000 0.7500000000000003 0.9953000000000002 # I7
+ 0.7379999999999999 1.0000000000000000 0.7500000000000000 # I8
+ 0.9887000000000001 0.0007000000000003 0.8721000000000003 # I9
+ 0.5000000000000001 0.2499999999999998 0.4953000000000002 # I10
+ 0.2379999999999999 0.5000000000000001 0.2500000000000000 # I11
+ 0.4887000000000000 0.5006999999999995 0.3721000000000001 # I12
+ 0.0000000000000000 0.7499999999999997 0.2547000000000000 # I13
+ 0.2499999999999998 0.0119999999999999 0.4999999999999999 # I14
+ 0.2507000000000001 0.7613000000000002 0.3779000000000000 # I15
+ 0.5000000000000001 0.2499999999999998 0.7547000000000001 # I16
+ 0.7500000000000003 0.5119999999999999 0.0000000000000000 # I17
+ 0.7506999999999998 0.2613000000000002 0.8779000000000001 # I18
+ 0.0000000000000000 0.2500000000000002 0.7453000000000001 # I19
+ 0.7500000000000003 0.9879999999999998 0.4999999999999999 # I20
+ 0.7492999999999999 0.2386999999999997 0.6221000000000001 # I21
+ 0.5000000000000001 0.7499999999999997 0.2453000000000000 # I22
+ 0.2499999999999998 0.4879999999999996 0.0000000000000000 # I23
+ 0.2492999999999999 0.7386999999999998 0.1220999999999999 # I24
+ 0.7379999999999999 0.4999999999999996 0.2500000000000000 # I25
+ 0.9887000000000001 0.5006999999999995 0.1279000000000000 # I26
+ 0.2379999999999999 0.0000000000000000 0.7500000000000000 # I27
+ 0.4887000000000000 0.0006999999999999 0.6279000000000001 # I28
+ 0.2620000000000001 0.5000000000000001 0.7500000000000000 # I29
+ 0.0113000000000000 0.4993000000000001 0.8721000000000003 # I30
+ 0.7620000000000001 0.9999999999999997 0.2500000000000000 # I31
+ 0.5113000000000000 0.9993000000000002 0.3721000000000001 # I32
+ 0.2500000000000002 0.9879999999999998 0.0000000000000000 # I33
+ 0.2492999999999999 0.2387000000000002 0.8779000000000001 # I34
+ 0.7500000000000003 0.4879999999999996 0.4999999999999999 # I35
+ 0.7492999999999999 0.7386999999999998 0.3779000000000000 # I36
+ 0.7499999999999997 0.0119999999999999 0.0000000000000000 # I37
+ 0.7507000000000000 0.7612999999999999 0.1220999999999999 # I38
+ 0.2500000000000002 0.5119999999999999 0.4999999999999999 # I39
+ 0.2507000000000001 0.2612999999999998 0.6221000000000001 # I40
+ 0.0000000000000004 0.7499999999999997 0.4953000000000002 # I41
+ 0.0113000000000000 0.0006999999999999 0.3721000000000001 # I42
+ 0.5000000000000001 0.2500000000000002 0.9953000000000002 # I43
+ 0.5113000000000000 0.5006999999999998 0.8721000000000003 # I44
+ 0.0000000000000000 0.2499999999999998 0.5047000000000001 # I45
+ 0.9887000000000001 0.9993000000000002 0.6279000000000001 # I46
+ 0.5000000000000001 0.7499999999999997 0.0047000000000000 # I47
+ 0.4887000000000000 0.4992999999999996 0.1279000000000000 # I48
+ 0.4887000000000000 0.9993000000000002 0.8721000000000003 # I49
+ 0.9887000000000001 0.4992999999999992 0.3721000000000001 # I50
+ 0.5113000000000000 0.0006999999999999 0.1279000000000000 # I51
+ 0.0113000000000000 0.5006999999999998 0.6279000000000001 # I52
+ 0.0000000000000000 0.2499999999999998 0.2453000000000000 # I53
+ 0.7492999999999999 0.2612999999999998 0.1220999999999999 # I54
+ 0.5000000000000001 0.7499999999999997 0.7453000000000001 # I55
+ 0.2492999999999999 0.7612999999999999 0.6221000000000001 # I56
+ 0.0000000000000000 0.7500000000000003 0.7547000000000001 # I57
+ 0.2507000000000001 0.7386999999999998 0.8779000000000001 # I58
+ 0.5000000000000001 0.2499999999999998 0.2547000000000000 # I59
+ 0.7507000000000000 0.2386999999999997 0.3779000000000000 # I60
+ 0.2506999999999997 0.2387000000000002 0.1220999999999999 # I61
+ 0.7507000000000000 0.7386999999999998 0.6221000000000001 # I62
+ 0.7492999999999999 0.7612999999999999 0.8779000000000001 # I63
+ 0.2492999999999999 0.2612999999999998 0.3779000000000000 # I64
+ 0.3749000000000000 0.3625000000000001 0.0626999999999999 # Zn1
+ 0.8748999999999999 0.8625000000000002 0.5627000000000001 # Zn2
+ 0.6251000000000005 0.6375000000000000 0.9373000000000000 # Zn3
+ 0.1251000000000001 0.1375000000000000 0.4373000000000001 # Zn4
+ 0.8874999999999998 0.1248999999999997 0.3126999999999999 # Zn5
+ 0.3875000000000001 0.6249000000000001 0.8127000000000002 # Zn6
+ 0.1125000000000003 0.8750999999999998 0.6873000000000000 # Zn7
+ 0.6124999999999998 0.3750999999999998 0.1873000000000000 # Zn8
+ 0.6251000000000001 0.1375000000000000 0.0626999999999999 # Zn9
+ 0.1251000000000001 0.6375000000000000 0.5627000000000001 # Zn10
+ 0.3749000000000003 0.8625000000000002 0.9373000000000000 # Zn11
+ 0.8748999999999999 0.3624999999999995 0.4373000000000001 # Zn12
+ 0.6125000000000003 0.8750999999999998 0.8127000000000002 # Zn13
+ 0.1124999999999998 0.3750999999999998 0.3126999999999999 # Zn14
+ 0.3874999999999997 0.1249000000000001 0.1873000000000000 # Zn15
+ 0.8875000000000002 0.6248999999999997 0.6873000000000000 # Zn16
+ 0.3749000000000000 0.6375000000000000 0.4373000000000001 # Zn17
+ 0.8748999999999999 0.1375000000000004 0.9373000000000000 # Zn18
+ 0.6251000000000001 0.3624999999999995 0.5627000000000001 # Zn19
+ 0.1251000000000001 0.8625000000000002 0.0626999999999999 # Zn20
+ 0.1251000000000001 0.3625000000000001 0.9373000000000000 # Zn21
+ 0.6251000000000001 0.8625000000000004 0.4373000000000001 # Zn22
+ 0.8748999999999999 0.6374999999999995 0.0626999999999999 # Zn23
+ 0.3749000000000000 0.1375000000000000 0.5627000000000001 # Zn24
+ 0.1124999999999998 0.6248999999999997 0.1873000000000000 # Zn25
+ 0.6124999999999998 0.1248999999999997 0.6873000000000000 # Zn26
+ 0.8875000000000002 0.3750999999999998 0.8127000000000002 # Zn27
+ 0.3875000000000001 0.8750999999999998 0.3126999999999999 # Zn28
+ 0.8874999999999998 0.8750999999999998 0.1873000000000000 # Zn29
+ 0.3874999999999997 0.3750999999999998 0.6873000000000000 # Zn30
+ 0.1125000000000003 0.1249000000000001 0.8127000000000002 # Zn31
+ 0.6125000000000003 0.6248999999999997 0.3126999999999999 # Zn32
diff --git a/test/data/tetragonal/POSCAR-142-3 b/test/data/tetragonal/POSCAR-142-3
new file mode 100644
index 0000000..474149d
--- /dev/null
+++ b/test/data/tetragonal/POSCAR-142-3
@@ -0,0 +1,95 @@
+Li[12+8]La12Ta8O48
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 20 12 8 48
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000000 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807100000000000 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807100000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000000 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807100000000000 0.1740100000000000 0.1954200000000000
+ 0.5807100000000000 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000000 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807100000000000
+ 0.3259900000000000 0.9192900000000000 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807100000000000 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/triclinic/POSCAR-001 b/test/data/triclinic/POSCAR-001
new file mode 100644
index 0000000..83bbc8f
--- /dev/null
+++ b/test/data/triclinic/POSCAR-001
@@ -0,0 +1,16 @@
+$cell vectors
+1.0
+ 4.9159976868166551 0.0000000000000000 0.0000000000000000
+ -2.4584988431730541 4.2582449067250403 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.4069974557806448
+ 3 6
+Direct
+ 0.4702000000000005 0.0000000000000000 0.3332999999999998 # Si1
+ 0.0000000000000002 0.4700000000000001 0.6667000000000002 # Si2
+ 0.5306000000000005 0.5305000000000006 0.0000000000000000 # Si3
+ 0.8533000000000004 0.5861000000000003 0.8812999999999998 # O1
+ 0.5862000000000002 0.8539000000000000 0.1180000000000003 # O2
+ 0.1476999999999999 0.7326000000000009 0.4532000000000003 # O3
+ 0.4139999999999999 0.2679000000000000 0.2158999999999997 # O4
+ 0.2673999999999999 0.4137000000000005 0.7858999999999999 # O5
+ 0.7338000000000003 0.1465000000000006 0.5489999999999994 # O6
diff --git a/test/data/triclinic/POSCAR-002 b/test/data/triclinic/POSCAR-002
new file mode 100644
index 0000000..12d2b67
--- /dev/null
+++ b/test/data/triclinic/POSCAR-002
@@ -0,0 +1,51 @@
+$cell vectors
+1.0
+ 5.5089974077853840 0.0000000000000000 0.0000000000000000
+ -2.3104709548280056 6.6161727417255296 0.0000000000000000
+ -1.1044014154165944 -1.5396840484579815 12.1086359754045372
+ 16 28
+Direct
+ 0.2146000000000001 0.1467999999999999 0.0629000000000001 # V1
+ 0.2229999999999993 0.6549999999999994 0.0671000000000000 # V2
+ 0.6822000000000003 0.4403000000000001 0.1996000000000001 # V3
+ 0.6873999999999999 0.9418999999999996 0.2017999999999998 # V4
+ 0.2146000000000000 0.6467999999999998 0.5628999999999997 # V5
+ 0.2229999999999996 0.1550000000000002 0.5670999999999998 # V6
+ 0.6821999999999994 0.9403000000000002 0.6995999999999999 # V7
+ 0.6873999999999989 0.4418999999999996 0.7017999999999999 # V8
+ 0.7854000000000000 0.8532000000000002 0.9370999999999999 # V9
+ 0.7769999999999992 0.3449999999999996 0.9328999999999996 # V10
+ 0.3177999999999996 0.5596999999999999 0.8003999999999998 # V11
+ 0.3125999999999999 0.0581000000000003 0.7981999999999998 # V12
+ 0.7853999999999998 0.3532000000000001 0.4370999999999997 # V13
+ 0.7769999999999994 0.8449999999999998 0.4328999999999998 # V14
+ 0.3177999999999997 0.0596999999999999 0.3004000000000001 # V15
+ 0.3125999999999999 0.5581000000000003 0.2981999999999999 # V16
+ 0.1005000000000002 0.8575999999999999 0.0105000000000001 # O1
+ 0.5863999999999996 0.7957999999999996 0.0545000000000002 # O2
+ 0.8548999999999993 0.4932000000000002 0.0835999999999999 # O3
+ 0.3271000000000002 0.4366999999999996 0.1372999999999999 # O4
+ 0.5257000000000001 0.1433000000000002 0.1641999999999998 # O5
+ 0.0309000000000001 0.0640999999999997 0.1982000000000001 # O6
+ 0.2954999999999995 0.7921999999999999 0.2242999999999999 # O7
+ 0.1005000000000002 0.3575999999999998 0.5104999999999997 # O8
+ 0.5863999999999995 0.2957999999999997 0.5545000000000000 # O9
+ 0.8548999999999995 0.9932000000000004 0.5836000000000001 # O10
+ 0.3270999999999992 0.9366999999999996 0.6372999999999996 # O11
+ 0.5257000000000001 0.6433000000000003 0.6642000000000001 # O12
+ 0.0308999999999995 0.5641000000000004 0.6981999999999998 # O13
+ 0.2954999999999994 0.2922000000000000 0.7242999999999997 # O14
+ 0.8994999999999997 0.1424000000000001 0.9894999999999997 # O15
+ 0.4135999999999994 0.2042000000000002 0.9454999999999997 # O16
+ 0.1450999999999994 0.5067999999999996 0.9163999999999995 # O17
+ 0.6728999999999996 0.5633000000000002 0.8626999999999997 # O18
+ 0.4742999999999997 0.8566999999999997 0.8357999999999995 # O19
+ 0.9690999999999995 0.9358999999999996 0.8017999999999996 # O20
+ 0.7044999999999996 0.2078000000000000 0.7756999999999999 # O21
+ 0.8994999999999997 0.6424000000000002 0.4895000000000001 # O22
+ 0.4135999999999994 0.7042000000000003 0.4455000000000000 # O23
+ 0.1450999999999995 0.0067999999999997 0.4163999999999998 # O24
+ 0.6728999999999996 0.0633000000000003 0.3626999999999999 # O25
+ 0.4742999999999998 0.3566999999999998 0.3357999999999999 # O26
+ 0.9690999999999999 0.4359000000000004 0.3018000000000000 # O27
+ 0.7044999999999995 0.7078000000000000 0.2756999999999998 # O28
diff --git a/test/data/trigonal/POSCAR-143 b/test/data/trigonal/POSCAR-143
new file mode 100644
index 0000000..092dbc0
--- /dev/null
+++ b/test/data/trigonal/POSCAR-143
@@ -0,0 +1,29 @@
+POSCAR generated by cell class
+1.0
+ 7.2487965891368127 0.0000000000000000 0.0000000000000000
+ -3.6243982945684046 6.2776419930584701 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.7835968080328399
+ 3 6 4 9
+Direct
+ 0.6666666666666666 0.3333333333333333 0.7501000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5589000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.6875000000000000 # 13
+ 0.7459000000000000 0.9600000000000000 0.0439000000000000 # 21
+ 0.9268999999999999 0.3777000000000000 0.2563000000000000 # 22
+ 0.0400000000000000 0.7859000000000002 0.0439000000000000 # 23
+ 0.6223000000000000 0.5492000000000000 0.2563000000000000 # 24
+ 0.2141000000000000 0.2541000000000000 0.0439000000000000 # 25
+ 0.4508000000000000 0.0731000000000000 0.2563000000000000 # 26
+ 0.7065000000000000 0.1313000000000000 0.1923000000000000 # 31
+ 0.0000000000000000 0.0000000000000000 0.0936000000000000 # 32
+ 0.8687000000000000 0.5752000000000002 0.1923000000000000 # 33
+ 0.4248000000000000 0.2935000000000000 0.1923000000000000 # 34
+ 0.1190000000000000 0.4109000000000000 0.1047000000000000 # 41
+ 0.7107000000000000 0.9920000000000000 0.8157000000000000 # 42
+ 0.9850000000000000 0.3764000000000000 0.4830000000000000 # 43
+ 0.5891000000000000 0.7081000000000000 0.1047000000000000 # 44
+ 0.0080000000000000 0.7187000000000000 0.8157000000000000 # 45
+ 0.6236000000000002 0.6086000000000000 0.4830000000000000 # 46
+ 0.2919000000000000 0.8810000000000000 0.1047000000000000 # 47
+ 0.2813000000000000 0.2893000000000000 0.8157000000000000 # 48
+ 0.3914000000000001 0.0150000000000000 0.4830000000000000 # 49
diff --git a/test/data/trigonal/POSCAR-143-2 b/test/data/trigonal/POSCAR-143-2
new file mode 100644
index 0000000..d9f9303
--- /dev/null
+++ b/test/data/trigonal/POSCAR-143-2
@@ -0,0 +1,43 @@
+POSCAR generated by cell class
+1.0
+ 7.9541862572213473 0.0000000000000000 0.0000000000000000
+ -3.9770931286106719 6.8885273651867509 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.3612965362008600
+ 4 6 2 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.9368000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.4509000000000000 # 12
+ 0.0000000000000000 0.0000000000000000 0.5677000000000000 # 13
+ 0.6666666666666666 0.3333333333333333 0.0572000000000000 # 14
+ 0.9812000000000000 0.3599000000000000 0.7560000000000000 # 21
+ 0.0076000000000000 0.7163000000000002 0.2573000000000000 # 22
+ 0.6401000000000000 0.6213000000000000 0.7560000000000000 # 23
+ 0.2837000000000000 0.2913000000000000 0.2573000000000000 # 24
+ 0.3787000000000000 0.0188000000000000 0.7560000000000000 # 25
+ 0.7087000000000000 0.9923999999999999 0.2573000000000000 # 26
+ 0.3333333333333333 0.6666666666666666 0.2534000000000000 # 31
+ 0.3333333333333333 0.6666666666666666 0.7844000000000000 # 32
+ 0.8888000000000001 0.3916000000000000 0.9187000000000000 # 41
+ 0.8858000000000001 0.3806000000000000 0.5865000000000000 # 42
+ 0.0645000000000000 0.8356000000000000 0.0794000000000000 # 43
+ 0.1349000000000000 0.6114000000000002 0.2501000000000000 # 44
+ 0.8099000000000000 0.5380000000000000 0.2507000000000000 # 45
+ 0.7504000000000000 0.9164000000000000 0.4369000000000000 # 46
+ 0.9235000000000000 0.1339000000000000 0.7548000000000000 # 47
+ 0.2141000000000000 0.4884000000000000 0.7471000000000000 # 48
+ 0.6084000000000002 0.4972000000000000 0.9187000000000000 # 49
+ 0.6194000000000000 0.5052000000000000 0.5865000000000000 # 410
+ 0.1644000000000000 0.2289000000000000 0.0794000000000000 # 411
+ 0.3886000000000000 0.5235000000000000 0.2501000000000000 # 412
+ 0.4620000000000000 0.2719000000000000 0.2507000000000000 # 413
+ 0.0836000000000000 0.8340000000000000 0.4369000000000000 # 414
+ 0.8661000000000000 0.7896000000000000 0.7548000000000000 # 415
+ 0.5116000000000002 0.7257000000000000 0.7471000000000000 # 416
+ 0.5028000000000000 0.1112000000000000 0.9187000000000000 # 417
+ 0.4948000000000000 0.1142000000000000 0.5865000000000000 # 418
+ 0.7711000000000000 0.9355000000000000 0.0794000000000000 # 419
+ 0.4765000000000000 0.8651000000000000 0.2501000000000000 # 420
+ 0.7281000000000000 0.1901000000000000 0.2507000000000000 # 421
+ 0.1660000000000000 0.2496000000000000 0.4369000000000000 # 422
+ 0.2104000000000000 0.0765000000000000 0.7548000000000000 # 423
+ 0.2743000000000000 0.7859000000000002 0.7471000000000000 # 424
diff --git a/test/data/trigonal/POSCAR-144 b/test/data/trigonal/POSCAR-144
new file mode 100644
index 0000000..7711ee3
--- /dev/null
+++ b/test/data/trigonal/POSCAR-144
@@ -0,0 +1,52 @@
+$cell vectors
+1.0
+ 6.8672967686484947 0.0000000000000000 0.0000000000000000
+ -3.4336483843242473 5.9472534569763829 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.0619919716163047
+ 24 21
+Direct
+ 0.1667000000000003 0.3333000000000003 0.0833000000000000 # S1
+ 0.1667000000000002 0.8333000000000002 0.0833000000000000 # S2
+ 0.6667000000000003 0.3333000000000003 0.0833000000000000 # S3
+ 0.6667000000000003 0.8333000000000002 0.0833000000000000 # S4
+ 0.3332999999999998 0.1666999999999998 0.2511999999999999 # S5
+ 0.3332999999999997 0.6666999999999996 0.2511999999999999 # S6
+ 0.8333000000000006 0.6666999999999996 0.2511999999999999 # S7
+ 0.8332999999999998 0.1666999999999998 0.2348999999999999 # S8
+ 0.6667000000000001 0.8334000000000003 0.4166333333333330 # S9
+ 0.1667000000000002 0.3334000000000004 0.4166333333333330 # S10
+ 0.6667000000000002 0.3334000000000004 0.4166333333333330 # S11
+ 0.1667000000000001 0.8334000000000003 0.4166333333333330 # S12
+ 0.8332999999999998 0.1665999999999996 0.5845333333333330 # S13
+ 0.3333000000000003 0.6666000000000005 0.5845333333333330 # S14
+ 0.3333000000000003 0.1666000000000005 0.5845333333333330 # S15
+ 0.8333000000000003 0.6666000000000005 0.5682333333333333 # S16
+ 0.1665999999999999 0.8333000000000002 0.7499666666666666 # S17
+ 0.6666000000000007 0.8333000000000002 0.7499666666666666 # S18
+ 0.6666000000000010 0.3333000000000003 0.7499666666666666 # S19
+ 0.1666000000000000 0.3333000000000003 0.7499666666666666 # S20
+ 0.8334000000000004 0.6667000000000005 0.9178666666666665 # S21
+ 0.3334000000000004 0.6667000000000005 0.9178666666666665 # S22
+ 0.8334000000000001 0.1666999999999998 0.9178666666666665 # S23
+ 0.3334000000000000 0.1666999999999998 0.9015666666666664 # S24
+ 0.5000000000000000 0.5000000000000000 0.1750000000000000 # Fe1
+ 0.4708000000000003 0.9855000000000008 0.1587000000000000 # Fe2
+ 0.0146000000000003 0.9855000000000008 0.1587000000000000 # Fe3
+ 0.0146000000000003 0.5292000000000006 0.1587000000000000 # Fe4
+ 0.5328000000000005 0.0164000000000001 0.3273000000000001 # Fe5
+ 0.9836000000000004 0.0164000000000001 0.3273000000000001 # Fe6
+ 0.9083000000000002 0.4671999999999999 0.3273000000000001 # Fe7
+ 0.5000000000000000 0.0000000000000000 0.5083333333333331 # Fe8
+ 0.0145000000000001 0.4853000000000005 0.4920333333333333 # Fe9
+ 0.0144999999999996 0.0290999999999995 0.4920333333333333 # Fe10
+ 0.4707999999999999 0.4853999999999997 0.4920333333333333 # Fe11
+ 0.9836000000000004 0.5164000000000000 0.6606333333333332 # Fe12
+ 0.9836000000000000 0.9671999999999999 0.6606333333333332 # Fe13
+ 0.5327999999999999 0.4411000000000000 0.6606333333333332 # Fe14
+ 0.0000000000000000 0.5000000000000000 0.8416666666666665 # Fe15
+ 0.5147000000000006 0.5292000000000006 0.8253666666666664 # Fe16
+ 0.9709000000000005 0.9854000000000006 0.8253666666666664 # Fe17
+ 0.5146000000000011 0.9854000000000006 0.8253666666666664 # Fe18
+ 0.4835999999999999 0.4671999999999999 0.9939666666666666 # Fe19
+ 0.0327999999999997 0.0164000000000001 0.9939666666666666 # Fe20
+ 0.5589000000000000 0.0917000000000001 0.9939666666666666 # Fe21
diff --git a/test/data/trigonal/POSCAR-144-2 b/test/data/trigonal/POSCAR-144-2
new file mode 100644
index 0000000..5345b0d
--- /dev/null
+++ b/test/data/trigonal/POSCAR-144-2
@@ -0,0 +1,22 @@
+$cell vectors
+1.0
+ 4.3367979593544508 0.0000000000000000 0.0000000000000000
+ -2.1683989796772254 3.7557772038814652 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3396960758227934
+ 9 6
+Direct
+ 0.5467999999999996 0.3972000000000003 0.0000000000000000 # O1
+ 0.1484999999999996 0.6003999999999994 0.0774999999999998 # O2
+ 0.0045000000000005 0.1608000000000002 0.8709999999999996 # O3
+ 0.6027999999999993 0.1496000000000000 0.3333333333333333 # O4
+ 0.3995999999999998 0.5481000000000005 0.4108333333333332 # O5
+ 0.8391999999999997 0.8436999999999997 0.2043333333333335 # O6
+ 0.8503999999999995 0.4531999999999999 0.6666666666666666 # O7
+ 0.4519000000000007 0.8515000000000005 0.7441666666666664 # O8
+ 0.1563000000000012 0.9955000000000005 0.5376666666666670 # O9
+ 0.2229000000000006 0.3926000000000006 0.9810000000000001 # B1
+ 0.8280999999999993 0.6030999999999995 0.0921000000000002 # B2
+ 0.6074000000000001 0.8303000000000004 0.3143333333333334 # B3
+ 0.3969000000000004 0.2250000000000001 0.4254333333333336 # B4
+ 0.1696999999999995 0.7770999999999993 0.6476666666666667 # B5
+ 0.7750000000000001 0.1719000000000005 0.7587666666666669 # B6
diff --git a/test/data/trigonal/POSCAR-145 b/test/data/trigonal/POSCAR-145
new file mode 100644
index 0000000..3bfb3c1
--- /dev/null
+++ b/test/data/trigonal/POSCAR-145
@@ -0,0 +1,163 @@
+$cell vectors
+1.0
+ 12.6919940278838439 0.0000000000000000 0.0000000000000000
+ -6.3459970139419166 10.9915892528277865 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.1859909721855750
+ 12 24 120
+Direct
+ 0.0023000000000002 0.0020000000000001 0.0000000000000000 # Sr1
+ 0.4995000000000002 0.4995000000000003 0.0022000000000001 # Sr2
+ 0.5002999999999999 0.5027999999999998 0.6689000000000002 # Sr3
+ 0.4978999999999999 0.4989000000000001 0.3381000000000000 # Sr4
+ 0.9979999999999999 0.0003000000000001 0.6666666666666670 # Sr5
+ 0.5004999999999998 0.0000000000000000 0.6688666666666671 # Sr6
+ 0.4971999999999999 0.9975000000000001 0.3355666666666666 # Sr7
+ 0.5010999999999997 0.9990000000000001 0.0047666666666667 # Sr8
+ 0.9996999999999998 0.9977000000000004 0.3333333333333333 # Sr9
+ 0.0000000000000001 0.5005000000000002 0.3355333333333334 # Sr10
+ 0.0025000000000002 0.4997000000000001 0.0022333333333334 # Sr11
+ 0.0010000000000002 0.5021000000000001 0.6714333333333335 # Sr12
+ 0.8438999999999995 0.5334000000000000 0.5052000000000000 # S1
+ 0.6537999999999999 0.4688000000000003 0.5049000000000001 # S2
+ 0.8097999999999999 0.9664000000000000 0.4988000000000001 # S3
+ 0.6839999999999998 1.0308000000000004 0.4999000000000000 # S4
+ 0.3178000000000000 0.8473000000000003 0.8381000000000001 # S5
+ 0.1904000000000002 0.6580000000000004 0.8388000000000003 # S6
+ 0.8461999999999998 0.8170000000000002 0.8337000000000001 # S7
+ 0.6568999999999998 0.6902000000000001 0.8336000000000003 # S8
+ 0.4666000000000001 0.3105000000000001 0.1718666666666667 # S9
+ 0.5312000000000000 0.1850000000000002 0.1715666666666668 # S10
+ 0.0336000000000000 0.8433999999999999 0.1654666666666668 # S11
+ -0.0308000000000003 0.6532000000000002 0.1665666666666667 # S12
+ 0.1527000000000002 0.4705000000000003 0.5047666666666668 # S13
+ 0.3419999999999997 0.5324000000000002 0.5054666666666666 # S14
+ 0.1830000000000002 1.0292000000000003 0.5003666666666667 # S15
+ 0.3097999999999998 0.9667000000000001 0.5002666666666666 # S16
+ 0.6895000000000000 0.1561000000000000 0.8385333333333334 # S17
+ 0.8149999999999998 0.3461999999999999 0.8382333333333334 # S18
+ 0.1566000000000000 0.1901999999999999 0.8321333333333336 # S19
+ 0.3467999999999998 0.3159999999999998 0.8332333333333336 # S20
+ 0.5294999999999999 0.6821999999999998 0.1714333333333335 # S21
+ 0.4675999999999997 0.8095999999999998 0.1721333333333334 # S22
+ -0.0292000000000001 0.1538000000000003 0.1670333333333335 # S23
+ 0.0333000000000000 0.3431000000000002 0.1669333333333335 # S24
+ 0.8655999999999998 0.4849000000000001 0.4422000000000001 # O1
+ 0.8636999999999997 0.4865000000000002 0.5689000000000004 # O2
+ 0.8994999999999996 0.6657999999999998 0.5048000000000000 # O3
+ 0.6363999999999996 0.5244999999999997 0.5663000000000001 # O4
+ 0.6338000000000001 0.5131000000000003 0.4401000000000002 # O5
+ 0.5939000000000001 0.3362000000000002 0.5087999999999999 # O6
+ 0.8794999999999997 1.0140000000000002 0.5615000000000002 # O7
+ 0.8775999999999999 1.0145000000000002 0.4353000000000002 # O8
+ 0.7340999999999998 0.8352999999999999 0.4981999999999999 # O9
+ 0.6101999999999997 0.9746000000000004 0.4388000000000002 # O10
+ 0.6205999999999999 0.9873000000000005 0.5656000000000002 # O11
+ 0.7583999999999996 1.1638000000000006 0.4956000000000002 # O12
+ 0.3817999999999998 0.8666000000000003 0.7733000000000001 # O13
+ 0.3898000000000001 0.8643000000000001 0.8997000000000004 # O14
+ 0.2449999999999999 0.9086000000000001 0.8417000000000003 # O15
+ 0.1230999999999998 0.6399000000000000 0.9018000000000002 # O16
+ 0.1216000000000000 0.6361000000000001 0.7757000000000002 # O17
+ 0.2645000000000000 0.6002000000000000 0.8394000000000003 # O18
+ 0.8663000000000001 0.8809000000000002 0.8989000000000003 # O19
+ 0.8628999999999996 0.8901000000000000 0.7723000000000003 # O20
+ 0.9072000000000001 0.7443000000000000 0.8297000000000001 # O21
+ 0.6378999999999999 0.6211000000000000 0.7706000000000002 # O22
+ 0.6363000000000003 0.6213000000000002 0.8969000000000001 # O23
+ 0.5994999999999999 0.7640000000000001 0.8331000000000003 # O24
+ 0.5923000000000000 0.7280000000000003 0.3764000000000000 # O25
+ 0.5901000000000000 0.3671000000000000 0.9618999999999999 # O26
+ 0.0913000000000001 0.8673000000000000 0.9590000000000001 # O27
+ 0.7224000000000000 0.6332000000000001 0.0433000000000001 # O28
+ 0.2743000000000000 0.3967000000000003 0.2958000000000001 # O29
+ 0.1026000000000002 0.2229000000000000 0.3805000000000000 # O30
+ 0.3766999999999999 0.6034999999999999 0.7112000000000002 # O31
+ 0.3776000000000002 0.2730000000000002 0.6258000000000002 # O32
+ 0.8668999999999999 0.5909000000000003 0.7123000000000004 # O33
+ 0.2248999999999997 0.5916999999999998 0.2939999999999999 # O34
+ 0.2282000000000000 0.0926000000000000 0.2946000000000000 # O35
+ 0.0918000000000002 0.7245000000000003 0.3779000000000002 # O36
+ 0.8801999999999998 0.2765999999999999 0.6244000000000001 # O37
+ 0.8761999999999995 0.1016000000000000 0.7088000000000002 # O38
+ 0.7737000000000001 0.3771000000000002 0.0460000000000000 # O39
+ 0.1039000000000000 0.3768000000000001 0.9603000000000000 # O40
+ 0.5150999999999999 0.3807000000000003 0.1088666666666667 # O41
+ 0.5135000000000000 0.3772000000000001 0.2355666666666668 # O42
+ 0.3342000000000001 0.2337000000000002 0.1714666666666667 # O43
+ 0.4754999999999997 0.1118999999999999 0.2329666666666669 # O44
+ 0.4869000000000000 0.1207000000000002 0.1067666666666666 # O45
+ 0.6637999999999996 0.2577000000000000 0.1754666666666667 # O46
+ -0.0140000000000002 0.8655000000000002 0.2281666666666666 # O47
+ -0.0145000000000002 0.8631000000000002 0.1019666666666667 # O48
+ 0.1646999999999997 0.8988000000000000 0.1648666666666667 # O49
+ 0.0253999999999997 0.6356000000000002 0.1054666666666669 # O50
+ 0.0127000000000001 0.6333000000000005 0.2322666666666666 # O51
+ -0.1638000000000002 0.5946000000000002 0.1622666666666668 # O52
+ 0.1334000000000001 0.5152000000000002 0.4399666666666668 # O53
+ 0.1356999999999999 0.5255000000000002 0.5663666666666670 # O54
+ 0.0914000000000001 0.3363999999999999 0.5083666666666667 # O55
+ 0.3600999999999997 0.4831999999999997 0.5684666666666668 # O56
+ 0.3638999999999999 0.4854999999999999 0.4423666666666666 # O57
+ 0.3997999999999999 0.6643000000000002 0.5060666666666669 # O58
+ 0.1191000000000000 0.9854000000000003 0.5655666666666670 # O59
+ 0.1099000000000001 0.9728000000000001 0.4389666666666667 # O60
+ 0.2556999999999997 1.1629000000000000 0.4963666666666668 # O61
+ 0.3789000000000001 1.0168000000000004 0.4372666666666666 # O62
+ 0.3786999999999999 1.0150000000000001 0.5635666666666670 # O63
+ 0.2359999999999998 0.8355000000000002 0.4997666666666666 # O64
+ 0.2720000000000000 0.8643000000000001 0.0430666666666667 # O65
+ 0.6329000000000000 0.2229999999999998 0.6285666666666667 # O66
+ 0.1327000000000002 0.2240000000000001 0.6256666666666667 # O67
+ 0.3668000000000000 0.0892000000000001 0.7099666666666669 # O68
+ 0.6032999999999996 0.8775999999999998 0.9624666666666668 # O69
+ 0.7770999999999997 0.8797000000000003 0.0471666666666667 # O70
+ 0.3964999999999999 0.7731999999999999 0.3778666666666669 # O71
+ 0.7269999999999998 0.1045999999999998 0.2924666666666667 # O72
+ 0.4091000000000000 0.2760000000000001 0.3789666666666668 # O73
+ 0.4082999999999999 0.6332000000000001 0.9606666666666670 # O74
+ 0.9073999999999999 0.1356000000000000 0.9612666666666669 # O75
+ 0.2754999999999997 0.3673000000000002 0.0445666666666666 # O76
+ 0.7233999999999998 0.6035999999999998 0.2910666666666666 # O77
+ 0.8983999999999999 0.7746000000000000 0.3754666666666667 # O78
+ 0.6229000000000000 0.3966000000000000 0.7126666666666669 # O79
+ 0.6231999999999999 0.7271000000000001 0.6269666666666668 # O80
+ 0.6193000000000001 0.1344000000000000 0.7755333333333335 # O81
+ 0.6228000000000001 0.1363000000000001 0.9022333333333334 # O82
+ 0.7662999999999999 0.1004999999999998 0.8381333333333337 # O83
+ 0.8881000000000002 0.3636000000000002 0.8996333333333336 # O84
+ 0.8792999999999996 0.3662000000000000 0.7734333333333336 # O85
+ 0.7422999999999995 0.4060999999999999 0.8421333333333335 # O86
+ 0.1345000000000001 0.1204999999999999 0.8948333333333335 # O87
+ 0.1369000000000001 0.1224000000000001 0.7686333333333335 # O88
+ 0.1012000000000002 0.2659000000000000 0.8315333333333335 # O89
+ 0.3644000000000000 0.3898000000000002 0.7721333333333334 # O90
+ 0.3666999999999996 0.3793999999999999 0.8989333333333337 # O91
+ 0.4054000000000001 0.2416000000000001 0.8289333333333333 # O92
+ 0.4848000000000001 0.6182000000000005 0.1066333333333333 # O93
+ 0.4745000000000001 0.6102000000000002 0.2330333333333334 # O94
+ 0.6635999999999995 0.7550000000000000 0.1750333333333335 # O95
+ 0.5167999999999999 0.8769000000000001 0.2351333333333334 # O96
+ 0.5144999999999997 0.8784000000000004 0.1090333333333333 # O97
+ 0.3356999999999999 0.7355000000000004 0.1727333333333336 # O98
+ 0.0146000000000002 0.1337000000000003 0.2322333333333334 # O99
+ 0.0271999999999999 0.1371000000000002 0.1056333333333332 # O100
+ -0.1629000000000001 0.0928000000000002 0.1630333333333336 # O101
+ -0.0167999999999999 0.3621000000000000 0.1039333333333331 # O102
+ -0.0150000000000000 0.3637000000000001 0.2302333333333334 # O103
+ 0.1645000000000000 0.4005000000000001 0.1664333333333331 # O104
+ 0.1356999999999997 0.4076999999999998 0.7097333333333334 # O105
+ 0.7769999999999999 0.4099000000000002 0.2952333333333332 # O106
+ 0.7760000000000000 0.9087000000000005 0.2923333333333334 # O107
+ 0.9108000000000001 0.2776000000000002 0.3766333333333334 # O108
+ 0.1224000000000001 0.7257000000000002 0.6291333333333333 # O109
+ 0.1203000000000002 0.8974000000000004 0.7138333333333335 # O110
+ 0.2268000000000001 0.6233000000000002 0.0445333333333333 # O111
+ 0.8953999999999998 0.6224000000000004 0.9591333333333339 # O112
+ 0.7240000000000000 0.1331000000000001 0.0456333333333335 # O113
+ 0.3667999999999999 0.7750999999999999 0.6273333333333334 # O114
+ 0.8643999999999996 0.7718000000000000 0.6279333333333333 # O115
+ 0.6326999999999998 0.9082000000000000 0.7112333333333335 # O116
+ 0.3964000000000004 0.1198000000000003 0.9577333333333334 # O117
+ 0.2253999999999997 0.1237999999999999 0.0421333333333334 # O118
+ 0.6033999999999996 0.2262999999999998 0.3793333333333333 # O119
+ 0.2728999999999999 0.8961000000000002 0.2936333333333335 # O120
diff --git a/test/data/trigonal/POSCAR-145-2 b/test/data/trigonal/POSCAR-145-2
new file mode 100644
index 0000000..c29c9f1
--- /dev/null
+++ b/test/data/trigonal/POSCAR-145-2
@@ -0,0 +1,52 @@
+$cell vectors
+1.0
+ 10.5019950583703192 0.0000000000000000 0.0000000000000000
+ -5.2509975291851569 9.0949945109673394 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.4729964836413423
+ 9 9 27
+Direct
+ 0.4557000000000002 0.5679000000000000 0.6267000000000001 # Rb1
+ 0.1189999999999999 1.2214999999999998 1.0000000000000000 # Rb2
+ 0.7760000000000001 0.2206000000000002 0.6114999999999999 # Rb3
+ 0.4321000000000000 0.8877999999999996 0.2933666666666667 # Rb4
+ -0.2214999999999999 -0.1024999999999998 0.6666666666666672 # Rb5
+ 0.7793999999999998 0.5553999999999997 0.2781666666666670 # Rb6
+ 0.1122000000000000 0.5443000000000000 -0.0399666666666669 # Rb7
+ 1.1025000000000003 0.8810000000000000 0.3333333333333336 # Rb8
+ 0.4446000000000002 0.2240000000000002 -0.0551666666666666 # Rb9
+ 0.4347000000000002 0.5659000000000001 0.1008999999999997 # N1
+ 0.1057000000000001 0.2097000000000001 0.5150000000000000 # N2
+ 0.7449999999999998 0.2100999999999999 0.1097000000000002 # N3
+ 0.4341000000000001 0.8687999999999999 0.7675666666666670 # N4
+ 0.7902999999999996 0.8959999999999995 0.1816666666666665 # N5
+ 0.7898999999999996 0.5348999999999995 0.7763666666666666 # N6
+ 0.1311999999999998 0.5653000000000000 0.4342333333333332 # N7
+ 0.1039999999999999 0.8942999999999998 0.8483333333333337 # N8
+ 0.4651000000000002 0.2550000000000001 0.4430333333333338 # N9
+ 0.3379000000000000 0.5585999999999995 -0.0010000000000000 # O1
+ 0.3979999999999997 0.4754999999999995 0.2205000000000001 # O2
+ 0.5618000000000000 0.6513000000000002 0.0572999999999999 # O3
+ -0.0030000000000001 0.1085999999999998 0.6180000000000000 # O4
+ 0.2308999999999999 0.2533999999999999 0.5569999999999999 # O5
+ 0.0569999999999997 0.2449999999999996 0.3869999999999999 # O6
+ 0.6880000000000002 0.1184000000000001 0.2445000000000003 # O7
+ 0.8720000000000000 0.2797999999999999 0.0851000000000000 # O8
+ 0.6640000000000001 0.2186000000000002 0.0063999999999999 # O9
+ 0.4414000000000001 0.7792999999999997 0.6656666666666665 # O10
+ 0.5245000000000000 0.9224999999999995 0.8871666666666664 # O11
+ 0.3486999999999996 0.9104999999999996 0.7239666666666671 # O12
+ 0.8914000000000000 0.8884000000000001 0.2846666666666665 # O13
+ 0.7465999999999996 0.9774999999999998 0.2236666666666670 # O14
+ 0.7550000000000001 0.8119999999999999 0.0536666666666670 # O15
+ 0.8816000000000002 0.5695999999999997 0.9111666666666667 # O16
+ 0.7202000000000000 0.5921999999999999 0.7517666666666672 # O17
+ 0.7814000000000000 0.4453999999999999 0.6730666666666670 # O18
+ 0.2206999999999997 0.6620999999999996 0.3323333333333336 # O19
+ 0.0774999999999998 0.6019999999999996 0.5538333333333336 # O20
+ 0.0894999999999998 0.4382000000000000 0.3906333333333334 # O21
+ 0.1116000000000003 1.0030000000000003 0.9513333333333337 # O22
+ 0.0224999999999996 0.7690999999999997 0.8903333333333334 # O23
+ 0.1879999999999999 0.9429999999999998 0.7203333333333335 # O24
+ 0.4304000000000002 0.3120000000000002 0.5778333333333331 # O25
+ 0.4077999999999999 0.1280000000000002 0.4184333333333337 # O26
+ 0.5545999999999998 0.3360000000000000 0.3397333333333334 # O27
diff --git a/test/data/trigonal/POSCAR-146 b/test/data/trigonal/POSCAR-146
new file mode 100644
index 0000000..ea4ba66
--- /dev/null
+++ b/test/data/trigonal/POSCAR-146
@@ -0,0 +1,100 @@
+$cell vectors
+1.0
+ 10.8369949007388264 0.0000000000000000 0.0000000000000000
+ -5.4184974503694106 9.3851128847222434 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.1569961617907758
+ 3 27 9 54
+Direct
+ 1.0000000000000000 0.0000000000000000 1.0000000000000000 # Cr1
+ 0.6666666666666669 0.3333333333333336 0.3333333333333331 # Cr2
+ 0.3333333333333331 0.6666666666666667 0.6666666666666669 # Cr3
+ 0.6502999999999999 0.4747000000000002 0.1928000000000000 # O1
+ 0.5175000000000001 0.3288000000000003 0.4655000000000000 # O2
+ 0.4217000000000001 0.1837000000000000 0.9075999999999999 # O3
+ 0.3169666666666668 0.8080333333333337 0.5261333333333330 # O4
+ 0.1841666666666669 0.6621333333333335 0.7988333333333331 # O5
+ 0.0883666666666671 0.5170333333333336 0.2409333333333329 # O6
+ 0.9836333333333334 0.1413666666666667 0.8594666666666667 # O7
+ 0.8508333333333330 -0.0045333333333333 1.1321666666666668 # O8
+ 0.7550333333333332 0.8503666666666667 0.5742666666666666 # O9
+ 0.5252999999999999 0.1756000000000000 0.1928000000000000 # O10
+ 0.6712000000000002 0.1887000000000000 0.4655000000000000 # O11
+ 0.8163000000000002 0.2380000000000002 0.9075999999999999 # O12
+ 0.1919666666666668 0.5089333333333337 0.5261333333333330 # O13
+ 0.3378666666666667 0.5220333333333337 0.7988333333333331 # O14
+ 0.4829666666666665 0.5713333333333332 0.2409333333333329 # O15
+ 0.8586333333333331 -0.1577333333333336 0.8594666666666667 # O16
+ 1.0045333333333331 -0.1446333333333335 1.1321666666666668 # O17
+ 0.1496333333333337 0.9046666666666670 0.5742666666666666 # O18
+ 0.8243999999999997 0.3496999999999999 0.1928000000000000 # O19
+ 0.8112999999999999 0.4825000000000004 0.4655000000000000 # O20
+ 0.7620000000000000 0.5783000000000000 0.9075999999999999 # O21
+ 0.4910666666666668 0.6830333333333335 0.5261333333333330 # O22
+ 0.4779666666666667 0.8158333333333334 0.7988333333333331 # O23
+ 0.4286666666666669 0.9116333333333334 0.2409333333333329 # O24
+ 1.1577333333333335 0.0163666666666669 0.8594666666666667 # O25
+ 1.1446333333333334 0.1491666666666668 1.1321666666666668 # O26
+ 0.0953333333333333 0.2449666666666669 0.5742666666666666 # O27
+ 0.5183000000000001 0.4298000000000003 0.7528999999999999 # F1
+ 0.1849666666666669 0.7631333333333333 0.0862333333333337 # F2
+ 0.8516333333333332 0.0964666666666667 0.4195666666666668 # F3
+ 0.5701999999999999 0.0884999999999998 0.7528999999999999 # F4
+ 0.2368666666666669 0.4218333333333334 0.0862333333333337 # F5
+ 0.9035333333333333 0.7551666666666670 0.4195666666666668 # F6
+ 0.9114999999999999 0.4817000000000000 0.7528999999999999 # F7
+ 0.5781666666666666 0.8150333333333331 0.0862333333333337 # F8
+ 0.2448333333333331 0.1483666666666665 0.4195666666666668 # F9
+ 0.4471000000000003 0.2582000000000001 0.8697999999999995 # H1
+ 0.4624000000000000 0.1563999999999998 0.8539000000000001 # H2
+ 0.5238000000000003 0.3651000000000003 0.5512000000000000 # H3
+ 0.4389000000000002 0.2645000000000002 0.4475999999999997 # H4
+ 0.5895000000000000 0.5018000000000001 0.2014000000000000 # H5
+ 0.6910999999999999 0.4994000000000003 0.1052999999999999 # H6
+ 0.1137666666666665 0.5915333333333331 0.2031333333333333 # H7
+ 0.1290666666666666 0.4897333333333334 0.1872333333333333 # H8
+ 0.1904666666666670 0.6984333333333334 0.8845333333333331 # H9
+ 0.1055666666666664 0.5978333333333332 0.7809333333333335 # H10
+ 0.2561666666666670 0.8351333333333336 0.5347333333333329 # H11
+ 0.3577666666666667 0.8327333333333333 0.4386333333333330 # H12
+ 0.7804333333333333 0.9248666666666666 0.5364666666666664 # H13
+ 0.7957333333333334 0.8230666666666669 0.5205666666666663 # H14
+ 0.8571333333333334 0.0317666666666668 1.2178666666666662 # H15
+ 0.7722333333333332 -0.0688333333333334 1.1142666666666665 # H16
+ 0.9228333333333328 0.1684666666666665 0.8680666666666662 # H17
+ 1.0244333333333335 0.1660666666666667 0.7719666666666667 # H18
+ 0.7418000000000001 0.1889000000000000 0.8697999999999995 # H19
+ 0.8436000000000003 0.3060000000000001 0.8539000000000001 # H20
+ 0.6348999999999999 0.1587000000000001 0.5512000000000000 # H21
+ 0.7355000000000002 0.1743999999999999 0.4475999999999997 # H22
+ 0.4982000000000002 0.0877000000000000 0.2014000000000000 # H23
+ 0.5006000000000002 0.1917000000000001 0.1052999999999999 # H24
+ 0.4084666666666666 0.5222333333333335 0.2031333333333333 # H25
+ 0.5102666666666668 0.6393333333333338 0.1872333333333333 # H26
+ 0.3015666666666670 0.4920333333333337 0.8845333333333331 # H27
+ 0.4021666666666667 0.5077333333333334 0.7809333333333335 # H28
+ 0.1648666666666667 0.4210333333333336 0.5347333333333329 # H29
+ 0.1672666666666670 0.5250333333333337 0.4386333333333330 # H30
+ 0.0751333333333334 0.8555666666666667 0.5364666666666664 # H31
+ 0.1769333333333336 0.9726666666666668 0.5205666666666663 # H32
+ 0.9682333333333333 -0.1746333333333335 1.2178666666666662 # H33
+ 1.0688333333333333 -0.1589333333333332 1.1142666666666665 # H34
+ 0.8315333333333331 -0.2456333333333335 0.8680666666666662 # H35
+ 0.8339333333333333 -0.1416333333333334 0.7719666666666667 # H36
+ 0.8111000000000002 0.5529000000000002 0.8697999999999995 # H37
+ 0.6940000000000000 0.5376000000000003 0.8539000000000001 # H38
+ 0.8412999999999999 0.4762000000000002 0.5512000000000000 # H39
+ 0.8256000000000001 0.5611000000000002 0.4475999999999997 # H40
+ 0.9123000000000002 0.4105000000000001 0.2014000000000000 # H41
+ 0.8082999999999998 0.3088999999999998 0.1052999999999999 # H42
+ 0.4777666666666670 0.8862333333333337 0.2031333333333333 # H43
+ 0.3606666666666671 0.8709333333333339 0.1872333333333333 # H44
+ 0.5079666666666667 0.8095333333333333 0.8845333333333331 # H45
+ 0.4922666666666667 0.8944333333333331 0.7809333333333335 # H46
+ 0.5789666666666669 0.7438333333333337 0.5347333333333329 # H47
+ 0.4749666666666668 0.6422333333333333 0.4386333333333330 # H48
+ 0.1444333333333331 0.2195666666666665 0.5364666666666664 # H49
+ 0.0273333333333332 0.2042666666666667 0.5205666666666663 # H50
+ 1.1746333333333328 0.1428666666666667 1.2178666666666662 # H51
+ 1.1589333333333336 0.2277666666666666 1.1142666666666665 # H52
+ 1.2456333333333331 0.0771666666666665 0.8680666666666662 # H53
+ 1.1416333333333331 -0.0244333333333333 0.7719666666666667 # H54
diff --git a/test/data/trigonal/POSCAR-146-2 b/test/data/trigonal/POSCAR-146-2
new file mode 100644
index 0000000..4d87706
--- /dev/null
+++ b/test/data/trigonal/POSCAR-146-2
@@ -0,0 +1,28 @@
+$cell vectors
+1.0
+ 5.9999971767493738 0.0000000000000000 0.0000000000000000
+ -2.9999985883746869 5.1961499776998687 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.3299932571364206
+ 6 6 9
+Direct
+ 0.0000000000000000 0.0000000000000000 0.7444999999999999 # K1
+ 0.0000000000000000 0.0000000000000000 0.2379999999999999 # K2
+ 0.6666666666666667 0.3333333333333334 0.0778333333333334 # K3
+ 0.6666666666666667 0.3333333333333334 0.5713333333333330 # K4
+ 0.3333333333333334 0.6666666666666667 0.4111666666666668 # K5
+ 0.3333333333333334 0.6666666666666667 0.9046666666666667 # K6
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Sn1
+ 0.0000000000000000 0.0000000000000000 0.4820000000000001 # Sn2
+ 0.6666666666666667 0.3333333333333334 0.3333333333333335 # Sn3
+ 0.6666666666666667 0.3333333333333334 0.8153333333333330 # Sn4
+ 0.3333333333333334 0.6666666666666667 0.6666666666666670 # Sn5
+ 0.3333333333333334 0.6666666666666667 0.1486666666666666 # Sn6
+ 0.1684999999999998 0.3380000000000002 0.0617999999999999 # O1
+ 0.8351666666666673 0.6713333333333336 0.3951333333333333 # O2
+ 0.5018333333333331 0.0046666666666668 0.7284666666666668 # O3
+ 0.6620000000000003 0.8304999999999999 0.0617999999999999 # O4
+ 0.3286666666666669 0.1638333333333331 0.3951333333333333 # O5
+ 0.9953333333333336 0.4971666666666664 0.7284666666666668 # O6
+ 0.1695000000000001 0.8315000000000003 0.0617999999999999 # O7
+ 0.8361666666666667 0.1648333333333335 0.3951333333333333 # O8
+ 0.5028333333333334 0.4981666666666669 0.7284666666666668 # O9
diff --git a/test/data/trigonal/POSCAR-147 b/test/data/trigonal/POSCAR-147
new file mode 100644
index 0000000..b93db4f
--- /dev/null
+++ b/test/data/trigonal/POSCAR-147
@@ -0,0 +1,115 @@
+$cell vectors
+1.0
+ 16.9905920052129851 0.0000000000000000 0.0000000000000000
+ -8.4952960026064890 14.7142843018512330 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.8887958174483082
+ 48 6 54
+Direct
+ 0.5352999999999999 0.1882999999999997 0.6624999999999996 # Se1
+ 0.2335999999999999 0.1699999999999999 0.0999999999999998 # Se2
+ 0.4466000000000000 0.1359000000000001 0.0826999999999998 # Se3
+ 0.6505000000000001 0.1156999999999999 0.8854999999999995 # Se4
+ 0.1463000000000000 0.1259999999999999 0.6809999999999998 # Se5
+ 0.5268999999999999 0.3238999999999997 0.3036999999999994 # Se6
+ 0.3364000000000000 0.1378000000000001 0.4005999999999997 # Se7
+ 0.4512999999999997 0.0029999999999998 0.4101999999999997 # Se8
+ 0.4647000000000000 0.8116999999999999 0.3374999999999997 # Se9
+ 0.7663999999999997 0.8299999999999997 0.8999999999999996 # Se10
+ 0.5534000000000001 0.8640999999999999 0.9172999999999998 # Se11
+ 0.3495000000000001 0.8843000000000000 0.1145000000000001 # Se12
+ 0.8536999999999999 0.8739999999999998 0.3190000000000001 # Se13
+ 0.4730999999999998 0.6760999999999998 0.6962999999999994 # Se14
+ 0.6636000000000000 0.8621999999999999 0.5993999999999997 # Se15
+ 0.5486999999999999 0.9969999999999998 0.5897999999999998 # Se16
+ 0.8117000000000000 0.3469999999999999 0.6624999999999996 # Se17
+ 0.8300000000000001 0.0636000000000000 0.0999999999999998 # Se18
+ 0.8640999999999998 0.3106999999999999 0.0826999999999998 # Se19
+ 0.8843000000000001 0.5348000000000001 0.8854999999999995 # Se20
+ 0.8740000000000002 0.0203000000000001 0.6809999999999998 # Se21
+ 0.6761000000000001 0.2029999999999999 0.3036999999999994 # Se22
+ 0.8622000000000001 0.1986000000000001 0.4005999999999997 # Se23
+ 0.9969999999999998 0.4483000000000001 0.4101999999999997 # Se24
+ 0.1882999999999999 0.6530000000000001 0.3374999999999997 # Se25
+ 0.1700000000000000 0.9363999999999999 0.8999999999999996 # Se26
+ 0.1358999999999999 0.6892999999999998 0.9172999999999998 # Se27
+ 0.1157000000000001 0.4652000000000000 0.1145000000000001 # Se28
+ 0.1259999999999998 0.9796999999999999 0.3190000000000001 # Se29
+ 0.3238999999999999 0.7969999999999996 0.6962999999999994 # Se30
+ 0.1378000000000000 0.8013999999999999 0.5993999999999997 # Se31
+ 0.0029999999999997 0.5516999999999997 0.5897999999999998 # Se32
+ 0.6529999999999999 0.4647000000000000 0.6624999999999996 # Se33
+ 0.9363999999999999 0.7663999999999997 0.0999999999999998 # Se34
+ 0.6892999999999998 0.5534000000000000 0.0826999999999998 # Se35
+ 0.4652000000000002 0.3495000000000000 0.8854999999999995 # Se36
+ 0.9796999999999998 0.8536999999999997 0.6809999999999998 # Se37
+ 0.7969999999999999 0.4731000000000000 0.3036999999999994 # Se38
+ 0.8013999999999999 0.6636000000000000 0.4005999999999997 # Se39
+ 0.5517000000000002 0.5487000000000001 0.4101999999999997 # Se40
+ 0.3469999999999999 0.5352999999999999 0.3374999999999997 # Se41
+ 0.0635999999999999 0.2335999999999999 0.8999999999999996 # Se42
+ 0.3107000000000000 0.4466000000000000 0.9172999999999998 # Se43
+ 0.5347999999999998 0.6504999999999995 0.1145000000000001 # Se44
+ 0.0202999999999999 0.1463000000000000 0.3190000000000001 # Se45
+ 0.2029999999999999 0.5269000000000000 0.6962999999999994 # Se46
+ 0.1986000000000000 0.3364000000000001 0.5993999999999997 # Se47
+ 0.4483000000000000 0.4513000000000000 0.5897999999999998 # Se48
+ 0.8542000000000003 0.1939000000000001 0.7983999999999998 # Na1
+ 0.1457999999999999 0.8060999999999998 0.2016000000000002 # Na2
+ 0.8061000000000000 0.6602999999999999 0.7983999999999998 # Na3
+ 0.1939000000000000 0.3396999999999998 0.2016000000000002 # Na4
+ 0.3397000000000000 0.1458000000000000 0.7983999999999998 # Na5
+ 0.6603000000000001 0.8542000000000000 0.2016000000000002 # Na6
+ 0.6041000000000001 0.2729000000000000 0.8306999999999995 # B1
+ 0.6074999999999998 0.3352999999999999 0.1318999999999996 # B2
+ 0.1073000000000000 0.0817999999999999 0.0361000000000000 # B3
+ 0.0667000000000000 0.0516999999999999 0.8498999999999993 # B4
+ 0.4374999999999999 0.2016999999999998 0.2555999999999997 # B5
+ 0.5674000000000000 0.2382999999999998 0.0186999999999999 # B6
+ 0.6629000000000003 0.2345000000000000 0.9443999999999999 # B7
+ 0.5754000000000001 0.1016000000000001 0.7072999999999997 # B8
+ 0.1375999999999999 0.2321000000000000 0.7325000000000002 # B9
+ 0.3959000000000001 0.7271000000000000 0.1692999999999999 # B10
+ 0.3925000000000001 0.6647000000000001 0.8680999999999993 # B11
+ 0.8927000000000000 0.9182000000000000 0.9639000000000000 # B12
+ 0.9333000000000000 0.9482999999999997 0.1501000000000001 # B13
+ 0.5624999999999998 0.7982999999999998 0.7443999999999997 # B14
+ 0.4326000000000000 0.7617000000000000 0.9812999999999994 # B15
+ 0.3371000000000000 0.7655000000000001 0.0555999999999996 # B16
+ 0.4246000000000000 0.8983999999999999 0.2926999999999997 # B17
+ 0.8624000000000001 0.7678999999999995 0.2674999999999999 # B18
+ 0.7271000000000000 0.3311999999999998 0.8306999999999995 # B19
+ 0.6647000000000002 0.2721999999999999 0.1318999999999996 # B20
+ 0.9181999999999999 0.0255000000000000 0.0361000000000000 # B21
+ 0.9482999999999999 0.0149999999999999 0.8498999999999993 # B22
+ 0.7983000000000000 0.2358000000000000 0.2555999999999997 # B23
+ 0.7617000000000000 0.3291000000000001 0.0186999999999999 # B24
+ 0.7655000000000002 0.4284000000000001 0.9443999999999991 # B25
+ 0.8983999999999998 0.4737999999999998 0.7072999999999997 # B26
+ 0.7679000000000000 0.9054999999999999 0.7324999999999995 # B27
+ 0.2728999999999996 0.6687999999999997 0.1692999999999999 # B28
+ 0.3353000000000000 0.7278000000000000 0.8680999999999993 # B29
+ 0.0818000000000000 0.9745000000000000 0.9639000000000000 # B30
+ 0.0516999999999997 0.9849999999999998 0.1501000000000001 # B31
+ 0.2016999999999998 0.7642000000000000 0.7443999999999997 # B32
+ 0.2382999999999998 0.6708999999999999 0.9812999999999994 # B33
+ 0.2345000000000000 0.5715999999999999 0.0555999999999996 # B34
+ 0.1015999999999999 0.5261999999999999 0.2926999999999997 # B35
+ 0.2320999999999998 0.0944999999999998 0.2674999999999999 # B36
+ 0.6688000000000002 0.3959000000000001 0.8306999999999995 # B37
+ 0.7277999999999998 0.3924999999999998 0.1318999999999996 # B38
+ 0.9744999999999999 0.8927000000000000 0.0361000000000000 # B39
+ 0.9849999999999999 0.9332999999999998 0.8498999999999993 # B40
+ 0.7641999999999998 0.5624999999999997 0.2555999999999997 # B41
+ 0.6709000000000003 0.4326000000000001 0.0186999999999999 # B42
+ 0.5716000000000001 0.3371000000000000 0.9443999999999999 # B43
+ 0.5261999999999999 0.4245999999999998 0.7072999999999997 # B44
+ 0.0944999999999999 0.8623999999999997 0.7324999999999995 # B45
+ 0.3312000000000000 0.6041000000000000 0.1692999999999999 # B46
+ 0.2722000000000001 0.6075000000000003 0.8680999999999993 # B47
+ 0.0255000000000001 0.1073000000000000 0.9639000000000000 # B48
+ 0.0149999999999999 0.0667000000000001 0.1501000000000001 # B49
+ 0.2357999999999998 0.4374999999999999 0.7443999999999997 # B50
+ 0.3290999999999999 0.5673999999999999 0.9812999999999994 # B51
+ 0.4283999999999999 0.6629000000000002 0.0555999999999996 # B52
+ 0.4737999999999998 0.5753999999999998 0.2926999999999997 # B53
+ 0.9054999999999997 0.1375999999999999 0.2674999999999999 # B54
diff --git a/test/data/trigonal/POSCAR-147-2 b/test/data/trigonal/POSCAR-147-2
new file mode 100644
index 0000000..6ab1f49
--- /dev/null
+++ b/test/data/trigonal/POSCAR-147-2
@@ -0,0 +1,45 @@
+POSCAR generated by cell class
+1.0
+ 9.3961955786954121 0.0000000000000000 0.0000000000000000
+ -4.6980977893477043 8.1373440700772512 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.2224966015120602
+ 2 36
+Direct
+ 0.3333333333333333 0.6666666666666666 0.0074000000000001 # 11
+ 0.6666666666666666 0.3333333333333333 0.9925999999999999 # 12
+ 0.2392000000000000 0.7720000000000000 0.1565000000000001 # 21
+ 0.1130000000000000 0.7798000000000002 0.1618000000000000 # 22
+ 0.0006000000000000 0.7925000000000000 0.1733000000000000 # 23
+ 0.4029000000000000 0.5433000000000000 0.8381000000000000 # 24
+ 0.3520000000000000 0.4717000000000000 0.6916000000000000 # 25
+ 0.3099000000000000 0.4023000000000000 0.5566000000000000 # 26
+ 0.7608000000000000 0.2280000000000000 0.8435000000000000 # 27
+ 0.8870000000000000 0.2202000000000000 0.8382000000000002 # 28
+ 0.9994000000000000 0.2075000000000000 0.8267000000000000 # 29
+ 0.5971000000000000 0.4567000000000000 0.1619000000000000 # 210
+ 0.6480000000000000 0.5283000000000000 0.3084000000000000 # 211
+ 0.6901000000000002 0.5977000000000000 0.4434000000000001 # 212
+ 0.2280000000000000 0.4672000000000000 0.1565000000000001 # 213
+ 0.2202000000000000 0.3332000000000000 0.1618000000000000 # 214
+ 0.2075000000000000 0.2081000000000000 0.1733000000000000 # 215
+ 0.4567000000000000 0.8596000000000000 0.8381000000000000 # 216
+ 0.5283000000000000 0.8803000000000000 0.6916000000000000 # 217
+ 0.5977000000000000 0.9076000000000000 0.5566000000000000 # 218
+ 0.7720000000000000 0.5328000000000002 0.8435000000000000 # 219
+ 0.7798000000000002 0.6667999999999999 0.8382000000000002 # 220
+ 0.7925000000000000 0.7919000000000002 0.8267000000000000 # 221
+ 0.5433000000000000 0.1404000000000000 0.1619000000000000 # 222
+ 0.4717000000000000 0.1197000000000000 0.3084000000000000 # 223
+ 0.4023000000000000 0.0924000000000000 0.4434000000000001 # 224
+ 0.5328000000000002 0.7608000000000000 0.1565000000000001 # 225
+ 0.6667999999999999 0.8870000000000000 0.1618000000000000 # 226
+ 0.7919000000000002 0.9994000000000000 0.1733000000000000 # 227
+ 0.1404000000000000 0.5971000000000000 0.8381000000000000 # 228
+ 0.1197000000000000 0.6480000000000000 0.6916000000000000 # 229
+ 0.0924000000000000 0.6901000000000002 0.5566000000000000 # 230
+ 0.4672000000000000 0.2392000000000000 0.8435000000000000 # 231
+ 0.3332000000000000 0.1130000000000000 0.8382000000000002 # 232
+ 0.2081000000000000 0.0006000000000000 0.8267000000000000 # 233
+ 0.8596000000000000 0.4029000000000000 0.1619000000000000 # 234
+ 0.8803000000000000 0.3520000000000000 0.3084000000000000 # 235
+ 0.9076000000000000 0.3099000000000000 0.4434000000000001 # 236
diff --git a/test/data/trigonal/POSCAR-148 b/test/data/trigonal/POSCAR-148
new file mode 100644
index 0000000..5ecfbdc
--- /dev/null
+++ b/test/data/trigonal/POSCAR-148
@@ -0,0 +1,58 @@
+$cell vectors
+1.0
+ 7.1066966560007936 0.0000000000000000 0.0000000000000000
+ -3.5533483280003937 6.1545798410866119 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.0866919599939209
+ 45 6
+Direct
+ 0.4004000000000003 0.2843000000000003 0.9633000000000000 # Pd1
+ 0.2579999999999997 0.2380999999999997 0.7953000000000001 # Pd2
+ 0.0000000000000000 0.0000000000000000 0.0794000000000000 # Pd3
+ 0.0000000000000000 0.0000000000000000 0.5000000000000001 # Pd4
+ 0.0670666666666670 0.6176333333333333 0.2966333333333333 # Pd5
+ 0.9246666666666663 0.5714333333333328 0.1286333333333333 # Pd6
+ 0.6666666666666667 0.3333333333333330 0.4127333333333331 # Pd7
+ 0.6666666666666667 0.3333333333333330 0.8333333333333331 # Pd8
+ 0.7337333333333330 0.9509666666666664 0.6299666666666670 # Pd9
+ 0.5913333333333328 0.9047666666666666 0.4619666666666667 # Pd10
+ 0.3333333333333331 0.6666666666666669 0.7460666666666664 # Pd11
+ 0.3333333333333331 0.6666666666666669 0.1666666666666668 # Pd12
+ 0.5995999999999997 0.7156999999999998 0.0367000000000000 # Pd13
+ 0.7419999999999998 0.7618999999999994 0.2047000000000000 # Pd14
+ 0.0000000000000000 0.0000000000000000 0.9206000000000001 # Pd15
+ 0.2662666666666669 0.0490333333333336 0.3700333333333334 # Pd16
+ 0.4086666666666671 0.0952333333333333 0.5380333333333334 # Pd17
+ 0.6666666666666667 0.3333333333333330 0.2539333333333333 # Pd18
+ 0.9329333333333336 0.3823666666666665 0.7033666666666667 # Pd19
+ 0.0753333333333330 0.4285666666666663 0.8713666666666667 # Pd20
+ 0.3333333333333331 0.6666666666666669 0.5872666666666670 # Pd21
+ 0.7157000000000000 0.1160999999999997 0.9633000000000000 # Pd22
+ 0.7619000000000000 0.0198999999999999 0.7953000000000001 # Pd23
+ 0.3823666666666667 0.4494333333333327 0.2966333333333333 # Pd24
+ 0.4285666666666668 0.3532333333333330 0.1286333333333333 # Pd25
+ 0.0490333333333330 0.7827666666666666 0.6299666666666670 # Pd26
+ 0.0952333333333331 0.6865666666666668 0.4619666666666667 # Pd27
+ 0.2842999999999996 0.8838999999999994 0.0367000000000000 # Pd28
+ 0.2380999999999994 0.9800999999999991 0.2047000000000000 # Pd29
+ 0.9509666666666668 0.2172333333333333 0.3700333333333334 # Pd30
+ 0.9047666666666673 0.3134333333333331 0.5380333333333334 # Pd31
+ 0.6176333333333335 0.5505666666666663 0.7033666666666667 # Pd32
+ 0.5714333333333335 0.6467666666666662 0.8713666666666667 # Pd33
+ 0.8839000000000005 0.5995999999999999 0.9633000000000000 # Pd34
+ 0.9800999999999997 0.7419999999999994 0.7953000000000001 # Pd35
+ 0.5505666666666664 0.9329333333333329 0.2966333333333333 # Pd36
+ 0.6467666666666670 0.0753333333333334 0.1286333333333333 # Pd37
+ 0.2172333333333337 0.2662666666666669 0.6299666666666670 # Pd38
+ 0.3134333333333330 0.4086666666666664 0.4619666666666667 # Pd39
+ 0.1161000000000002 0.4004000000000000 0.0367000000000000 # Pd40
+ 0.0198999999999998 0.2579999999999996 0.2047000000000000 # Pd41
+ 0.7827666666666662 0.7337333333333329 0.3700333333333334 # Pd42
+ 0.6865666666666670 0.5913333333333335 0.5380333333333334 # Pd43
+ 0.4494333333333335 0.0670666666666670 0.7033666666666667 # Pd44
+ 0.3532333333333330 0.9246666666666665 0.8713666666666667 # Pd45
+ 0.0000000000000000 0.0000000000000000 0.2855000000000000 # P1
+ 0.6666666666666667 0.3333333333333330 0.6188333333333332 # P2
+ 0.3333333333333331 0.6666666666666669 0.9521666666666667 # P3
+ 0.0000000000000000 0.0000000000000000 0.7144999999999999 # P4
+ 0.6666666666666667 0.3333333333333330 0.0478333333333333 # P5
+ 0.3333333333333331 0.6666666666666669 0.3811666666666667 # P6
diff --git a/test/data/trigonal/POSCAR-148-2 b/test/data/trigonal/POSCAR-148-2
new file mode 100644
index 0000000..8ad0dbd
--- /dev/null
+++ b/test/data/trigonal/POSCAR-148-2
@@ -0,0 +1,319 @@
+$cell vectors
+1.0
+ 20.9739901308568939 0.0000000000000000 0.0000000000000000
+-10.4869950654284434 18.1640082720461749 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.1339942904461520
+ 24 72 216
+Direct
+ 0.9681999999999999 0.2257999999999999 0.7636999999999999 # Yb1
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Yb2
+ 0.0000000000000003 0.0000000000000000 0.5000000000000000 # Yb3
+ 0.6348666666666667 0.5591333333333334 0.0970333333333325 # Yb4
+ 0.6666666666666669 0.3333333333333334 0.3333333333333334 # Yb5
+ 0.6666666666666669 0.3333333333333334 0.8333333333333331 # Yb6
+ 0.3015333333333334 0.8924666666666665 0.4303666666666668 # Yb7
+ 0.3333333333333333 0.6666666666666667 0.6666666666666666 # Yb8
+ 0.3333333333333333 0.6666666666666667 0.1666666666666665 # Yb9
+ 0.0318000000000001 0.7742000000000001 0.2362999999999997 # Yb10
+ 0.6984666666666668 0.1075333333333334 0.5696333333333332 # Yb11
+ 0.3651333333333335 0.4408666666666668 0.9029666666666667 # Yb12
+ 0.7742000000000001 0.7423999999999999 0.7636999999999999 # Yb13
+ 0.4408666666666666 0.0757333333333332 0.0970333333333329 # Yb14
+ 0.1075333333333332 0.4090666666666665 0.4303666666666668 # Yb15
+ 0.2258000000000000 0.2576000000000002 0.2363000000000006 # Yb16
+ 0.8924666666666667 0.5909333333333332 0.5696333333333332 # Yb17
+ 0.5591333333333335 0.9242666666666669 0.9029666666666671 # Yb18
+ 0.2576000000000003 0.0318000000000002 0.7636999999999999 # Yb19
+ 0.9242666666666667 0.3651333333333333 0.0970333333333329 # Yb20
+ 0.5909333333333335 0.6984666666666669 0.4303666666666668 # Yb21
+ 0.7424000000000001 0.9681999999999997 0.2362999999999997 # Yb22
+ 0.4090666666666669 0.3015333333333332 0.5696333333333332 # Yb23
+ 0.0757333333333336 0.6348666666666668 0.9029666666666667 # Yb24
+ 0.7882999999999999 0.1639000000000001 0.8350999999999998 # P1
+ 0.7491000000000001 0.2500000000000002 0.9810999999999998 # P2
+ 0.6384000000000002 0.1791000000000001 0.1609000000000000 # P3
+ 0.7538999999999999 0.0278000000000001 0.9591000000000001 # P4
+ 0.4549666666666669 0.4972333333333335 0.1684333333333329 # P5
+ 0.4157666666666669 0.5833333333333331 0.3144333333333333 # P6
+ 0.3050666666666667 0.5124333333333334 0.4942333333333335 # P7
+ 0.4205666666666668 0.3611333333333334 0.2924333333333335 # P8
+ 0.1216333333333336 0.8305666666666668 0.5017666666666669 # P9
+ 0.0824333333333336 0.9166666666666667 0.6477666666666667 # P10
+ 0.9717333333333333 0.8457666666666668 0.8275666666666667 # P11
+ 0.0872333333333337 0.6944666666666667 0.6257666666666666 # P12
+ 0.2117000000000001 0.8361000000000002 0.1649000000000001 # P13
+ 0.2509000000000003 0.7500000000000002 0.0188999999999998 # P14
+ 0.3616000000000002 0.8209000000000000 0.8391000000000005 # P15
+ 0.2461000000000001 0.9722000000000001 0.0408999999999995 # P16
+ 0.8783666666666665 0.1694333333333332 0.4982333333333332 # P17
+ 0.9175666666666664 0.0833333333333332 0.3522333333333332 # P18
+ 0.0282666666666667 0.1542333333333333 0.1724333333333335 # P19
+ 0.9127666666666666 0.3055333333333333 0.3742333333333334 # P20
+ 0.5450333333333334 0.5027666666666669 0.8315666666666667 # P21
+ 0.5842333333333334 0.4166666666666669 0.6855666666666662 # P22
+ 0.6949333333333336 0.4875666666666666 0.5057666666666666 # P23
+ 0.5794333333333332 0.6388666666666666 0.7075666666666665 # P24
+ 0.8360999999999998 0.6244000000000000 0.8350999999999998 # P25
+ 0.7500000000000001 0.4991000000000000 0.9810999999999998 # P26
+ 0.8208999999999997 0.4592999999999999 0.1609000000000000 # P27
+ 0.9721999999999997 0.7261000000000001 0.9591000000000001 # P28
+ 0.5027666666666667 0.9577333333333333 0.1684333333333334 # P29
+ 0.4166666666666667 0.8324333333333335 0.3144333333333333 # P30
+ 0.4875666666666668 0.7926333333333333 0.4942333333333335 # P31
+ 0.6388666666666665 0.0594333333333333 0.2924333333333331 # P32
+ 0.1694333333333335 0.2910666666666666 0.5017666666666669 # P33
+ 0.0833333333333335 0.1657666666666667 0.6477666666666667 # P34
+ 0.1542333333333336 0.1259666666666666 0.8275666666666667 # P35
+ 0.3055333333333335 0.3927666666666666 0.6257666666666666 # P36
+ 0.1638999999999999 0.3756000000000000 0.1649000000000001 # P37
+ 0.2500000000000001 0.5009000000000001 0.0188999999999998 # P38
+ 0.1791000000000001 0.5407000000000001 0.8391000000000001 # P39
+ 0.0278000000000000 0.2739000000000001 0.0408999999999999 # P40
+ 0.8305666666666669 0.7089333333333335 0.4982333333333332 # P41
+ 0.9166666666666670 0.8342333333333334 0.3522333333333332 # P42
+ 0.8457666666666668 0.8740333333333336 0.1724333333333331 # P43
+ 0.6944666666666667 0.6072333333333335 0.3742333333333334 # P44
+ 0.4972333333333333 0.0422666666666667 0.8315666666666667 # P45
+ 0.5833333333333331 0.1675666666666666 0.6855666666666662 # P46
+ 0.5124333333333333 0.2073666666666668 0.5057666666666666 # P47
+ 0.3611333333333333 0.9405666666666668 0.7075666666666665 # P48
+ 0.3756000000000000 0.2116999999999999 0.8350999999999998 # P49
+ 0.5009000000000001 0.2509000000000001 0.9810999999999998 # P50
+ 0.5407000000000005 0.3616000000000001 0.1609000000000000 # P51
+ 0.2739000000000000 0.2461000000000001 0.9591000000000001 # P52
+ 0.0422666666666669 0.5450333333333334 0.1684333333333329 # P53
+ 0.1675666666666668 0.5842333333333334 0.3144333333333333 # P54
+ 0.2073666666666669 0.6949333333333334 0.4942333333333335 # P55
+ 0.9405666666666668 0.5794333333333334 0.2924333333333331 # P56
+ 0.7089333333333332 0.8783666666666667 0.5017666666666669 # P57
+ 0.8342333333333337 0.9175666666666669 0.6477666666666667 # P58
+ 0.8740333333333336 0.0282666666666667 0.8275666666666667 # P59
+ 0.6072333333333335 0.9127666666666667 0.6257666666666666 # P60
+ 0.6244000000000001 0.7883000000000001 0.1649000000000001 # P61
+ 0.4991000000000000 0.7491000000000002 0.0189000000000002 # P62
+ 0.4592999999999999 0.6384000000000001 0.8391000000000001 # P63
+ 0.7261000000000001 0.7539000000000001 0.0408999999999995 # P64
+ 0.2910666666666672 0.1216333333333334 0.4982333333333332 # P65
+ 0.1657666666666669 0.0824333333333332 0.3522333333333332 # P66
+ 0.1259666666666666 0.9717333333333332 0.1724333333333331 # P67
+ 0.3927666666666665 0.0872333333333333 0.3742333333333334 # P68
+ 0.9577333333333334 0.4549666666666667 0.8315666666666667 # P69
+ 0.8324333333333332 0.4157666666666666 0.6855666666666662 # P70
+ 0.7926333333333334 0.3050666666666667 0.5057666666666666 # P71
+ 0.0594333333333332 0.4205666666666667 0.7075666666666665 # P72
+ 0.7475000000000001 0.1200000000000001 0.7388000000000001 # O1
+ 0.8670000000000000 0.2231000000000001 0.8212999999999999 # O2
+ 0.7405999999999999 0.1974999999999999 0.8831999999999999 # O3
+ 0.7869000000000004 0.1130000000000001 0.9335999999999999 # O4
+ 0.7369000000000001 0.3091000000000001 0.9396999999999998 # O5
+ 0.8173000000000001 0.2732000000000001 0.0426999999999999 # O6
+ 0.6798000000000000 0.1947000000000000 0.0470999999999998 # O7
+ 0.6646000000000000 0.1277000000000001 0.2142000000000001 # O8
+ 0.6676999999999998 0.2487000000000000 0.2239999999999999 # O9
+ 0.5591999999999999 0.1363000000000001 0.1366999999999997 # O10
+ 0.7723999999999999 0.0227000000000000 0.0746000000000003 # O11
+ 0.6767000000000003 0.9880000000000003 0.9257000000000000 # O12
+ 0.4141666666666669 0.4533333333333335 0.0721333333333331 # O13
+ 0.5336666666666667 0.5564333333333334 0.1546333333333333 # O14
+ 0.4072666666666668 0.5308333333333333 0.2165333333333333 # O15
+ 0.4535666666666668 0.4463333333333331 0.2669333333333334 # O16
+ 0.4035666666666670 0.6424333333333335 0.2730333333333332 # O17
+ 0.4839666666666669 0.6065333333333334 0.3760333333333335 # O18
+ 0.3464666666666668 0.5280333333333334 0.3804333333333333 # O19
+ 0.3312666666666671 0.4610333333333336 0.5475333333333332 # O20
+ 0.3343666666666668 0.5820333333333336 0.5573333333333333 # O21
+ 0.2258666666666668 0.4696333333333335 0.4700333333333331 # O22
+ 0.4390666666666670 0.3560333333333334 0.4079333333333334 # O23
+ 0.3433666666666666 0.3213333333333332 0.2590333333333334 # O24
+ 0.0808333333333338 0.7866666666666668 0.4054666666666666 # O25
+ 0.2003333333333337 0.8897666666666668 0.4879666666666669 # O26
+ 0.0739333333333339 0.8641666666666670 0.5498666666666667 # O27
+ 0.1202333333333338 0.7796666666666670 0.6002666666666668 # O28
+ 0.0702333333333340 0.9757666666666670 0.6063666666666667 # O29
+ 0.1506333333333338 0.9398666666666669 0.7093666666666666 # O30
+ 0.0131333333333334 0.8613666666666668 0.7137666666666663 # O31
+ 0.9979333333333336 0.7943666666666669 0.8808666666666666 # O32
+ 0.0010333333333333 0.9153666666666667 0.8906666666666665 # O33
+ 0.8925333333333334 0.8029666666666667 0.8033666666666668 # O34
+ 0.1057333333333336 0.6893666666666667 0.7412666666666664 # O35
+ 0.0100333333333334 0.6546666666666670 0.5923666666666664 # O36
+ 0.2525000000000005 0.8800000000000003 0.2612000000000004 # O37
+ 0.1330000000000002 0.7769000000000000 0.1787000000000002 # O38
+ 0.2593999999999999 0.8025000000000002 0.1168000000000002 # O39
+ 0.2130999999999998 0.8870000000000000 0.0663999999999997 # O40
+ 0.2631000000000004 0.6909000000000003 0.0602999999999998 # O41
+ 0.1827000000000001 0.7268000000000000 0.9573000000000000 # O42
+ 0.3202000000000000 0.8052999999999999 0.9528999999999999 # O43
+ 0.3353999999999999 0.8723000000000000 0.7857999999999999 # O44
+ 0.3323000000000001 0.7513000000000002 0.7759999999999997 # O45
+ 0.4408000000000002 0.8637000000000000 0.8633000000000003 # O46
+ 0.2276000000000002 0.9773000000000002 0.9254000000000003 # O47
+ 0.3233000000000000 0.0120000000000001 0.0743000000000001 # O48
+ 0.9191666666666665 0.2133333333333332 0.5945333333333334 # O49
+ 0.7996666666666666 0.1102333333333333 0.5120333333333332 # O50
+ 0.9260666666666666 0.1358333333333334 0.4501333333333332 # O51
+ 0.8797666666666665 0.2203333333333332 0.3997333333333333 # O52
+ 0.9297666666666666 0.0242333333333332 0.3936333333333333 # O53
+ 0.8493666666666665 0.0601333333333333 0.2906333333333331 # O54
+ 0.9868666666666669 0.1386333333333333 0.2862333333333337 # O55
+ 0.0020666666666667 0.2056333333333333 0.1191333333333334 # O56
+ 0.9989666666666669 0.0846333333333334 0.1093333333333336 # O57
+ 0.1074666666666667 0.1970333333333333 0.1966333333333338 # O58
+ 0.8942666666666668 0.3106333333333334 0.2587333333333332 # O59
+ 0.9899666666666666 0.3453333333333335 0.4076333333333332 # O60
+ 0.5858333333333333 0.5466666666666669 0.9278666666666664 # O61
+ 0.4663333333333333 0.4435666666666667 0.8453666666666667 # O62
+ 0.5927333333333336 0.4691666666666668 0.7834666666666668 # O63
+ 0.5464333333333335 0.5536666666666669 0.7330666666666668 # O64
+ 0.5964333333333334 0.3575666666666666 0.7269666666666669 # O65
+ 0.5160333333333337 0.3934666666666666 0.6239666666666667 # O66
+ 0.6535333333333333 0.4719666666666667 0.6195666666666667 # O67
+ 0.6687333333333334 0.5389666666666669 0.4524666666666665 # O68
+ 0.6656333333333334 0.4179666666666668 0.4426666666666666 # O69
+ 0.7741333333333333 0.5303666666666667 0.5299666666666665 # O70
+ 0.5609333333333334 0.6439666666666667 0.5920666666666666 # O71
+ 0.6566333333333334 0.6786666666666668 0.7409666666666667 # O72
+ 0.8799999999999999 0.6274999999999998 0.7387999999999997 # O73
+ 0.7769000000000001 0.6439000000000001 0.8212999999999999 # O74
+ 0.8024999999999999 0.5431000000000001 0.8831999999999999 # O75
+ 0.8870000000000000 0.6739000000000002 0.9335999999999999 # O76
+ 0.6909000000000002 0.4278000000000001 0.9396999999999998 # O77
+ 0.7267999999999998 0.5441000000000000 0.0426999999999999 # O78
+ 0.8052999999999999 0.4851000000000001 0.0470999999999998 # O79
+ 0.8723000000000001 0.5369000000000000 0.2142000000000001 # O80
+ 0.7513000000000002 0.4190000000000000 0.2239999999999999 # O81
+ 0.8637000000000000 0.4228999999999999 0.1366999999999997 # O82
+ 0.9773000000000002 0.7496999999999999 0.0745999999999999 # O83
+ 0.0120000000000004 0.6887000000000000 0.9256999999999995 # O84
+ 0.5466666666666666 0.9608333333333331 0.0721333333333335 # O85
+ 0.4435666666666667 0.9772333333333335 0.1546333333333333 # O86
+ 0.4691666666666667 0.8764333333333334 0.2165333333333333 # O87
+ 0.5536666666666668 0.0072333333333333 0.2669333333333334 # O88
+ 0.3575666666666665 0.7611333333333333 0.2730333333333328 # O89
+ 0.3934666666666667 0.8774333333333333 0.3760333333333335 # O90
+ 0.4719666666666666 0.8184333333333335 0.3804333333333333 # O91
+ 0.5389666666666667 0.8702333333333334 0.5475333333333332 # O92
+ 0.4179666666666668 0.7523333333333334 0.5573333333333333 # O93
+ 0.5303666666666668 0.7562333333333334 0.4700333333333331 # O94
+ 0.6439666666666666 0.0830333333333332 0.4079333333333334 # O95
+ 0.6786666666666666 0.0220333333333333 0.2590333333333329 # O96
+ 0.2133333333333336 0.2941666666666668 0.4054666666666666 # O97
+ 0.1102333333333338 0.3105666666666667 0.4879666666666669 # O98
+ 0.1358333333333335 0.2097666666666667 0.5498666666666667 # O99
+ 0.2203333333333335 0.3405666666666666 0.6002666666666668 # O100
+ 0.0242333333333336 0.0944666666666667 0.6063666666666667 # O101
+ 0.0601333333333333 0.2107666666666667 0.7093666666666666 # O102
+ 0.1386333333333333 0.1517666666666667 0.7137666666666663 # O103
+ 0.2056333333333337 0.2035666666666666 0.8808666666666666 # O104
+ 0.0846333333333336 0.0856666666666667 0.8906666666666665 # O105
+ 0.1970333333333336 0.0895666666666668 0.8033666666666668 # O106
+ 0.3106333333333335 0.4163666666666666 0.7412666666666664 # O107
+ 0.3453333333333336 0.3553666666666667 0.5923666666666664 # O108
+ 0.1199999999999999 0.3724999999999999 0.2611999999999999 # O109
+ 0.2231000000000000 0.3561000000000000 0.1787000000000002 # O110
+ 0.1974999999999999 0.4569000000000000 0.1168000000000002 # O111
+ 0.1129999999999999 0.3261000000000000 0.0664000000000002 # O112
+ 0.3090999999999999 0.5722000000000000 0.0602999999999998 # O113
+ 0.2732000000000003 0.4559000000000001 0.9572999999999996 # O114
+ 0.1947000000000002 0.5149000000000000 0.9528999999999999 # O115
+ 0.1277000000000000 0.4631000000000001 0.7857999999999999 # O116
+ 0.2486999999999999 0.5810000000000000 0.7759999999999997 # O117
+ 0.1363000000000001 0.5770999999999997 0.8633000000000000 # O118
+ 0.0227000000000000 0.2503000000000001 0.9254000000000003 # O119
+ 0.9879999999999999 0.3113000000000000 0.0743000000000001 # O120
+ 0.7866666666666668 0.7058333333333333 0.5945333333333334 # O121
+ 0.8897666666666668 0.6894333333333332 0.5120333333333332 # O122
+ 0.8641666666666670 0.7902333333333335 0.4501333333333332 # O123
+ 0.7796666666666667 0.6594333333333333 0.3997333333333333 # O124
+ 0.9757666666666669 0.9055333333333333 0.3936333333333333 # O125
+ 0.9398666666666671 0.7892333333333335 0.2906333333333331 # O126
+ 0.8613666666666669 0.8482333333333334 0.2862333333333333 # O127
+ 0.7943666666666666 0.7964333333333333 0.1191333333333330 # O128
+ 0.9153666666666664 0.9143333333333333 0.1093333333333331 # O129
+ 0.8029666666666668 0.9104333333333336 0.1966333333333334 # O130
+ 0.6893666666666667 0.5836333333333336 0.2587333333333332 # O131
+ 0.6546666666666667 0.6446333333333334 0.4076333333333332 # O132
+ 0.4533333333333334 0.0391666666666668 0.9278666666666664 # O133
+ 0.5564333333333333 0.0227666666666666 0.8453666666666672 # O134
+ 0.5308333333333330 0.1235666666666666 0.7834666666666668 # O135
+ 0.4463333333333334 0.9927666666666666 0.7330666666666668 # O136
+ 0.6424333333333336 0.2388666666666667 0.7269666666666669 # O137
+ 0.6065333333333334 0.1225666666666667 0.6239666666666667 # O138
+ 0.5280333333333334 0.1815666666666667 0.6195666666666667 # O139
+ 0.4610333333333331 0.1297666666666667 0.4524666666666665 # O140
+ 0.5820333333333335 0.2476666666666666 0.4426666666666666 # O141
+ 0.4696333333333336 0.2437666666666665 0.5299666666666665 # O142
+ 0.3560333333333334 0.9169666666666668 0.5920666666666666 # O143
+ 0.3213333333333335 0.9779666666666668 0.7409666666666667 # O144
+ 0.3725000000000002 0.2525000000000001 0.7388000000000001 # O145
+ 0.3561000000000000 0.1329999999999999 0.8212999999999999 # O146
+ 0.4569000000000003 0.2594000000000001 0.8831999999999999 # O147
+ 0.3260999999999999 0.2130999999999999 0.9335999999999999 # O148
+ 0.5722000000000000 0.2630999999999999 0.9396999999999998 # O149
+ 0.4559000000000000 0.1827000000000000 0.0426999999999999 # O150
+ 0.5148999999999999 0.3202000000000000 0.0470999999999998 # O151
+ 0.4631000000000002 0.3354000000000000 0.2142000000000001 # O152
+ 0.5810000000000007 0.3323000000000001 0.2239999999999999 # O153
+ 0.5770999999999999 0.4408000000000001 0.1366999999999993 # O154
+ 0.2503000000000004 0.2276000000000002 0.0746000000000003 # O155
+ 0.3113000000000002 0.3233000000000001 0.9257000000000000 # O156
+ 0.0391666666666667 0.5858333333333331 0.0721333333333331 # O157
+ 0.0227666666666666 0.4663333333333332 0.1546333333333333 # O158
+ 0.1235666666666666 0.5927333333333334 0.2165333333333329 # O159
+ 0.9927666666666666 0.5464333333333332 0.2669333333333329 # O160
+ 0.2388666666666668 0.5964333333333335 0.2730333333333332 # O161
+ 0.1225666666666668 0.5160333333333332 0.3760333333333335 # O162
+ 0.1815666666666668 0.6535333333333333 0.3804333333333333 # O163
+ 0.1297666666666669 0.6687333333333336 0.5475333333333335 # O164
+ 0.2476666666666668 0.6656333333333334 0.5573333333333333 # O165
+ 0.2437666666666667 0.7741333333333335 0.4700333333333331 # O166
+ 0.9169666666666666 0.5609333333333333 0.4079333333333334 # O167
+ 0.9779666666666669 0.6566333333333335 0.2590333333333334 # O168
+ 0.7058333333333334 0.9191666666666668 0.4054666666666666 # O169
+ 0.6894333333333333 0.7996666666666669 0.4879666666666669 # O170
+ 0.7902333333333333 0.9260666666666665 0.5498666666666667 # O171
+ 0.6594333333333333 0.8797666666666666 0.6002666666666668 # O172
+ 0.9055333333333333 0.9297666666666665 0.6063666666666667 # O173
+ 0.7892333333333335 0.8493666666666667 0.7093666666666666 # O174
+ 0.8482333333333334 0.9868666666666667 0.7137666666666663 # O175
+ 0.7964333333333333 0.0020666666666666 0.8808666666666666 # O176
+ 0.9143333333333336 0.9989666666666671 0.8906666666666665 # O177
+ 0.9104333333333331 0.1074666666666667 0.8033666666666668 # O178
+ 0.5836333333333336 0.8942666666666669 0.7412666666666673 # O179
+ 0.6446333333333336 0.9899666666666668 0.5923666666666664 # O180
+ 0.6274999999999999 0.7474999999999997 0.2611999999999999 # O181
+ 0.6439000000000000 0.8670000000000001 0.1787000000000002 # O182
+ 0.5431000000000000 0.7405999999999999 0.1168000000000006 # O183
+ 0.6739000000000002 0.7869000000000002 0.0663999999999997 # O184
+ 0.4278000000000000 0.7369000000000001 0.0602999999999998 # O185
+ 0.5441000000000001 0.8173000000000001 0.9573000000000006 # O186
+ 0.4850999999999999 0.6798000000000002 0.9528999999999999 # O187
+ 0.5368999999999999 0.6646000000000002 0.7857999999999999 # O188
+ 0.4189999999999999 0.6677000000000001 0.7759999999999997 # O189
+ 0.4228999999999999 0.5592000000000000 0.8633000000000000 # O190
+ 0.7497000000000000 0.7723999999999999 0.9254000000000003 # O191
+ 0.6886999999999999 0.6767000000000000 0.0742999999999997 # O192
+ 0.2941666666666665 0.0808333333333330 0.5945333333333334 # O193
+ 0.3105666666666669 0.2003333333333331 0.5120333333333332 # O194
+ 0.2097666666666669 0.0739333333333333 0.4501333333333332 # O195
+ 0.3405666666666672 0.1202333333333335 0.3997333333333333 # O196
+ 0.0944666666666671 0.0702333333333334 0.3936333333333333 # O197
+ 0.2107666666666669 0.1506333333333334 0.2906333333333331 # O198
+ 0.1517666666666668 0.0131333333333331 0.2862333333333333 # O199
+ 0.2035666666666668 0.9979333333333333 0.1191333333333330 # O200
+ 0.0856666666666665 0.0010333333333333 0.1093333333333331 # O201
+ 0.0895666666666670 0.8925333333333336 0.1966333333333334 # O202
+ 0.4163666666666665 0.1057333333333332 0.2587333333333332 # O203
+ 0.3553666666666669 0.0100333333333332 0.4076333333333332 # O204
+ 0.9608333333333332 0.4141666666666669 0.9278666666666664 # O205
+ 0.9772333333333336 0.5336666666666668 0.8453666666666667 # O206
+ 0.8764333333333335 0.4072666666666667 0.7834666666666668 # O207
+ 0.0072333333333336 0.4535666666666668 0.7330666666666668 # O208
+ 0.7611333333333333 0.4035666666666668 0.7269666666666669 # O209
+ 0.8774333333333333 0.4839666666666668 0.6239666666666667 # O210
+ 0.8184333333333333 0.3464666666666667 0.6195666666666667 # O211
+ 0.8702333333333333 0.3312666666666668 0.4524666666666665 # O212
+ 0.7523333333333335 0.3343666666666666 0.4426666666666666 # O213
+ 0.7562333333333333 0.2258666666666666 0.5299666666666665 # O214
+ 0.0830333333333335 0.4390666666666668 0.5920666666666666 # O215
+ 0.0220333333333333 0.3433666666666667 0.7409666666666667 # O216
diff --git a/test/data/trigonal/POSCAR-149 b/test/data/trigonal/POSCAR-149
new file mode 100644
index 0000000..3f65692
--- /dev/null
+++ b/test/data/trigonal/POSCAR-149
@@ -0,0 +1,16 @@
+POSCAR generated by cell class
+1.0
+ 5.0219976369392230 0.0000000000000000 0.0000000000000000
+ -2.5109988184696101 4.3491775313347878 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.3759969998256700
+ 1 1 1 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 31
+ 0.6340000000000000 0.0090000000000000 0.3670000000000000 # 41
+ 0.9910000000000000 0.6250000000000000 0.3670000000000000 # 42
+ 0.3750000000000000 0.3660000000000000 0.3670000000000000 # 43
+ 0.9910000000000000 0.3660000000000000 0.6330000000000000 # 44
+ 0.3750000000000000 0.0090000000000000 0.6330000000000000 # 45
+ 0.6340000000000000 0.6250000000000000 0.6330000000000000 # 46
diff --git a/test/data/trigonal/POSCAR-149-2 b/test/data/trigonal/POSCAR-149-2
new file mode 100644
index 0000000..de6f641
--- /dev/null
+++ b/test/data/trigonal/POSCAR-149-2
@@ -0,0 +1,24 @@
+POSCAR generated by cell class
+1.0
+ 7.1509966351557939 0.0000000000000000 0.0000000000000000
+ -3.5754983175778952 6.1929447484219589 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.1757961529445904
+ 1 3 1 6 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.5087500000000000 0.0175000000000000 0.5000000000000000 # 21
+ 0.9824999999999999 0.4912500000000000 0.5000000000000000 # 22
+ 0.5087500000000000 0.4912500000000000 0.5000000000000000 # 23
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 31
+ 0.7431000000000000 0.0004000000000000 0.8260000000000000 # 41
+ 0.9995999999999999 0.7427000000000000 0.8260000000000000 # 42
+ 0.2573000000000000 0.2569000000000000 0.8260000000000000 # 43
+ 0.9995999999999999 0.2569000000000000 0.1740000000000000 # 44
+ 0.2573000000000000 0.0004000000000000 0.1740000000000000 # 45
+ 0.7431000000000000 0.7427000000000000 0.1740000000000000 # 46
+ 0.6608000000000002 0.0089000000000000 0.7101000000000000 # 51
+ 0.9911000000000000 0.6519000000000000 0.7101000000000000 # 52
+ 0.3481000000000001 0.3392000000000000 0.7101000000000000 # 53
+ 0.9911000000000000 0.3392000000000000 0.2899000000000000 # 54
+ 0.3481000000000001 0.0089000000000000 0.2899000000000000 # 55
+ 0.6608000000000002 0.6519000000000000 0.2899000000000000 # 56
diff --git a/test/data/trigonal/POSCAR-150 b/test/data/trigonal/POSCAR-150
new file mode 100644
index 0000000..147a4a2
--- /dev/null
+++ b/test/data/trigonal/POSCAR-150
@@ -0,0 +1,34 @@
+POSCAR generated by cell class
+1.0
+ 9.0699957321861380 0.0000000000000000 0.0000000000000000
+ -4.5349978660930672 7.8548467162896358 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.9839976548198104
+ 6 3 18
+Direct
+ 0.6230000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.2855000000000000 0.0000000000000000 0.5000000000000000 # 12
+ 0.0000000000000000 0.6230000000000000 0.0000000000000000 # 13
+ 0.0000000000000000 0.2855000000000000 0.5000000000000000 # 14
+ 0.3770000000000000 0.3770000000000000 0.0000000000000000 # 15
+ 0.7145000000000000 0.7145000000000000 0.5000000000000000 # 16
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.4987000000000000 # 22
+ 0.6666666666666666 0.3333333333333333 0.5013000000000000 # 23
+ 0.0877000000000000 0.8804999999999999 0.7731000000000000 # 31
+ 0.4606000000000000 0.5950000000000000 0.7417000000000000 # 32
+ 0.2194000000000000 0.7575000000000000 0.2789000000000000 # 33
+ 0.1195000000000000 0.2072000000000000 0.7731000000000000 # 34
+ 0.4050000000000001 0.8656000000000001 0.7417000000000000 # 35
+ 0.2425000000000000 0.4619000000000000 0.2789000000000000 # 36
+ 0.7927999999999999 0.9123000000000000 0.7731000000000000 # 37
+ 0.1344000000000000 0.5394000000000000 0.7417000000000000 # 38
+ 0.5381000000000000 0.7806000000000000 0.2789000000000000 # 39
+ 0.2072000000000000 0.1195000000000000 0.2269000000000000 # 310
+ 0.8656000000000001 0.4050000000000001 0.2583000000000000 # 311
+ 0.4619000000000000 0.2425000000000000 0.7211000000000000 # 312
+ 0.9123000000000000 0.7927999999999999 0.2269000000000000 # 313
+ 0.5394000000000000 0.1344000000000000 0.2583000000000000 # 314
+ 0.7806000000000000 0.5381000000000000 0.7211000000000000 # 315
+ 0.8804999999999999 0.0877000000000000 0.2269000000000000 # 316
+ 0.5950000000000000 0.4606000000000000 0.2583000000000000 # 317
+ 0.7575000000000000 0.2194000000000000 0.7211000000000000 # 318
diff --git a/test/data/trigonal/POSCAR-150-2 b/test/data/trigonal/POSCAR-150-2
new file mode 100644
index 0000000..9191697
--- /dev/null
+++ b/test/data/trigonal/POSCAR-150-2
@@ -0,0 +1,34 @@
+POSCAR generated by cell class
+1.0
+ 8.6379959354601787 0.0000000000000000 0.0000000000000000
+ -4.3189979677300876 7.4807239178952418 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.7379977705730898
+ 3 3 3 18
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.5019000000000000 # 12
+ 0.6666666666666666 0.3333333333333333 0.4981000000000000 # 13
+ 0.6342000000000000 0.0000000000000000 0.0000000000000000 # 21
+ 0.0000000000000000 0.6342000000000000 0.0000000000000000 # 22
+ 0.3658000000000000 0.3658000000000000 0.0000000000000000 # 23
+ 0.3330000000000001 0.0000000000000000 0.5000000000000000 # 31
+ 0.0000000000000000 0.3330000000000001 0.5000000000000000 # 32
+ 0.6670000000000001 0.6670000000000001 0.5000000000000000 # 33
+ 0.0984000000000000 0.8887000000000002 0.7800000000000000 # 41
+ 0.4565000000000000 0.5803000000000001 0.7280000000000000 # 42
+ 0.2228000000000000 0.7671000000000000 0.2820000000000000 # 43
+ 0.1113000000000000 0.2097000000000000 0.7800000000000000 # 44
+ 0.4197000000000001 0.8762000000000000 0.7280000000000000 # 45
+ 0.2329000000000000 0.4557000000000000 0.2820000000000000 # 46
+ 0.7903000000000000 0.9016000000000000 0.7800000000000000 # 47
+ 0.1238000000000000 0.5435000000000000 0.7280000000000000 # 48
+ 0.5443000000000000 0.7772000000000000 0.2820000000000000 # 49
+ 0.2097000000000000 0.1113000000000000 0.2200000000000000 # 410
+ 0.8762000000000000 0.4197000000000001 0.2720000000000001 # 411
+ 0.4557000000000000 0.2329000000000000 0.7180000000000000 # 412
+ 0.9016000000000000 0.7903000000000000 0.2200000000000000 # 413
+ 0.5435000000000000 0.1238000000000000 0.2720000000000001 # 414
+ 0.7772000000000000 0.5443000000000000 0.7180000000000000 # 415
+ 0.8887000000000002 0.0984000000000000 0.2200000000000000 # 416
+ 0.5803000000000001 0.4565000000000000 0.2720000000000001 # 417
+ 0.7671000000000000 0.2228000000000000 0.7180000000000000 # 418
diff --git a/test/data/trigonal/POSCAR-151 b/test/data/trigonal/POSCAR-151
new file mode 100644
index 0000000..efd92f1
--- /dev/null
+++ b/test/data/trigonal/POSCAR-151
@@ -0,0 +1,31 @@
+POSCAR generated by cell class
+1.0
+ 5.9599971955710433 0.0000000000000000 0.0000000000000000
+ -2.9799985977855203 5.1615089778485350 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.1999919066815288
+ 6 18
+Direct
+ 0.2220000000000000 0.4440000000000000 0.1666666666666667 # 11
+ 0.5560000000000002 0.1120000000000000 0.1666666666666667 # 12
+ 0.5560000000000002 0.7780000000000000 0.5000000000000000 # 13
+ 0.8880000000000000 0.4440000000000000 0.5000000000000000 # 14
+ 0.2220000000000000 0.7780000000000000 0.8333333333333334 # 15
+ 0.5560000000000002 0.4440000000000000 0.8333333333333334 # 16
+ 0.2220000000000000 0.4440000000000000 0.4167000000000000 # 21
+ 0.5560000000000002 0.1110000000000000 0.4167000000000000 # 22
+ 0.8890000000000000 0.7780000000000000 0.4167000000000000 # 23
+ 0.5560000000000002 0.7780000000000000 0.7500333333333333 # 24
+ 0.8890000000000000 0.4450000000000000 0.7500333333333333 # 25
+ 0.2220000000000000 0.1110000000000000 0.7500333333333333 # 26
+ 0.2220000000000000 0.7780000000000000 0.0833666666666667 # 27
+ 0.5550000000000002 0.4440000000000000 0.0833666666666667 # 28
+ 0.8890000000000000 0.1110000000000000 0.0833666666666667 # 29
+ 0.5560000000000002 0.7780000000000000 0.2499666666666667 # 210
+ 0.8890000000000000 0.4440000000000000 0.2499666666666667 # 211
+ 0.2220000000000000 0.1110000000000000 0.2499666666666667 # 212
+ 0.2220000000000000 0.4440000000000000 0.9166333333333334 # 213
+ 0.5550000000000002 0.1110000000000000 0.9166333333333334 # 214
+ 0.8890000000000000 0.7780000000000000 0.9166333333333334 # 215
+ 0.2220000000000000 0.7780000000000000 0.5833000000000002 # 216
+ 0.5560000000000002 0.4450000000000000 0.5833000000000002 # 217
+ 0.8890000000000000 0.1110000000000000 0.5833000000000002 # 218
diff --git a/test/data/trigonal/POSCAR-151-2 b/test/data/trigonal/POSCAR-151-2
new file mode 100644
index 0000000..ddfaaff
--- /dev/null
+++ b/test/data/trigonal/POSCAR-151-2
@@ -0,0 +1,43 @@
+POSCAR generated by cell class
+1.0
+ 5.0339976312927215 0.0000000000000000 0.0000000000000000
+ -2.5169988156463594 4.3595698312901874 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.1409933460688197
+ 3 15 18
+Direct
+ 0.1111000000000000 0.8889000000000000 0.3333333333333333 # 11
+ 0.1111000000000000 0.2222000000000000 0.6666666666666666 # 12
+ 0.7778000000000002 0.8889000000000000 0.0000000000000000 # 13
+ 0.4444000000000001 0.5556000000000000 0.3333333333333333 # 21
+ 0.7778000000000002 0.2222000000000000 0.3333333333333333 # 22
+ 0.1111000000000000 0.8889000000000000 0.8333333333333334 # 23
+ 0.4444000000000001 0.5556000000000000 0.8333333333333334 # 24
+ 0.7778000000000002 0.2222000000000000 0.8333333333333334 # 25
+ 0.4444000000000001 0.8888000000000001 0.6666666666666666 # 26
+ 0.7778000000000002 0.5556000000000000 0.6666666666666666 # 27
+ 0.1111000000000000 0.2222000000000000 0.1666666666666667 # 28
+ 0.4444000000000001 0.8888000000000001 0.1666666666666667 # 29
+ 0.7778000000000002 0.5556000000000000 0.1666666666666667 # 210
+ 0.1112000000000000 0.5556000000000000 0.0000000000000000 # 211
+ 0.4444000000000001 0.2222000000000000 0.0000000000000000 # 212
+ 0.7778000000000002 0.8889000000000000 0.5000000000000000 # 213
+ 0.1112000000000000 0.5556000000000000 0.5000000000000000 # 214
+ 0.4444000000000001 0.2222000000000000 0.5000000000000000 # 215
+ 0.1111000000000000 0.8889000000000000 0.5833000000000002 # 31
+ 0.4444000000000001 0.5556000000000000 0.5833000000000002 # 32
+ 0.7778000000000002 0.2222000000000000 0.5833000000000002 # 33
+ 0.1111000000000000 0.2222000000000000 0.9166333333333334 # 34
+ 0.4444000000000001 0.8888000000000001 0.9166333333333334 # 35
+ 0.7778000000000002 0.5556000000000000 0.9166333333333334 # 36
+ 0.7778000000000002 0.8889000000000000 0.2499666666666667 # 37
+ 0.1112000000000000 0.5556000000000000 0.2499666666666667 # 38
+ 0.4444000000000001 0.2222000000000000 0.2499666666666667 # 39
+ 0.1111000000000000 0.8889000000000000 0.0833666666666666 # 310
+ 0.4444000000000001 0.5556000000000000 0.0833666666666666 # 311
+ 0.7778000000000002 0.2222000000000000 0.0833666666666666 # 312
+ 0.7778000000000002 0.8889000000000000 0.7500333333333333 # 313
+ 0.1112000000000000 0.5556000000000000 0.7500333333333333 # 314
+ 0.4444000000000001 0.2222000000000000 0.7500333333333333 # 315
+ 0.1111000000000000 0.2222000000000000 0.4167000000000000 # 316
+ 0.4444000000000001 0.8888000000000001 0.4167000000000000 # 317
+ 0.7778000000000002 0.5556000000000000 0.4167000000000000 # 318
diff --git a/test/data/trigonal/POSCAR-152 b/test/data/trigonal/POSCAR-152
new file mode 100644
index 0000000..d895ffd
--- /dev/null
+++ b/test/data/trigonal/POSCAR-152
@@ -0,0 +1,118 @@
+POSCAR generated by cell class
+1.0
+ 9.2039956691335405 0.0000000000000000 0.0000000000000000
+ -4.6019978345667685 7.9708940657915992 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 24.8179883220943189
+ 15 48 48
+Direct
+ 0.1295000000000000 0.0000000000000000 0.3333333333333333 # 11
+ 0.4750000000000000 0.1442000000000000 0.3637000000000000 # 12
+ 0.4032000000000000 0.1588000000000000 0.2574000000000000 # 13
+ 0.0000000000000000 0.1295000000000000 0.6666666666666666 # 14
+ 0.8558000000000000 0.3308000000000000 0.6970333333333334 # 15
+ 0.8411999999999999 0.2444000000000000 0.5907333333333333 # 16
+ 0.8705000000000002 0.8705000000000002 0.0000000000000000 # 17
+ 0.6692000000000000 0.5250000000000000 0.0303666666666667 # 18
+ 0.7556000000000002 0.5968000000000000 0.9240666666666666 # 19
+ 0.3308000000000000 0.8558000000000000 0.3029666666666667 # 110
+ 0.2444000000000000 0.8411999999999999 0.4092666666666667 # 111
+ 0.5250000000000000 0.6692000000000000 0.9696333333333333 # 112
+ 0.5968000000000000 0.7556000000000002 0.0759333333333334 # 113
+ 0.1442000000000000 0.4750000000000000 0.6363000000000002 # 114
+ 0.1588000000000000 0.4032000000000000 0.7426000000000001 # 115
+ 0.9429999999999999 0.8940000000000000 0.3833000000000000 # 21
+ 0.4868000000000000 0.1911000000000000 0.4388000000000000 # 22
+ 0.6919000000000000 0.1551000000000000 0.3651000000000000 # 23
+ 0.2838000000000000 0.0960000000000000 0.1927000000000000 # 24
+ 0.4174000000000000 0.3713000000000001 0.2462000000000000 # 25
+ 0.6031000000000000 0.2034000000000000 0.2301000000000000 # 26
+ 0.5758000000000000 0.3703000000000001 0.3487000000000000 # 27
+ 0.2178000000000000 0.1968000000000000 0.3769000000000000 # 28
+ 0.1060000000000000 0.0490000000000000 0.7166333333333333 # 29
+ 0.8089000000000000 0.2957000000000000 0.7721333333333333 # 210
+ 0.8449000000000000 0.5368000000000002 0.6984333333333334 # 211
+ 0.9040000000000000 0.1878000000000000 0.5260333333333334 # 212
+ 0.6287000000000000 0.0461000000000000 0.5795333333333333 # 213
+ 0.7966000000000000 0.3997000000000000 0.5634333333333333 # 214
+ 0.6297000000000000 0.2055000000000000 0.6820333333333334 # 215
+ 0.8032000000000000 0.0210000000000000 0.7102333333333334 # 216
+ 0.9510000000000000 0.0569999999999999 0.0499666666666667 # 217
+ 0.7043000000000001 0.5132000000000000 0.1054666666666666 # 218
+ 0.4632000000000000 0.3081000000000000 0.0317666666666667 # 219
+ 0.8122000000000001 0.7161999999999999 0.8593666666666666 # 220
+ 0.9539000000000000 0.5826000000000000 0.9128666666666668 # 221
+ 0.6002999999999999 0.3969000000000000 0.8967666666666668 # 222
+ 0.7945000000000000 0.4242000000000001 0.0153666666666668 # 223
+ 0.9790000000000000 0.7822000000000000 0.0435666666666668 # 224
+ 0.0490000000000000 0.1060000000000000 0.2833666666666667 # 225
+ 0.2957000000000000 0.8089000000000000 0.2278666666666667 # 226
+ 0.5368000000000002 0.8449000000000000 0.3015666666666667 # 227
+ 0.1878000000000000 0.9040000000000000 0.4739666666666668 # 228
+ 0.0461000000000000 0.6287000000000000 0.4204666666666667 # 229
+ 0.3997000000000000 0.7966000000000000 0.4365666666666667 # 230
+ 0.2055000000000000 0.6297000000000000 0.3179666666666667 # 231
+ 0.0210000000000000 0.8032000000000000 0.2897666666666666 # 232
+ 0.0569999999999999 0.9510000000000000 0.9500333333333334 # 233
+ 0.5132000000000000 0.7043000000000001 0.8945333333333334 # 234
+ 0.3081000000000000 0.4632000000000000 0.9682333333333332 # 235
+ 0.7161999999999999 0.8122000000000001 0.1406333333333334 # 236
+ 0.5826000000000000 0.9539000000000000 0.0871333333333333 # 237
+ 0.3969000000000000 0.6002999999999999 0.1032333333333333 # 238
+ 0.4242000000000001 0.7945000000000000 0.9846333333333334 # 239
+ 0.7822000000000000 0.9790000000000000 0.9564333333333334 # 240
+ 0.8940000000000000 0.9429999999999999 0.6167000000000000 # 241
+ 0.1911000000000000 0.4868000000000000 0.5612000000000000 # 242
+ 0.1551000000000000 0.6919000000000000 0.6349000000000000 # 243
+ 0.0960000000000000 0.2838000000000000 0.8073000000000000 # 244
+ 0.3713000000000001 0.4174000000000000 0.7538000000000000 # 245
+ 0.2034000000000000 0.6031000000000000 0.7699000000000000 # 246
+ 0.3703000000000001 0.5758000000000000 0.6513000000000000 # 247
+ 0.1968000000000000 0.2178000000000000 0.6231000000000000 # 248
+ 0.8390000000000000 0.8420000000000000 0.4127000000000000 # 31
+ 0.5134000000000000 0.2243000000000000 0.4833000000000000 # 32
+ 0.8118000000000000 0.1551000000000000 0.3649000000000000 # 33
+ 0.2136000000000000 0.0527000000000000 0.1501000000000000 # 34
+ 0.4447000000000000 0.5061000000000000 0.2436000000000000 # 35
+ 0.7389000000000000 0.2386000000000000 0.2132000000000000 # 36
+ 0.6451000000000000 0.5191000000000000 0.3466000000000001 # 37
+ 0.2423000000000000 0.3188000000000000 0.4018000000000000 # 38
+ 0.1580000000000001 0.9970000000000000 0.7460333333333334 # 39
+ 0.7757000000000002 0.2891000000000001 0.8166333333333334 # 310
+ 0.8449000000000000 0.6567000000000000 0.6982333333333334 # 311
+ 0.9473000000000000 0.1609000000000000 0.4834333333333334 # 312
+ 0.4939000000000000 0.9386000000000000 0.5769333333333334 # 313
+ 0.7614000000000000 0.5003000000000000 0.5465333333333334 # 314
+ 0.4809000000000000 0.1260000000000000 0.6799333333333334 # 315
+ 0.6812000000000000 0.9235000000000000 0.7351333333333334 # 316
+ 0.0029999999999999 0.1610000000000000 0.0793666666666666 # 317
+ 0.7109000000000000 0.4866000000000000 0.1499666666666666 # 318
+ 0.3433000000000000 0.1882000000000000 0.0315666666666667 # 319
+ 0.8391000000000000 0.7864000000000000 0.8167666666666668 # 320
+ 0.0613999999999999 0.5553000000000000 0.9102666666666666 # 321
+ 0.4997000000000000 0.2611000000000000 0.8798666666666666 # 322
+ 0.8740000000000000 0.3549000000000000 0.0132666666666668 # 323
+ 0.0765000000000000 0.7577000000000002 0.0684666666666667 # 324
+ 0.9970000000000000 0.1580000000000001 0.2539666666666667 # 325
+ 0.2891000000000001 0.7757000000000002 0.1833666666666667 # 326
+ 0.6567000000000000 0.8449000000000000 0.3017666666666667 # 327
+ 0.1609000000000000 0.9473000000000000 0.5165666666666666 # 328
+ 0.9386000000000000 0.4939000000000000 0.4230666666666666 # 329
+ 0.5003000000000000 0.7614000000000000 0.4534666666666668 # 330
+ 0.1260000000000000 0.4809000000000000 0.3200666666666666 # 331
+ 0.9235000000000000 0.6812000000000000 0.2648666666666667 # 332
+ 0.1610000000000000 0.0029999999999999 0.9206333333333334 # 333
+ 0.4866000000000000 0.7109000000000000 0.8500333333333334 # 334
+ 0.1882000000000000 0.3433000000000000 0.9684333333333334 # 335
+ 0.7864000000000000 0.8391000000000000 0.1832333333333334 # 336
+ 0.5553000000000000 0.0613999999999999 0.0897333333333332 # 337
+ 0.2611000000000000 0.4997000000000000 0.1201333333333334 # 338
+ 0.3549000000000000 0.8740000000000000 0.9867333333333334 # 339
+ 0.7577000000000002 0.0765000000000000 0.9315333333333334 # 340
+ 0.8420000000000000 0.8390000000000000 0.5873000000000002 # 341
+ 0.2243000000000000 0.5134000000000000 0.5167000000000002 # 342
+ 0.1551000000000000 0.8118000000000000 0.6351000000000000 # 343
+ 0.0527000000000000 0.2136000000000000 0.8499000000000000 # 344
+ 0.5061000000000000 0.4447000000000000 0.7564000000000000 # 345
+ 0.2386000000000000 0.7389000000000000 0.7868000000000002 # 346
+ 0.5191000000000000 0.6451000000000000 0.6534000000000000 # 347
+ 0.3188000000000000 0.2423000000000000 0.5982000000000002 # 348
diff --git a/test/data/trigonal/POSCAR-152-2 b/test/data/trigonal/POSCAR-152-2
new file mode 100644
index 0000000..34fe44c
--- /dev/null
+++ b/test/data/trigonal/POSCAR-152-2
@@ -0,0 +1,25 @@
+POSCAR generated by cell class
+1.0
+ 5.0359976303516376 0.0000000000000000 0.0000000000000000
+ -2.5179988151758175 4.3613018812827535 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 11.2549947040523701
+ 3 3 12
+Direct
+ 0.4583000000000000 0.0000000000000000 0.3333333333333333 # 11
+ 0.0000000000000000 0.4583000000000000 0.6666666666666666 # 12
+ 0.5417000000000000 0.5417000000000000 0.0000000000000000 # 13
+ 0.4577000000000000 0.0000000000000000 0.8333333333333334 # 21
+ 0.0000000000000000 0.4577000000000000 0.1666666666666667 # 22
+ 0.5423000000000000 0.5423000000000000 0.5000000000000000 # 23
+ 0.4190000000000000 0.3180000000000000 0.3963000000000000 # 31
+ 0.4130000000000000 0.2640000000000000 0.8749000000000000 # 32
+ 0.6820000000000002 0.1010000000000000 0.7296333333333334 # 33
+ 0.7360000000000000 0.1490000000000000 0.2082333333333333 # 34
+ 0.8990000000000000 0.5810000000000000 0.0629666666666667 # 35
+ 0.8510000000000000 0.5870000000000000 0.5415666666666668 # 36
+ 0.1010000000000000 0.6820000000000002 0.2703666666666667 # 37
+ 0.1490000000000000 0.7360000000000000 0.7917666666666666 # 38
+ 0.5810000000000000 0.8990000000000000 0.9370333333333334 # 39
+ 0.5870000000000000 0.8510000000000000 0.4584333333333334 # 310
+ 0.3180000000000000 0.4190000000000000 0.6037000000000000 # 311
+ 0.2640000000000000 0.4130000000000000 0.1251000000000000 # 312
diff --git a/test/data/trigonal/POSCAR-153 b/test/data/trigonal/POSCAR-153
new file mode 100644
index 0000000..2c386cd
--- /dev/null
+++ b/test/data/trigonal/POSCAR-153
@@ -0,0 +1,31 @@
+POSCAR generated by cell class
+1.0
+ 6.0199971673385386 0.0000000000000000 0.0000000000000000
+ -3.0099985836692680 5.2134704776255347 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 17.2999918596273687
+ 6 18
+Direct
+ 0.2222000000000000 0.1111000000000000 0.0000000000000000 # 11
+ 0.8889000000000000 0.4444500000000000 0.0000000000000000 # 12
+ 0.8889000000000000 0.1111000000000000 0.6666666666666666 # 13
+ 0.5555500000000000 0.4444500000000000 0.6666666666666666 # 14
+ 0.8889000000000000 0.7778000000000002 0.3333333333333333 # 15
+ 0.5555500000000000 0.1111000000000000 0.3333333333333333 # 16
+ 0.8889000000000000 0.1111000000000000 0.0731000000000000 # 21
+ 0.5556000000000000 0.4444000000000001 0.0731000000000000 # 22
+ 0.2222000000000000 0.7778000000000002 0.0731000000000000 # 23
+ 0.8889000000000000 0.7778000000000002 0.7397666666666668 # 24
+ 0.5556000000000000 0.1112000000000000 0.7397666666666668 # 25
+ 0.2222000000000000 0.4444000000000001 0.7397666666666668 # 26
+ 0.2222000000000000 0.1111000000000000 0.4064333333333334 # 27
+ 0.8888000000000001 0.4444000000000001 0.4064333333333334 # 28
+ 0.5556000000000000 0.7778000000000002 0.4064333333333334 # 29
+ 0.8889000000000000 0.1111000000000000 0.2602333333333333 # 210
+ 0.5556000000000000 0.4444000000000001 0.2602333333333333 # 211
+ 0.2222000000000000 0.7778000000000002 0.2602333333333333 # 212
+ 0.2222000000000000 0.1111000000000000 0.5935666666666668 # 213
+ 0.8888000000000001 0.4444000000000001 0.5935666666666668 # 214
+ 0.5556000000000000 0.7778000000000002 0.5935666666666668 # 215
+ 0.8889000000000000 0.7778000000000002 0.9268999999999999 # 216
+ 0.5556000000000000 0.1112000000000000 0.9268999999999999 # 217
+ 0.2222000000000000 0.4444000000000001 0.9268999999999999 # 218
diff --git a/test/data/trigonal/POSCAR-154 b/test/data/trigonal/POSCAR-154
new file mode 100644
index 0000000..fa8ae07
--- /dev/null
+++ b/test/data/trigonal/POSCAR-154
@@ -0,0 +1,16 @@
+POSCAR generated by cell class
+1.0
+ 4.9133976880400603 0.0000000000000000 0.0000000000000000
+ -2.4566988440200292 4.2551272167384209 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.4051974566276204
+ 3 6
+Direct
+ 0.4698000000000000 0.0000000000000000 0.6666666666666666 # 11
+ 0.0000000000000000 0.4698000000000000 0.3333333333333333 # 12
+ 0.5302000000000000 0.5302000000000000 0.0000000000000000 # 13
+ 0.4141000000000001 0.2681000000000000 0.7855000000000000 # 21
+ 0.7319000000000000 0.1460000000000000 0.4521666666666668 # 22
+ 0.8540000000000000 0.5859000000000000 0.1188333333333333 # 23
+ 0.1460000000000000 0.7319000000000000 0.5478333333333334 # 24
+ 0.5859000000000000 0.8540000000000000 0.8811666666666668 # 25
+ 0.2681000000000000 0.4141000000000001 0.2145000000000000 # 26
diff --git a/test/data/trigonal/POSCAR-154-2 b/test/data/trigonal/POSCAR-154-2
new file mode 100644
index 0000000..c3a900f
--- /dev/null
+++ b/test/data/trigonal/POSCAR-154-2
@@ -0,0 +1,55 @@
+POSCAR generated by cell class
+1.0
+ 13.0399938641353010 0.0000000000000000 0.0000000000000000
+ -6.5199969320676479 11.2929659515343772 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.3999960474491306
+ 6 24 9 9
+Direct
+ 0.6336000000000002 0.5520000000000002 0.0639000000000000 # 11
+ 0.4480000000000000 0.0816000000000000 0.7305666666666668 # 12
+ 0.9184000000000000 0.3664000000000000 0.3972333333333334 # 13
+ 0.0816000000000000 0.4480000000000000 0.2694333333333334 # 14
+ 0.3664000000000000 0.9184000000000000 0.6027666666666668 # 15
+ 0.5520000000000002 0.6336000000000002 0.9360999999999999 # 16
+ 0.7402000000000000 0.6837000000000000 0.2682000000000000 # 21
+ 0.4940000000000000 0.4384000000000000 0.2642000000000000 # 22
+ 0.5695000000000000 0.3645000000000000 0.9409999999999999 # 23
+ 0.8132000000000001 0.6173999999999999 0.9319999999999999 # 24
+ 0.3163000000000001 0.0565000000000000 0.9348666666666666 # 25
+ 0.5616000000000000 0.0556000000000000 0.9308666666666666 # 26
+ 0.6355000000000000 0.2050000000000000 0.6076666666666668 # 27
+ 0.3826000000000000 0.1958000000000000 0.5986666666666668 # 28
+ 0.9435000000000000 0.2598000000000000 0.6015333333333334 # 29
+ 0.9444000000000000 0.5060000000000000 0.5975333333333334 # 210
+ 0.7950000000000002 0.4305000000000000 0.2743333333333333 # 211
+ 0.8042000000000000 0.1868000000000000 0.2653333333333333 # 212
+ 0.0565000000000000 0.3163000000000001 0.0651333333333333 # 213
+ 0.0556000000000000 0.5616000000000000 0.0691333333333333 # 214
+ 0.2050000000000000 0.6355000000000000 0.3923333333333333 # 215
+ 0.1958000000000000 0.3826000000000000 0.4013333333333334 # 216
+ 0.2598000000000000 0.9435000000000000 0.3984666666666667 # 217
+ 0.5060000000000000 0.9444000000000000 0.4024666666666667 # 218
+ 0.4305000000000000 0.7950000000000002 0.7256666666666668 # 219
+ 0.1868000000000000 0.8042000000000000 0.7346666666666668 # 220
+ 0.6837000000000000 0.7402000000000000 0.7318000000000000 # 221
+ 0.4384000000000000 0.4940000000000000 0.7358000000000000 # 222
+ 0.3645000000000000 0.5695000000000000 0.0590000000000000 # 223
+ 0.6173999999999999 0.8132000000000001 0.0680000000000000 # 224
+ 0.4830000000000000 0.6730000000000002 0.4160000000000000 # 31
+ 0.2990000000000000 0.2990000000000000 0.0000000000000000 # 32
+ 0.3270000000000000 0.8100000000000002 0.0826666666666667 # 33
+ 0.7010000000000000 0.0000000000000000 0.6666666666666666 # 34
+ 0.1900000000000000 0.5170000000000000 0.7493333333333334 # 35
+ 0.0000000000000000 0.7010000000000000 0.3333333333333333 # 36
+ 0.8100000000000002 0.3270000000000000 0.9173333333333333 # 37
+ 0.5170000000000000 0.1900000000000000 0.2506666666666667 # 38
+ 0.6730000000000002 0.4830000000000000 0.5840000000000000 # 39
+ 0.1800000000000000 0.2310000000000001 0.7250000000000000 # 41
+ 0.0000000000000000 0.0530000000000000 0.8333333333333334 # 42
+ 0.7690000000000000 0.9490000000000000 0.3916666666666667 # 43
+ 0.9470000000000000 0.9470000000000000 0.5000000000000000 # 44
+ 0.0510000000000000 0.8200000000000000 0.0583333333333333 # 45
+ 0.0530000000000000 0.0000000000000000 0.1666666666666667 # 46
+ 0.9490000000000000 0.7690000000000000 0.6083333333333334 # 47
+ 0.8200000000000000 0.0510000000000000 0.9416666666666665 # 48
+ 0.2310000000000001 0.1800000000000000 0.2750000000000000 # 49
diff --git a/test/data/trigonal/POSCAR-154-3 b/test/data/trigonal/POSCAR-154-3
new file mode 100644
index 0000000..7425f81
--- /dev/null
+++ b/test/data/trigonal/POSCAR-154-3
@@ -0,0 +1,26 @@
+POSCAR generated by cell class
+ 1.00000000000000
+ 3.5185386123395598 -2.0314292149883366 0.0000000000000000
+ 0.0000000000000000 4.0628584299766732 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.6155767045048108
+ 3 6
+Direct
+ 0.4647039739275505 0.0000000000000000 0.6666666666666642
+ 0.0000000000000000 0.4647039739275505 0.3333333333333357
+ 0.5352960260724497 0.5352960260724497 0.0000000000000000
+ 0.3926740737001666 0.2848805436603805 0.7634020028802487
+ 0.7151194563396196 0.1077935300397861 0.4300686695469201
+ 0.8922064699602136 0.6073259262998333 0.0967353362135845
+ 0.1077935300397861 0.7151194563396196 0.5699313304530798
+ 0.6073259262998333 0.8922064699602136 0.9032646637864155
+ 0.2848805436603805 0.3926740737001666 0.2365979971197512
+
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
+ 0.00000000E+00 0.00000000E+00 0.00000000E+00
diff --git a/test/data/trigonal/POSCAR-155 b/test/data/trigonal/POSCAR-155
new file mode 100644
index 0000000..f56e99b
--- /dev/null
+++ b/test/data/trigonal/POSCAR-155
@@ -0,0 +1,67 @@
+$cell vectors
+1.0
+ 9.3415956043869901 0.0000000000000000 0.0000000000000000
+ -4.6707978021934924 8.0900591052801811 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.3054965624570940
+ 3 9 12 36
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Nd1
+ 0.6666666666666667 0.3333333333333331 0.3333333333333334 # Nd2
+ 0.3333333333333333 0.6666666666666669 0.6666666666666667 # Nd3
+ 0.5574000000000003 0.0000000000000000 0.0000000000000000 # Al1
+ 0.2240666666666665 0.3333333333333331 0.3333333333333334 # Al2
+ 0.8907333333333336 0.6666666666666669 0.6666666666666667 # Al3
+ -0.0000000000000001 0.5573999999999999 0.0000000000000000 # Al4
+ 0.6666666666666671 0.8907333333333337 0.3333333333333334 # Al5
+ 0.3333333333333333 0.2240666666666668 0.6666666666666667 # Al6
+ 0.4426000000000003 0.4426000000000000 0.0000000000000000 # Al7
+ 0.1092666666666665 0.7759333333333331 0.3333333333333334 # Al8
+ 0.7759333333333337 0.1092666666666669 0.6666666666666667 # Al9
+ 0.0000000000000000 0.0000000000000000 0.4999999999999997 # B1
+ 0.4360000000000002 0.0000000000000000 0.4999999999999997 # B2
+ 0.6666666666666667 0.3333333333333331 0.8333333333333331 # B3
+ 0.1026666666666663 0.3333333333333331 0.8333333333333331 # B4
+ 0.3333333333333333 0.6666666666666669 0.1666666666666663 # B5
+ 0.7693333333333334 0.6666666666666669 0.1666666666666663 # B6
+ -0.0000000000000001 0.4359999999999998 0.4999999999999997 # B7
+ 0.6666666666666670 0.7693333333333334 0.8333333333333331 # B8
+ 0.3333333333333333 0.1026666666666666 0.1666666666666663 # B9
+ 0.5639999999999999 0.5640000000000003 0.4999999999999997 # B10
+ 0.2306666666666666 0.8973333333333333 0.8333333333333331 # B11
+ 0.8973333333333335 0.2306666666666665 0.1666666666666663 # B12
+ 0.8510000000000002 0.0000000000000000 0.4999999999999997 # O1
+ 0.5889999999999997 0.0000000000000000 0.4999999999999997 # O2
+ 0.4469000000000000 0.1481000000000001 0.5252000000000000 # O3
+ 0.5176666666666669 0.3333333333333331 0.8333333333333331 # O4
+ 0.2556666666666665 0.3333333333333331 0.8333333333333331 # O5
+ 0.1135666666666667 0.4814333333333333 0.8585333333333334 # O6
+ 0.1843333333333328 0.6666666666666669 0.1666666666666663 # O7
+ 0.9223333333333330 0.6666666666666669 0.1666666666666663 # O8
+ 0.7802333333333338 0.8147666666666669 0.1918666666666666 # O9
+ -0.0000000000000002 0.8509999999999996 0.4999999999999997 # O10
+ -0.0000000000000002 0.5889999999999996 0.4999999999999997 # O11
+ 0.8519000000000000 0.2988000000000003 0.5252000000000000 # O12
+ 0.6666666666666666 0.1843333333333328 0.8333333333333331 # O13
+ 0.6666666666666670 0.9223333333333336 0.8333333333333331 # O14
+ 0.5185666666666667 0.6321333333333333 0.8585333333333334 # O15
+ 0.3333333333333331 0.5176666666666666 0.1666666666666663 # O16
+ 0.3333333333333331 0.2556666666666667 0.1666666666666663 # O17
+ 0.1852333333333329 0.9654666666666665 0.1918666666666666 # O18
+ 0.1490000000000001 0.1490000000000003 0.4999999999999997 # O19
+ 0.4110000000000005 0.4110000000000003 0.4999999999999997 # O20
+ 0.7011999999999998 0.5531000000000001 0.5252000000000000 # O21
+ 0.8156666666666668 0.4823333333333334 0.8333333333333331 # O22
+ 0.0776666666666666 0.7443333333333334 0.8333333333333331 # O23
+ 0.3678666666666666 0.8864333333333333 0.8585333333333334 # O24
+ 0.4823333333333333 0.8156666666666672 0.1666666666666663 # O25
+ 0.7443333333333334 0.0776666666666665 0.1666666666666663 # O26
+ 0.0345333333333333 0.2197666666666664 0.1918666666666666 # O27
+ 0.2987999999999997 0.8518999999999998 0.4748000000000002 # O28
+ 0.9654666666666669 0.1852333333333336 0.8081333333333334 # O29
+ 0.6321333333333330 0.5185666666666666 0.1414666666666668 # O30
+ 0.5531000000000001 0.7012000000000002 0.4748000000000002 # O31
+ 0.2197666666666669 0.0345333333333335 0.8081333333333334 # O32
+ 0.8864333333333331 0.3678666666666666 0.1414666666666668 # O33
+ 0.1481000000000000 0.4468999999999998 0.4748000000000002 # O34
+ 0.8147666666666664 0.7802333333333336 0.8081333333333334 # O35
+ 0.4814333333333332 0.1135666666666667 0.1414666666666668 # O36
diff --git a/test/data/trigonal/POSCAR-155-2 b/test/data/trigonal/POSCAR-155-2
new file mode 100644
index 0000000..78b9631
--- /dev/null
+++ b/test/data/trigonal/POSCAR-155-2
@@ -0,0 +1,88 @@
+$cell vectors
+1.0
+ 9.1229957072474228 0.0000000000000000 0.0000000000000000
+ -4.5614978536237070 7.9007460410926491 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 16.9829920087891040
+ 9 9 63
+Direct
+ 0.2601000000000002 0.0000000000000000 0.5000000000000000 # Sn1
+ 0.9267666666666667 0.3333333333333334 0.8333333333333331 # Sn2
+ 0.5934333333333327 0.6666666666666667 0.1666666666666666 # Sn3
+ -0.0000000000000002 0.2601000000000000 0.5000000000000000 # Sn4
+ 0.6666666666666667 0.5934333333333333 0.8333333333333331 # Sn5
+ 0.3333333333333327 0.9267666666666666 0.1666666666666666 # Sn6
+ -0.2601000000000000 -0.2601000000000000 0.5000000000000000 # Sn7
+ 0.4065666666666665 0.0732333333333334 0.8333333333333331 # Sn8
+ 0.0732333333333330 0.4065666666666667 0.1666666666666666 # Sn9
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # As1
+ 0.0000000000000000 0.0000000000000000 0.2989000000000001 # As2
+ 0.6666666666666665 0.3333333333333334 0.3333333333333331 # As3
+ 0.6666666666666665 0.3333333333333334 0.6322333333333332 # As4
+ 0.3333333333333330 0.6666666666666667 0.6666666666666665 # As5
+ 0.3333333333333330 0.6666666666666667 0.9655666666666668 # As6
+ 0.0000000000000000 0.0000000000000000 0.7010999999999999 # As7
+ 0.6666666666666665 0.3333333333333334 0.0344333333333334 # As8
+ 0.3333333333333330 0.6666666666666667 0.3677666666666665 # As9
+ 0.0850999999999999 0.1730000000000003 0.0591999999999999 # F1
+ 0.1537999999999997 0.1511999999999998 0.2414000000000001 # F2
+ 0.0039000000000000 0.1558000000000004 0.3588000000000002 # F3
+ 0.1760000000000001 0.1759999999999999 0.5000000000000000 # F4
+ 0.7517666666666665 0.5063333333333336 0.3925333333333333 # F5
+ 0.8204666666666662 0.4845333333333332 0.5747333333333333 # F6
+ 0.6705666666666662 0.4891333333333330 0.6921333333333333 # F7
+ 0.8426666666666667 0.5093333333333333 0.8333333333333331 # F8
+ 0.4184333333333332 0.8396666666666663 0.7258666666666664 # F9
+ 0.4871333333333333 0.8178666666666665 0.9080666666666667 # F10
+ 0.3372333333333336 0.8224666666666670 1.0254666666666667 # F11
+ 0.5093333333333331 0.8426666666666666 0.1666666666666666 # F12
+ -0.1729999999999997 -0.0878999999999998 0.0591999999999999 # F13
+ -0.1511999999999998 0.0026000000000002 0.2414000000000001 # F14
+ -0.1557999999999999 -0.1519000000000001 0.3588000000000002 # F15
+ -0.1759999999999999 0.0000000000000000 0.5000000000000000 # F16
+ 0.4936666666666668 0.2454333333333336 0.3925333333333333 # F17
+ 0.5154666666666667 0.3359333333333335 0.5747333333333333 # F18
+ 0.5108666666666666 0.1814333333333332 0.6921333333333333 # F19
+ 0.4906666666666666 0.3333333333333334 0.8333333333333331 # F20
+ 0.1603333333333333 0.5787666666666669 0.7258666666666664 # F21
+ 0.1821333333333331 0.6692666666666669 0.9080666666666667 # F22
+ 0.1775333333333330 0.5147666666666666 1.0254666666666667 # F23
+ 0.1573333333333331 0.6666666666666667 0.1666666666666666 # F24
+ 0.0879000000000001 -0.0850999999999999 0.0591999999999999 # F25
+ -0.0025999999999999 -0.1538000000000000 0.2414000000000001 # F26
+ 0.1519000000000000 -0.0039000000000003 0.3588000000000002 # F27
+ 0.0000000000000004 -0.1759999999999999 0.5000000000000000 # F28
+ 0.7545666666666666 0.2482333333333334 0.3925333333333333 # F29
+ 0.6640666666666666 0.1795333333333334 0.5747333333333333 # F30
+ 0.8185666666666666 0.3294333333333331 0.6921333333333333 # F31
+ 0.6666666666666670 0.1573333333333334 0.8333333333333331 # F32
+ 0.4212333333333331 0.5815666666666669 0.7258666666666664 # F33
+ 0.3307333333333331 0.5128666666666667 0.9080666666666667 # F34
+ 0.4852333333333333 0.6627666666666672 1.0254666666666667 # F35
+ 0.3333333333333334 0.4906666666666668 0.1666666666666666 # F36
+ -0.0879000000000002 -0.1730000000000003 -0.0591999999999999 # F37
+ 0.0026000000000001 -0.1511999999999998 0.7586000000000001 # F38
+ -0.1519000000000002 -0.1558000000000004 0.6411999999999999 # F39
+ 0.5787666666666667 0.1603333333333337 0.2741333333333332 # F40
+ 0.6692666666666666 0.1821333333333335 0.0919333333333333 # F41
+ 0.5147666666666667 0.1775333333333337 -0.0254666666666667 # F42
+ 0.2454333333333331 0.4936666666666670 0.6074666666666667 # F43
+ 0.3359333333333331 0.5154666666666670 0.4252666666666668 # F44
+ 0.1814333333333332 0.5108666666666670 0.3078666666666668 # F45
+ -0.0851000000000001 0.0878999999999998 -0.0591999999999999 # F46
+ -0.1538000000000000 -0.0026000000000002 0.7586000000000001 # F47
+ -0.0039000000000000 0.1519000000000001 0.6411999999999999 # F48
+ 0.5815666666666665 0.4212333333333331 0.2741333333333332 # F49
+ 0.5128666666666665 0.3307333333333332 0.0919333333333333 # F50
+ 0.6627666666666665 0.4852333333333335 -0.0254666666666667 # F51
+ 0.2482333333333329 0.7545666666666664 0.6074666666666667 # F52
+ 0.1795333333333330 0.6640666666666666 0.4252666666666668 # F53
+ 0.3294333333333329 0.8185666666666668 0.3078666666666668 # F54
+ 0.1729999999999999 0.0850999999999999 -0.0591999999999999 # F55
+ 0.1511999999999999 0.1538000000000000 0.7586000000000001 # F56
+ 0.1558000000000002 0.0039000000000003 0.6411999999999999 # F57
+ 0.8396666666666665 0.4184333333333333 0.2741333333333332 # F58
+ 0.8178666666666664 0.4871333333333333 0.0919333333333333 # F59
+ 0.8224666666666668 0.3372333333333337 -0.0254666666666667 # F60
+ 0.5063333333333329 0.7517666666666666 0.6074666666666667 # F61
+ 0.4845333333333329 0.8204666666666667 0.4252666666666668 # F62
+ 0.4891333333333332 0.6705666666666669 0.3078666666666668 # F63
diff --git a/test/data/trigonal/POSCAR-156 b/test/data/trigonal/POSCAR-156
new file mode 100644
index 0000000..13f2dd5
--- /dev/null
+++ b/test/data/trigonal/POSCAR-156
@@ -0,0 +1,11 @@
+POSCAR generated by cell class
+1.0
+ 3.7332982433264039 0.0000000000000000 0.0000000000000000
+ -1.8666491216632011 3.2331311186244847 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 6.0979971306362799
+ 1 1 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.4126000000000001 # 21
+ 0.3333333333333333 0.6666666666666666 0.7760000000000000 # 31
+ 0.6666666666666666 0.3333333333333333 0.2542000000000000 # 32
diff --git a/test/data/trigonal/POSCAR-156-2 b/test/data/trigonal/POSCAR-156-2
new file mode 100644
index 0000000..e4d8694
--- /dev/null
+++ b/test/data/trigonal/POSCAR-156-2
@@ -0,0 +1,14 @@
+POSCAR generated by cell class
+1.0
+ 3.9149981578289608 0.0000000000000000 0.0000000000000000
+ -1.9574990789144795 3.3904878604491593 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.7249940123559604
+ 1 1 1 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.5370000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.8040000000000002 # 21
+ 0.3333333333333333 0.6666666666666666 0.2860000000000000 # 31
+ 0.3333333333333333 0.6666666666666666 0.1020000000000000 # 41
+ 0.0000000000000000 0.0000000000000000 0.3420000000000001 # 42
+ 0.3333333333333333 0.6666666666666666 0.6110000000000000 # 43
+ 0.6666666666666666 0.3333333333333333 0.9229999999999999 # 44
diff --git a/test/data/trigonal/POSCAR-157 b/test/data/trigonal/POSCAR-157
new file mode 100644
index 0000000..a6cab55
--- /dev/null
+++ b/test/data/trigonal/POSCAR-157
@@ -0,0 +1,196 @@
+POSCAR generated by cell class
+1.0
+ 12.1969942608020201 0.0000000000000000 0.0000000000000000
+ -6.0984971304010074 10.5629068796675512 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 19.3589908907818504
+ 3 21 63 18 84
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.0296000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.0296000000000000 # 13
+ 0.0000000000000000 0.0000000000000000 0.2376000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.2532000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.7782000000000000 # 23
+ 0.6666666666666666 0.3333333333333333 0.7950000000000002 # 24
+ 0.0000000000000000 0.0000000000000000 0.5074000000000000 # 25
+ 0.6666666666666666 0.3333333333333333 0.5266000000000000 # 26
+ 0.6699000000000002 0.0000000000000000 0.6659000000000002 # 27
+ 0.6672000000000000 0.0000000000000000 0.9387000000000000 # 28
+ 0.3366000000000000 0.0000000000000000 0.3673000000000000 # 29
+ 0.3344000000000000 0.0000000000000000 0.0933000000000000 # 210
+ 0.0000000000000000 0.6699000000000002 0.6659000000000002 # 211
+ 0.0000000000000000 0.6672000000000000 0.9387000000000000 # 212
+ 0.0000000000000000 0.3366000000000000 0.3673000000000000 # 213
+ 0.0000000000000000 0.3344000000000000 0.0933000000000000 # 214
+ 0.3301000000000000 0.3301000000000000 0.6659000000000002 # 215
+ 0.3328000000000000 0.3328000000000000 0.9387000000000000 # 216
+ 0.6634000000000000 0.6634000000000000 0.3673000000000000 # 217
+ 0.6656000000000000 0.6656000000000000 0.0933000000000000 # 218
+ 0.3333333333333333 0.6666666666666666 0.2532000000000000 # 219
+ 0.3333333333333333 0.6666666666666666 0.7950000000000002 # 220
+ 0.3333333333333333 0.6666666666666666 0.5266000000000000 # 221
+ 0.5152000000000000 0.0000000000000000 0.5165999999999999 # 31
+ 0.1591000000000000 0.3340000000000001 0.5147000000000002 # 32
+ 0.8128000000000000 0.0000000000000000 0.3789000000000000 # 33
+ 0.4788000000000000 0.3318000000000000 0.3846000000000000 # 34
+ 0.1892000000000000 0.0000000000000000 0.9294000000000000 # 35
+ 0.8470000000000000 0.3359000000000000 0.9339000000000000 # 36
+ 0.1759000000000000 0.0000000000000000 0.6468000000000002 # 37
+ 0.8448000000000000 0.3337000000000000 0.6526999999999999 # 38
+ 0.8236000000000000 0.0000000000000000 0.0957000000000000 # 39
+ 0.4783000000000000 0.3312000000000000 0.1034000000000000 # 310
+ 0.4879000000000000 0.0000000000000000 0.7927999999999999 # 311
+ 0.1515000000000000 0.3345000000000001 0.7941000000000000 # 312
+ 0.5180000000000000 0.0000000000000000 0.2357000000000000 # 313
+ 0.1811000000000000 0.3334000000000000 0.2391000000000000 # 314
+ 0.0000000000000000 0.5152000000000000 0.5165999999999999 # 315
+ 0.6660000000000001 0.8250999999999999 0.5147000000000002 # 316
+ 0.0000000000000000 0.8128000000000000 0.3789000000000000 # 317
+ 0.6682000000000000 0.1470000000000000 0.3846000000000000 # 318
+ 0.0000000000000000 0.1892000000000000 0.9294000000000000 # 319
+ 0.6641000000000000 0.5111000000000000 0.9339000000000000 # 320
+ 0.0000000000000000 0.1759000000000000 0.6468000000000002 # 321
+ 0.6663000000000000 0.5111000000000000 0.6526999999999999 # 322
+ 0.0000000000000000 0.8236000000000000 0.0957000000000000 # 323
+ 0.6688000000000000 0.1471000000000000 0.1034000000000000 # 324
+ 0.0000000000000000 0.4879000000000000 0.7927999999999999 # 325
+ 0.6655000000000000 0.8169999999999999 0.7941000000000000 # 326
+ 0.0000000000000000 0.5180000000000000 0.2357000000000000 # 327
+ 0.6666000000000000 0.8477000000000000 0.2391000000000000 # 328
+ 0.4848000000000000 0.4848000000000000 0.5165999999999999 # 329
+ 0.1749000000000000 0.8409000000000000 0.5147000000000002 # 330
+ 0.1872000000000000 0.1872000000000000 0.3789000000000000 # 331
+ 0.8530000000000000 0.5212000000000000 0.3846000000000000 # 332
+ 0.8108000000000000 0.8108000000000000 0.9294000000000000 # 333
+ 0.4889000000000000 0.1530000000000000 0.9339000000000000 # 334
+ 0.8241000000000002 0.8241000000000002 0.6468000000000002 # 335
+ 0.4889000000000000 0.1552000000000000 0.6526999999999999 # 336
+ 0.1764000000000000 0.1764000000000000 0.0957000000000000 # 337
+ 0.8529000000000000 0.5217000000000002 0.1034000000000000 # 338
+ 0.5121000000000000 0.5121000000000000 0.7927999999999999 # 339
+ 0.1830000000000000 0.8485000000000000 0.7941000000000000 # 340
+ 0.4820000000000000 0.4820000000000000 0.2357000000000000 # 341
+ 0.1523000000000000 0.8189000000000000 0.2391000000000000 # 342
+ 0.3340000000000001 0.1591000000000000 0.5147000000000002 # 343
+ 0.3318000000000000 0.4788000000000000 0.3846000000000000 # 344
+ 0.3359000000000000 0.8470000000000000 0.9339000000000000 # 345
+ 0.3337000000000000 0.8448000000000000 0.6526999999999999 # 346
+ 0.3312000000000000 0.4783000000000000 0.1034000000000000 # 347
+ 0.3345000000000001 0.1515000000000000 0.7941000000000000 # 348
+ 0.3334000000000000 0.1811000000000000 0.2391000000000000 # 349
+ 0.8250999999999999 0.6660000000000001 0.5147000000000002 # 350
+ 0.1470000000000000 0.6682000000000000 0.3846000000000000 # 351
+ 0.5111000000000000 0.6641000000000000 0.9339000000000000 # 352
+ 0.5111000000000000 0.6663000000000000 0.6526999999999999 # 353
+ 0.1471000000000000 0.6688000000000000 0.1034000000000000 # 354
+ 0.8169999999999999 0.6655000000000000 0.7941000000000000 # 355
+ 0.8477000000000000 0.6666000000000000 0.2391000000000000 # 356
+ 0.8409000000000000 0.1749000000000000 0.5147000000000002 # 357
+ 0.5212000000000000 0.8530000000000000 0.3846000000000000 # 358
+ 0.1530000000000000 0.4889000000000000 0.9339000000000000 # 359
+ 0.1552000000000000 0.4889000000000000 0.6526999999999999 # 360
+ 0.5217000000000002 0.8529000000000000 0.1034000000000000 # 361
+ 0.8485000000000000 0.1830000000000000 0.7941000000000000 # 362
+ 0.8189000000000000 0.1523000000000000 0.2391000000000000 # 363
+ 0.6858000000000000 0.0000000000000000 0.4658000000000000 # 41
+ 0.3396000000000000 0.0000000000000000 0.8636000000000001 # 42
+ 0.3486000000000001 0.0000000000000000 0.5674000000000000 # 43
+ 0.6620000000000000 0.0000000000000000 0.3131000000000000 # 44
+ 0.6753000000000000 0.0000000000000000 0.1666000000000000 # 45
+ 0.3262000000000000 0.0000000000000000 0.7175000000000000 # 46
+ 0.0000000000000000 0.6858000000000000 0.4658000000000000 # 47
+ 0.0000000000000000 0.3396000000000000 0.8636000000000001 # 48
+ 0.0000000000000000 0.3486000000000001 0.5674000000000000 # 49
+ 0.0000000000000000 0.6620000000000000 0.3131000000000000 # 410
+ 0.0000000000000000 0.6753000000000000 0.1666000000000000 # 411
+ 0.0000000000000000 0.3262000000000000 0.7175000000000000 # 412
+ 0.3142000000000000 0.3142000000000000 0.4658000000000000 # 413
+ 0.6604000000000000 0.6604000000000000 0.8636000000000001 # 414
+ 0.6514000000000000 0.6514000000000000 0.5674000000000000 # 415
+ 0.3380000000000001 0.3380000000000001 0.3131000000000000 # 416
+ 0.3247000000000000 0.3247000000000000 0.1666000000000000 # 417
+ 0.6738000000000000 0.6738000000000000 0.7175000000000000 # 418
+ 0.0000000000000000 0.0000000000000000 0.1631000000000000 # 51
+ 0.8884000000000000 0.0000000000000000 0.2636000000000000 # 52
+ 0.6666666666666666 0.3333333333333333 0.3301000000000000 # 53
+ 0.6683000000000000 0.2201000000000000 0.2318000000000000 # 54
+ 0.0000000000000000 0.0000000000000000 0.7026000000000000 # 55
+ 0.1140000000000000 0.0000000000000000 0.8064000000000000 # 56
+ 0.6666666666666666 0.3333333333333333 0.8717000000000000 # 57
+ 0.5502000000000000 0.2158000000000000 0.7701000000000000 # 58
+ 0.0000000000000000 0.0000000000000000 0.4317000000000000 # 59
+ 0.1130000000000000 0.0000000000000000 0.5320000000000000 # 510
+ 0.6666666666666666 0.3333333333333333 0.6042999999999999 # 511
+ 0.6720000000000002 0.2209000000000000 0.5021000000000000 # 512
+ 0.6771000000000000 0.0000000000000000 0.7416000000000001 # 513
+ 0.5517000000000000 0.0000000000000000 0.6460000000000000 # 514
+ 0.7834000000000000 0.1167000000000000 0.6403000000000000 # 515
+ 0.6677999999999999 0.0000000000000000 0.0145999999999999 # 516
+ 0.5527000000000000 0.0000000000000000 0.9142000000000000 # 517
+ 0.7808000000000002 0.1154000000000000 0.9133000000000000 # 518
+ 0.3384000000000000 0.0000000000000000 0.2897000000000000 # 519
+ 0.4475000000000000 0.0000000000000000 0.3971000000000000 # 520
+ 0.3356000000000000 0.1125000000000000 0.3934000000000001 # 521
+ 0.3358000000000000 0.0000000000000000 0.0167000000000000 # 522
+ 0.4461000000000000 0.0000000000000000 0.1203000000000000 # 523
+ 0.3342000000000000 0.1123000000000000 0.1204000000000000 # 524
+ 0.0000000000000000 0.8884000000000000 0.2636000000000000 # 525
+ 0.7799000000000001 0.4482000000000000 0.2318000000000000 # 526
+ 0.0000000000000000 0.1140000000000000 0.8064000000000000 # 527
+ 0.7842000000000000 0.3344000000000000 0.7701000000000000 # 528
+ 0.0000000000000000 0.1130000000000000 0.5320000000000000 # 529
+ 0.7791000000000000 0.4511000000000000 0.5021000000000000 # 530
+ 0.0000000000000000 0.6771000000000000 0.7416000000000001 # 531
+ 0.0000000000000000 0.5517000000000000 0.6460000000000000 # 532
+ 0.8833000000000000 0.6667000000000000 0.6403000000000000 # 533
+ 0.0000000000000000 0.6677999999999999 0.0145999999999999 # 534
+ 0.0000000000000000 0.5527000000000000 0.9142000000000000 # 535
+ 0.8846000000000002 0.6654000000000000 0.9133000000000000 # 536
+ 0.0000000000000000 0.3384000000000000 0.2897000000000000 # 537
+ 0.0000000000000000 0.4475000000000000 0.3971000000000000 # 538
+ 0.8875000000000000 0.2231000000000000 0.3934000000000001 # 539
+ 0.0000000000000000 0.3358000000000000 0.0167000000000000 # 540
+ 0.0000000000000000 0.4461000000000000 0.1203000000000000 # 541
+ 0.8876999999999999 0.2219000000000000 0.1204000000000000 # 542
+ 0.1116000000000000 0.1116000000000000 0.2636000000000000 # 543
+ 0.5518000000000000 0.3317000000000000 0.2318000000000000 # 544
+ 0.8860000000000000 0.8860000000000000 0.8064000000000000 # 545
+ 0.6656000000000000 0.4498000000000000 0.7701000000000000 # 546
+ 0.8870000000000000 0.8870000000000000 0.5320000000000000 # 547
+ 0.5489000000000002 0.3280000000000000 0.5021000000000000 # 548
+ 0.3229000000000001 0.3229000000000001 0.7416000000000001 # 549
+ 0.4483000000000000 0.4483000000000000 0.6460000000000000 # 550
+ 0.3333000000000000 0.2166000000000000 0.6403000000000000 # 551
+ 0.3322000000000000 0.3322000000000000 0.0145999999999999 # 552
+ 0.4473000000000000 0.4473000000000000 0.9142000000000000 # 553
+ 0.3346000000000000 0.2192000000000000 0.9133000000000000 # 554
+ 0.6616000000000000 0.6616000000000000 0.2897000000000000 # 555
+ 0.5525000000000000 0.5525000000000000 0.3971000000000000 # 556
+ 0.7769000000000001 0.6644000000000000 0.3934000000000001 # 557
+ 0.6642000000000000 0.6642000000000000 0.0167000000000000 # 558
+ 0.5538999999999999 0.5538999999999999 0.1203000000000000 # 559
+ 0.7781000000000000 0.6657999999999999 0.1204000000000000 # 560
+ 0.3333333333333333 0.6666666666666666 0.3301000000000000 # 561
+ 0.2201000000000000 0.6683000000000000 0.2318000000000000 # 562
+ 0.3333333333333333 0.6666666666666666 0.8717000000000000 # 563
+ 0.2158000000000000 0.5502000000000000 0.7701000000000000 # 564
+ 0.3333333333333333 0.6666666666666666 0.6042999999999999 # 565
+ 0.2209000000000000 0.6720000000000002 0.5021000000000000 # 566
+ 0.1167000000000000 0.7834000000000000 0.6403000000000000 # 567
+ 0.1154000000000000 0.7808000000000002 0.9133000000000000 # 568
+ 0.1125000000000000 0.3356000000000000 0.3934000000000001 # 569
+ 0.1123000000000000 0.3342000000000000 0.1204000000000000 # 570
+ 0.4482000000000000 0.7799000000000001 0.2318000000000000 # 571
+ 0.3344000000000000 0.7842000000000000 0.7701000000000000 # 572
+ 0.4511000000000000 0.7791000000000000 0.5021000000000000 # 573
+ 0.6667000000000000 0.8833000000000000 0.6403000000000000 # 574
+ 0.6654000000000000 0.8846000000000002 0.9133000000000000 # 575
+ 0.2231000000000000 0.8875000000000000 0.3934000000000001 # 576
+ 0.2219000000000000 0.8876999999999999 0.1204000000000000 # 577
+ 0.3317000000000000 0.5518000000000000 0.2318000000000000 # 578
+ 0.4498000000000000 0.6656000000000000 0.7701000000000000 # 579
+ 0.3280000000000000 0.5489000000000002 0.5021000000000000 # 580
+ 0.2166000000000000 0.3333000000000000 0.6403000000000000 # 581
+ 0.2192000000000000 0.3346000000000000 0.9133000000000000 # 582
+ 0.6644000000000000 0.7769000000000001 0.3934000000000001 # 583
+ 0.6657999999999999 0.7781000000000000 0.1204000000000000 # 584
diff --git a/test/data/trigonal/POSCAR-157-2 b/test/data/trigonal/POSCAR-157-2
new file mode 100644
index 0000000..8dbb409
--- /dev/null
+++ b/test/data/trigonal/POSCAR-157-2
@@ -0,0 +1,27 @@
+POSCAR generated by cell class
+1.0
+ 8.7529958813478768 0.0000000000000000 0.0000000000000000
+ -4.3764979406739366 7.5803167924678236 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 3.9659981338313401
+ 3 3 12 2
+Direct
+ 0.5964000000000002 0.0000000000000000 0.4989000000000000 # 11
+ 0.0000000000000000 0.5964000000000002 0.4989000000000000 # 12
+ 0.4036000000000000 0.4036000000000000 0.4989000000000000 # 13
+ 0.2463000000000000 0.0000000000000000 0.0000000000000000 # 21
+ 0.0000000000000000 0.2463000000000000 0.0000000000000000 # 22
+ 0.7537000000000001 0.7537000000000001 0.0000000000000000 # 23
+ 0.8179000000000000 0.0000000000000000 0.9930000000000000 # 31
+ 0.2606000000000000 0.0000000000000000 0.4930000000000000 # 32
+ 0.5030000000000000 0.1854000000000000 0.9840000000000000 # 33
+ 0.0000000000000000 0.8179000000000000 0.9930000000000000 # 34
+ 0.0000000000000000 0.2606000000000000 0.4930000000000000 # 35
+ 0.8146000000000000 0.3176000000000000 0.9840000000000000 # 36
+ 0.1821000000000000 0.1821000000000000 0.9930000000000000 # 37
+ 0.7393999999999999 0.7393999999999999 0.4930000000000000 # 38
+ 0.6824000000000000 0.4970000000000000 0.9840000000000000 # 39
+ 0.1854000000000000 0.5030000000000000 0.9840000000000000 # 310
+ 0.3176000000000000 0.8146000000000000 0.9840000000000000 # 311
+ 0.4970000000000000 0.6824000000000000 0.9840000000000000 # 312
+ 0.3333333333333333 0.6666666666666666 0.9820000000000000 # 41
+ 0.6666666666666666 0.3333333333333333 0.9820000000000000 # 42
diff --git a/test/data/trigonal/POSCAR-158 b/test/data/trigonal/POSCAR-158
new file mode 100644
index 0000000..588e5c5
--- /dev/null
+++ b/test/data/trigonal/POSCAR-158
@@ -0,0 +1,15 @@
+$cell vectors
+1.0
+ 6.1199971202843608 0.0000000000000000 0.0000000000000000
+ -3.0599985601421777 5.3000729772538655 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.6579973376746597
+ 2 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ru1
+ 0.0000000000000000 0.0000000000000000 0.4999999999999996 # Ru2
+ 0.3180000000000004 0.0270000000000001 0.2369999999999997 # Cl1
+ 0.9729999999999999 0.2909999999999996 0.2369999999999997 # Cl2
+ 0.7090000000000002 0.6820000000000005 0.2369999999999997 # Cl3
+ 0.7089999999999997 0.0270000000000001 0.7370000000000002 # Cl4
+ 0.3179999999999997 0.2909999999999996 0.7370000000000002 # Cl5
+ 0.9730000000000005 0.6820000000000005 0.7370000000000002 # Cl6
diff --git a/test/data/trigonal/POSCAR-158-2 b/test/data/trigonal/POSCAR-158-2
new file mode 100644
index 0000000..b598e5f
--- /dev/null
+++ b/test/data/trigonal/POSCAR-158-2
@@ -0,0 +1,91 @@
+POSCAR generated by cell class
+1.0
+ 12.8739939422452405 0.0000000000000000 0.0000000000000000
+ -6.4369969711226176 11.1492058021513518 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.2389956526645793
+ 24 24 36
+Direct
+ 0.3333333333333333 0.6666666666666666 0.6203000000000000 # 11
+ 0.2405000000000000 0.5407000000000000 0.4045000000000001 # 12
+ 0.6666666666666666 0.3333333333333333 0.1905000000000001 # 13
+ 0.6433000000000000 0.4321000000000000 0.9700000000000000 # 14
+ 0.0000000000000000 0.0000000000000000 0.7640000000000000 # 15
+ 0.1273000000000000 0.0466000000000000 0.9840000000000000 # 16
+ 0.4593000000000000 0.6998000000000000 0.4045000000000001 # 17
+ 0.5679000000000000 0.2112000000000000 0.9700000000000000 # 18
+ 0.9534000000000000 0.0807000000000000 0.9840000000000000 # 19
+ 0.3002000000000001 0.7595000000000000 0.4045000000000001 # 110
+ 0.7887999999999999 0.3567000000000000 0.9700000000000000 # 111
+ 0.9193000000000000 0.8727000000000000 0.9840000000000000 # 112
+ 0.3333333333333333 0.6666666666666666 0.1202999999999999 # 113
+ 0.3002000000000001 0.5407000000000000 0.9045000000000002 # 114
+ 0.6666666666666666 0.3333333333333333 0.6905000000000000 # 115
+ 0.7887999999999999 0.4321000000000000 0.4700000000000000 # 116
+ 0.0000000000000000 0.0000000000000000 0.2640000000000000 # 117
+ 0.9193000000000000 0.0466000000000000 0.4840000000000000 # 118
+ 0.2405000000000000 0.6998000000000000 0.9045000000000002 # 119
+ 0.6433000000000000 0.2112000000000000 0.4700000000000000 # 120
+ 0.1273000000000000 0.0807000000000000 0.4840000000000000 # 121
+ 0.4593000000000000 0.7595000000000000 0.9045000000000002 # 122
+ 0.5679000000000000 0.3567000000000000 0.4700000000000000 # 123
+ 0.9534000000000000 0.8727000000000000 0.4840000000000000 # 124
+ 0.3333333333333333 0.6666666666666666 0.4667000000000000 # 21
+ 0.2366000000000000 0.4451000000000000 0.2848000000000001 # 22
+ 0.6666666666666666 0.3333333333333333 0.0300000000000000 # 23
+ 0.5506000000000000 0.4373000000000001 0.8510000000000000 # 24
+ 0.0000000000000000 0.0000000000000000 0.9229999999999999 # 25
+ 0.2149000000000000 0.1534000000000000 0.1000000000000000 # 26
+ 0.5548999999999999 0.7915000000000000 0.2848000000000001 # 27
+ 0.5627000000000000 0.1133000000000000 0.8510000000000000 # 28
+ 0.8466000000000000 0.0615000000000000 0.1000000000000000 # 29
+ 0.2085000000000000 0.7634000000000000 0.2848000000000001 # 210
+ 0.8867000000000002 0.4494000000000001 0.8510000000000000 # 211
+ 0.9385000000000000 0.7851000000000000 0.1000000000000000 # 212
+ 0.3333333333333333 0.6666666666666666 0.9667000000000000 # 213
+ 0.2085000000000000 0.4451000000000000 0.7847999999999999 # 214
+ 0.6666666666666666 0.3333333333333333 0.5300000000000000 # 215
+ 0.8867000000000002 0.4373000000000001 0.3510000000000000 # 216
+ 0.0000000000000000 0.0000000000000000 0.4230000000000000 # 217
+ 0.9385000000000000 0.1534000000000000 0.6000000000000000 # 218
+ 0.2366000000000000 0.7915000000000000 0.7847999999999999 # 219
+ 0.5506000000000000 0.1133000000000000 0.3510000000000000 # 220
+ 0.2149000000000000 0.0615000000000000 0.6000000000000000 # 221
+ 0.5548999999999999 0.7634000000000000 0.7847999999999999 # 222
+ 0.5627000000000000 0.4494000000000001 0.3510000000000000 # 223
+ 0.8466000000000000 0.7851000000000000 0.6000000000000000 # 224
+ 0.1224000000000000 0.4318000000000001 0.2000000000000000 # 31
+ 0.1677000000000000 0.3346000000000000 0.3896000000000000 # 32
+ 0.6468000000000002 0.5476000000000000 0.7690000000000000 # 33
+ 0.5094000000000000 0.5074000000000000 0.9560000000000000 # 34
+ 0.2542000000000000 0.0738000000000000 0.1840000000000001 # 35
+ 0.3295000000000000 0.2160000000000000 0.0003000000000000 # 36
+ 0.5682000000000001 0.6906000000000000 0.2000000000000000 # 37
+ 0.6654000000000000 0.8331000000000000 0.3896000000000000 # 38
+ 0.4524000000000000 0.0992000000000000 0.7690000000000000 # 39
+ 0.4926000000000000 0.0020000000000000 0.9560000000000000 # 310
+ 0.9262000000000000 0.1804000000000000 0.1840000000000001 # 311
+ 0.7840000000000000 0.1135000000000000 0.0003000000000000 # 312
+ 0.3094000000000000 0.8776000000000002 0.2000000000000000 # 313
+ 0.1669000000000000 0.8323000000000002 0.3896000000000000 # 314
+ 0.9007999999999999 0.3532000000000000 0.7690000000000000 # 315
+ 0.9980000000000000 0.4906000000000000 0.9560000000000000 # 316
+ 0.8196000000000000 0.7458000000000000 0.1840000000000001 # 317
+ 0.8865000000000000 0.6705000000000000 0.0003000000000000 # 318
+ 0.3094000000000000 0.4318000000000001 0.7000000000000000 # 319
+ 0.1669000000000000 0.3346000000000000 0.8895999999999999 # 320
+ 0.9007999999999999 0.5476000000000000 0.2690000000000000 # 321
+ 0.9980000000000000 0.5074000000000000 0.4560000000000000 # 322
+ 0.8196000000000000 0.0738000000000000 0.6839999999999999 # 323
+ 0.8865000000000000 0.2160000000000000 0.5003000000000000 # 324
+ 0.1224000000000000 0.6906000000000000 0.7000000000000000 # 325
+ 0.1677000000000000 0.8331000000000000 0.8895999999999999 # 326
+ 0.6468000000000002 0.0992000000000000 0.2690000000000000 # 327
+ 0.5094000000000000 0.0020000000000000 0.4560000000000000 # 328
+ 0.2542000000000000 0.1804000000000000 0.6839999999999999 # 329
+ 0.3295000000000000 0.1135000000000000 0.5003000000000000 # 330
+ 0.5682000000000001 0.8776000000000002 0.7000000000000000 # 331
+ 0.6654000000000000 0.8323000000000002 0.8895999999999999 # 332
+ 0.4524000000000000 0.3532000000000000 0.2690000000000000 # 333
+ 0.4926000000000000 0.4906000000000000 0.4560000000000000 # 334
+ 0.9262000000000000 0.7458000000000000 0.6839999999999999 # 335
+ 0.7840000000000000 0.6705000000000000 0.5003000000000000 # 336
diff --git a/test/data/trigonal/POSCAR-159 b/test/data/trigonal/POSCAR-159
new file mode 100644
index 0000000..94255a1
--- /dev/null
+++ b/test/data/trigonal/POSCAR-159
@@ -0,0 +1,87 @@
+POSCAR generated by cell class
+1.0
+ 10.1999952004739374 0.0000000000000000 0.0000000000000000
+ -5.0999976002369660 8.8334549620897782 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 30.3509857185867098
+ 16 64
+Direct
+ 0.3585000000000000 0.4308000000000001 0.1052000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.2213000000000000 # 12
+ 0.0447000000000000 0.2705000000000000 0.4167000000000000 # 13
+ 0.0000000000000000 0.0000000000000000 0.2944000000000000 # 14
+ 0.5692000000000002 0.9277000000000000 0.1052000000000000 # 15
+ 0.7295000000000001 0.7742000000000000 0.4167000000000000 # 16
+ 0.0723000000000000 0.6415000000000000 0.1052000000000000 # 17
+ 0.2258000000000000 0.9552999999999999 0.4167000000000000 # 18
+ 0.4308000000000001 0.3585000000000000 0.6052000000000000 # 19
+ 0.6666666666666666 0.3333333333333333 0.7213000000000002 # 110
+ 0.2705000000000000 0.0447000000000000 0.9167000000000000 # 111
+ 0.0000000000000000 0.0000000000000000 0.7944000000000000 # 112
+ 0.9277000000000000 0.5692000000000002 0.6052000000000000 # 113
+ 0.7742000000000000 0.7295000000000001 0.9167000000000000 # 114
+ 0.6415000000000000 0.0723000000000000 0.6052000000000000 # 115
+ 0.9552999999999999 0.2258000000000000 0.9167000000000000 # 116
+ 0.5734000000000000 0.4821000000000000 0.0584000000000000 # 21
+ 0.1797000000000000 0.2416000000000000 0.0589000000000000 # 22
+ 0.3796000000000000 0.2650000000000000 0.1526999999999999 # 23
+ 0.1296000000000000 0.4292000000000001 0.1606000000000000 # 24
+ 0.3879000000000001 0.4999000000000000 0.2617000000000000 # 25
+ 0.2519000000000000 0.4172000000000000 0.4621000000000000 # 26
+ 0.8580000000000002 0.2885000000000001 0.4579000000000000 # 27
+ 0.0925000000000000 0.4558000000000000 0.3633000000000000 # 28
+ 0.7980000000000002 0.0328000000000000 0.3600000000000000 # 29
+ 0.9910000000000000 0.1884999999999999 0.2531000000000000 # 210
+ 0.0000000000000000 0.0000000000000000 0.4696000000000000 # 211
+ 0.3333333333333333 0.6666666666666666 0.0500000000000000 # 212
+ 0.5179000000000000 0.0913000000000000 0.0584000000000000 # 213
+ 0.7584000000000000 0.9380999999999999 0.0589000000000000 # 214
+ 0.7350000000000000 0.1146000000000000 0.1526999999999999 # 215
+ 0.5708000000000000 0.7004000000000000 0.1606000000000000 # 216
+ 0.5001000000000000 0.8880000000000000 0.2617000000000000 # 217
+ 0.5828000000000000 0.8347000000000000 0.4621000000000000 # 218
+ 0.7115000000000000 0.5695000000000000 0.4579000000000000 # 219
+ 0.5442000000000000 0.6367000000000002 0.3633000000000000 # 220
+ 0.9671999999999999 0.7652000000000000 0.3600000000000000 # 221
+ 0.8115000000000000 0.8025000000000002 0.2531000000000000 # 222
+ 0.9087000000000000 0.4266000000000000 0.0584000000000000 # 223
+ 0.0619000000000001 0.8203000000000000 0.0589000000000000 # 224
+ 0.8854000000000000 0.6204000000000000 0.1526999999999999 # 225
+ 0.2996000000000000 0.8704000000000000 0.1606000000000000 # 226
+ 0.1120000000000000 0.6121000000000000 0.2617000000000000 # 227
+ 0.1653000000000000 0.7481000000000000 0.4621000000000000 # 228
+ 0.4305000000000000 0.1419999999999999 0.4579000000000000 # 229
+ 0.3633000000000000 0.9075000000000000 0.3633000000000000 # 230
+ 0.2348000000000000 0.2020000000000000 0.3600000000000000 # 231
+ 0.1974999999999999 0.0089999999999999 0.2531000000000000 # 232
+ 0.4821000000000000 0.5734000000000000 0.5584000000000000 # 233
+ 0.2416000000000000 0.1797000000000000 0.5589000000000000 # 234
+ 0.2650000000000000 0.3796000000000000 0.6527000000000002 # 235
+ 0.4292000000000001 0.1296000000000000 0.6606000000000000 # 236
+ 0.4999000000000000 0.3879000000000001 0.7617000000000002 # 237
+ 0.4172000000000000 0.2519000000000000 0.9621000000000000 # 238
+ 0.2885000000000001 0.8580000000000002 0.9579000000000000 # 239
+ 0.4558000000000000 0.0925000000000000 0.8633000000000000 # 240
+ 0.0328000000000000 0.7980000000000002 0.8600000000000000 # 241
+ 0.1884999999999999 0.9910000000000000 0.7531000000000000 # 242
+ 0.0000000000000000 0.0000000000000000 0.9696000000000000 # 243
+ 0.6666666666666666 0.3333333333333333 0.5500000000000002 # 244
+ 0.0913000000000000 0.5179000000000000 0.5584000000000000 # 245
+ 0.9380999999999999 0.7584000000000000 0.5589000000000000 # 246
+ 0.1146000000000000 0.7350000000000000 0.6527000000000002 # 247
+ 0.7004000000000000 0.5708000000000000 0.6606000000000000 # 248
+ 0.8880000000000000 0.5001000000000000 0.7617000000000002 # 249
+ 0.8347000000000000 0.5828000000000000 0.9621000000000000 # 250
+ 0.5695000000000000 0.7115000000000000 0.9579000000000000 # 251
+ 0.6367000000000002 0.5442000000000000 0.8633000000000000 # 252
+ 0.7652000000000000 0.9671999999999999 0.8600000000000000 # 253
+ 0.8025000000000002 0.8115000000000000 0.7531000000000000 # 254
+ 0.4266000000000000 0.9087000000000000 0.5584000000000000 # 255
+ 0.8203000000000000 0.0619000000000001 0.5589000000000000 # 256
+ 0.6204000000000000 0.8854000000000000 0.6527000000000002 # 257
+ 0.8704000000000000 0.2996000000000000 0.6606000000000000 # 258
+ 0.6121000000000000 0.1120000000000000 0.7617000000000002 # 259
+ 0.7481000000000000 0.1653000000000000 0.9621000000000000 # 260
+ 0.1419999999999999 0.4305000000000000 0.9579000000000000 # 261
+ 0.9075000000000000 0.3633000000000000 0.8633000000000000 # 262
+ 0.2020000000000000 0.2348000000000000 0.8600000000000000 # 263
+ 0.0089999999999999 0.1974999999999999 0.7531000000000000 # 264
diff --git a/test/data/trigonal/POSCAR-159-2 b/test/data/trigonal/POSCAR-159-2
new file mode 100644
index 0000000..ced85e4
--- /dev/null
+++ b/test/data/trigonal/POSCAR-159-2
@@ -0,0 +1,43 @@
+$cell vectors
+1.0
+ 10.5629950296672739 0.0000000000000000 0.0000000000000000
+ -5.2814975148336343 9.1478220357406155 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3679974741317729
+ 6 6 18 6
+Direct
+ 0.5453000000000002 0.6225000000000003 0.0000000000000000 # Ag1
+ 0.3775000000000001 0.9228000000000002 0.0000000000000000 # Ag2
+ 0.0772000000000004 0.4547000000000001 0.0000000000000000 # Ag3
+ 0.6225000000000001 0.5452999999999999 0.4999999999999999 # Ag4
+ 0.9228000000000002 0.3775000000000003 0.4999999999999999 # Ag5
+ 0.4546999999999998 0.0771999999999997 0.4999999999999999 # Ag6
+ 0.7071999999999998 0.2072000000000001 0.9860000000000002 # S1
+ 0.7928000000000001 0.5000000000000000 0.9860000000000002 # S2
+ 0.4999999999999997 0.2927999999999998 0.9860000000000002 # S3
+ 0.2072000000000000 0.7072000000000002 0.4860000000000003 # S4
+ 0.5000000000000000 0.7928000000000005 0.4860000000000003 # S5
+ 0.2927999999999997 0.5000000000000000 0.4860000000000003 # S6
+ 0.7074999999999997 0.1988999999999998 0.2554000000000000 # O1
+ 0.7393999999999999 0.1108000000000000 0.8499999999999998 # O2
+ 0.8496000000000000 0.7910000000000003 0.4518999999999998 # O3
+ 0.8011000000000003 0.5086000000000003 0.2554000000000000 # O4
+ 0.8891999999999998 0.6285999999999998 0.8499999999999998 # O5
+ 0.2089999999999997 0.0585999999999998 0.4518999999999998 # O6
+ 0.4914000000000001 0.2924999999999999 0.2554000000000000 # O7
+ 0.3714000000000002 0.2606000000000002 0.8499999999999998 # O8
+ 0.9413999999999998 0.1504000000000001 0.4518999999999998 # O9
+ 0.1988999999999997 0.7075000000000001 0.7554000000000001 # O10
+ 0.1108000000000002 0.7393999999999998 0.3499999999999999 # O11
+ 0.7910000000000001 0.8496000000000006 0.9518999999999997 # O12
+ 0.5085999999999999 0.8011000000000001 0.7554000000000001 # O13
+ 0.6286000000000002 0.8892000000000005 0.3499999999999999 # O14
+ 0.0586000000000002 0.2089999999999999 0.9518999999999997 # O15
+ 0.2925000000000001 0.4914000000000004 0.7554000000000001 # O16
+ 0.2605999999999999 0.3714000000000002 0.3499999999999999 # O17
+ 0.1503999999999999 0.9414000000000001 0.9518999999999997 # O18
+ 0.5472999999999999 0.1752000000000000 0.8909999999999999 # N1
+ 0.8247999999999998 0.3720999999999999 0.8909999999999999 # N2
+ 0.6279000000000002 0.4527000000000002 0.8909999999999999 # N3
+ 0.1751999999999998 0.5472999999999999 0.3910000000000001 # N4
+ 0.3720999999999999 0.8248000000000000 0.3910000000000001 # N5
+ 0.4527000000000001 0.6279000000000001 0.3910000000000001 # N6
diff --git a/test/data/trigonal/POSCAR-160 b/test/data/trigonal/POSCAR-160
new file mode 100644
index 0000000..ed5ac52
--- /dev/null
+++ b/test/data/trigonal/POSCAR-160
@@ -0,0 +1,33 @@
+$cell vectors
+1.0
+ 7.8050963273744252 0.0000000000000000 0.0000000000000000
+ -2.5690227480952075 7.3701866190323218 0.0000000000000000
+ -2.5690227480952075 -3.6161021794898791 6.4221068059361670
+ 10 16
+Direct
+ 0.1940000000000002 0.1940000000000002 0.1940000000000003 # Cr1
+ 0.0029999999999999 0.0030000000000001 0.7939999999999998 # Cr2
+ 0.9979999999999991 0.9979999999999998 0.3399999999999996 # Cr3
+ 0.3549999999999998 0.3550000000000002 0.0059999999999999 # Cr4
+ 0.7940000000000003 0.0029999999999999 0.0030000000000004 # Cr5
+ 0.3399999999999996 0.9979999999999993 0.9979999999999993 # Cr6
+ 0.0060000000000002 0.3549999999999999 0.3549999999999998 # Cr7
+ 0.0030000000000001 0.7940000000000000 0.0030000000000004 # Cr8
+ 0.9979999999999991 0.3400000000000000 0.9979999999999993 # Cr9
+ 0.3549999999999997 0.0059999999999999 0.3549999999999998 # Cr10
+ 0.6719999999999994 0.6719999999999995 0.6719999999999994 # Al1
+ 0.6539999999999994 0.6539999999999996 0.9879999999999993 # Al2
+ 0.3489999999999996 0.3490000000000001 0.5819999999999999 # Al3
+ 0.7220000000000001 0.7220000000000001 0.3560000000000003 # Al4
+ 0.0329999999999998 0.2880000000000002 0.6610000000000000 # Al5
+ 0.9879999999999997 0.6539999999999997 0.6539999999999997 # Al6
+ 0.5819999999999994 0.3489999999999998 0.3489999999999999 # Al7
+ 0.3559999999999994 0.7219999999999994 0.7219999999999994 # Al8
+ 0.6609999999999993 0.0329999999999995 0.2879999999999996 # Al9
+ 0.6539999999999994 0.9879999999999992 0.6539999999999997 # Al10
+ 0.3489999999999994 0.5819999999999997 0.3489999999999999 # Al11
+ 0.7219999999999995 0.3559999999999995 0.7219999999999994 # Al12
+ 0.2880000000000000 0.6610000000000000 0.0329999999999999 # Al13
+ 0.2880000000000001 0.0330000000000003 0.6610000000000000 # Al14
+ 0.0329999999999994 0.6609999999999996 0.2879999999999996 # Al15
+ 0.6609999999999995 0.2880000000000000 0.0329999999999999 # Al16
diff --git a/test/data/trigonal/POSCAR-160-2 b/test/data/trigonal/POSCAR-160-2
new file mode 100644
index 0000000..92c9227
--- /dev/null
+++ b/test/data/trigonal/POSCAR-160-2
@@ -0,0 +1,22 @@
+$cell vectors
+1.0
+ 5.4869974181373005 0.0000000000000000 0.0000000000000000
+ -2.7434987090686476 4.7518791546065291 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.1559956917195429
+ 3 3 9
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # K1
+ 0.6666666666666673 0.3333333333333337 0.3333333333333331 # K2
+ 0.3333333333333329 0.6666666666666663 0.6666666666666669 # K3
+ 0.0000000000000000 0.0000000000000000 0.4050000000000000 # N1
+ 0.6666666666666673 0.3333333333333337 0.7383333333333336 # N2
+ 0.3333333333333329 0.6666666666666663 0.0716666666666668 # N3
+ 0.1310000000000004 -0.1310000000000001 0.4339999999999999 # O1
+ 0.7976666666666676 0.2023333333333336 0.7673333333333336 # O2
+ 0.4643333333333338 0.5356666666666674 0.1006666666666668 # O3
+ 0.1310000000000000 0.2620000000000003 0.4339999999999999 # O4
+ 0.7976666666666667 0.5953333333333329 0.7673333333333336 # O5
+ 0.4643333333333329 0.9286666666666666 0.1006666666666668 # O6
+ -0.2620000000000005 -0.1310000000000001 0.4339999999999999 # O7
+ 0.4046666666666668 0.2023333333333336 0.7673333333333336 # O8
+ 0.0713333333333330 0.5356666666666674 0.1006666666666668 # O9
diff --git a/test/data/trigonal/POSCAR-161 b/test/data/trigonal/POSCAR-161
new file mode 100644
index 0000000..b07f7cb
--- /dev/null
+++ b/test/data/trigonal/POSCAR-161
@@ -0,0 +1,277 @@
+$cell vectors
+1.0
+ 10.4379950884849926 0.0000000000000000 0.0000000000000000
+ -5.2189975442424963 9.0395689112052064 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 37.1499825193732036
+ 6 54 42 168
+Direct
+ 0.0000000000000000 0.0000000000000000 1.0000000000000000 # Mn1
+ 0.6666666666666670 0.3333333333333331 0.3333333333333334 # Mn2
+ 0.3333333333333339 0.6666666666666669 0.6666666666666669 # Mn3
+ 1.0000000000000004 0.0000000000000000 0.5000000000000000 # Mn4
+ 0.6666666666666670 0.3333333333333331 0.8333333333333333 # Mn5
+ 0.3333333333333334 0.6666666666666669 0.1666666666666667 # Mn6
+ 0.2954000000000001 0.1584999999999998 0.6720999999999999 # Ca1
+ 0.2813000000000004 0.1464000000000001 0.5657000000000001 # Ca2
+ 0.3874000000000004 0.1798000000000000 0.7677999999999998 # Ca3
+ 0.9620666666666668 0.4918333333333335 0.0054333333333335 # Ca4
+ 0.9479666666666670 0.4797333333333332 0.8990333333333335 # Ca5
+ 0.0540666666666669 0.5131333333333331 0.1011333333333333 # Ca6
+ 0.6287333333333335 0.8251666666666667 0.3387666666666667 # Ca7
+ 0.6146333333333338 0.8130666666666669 0.2323666666666666 # Ca8
+ 0.7207333333333338 0.8464666666666668 0.4344666666666667 # Ca9
+ 0.8415000000000001 0.1369000000000001 0.6720999999999999 # Ca10
+ 0.8536000000000002 0.1348999999999999 0.5657000000000001 # Ca11
+ 0.8202000000000003 0.2075999999999998 0.7677999999999998 # Ca12
+ 0.5081666666666668 0.4702333333333331 0.0054333333333335 # Ca13
+ 0.5202666666666671 0.4682333333333336 0.8990333333333335 # Ca14
+ 0.4868666666666671 0.5409333333333335 0.1011333333333333 # Ca15
+ 0.1748333333333334 0.8035666666666663 0.3387666666666667 # Ca16
+ 0.1869333333333337 0.8015666666666666 0.2323666666666666 # Ca17
+ 0.1535333333333337 0.8742666666666666 0.4344666666666667 # Ca18
+ 0.8631000000000001 0.7045999999999999 0.6720999999999999 # Ca19
+ 0.8651000000000002 0.7187000000000000 0.5657000000000001 # Ca20
+ 0.7924000000000004 0.6126000000000000 0.7677999999999998 # Ca21
+ 0.5297666666666667 0.0379333333333332 0.0054333333333335 # Ca22
+ 0.5317666666666668 0.0520333333333332 0.8990333333333335 # Ca23
+ 0.4590666666666668 0.9459333333333330 0.1011333333333333 # Ca24
+ 0.1964333333333333 0.3712666666666663 0.3387666666666667 # Ca25
+ 0.1984333333333338 0.3853666666666669 0.2323666666666666 # Ca26
+ 0.1257333333333338 0.2792666666666670 0.4344666666666667 # Ca27
+ 0.8631000000000001 0.1584999999999998 0.1720999999999999 # Ca28
+ 0.8651000000000001 0.1464000000000001 0.0657000000000001 # Ca29
+ 0.7924000000000001 0.1798000000000000 0.2678000000000000 # Ca30
+ 0.5297666666666671 0.4918333333333335 0.5054333333333332 # Ca31
+ 0.5317666666666667 0.4797333333333332 0.3990333333333334 # Ca32
+ 0.4590666666666667 0.5131333333333331 0.6011333333333334 # Ca33
+ 0.1964333333333337 0.8251666666666667 0.8387666666666667 # Ca34
+ 0.1984333333333337 0.8130666666666669 0.7323666666666667 # Ca35
+ 0.1257333333333336 0.8464666666666668 0.9344666666666664 # Ca36
+ 0.2954000000000003 0.1369000000000001 0.1720999999999999 # Ca37
+ 0.2813000000000001 0.1348999999999999 0.0657000000000001 # Ca38
+ 0.3874000000000001 0.2075999999999998 0.2678000000000000 # Ca39
+ 0.9620666666666668 0.4702333333333331 0.5054333333333332 # Ca40
+ 0.9479666666666671 0.4682333333333336 0.3990333333333334 # Ca41
+ 0.0540666666666669 0.5409333333333335 0.6011333333333334 # Ca42
+ 0.6287333333333335 0.8035666666666663 0.8387666666666667 # Ca43
+ 0.6146333333333340 0.8015666666666666 0.7323666666666667 # Ca44
+ 0.7207333333333340 0.8742666666666666 0.9344666666666664 # Ca45
+ 0.8415000000000002 0.7045999999999999 0.1720999999999999 # Ca46
+ 0.8536000000000002 0.7187000000000000 0.0657000000000001 # Ca47
+ 0.8202000000000002 0.6126000000000000 0.2678000000000000 # Ca48
+ 0.5081666666666669 0.0379333333333332 0.5054333333333332 # Ca49
+ 0.5202666666666669 0.0520333333333332 0.3990333333333334 # Ca50
+ 0.4868666666666667 0.9459333333333330 0.6011333333333334 # Ca51
+ 0.1748333333333335 0.3712666666666663 0.8387666666666667 # Ca52
+ 0.1869333333333337 0.3853666666666669 0.7323666666666667 # Ca53
+ 0.1535333333333337 0.2792666666666670 0.9344666666666664 # Ca54
+ 0.0000000000000000 0.0000000000000000 0.7542000000000000 # P1
+ 0.3166000000000003 0.1431000000000003 0.8649000000000000 # P2
+ 0.3524000000000000 0.1589999999999998 0.9672999999999998 # P3
+ 0.6666666666666665 0.3333333333333331 0.0875333333333332 # P4
+ -0.0167333333333332 0.4764333333333333 0.1982333333333333 # P5
+ 1.0190666666666670 0.4923333333333330 0.3006333333333334 # P6
+ 0.3333333333333334 0.6666666666666669 0.4208666666666667 # P7
+ 0.6499333333333336 -0.1902333333333334 0.5315666666666667 # P8
+ 0.6857333333333340 0.8256666666666667 0.6339666666666670 # P9
+ 0.8569000000000001 0.1734999999999998 0.8649000000000000 # P10
+ -0.1589999999999998 0.1933999999999999 0.9672999999999998 # P11
+ 0.5235666666666672 0.5068333333333336 0.1982333333333333 # P12
+ 0.5076666666666667 0.5267333333333329 0.3006333333333334 # P13
+ 1.1902333333333339 -0.1598333333333333 0.5315666666666667 # P14
+ 0.1743333333333336 0.8600666666666666 0.6339666666666670 # P15
+ 0.8265000000000002 0.6833999999999998 0.8649000000000000 # P16
+ -0.1933999999999997 -0.3523999999999997 0.9672999999999998 # P17
+ 0.4931666666666672 1.0167333333333335 0.1982333333333333 # P18
+ 0.4732666666666668 -0.0190666666666666 0.3006333333333334 # P19
+ 1.1598333333333337 0.3500666666666667 0.5315666666666667 # P20
+ 0.1399333333333334 0.3142666666666665 0.6339666666666670 # P21
+ 0.0000000000000000 0.0000000000000000 0.2542000000000000 # P22
+ 0.8265000000000003 0.1431000000000003 0.3649000000000001 # P23
+ 0.8066000000000003 0.1589999999999998 0.4673000000000000 # P24
+ 0.6666666666666670 0.3333333333333331 0.5875333333333332 # P25
+ 0.4931666666666669 0.4764333333333333 0.6982333333333335 # P26
+ 0.4732666666666668 0.4923333333333330 0.8006333333333332 # P27
+ 0.3333333333333339 0.6666666666666669 0.9208666666666665 # P28
+ 0.1598333333333336 -0.1902333333333334 1.0315666666666667 # P29
+ 0.1399333333333337 0.8256666666666667 0.1339666666666670 # P30
+ 0.3166000000000001 0.1734999999999998 0.3649000000000001 # P31
+ 1.3524000000000005 0.1933999999999999 0.4673000000000000 # P32
+ -0.0167333333333330 0.5068333333333336 0.6982333333333335 # P33
+ 1.0190666666666672 0.5267333333333329 0.8006333333333332 # P34
+ -0.3500666666666664 -0.1598333333333333 1.0315666666666667 # P35
+ 0.6857333333333335 0.8600666666666666 0.1339666666666670 # P36
+ 0.8569000000000004 0.6833999999999998 0.3649000000000001 # P37
+ 0.8410000000000004 -0.3523999999999997 0.4673000000000000 # P38
+ 0.5235666666666673 1.0167333333333335 0.6982333333333335 # P39
+ 0.5076666666666670 -0.0190666666666666 0.8006333333333332 # P40
+ 0.1902333333333334 0.3500666666666667 1.0315666666666667 # P41
+ 0.1743333333333331 0.3142666666666665 0.1339666666666670 # P42
+ 0.2798000000000000 0.0954999999999998 0.8258999999999999 # O1
+ 0.2449000000000000 0.2317999999999998 0.8783000000000001 # O2
+ 0.2708000000000000 0.0006000000000001 0.8868000000000001 # O3
+ 0.4868000000000000 0.2414999999999999 0.8711000000000001 # O4
+ 0.4017000000000003 0.1953000000000001 1.0074999999999998 # O5
+ 0.4020000000000003 0.0511999999999997 0.9541999999999998 # O6
+ 0.4174000000000004 0.3063000000000000 0.9472999999999999 # O7
+ 0.1817000000000003 0.0801999999999997 0.9628999999999999 # O8
+ 0.0000000000000000 0.0000000000000000 0.7971999999999999 # O9
+ -0.0179999999999999 0.1302999999999999 0.7424999999999998 # O10
+ -0.0535333333333331 0.4288333333333335 0.1592333333333333 # O11
+ -0.0884333333333334 0.5651333333333329 0.2116333333333334 # O12
+ -0.0625333333333334 0.3339333333333332 0.2201333333333333 # O13
+ 0.1534666666666669 0.5748333333333336 0.2044333333333332 # O14
+ 1.0683666666666667 0.5286333333333332 0.3408333333333333 # O15
+ 1.0686666666666671 0.3845333333333334 0.2875333333333334 # O16
+ 1.0840666666666670 0.6396333333333333 0.2806333333333332 # O17
+ 0.8483666666666672 0.4135333333333334 0.2962333333333334 # O18
+ 0.6666666666666665 0.3333333333333331 0.1305333333333334 # O19
+ 0.6486666666666665 0.4636333333333330 0.0758333333333334 # O20
+ 0.6131333333333335 -0.2378333333333333 0.4925666666666667 # O21
+ 0.5782333333333336 -0.1015333333333333 0.5449666666666666 # O22
+ 0.6041333333333334 -0.3327333333333330 0.5534666666666668 # O23
+ 0.8201333333333339 -0.0918333333333333 0.5377666666666666 # O24
+ 0.7350333333333334 0.8619666666666664 0.6741666666666667 # O25
+ 0.7353333333333336 0.7178666666666664 0.6208666666666666 # O26
+ 0.7507333333333337 0.9729666666666666 0.6139666666666668 # O27
+ 0.5150333333333338 0.7468666666666666 0.6295666666666666 # O28
+ 0.3333333333333334 0.6666666666666669 0.4638666666666668 # O29
+ 0.3153333333333334 0.7969666666666666 0.4091666666666666 # O30
+ 0.9045000000000001 0.1843000000000000 0.8258999999999999 # O31
+ 0.7682000000000002 0.0130999999999998 0.8783000000000001 # O32
+ 0.9994000000000002 0.2701999999999998 0.8868000000000001 # O33
+ 0.7585000000000000 0.2452999999999997 0.8711000000000001 # O34
+ -0.1953000000000002 0.2063999999999997 1.0074999999999998 # O35
+ -0.0511999999999995 0.3508000000000001 0.9541999999999998 # O36
+ -0.3062999999999999 0.1110999999999999 0.9472999999999999 # O37
+ -0.0802000000000000 0.1014999999999999 0.9628999999999999 # O38
+ -0.1302999999999999 -0.1482999999999997 0.7424999999999998 # O39
+ 0.5711666666666667 0.5176333333333332 0.1592333333333333 # O40
+ 0.4348666666666670 0.3464333333333335 0.2116333333333334 # O41
+ 0.6660666666666671 0.6035333333333334 0.2201333333333333 # O42
+ 0.4251666666666669 0.5786333333333334 0.2044333333333332 # O43
+ 0.4713666666666672 0.5397333333333333 0.3408333333333333 # O44
+ 0.6154666666666671 0.6841333333333331 0.2875333333333334 # O45
+ 0.3603666666666667 0.4444333333333330 0.2806333333333332 # O46
+ 0.5864666666666666 0.4348333333333330 0.2962333333333334 # O47
+ 0.5363666666666667 0.1850333333333334 0.0758333333333334 # O48
+ 1.2378333333333336 -0.1490333333333331 0.4925666666666667 # O49
+ 1.1015333333333335 -0.3202333333333333 0.5449666666666666 # O50
+ 1.3327333333333335 -0.0631333333333333 0.5534666666666668 # O51
+ 1.0918333333333332 -0.0880333333333334 0.5377666666666666 # O52
+ 0.1380333333333332 0.8730666666666664 0.6741666666666667 # O53
+ 0.2821333333333336 1.0174666666666663 0.6208666666666666 # O54
+ 0.0270333333333335 0.7777666666666666 0.6139666666666668 # O55
+ 0.2531333333333334 0.7681666666666668 0.6295666666666666 # O56
+ 0.2030333333333337 0.5183666666666665 0.4091666666666666 # O57
+ 0.8157000000000002 0.7202000000000002 0.8258999999999999 # O58
+ 0.9868999999999999 0.7550999999999995 0.8783000000000001 # O59
+ 0.7298000000000004 0.7292000000000000 0.8868000000000001 # O60
+ 0.7547000000000001 0.5131999999999998 0.8711000000000001 # O61
+ -0.2064000000000001 -0.4016999999999998 1.0074999999999998 # O62
+ -0.3507999999999998 -0.4019999999999999 0.9541999999999998 # O63
+ -0.1111000000000001 -0.4173999999999999 0.9472999999999999 # O64
+ -0.1015000000000001 -0.1817000000000002 0.9628999999999999 # O65
+ 0.1482999999999998 0.0179999999999998 0.7424999999999998 # O66
+ 0.4823666666666674 1.0535333333333334 0.1592333333333333 # O67
+ 0.6535666666666665 1.0884333333333327 0.2116333333333334 # O68
+ 0.3964666666666671 1.0625333333333331 0.2201333333333333 # O69
+ 0.4213666666666671 0.8465333333333336 0.2044333333333332 # O70
+ 0.4602666666666670 -0.0683666666666667 0.3408333333333333 # O71
+ 0.3158666666666667 -0.0686666666666667 0.2875333333333334 # O72
+ 0.5555666666666670 -0.0840666666666668 0.2806333333333332 # O73
+ 0.5651666666666672 0.1516333333333335 0.2962333333333334 # O74
+ 0.8149666666666667 0.3513333333333335 0.0758333333333334 # O75
+ 1.1490333333333336 0.3868666666666665 0.4925666666666667 # O76
+ 1.3202333333333336 0.4217666666666666 0.5449666666666666 # O77
+ 1.0631333333333339 0.3958666666666664 0.5534666666666668 # O78
+ 1.0880333333333336 0.1798666666666667 0.5377666666666666 # O79
+ 0.1269333333333335 0.2649666666666664 0.6741666666666667 # O80
+ -0.0174666666666667 0.2646666666666663 0.6208666666666666 # O81
+ 0.2222333333333338 0.2492666666666669 0.6139666666666668 # O82
+ 0.2318333333333338 0.4849666666666665 0.6295666666666666 # O83
+ 0.4816333333333332 0.6846666666666666 0.4091666666666666 # O84
+ 0.8157000000000002 0.0954999999999998 0.3258999999999998 # O85
+ 0.9869000000000003 0.2317999999999998 0.3782999999999999 # O86
+ 0.7298000000000006 0.0006000000000001 0.3868000000000000 # O87
+ 0.7546999999999999 0.2414999999999999 0.3710999999999999 # O88
+ 0.7936000000000003 0.1953000000000001 0.5075000000000000 # O89
+ 0.6491999999999999 0.0511999999999997 0.4542000000000002 # O90
+ 0.8889000000000000 0.3063000000000000 0.4473000000000000 # O91
+ 0.8985000000000003 0.0801999999999997 0.4628999999999998 # O92
+ 0.0000000000000000 0.0000000000000000 0.2972000000000002 # O93
+ 0.1482999999999998 0.1302999999999999 0.2425000000000002 # O94
+ 0.4823666666666672 0.4288333333333335 0.6592333333333333 # O95
+ 0.6535666666666669 0.5651333333333329 0.7116333333333332 # O96
+ 0.3964666666666671 0.3339333333333332 0.7201333333333335 # O97
+ 0.4213666666666672 0.5748333333333336 0.7044333333333334 # O98
+ 0.4602666666666669 0.5286333333333332 0.8408333333333333 # O99
+ 0.3158666666666673 0.3845333333333334 0.7875333333333334 # O100
+ 0.5555666666666672 0.6396333333333333 0.7806333333333332 # O101
+ 0.5651666666666673 0.4135333333333334 0.7962333333333332 # O102
+ 0.6666666666666670 0.3333333333333331 0.6305333333333334 # O103
+ 0.8149666666666668 0.4636333333333330 0.5758333333333335 # O104
+ 0.1490333333333338 -0.2378333333333333 0.9925666666666665 # O105
+ 0.3202333333333337 -0.1015333333333333 1.0449666666666666 # O106
+ 0.0631333333333335 -0.3327333333333330 1.0534666666666668 # O107
+ 0.0880333333333333 -0.0918333333333333 1.0377666666666667 # O108
+ 0.1269333333333335 0.8619666666666664 0.1741666666666669 # O109
+ -0.0174666666666667 0.7178666666666664 0.1208666666666669 # O110
+ 0.2222333333333334 0.9729666666666666 0.1139666666666670 # O111
+ 0.2318333333333334 0.7468666666666666 0.1295666666666667 # O112
+ 0.3333333333333339 0.6666666666666669 0.9638666666666668 # O113
+ 0.4816333333333337 0.7969666666666666 0.9091666666666667 # O114
+ 0.2798000000000003 0.1843000000000000 0.3258999999999998 # O115
+ 0.2449000000000002 0.0130999999999998 0.3782999999999999 # O116
+ 0.2708000000000005 0.2701999999999998 0.3868000000000000 # O117
+ 0.4868000000000002 0.2452999999999997 0.3710999999999999 # O118
+ 1.4017000000000006 0.2063999999999997 0.5075000000000000 # O119
+ 1.4020000000000006 0.3508000000000001 0.4542000000000002 # O120
+ 1.4174000000000002 0.1110999999999999 0.4473000000000000 # O121
+ 1.1817000000000004 0.1014999999999999 0.4628999999999998 # O122
+ -0.0179999999999998 -0.1482999999999997 0.2425000000000002 # O123
+ -0.0535333333333331 0.5176333333333332 0.6592333333333333 # O124
+ -0.0884333333333329 0.3464333333333335 0.7116333333333332 # O125
+ -0.0625333333333328 0.6035333333333334 0.7201333333333335 # O126
+ 0.1534666666666671 0.5786333333333334 0.7044333333333334 # O127
+ 1.0683666666666671 0.5397333333333333 0.8408333333333333 # O128
+ 1.0686666666666671 0.6841333333333331 0.7875333333333334 # O129
+ 1.0840666666666667 0.4444333333333330 0.7806333333333332 # O130
+ 0.8483666666666668 0.4348333333333330 0.7962333333333332 # O131
+ 0.6486666666666667 0.1850333333333334 0.5758333333333335 # O132
+ -0.3868666666666662 -0.1490333333333331 0.9925666666666665 # O133
+ -0.4217666666666663 -0.3202333333333333 1.0449666666666666 # O134
+ -0.3958666666666666 -0.0631333333333333 1.0534666666666668 # O135
+ -0.1798666666666663 -0.0880333333333334 1.0377666666666667 # O136
+ 0.7350333333333332 0.8730666666666664 0.1741666666666669 # O137
+ 0.7353333333333337 1.0174666666666663 0.1208666666666669 # O138
+ 0.7507333333333337 0.7777666666666666 0.1139666666666670 # O139
+ 0.5150333333333339 0.7681666666666668 0.1295666666666667 # O140
+ 0.3153333333333334 0.5183666666666665 0.9091666666666667 # O141
+ 0.9045000000000004 0.7202000000000002 0.3258999999999998 # O142
+ 0.7682000000000002 0.7550999999999995 0.3782999999999999 # O143
+ 0.9994000000000005 0.7292000000000000 0.3868000000000000 # O144
+ 0.7585000000000002 0.5131999999999998 0.3710999999999999 # O145
+ 0.8047000000000002 -0.4016999999999998 0.5075000000000000 # O146
+ 0.9488000000000004 -0.4019999999999999 0.4542000000000002 # O147
+ 0.6937000000000002 -0.4173999999999999 0.4473000000000000 # O148
+ 0.9198000000000004 -0.1817000000000002 0.4628999999999998 # O149
+ -0.1303000000000000 0.0179999999999998 0.2425000000000002 # O150
+ 0.5711666666666675 1.0535333333333334 0.6592333333333333 # O151
+ 0.4348666666666670 1.0884333333333334 0.7116333333333332 # O152
+ 0.6660666666666670 1.0625333333333331 0.7201333333333335 # O153
+ 0.4251666666666670 0.8465333333333336 0.7044333333333334 # O154
+ 0.4713666666666668 -0.0683666666666667 0.8408333333333333 # O155
+ 0.6154666666666671 -0.0686666666666667 0.7875333333333334 # O156
+ 0.3603666666666666 -0.0840666666666668 0.7806333333333332 # O157
+ 0.5864666666666672 0.1516333333333335 0.7962333333333332 # O158
+ 0.5363666666666668 0.3513333333333335 0.5758333333333335 # O159
+ 0.2378333333333335 0.3868666666666665 0.9925666666666665 # O160
+ 0.1015333333333336 0.4217666666666666 1.0449666666666666 # O161
+ 0.3327333333333337 0.3958666666666664 1.0534666666666668 # O162
+ 0.0918333333333336 0.1798666666666667 1.0377666666666667 # O163
+ 0.1380333333333333 0.2649666666666664 0.1741666666666669 # O164
+ 0.2821333333333330 0.2646666666666663 0.1208666666666669 # O165
+ 0.0270333333333335 0.2492666666666669 0.1139666666666670 # O166
+ 0.2531333333333333 0.4849666666666665 0.1295666666666667 # O167
+ 0.2030333333333334 0.6846666666666666 0.9091666666666667 # O168
diff --git a/test/data/trigonal/POSCAR-161-2 b/test/data/trigonal/POSCAR-161-2
new file mode 100644
index 0000000..f6f83f0
--- /dev/null
+++ b/test/data/trigonal/POSCAR-161-2
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 5.1599975720044595 0.0000000000000000 0.0000000000000000
+ -2.5799987860022298 4.4686889808218870 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 16.5799921984174325
+ 6 18 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ag1
+ 0.6666666666666669 0.3333333333333337 0.3333333333333334 # Ag2
+ 0.3333333333333331 0.6666666666666662 0.6666666666666669 # Ag3
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # Ag4
+ 0.6666666666666669 0.3333333333333337 0.8333333333333335 # Ag5
+ 0.3333333333333331 0.6666666666666662 0.1666666666666665 # Ag6
+ 0.2748000000000003 0.1990000000000001 0.2208000000000000 # O1
+ 0.9414666666666670 0.5323333333333338 0.5541333333333335 # O2
+ 0.6081333333333334 0.8656666666666663 0.8874666666666668 # O3
+ 0.8010000000000008 0.0758000000000001 0.2208000000000000 # O4
+ 0.4676666666666668 0.4091333333333337 0.5541333333333335 # O5
+ 0.1343333333333330 0.7424666666666662 0.8874666666666668 # O6
+ 0.9242000000000006 0.7251999999999997 0.2208000000000000 # O7
+ 0.5908666666666674 0.0585333333333335 0.5541333333333335 # O8
+ 0.2575333333333338 0.3918666666666660 0.8874666666666668 # O9
+ 0.9242000000000007 0.1990000000000001 0.7208000000000003 # O10
+ 0.5908666666666675 0.5323333333333338 0.0541333333333334 # O11
+ 0.2575333333333339 0.8656666666666663 0.3874666666666665 # O12
+ 0.2748000000000001 0.0758000000000001 0.7208000000000003 # O13
+ 0.9414666666666669 0.4091333333333337 0.0541333333333334 # O14
+ 0.6081333333333332 0.7424666666666662 0.3874666666666665 # O15
+ 0.8009999999999999 0.7251999999999997 0.7208000000000003 # O16
+ 0.4676666666666668 0.0585333333333335 0.0541333333333334 # O17
+ 0.1343333333333338 0.3918666666666672 0.3874666666666665 # O18
+ 0.0000000000000000 0.0000000000000000 0.2244999999999999 # N1
+ 0.6666666666666669 0.3333333333333337 0.5578333333333334 # N2
+ 0.3333333333333331 0.6666666666666662 0.8911666666666668 # N3
+ 0.0000000000000000 0.0000000000000000 0.7245000000000003 # N4
+ 0.6666666666666669 0.3333333333333337 0.0578333333333334 # N5
+ 0.3333333333333331 0.6666666666666662 0.3911666666666668 # N6
diff --git a/test/data/trigonal/POSCAR-162 b/test/data/trigonal/POSCAR-162
new file mode 100644
index 0000000..5726b76
--- /dev/null
+++ b/test/data/trigonal/POSCAR-162
@@ -0,0 +1,21 @@
+POSCAR generated by cell class
+1.0
+ 5.4499974355473491 0.0000000000000000 0.0000000000000000
+ -2.7249987177736732 4.7198362297440486 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.1009961881411101
+ 1 1 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.2250000000000000 # 31
+ 0.6666666666666666 0.3333333333333333 0.7750000000000000 # 32
+ 0.3333333333333333 0.6666666666666666 0.7750000000000000 # 33
+ 0.6666666666666666 0.3333333333333333 0.2250000000000000 # 34
+ 0.3333333333333333 0.6666666666666666 0.0000000000000000 # 41
+ 0.3460000000000000 0.0000000000000000 0.2800000000000001 # 42
+ 0.6666666666666666 0.3333333333333333 0.0000000000000000 # 43
+ 0.6540000000000000 0.0000000000000000 0.7200000000000000 # 44
+ 0.0000000000000000 0.3460000000000000 0.2800000000000001 # 45
+ 0.0000000000000000 0.6540000000000000 0.7200000000000000 # 46
+ 0.6540000000000000 0.6540000000000000 0.2800000000000001 # 47
+ 0.3460000000000000 0.3460000000000000 0.7200000000000000 # 48
diff --git a/test/data/trigonal/POSCAR-162-2 b/test/data/trigonal/POSCAR-162-2
new file mode 100644
index 0000000..ed5403c
--- /dev/null
+++ b/test/data/trigonal/POSCAR-162-2
@@ -0,0 +1,16 @@
+POSCAR generated by cell class
+1.0
+ 4.9899976519965588 0.0000000000000000 0.0000000000000000
+ -2.4949988259982785 4.3214647314537205 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 4.6219978251559297
+ 1 2 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.5000000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.5000000000000000 # 22
+ 0.3410000000000001 0.0000000000000000 0.2664000000000001 # 31
+ 0.6590000000000000 0.0000000000000000 0.7336000000000000 # 32
+ 0.0000000000000000 0.3410000000000001 0.2664000000000001 # 33
+ 0.0000000000000000 0.6590000000000000 0.7336000000000000 # 34
+ 0.6590000000000000 0.6590000000000000 0.2664000000000001 # 35
+ 0.3410000000000001 0.3410000000000001 0.7336000000000000 # 36
diff --git a/test/data/trigonal/POSCAR-163 b/test/data/trigonal/POSCAR-163
new file mode 100644
index 0000000..5d73dc7
--- /dev/null
+++ b/test/data/trigonal/POSCAR-163
@@ -0,0 +1,23 @@
+POSCAR generated by cell class
+1.0
+ 5.8899972285089710 0.0000000000000000 0.0000000000000000
+ -2.9449986142544842 5.1008872281087063 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.5909954870338705
+ 2 2 12
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.2500000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.7500000000000000 # 22
+ 0.2300000000000000 0.3200000000000000 0.1200000000000000 # 31
+ 0.7700000000000000 0.6799999999999999 0.8800000000000000 # 32
+ 0.6799999999999999 0.9100000000000000 0.1200000000000000 # 33
+ 0.3200000000000000 0.0900000000000000 0.8800000000000000 # 34
+ 0.0900000000000000 0.7700000000000000 0.1200000000000000 # 35
+ 0.9100000000000000 0.2300000000000000 0.8800000000000000 # 36
+ 0.6799999999999999 0.7700000000000000 0.3800000000000000 # 37
+ 0.3200000000000000 0.2300000000000000 0.6200000000000000 # 38
+ 0.0900000000000000 0.3200000000000000 0.3800000000000000 # 39
+ 0.9100000000000000 0.6799999999999999 0.6200000000000000 # 310
+ 0.2300000000000000 0.9100000000000000 0.3800000000000000 # 311
+ 0.7700000000000000 0.0900000000000000 0.6200000000000000 # 312
diff --git a/test/data/trigonal/POSCAR-163-2 b/test/data/trigonal/POSCAR-163-2
new file mode 100644
index 0000000..9837307
--- /dev/null
+++ b/test/data/trigonal/POSCAR-163-2
@@ -0,0 +1,27 @@
+POSCAR generated by cell class
+1.0
+ 5.3099975014231919 0.0000000000000000 0.0000000000000000
+ -2.6549987507115946 4.5985927302643805 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 14.2499932947797596
+ 4 4 12
+Direct
+ 0.3333333333333333 0.6666666666666666 0.0666000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.9334000000000000 # 12
+ 0.3333333333333333 0.6666666666666666 0.4334000000000000 # 13
+ 0.6666666666666666 0.3333333333333333 0.5666000000000000 # 14
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.7500000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 23
+ 0.6666666666666666 0.3333333333333333 0.2500000000000000 # 24
+ 0.9480999999999999 0.2832000000000000 0.1733000000000000 # 31
+ 0.0519000000000000 0.7168000000000000 0.8267000000000000 # 32
+ 0.7168000000000000 0.6649000000000002 0.1733000000000000 # 33
+ 0.2832000000000000 0.3351000000000000 0.8267000000000000 # 34
+ 0.3351000000000000 0.0519000000000000 0.1733000000000000 # 35
+ 0.6649000000000002 0.9480999999999999 0.8267000000000000 # 36
+ 0.7168000000000000 0.0519000000000000 0.3267000000000000 # 37
+ 0.2832000000000000 0.9480999999999999 0.6733000000000000 # 38
+ 0.3351000000000000 0.2832000000000000 0.3267000000000000 # 39
+ 0.6649000000000002 0.7168000000000000 0.6733000000000000 # 310
+ 0.9480999999999999 0.6649000000000002 0.3267000000000000 # 311
+ 0.0519000000000000 0.3351000000000000 0.6733000000000000 # 312
diff --git a/test/data/trigonal/POSCAR-164 b/test/data/trigonal/POSCAR-164
new file mode 100644
index 0000000..53e20eb
--- /dev/null
+++ b/test/data/trigonal/POSCAR-164
@@ -0,0 +1,10 @@
+POSCAR generated by cell class
+1.0
+ 4.0469980957174512 0.0000000000000000 0.0000000000000000
+ -2.0234990478587247 3.5048031599585601 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.3299974920123603
+ 1 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.3333333333333333 0.6666666666666666 0.4320000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.5679999999999999 # 22
diff --git a/test/data/trigonal/POSCAR-164-2 b/test/data/trigonal/POSCAR-164-2
new file mode 100644
index 0000000..7358499
--- /dev/null
+++ b/test/data/trigonal/POSCAR-164-2
@@ -0,0 +1,17 @@
+POSCAR generated by cell class
+1.0
+ 6.2489970595844690 0.0000000000000000 0.0000000000000000
+ -3.1244985297922332 5.4117902017744104 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 5.0859976068245603
+ 1 1 2 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.2699000000000000 # 31
+ 0.6666666666666666 0.3333333333333333 0.7301000000000000 # 32
+ 0.1388000000000000 0.2776000000000000 0.7618000000000000 # 41
+ 0.8612000000000000 0.7223999999999999 0.2382000000000000 # 42
+ 0.7223999999999999 0.8612000000000000 0.7618000000000000 # 43
+ 0.2776000000000000 0.1388000000000000 0.2382000000000000 # 44
+ 0.1388000000000000 0.8612000000000000 0.7618000000000000 # 45
+ 0.8612000000000000 0.1388000000000000 0.2382000000000000 # 46
diff --git a/test/data/trigonal/POSCAR-165 b/test/data/trigonal/POSCAR-165
new file mode 100644
index 0000000..acb3c38
--- /dev/null
+++ b/test/data/trigonal/POSCAR-165
@@ -0,0 +1,31 @@
+POSCAR generated by cell class
+1.0
+ 7.1849966191573715 0.0000000000000000 0.0000000000000000
+ -3.5924983095786840 6.2223895982955897 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 7.3509965410474400
+ 6 18
+Direct
+ 0.6609000000000002 0.0000000000000000 0.2500000000000000 # 11
+ 0.0000000000000000 0.6609000000000002 0.2500000000000000 # 12
+ 0.0000000000000000 0.3391000000000000 0.7500000000000000 # 13
+ 0.3391000000000000 0.3391000000000000 0.2500000000000000 # 14
+ 0.6609000000000002 0.6609000000000002 0.7500000000000000 # 15
+ 0.3391000000000000 0.0000000000000000 0.7500000000000000 # 16
+ 0.3667000000000001 0.0540000000000000 0.0824000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.1855000000000000 # 22
+ 0.0000000000000000 0.0000000000000000 0.2500000000000000 # 23
+ 0.6333000000000000 0.9460000000000000 0.9176000000000000 # 24
+ 0.6666666666666666 0.3333333333333333 0.8145000000000000 # 25
+ 0.0000000000000000 0.0000000000000000 0.7500000000000000 # 26
+ 0.9460000000000000 0.3127000000000000 0.0824000000000000 # 27
+ 0.0540000000000000 0.6873000000000000 0.9176000000000000 # 28
+ 0.6873000000000000 0.6333000000000000 0.0824000000000000 # 29
+ 0.3127000000000000 0.3667000000000001 0.9176000000000000 # 210
+ 0.3127000000000000 0.9460000000000000 0.4176000000000001 # 211
+ 0.6666666666666666 0.3333333333333333 0.3145000000000000 # 212
+ 0.6333000000000000 0.6873000000000000 0.4176000000000001 # 213
+ 0.0540000000000000 0.3667000000000001 0.4176000000000001 # 214
+ 0.9460000000000000 0.6333000000000000 0.5824000000000000 # 215
+ 0.6873000000000000 0.0540000000000000 0.5824000000000000 # 216
+ 0.3333333333333333 0.6666666666666666 0.6855000000000000 # 217
+ 0.3667000000000001 0.3127000000000000 0.5824000000000000 # 218
diff --git a/test/data/trigonal/POSCAR-165-2 b/test/data/trigonal/POSCAR-165-2
new file mode 100644
index 0000000..cdd3060
--- /dev/null
+++ b/test/data/trigonal/POSCAR-165-2
@@ -0,0 +1,97 @@
+POSCAR generated by cell class
+1.0
+ 12.1899942640958123 0.0000000000000000 0.0000000000000000
+ -6.0949971320479035 10.5568447046935674 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.1399952287064394
+ 12 6 18 54
+Direct
+ 0.0015000000000000 0.3353000000000000 0.4300000000000001 # 11
+ 0.9984999999999999 0.6647000000000000 0.5700000000000000 # 12
+ 0.6647000000000000 0.6662000000000000 0.4300000000000001 # 13
+ 0.3353000000000000 0.3338000000000000 0.5700000000000000 # 14
+ 0.3338000000000000 0.9984999999999999 0.4300000000000001 # 15
+ 0.6662000000000000 0.0015000000000000 0.5700000000000000 # 16
+ 0.6662000000000000 0.6647000000000000 0.0700000000000000 # 17
+ 0.3338000000000000 0.3353000000000000 0.9299999999999999 # 18
+ 0.9984999999999999 0.3338000000000000 0.0700000000000000 # 19
+ 0.0015000000000000 0.6662000000000000 0.9299999999999999 # 110
+ 0.3353000000000000 0.0015000000000000 0.0700000000000000 # 111
+ 0.6647000000000000 0.9984999999999999 0.9299999999999999 # 112
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 21
+ 0.3333333333333333 0.6666666666666666 0.4733000000000000 # 22
+ 0.6666666666666666 0.3333333333333333 0.5266999999999999 # 23
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 24
+ 0.6666666666666666 0.3333333333333333 0.0267000000000000 # 25
+ 0.3333333333333333 0.6666666666666666 0.9732999999999999 # 26
+ 0.0000000000000000 0.1790000000000000 0.7500000000000000 # 31
+ 0.1481000000000000 0.4802000000000000 0.7235000000000000 # 32
+ 0.0000000000000000 0.8210000000000000 0.2500000000000000 # 33
+ 0.8519000000000000 0.5198000000000002 0.2765000000000001 # 34
+ 0.8210000000000000 0.8210000000000000 0.7500000000000000 # 35
+ 0.5198000000000002 0.6679000000000002 0.7235000000000000 # 36
+ 0.1790000000000000 0.1790000000000000 0.2500000000000000 # 37
+ 0.4802000000000000 0.3321000000000000 0.2765000000000001 # 38
+ 0.1790000000000000 0.0000000000000000 0.7500000000000000 # 39
+ 0.3321000000000000 0.8519000000000000 0.7235000000000000 # 310
+ 0.8210000000000000 0.0000000000000000 0.2500000000000000 # 311
+ 0.6679000000000002 0.1481000000000000 0.2765000000000001 # 312
+ 0.6679000000000002 0.5198000000000002 0.7765000000000000 # 313
+ 0.3321000000000000 0.4802000000000000 0.2235000000000000 # 314
+ 0.8519000000000000 0.3321000000000000 0.7765000000000000 # 315
+ 0.1481000000000000 0.6679000000000002 0.2235000000000000 # 316
+ 0.4802000000000000 0.1481000000000000 0.7765000000000000 # 317
+ 0.5198000000000002 0.8519000000000000 0.2235000000000000 # 318
+ 0.0000000000000000 0.4562000000000000 0.7500000000000000 # 41
+ 0.0692000000000000 0.1518000000000000 0.8822000000000000 # 42
+ 0.1134000000000000 0.3233000000000000 0.6725000000000000 # 43
+ 0.2468000000000000 0.5161000000000000 0.8637000000000000 # 44
+ 0.1881000000000000 0.5731000000000002 0.5823000000000002 # 45
+ 0.0000000000000000 0.5438000000000000 0.2500000000000000 # 46
+ 0.9308000000000000 0.8482000000000000 0.1178000000000000 # 47
+ 0.8866000000000002 0.6767000000000000 0.3275000000000000 # 48
+ 0.7532000000000000 0.4839000000000000 0.1363000000000000 # 49
+ 0.8119000000000000 0.4269000000000000 0.4177000000000000 # 410
+ 0.5438000000000000 0.5438000000000000 0.7500000000000000 # 411
+ 0.8482000000000000 0.9174000000000000 0.8822000000000000 # 412
+ 0.6767000000000000 0.7901000000000000 0.6725000000000000 # 413
+ 0.4839000000000000 0.7307000000000000 0.8637000000000000 # 414
+ 0.4269000000000000 0.6150000000000000 0.5823000000000002 # 415
+ 0.4562000000000000 0.4562000000000000 0.2500000000000000 # 416
+ 0.1518000000000000 0.0826000000000000 0.1178000000000000 # 417
+ 0.3233000000000000 0.2099000000000000 0.3275000000000000 # 418
+ 0.5161000000000000 0.2693000000000000 0.1363000000000000 # 419
+ 0.5731000000000002 0.3850000000000000 0.4177000000000000 # 420
+ 0.4562000000000000 0.0000000000000000 0.7500000000000000 # 421
+ 0.0826000000000000 0.9308000000000000 0.8822000000000000 # 422
+ 0.2099000000000000 0.8866000000000002 0.6725000000000000 # 423
+ 0.2693000000000000 0.7532000000000000 0.8637000000000000 # 424
+ 0.3850000000000000 0.8119000000000000 0.5823000000000002 # 425
+ 0.5438000000000000 0.0000000000000000 0.2500000000000000 # 426
+ 0.9174000000000000 0.0692000000000000 0.1178000000000000 # 427
+ 0.7901000000000000 0.1134000000000000 0.3275000000000000 # 428
+ 0.7307000000000000 0.2468000000000000 0.1363000000000000 # 429
+ 0.6150000000000000 0.1881000000000000 0.4177000000000000 # 430
+ 0.9174000000000000 0.8482000000000000 0.6178000000000000 # 431
+ 0.7901000000000000 0.6767000000000000 0.8275000000000000 # 432
+ 0.7307000000000000 0.4839000000000000 0.6363000000000000 # 433
+ 0.6150000000000000 0.4269000000000000 0.9177000000000000 # 434
+ 0.0826000000000000 0.1518000000000000 0.3822000000000000 # 435
+ 0.2099000000000000 0.3233000000000000 0.1725000000000000 # 436
+ 0.2693000000000000 0.5161000000000000 0.3637000000000001 # 437
+ 0.3850000000000000 0.5731000000000002 0.0823000000000000 # 438
+ 0.9308000000000000 0.0826000000000000 0.6178000000000000 # 439
+ 0.8866000000000002 0.2099000000000000 0.8275000000000000 # 440
+ 0.7532000000000000 0.2693000000000000 0.6363000000000000 # 441
+ 0.8119000000000000 0.3850000000000000 0.9177000000000000 # 442
+ 0.0692000000000000 0.9174000000000000 0.3822000000000000 # 443
+ 0.1134000000000000 0.7901000000000000 0.1725000000000000 # 444
+ 0.2468000000000000 0.7307000000000000 0.3637000000000001 # 445
+ 0.1881000000000000 0.6150000000000000 0.0823000000000000 # 446
+ 0.1518000000000000 0.0692000000000000 0.6178000000000000 # 447
+ 0.3233000000000000 0.1134000000000000 0.8275000000000000 # 448
+ 0.5161000000000000 0.2468000000000000 0.6363000000000000 # 449
+ 0.5731000000000002 0.1881000000000000 0.9177000000000000 # 450
+ 0.8482000000000000 0.9308000000000000 0.3822000000000000 # 451
+ 0.6767000000000000 0.8866000000000002 0.1725000000000000 # 452
+ 0.4839000000000000 0.7532000000000000 0.3637000000000001 # 453
+ 0.4269000000000000 0.8119000000000000 0.0823000000000000 # 454
diff --git a/test/data/trigonal/POSCAR-166 b/test/data/trigonal/POSCAR-166
new file mode 100644
index 0000000..3332116
--- /dev/null
+++ b/test/data/trigonal/POSCAR-166
@@ -0,0 +1,67 @@
+POSCAR generated by cell class
+1.0
+ 6.2429970624077198 0.0000000000000000 0.0000000000000000
+ -3.1214985312038586 5.4065940517967102 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 29.9999858837468700
+ 6 6 12 36
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 12
+ 0.6666666666666666 0.3333333333333333 0.3333333333333333 # 13
+ 0.6666666666666666 0.3333333333333333 0.8333333333333334 # 14
+ 0.3333333333333333 0.6666666666666666 0.6666666666666667 # 15
+ 0.3333333333333333 0.6666666666666666 0.1666666666666667 # 16
+ 0.0000000000000000 0.0000000000000000 0.4023000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.7356333333333334 # 22
+ 0.3333333333333333 0.6666666666666666 0.0689666666666667 # 23
+ 0.0000000000000000 0.0000000000000000 0.5977000000000000 # 24
+ 0.6666666666666666 0.3333333333333333 0.9310333333333334 # 25
+ 0.3333333333333333 0.6666666666666666 0.2643666666666668 # 26
+ 0.0000000000000000 0.0000000000000000 0.1280000000000000 # 31
+ 0.0000000000000000 0.0000000000000000 0.2811000000000000 # 32
+ 0.6666666666666666 0.3333333333333333 0.4613333333333334 # 33
+ 0.6666666666666666 0.3333333333333333 0.6144333333333334 # 34
+ 0.3333333333333333 0.6666666666666666 0.7946666666666666 # 35
+ 0.3333333333333333 0.6666666666666666 0.9477666666666665 # 36
+ 0.0000000000000000 0.0000000000000000 0.8720000000000000 # 37
+ 0.0000000000000000 0.0000000000000000 0.7189000000000000 # 38
+ 0.3333333333333333 0.6666666666666666 0.5386666666666666 # 39
+ 0.6666666666666666 0.3333333333333333 0.2053333333333333 # 310
+ 0.6666666666666666 0.3333333333333333 0.0522333333333333 # 311
+ 0.3333333333333333 0.6666666666666666 0.3855666666666668 # 312
+ 0.1411500000000000 0.8588500000000000 0.4620000000000002 # 41
+ 0.1881000000000000 0.8119000000000000 0.6309000000000000 # 42
+ 0.8078166666666666 0.1921833333333334 0.7953333333333333 # 43
+ 0.8547666666666668 0.1452333333333334 0.9642333333333334 # 44
+ 0.4744833333333334 0.5255166666666666 0.1286666666666667 # 45
+ 0.5214333333333334 0.4785666666666668 0.2975666666666667 # 46
+ 0.8588500000000000 0.1411500000000000 0.5380000000000000 # 47
+ 0.8119000000000002 0.1881000000000000 0.3691000000000000 # 48
+ 0.5255166666666666 0.4744833333333334 0.8713333333333334 # 49
+ 0.4785666666666668 0.5214333333333334 0.7024333333333334 # 410
+ 0.1921833333333334 0.8078166666666666 0.2046666666666667 # 411
+ 0.1452333333333334 0.8547666666666668 0.0357666666666666 # 412
+ 0.1411500000000000 0.2823000000000000 0.4620000000000002 # 413
+ 0.1881000000000000 0.3762000000000000 0.6309000000000000 # 414
+ 0.8078166666666666 0.6156333333333334 0.7953333333333333 # 415
+ 0.8547666666666668 0.7095333333333333 0.9642333333333334 # 416
+ 0.4744833333333334 0.9489666666666666 0.1286666666666667 # 417
+ 0.5214333333333334 0.0428666666666667 0.2975666666666667 # 418
+ 0.8588500000000000 0.7177000000000000 0.5380000000000000 # 419
+ 0.8119000000000000 0.6238000000000000 0.3691000000000000 # 420
+ 0.5255166666666666 0.0510333333333333 0.8713333333333334 # 421
+ 0.4785666666666668 0.9571333333333334 0.7024333333333334 # 422
+ 0.1921833333333334 0.3843666666666667 0.2046666666666667 # 423
+ 0.1452333333333334 0.2904666666666667 0.0357666666666666 # 424
+ 0.7177000000000000 0.8588500000000000 0.4620000000000002 # 425
+ 0.6238000000000000 0.8119000000000002 0.6309000000000000 # 426
+ 0.3843666666666667 0.1921833333333334 0.7953333333333333 # 427
+ 0.2904666666666667 0.1452333333333334 0.9642333333333334 # 428
+ 0.0510333333333333 0.5255166666666666 0.1286666666666667 # 429
+ 0.9571333333333334 0.4785666666666668 0.2975666666666667 # 430
+ 0.2823000000000000 0.1411500000000000 0.5380000000000000 # 431
+ 0.3762000000000000 0.1881000000000000 0.3691000000000000 # 432
+ 0.9489666666666666 0.4744833333333334 0.8713333333333334 # 433
+ 0.0428666666666667 0.5214333333333334 0.7024333333333334 # 434
+ 0.6156333333333334 0.8078166666666666 0.2046666666666667 # 435
+ 0.7095333333333333 0.8547666666666668 0.0357666666666666 # 436
diff --git a/test/data/trigonal/POSCAR-166-2 b/test/data/trigonal/POSCAR-166-2
new file mode 100644
index 0000000..ec33722
--- /dev/null
+++ b/test/data/trigonal/POSCAR-166-2
@@ -0,0 +1,31 @@
+POSCAR generated by cell class
+1.0
+ 5.4249974473108944 0.0000000000000000 0.0000000000000000
+ -2.7124987236554459 4.6981856048369668 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 9.8359953717511406
+ 3 3 18
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # 11
+ 0.6666666666666666 0.3333333333333333 0.3333333333333333 # 12
+ 0.3333333333333333 0.6666666666666666 0.6666666666666667 # 13
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000 # 21
+ 0.6666666666666666 0.3333333333333333 0.8333333333333334 # 22
+ 0.3333333333333333 0.6666666666666666 0.1666666666666667 # 23
+ 0.1300000000000000 0.8700000000000000 0.4750000000000000 # 31
+ 0.7966666666666667 0.2033333333333334 0.8083333333333333 # 32
+ 0.4633333333333334 0.5366666666666666 0.1416666666666667 # 33
+ 0.8700000000000000 0.1300000000000000 0.5250000000000000 # 34
+ 0.5366666666666666 0.4633333333333334 0.8583333333333334 # 35
+ 0.2033333333333334 0.7966666666666667 0.1916666666666667 # 36
+ 0.1300000000000000 0.2600000000000000 0.4750000000000000 # 37
+ 0.7966666666666667 0.5933333333333334 0.8083333333333333 # 38
+ 0.4633333333333334 0.9266666666666665 0.1416666666666667 # 39
+ 0.8700000000000000 0.7400000000000000 0.5250000000000000 # 310
+ 0.5366666666666666 0.0733333333333333 0.8583333333333334 # 311
+ 0.2033333333333334 0.4066666666666667 0.1916666666666667 # 312
+ 0.7400000000000000 0.8700000000000000 0.4750000000000000 # 313
+ 0.4066666666666667 0.2033333333333334 0.8083333333333333 # 314
+ 0.0733333333333333 0.5366666666666666 0.1416666666666667 # 315
+ 0.2600000000000000 0.1300000000000000 0.5250000000000000 # 316
+ 0.9266666666666665 0.4633333333333334 0.8583333333333334 # 317
+ 0.5933333333333334 0.7966666666666667 0.1916666666666667 # 318
diff --git a/test/data/trigonal/POSCAR-167 b/test/data/trigonal/POSCAR-167
new file mode 100644
index 0000000..e09f760
--- /dev/null
+++ b/test/data/trigonal/POSCAR-167
@@ -0,0 +1,271 @@
+$cell vectors
+1.0
+ 11.5099945840642164 0.0000000000000000 0.0000000000000000
+ -5.7549972920321055 9.9679477072209135 0.0000000000000000
+ 0.0000000000000053 0.0000000000000000 60.5699714992849252
+ 36 72 72 84
+Direct
+ 0.8448999999999998 0.1537000000000002 0.1990000000000000 # K1
+ 0.5115666666666667 0.4870333333333334 0.5323333333333333 # K2
+ 0.1782333333333329 0.8203666666666667 0.8656666666666667 # K3
+ 0.1550999999999998 0.8462999999999998 0.8009999999999999 # K4
+ 0.8217666666666666 0.1796333333333335 0.1343333333333333 # K5
+ 0.4884333333333332 0.5129666666666667 0.4676666666666666 # K6
+ 0.8462999999999999 0.6912000000000000 0.1990000000000000 # K7
+ 0.5129666666666665 0.0245333333333332 0.5323333333333333 # K8
+ 0.1796333333333334 0.3578666666666669 0.8656666666666667 # K9
+ 0.1537000000000000 0.3088000000000000 0.8009999999999999 # K10
+ 0.8203666666666665 0.6421333333333332 0.1343333333333333 # K11
+ 0.4870333333333334 0.9754666666666668 0.4676666666666666 # K12
+ 0.3087999999999999 0.1551000000000003 0.1990000000000000 # K13
+ 0.9754666666666663 0.4884333333333334 0.5323333333333333 # K14
+ 0.6421333333333329 0.8217666666666665 0.8656666666666667 # K15
+ 0.6911999999999999 0.8449000000000002 0.8009999999999999 # K16
+ 0.3578666666666665 0.1782333333333334 0.1343333333333333 # K17
+ 0.0245333333333330 0.5115666666666665 0.4676666666666666 # K18
+ 0.6911999999999999 0.8462999999999998 0.3009999999999999 # K19
+ 0.3578666666666668 0.1796333333333335 0.6343333333333333 # K20
+ 0.0245333333333334 0.5129666666666667 0.9676666666666668 # K21
+ 0.3088000000000000 0.1537000000000002 0.6990000000000001 # K22
+ 0.9754666666666667 0.4870333333333334 0.0323333333333333 # K23
+ 0.6421333333333332 0.8203666666666667 0.3656666666666667 # K24
+ 0.1550999999999997 0.3088000000000000 0.3009999999999999 # K25
+ 0.8217666666666666 0.6421333333333332 0.6343333333333333 # K26
+ 0.4884333333333331 0.9754666666666668 0.9676666666666668 # K27
+ 0.8448999999999997 0.6912000000000000 0.6990000000000001 # K28
+ 0.5115666666666663 0.0245333333333332 0.0323333333333333 # K29
+ 0.1782333333333332 0.3578666666666669 0.3656666666666667 # K30
+ 0.1537000000000003 0.8449000000000002 0.3009999999999999 # K31
+ 0.8203666666666662 0.1782333333333334 0.6343333333333333 # K32
+ 0.4870333333333329 0.5115666666666665 0.9676666666666668 # K33
+ 0.8462999999999999 0.1551000000000003 0.6990000000000001 # K34
+ 0.5129666666666665 0.4884333333333334 0.0323333333333333 # K35
+ 0.1796333333333330 0.8217666666666665 0.3656666666666667 # K36
+ 0.1710000000000001 1.0981000000000005 0.0361000000000000 # P1
+ 0.1032000000000002 1.2688000000000001 0.0094000000000001 # P2
+ 0.8376666666666667 0.4314333333333336 0.3694333333333333 # P3
+ 0.7698666666666668 0.6021333333333334 0.3427333333333333 # P4
+ 0.5043333333333334 0.7647666666666669 0.7027666666666669 # P5
+ 0.4365333333333329 0.9354666666666666 0.6760666666666667 # P6
+ -0.1710000000000000 0.9019000000000000 -0.0361000000000000 # P7
+ -0.1032000000000002 0.7311999999999999 -0.0093999999999999 # P8
+ 0.4956666666666666 0.2352333333333332 0.2972333333333333 # P9
+ 0.5634666666666667 0.0645333333333335 0.3239333333333333 # P10
+ 0.1623333333333335 0.5685666666666670 0.6305666666666668 # P11
+ 0.2301333333333332 0.3978666666666666 0.6572666666666668 # P12
+ -0.0981000000000001 1.0729000000000002 0.0361000000000000 # P13
+ -0.2687999999999997 0.8344000000000003 0.0094000000000001 # P14
+ 0.5685666666666662 0.4062333333333332 0.3694333333333333 # P15
+ 0.3978666666666664 0.1677333333333333 0.3427333333333333 # P16
+ 0.2352333333333332 0.7395666666666669 0.7027666666666669 # P17
+ 0.0645333333333333 0.5010666666666670 0.6760666666666667 # P18
+ 0.0981000000000002 0.9271000000000000 -0.0361000000000000 # P19
+ 0.2687999999999997 1.1656000000000000 -0.0093999999999999 # P20
+ 0.7647666666666663 0.2604333333333331 0.2972333333333333 # P21
+ 0.9354666666666667 0.4989333333333337 0.3239333333333333 # P22
+ 0.4314333333333331 0.5937666666666668 0.6305666666666668 # P23
+ 0.6021333333333331 0.8322666666666668 0.6572666666666668 # P24
+ -0.0728999999999999 0.8290000000000001 0.0361000000000000 # P25
+ 0.1656000000000001 0.8968000000000003 0.0094000000000001 # P26
+ 0.5937666666666662 0.1623333333333332 0.3694333333333333 # P27
+ 0.8322666666666668 0.2301333333333333 0.3427333333333333 # P28
+ 0.2604333333333331 0.4956666666666668 0.7027666666666669 # P29
+ 0.4989333333333332 0.5634666666666664 0.6760666666666667 # P30
+ 0.0729000000000004 1.1710000000000003 -0.0361000000000000 # P31
+ -0.1655999999999997 1.1031999999999997 -0.0093999999999999 # P32
+ 0.7395666666666664 0.5043333333333332 0.2972333333333333 # P33
+ 0.5010666666666668 0.4365333333333336 0.3239333333333333 # P34
+ 0.4062333333333332 0.8376666666666668 0.6305666666666668 # P35
+ 0.1677333333333332 0.7698666666666667 0.6572666666666668 # P36
+ 0.0728999999999999 -0.0980999999999999 0.4639000000000000 # P37
+ -0.1655999999999998 -0.2687999999999997 0.4906000000000001 # P38
+ 0.7395666666666664 0.2352333333333332 0.7972333333333335 # P39
+ 0.5010666666666668 0.0645333333333335 0.8239333333333335 # P40
+ 0.4062333333333333 0.5685666666666670 0.1305666666666667 # P41
+ 0.1677333333333333 0.3978666666666666 0.1572666666666666 # P42
+ -0.0729000000000004 0.0980999999999999 0.5361000000000000 # P43
+ 0.1655999999999998 0.2687999999999997 0.5094000000000001 # P44
+ 0.5937666666666664 0.4314333333333336 0.8694333333333333 # P45
+ 0.8322666666666666 0.6021333333333334 0.8427333333333334 # P46
+ 0.2604333333333335 0.7647666666666669 0.2027666666666666 # P47
+ 0.4989333333333332 0.9354666666666666 0.1760666666666667 # P48
+ -0.1710000000000000 -0.0729000000000001 0.4639000000000000 # P49
+ -0.1032000000000002 0.1655999999999999 0.4906000000000001 # P50
+ 0.4956666666666666 0.2604333333333331 0.7972333333333335 # P51
+ 0.5634666666666668 0.4989333333333337 0.8239333333333335 # P52
+ 0.1623333333333334 0.5937666666666668 0.1305666666666667 # P53
+ 0.2301333333333332 0.8322666666666668 0.1572666666666666 # P54
+ 0.1709999999999999 0.0729000000000001 0.5361000000000000 # P55
+ 0.1032000000000002 -0.1655999999999999 0.5094000000000001 # P56
+ 0.8376666666666664 0.4062333333333332 0.8694333333333333 # P57
+ 0.7698666666666668 0.1677333333333333 0.8427333333333334 # P58
+ 0.5043333333333333 0.7395666666666669 0.2027666666666666 # P59
+ 0.4365333333333336 0.5010666666666670 0.1760666666666667 # P60
+ 0.0980999999999999 0.1710000000000000 0.4639000000000000 # P61
+ 0.2687999999999998 0.1031999999999999 0.4906000000000001 # P62
+ 0.7647666666666665 0.5043333333333332 0.7972333333333335 # P63
+ 0.9354666666666667 0.4365333333333336 0.8239333333333335 # P64
+ 0.4314333333333332 0.8376666666666668 0.1305666666666667 # P65
+ 0.6021333333333331 0.7698666666666667 0.1572666666666666 # P66
+ -0.0980999999999999 -0.1710000000000000 0.5361000000000000 # P67
+ -0.2688000000000002 -0.1031999999999999 0.5094000000000001 # P68
+ 0.5685666666666661 0.1623333333333332 0.8694333333333333 # P69
+ 0.3978666666666664 0.2301333333333333 0.8427333333333334 # P70
+ 0.2352333333333335 0.4956666666666668 0.2027666666666666 # P71
+ 0.0645333333333334 0.5634666666666664 0.1760666666666667 # P72
+ 0.2541999999999998 1.2113000000000000 0.0616000000000001 # S1
+ 0.2188000000000001 1.4598000000000002 0.0040000000000000 # S2
+ 0.9208666666666663 0.5446333333333333 0.3949333333333333 # S3
+ 0.8854666666666665 0.7931333333333332 0.3373333333333333 # S4
+ 0.5875333333333331 0.8779666666666669 0.7282666666666668 # S5
+ 0.5521333333333334 1.1264666666666669 0.6706666666666667 # S6
+ -0.2541999999999996 0.7887000000000001 -0.0616000000000000 # S7
+ -0.2188000000000001 0.5401999999999999 -0.0040000000000000 # S8
+ 0.4124666666666663 0.1220333333333332 0.2717333333333334 # S9
+ 0.4478666666666665 -0.1264666666666669 0.3293333333333334 # S10
+ 0.0791333333333332 0.4553666666666669 0.6050666666666666 # S11
+ 0.1145333333333334 0.2068666666666668 0.6626666666666667 # S12
+ -0.2113000000000000 1.0428999999999999 0.0616000000000001 # S13
+ -0.4597999999999998 0.7590000000000003 0.0040000000000000 # S14
+ 0.4553666666666664 0.3762333333333331 0.3949333333333333 # S15
+ 0.2068666666666666 0.0923333333333333 0.3373333333333333 # S16
+ 0.1220333333333334 0.7095666666666669 0.7282666666666668 # S17
+ -0.1264666666666668 0.4256666666666666 0.6706666666666667 # S18
+ 0.2113000000000001 0.9571000000000001 -0.0616000000000000 # S19
+ 0.4598000000000001 1.2410000000000003 -0.0040000000000000 # S20
+ 0.8779666666666668 0.2904333333333332 0.2717333333333334 # S21
+ 1.1264666666666667 0.5743333333333336 0.3293333333333334 # S22
+ 0.5446333333333330 0.6237666666666669 0.6050666666666666 # S23
+ 0.7931333333333331 0.9076666666666666 0.6626666666666667 # S24
+ -0.0428999999999997 0.7458000000000001 0.0616000000000001 # S25
+ 0.2410000000000001 0.7812000000000003 0.0040000000000000 # S26
+ 0.6237666666666662 0.0791333333333332 0.3949333333333333 # S27
+ 0.9076666666666667 0.1145333333333334 0.3373333333333333 # S28
+ 0.2904333333333332 0.4124666666666669 0.7282666666666668 # S29
+ 0.5743333333333333 0.4478666666666666 0.6706666666666667 # S30
+ 0.0429000000000003 1.2542000000000002 -0.0616000000000000 # S31
+ -0.2410000000000002 1.2187999999999997 -0.0040000000000000 # S32
+ 0.7095666666666668 0.5875333333333331 0.2717333333333334 # S33
+ 0.4256666666666667 0.5521333333333334 0.3293333333333334 # S34
+ 0.3762333333333333 0.9208666666666671 0.6050666666666666 # S35
+ 0.0923333333333333 0.8854666666666666 0.6626666666666667 # S36
+ 0.0429000000000002 -0.2113000000000000 0.4384000000000001 # S37
+ -0.2410000000000001 -0.4598000000000002 0.4960000000000001 # S38
+ 0.7095666666666661 0.1220333333333332 0.7717333333333334 # S39
+ 0.4256666666666665 -0.1264666666666669 0.8293333333333334 # S40
+ 0.3762333333333336 0.4553666666666669 0.1050666666666667 # S41
+ 0.0923333333333333 0.2068666666666668 0.1626666666666667 # S42
+ -0.0429000000000002 0.2113000000000000 0.5616000000000000 # S43
+ 0.2410000000000002 0.4598000000000002 0.5040000000000001 # S44
+ 0.6237666666666665 0.5446333333333333 0.8949333333333335 # S45
+ 0.9076666666666662 0.7931333333333332 0.8373333333333335 # S46
+ 0.2904333333333333 0.8779666666666669 0.2282666666666666 # S47
+ 0.5743333333333334 1.1264666666666669 0.1706666666666667 # S48
+ -0.2542000000000003 -0.0429000000000000 0.4384000000000001 # S49
+ -0.2187999999999997 0.2410000000000004 0.4960000000000001 # S50
+ 0.4124666666666663 0.2904333333333332 0.7717333333333334 # S51
+ 0.4478666666666664 0.5743333333333336 0.8293333333333334 # S52
+ 0.0791333333333337 0.6237666666666669 0.1050666666666667 # S53
+ 0.1145333333333334 0.9076666666666666 0.1626666666666667 # S54
+ 0.2541999999999998 0.0429000000000000 0.5616000000000000 # S55
+ 0.2187999999999999 -0.2409999999999999 0.5040000000000001 # S56
+ 0.9208666666666664 0.3762333333333331 0.8949333333333335 # S57
+ 0.8854666666666666 0.0923333333333333 0.8373333333333335 # S58
+ 0.5875333333333332 0.7095666666666669 0.2282666666666666 # S59
+ 0.5521333333333330 0.4256666666666666 0.1706666666666667 # S60
+ 0.2113000000000000 0.2542000000000000 0.4384000000000001 # S61
+ 0.4598000000000000 0.2187999999999998 0.4960000000000001 # S62
+ 0.8779666666666665 0.5875333333333331 0.7717333333333334 # S63
+ 1.1264666666666663 0.5521333333333334 0.8293333333333334 # S64
+ 0.5446333333333335 0.9208666666666671 0.1050666666666667 # S65
+ 0.7931333333333329 0.8854666666666666 0.1626666666666667 # S66
+ -0.2113000000000000 -0.2542000000000000 0.5616000000000000 # S67
+ -0.4598000000000000 -0.2187999999999998 0.5040000000000001 # S68
+ 0.4553666666666666 0.0791333333333332 0.8949333333333335 # S69
+ 0.2068666666666666 0.1145333333333334 0.8373333333333335 # S70
+ 0.1220333333333335 0.4124666666666669 0.2282666666666666 # S71
+ -0.1264666666666664 0.4478666666666666 0.1706666666666667 # S72
+ 0.0000000000000000 1.0000000000000000 0.0382000000000000 # N1
+ 0.1874000000000002 1.1866000000000001 0.0124999999999999 # N2
+ 0.2217000000000001 0.9989999999999999 0.0299000000000000 # N3
+ 0.6666666666666665 0.3333333333333331 0.3715333333333334 # N4
+ 0.8540666666666666 0.5199333333333338 0.3458333333333333 # N5
+ 0.8883666666666667 0.3323333333333334 0.3632333333333334 # N6
+ 0.3333333333333334 0.6666666666666669 0.7048666666666669 # N7
+ 0.5207333333333330 0.8532666666666668 0.6791666666666667 # N8
+ 0.5550333333333329 0.6656666666666666 0.6965666666666668 # N9
+ 0.0000000000000000 1.0000000000000000 -0.0382000000000000 # N10
+ -0.1873999999999996 0.8134000000000002 -0.0124999999999999 # N11
+ -0.2216999999999995 1.0010000000000003 -0.0299000000000000 # N12
+ 0.6666666666666666 0.3333333333333331 0.2951333333333333 # N13
+ 0.4792666666666664 0.1467333333333332 0.3208333333333334 # N14
+ 0.4449666666666665 0.3343333333333334 0.3034333333333333 # N15
+ 0.1459333333333333 0.4800666666666669 0.6541666666666666 # N16
+ 0.1116333333333332 0.6676666666666666 0.6367666666666668 # N17
+ -0.1865999999999995 1.0008000000000001 0.0124999999999999 # N18
+ 0.0009999999999999 1.2227000000000003 0.0299000000000000 # N19
+ 0.4800666666666664 0.3341333333333333 0.3458333333333333 # N20
+ 0.6676666666666664 0.5560333333333335 0.3632333333333334 # N21
+ 0.1467333333333331 0.6674666666666664 0.6791666666666667 # N22
+ 0.3343333333333330 0.8893666666666666 0.6965666666666668 # N23
+ 0.1866000000000000 0.9991999999999999 -0.0124999999999999 # N24
+ -0.0009999999999997 0.7773000000000003 -0.0299000000000000 # N25
+ 0.8532666666666664 0.3325333333333335 0.3208333333333334 # N26
+ 0.6656666666666665 0.1106333333333334 0.3034333333333333 # N27
+ 0.5199333333333334 0.6658666666666667 0.6541666666666666 # N28
+ 0.3323333333333331 0.4439666666666666 0.6367666666666668 # N29
+ -0.0008000000000003 0.8125999999999998 0.0124999999999999 # N30
+ -0.2226999999999998 0.7783000000000000 0.0299000000000000 # N31
+ 0.6658666666666667 0.1459333333333336 0.3458333333333333 # N32
+ 0.4439666666666666 0.1116333333333332 0.3632333333333334 # N33
+ 0.3325333333333332 0.4792666666666667 0.6791666666666667 # N34
+ 0.1106333333333335 0.4449666666666669 0.6965666666666668 # N35
+ 0.0008000000000000 1.1874000000000000 -0.0124999999999999 # N36
+ 0.2227000000000003 1.2217000000000000 -0.0299000000000000 # N37
+ 0.6674666666666668 0.5207333333333334 0.3208333333333334 # N38
+ 0.8893666666666665 0.5550333333333332 0.3034333333333333 # N39
+ 0.3333333333333334 0.6666666666666669 0.6284666666666668 # N40
+ 0.3341333333333330 0.8540666666666669 0.6541666666666666 # N41
+ 0.5560333333333333 0.8883666666666669 0.6367666666666668 # N42
+ -0.0000000000000002 0.0000000000000000 0.4618000000000000 # N43
+ 0.0008000000000000 -0.1866000000000000 0.4875000000000000 # N44
+ 0.2226999999999999 0.0009999999999998 0.4701000000000001 # N45
+ 0.6666666666666664 0.3333333333333331 0.7951333333333332 # N46
+ 0.6674666666666663 0.1467333333333332 0.8208333333333334 # N47
+ 0.8893666666666667 0.3343333333333334 0.8034333333333334 # N48
+ 0.3333333333333332 0.6666666666666669 0.1284666666666666 # N49
+ 0.3341333333333335 0.4800666666666669 0.1541666666666666 # N50
+ 0.5560333333333333 0.6676666666666666 0.1367666666666666 # N51
+ -0.0000000000000002 0.0000000000000000 0.5382000000000000 # N52
+ -0.0008000000000000 0.1866000000000000 0.5125000000000001 # N53
+ -0.2226999999999998 -0.0009999999999998 0.5299000000000000 # N54
+ 0.6666666666666663 0.3333333333333331 0.8715333333333334 # N55
+ 0.6658666666666668 0.5199333333333338 0.8458333333333335 # N56
+ 0.4439666666666667 0.3323333333333334 0.8632333333333334 # N57
+ 0.3333333333333331 0.6666666666666669 0.2048666666666667 # N58
+ 0.3325333333333333 0.8532666666666668 0.1791666666666667 # N59
+ 0.1106333333333333 0.6656666666666666 0.1965666666666667 # N60
+ -0.1873999999999999 -0.0008000000000001 0.4875000000000000 # N61
+ -0.2217000000000001 -0.2227000000000003 0.4701000000000001 # N62
+ 0.4792666666666663 0.3325333333333335 0.8208333333333334 # N63
+ 0.4449666666666663 0.1106333333333334 0.8034333333333334 # N64
+ 0.1459333333333335 0.6658666666666667 0.1541666666666666 # N65
+ 0.1116333333333333 0.4439666666666666 0.1367666666666666 # N66
+ 0.1874000000000000 0.0008000000000001 0.5125000000000001 # N67
+ 0.2217000000000000 0.2227000000000003 0.5299000000000000 # N68
+ 0.8540666666666663 0.3341333333333333 0.8458333333333335 # N69
+ 0.8883666666666665 0.5560333333333335 0.8632333333333334 # N70
+ 0.5207333333333330 0.6674666666666664 0.1791666666666667 # N71
+ 0.5550333333333332 0.8893666666666666 0.1965666666666667 # N72
+ 0.1866000000000002 0.1874000000000001 0.4875000000000000 # N73
+ -0.0010000000000003 0.2217000000000000 0.4701000000000001 # N74
+ 0.8532666666666663 0.5207333333333334 0.8208333333333334 # N75
+ 0.6656666666666663 0.5550333333333332 0.8034333333333334 # N76
+ 0.5199333333333334 0.8540666666666669 0.1541666666666666 # N77
+ 0.3323333333333331 0.8883666666666669 0.1367666666666666 # N78
+ -0.1866000000000001 -0.1874000000000001 0.5125000000000001 # N79
+ 0.0009999999999998 -0.2217000000000000 0.5299000000000000 # N80
+ 0.4800666666666667 0.1459333333333336 0.8458333333333335 # N81
+ 0.6676666666666663 0.1116333333333332 0.8632333333333334 # N82
+ 0.1467333333333333 0.4792666666666667 0.1791666666666667 # N83
+ 0.3343333333333332 0.4449666666666669 0.1965666666666667 # N84
diff --git a/test/data/trigonal/POSCAR-167-2 b/test/data/trigonal/POSCAR-167-2
new file mode 100644
index 0000000..af20e51
--- /dev/null
+++ b/test/data/trigonal/POSCAR-167-2
@@ -0,0 +1,133 @@
+$cell vectors
+1.0
+ 10.0229952837598280 0.0000000000000000 0.0000000000000000
+ -5.0114976418799113 8.6801685377476314 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 25.4709880148305494
+ 18 18 90
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000 # Ba1
+ 0.0000000000000000 0.0000000000000000 0.1637000000000001 # Ba2
+ 0.6666666666666667 0.3333333333333331 0.3333333333333331 # Ba3
+ 0.6666666666666667 0.3333333333333331 0.4970333333333334 # Ba4
+ 0.3333333333333332 0.6666666666666667 0.6666666666666666 # Ba5
+ 0.3333333333333332 0.6666666666666667 0.8303666666666667 # Ba6
+ 0.0000000000000000 0.0000000000000000 0.8362999999999998 # Ba7
+ 0.6666666666666667 0.3333333333333331 0.1696333333333333 # Ba8
+ 0.3333333333333332 0.6666666666666667 0.5029666666666667 # Ba9
+ 0.0000000000000000 0.0000000000000000 0.5000000000000001 # Ba10
+ 0.0000000000000000 0.0000000000000000 0.3363000000000000 # Ba11
+ 0.6666666666666667 0.3333333333333331 0.8333333333333333 # Ba12
+ 0.6666666666666667 0.3333333333333331 0.6696333333333333 # Ba13
+ 0.3333333333333332 0.6666666666666667 0.1666666666666667 # Ba14
+ 0.3333333333333332 0.6666666666666667 0.0029666666666666 # Ba15
+ 0.0000000000000000 0.0000000000000000 0.6637000000000001 # Ba16
+ 0.6666666666666667 0.3333333333333331 0.9970333333333331 # Ba17
+ 0.3333333333333332 0.6666666666666667 0.3303666666666667 # Ba18
+ 0.3461000000000001 0.0000000000000000 0.2500000000000001 # Ru1
+ 0.0127666666666668 0.3333333333333331 0.5833333333333334 # Ru2
+ 0.6794333333333333 0.6666666666666667 0.9166666666666667 # Ru3
+ 0.6539000000000000 0.0000000000000000 0.7499999999999998 # Ru4
+ 0.3205666666666667 0.3333333333333331 0.0833333333333333 # Ru5
+ 0.9872333333333339 0.6666666666666667 0.4166666666666666 # Ru6
+ 0.0000000000000000 0.3461000000000003 0.2500000000000001 # Ru7
+ 0.6666666666666669 0.6794333333333334 0.5833333333333334 # Ru8
+ 0.3333333333333336 0.0127666666666666 0.9166666666666667 # Ru9
+ 0.0000000000000002 0.6539000000000003 0.7499999999999998 # Ru10
+ 0.6666666666666670 0.9872333333333332 0.0833333333333333 # Ru11
+ 0.3333333333333333 0.3205666666666664 0.4166666666666666 # Ru12
+ 0.6539000000000003 0.6539000000000003 0.2500000000000001 # Ru13
+ 0.3205666666666668 0.9872333333333332 0.5833333333333334 # Ru14
+ 0.9872333333333332 0.3205666666666664 0.9166666666666667 # Ru15
+ 0.3461000000000001 0.3461000000000003 0.7499999999999998 # Ru16
+ 0.0127666666666668 0.6794333333333334 0.0833333333333333 # Ru17
+ 0.6794333333333336 0.0127666666666666 0.4166666666666666 # Ru18
+ 0.1706000000000000 0.0000000000000000 0.2500000000000001 # O1
+ 0.4376999999999999 0.0040999999999999 0.1910000000000000 # O2
+ 0.4593999999999998 0.2345999999999998 0.2502000000000000 # O3
+ -0.1627333333333333 0.3333333333333331 0.5833333333333334 # O4
+ 0.1043666666666669 0.3374333333333336 0.5243333333333332 # O5
+ 0.1260666666666667 0.5679333333333335 0.5835333333333332 # O6
+ 0.5039333333333332 0.6666666666666667 0.9166666666666667 # O7
+ 0.7710333333333337 0.6707666666666666 0.8576666666666668 # O8
+ 0.7927333333333335 0.9012666666666665 0.9168666666666666 # O9
+ 0.8294000000000000 0.0000000000000000 0.7499999999999998 # O10
+ 0.5623000000000001 -0.0040999999999999 0.8089999999999999 # O11
+ 0.5406000000000004 -0.2345999999999998 0.7498000000000000 # O12
+ 0.4960666666666668 0.3333333333333331 0.0833333333333333 # O13
+ 0.2289666666666668 0.3292333333333332 0.1423333333333333 # O14
+ 0.2072666666666665 0.0987333333333333 0.0831333333333333 # O15
+ 1.1627333333333332 0.6666666666666667 0.4166666666666666 # O16
+ 0.8956333333333333 0.6625666666666667 0.4756666666666667 # O17
+ 0.8739333333333337 0.4320666666666669 0.4164666666666667 # O18
+ 0.0000000000000002 0.1706000000000000 0.2500000000000001 # O19
+ -0.0041000000000000 0.4335999999999997 0.1910000000000000 # O20
+ -0.2346000000000000 0.2247999999999999 0.2502000000000000 # O21
+ 0.6666666666666671 0.5039333333333331 0.5833333333333334 # O22
+ 0.6625666666666670 0.7669333333333334 0.5243333333333332 # O23
+ 0.4320666666666668 0.5581333333333330 0.5835333333333332 # O24
+ 0.3333333333333335 -0.1627333333333331 0.9166666666666667 # O25
+ 0.3292333333333333 0.1002666666666666 0.8576666666666668 # O26
+ 0.0987333333333334 -0.1085333333333332 0.9168666666666666 # O27
+ 0.0000000000000003 0.8293999999999998 0.7499999999999998 # O28
+ 0.0041000000000004 0.5664000000000000 0.8089999999999999 # O29
+ 0.2345999999999999 0.7751999999999999 0.7498000000000000 # O30
+ 0.6666666666666663 1.1627333333333327 0.0833333333333333 # O31
+ 0.6707666666666666 0.8997333333333332 0.1423333333333333 # O32
+ 0.9012666666666669 1.1085333333333336 0.0831333333333333 # O33
+ 0.3333333333333336 0.4960666666666668 0.4166666666666666 # O34
+ 0.3374333333333335 0.2330666666666664 0.4756666666666667 # O35
+ 0.5679333333333332 0.4418666666666669 0.4164666666666667 # O36
+ 0.8293999999999997 0.8293999999999998 0.2500000000000001 # O37
+ 0.5664000000000000 0.5623000000000001 0.1910000000000000 # O38
+ 0.7752000000000003 0.5406000000000002 0.2502000000000000 # O39
+ 0.4960666666666663 1.1627333333333327 0.5833333333333334 # O40
+ 0.2330666666666667 0.8956333333333333 0.5243333333333332 # O41
+ 0.4418666666666669 0.8739333333333332 0.5835333333333332 # O42
+ 1.1627333333333338 0.4960666666666668 0.9166666666666667 # O43
+ 0.8997333333333332 0.2289666666666665 0.8576666666666668 # O44
+ 1.1085333333333338 0.2072666666666664 0.9168666666666666 # O45
+ 0.1706000000000003 0.1706000000000000 0.7499999999999998 # O46
+ 0.4335999999999999 0.4376999999999996 0.8089999999999999 # O47
+ 0.2247999999999997 0.4593999999999996 0.7498000000000000 # O48
+ -0.1627333333333336 0.5039333333333331 0.0833333333333333 # O49
+ 0.1002666666666668 0.7710333333333332 0.1423333333333333 # O50
+ -0.1085333333333333 0.7927333333333334 0.0831333333333333 # O51
+ 0.5039333333333336 -0.1627333333333331 0.4166666666666666 # O52
+ 0.7669333333333332 0.1043666666666666 0.4756666666666667 # O53
+ 0.5581333333333336 0.1260666666666666 0.4164666666666667 # O54
+ 0.4336000000000000 -0.0040999999999999 0.3089999999999999 # O55
+ 0.2248000000000001 -0.2345999999999998 0.2498000000000000 # O56
+ 0.1002666666666667 0.3292333333333332 0.6423333333333334 # O57
+ -0.1085333333333333 0.0987333333333333 0.5831333333333333 # O58
+ 0.7669333333333337 0.6625666666666667 0.9756666666666666 # O59
+ 0.5581333333333338 0.4320666666666669 0.9164666666666667 # O60
+ 0.5664000000000001 0.0040999999999999 0.6910000000000001 # O61
+ 0.7752000000000001 0.2345999999999998 0.7502000000000001 # O62
+ 0.2330666666666671 0.3374333333333336 0.0243333333333334 # O63
+ 0.4418666666666670 0.5679333333333335 0.0835333333333334 # O64
+ 0.8997333333333333 0.6707666666666666 0.3576666666666667 # O65
+ 1.1085333333333334 0.9012666666666665 0.4168666666666667 # O66
+ 0.5622999999999999 0.5664000000000000 0.3089999999999999 # O67
+ 0.5406000000000002 0.7751999999999999 0.2498000000000000 # O68
+ 0.2289666666666671 0.8997333333333332 0.6423333333333334 # O69
+ 0.2072666666666671 1.1085333333333336 0.5831333333333333 # O70
+ 0.8956333333333335 0.2330666666666664 0.9756666666666666 # O71
+ 0.8739333333333336 0.4418666666666669 0.9164666666666667 # O72
+ 0.4377000000000000 0.4335999999999997 0.6910000000000001 # O73
+ 0.4594000000000003 0.2247999999999999 0.7502000000000001 # O74
+ 0.1043666666666665 0.7669333333333334 0.0243333333333334 # O75
+ 0.1260666666666664 0.5581333333333330 0.0835333333333334 # O76
+ 0.7710333333333335 0.1002666666666666 0.3576666666666667 # O77
+ 0.7927333333333332 -0.1085333333333332 0.4168666666666667 # O78
+ 0.0041000000000000 0.4376999999999996 0.3089999999999999 # O79
+ 0.2345999999999997 0.4593999999999996 0.2498000000000000 # O80
+ 0.6707666666666672 0.7710333333333332 0.6423333333333334 # O81
+ 0.9012666666666669 0.7927333333333334 0.5831333333333333 # O82
+ 0.3374333333333334 0.1043666666666666 0.9756666666666666 # O83
+ 0.5679333333333336 0.1260666666666666 0.9164666666666667 # O84
+ -0.0040999999999997 0.5623000000000001 0.6910000000000001 # O85
+ -0.2345999999999999 0.5406000000000002 0.7502000000000001 # O86
+ 0.6625666666666666 0.8956333333333333 0.0243333333333334 # O87
+ 0.4320666666666669 0.8739333333333332 0.0835333333333334 # O88
+ 0.3292333333333334 0.2289666666666665 0.3576666666666667 # O89
+ 0.0987333333333332 0.2072666666666664 0.4168666666666667 # O90
diff --git a/test/data/trigonal/POSCAR-167-3 b/test/data/trigonal/POSCAR-167-3
new file mode 100644
index 0000000..76a0ec7
--- /dev/null
+++ b/test/data/trigonal/POSCAR-167-3
@@ -0,0 +1,37 @@
+$cell vectors
+1.0
+ 4.9491976711946686 0.0000000000000000 0.0000000000000000
+ -2.4745988355973312 4.2861309116053663 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 13.9979934133562907
+ 12 18
+Direct
+ 0.0000000000000000 0.0000000000000000 0.3463000000000001 # V1
+ 0.0000000000000000 0.0000000000000000 0.1537000000000001 # V2
+ 0.0000000000000000 0.0000000000000000 0.6536999999999998 # V3
+ 0.0000000000000000 0.0000000000000000 0.8462999999999999 # V4
+ 0.6666666666666671 0.3333333333333338 0.6796333333333332 # V5
+ 0.6666666666666671 0.3333333333333338 0.4870333333333332 # V6
+ 0.6666666666666671 0.3333333333333338 0.9870333333333333 # V7
+ 0.6666666666666671 0.3333333333333338 0.1796333333333334 # V8
+ 0.3333333333333328 0.6666666666666663 0.0129666666666667 # V9
+ 0.3333333333333328 0.6666666666666663 0.8203666666666666 # V10
+ 0.3333333333333328 0.6666666666666663 0.3203666666666668 # V11
+ 0.3333333333333328 0.6666666666666663 0.5129666666666669 # V12
+ 0.3122000000000004 0.0000000000000000 0.2499999999999999 # O1
+ -0.0000000000000006 0.3121999999999995 0.2499999999999999 # O2
+ 0.6877999999999994 0.6877999999999992 0.2499999999999999 # O3
+ 0.6877999999999994 0.0000000000000000 0.7500000000000000 # O4
+ -0.0000000000000001 0.6877999999999992 0.7500000000000000 # O5
+ 0.3121999999999998 0.3121999999999995 0.7500000000000000 # O6
+ 0.9788666666666663 0.3333333333333338 0.5833333333333330 # O7
+ 0.6666666666666665 0.6455333333333333 0.5833333333333330 # O8
+ 0.3544666666666668 0.0211333333333330 0.5833333333333330 # O9
+ 0.3544666666666667 0.3333333333333338 0.0833333333333332 # O10
+ 0.6666666666666662 0.0211333333333330 0.0833333333333332 # O11
+ 0.9788666666666659 0.6455333333333333 0.0833333333333332 # O12
+ 0.6455333333333332 0.6666666666666663 0.9166666666666669 # O13
+ 0.3333333333333338 0.9788666666666671 0.9166666666666669 # O14
+ 0.0211333333333340 0.3544666666666667 0.9166666666666669 # O15
+ 0.0211333333333333 0.6666666666666663 0.4166666666666666 # O16
+ 0.3333333333333334 0.3544666666666667 0.4166666666666666 # O17
+ 0.6455333333333325 0.9788666666666657 0.4166666666666666 # O18
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-01 b/test/data/virtual_structure/poscar-221/POSCAR-01
new file mode 100644
index 0000000..aff8807
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-01
@@ -0,0 +1,55 @@
+group 1
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 48
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-02 b/test/data/virtual_structure/poscar-221/POSCAR-02
new file mode 100644
index 0000000..ab0f89d
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-02
@@ -0,0 +1,55 @@
+group 2
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-03 b/test/data/virtual_structure/poscar-221/POSCAR-03
new file mode 100644
index 0000000..bdbf613
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-03
@@ -0,0 +1,55 @@
+group 3
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-04 b/test/data/virtual_structure/poscar-221/POSCAR-04
new file mode 100644
index 0000000..046cf6d
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-04
@@ -0,0 +1,55 @@
+group 4
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-05 b/test/data/virtual_structure/poscar-221/POSCAR-05
new file mode 100644
index 0000000..88d66d6
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-05
@@ -0,0 +1,55 @@
+group 5
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 16 16 16
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-06 b/test/data/virtual_structure/poscar-221/POSCAR-06
new file mode 100644
index 0000000..b83317a
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-06
@@ -0,0 +1,55 @@
+group 6
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-07 b/test/data/virtual_structure/poscar-221/POSCAR-07
new file mode 100644
index 0000000..00fffa4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-07
@@ -0,0 +1,55 @@
+group 7
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-08 b/test/data/virtual_structure/poscar-221/POSCAR-08
new file mode 100644
index 0000000..a8b80c4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-08
@@ -0,0 +1,55 @@
+group 8
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-09 b/test/data/virtual_structure/poscar-221/POSCAR-09
new file mode 100644
index 0000000..fc14a7e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-09
@@ -0,0 +1,55 @@
+group 9
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-10 b/test/data/virtual_structure/poscar-221/POSCAR-10
new file mode 100644
index 0000000..46eaa7b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-10
@@ -0,0 +1,55 @@
+group 10
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-11 b/test/data/virtual_structure/poscar-221/POSCAR-11
new file mode 100644
index 0000000..adfa22a
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-11
@@ -0,0 +1,55 @@
+group 11
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-12 b/test/data/virtual_structure/poscar-221/POSCAR-12
new file mode 100644
index 0000000..a2b74bf
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-12
@@ -0,0 +1,55 @@
+group 12
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-13 b/test/data/virtual_structure/poscar-221/POSCAR-13
new file mode 100644
index 0000000..ae650a7
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-13
@@ -0,0 +1,55 @@
+group 13
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-14 b/test/data/virtual_structure/poscar-221/POSCAR-14
new file mode 100644
index 0000000..4c9c916
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-14
@@ -0,0 +1,55 @@
+group 14
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-15 b/test/data/virtual_structure/poscar-221/POSCAR-15
new file mode 100644
index 0000000..a9f928c
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-15
@@ -0,0 +1,55 @@
+group 15
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-16 b/test/data/virtual_structure/poscar-221/POSCAR-16
new file mode 100644
index 0000000..317710e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-16
@@ -0,0 +1,55 @@
+group 16
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-17 b/test/data/virtual_structure/poscar-221/POSCAR-17
new file mode 100644
index 0000000..c64b1f5
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-17
@@ -0,0 +1,55 @@
+group 17
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-18 b/test/data/virtual_structure/poscar-221/POSCAR-18
new file mode 100644
index 0000000..1b1bafa
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-18
@@ -0,0 +1,55 @@
+group 18
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-19 b/test/data/virtual_structure/poscar-221/POSCAR-19
new file mode 100644
index 0000000..2c8f109
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-19
@@ -0,0 +1,55 @@
+group 19
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-20 b/test/data/virtual_structure/poscar-221/POSCAR-20
new file mode 100644
index 0000000..c8661cc
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-20
@@ -0,0 +1,55 @@
+group 20
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-21 b/test/data/virtual_structure/poscar-221/POSCAR-21
new file mode 100644
index 0000000..4a6e4a8
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-21
@@ -0,0 +1,55 @@
+group 21
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-22 b/test/data/virtual_structure/poscar-221/POSCAR-22
new file mode 100644
index 0000000..c995ea3
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-22
@@ -0,0 +1,55 @@
+group 22
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-23 b/test/data/virtual_structure/poscar-221/POSCAR-23
new file mode 100644
index 0000000..d1d98e5
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-23
@@ -0,0 +1,55 @@
+group 23
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-24 b/test/data/virtual_structure/poscar-221/POSCAR-24
new file mode 100644
index 0000000..869d21c
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-24
@@ -0,0 +1,55 @@
+group 24
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-25 b/test/data/virtual_structure/poscar-221/POSCAR-25
new file mode 100644
index 0000000..38d744e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-25
@@ -0,0 +1,55 @@
+group 25
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-26 b/test/data/virtual_structure/poscar-221/POSCAR-26
new file mode 100644
index 0000000..6d37d50
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-26
@@ -0,0 +1,55 @@
+group 26
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-27 b/test/data/virtual_structure/poscar-221/POSCAR-27
new file mode 100644
index 0000000..edbdbee
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-27
@@ -0,0 +1,55 @@
+group 27
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-28 b/test/data/virtual_structure/poscar-221/POSCAR-28
new file mode 100644
index 0000000..bf30265
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-28
@@ -0,0 +1,55 @@
+group 28
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-29 b/test/data/virtual_structure/poscar-221/POSCAR-29
new file mode 100644
index 0000000..b5d3e6e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-29
@@ -0,0 +1,55 @@
+group 29
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-30 b/test/data/virtual_structure/poscar-221/POSCAR-30
new file mode 100644
index 0000000..b704a90
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-30
@@ -0,0 +1,55 @@
+group 30
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-31 b/test/data/virtual_structure/poscar-221/POSCAR-31
new file mode 100644
index 0000000..3406740
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-31
@@ -0,0 +1,55 @@
+group 31
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-32 b/test/data/virtual_structure/poscar-221/POSCAR-32
new file mode 100644
index 0000000..5732862
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-32
@@ -0,0 +1,55 @@
+group 32
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-221/POSCAR-33 b/test/data/virtual_structure/poscar-221/POSCAR-33
new file mode 100644
index 0000000..df2b8d1
--- /dev/null
+++ b/test/data/virtual_structure/poscar-221/POSCAR-33
@@ -0,0 +1,55 @@
+group 33
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-01 b/test/data/virtual_structure/poscar-222/POSCAR-01
new file mode 100644
index 0000000..316e529
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-01
@@ -0,0 +1,55 @@
+group 1
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 48
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-02 b/test/data/virtual_structure/poscar-222/POSCAR-02
new file mode 100644
index 0000000..9936991
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-02
@@ -0,0 +1,55 @@
+group 2
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-03 b/test/data/virtual_structure/poscar-222/POSCAR-03
new file mode 100644
index 0000000..2eb33d0
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-03
@@ -0,0 +1,55 @@
+group 3
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-04 b/test/data/virtual_structure/poscar-222/POSCAR-04
new file mode 100644
index 0000000..e523131
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-04
@@ -0,0 +1,55 @@
+group 4
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-05 b/test/data/virtual_structure/poscar-222/POSCAR-05
new file mode 100644
index 0000000..9b77cf6
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-05
@@ -0,0 +1,55 @@
+group 5
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 16 16 16
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-06 b/test/data/virtual_structure/poscar-222/POSCAR-06
new file mode 100644
index 0000000..95c279d
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-06
@@ -0,0 +1,55 @@
+group 6
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-07 b/test/data/virtual_structure/poscar-222/POSCAR-07
new file mode 100644
index 0000000..88452d4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-07
@@ -0,0 +1,55 @@
+group 7
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-08 b/test/data/virtual_structure/poscar-222/POSCAR-08
new file mode 100644
index 0000000..1461805
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-08
@@ -0,0 +1,55 @@
+group 8
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-09 b/test/data/virtual_structure/poscar-222/POSCAR-09
new file mode 100644
index 0000000..7122d02
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-09
@@ -0,0 +1,55 @@
+group 9
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-10 b/test/data/virtual_structure/poscar-222/POSCAR-10
new file mode 100644
index 0000000..cf09707
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-10
@@ -0,0 +1,55 @@
+group 10
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-11 b/test/data/virtual_structure/poscar-222/POSCAR-11
new file mode 100644
index 0000000..9c90926
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-11
@@ -0,0 +1,55 @@
+group 11
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-12 b/test/data/virtual_structure/poscar-222/POSCAR-12
new file mode 100644
index 0000000..81ab6af
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-12
@@ -0,0 +1,55 @@
+group 12
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-13 b/test/data/virtual_structure/poscar-222/POSCAR-13
new file mode 100644
index 0000000..5266bd7
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-13
@@ -0,0 +1,55 @@
+group 13
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-14 b/test/data/virtual_structure/poscar-222/POSCAR-14
new file mode 100644
index 0000000..77fc9c5
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-14
@@ -0,0 +1,55 @@
+group 14
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-15 b/test/data/virtual_structure/poscar-222/POSCAR-15
new file mode 100644
index 0000000..6212fd6
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-15
@@ -0,0 +1,55 @@
+group 15
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-16 b/test/data/virtual_structure/poscar-222/POSCAR-16
new file mode 100644
index 0000000..77d099c
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-16
@@ -0,0 +1,55 @@
+group 16
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-17 b/test/data/virtual_structure/poscar-222/POSCAR-17
new file mode 100644
index 0000000..f740f7d
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-17
@@ -0,0 +1,55 @@
+group 17
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-18 b/test/data/virtual_structure/poscar-222/POSCAR-18
new file mode 100644
index 0000000..c168621
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-18
@@ -0,0 +1,55 @@
+group 18
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-19 b/test/data/virtual_structure/poscar-222/POSCAR-19
new file mode 100644
index 0000000..4530819
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-19
@@ -0,0 +1,55 @@
+group 19
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-20 b/test/data/virtual_structure/poscar-222/POSCAR-20
new file mode 100644
index 0000000..34db3a4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-20
@@ -0,0 +1,55 @@
+group 20
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-21 b/test/data/virtual_structure/poscar-222/POSCAR-21
new file mode 100644
index 0000000..a3b357e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-21
@@ -0,0 +1,55 @@
+group 21
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-22 b/test/data/virtual_structure/poscar-222/POSCAR-22
new file mode 100644
index 0000000..a263439
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-22
@@ -0,0 +1,55 @@
+group 22
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-23 b/test/data/virtual_structure/poscar-222/POSCAR-23
new file mode 100644
index 0000000..afc04d4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-23
@@ -0,0 +1,55 @@
+group 23
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-24 b/test/data/virtual_structure/poscar-222/POSCAR-24
new file mode 100644
index 0000000..76a62da
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-24
@@ -0,0 +1,55 @@
+group 24
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-25 b/test/data/virtual_structure/poscar-222/POSCAR-25
new file mode 100644
index 0000000..55151d0
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-25
@@ -0,0 +1,55 @@
+group 25
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-26 b/test/data/virtual_structure/poscar-222/POSCAR-26
new file mode 100644
index 0000000..42dad83
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-26
@@ -0,0 +1,55 @@
+group 26
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-27 b/test/data/virtual_structure/poscar-222/POSCAR-27
new file mode 100644
index 0000000..e519ae5
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-27
@@ -0,0 +1,55 @@
+group 27
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-28 b/test/data/virtual_structure/poscar-222/POSCAR-28
new file mode 100644
index 0000000..dd2b0f1
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-28
@@ -0,0 +1,55 @@
+group 28
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-29 b/test/data/virtual_structure/poscar-222/POSCAR-29
new file mode 100644
index 0000000..0e1022b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-29
@@ -0,0 +1,55 @@
+group 29
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-30 b/test/data/virtual_structure/poscar-222/POSCAR-30
new file mode 100644
index 0000000..eab0804
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-30
@@ -0,0 +1,55 @@
+group 30
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-31 b/test/data/virtual_structure/poscar-222/POSCAR-31
new file mode 100644
index 0000000..8c881ed
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-31
@@ -0,0 +1,55 @@
+group 31
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-32 b/test/data/virtual_structure/poscar-222/POSCAR-32
new file mode 100644
index 0000000..5f05f2a
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-32
@@ -0,0 +1,55 @@
+group 32
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-222/POSCAR-33 b/test/data/virtual_structure/poscar-222/POSCAR-33
new file mode 100644
index 0000000..3a6045e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-222/POSCAR-33
@@ -0,0 +1,55 @@
+group 33
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.8585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-01 b/test/data/virtual_structure/poscar-223/POSCAR-01
new file mode 100644
index 0000000..6db86f4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-01
@@ -0,0 +1,55 @@
+group 1
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 48
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-02 b/test/data/virtual_structure/poscar-223/POSCAR-02
new file mode 100644
index 0000000..1b5cbb4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-02
@@ -0,0 +1,55 @@
+group 2
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-03 b/test/data/virtual_structure/poscar-223/POSCAR-03
new file mode 100644
index 0000000..46ac97b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-03
@@ -0,0 +1,55 @@
+group 3
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-04 b/test/data/virtual_structure/poscar-223/POSCAR-04
new file mode 100644
index 0000000..03da096
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-04
@@ -0,0 +1,55 @@
+group 4
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-05 b/test/data/virtual_structure/poscar-223/POSCAR-05
new file mode 100644
index 0000000..0657d99
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-05
@@ -0,0 +1,55 @@
+group 5
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 16 16 16
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-06 b/test/data/virtual_structure/poscar-223/POSCAR-06
new file mode 100644
index 0000000..a3bc025
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-06
@@ -0,0 +1,55 @@
+group 6
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-07 b/test/data/virtual_structure/poscar-223/POSCAR-07
new file mode 100644
index 0000000..c3cf7ab
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-07
@@ -0,0 +1,55 @@
+group 7
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-08 b/test/data/virtual_structure/poscar-223/POSCAR-08
new file mode 100644
index 0000000..e4c79d1
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-08
@@ -0,0 +1,55 @@
+group 8
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-09 b/test/data/virtual_structure/poscar-223/POSCAR-09
new file mode 100644
index 0000000..afab687
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-09
@@ -0,0 +1,55 @@
+group 9
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-10 b/test/data/virtual_structure/poscar-223/POSCAR-10
new file mode 100644
index 0000000..f151927
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-10
@@ -0,0 +1,55 @@
+group 10
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-11 b/test/data/virtual_structure/poscar-223/POSCAR-11
new file mode 100644
index 0000000..4fdffae
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-11
@@ -0,0 +1,55 @@
+group 11
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-12 b/test/data/virtual_structure/poscar-223/POSCAR-12
new file mode 100644
index 0000000..66d3171
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-12
@@ -0,0 +1,55 @@
+group 12
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-13 b/test/data/virtual_structure/poscar-223/POSCAR-13
new file mode 100644
index 0000000..ae81db5
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-13
@@ -0,0 +1,55 @@
+group 13
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-14 b/test/data/virtual_structure/poscar-223/POSCAR-14
new file mode 100644
index 0000000..c25ae86
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-14
@@ -0,0 +1,55 @@
+group 14
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-15 b/test/data/virtual_structure/poscar-223/POSCAR-15
new file mode 100644
index 0000000..f35ee9e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-15
@@ -0,0 +1,55 @@
+group 15
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-16 b/test/data/virtual_structure/poscar-223/POSCAR-16
new file mode 100644
index 0000000..19e09f5
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-16
@@ -0,0 +1,55 @@
+group 16
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-17 b/test/data/virtual_structure/poscar-223/POSCAR-17
new file mode 100644
index 0000000..5041e3b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-17
@@ -0,0 +1,55 @@
+group 17
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-18 b/test/data/virtual_structure/poscar-223/POSCAR-18
new file mode 100644
index 0000000..73d9e08
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-18
@@ -0,0 +1,55 @@
+group 18
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-19 b/test/data/virtual_structure/poscar-223/POSCAR-19
new file mode 100644
index 0000000..23c0523
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-19
@@ -0,0 +1,55 @@
+group 19
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-20 b/test/data/virtual_structure/poscar-223/POSCAR-20
new file mode 100644
index 0000000..6daf01f
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-20
@@ -0,0 +1,55 @@
+group 20
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-21 b/test/data/virtual_structure/poscar-223/POSCAR-21
new file mode 100644
index 0000000..e53ef3e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-21
@@ -0,0 +1,55 @@
+group 21
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-22 b/test/data/virtual_structure/poscar-223/POSCAR-22
new file mode 100644
index 0000000..975fb5c
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-22
@@ -0,0 +1,55 @@
+group 22
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-23 b/test/data/virtual_structure/poscar-223/POSCAR-23
new file mode 100644
index 0000000..2542659
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-23
@@ -0,0 +1,55 @@
+group 23
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-24 b/test/data/virtual_structure/poscar-223/POSCAR-24
new file mode 100644
index 0000000..1adce8f
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-24
@@ -0,0 +1,55 @@
+group 24
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-25 b/test/data/virtual_structure/poscar-223/POSCAR-25
new file mode 100644
index 0000000..403fc24
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-25
@@ -0,0 +1,55 @@
+group 25
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-26 b/test/data/virtual_structure/poscar-223/POSCAR-26
new file mode 100644
index 0000000..76b3431
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-26
@@ -0,0 +1,55 @@
+group 26
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-27 b/test/data/virtual_structure/poscar-223/POSCAR-27
new file mode 100644
index 0000000..a6b2402
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-27
@@ -0,0 +1,55 @@
+group 27
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-28 b/test/data/virtual_structure/poscar-223/POSCAR-28
new file mode 100644
index 0000000..5bbed4f
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-28
@@ -0,0 +1,55 @@
+group 28
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-29 b/test/data/virtual_structure/poscar-223/POSCAR-29
new file mode 100644
index 0000000..db873e2
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-29
@@ -0,0 +1,55 @@
+group 29
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-30 b/test/data/virtual_structure/poscar-223/POSCAR-30
new file mode 100644
index 0000000..9db1804
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-30
@@ -0,0 +1,55 @@
+group 30
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-31 b/test/data/virtual_structure/poscar-223/POSCAR-31
new file mode 100644
index 0000000..22c2623
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-31
@@ -0,0 +1,55 @@
+group 31
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-32 b/test/data/virtual_structure/poscar-223/POSCAR-32
new file mode 100644
index 0000000..550369b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-32
@@ -0,0 +1,55 @@
+group 32
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-223/POSCAR-33 b/test/data/virtual_structure/poscar-223/POSCAR-33
new file mode 100644
index 0000000..3c450e6
--- /dev/null
+++ b/test/data/virtual_structure/poscar-223/POSCAR-33
@@ -0,0 +1,55 @@
+group 33
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.6683400000000000
+ 0.1414200000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.8316600000000000
+ 0.7236000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.7236000000000000
+ 0.6414200000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.8316600000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-01 b/test/data/virtual_structure/poscar-224/POSCAR-01
new file mode 100644
index 0000000..789658f
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-01
@@ -0,0 +1,55 @@
+group 1
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 48
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-02 b/test/data/virtual_structure/poscar-224/POSCAR-02
new file mode 100644
index 0000000..405d16e
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-02
@@ -0,0 +1,55 @@
+group 2
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-03 b/test/data/virtual_structure/poscar-224/POSCAR-03
new file mode 100644
index 0000000..2089fe6
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-03
@@ -0,0 +1,55 @@
+group 3
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-04 b/test/data/virtual_structure/poscar-224/POSCAR-04
new file mode 100644
index 0000000..452b6ca
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-04
@@ -0,0 +1,55 @@
+group 4
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 24 24
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-05 b/test/data/virtual_structure/poscar-224/POSCAR-05
new file mode 100644
index 0000000..522f858
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-05
@@ -0,0 +1,55 @@
+group 5
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 16 16 16
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-06 b/test/data/virtual_structure/poscar-224/POSCAR-06
new file mode 100644
index 0000000..03dd5ea
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-06
@@ -0,0 +1,55 @@
+group 6
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-07 b/test/data/virtual_structure/poscar-224/POSCAR-07
new file mode 100644
index 0000000..9f55ce6
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-07
@@ -0,0 +1,55 @@
+group 7
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 12 12 12 12
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-08 b/test/data/virtual_structure/poscar-224/POSCAR-08
new file mode 100644
index 0000000..f0ff3d3
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-08
@@ -0,0 +1,55 @@
+group 8
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-09 b/test/data/virtual_structure/poscar-224/POSCAR-09
new file mode 100644
index 0000000..f38c279
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-09
@@ -0,0 +1,55 @@
+group 9
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-10 b/test/data/virtual_structure/poscar-224/POSCAR-10
new file mode 100644
index 0000000..5e03dce
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-10
@@ -0,0 +1,55 @@
+group 10
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-11 b/test/data/virtual_structure/poscar-224/POSCAR-11
new file mode 100644
index 0000000..b5b02a4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-11
@@ -0,0 +1,55 @@
+group 11
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-12 b/test/data/virtual_structure/poscar-224/POSCAR-12
new file mode 100644
index 0000000..2346176
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-12
@@ -0,0 +1,55 @@
+group 12
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-13 b/test/data/virtual_structure/poscar-224/POSCAR-13
new file mode 100644
index 0000000..7d202de
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-13
@@ -0,0 +1,55 @@
+group 13
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-14 b/test/data/virtual_structure/poscar-224/POSCAR-14
new file mode 100644
index 0000000..82af072
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-14
@@ -0,0 +1,55 @@
+group 14
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 8 8 8 8 8 8
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-15 b/test/data/virtual_structure/poscar-224/POSCAR-15
new file mode 100644
index 0000000..73dcfcc
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-15
@@ -0,0 +1,55 @@
+group 15
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-16 b/test/data/virtual_structure/poscar-224/POSCAR-16
new file mode 100644
index 0000000..258fc99
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-16
@@ -0,0 +1,55 @@
+group 16
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-17 b/test/data/virtual_structure/poscar-224/POSCAR-17
new file mode 100644
index 0000000..5b1f5a2
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-17
@@ -0,0 +1,55 @@
+group 17
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 6 6 6 6 6 6 6 6
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-18 b/test/data/virtual_structure/poscar-224/POSCAR-18
new file mode 100644
index 0000000..4b1d612
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-18
@@ -0,0 +1,55 @@
+group 18
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-19 b/test/data/virtual_structure/poscar-224/POSCAR-19
new file mode 100644
index 0000000..9d0737b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-19
@@ -0,0 +1,55 @@
+group 19
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-20 b/test/data/virtual_structure/poscar-224/POSCAR-20
new file mode 100644
index 0000000..2d3291f
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-20
@@ -0,0 +1,55 @@
+group 20
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-21 b/test/data/virtual_structure/poscar-224/POSCAR-21
new file mode 100644
index 0000000..01a9490
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-21
@@ -0,0 +1,55 @@
+group 21
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-22 b/test/data/virtual_structure/poscar-224/POSCAR-22
new file mode 100644
index 0000000..b3ce8f3
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-22
@@ -0,0 +1,55 @@
+group 22
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-23 b/test/data/virtual_structure/poscar-224/POSCAR-23
new file mode 100644
index 0000000..0779a1c
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-23
@@ -0,0 +1,55 @@
+group 23
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-24 b/test/data/virtual_structure/poscar-224/POSCAR-24
new file mode 100644
index 0000000..5534c44
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-24
@@ -0,0 +1,55 @@
+group 24
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-25 b/test/data/virtual_structure/poscar-224/POSCAR-25
new file mode 100644
index 0000000..9d8a4eb
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-25
@@ -0,0 +1,55 @@
+group 25
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-26 b/test/data/virtual_structure/poscar-224/POSCAR-26
new file mode 100644
index 0000000..81ccb15
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-26
@@ -0,0 +1,55 @@
+group 26
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-27 b/test/data/virtual_structure/poscar-224/POSCAR-27
new file mode 100644
index 0000000..0479b35
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-27
@@ -0,0 +1,55 @@
+group 27
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-28 b/test/data/virtual_structure/poscar-224/POSCAR-28
new file mode 100644
index 0000000..2857a09
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-28
@@ -0,0 +1,55 @@
+group 28
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-29 b/test/data/virtual_structure/poscar-224/POSCAR-29
new file mode 100644
index 0000000..94a201b
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-29
@@ -0,0 +1,55 @@
+group 29
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-30 b/test/data/virtual_structure/poscar-224/POSCAR-30
new file mode 100644
index 0000000..d2096a9
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-30
@@ -0,0 +1,55 @@
+group 30
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-31 b/test/data/virtual_structure/poscar-224/POSCAR-31
new file mode 100644
index 0000000..2d355ba
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-31
@@ -0,0 +1,55 @@
+group 31
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-32 b/test/data/virtual_structure/poscar-224/POSCAR-32
new file mode 100644
index 0000000..83270df
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-32
@@ -0,0 +1,55 @@
+group 32
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar-224/POSCAR-33 b/test/data/virtual_structure/poscar-224/POSCAR-33
new file mode 100644
index 0000000..f47e9d4
--- /dev/null
+++ b/test/data/virtual_structure/poscar-224/POSCAR-33
@@ -0,0 +1,55 @@
+group 33
+ 1.00000000000000
+ 10.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 10.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 10.0000000000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.1414200000000000 0.2236000000000000 0.3316600000000000
+ 0.8585800000000000 0.7764000000000000 0.3316600000000000
+ 0.8585800000000000 0.2236000000000000 0.6683400000000000
+ 0.1414200000000000 0.7764000000000000 0.6683400000000000
+ 0.3316600000000000 0.1414200000000000 0.2236000000000000
+ 0.3316600000000000 0.8585800000000000 0.7764000000000000
+ 0.6683400000000000 0.8585800000000000 0.2236000000000000
+ 0.6683400000000000 0.1414200000000000 0.7764000000000000
+ 0.2236000000000000 0.3316600000000000 0.1414200000000000
+ 0.7764000000000000 0.3316600000000000 0.8585800000000000
+ 0.2236000000000000 0.6683400000000000 0.8585800000000000
+ 0.7764000000000000 0.6683400000000000 0.1414200000000000
+ 0.7236000000000000 0.6414200000000000 0.1683400000000000
+ 0.2764000000000000 0.3585800000000000 0.1683400000000000
+ 0.7236000000000000 0.3585800000000000 0.8316600000000000
+ 0.2764000000000000 0.6414200000000000 0.8316600000000000
+ 0.6414200000000000 0.8316600000000000 0.2764000000000000
+ 0.3585800000000000 0.8316600000000000 0.7236000000000000
+ 0.3585800000000000 0.1683400000000000 0.2764000000000000
+ 0.6414200000000000 0.1683400000000000 0.7236000000000000
+ 0.8316600000000000 0.7236000000000000 0.3585800000000000
+ 0.8316600000000000 0.2764000000000000 0.6414200000000000
+ 0.1683400000000000 0.7236000000000000 0.6414200000000000
+ 0.1683400000000000 0.2764000000000000 0.3585800000000000
+ 0.3585800000000000 0.2764000000000000 0.1683400000000000
+ 0.6414200000000000 0.7236000000000000 0.1683400000000000
+ 0.6414200000000000 0.2764000000000000 0.8316600000000000
+ 0.3585800000000000 0.7236000000000000 0.8316600000000000
+ 0.1683400000000000 0.3585800000000000 0.2764000000000000
+ 0.1683400000000000 0.6414200000000000 0.7236000000000000
+ 0.8316600000000000 0.6414200000000000 0.2764000000000000
+ 0.8316600000000000 0.3585800000000000 0.7236000000000000
+ 0.2764000000000000 0.1683400000000000 0.3585800000000000
+ 0.7236000000000000 0.1683400000000000 0.6414200000000000
+ 0.2764000000000000 0.8316600000000000 0.6414200000000000
+ 0.7236000000000000 0.8316600000000000 0.3585800000000000
+ 0.7764000000000000 0.8585800000000000 0.3316600000000000
+ 0.2236000000000000 0.1414200000000000 0.3316600000000000
+ 0.7764000000000000 0.1414200000000000 0.6683400000000000
+ 0.2236000000000000 0.8585800000000000 0.6683400000000000
+ 0.8585800000000000 0.6683400000000000 0.2236000000000000
+ 0.1414200000000000 0.6683400000000000 0.7764000000000000
+ 0.1414200000000000 0.3316600000000000 0.2236000000000000
+ 0.8585800000000000 0.3316600000000000 0.7764000000000000
+ 0.6683400000000000 0.7764000000000000 0.1414200000000000
+ 0.6683400000000000 0.2236000000000000 0.8585800000000000
+ 0.3316600000000000 0.7764000000000000 0.8585800000000000
+ 0.3316600000000000 0.2236000000000000 0.1414200000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-01 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-01
new file mode 100644
index 0000000..7508b76
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-01
@@ -0,0 +1,63 @@
+group 1
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 16 32
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-03 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-03
new file mode 100644
index 0000000..71f52cd
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-03
@@ -0,0 +1,63 @@
+group 3
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 16 16 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-06 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-06
new file mode 100644
index 0000000..439bf58
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-06
@@ -0,0 +1,63 @@
+group 6
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 12 8 24
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-09 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-09
new file mode 100644
index 0000000..bb65f2f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-09
@@ -0,0 +1,63 @@
+group 9
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 16 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-13 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-13
new file mode 100644
index 0000000..10e24f5
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-13
@@ -0,0 +1,63 @@
+group 13
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 16 16 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-16 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-16
new file mode 100644
index 0000000..e0ed206
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-16
@@ -0,0 +1,63 @@
+group 16
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 12 4 12 12 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-18 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-18
new file mode 100644
index 0000000..0342418
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-18
@@ -0,0 +1,63 @@
+group 18
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 3 4 4 12 4 12 12 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-19 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-19
new file mode 100644
index 0000000..c5927b3
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-19
@@ -0,0 +1,63 @@
+group 19
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 12 4 24 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-21 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-21
new file mode 100644
index 0000000..3b0e77f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-21
@@ -0,0 +1,63 @@
+group 21
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 4 8 8 8 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-24 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-24
new file mode 100644
index 0000000..90b9bb6
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-24
@@ -0,0 +1,63 @@
+group 24
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-28 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-28
new file mode 100644
index 0000000..57f60d7
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-28
@@ -0,0 +1,63 @@
+group 28
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 8 16 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-29 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-29
new file mode 100644
index 0000000..4c3307d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-29
@@ -0,0 +1,63 @@
+group 29
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 8 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-31 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-31
new file mode 100644
index 0000000..426e079
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-31
@@ -0,0 +1,63 @@
+group 31
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 8 8 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-32 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-32
new file mode 100644
index 0000000..90968e1
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-32
@@ -0,0 +1,63 @@
+group 32
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 4 4 16 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-33 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-33
new file mode 100644
index 0000000..dff9b84
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-33
@@ -0,0 +1,63 @@
+group 33
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 4 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-35 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-35
new file mode 100644
index 0000000..f0741f8
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-35
@@ -0,0 +1,63 @@
+group 35
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 16 16 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-36 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-36
new file mode 100644
index 0000000..47cb354
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-36
@@ -0,0 +1,63 @@
+group 36
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 16 16
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-38 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-38
new file mode 100644
index 0000000..4297124
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-38
@@ -0,0 +1,63 @@
+group 38
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 6 6 6 3 1 6 12 6 6 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-40 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-40
new file mode 100644
index 0000000..ee28a87
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-40
@@ -0,0 +1,63 @@
+group 40
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 12 4 12 12 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-41 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-41
new file mode 100644
index 0000000..b2bb693
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-41
@@ -0,0 +1,63 @@
+group 41
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 4 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-43 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-43
new file mode 100644
index 0000000..573a466
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-43
@@ -0,0 +1,63 @@
+group 43
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-44 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-44
new file mode 100644
index 0000000..31469f1
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-44
@@ -0,0 +1,63 @@
+group 44
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 8 4 4 8 4 4 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-45 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-45
new file mode 100644
index 0000000..92497e2
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-45
@@ -0,0 +1,63 @@
+group 45
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 4 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-47 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-47
new file mode 100644
index 0000000..fda7370
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-47
@@ -0,0 +1,63 @@
+group 47
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-48 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-48
new file mode 100644
index 0000000..78d48a4
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-48
@@ -0,0 +1,63 @@
+group 48
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 8 8 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-49 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-49
new file mode 100644
index 0000000..f485a91
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-49
@@ -0,0 +1,63 @@
+group 49
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 4 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-50 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-50
new file mode 100644
index 0000000..aa2644f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-50
@@ -0,0 +1,63 @@
+group 50
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 8 2 2 2 2 8 8 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-51 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-51
new file mode 100644
index 0000000..909de99
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-51
@@ -0,0 +1,63 @@
+group 51
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-53 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-53
new file mode 100644
index 0000000..026f6bd
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-53
@@ -0,0 +1,63 @@
+group 53
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-54 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-54
new file mode 100644
index 0000000..55b4305
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-54
@@ -0,0 +1,63 @@
+group 54
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-58 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-58
new file mode 100644
index 0000000..a093b3e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-58
@@ -0,0 +1,63 @@
+group 58
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 8 4 4 8 8 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-59 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-59
new file mode 100644
index 0000000..2dcb01e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-59
@@ -0,0 +1,63 @@
+group 59
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-60 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-60
new file mode 100644
index 0000000..628a79b
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-60
@@ -0,0 +1,63 @@
+group 60
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 4 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-61 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-61
new file mode 100644
index 0000000..9fea02d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-61
@@ -0,0 +1,63 @@
+group 61
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-62 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-62
new file mode 100644
index 0000000..c7d174e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-62
@@ -0,0 +1,63 @@
+group 62
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 8 8 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-63 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-63
new file mode 100644
index 0000000..1d021a5
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-63
@@ -0,0 +1,63 @@
+group 63
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-64 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-64
new file mode 100644
index 0000000..f395a7e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-64
@@ -0,0 +1,63 @@
+group 64
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 8 4 4 8 8 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-65 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-65
new file mode 100644
index 0000000..8c4b631
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-65
@@ -0,0 +1,63 @@
+group 65
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 4 4 8 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-66 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-66
new file mode 100644
index 0000000..da5f16a
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-66
@@ -0,0 +1,63 @@
+group 66
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 2 1 4 4 8 4 4 8 4 8 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-67 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-67
new file mode 100644
index 0000000..0bec979
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-67
@@ -0,0 +1,63 @@
+group 67
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 8 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-68 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-68
new file mode 100644
index 0000000..8c0250d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-68
@@ -0,0 +1,63 @@
+group 68
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 4 4 8 4 4 8 4 8 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-69 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-69
new file mode 100644
index 0000000..c331786
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-69
@@ -0,0 +1,63 @@
+group 69
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 8 8 4 4 8 8 8 8
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-70 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-70
new file mode 100644
index 0000000..e42f842
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-70
@@ -0,0 +1,63 @@
+group 70
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 6 6 6 3 1 6 6 6 6 6 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-71 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-71
new file mode 100644
index 0000000..97a1884
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-71
@@ -0,0 +1,63 @@
+group 71
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 3 3 1 1 3 6 3 3 1 3 6 3 3 6 3 3 1 3
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-72 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-72
new file mode 100644
index 0000000..c58cac3
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-72
@@ -0,0 +1,63 @@
+group 72
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 6 2 3 1 6 3 3 6 2 6 6 6 6
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-73 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-73
new file mode 100644
index 0000000..967a82d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-73
@@ -0,0 +1,63 @@
+group 73
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-74 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-74
new file mode 100644
index 0000000..dc72111
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-74
@@ -0,0 +1,63 @@
+group 74
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 2 2 2 2 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-75 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-75
new file mode 100644
index 0000000..0a736bb
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-75
@@ -0,0 +1,63 @@
+group 75
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-77 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-77
new file mode 100644
index 0000000..8cf69db
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-77
@@ -0,0 +1,63 @@
+group 77
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-78 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-78
new file mode 100644
index 0000000..fe60142
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-78
@@ -0,0 +1,63 @@
+group 78
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-79 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-79
new file mode 100644
index 0000000..c7df4a7
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-79
@@ -0,0 +1,63 @@
+group 79
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 2 2 4 4 2 2 2 2 4 4 2 2 4 4 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-80 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-80
new file mode 100644
index 0000000..5132b2c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-80
@@ -0,0 +1,63 @@
+group 80
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-81 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-81
new file mode 100644
index 0000000..30669d4
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-81
@@ -0,0 +1,63 @@
+group 81
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-82 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-82
new file mode 100644
index 0000000..9396b85
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-82
@@ -0,0 +1,63 @@
+group 82
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 2 2 4 4 2 2 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-83 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-83
new file mode 100644
index 0000000..433dc43
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-83
@@ -0,0 +1,63 @@
+group 83
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 4 2 4 4 1 2 1 2 2 4 4 4 4 2 4 2 4 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-84 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-84
new file mode 100644
index 0000000..e54d481
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-84
@@ -0,0 +1,63 @@
+group 84
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 1 1 1 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-85 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-85
new file mode 100644
index 0000000..5cbbec5
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-85
@@ -0,0 +1,63 @@
+group 85
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-86 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-86
new file mode 100644
index 0000000..e2c2553
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-86
@@ -0,0 +1,63 @@
+group 86
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-87 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-87
new file mode 100644
index 0000000..62e0556
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-87
@@ -0,0 +1,63 @@
+group 87
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 2 1 2 2 2 4 2 4 2 2 2 4 2 4 2 2 4 2 2 2 4 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-88 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-88
new file mode 100644
index 0000000..9e481a6
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-88
@@ -0,0 +1,63 @@
+group 88
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 2 1 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-89 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-89
new file mode 100644
index 0000000..a5a796f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-89
@@ -0,0 +1,63 @@
+group 89
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-90 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-90
new file mode 100644
index 0000000..4c62dbf
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-90
@@ -0,0 +1,63 @@
+group 90
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 2 2 2 4 2 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-91 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-91
new file mode 100644
index 0000000..7a7bd76
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-91
@@ -0,0 +1,63 @@
+group 91
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-92 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-92
new file mode 100644
index 0000000..ed9b9e7
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-92
@@ -0,0 +1,63 @@
+group 92
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 3 3 1 1 3 3 3 3 3 1 3 3 3 3 3 3 3 3 3 1 3
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-93 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-93
new file mode 100644
index 0000000..8cb9140
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-93
@@ -0,0 +1,63 @@
+group 93
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-94 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-94
new file mode 100644
index 0000000..1fbb7a3
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-94
@@ -0,0 +1,63 @@
+group 94
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-95 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-95
new file mode 100644
index 0000000..bbd828d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-95
@@ -0,0 +1,63 @@
+group 95
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-96 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-96
new file mode 100644
index 0000000..5cb1707
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-96
@@ -0,0 +1,63 @@
+group 96
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-97 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-97
new file mode 100644
index 0000000..7ea70d1
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-97
@@ -0,0 +1,63 @@
+group 97
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 2 1 2 1 1 1 2 1 2 1 1 2 2 2 2 1 2 1 2 1 1 2 2 2 2 2 1 1 1 2 1 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-98 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-98
new file mode 100644
index 0000000..c23c912
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-98
@@ -0,0 +1,63 @@
+group 98
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 2 2 2 2 2 1 1 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
diff --git a/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-99 b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-99
new file mode 100644
index 0000000..efff529
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Fd-3m_unit/POSCAR-99
@@ -0,0 +1,63 @@
+group 99
+ 1.00000000000000
+ 8.2400000000000002 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 8.2400000000000002 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 8.2400000000000002
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.6250000000000000 0.6250000000000000 0.6250000000000000
+ 0.6250000000000000 0.1250000000000000 0.1250000000000000
+ 0.1250000000000000 0.6250000000000000 0.1250000000000000
+ 0.1250000000000000 0.1250000000000000 0.6250000000000000
+ 0.3750000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.3750000000000000
+ 0.8750000000000000 0.6250000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.8750000000000000
+ 0.3900000000000000 0.3900000000000000 0.3900000000000000
+ 0.3900000000000000 0.8900000000000000 0.8900000000000000
+ 0.8900000000000000 0.3900000000000000 0.8900000000000000
+ 0.8900000000000000 0.8900000000000000 0.3900000000000000
+ 0.6100000000000000 0.1100000000000000 0.8900000000000000
+ 0.6100000000000000 0.6100000000000000 0.3900000000000000
+ 0.1100000000000000 0.1100000000000000 0.3900000000000000
+ 0.1100000000000000 0.6100000000000000 0.8900000000000000
+ 0.1100000000000000 0.8900000000000000 0.6100000000000000
+ 0.1100000000000000 0.3900000000000000 0.1100000000000000
+ 0.6100000000000000 0.8900000000000000 0.1100000000000000
+ 0.6100000000000000 0.3900000000000000 0.6100000000000000
+ 0.8900000000000000 0.6100000000000000 0.1100000000000000
+ 0.8900000000000000 0.1100000000000000 0.6100000000000000
+ 0.3900000000000000 0.6100000000000000 0.6100000000000000
+ 0.3900000000000000 0.1100000000000000 0.1100000000000000
+ 0.1400000000000000 0.6400000000000000 0.3600000000000000
+ 0.1400000000000000 0.1400000000000000 0.8600000000000000
+ 0.6400000000000000 0.6400000000000000 0.8600000000000000
+ 0.6400000000000000 0.1400000000000000 0.3600000000000000
+ 0.8600000000000000 0.8600000000000000 0.8600000000000000
+ 0.8600000000000000 0.3600000000000000 0.3600000000000000
+ 0.3600000000000000 0.8600000000000000 0.3600000000000000
+ 0.3600000000000000 0.3600000000000000 0.8600000000000000
+ 0.6400000000000000 0.3600000000000000 0.1400000000000000
+ 0.6400000000000000 0.8600000000000000 0.6400000000000000
+ 0.1400000000000000 0.3600000000000000 0.6400000000000000
+ 0.1400000000000000 0.8600000000000000 0.1400000000000000
+ 0.3600000000000000 0.1400000000000000 0.6400000000000000
+ 0.3600000000000000 0.6400000000000000 0.1400000000000000
+ 0.8600000000000000 0.1400000000000000 0.1400000000000000
+ 0.8600000000000000 0.6400000000000000 0.6400000000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-01 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-01
new file mode 100644
index 0000000..08d564e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-01
@@ -0,0 +1,111 @@
+group 1
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 12 24 12 8 48
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-02 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-02
new file mode 100644
index 0000000..70cad61
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-02
@@ -0,0 +1,111 @@
+group 2
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 12 24 12 4 4 24 24
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-03 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-03
new file mode 100644
index 0000000..d7430bc
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-03
@@ -0,0 +1,111 @@
+group 3
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 24 12 8 24 24
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-04 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-04
new file mode 100644
index 0000000..0e2fcc7
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-04
@@ -0,0 +1,111 @@
+group 4
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 12 12 12 6 6 8 24 24
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-05 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-05
new file mode 100644
index 0000000..5081a6c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-05
@@ -0,0 +1,111 @@
+group 5
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 8 4 16 8 8 4 8 16 16 16
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-06 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-06
new file mode 100644
index 0000000..f0f1a86
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-06
@@ -0,0 +1,111 @@
+group 6
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 12 12 6 6 6 6 6 2 12 12 12 12
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-07 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-07
new file mode 100644
index 0000000..919fb1e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-07
@@ -0,0 +1,111 @@
+group 7
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 12 12 6 6 4 4 12 12 12 12
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-08 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-08
new file mode 100644
index 0000000..6acbc45
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-08
@@ -0,0 +1,111 @@
+group 8
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 4 4 8 8 8 4 4 4 4 4 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-09 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-09
new file mode 100644
index 0000000..8b16c2e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-09
@@ -0,0 +1,111 @@
+group 9
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 8 4 4 8 8 2 2 8 4 4 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-10 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-10
new file mode 100644
index 0000000..2d192e4
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-10
@@ -0,0 +1,111 @@
+group 10
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 8 8 8 8 4 8 4 4 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-11 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-11
new file mode 100644
index 0000000..34c8594
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-11
@@ -0,0 +1,111 @@
+group 11
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 2 2 4 8 8 8 4 4 4 8 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-12 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-12
new file mode 100644
index 0000000..08e356b
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-12
@@ -0,0 +1,111 @@
+group 12
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 4 4 8 4 8 4 4 2 4 2 8 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-13 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-13
new file mode 100644
index 0000000..5368ade
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-13
@@ -0,0 +1,111 @@
+group 13
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 8 8 8 8 4 8 8 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-14 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-14
new file mode 100644
index 0000000..4755ce4
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-14
@@ -0,0 +1,111 @@
+group 14
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 8 4 4 8 8 2 2 8 8 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-15 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-15
new file mode 100644
index 0000000..2ed948c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-15
@@ -0,0 +1,111 @@
+group 15
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 6 6 6 6 6 6 3 1 1 3 6 6 6 6 6 6 6 6
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-16 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-16
new file mode 100644
index 0000000..1180b60
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-16
@@ -0,0 +1,111 @@
+group 16
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 6 6 6 6 6 6 6 2 6 6 6 6 6 6 6 6
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-17 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-17
new file mode 100644
index 0000000..a41a1d8
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-17
@@ -0,0 +1,111 @@
+group 17
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 6 3 3 6 3 3 3 3 3 3 6 2 6 6 6 6 6 6 6 6
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-18 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-18
new file mode 100644
index 0000000..18a00f1
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-18
@@ -0,0 +1,111 @@
+group 18
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 4 4 4 4 4 4 4 4 2 2 4 4 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-19 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-19
new file mode 100644
index 0000000..286ff0e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-19
@@ -0,0 +1,111 @@
+group 19
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 4 4 4 4 4 4 4 2 2 4 4 2 2 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-20 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-20
new file mode 100644
index 0000000..fc58342
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-20
@@ -0,0 +1,111 @@
+group 20
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 4 4 4 4 4 4 2 2 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-21 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-21
new file mode 100644
index 0000000..b209c63
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-21
@@ -0,0 +1,111 @@
+group 21
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 4 4 4 4 4 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-22 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-22
new file mode 100644
index 0000000..aacfe20
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-22
@@ -0,0 +1,111 @@
+group 22
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 4 4 2 4 4 4 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-23 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-23
new file mode 100644
index 0000000..1c6d011
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-23
@@ -0,0 +1,111 @@
+group 23
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 4 4 2 2 4 4 2 2 4 4 1 1 4 1 1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-24 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-24
new file mode 100644
index 0000000..2143764
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-24
@@ -0,0 +1,111 @@
+group 24
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 1 1 4 4 1 1 4 4 4 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-25 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-25
new file mode 100644
index 0000000..aa05887
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-25
@@ -0,0 +1,111 @@
+group 25
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 4 4 4 4 4 4 4 4 2 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-26 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-26
new file mode 100644
index 0000000..f7798a1
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-26
@@ -0,0 +1,111 @@
+group 26
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 4 4 2 4 2 4 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-27 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-27
new file mode 100644
index 0000000..fadc39b
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-27
@@ -0,0 +1,111 @@
+group 27
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-28 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-28
new file mode 100644
index 0000000..b341ef2
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-28
@@ -0,0 +1,111 @@
+group 28
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-29 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-29
new file mode 100644
index 0000000..d57756d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-29
@@ -0,0 +1,111 @@
+group 29
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 1 1 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-30 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-30
new file mode 100644
index 0000000..faa64f0
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-30
@@ -0,0 +1,111 @@
+group 30
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-31 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-31
new file mode 100644
index 0000000..0cf4756
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-31
@@ -0,0 +1,111 @@
+group 31
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-32 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-32
new file mode 100644
index 0000000..60a8096
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-32
@@ -0,0 +1,111 @@
+group 32
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 1 1 2 2 1 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-33 b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-33
new file mode 100644
index 0000000..64bf62a
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_primitive/POSCAR-33
@@ -0,0 +1,111 @@
+group 33
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-01 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-01
new file mode 100644
index 0000000..306347a
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-01
@@ -0,0 +1,215 @@
+group 1
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 24 48 24 16 96
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-02 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-02
new file mode 100644
index 0000000..d77dae6
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-02
@@ -0,0 +1,215 @@
+group 2
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 24 48 24 8 8 48 48
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-03 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-03
new file mode 100644
index 0000000..4a7b784
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-03
@@ -0,0 +1,215 @@
+group 3
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 12 12 48 24 16 48 48
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-04 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-04
new file mode 100644
index 0000000..6345938
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-04
@@ -0,0 +1,215 @@
+group 4
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 24 24 24 12 12 16 48 48
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-05 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-05
new file mode 100644
index 0000000..ce65a8e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-05
@@ -0,0 +1,215 @@
+group 5
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 16 8 32 16 16 8 16 32 32 32
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-06 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-06
new file mode 100644
index 0000000..3e835f3
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-06
@@ -0,0 +1,215 @@
+group 6
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 24 12 24 12 12 12 4 12 24 24 24 24
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-07 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-07
new file mode 100644
index 0000000..973e9c8
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-07
@@ -0,0 +1,215 @@
+group 7
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 12 12 24 24 12 12 8 8 24 24 24 24
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-08 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-08
new file mode 100644
index 0000000..586334e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-08
@@ -0,0 +1,215 @@
+group 8
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 24 24 24 24 8 4 4 24 24 24 24
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-09 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-09
new file mode 100644
index 0000000..ba95367
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-09
@@ -0,0 +1,215 @@
+group 9
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 24 24 12 12 12 12 8 8 24 24 24 24
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-10 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-10
new file mode 100644
index 0000000..ef7a811
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-10
@@ -0,0 +1,215 @@
+group 10
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 8 8 16 16 16 8 8 8 8 8 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-11 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-11
new file mode 100644
index 0000000..b2b8019
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-11
@@ -0,0 +1,215 @@
+group 11
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 16 8 16 16 8 8 16 4 4 8 8 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-12 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-12
new file mode 100644
index 0000000..3bc0dab
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-12
@@ -0,0 +1,215 @@
+group 12
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 16 4 4 16 16 16 16 8 8 8 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-13 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-13
new file mode 100644
index 0000000..1a1c31e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-13
@@ -0,0 +1,215 @@
+group 13
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 8 4 16 16 16 8 8 8 16 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-14 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-14
new file mode 100644
index 0000000..10c9a0b
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-14
@@ -0,0 +1,215 @@
+group 14
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 8 8 16 8 16 8 8 4 8 4 16 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-15 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-15
new file mode 100644
index 0000000..48f2c5b
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-15
@@ -0,0 +1,215 @@
+group 15
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 16 8 16 16 16 16 8 16 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-16 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-16
new file mode 100644
index 0000000..b3a38a5
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-16
@@ -0,0 +1,215 @@
+group 16
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 16 4 4 16 16 8 8 16 4 4 16 16 16 16 16 16 16
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-17 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-17
new file mode 100644
index 0000000..1050dcb
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-17
@@ -0,0 +1,215 @@
+group 17
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 12 12 12 12 12 12 12 12 2 6 6 2 12 12 12 12 12 12 12 12
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-18 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-18
new file mode 100644
index 0000000..e1471c3
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-18
@@ -0,0 +1,215 @@
+group 18
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 12 12 12 12 12 12 12 12 4 12 12 12 12 12 12 12 12 12
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-19 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-19
new file mode 100644
index 0000000..367d66d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-19
@@ -0,0 +1,215 @@
+group 19
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 12 12 6 12 6 6 12 6 6 6 6 6 4 12 12 12 12 12 12 12 12 12
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-20 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-20
new file mode 100644
index 0000000..63b5e6c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-20
@@ -0,0 +1,215 @@
+group 20
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 12 12 12 12 12 12 12 12 4 4 4 4 12 12 12 12 12 12 12 12
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-21 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-21
new file mode 100644
index 0000000..d7bf3e6
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-21
@@ -0,0 +1,215 @@
+group 21
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 4 8 8 8 8 8 8 8 8 4 4 8 4 4 4 4 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-22 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-22
new file mode 100644
index 0000000..809b893
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-22
@@ -0,0 +1,215 @@
+group 22
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 8 8 8 8 8 8 4 8 4 8 8 4 4 4 4 4 4 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-23 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-23
new file mode 100644
index 0000000..d9db65c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-23
@@ -0,0 +1,215 @@
+group 23
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 8 8 8 8 8 8 4 4 4 4 4 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-24 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-24
new file mode 100644
index 0000000..5f7385c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-24
@@ -0,0 +1,215 @@
+group 24
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 4 8 8 8 8 8 8 8 8 4 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-25 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-25
new file mode 100644
index 0000000..bfa0d68
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-25
@@ -0,0 +1,215 @@
+group 25
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 4 8 8 8 8 8 8 8 8 4 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-26 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-26
new file mode 100644
index 0000000..45b924c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-26
@@ -0,0 +1,215 @@
+group 26
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 4 8 8 8 4 4 8 8 4 4 8 2 2 8 2 2 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-27 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-27
new file mode 100644
index 0000000..99ae4a8
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-27
@@ -0,0 +1,215 @@
+group 27
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 2 2 2 2 8 8 8 8 8 8 8 8 4 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-28 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-28
new file mode 100644
index 0000000..1694244
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-28
@@ -0,0 +1,215 @@
+group 28
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 4 8 8 8 8 8 8 8 8 4 8 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-29 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-29
new file mode 100644
index 0000000..aad7380
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-29
@@ -0,0 +1,215 @@
+group 29
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 8 8 8 8 8 8 8 4 4 8 8 4 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-30 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-30
new file mode 100644
index 0000000..1192211
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-30
@@ -0,0 +1,215 @@
+group 30
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 8 4 8 8 8 8 8 8 4 4 4 8 4 8 4 4 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-31 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-31
new file mode 100644
index 0000000..7c27772
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-31
@@ -0,0 +1,215 @@
+group 31
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 8 8 8 8 8 8 8 8 8 8 8 8 4 4 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-32 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-32
new file mode 100644
index 0000000..c0034e0
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-32
@@ -0,0 +1,215 @@
+group 32
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 8 4 8 8 8 8 8 4 4 4 4 4 4 4 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-33 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-33
new file mode 100644
index 0000000..c147a68
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-33
@@ -0,0 +1,215 @@
+group 33
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 4 2 8 2 8 8 8 8 4 8 4 8 2 4 8 2 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-34 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-34
new file mode 100644
index 0000000..450fb7e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-34
@@ -0,0 +1,215 @@
+group 34
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 2 4 8 2 8 8 8 8 4 8 4 8 2 4 8 2 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-35 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-35
new file mode 100644
index 0000000..2c0dcb8
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-35
@@ -0,0 +1,215 @@
+group 35
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 8 8 8 8 8 8 8 4 8 4 8 4 8 4 8 8 8 8 8 8 8 8 8 8 8 8 8 8
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-36 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-36
new file mode 100644
index 0000000..feca72f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-36
@@ -0,0 +1,215 @@
+group 36
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 2 6 6 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-37 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-37
new file mode 100644
index 0000000..295dfd4
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-37
@@ -0,0 +1,215 @@
+group 37
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 2 6 3 1 3 1 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-38 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-38
new file mode 100644
index 0000000..1b9100a
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-38
@@ -0,0 +1,215 @@
+group 38
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 6 6 6 6 6 6 6 6 3 6 3 3 6 3 6 3 3 6 3 3 2 6 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-39 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-39
new file mode 100644
index 0000000..11a1899
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-39
@@ -0,0 +1,215 @@
+group 39
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 2 2 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-40 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-40
new file mode 100644
index 0000000..333bb0e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-40
@@ -0,0 +1,215 @@
+group 40
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 2 2 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-41 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-41
new file mode 100644
index 0000000..c0faf38
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-41
@@ -0,0 +1,215 @@
+group 41
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-42 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-42
new file mode 100644
index 0000000..0b3413d
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-42
@@ -0,0 +1,215 @@
+group 42
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-43 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-43
new file mode 100644
index 0000000..36c66c9
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-43
@@ -0,0 +1,215 @@
+group 43
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 2 4 2 4 4 4 4 2 4 2 4 4 2 2 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-44 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-44
new file mode 100644
index 0000000..d4374dc
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-44
@@ -0,0 +1,215 @@
+group 44
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 2 2 4 4 2 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 4 4 4 2 2 4 4 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-45 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-45
new file mode 100644
index 0000000..e00f42c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-45
@@ -0,0 +1,215 @@
+group 45
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-46 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-46
new file mode 100644
index 0000000..34b2c0f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-46
@@ -0,0 +1,215 @@
+group 46
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 2 2 4 2 2 2 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 2 2 2 4 2 2 2 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-47 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-47
new file mode 100644
index 0000000..29e5b0f
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-47
@@ -0,0 +1,215 @@
+group 47
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 2 2 4 4 2 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-48 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-48
new file mode 100644
index 0000000..c86b98e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-48
@@ -0,0 +1,215 @@
+group 48
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 2 2 4 4 2 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-49 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-49
new file mode 100644
index 0000000..cb90345
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-49
@@ -0,0 +1,215 @@
+group 49
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 2 2 4 4 2 2 4 4 4 4 4 2 4 2 4 4 4 4 4 2 2 4 1 2 4 4 2 1 4 1 1 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-50 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-50
new file mode 100644
index 0000000..36fb2e4
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-50
@@ -0,0 +1,215 @@
+group 50
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 2 1 4 1 2 4 4 1 1 4 4 4 4 4 4 4 4 4 4 4 4 4 2 2 4 4 2 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-51 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-51
new file mode 100644
index 0000000..8d1d274
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-51
@@ -0,0 +1,215 @@
+group 51
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-52 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-52
new file mode 100644
index 0000000..32c31f5
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-52
@@ -0,0 +1,215 @@
+group 52
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-53 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-53
new file mode 100644
index 0000000..03988f7
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-53
@@ -0,0 +1,215 @@
+group 53
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 2 2 4 4 4 4 4 4 4 4 2 2 4 4 2 2 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-54 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-54
new file mode 100644
index 0000000..1368c50
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-54
@@ -0,0 +1,215 @@
+group 54
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-55 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-55
new file mode 100644
index 0000000..3d5f79c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-55
@@ -0,0 +1,215 @@
+group 55
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 3 3 1 1 3 3 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-56 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-56
new file mode 100644
index 0000000..0bf0859
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-56
@@ -0,0 +1,215 @@
+group 56
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-57 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-57
new file mode 100644
index 0000000..0e61897
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-57
@@ -0,0 +1,215 @@
+group 57
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-58 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-58
new file mode 100644
index 0000000..a4bfdab
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-58
@@ -0,0 +1,215 @@
+group 58
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 1 1 2 2 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 2 1 1 2 2 2 1 1 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-59 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-59
new file mode 100644
index 0000000..c8be56c
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-59
@@ -0,0 +1,215 @@
+group 59
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-60 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-60
new file mode 100644
index 0000000..aa6627b
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-60
@@ -0,0 +1,215 @@
+group 60
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-61 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-61
new file mode 100644
index 0000000..7fa0e71
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-61
@@ -0,0 +1,215 @@
+group 61
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 2 1 2 2 2 2 1 2 1 2 2 2 2 1 2 2 2 1 2 2 1 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
diff --git a/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-62 b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-62
new file mode 100644
index 0000000..a8beb3e
--- /dev/null
+++ b/test/data/virtual_structure/poscar_Ia-3d_unit/POSCAR-62
@@ -0,0 +1,215 @@
+group 62
+ 1.00000000000000
+ 12.8065400000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 12.8065400000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 12.8065400000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 [...]
+Direct
+ 0.3750000000000000 0.0000000000000000 0.2500000000000000
+ 0.1250000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.0000000000000000
+ 0.7500000000000000 0.1250000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.5000000000000000
+ 0.1250000000000000 0.5000000000000000 0.2500000000000000
+ 0.8750000000000000 0.0000000000000000 0.2500000000000000
+ 0.0000000000000000 0.2500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.1250000000000000
+ 0.8750000000000000 0.5000000000000000 0.7500000000000000
+ 0.6250000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.5000000000000000
+ 0.2500000000000000 0.6250000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.8750000000000000
+ 0.5000000000000000 0.2500000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.0000000000000000
+ 0.6250000000000000 0.0000000000000000 0.7500000000000000
+ 0.3750000000000000 0.5000000000000000 0.7500000000000000
+ 0.5000000000000000 0.7500000000000000 0.3750000000000000
+ 0.0000000000000000 0.7500000000000000 0.6250000000000000
+ 0.1250000000000000 0.6875000000000000 0.5625000000000000
+ 0.3750000000000000 0.3125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.6250000000000000 0.8125000000000000 0.4375000000000000
+ 0.5625000000000000 0.1250000000000000 0.6875000000000000
+ 0.0625000000000000 0.3750000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.6250000000000000 0.8125000000000000
+ 0.6875000000000000 0.5625000000000000 0.1250000000000000
+ 0.3125000000000000 0.0625000000000000 0.3750000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.4375000000000000 0.6250000000000000
+ 0.8750000000000000 0.3125000000000000 0.4375000000000000
+ 0.6250000000000000 0.6875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3750000000000000 0.1875000000000000 0.5625000000000000
+ 0.4375000000000000 0.8750000000000000 0.3125000000000000
+ 0.9375000000000000 0.6250000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.3750000000000000 0.1875000000000000
+ 0.3125000000000000 0.4375000000000000 0.8750000000000000
+ 0.6875000000000000 0.9375000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.5625000000000000 0.3750000000000000
+ 0.6250000000000000 0.1875000000000000 0.0625000000000000
+ 0.8750000000000000 0.8125000000000000 0.5625000000000000
+ 0.3750000000000000 0.6875000000000000 0.4375000000000000
+ 0.1250000000000000 0.3125000000000000 0.9375000000000000
+ 0.0625000000000000 0.6250000000000000 0.1875000000000000
+ 0.5625000000000000 0.8750000000000000 0.8125000000000000
+ 0.4375000000000000 0.3750000000000000 0.6875000000000000
+ 0.9375000000000000 0.1250000000000000 0.3125000000000000
+ 0.1875000000000000 0.0625000000000000 0.6250000000000000
+ 0.8125000000000000 0.5625000000000000 0.8750000000000000
+ 0.6875000000000000 0.4375000000000000 0.3750000000000000
+ 0.3125000000000000 0.9375000000000000 0.1250000000000000
+ 0.3750000000000000 0.8125000000000000 0.9375000000000000
+ 0.1250000000000000 0.1875000000000000 0.4375000000000000
+ 0.6250000000000000 0.3125000000000000 0.5625000000000000
+ 0.8750000000000000 0.6875000000000000 0.0625000000000000
+ 0.9375000000000000 0.3750000000000000 0.8125000000000000
+ 0.4375000000000000 0.1250000000000000 0.1875000000000000
+ 0.5625000000000000 0.6250000000000000 0.3125000000000000
+ 0.0625000000000000 0.8750000000000000 0.6875000000000000
+ 0.8125000000000000 0.9375000000000000 0.3750000000000000
+ 0.1875000000000000 0.4375000000000000 0.1250000000000000
+ 0.3125000000000000 0.5625000000000000 0.6250000000000000
+ 0.6875000000000000 0.0625000000000000 0.8750000000000000
+ 0.1250000000000000 0.0000000000000000 0.2500000000000000
+ 0.3750000000000000 0.0000000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.0000000000000000
+ 0.7500000000000000 0.3750000000000000 0.0000000000000000
+ 0.0000000000000000 0.2500000000000000 0.1250000000000000
+ 0.0000000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.0000000000000000 0.7500000000000000
+ 0.6250000000000000 0.0000000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.0000000000000000
+ 0.2500000000000000 0.6250000000000000 0.0000000000000000
+ 0.0000000000000000 0.7500000000000000 0.8750000000000000
+ 0.0000000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.5000000000000000 0.7500000000000000
+ 0.8750000000000000 0.5000000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.5000000000000000
+ 0.2500000000000000 0.8750000000000000 0.5000000000000000
+ 0.5000000000000000 0.7500000000000000 0.6250000000000000
+ 0.5000000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.5000000000000000 0.2500000000000000
+ 0.1250000000000000 0.5000000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.5000000000000000
+ 0.7500000000000000 0.1250000000000000 0.5000000000000000
+ 0.5000000000000000 0.2500000000000000 0.3750000000000000
+ 0.5000000000000000 0.7500000000000000 0.1250000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.7500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2500000000000000 0.7500000000000000 0.2500000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.2500000000000000 0.7500000000000000 0.7500000000000000
+ 0.2500000000000000 0.2500000000000000 0.2500000000000000
+ 0.7500000000000000 0.7500000000000000 0.2500000000000000
+ 0.7500000000000000 0.2500000000000000 0.7500000000000000
+ 0.2796500000000000 0.1056400000000000 0.1989400000000000
+ 0.2203500000000000 0.8943600000000000 0.6989400000000000
+ 0.7203500000000000 0.6056400000000000 0.3010600000000000
+ 0.7796500000000000 0.3943600000000000 0.8010600000000000
+ 0.1989400000000000 0.2796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7203500000000000 0.6056400000000000
+ 0.8010600000000000 0.7796500000000000 0.3943600000000000
+ 0.1056400000000000 0.1989400000000000 0.2796500000000000
+ 0.8943600000000000 0.6989400000000000 0.2203500000000000
+ 0.6056400000000000 0.3010600000000000 0.7203500000000000
+ 0.3943600000000000 0.8010600000000000 0.7796500000000000
+ 0.8556400000000000 0.5296500000000000 0.0510600000000000
+ 0.6443600000000000 0.4703500000000000 0.5510600000000000
+ 0.3556400000000000 0.9703500000000000 0.9489400000000000
+ 0.1443600000000000 0.0296500000000000 0.4489400000000000
+ 0.0296500000000000 0.4489400000000000 0.1443600000000000
+ 0.9703500000000000 0.9489400000000000 0.3556400000000000
+ 0.4703500000000000 0.5510600000000000 0.6443600000000000
+ 0.5296500000000000 0.0510600000000000 0.8556400000000000
+ 0.9489400000000000 0.3556400000000000 0.9703500000000000
+ 0.4489400000000000 0.1443600000000000 0.0296500000000000
+ 0.0510600000000000 0.8556400000000000 0.5296500000000000
+ 0.5510600000000000 0.6443600000000000 0.4703500000000000
+ 0.7203500000000000 0.8943600000000000 0.8010600000000000
+ 0.7796500000000000 0.1056400000000000 0.3010600000000000
+ 0.2796500000000000 0.3943600000000000 0.6989400000000000
+ 0.2203500000000000 0.6056400000000000 0.1989400000000000
+ 0.8010600000000000 0.7203500000000000 0.8943600000000000
+ 0.3010600000000000 0.7796500000000000 0.1056400000000000
+ 0.6989400000000000 0.2796500000000000 0.3943600000000000
+ 0.1989400000000000 0.2203500000000000 0.6056400000000000
+ 0.8943600000000000 0.8010600000000000 0.7203500000000000
+ 0.1056400000000000 0.3010600000000000 0.7796500000000000
+ 0.3943600000000000 0.6989400000000000 0.2796500000000000
+ 0.6056400000000000 0.1989400000000000 0.2203500000000000
+ 0.1443600000000000 0.4703500000000000 0.9489400000000000
+ 0.3556400000000000 0.5296500000000000 0.4489400000000000
+ 0.6443600000000000 0.0296500000000000 0.0510600000000000
+ 0.8556400000000000 0.9703500000000000 0.5510600000000000
+ 0.9703500000000000 0.5510600000000000 0.8556400000000000
+ 0.0296500000000000 0.0510600000000000 0.6443600000000000
+ 0.5296500000000000 0.4489400000000000 0.3556400000000000
+ 0.4703500000000000 0.9489400000000000 0.1443600000000000
+ 0.0510600000000000 0.6443600000000000 0.0296500000000000
+ 0.5510600000000000 0.8556400000000000 0.9703500000000000
+ 0.9489400000000000 0.1443600000000000 0.4703500000000000
+ 0.4489400000000000 0.3556400000000000 0.5296500000000000
+ 0.7796500000000000 0.6056400000000000 0.6989400000000000
+ 0.7203500000000000 0.3943600000000000 0.1989400000000000
+ 0.2203500000000000 0.1056400000000000 0.8010600000000000
+ 0.2796500000000000 0.8943600000000000 0.3010600000000000
+ 0.6989400000000000 0.7796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2203500000000000 0.1056400000000000
+ 0.3010600000000000 0.2796500000000000 0.8943600000000000
+ 0.6056400000000000 0.6989400000000000 0.7796500000000000
+ 0.3943600000000000 0.1989400000000000 0.7203500000000000
+ 0.1056400000000000 0.8010600000000000 0.2203500000000000
+ 0.8943600000000000 0.3010600000000000 0.2796500000000000
+ 0.3556400000000000 0.0296500000000000 0.5510600000000000
+ 0.1443600000000000 0.9703500000000000 0.0510600000000000
+ 0.8556400000000000 0.4703500000000000 0.4489400000000000
+ 0.6443600000000000 0.5296500000000000 0.9489400000000000
+ 0.5296500000000000 0.9489400000000000 0.6443600000000000
+ 0.4703500000000000 0.4489400000000000 0.8556400000000000
+ 0.9703500000000000 0.0510600000000000 0.1443600000000000
+ 0.0296500000000000 0.5510600000000000 0.3556400000000000
+ 0.4489400000000000 0.8556400000000000 0.4703500000000000
+ 0.9489400000000000 0.6443600000000000 0.5296500000000000
+ 0.5510600000000000 0.3556400000000000 0.0296500000000000
+ 0.0510600000000000 0.1443600000000000 0.9703500000000000
+ 0.2203500000000000 0.3943600000000000 0.3010600000000000
+ 0.2796500000000000 0.6056400000000000 0.8010600000000000
+ 0.7796500000000000 0.8943600000000000 0.1989400000000000
+ 0.7203500000000000 0.1056400000000000 0.6989400000000000
+ 0.3010600000000000 0.2203500000000000 0.3943600000000000
+ 0.8010600000000000 0.2796500000000000 0.6056400000000000
+ 0.1989400000000000 0.7796500000000000 0.8943600000000000
+ 0.6989400000000000 0.7203500000000000 0.1056400000000000
+ 0.3943600000000000 0.3010600000000000 0.2203500000000000
+ 0.6056400000000000 0.8010600000000000 0.2796500000000000
+ 0.8943600000000000 0.1989400000000000 0.7796500000000000
+ 0.1056400000000000 0.6989400000000000 0.7203500000000000
+ 0.6443600000000000 0.9703500000000000 0.4489400000000000
+ 0.8556400000000000 0.0296500000000000 0.9489400000000000
+ 0.1443600000000000 0.5296500000000000 0.5510600000000000
+ 0.3556400000000000 0.4703500000000000 0.0510600000000000
+ 0.4703500000000000 0.0510600000000000 0.3556400000000000
+ 0.5296500000000000 0.5510600000000000 0.1443600000000000
+ 0.0296500000000000 0.9489400000000000 0.8556400000000000
+ 0.9703500000000000 0.4489400000000000 0.6443600000000000
+ 0.5510600000000000 0.1443600000000000 0.5296500000000000
+ 0.0510600000000000 0.3556400000000000 0.4703500000000000
+ 0.4489400000000000 0.6443600000000000 0.9703500000000000
+ 0.9489400000000000 0.8556400000000000 0.0296500000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-15 b/test/data/virtual_structure/poscars-1/POSCAR-15
new file mode 100644
index 0000000..2ed948c
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-15
@@ -0,0 +1,111 @@
+group 15
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 6 6 6 6 6 6 3 1 1 3 6 6 6 6 6 6 6 6
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-16 b/test/data/virtual_structure/poscars-1/POSCAR-16
new file mode 100644
index 0000000..1180b60
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-16
@@ -0,0 +1,111 @@
+group 16
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 6 6 6 6 6 6 6 2 6 6 6 6 6 6 6 6
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-17 b/test/data/virtual_structure/poscars-1/POSCAR-17
new file mode 100644
index 0000000..a41a1d8
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-17
@@ -0,0 +1,111 @@
+group 17
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 6 6 6 3 3 6 3 3 3 3 3 3 6 2 6 6 6 6 6 6 6 6
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-18 b/test/data/virtual_structure/poscars-1/POSCAR-18
new file mode 100644
index 0000000..18a00f1
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-18
@@ -0,0 +1,111 @@
+group 18
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 4 4 4 4 4 4 4 4 2 2 4 4 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-19 b/test/data/virtual_structure/poscars-1/POSCAR-19
new file mode 100644
index 0000000..286ff0e
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-19
@@ -0,0 +1,111 @@
+group 19
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 4 4 4 4 4 4 4 2 2 4 4 2 2 2 2 2 2 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-27 b/test/data/virtual_structure/poscars-1/POSCAR-27
new file mode 100644
index 0000000..fadc39b
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-27
@@ -0,0 +1,111 @@
+group 27
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-28 b/test/data/virtual_structure/poscars-1/POSCAR-28
new file mode 100644
index 0000000..b341ef2
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-28
@@ -0,0 +1,111 @@
+group 28
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-29 b/test/data/virtual_structure/poscars-1/POSCAR-29
new file mode 100644
index 0000000..d57756d
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-29
@@ -0,0 +1,111 @@
+group 29
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 1 1 2 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-30 b/test/data/virtual_structure/poscars-1/POSCAR-30
new file mode 100644
index 0000000..faa64f0
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-30
@@ -0,0 +1,111 @@
+group 30
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-31 b/test/data/virtual_structure/poscars-1/POSCAR-31
new file mode 100644
index 0000000..0cf4756
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-31
@@ -0,0 +1,111 @@
+group 31
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-32 b/test/data/virtual_structure/poscars-1/POSCAR-32
new file mode 100644
index 0000000..60a8096
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-32
@@ -0,0 +1,111 @@
+group 32
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 2 2 2 2 2 2 2 2 2 2 1 1 2 2 2 2 2 1 1 2 2 1 1 2 2 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-33 b/test/data/virtual_structure/poscars-1/POSCAR-33
new file mode 100644
index 0000000..64bf62a
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-33
@@ -0,0 +1,111 @@
+group 33
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
diff --git a/test/data/virtual_structure/poscars-1/POSCAR-6 b/test/data/virtual_structure/poscars-1/POSCAR-6
new file mode 100644
index 0000000..f0f1a86
--- /dev/null
+++ b/test/data/virtual_structure/poscars-1/POSCAR-6
@@ -0,0 +1,111 @@
+group 6
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 12 12 6 6 6 6 6 2 12 12 12 12
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
diff --git a/test/data/virtual_structure/poscars-2/POSCAR-22 b/test/data/virtual_structure/poscars-2/POSCAR-22
new file mode 100644
index 0000000..aacfe20
--- /dev/null
+++ b/test/data/virtual_structure/poscars-2/POSCAR-22
@@ -0,0 +1,111 @@
+group 22
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 2 4 4 2 4 4 4 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
diff --git a/test/data/virtual_structure/poscars-2/POSCAR-26 b/test/data/virtual_structure/poscars-2/POSCAR-26
new file mode 100644
index 0000000..f7798a1
--- /dev/null
+++ b/test/data/virtual_structure/poscars-2/POSCAR-26
@@ -0,0 +1,111 @@
+group 26
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 4 4 2 4 2 4 4 4 4 2 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
diff --git a/test/data/virtual_structure/poscars-2/POSCAR-9 b/test/data/virtual_structure/poscars-2/POSCAR-9
new file mode 100644
index 0000000..8b16c2e
--- /dev/null
+++ b/test/data/virtual_structure/poscars-2/POSCAR-9
@@ -0,0 +1,111 @@
+group 9
+ 1.00000000000000
+ -6.4032700000000000 6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 -6.4032700000000000 6.4032700000000000
+ 6.4032700000000000 6.4032700000000000 -6.4032700000000000
+ 4 8 4 4 8 8 2 2 8 4 4 8 8 8 8 8 8
+Direct
+ 0.2500000000000000 0.6250000000000000 0.3750000000000000
+ 0.7500000000000000 0.8750000000000000 0.1250000000000000
+ 0.7500000000000000 0.3750000000000000 0.6250000000000000
+ 0.2500000000000000 0.1250000000000000 0.8750000000000000
+ 0.3750000000000000 0.2500000000000000 0.6250000000000000
+ 0.1250000000000000 0.7500000000000000 0.8750000000000000
+ 0.6250000000000000 0.3750000000000000 0.2500000000000000
+ 0.8750000000000000 0.1250000000000000 0.7500000000000000
+ 0.6250000000000000 0.7500000000000000 0.3750000000000000
+ 0.8750000000000000 0.2500000000000000 0.1250000000000000
+ 0.1250000000000000 0.8750000000000000 0.2500000000000000
+ 0.3750000000000000 0.6250000000000000 0.7500000000000000
+ 0.2500000000000000 0.6875000000000000 0.8125000000000000
+ 0.2500000000000000 0.0625000000000000 0.4375000000000000
+ 0.7500000000000000 0.3125000000000000 0.1875000000000000
+ 0.7500000000000000 0.9375000000000000 0.5625000000000000
+ 0.3750000000000000 0.4375000000000000 0.6875000000000000
+ 0.1250000000000000 0.8125000000000000 0.0625000000000000
+ 0.6250000000000000 0.5625000000000000 0.3125000000000000
+ 0.8750000000000000 0.1875000000000000 0.9375000000000000
+ 0.8125000000000000 0.2500000000000000 0.6875000000000000
+ 0.6875000000000000 0.3750000000000000 0.4375000000000000
+ 0.6875000000000000 0.8125000000000000 0.2500000000000000
+ 0.8125000000000000 0.0625000000000000 0.1250000000000000
+ 0.1875000000000000 0.7500000000000000 0.3125000000000000
+ 0.3125000000000000 0.6250000000000000 0.5625000000000000
+ 0.3125000000000000 0.1875000000000000 0.7500000000000000
+ 0.1875000000000000 0.9375000000000000 0.8750000000000000
+ 0.0625000000000000 0.1250000000000000 0.8125000000000000
+ 0.4375000000000000 0.2500000000000000 0.0625000000000000
+ 0.4375000000000000 0.6875000000000000 0.3750000000000000
+ 0.0625000000000000 0.4375000000000000 0.2500000000000000
+ 0.9375000000000000 0.8750000000000000 0.1875000000000000
+ 0.5625000000000000 0.7500000000000000 0.9375000000000000
+ 0.5625000000000000 0.3125000000000000 0.6250000000000000
+ 0.9375000000000000 0.5625000000000000 0.7500000000000000
+ 0.2500000000000000 0.3750000000000000 0.1250000000000000
+ 0.7500000000000000 0.6250000000000000 0.8750000000000000
+ 0.7500000000000000 0.1250000000000000 0.3750000000000000
+ 0.2500000000000000 0.8750000000000000 0.6250000000000000
+ 0.1250000000000000 0.2500000000000000 0.3750000000000000
+ 0.3750000000000000 0.7500000000000000 0.1250000000000000
+ 0.3750000000000000 0.1250000000000000 0.2500000000000000
+ 0.1250000000000000 0.3750000000000000 0.7500000000000000
+ 0.8750000000000000 0.7500000000000000 0.6250000000000000
+ 0.6250000000000000 0.2500000000000000 0.8750000000000000
+ 0.6250000000000000 0.8750000000000000 0.7500000000000000
+ 0.8750000000000000 0.6250000000000000 0.2500000000000000
+ 0.0000000000000000 0.0000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.5000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.0000000000000000
+ 0.5000000000000000 0.0000000000000000 0.5000000000000000
+ 0.0000000000000000 0.5000000000000000 0.5000000000000000
+ 0.5000000000000000 0.0000000000000000 0.0000000000000000
+ 0.0000000000000000 0.0000000000000000 0.5000000000000000
+ 0.3045800000000000 0.4785900000000000 0.3852900000000000
+ 0.1954200000000000 0.5807099999999999 0.1740100000000000
+ 0.3045800000000000 0.3259900000000000 0.9192900000000001
+ 0.1954200000000000 0.1147100000000000 0.0214100000000000
+ 0.6954200000000000 0.5214100000000000 0.6147100000000000
+ 0.8045800000000000 0.4192900000000000 0.8259900000000000
+ 0.6954200000000000 0.6740100000000000 0.0807100000000000
+ 0.8045800000000000 0.8852900000000000 0.9785900000000000
+ 0.5933000000000000 0.9192900000000001 0.1147100000000000
+ 0.9067000000000000 0.0214100000000000 0.3259900000000000
+ 0.5933000000000000 0.1740100000000000 0.4785900000000000
+ 0.9067000000000000 0.3852900000000000 0.5807099999999999
+ 0.4067000000000000 0.0807100000000000 0.8852900000000000
+ 0.0933000000000000 0.9785900000000000 0.6740100000000000
+ 0.4067000000000000 0.8259900000000000 0.5214100000000000
+ 0.0933000000000000 0.6147100000000000 0.4192900000000000
+ 0.3852900000000000 0.3045800000000000 0.4785900000000000
+ 0.1147100000000000 0.5933000000000000 0.9192900000000001
+ 0.3852900000000000 0.5807099999999999 0.9067000000000000
+ 0.1147100000000000 0.0214100000000000 0.1954200000000000
+ 0.6147100000000000 0.6954200000000000 0.5214100000000000
+ 0.8852900000000000 0.4067000000000000 0.0807100000000000
+ 0.6147100000000000 0.4192900000000000 0.0933000000000000
+ 0.8852900000000000 0.9785900000000000 0.8045800000000000
+ 0.3259900000000000 0.9067000000000000 0.0214100000000000
+ 0.1740100000000000 0.1954200000000000 0.5807099999999999
+ 0.3259900000000000 0.9192900000000001 0.3045800000000000
+ 0.1740100000000000 0.4785900000000000 0.5933000000000000
+ 0.6740100000000000 0.0933000000000000 0.9785900000000000
+ 0.8259900000000000 0.8045800000000000 0.4192900000000000
+ 0.6740100000000000 0.0807100000000000 0.6954200000000000
+ 0.8259900000000000 0.5214100000000000 0.4067000000000000
+ 0.4785900000000000 0.3852900000000000 0.3045800000000000
+ 0.0214100000000000 0.3259900000000000 0.9067000000000000
+ 0.0214100000000000 0.1954200000000000 0.1147100000000000
+ 0.4785900000000000 0.5933000000000000 0.1740100000000000
+ 0.5214100000000000 0.6147100000000000 0.6954200000000000
+ 0.9785900000000000 0.6740100000000000 0.0933000000000000
+ 0.9785900000000000 0.8045800000000000 0.8852900000000000
+ 0.5214100000000000 0.4067000000000000 0.8259900000000000
+ 0.9192900000000001 0.1147100000000000 0.5933000000000000
+ 0.5807099999999999 0.1740100000000000 0.1954200000000000
+ 0.5807099999999999 0.9067000000000000 0.3852900000000000
+ 0.9192900000000001 0.3045800000000000 0.3259900000000000
+ 0.0807100000000000 0.8852900000000000 0.4067000000000000
+ 0.4192900000000000 0.8259900000000000 0.8045800000000000
+ 0.4192900000000000 0.0933000000000000 0.6147100000000000
+ 0.0807100000000000 0.6954200000000000 0.6740100000000000
diff --git a/test/data/virtual_structure/rhombohedral/POSCAR-1 b/test/data/virtual_structure/rhombohedral/POSCAR-1
new file mode 100644
index 0000000..56c3b32
--- /dev/null
+++ b/test/data/virtual_structure/rhombohedral/POSCAR-1
@@ -0,0 +1,9 @@
+rhomb
+1
+0 5 5
+5 0 5
+5 5 0
+1 1
+Direct
+0 0 0
+0.7 0.9 0.7
diff --git a/test/data/virtual_structure/rhombohedral/findsym.log b/test/data/virtual_structure/rhombohedral/findsym.log
new file mode 100644
index 0000000..c95cdf9
--- /dev/null
+++ b/test/data/virtual_structure/rhombohedral/findsym.log
@@ -0,0 +1,37 @@
+FINDSYM, Version 3.2.3, August 2007
+Written by Harold T. Stokes and Dorian M. Hatch
+Brigham Young University
+
+poscar2findsym
+Tolerance: 0.00001
+Lattice vectors in cartesian coordinates:
+ 0.00000 5.00000 5.00000
+ 5.00000 0.00000 5.00000
+ 5.00000 5.00000 0.00000
+Lattice parameters, a,b,c,alpha,beta,gamma:
+ 7.07107 7.07107 7.07107 60.00000 60.00000 60.00000
+Vectors defining the unit cell (dimensionless coordinates):
+ 1.00000 0.00000 0.00000
+ 0.00000 1.00000 0.00000
+ 0.00000 0.00000 1.00000
+Number of atoms in unit cell:
+ 2
+Type of each atom:
+ 1 2
+Position of each atom (dimensionless coordinates)
+ 1 0.00000 0.00000 0.00000
+ 2 0.70000 0.90000 0.70000
+------------------------------------------
+Space Group 160 C3v-5 R3m
+Origin at 0.00000 0.00000 0.00000
+Vectors a,b,c:
+ 0.00000 0.00000 1.00000
+ 1.00000 0.00000 -1.00000
+ -1.00000 3.00000 -1.00000
+Values of a,b,c,alpha,beta,gamma:
+ 7.07107 7.07107 17.32051 90.00000 90.00000 120.00000
+Atomic positions in terms of a,b,c:
+Wyckoff position a, z = 0.00000
+ 1 0.00000 0.00000 0.00000
+Wyckoff position a, z = 0.30000
+ 2 0.00000 0.00000 0.30000
diff --git a/test/data/virtual_structure/test-virtual.zsh b/test/data/virtual_structure/test-virtual.zsh
new file mode 100755
index 0000000..f830bba
--- /dev/null
+++ b/test/data/virtual_structure/test-virtual.zsh
@@ -0,0 +1,27 @@
+#!/bin/zsh
+
+export LD_LIBRARY_PATH=`pwd`/../../../src/.libs
+export RUBYLIB=`pwd`/../..
+# set isotropy information
+ISOTROPY=~/code/isotropy/findsym
+export ISODATA=~/code/isotropy/
+
+
+for dir in `/bin/ls -d *(/)`; do
+ echo $dir
+ cd $dir
+ for i in `ls POSCAR-*`;do
+ echo -n " "$i": "
+ spglib=`ruby $RUBYLIB/symPoscar.rb -n $i|awk -F"(" '{print $2}'|sed s/\)//`
+ isotropy=`ruby $RUBYLIB/poscar2findsym.rb $i|$ISOTROPY|grep Space|awk '{print $3}'`
+
+ if [ $spglib = $isotropy ]; then
+ echo 'ok'
+ else
+ echo 'fail (' $isotropy ')'
+ fi
+ done
+ echo
+ cd ..
+done
+
diff --git a/test/extconf.rb b/test/extconf.rb
new file mode 100644
index 0000000..8637281
--- /dev/null
+++ b/test/extconf.rb
@@ -0,0 +1,9 @@
+#!/usr/bin/env ruby
+
+require 'mkmf'
+extension_name = 'getspg'
+dir_config(extension_name)
+
+if have_header('spglib.h') and have_library('symspg')
+ create_makefile(extension_name)
+end
diff --git a/test/getspg.c b/test/getspg.c
new file mode 100644
index 0000000..1f47dea
--- /dev/null
+++ b/test/getspg.c
@@ -0,0 +1,336 @@
+#include <stdio.h>
+#include "ruby.h"
+#include "spglib.h"
+
+VALUE Getspg = Qnil;
+void Init_getspg(void);
+VALUE method_getspg(VALUE self, VALUE r_size, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec);
+VALUE method_getptg(VALUE self, VALUE r_rotations);
+VALUE method_refine_cell(VALUE self, VALUE r_size, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec);
+VALUE method_get_operations(VALUE self, VALUE r_size, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec);
+VALUE method_get_dataset(VALUE self, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec);
+
+void Init_getspg(void)
+{
+ Getspg = rb_define_module("Getspg");
+ rb_define_method(Getspg, "getspg", method_getspg, 6);
+ rb_define_method(Getspg, "getptg", method_getptg, 1);
+ rb_define_method(Getspg, "refine_cell", method_refine_cell, 6);
+ rb_define_method(Getspg, "get_operations", method_get_operations, 6);
+ rb_define_method(Getspg, "get_dataset", method_get_dataset, 5);
+}
+
+VALUE method_getspg(VALUE self, VALUE r_size, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec)
+{
+ int i, j, size, spgroup;
+ double symprec, lattice[3][3];
+ VALUE array;
+
+ size = NUM2INT(r_size);
+
+ double position[size*4][3];
+ int types[size*4];
+ char symbol[21];
+ char output[21];
+
+ spg_set_angle_tolerance();
+ symprec = NUM2DBL(r_symprec);
+
+ for (i=0; i<size; i++)
+ for (j=0; j<3; j++) {
+ position[i][j] =
+ NUM2DBL(rb_ary_entry(rb_ary_entry(r_position, i), j));
+ types[i] = NUM2DBL(rb_ary_entry(r_types, i));
+ }
+
+ for (i=0; i<3; i++)
+ for (j=0; j<3; j++)
+ lattice[i][j] =
+ NUM2DBL(rb_ary_entry(rb_ary_entry(r_lattice, i), j));
+
+ /* Space group */
+ spgroup = spgat_get_international(symbol,
+ lattice,
+ position,
+ types,
+ size,
+ symprec,
+ NUM2DBL(r_angle_symprec));
+ sprintf(output, "%s", symbol);
+
+ array = rb_ary_new();
+ rb_ary_push(array, rb_str_new2(output));
+ rb_ary_push(array, INT2NUM(spgroup));
+
+ return array;
+}
+
+VALUE method_getptg(VALUE self, VALUE r_rotations)
+{
+ int i, j, k, size, ptg_num;
+ char symbol[6];
+ int trans_mat[3][3];
+ VALUE array, matrix, vector;
+
+ size = RARRAY_LEN( r_rotations );
+ int rotations[size][3][3];
+
+ for ( i = 0; i < size; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ for ( k = 0; k < 3; k++ ) {
+ rotations[i][j][k] = NUM2INT( rb_ary_entry( rb_ary_entry( rb_ary_entry( r_rotations, i ), j ), k ) );
+ }
+ }
+ }
+
+ ptg_num = spg_get_pointgroup( symbol, trans_mat, rotations, size );
+ array = rb_ary_new();
+ rb_ary_push( array, rb_str_new2( symbol ) );
+ rb_ary_push( array, INT2NUM( ptg_num ) );
+ matrix = rb_ary_new();
+ for ( i = 0; i < 3; i++) {
+ vector = rb_ary_new();
+ for ( j = 0; j < 3; j++ ) {
+ rb_ary_push( vector, INT2NUM( trans_mat[i][j] ) );
+ }
+ rb_ary_push( matrix, vector);
+ }
+ rb_ary_push( array, matrix );
+
+ return array;
+}
+
+VALUE method_refine_cell(VALUE self, VALUE r_size, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec)
+{
+ int i, j, size, spgroup, num_atom_bravais ;
+ double symprec, angle_tolerance, lattice[3][3];
+ VALUE vector, array, r_brv_lattice, r_brv_positions, r_brv_types;
+
+ size = NUM2INT(r_size);
+
+ double position[size*4][3];
+ int types[size*4];
+ char symbol[21];
+ char output[21];
+
+ angle_tolerance = NUM2DBL(r_angle_symprec);
+ symprec = NUM2DBL(r_symprec);
+
+ for (i=0; i<size; i++)
+ for (j=0; j<3; j++) {
+ position[i][j] =
+ NUM2DBL(rb_ary_entry(rb_ary_entry(r_position, i), j));
+ types[i] = NUM2DBL(rb_ary_entry(r_types, i));
+ }
+
+ for (i=0; i<3; i++)
+ for (j=0; j<3; j++)
+ lattice[i][j] =
+ NUM2DBL(rb_ary_entry(rb_ary_entry(r_lattice, i), j));
+
+ /* Space group */
+ spgroup = spgat_get_international(symbol,
+ lattice,
+ position,
+ types,
+ size,
+ symprec,
+ angle_tolerance);
+ sprintf(output, "%s", symbol);
+
+ num_atom_bravais = spgat_refine_cell(lattice,
+ position,
+ types,
+ size,
+ symprec,
+ angle_tolerance);
+
+ r_brv_lattice = rb_ary_new();
+ for (i=0; i<3; i++) {
+ vector = rb_ary_new();
+ for (j=0; j<3; j++) {
+ rb_ary_push(vector, rb_float_new(lattice[i][j]));
+ }
+ rb_ary_push(r_brv_lattice, vector);
+ }
+
+ r_brv_positions = rb_ary_new();
+ r_brv_types = rb_ary_new();
+ for (i=0; i<num_atom_bravais; i++) {
+ vector = rb_ary_new();
+ for (j=0; j<3; j++) {
+ rb_ary_push(vector, rb_float_new(position[i][j]));
+ }
+ rb_ary_push(r_brv_positions, vector);
+ rb_ary_push(r_brv_types, INT2NUM(types[i]));
+ }
+
+ array = rb_ary_new();
+ rb_ary_push(array, rb_str_new2(output));
+ rb_ary_push(array, r_brv_lattice);
+ rb_ary_push(array, r_brv_positions);
+ rb_ary_push(array, r_brv_types);
+ rb_ary_push(array, INT2NUM(spgroup));
+
+ return array;
+}
+
+VALUE method_get_operations(VALUE self, VALUE r_size, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec)
+{
+ int i, j, k, num_atom, num_sym;
+ double symprec, lattice[3][3];
+ VALUE matrix, matrix_row, vector, array, r_rotation, r_translation;
+
+ num_atom = NUM2INT(r_size);
+
+ double position[num_atom][3];
+ int types[num_atom];
+ int rotation[num_atom*48][3][3];
+ double translation[num_atom*48][3];
+
+ symprec = NUM2DBL(r_symprec);
+
+ for (i=0; i<num_atom; i++) {
+ for (j=0; j<3; j++) {
+ position[i][j] =
+ NUM2DBL(rb_ary_entry(rb_ary_entry(r_position, i), j));
+ types[i] = NUM2DBL(rb_ary_entry(r_types, i));
+ }
+ }
+
+ for (i=0; i<3; i++)
+ for (j=0; j<3; j++)
+ lattice[i][j] =
+ NUM2DBL(rb_ary_entry(rb_ary_entry(r_lattice, i), j));
+
+ num_sym = spgat_get_symmetry(rotation,
+ translation,
+ num_atom*192,
+ lattice,
+ position,
+ types,
+ num_atom,
+ symprec,
+ NUM2DBL(r_angle_symprec));
+
+
+ r_rotation = rb_ary_new();
+ r_translation = rb_ary_new();
+
+ for ( i = 0; i < num_sym; i++ ) {
+ vector = rb_ary_new();
+ matrix = rb_ary_new();
+ for ( j = 0; j < 3 ; j++ ) {
+ rb_ary_push( vector, rb_float_new( translation[i][j] ) );
+ matrix_row = rb_ary_new();
+ for ( k = 0; k < 3; k++ ) {
+ rb_ary_push( matrix_row, INT2NUM( rotation[i][j][k] ) );
+ }
+ rb_ary_push( matrix, matrix_row );
+ }
+ rb_ary_push( r_rotation, matrix );
+ rb_ary_push( r_translation, vector );
+ }
+
+ array = rb_ary_new();
+ rb_ary_push(array, r_rotation);
+ rb_ary_push(array, r_translation);
+
+ return array;
+}
+
+VALUE method_get_dataset(VALUE self, VALUE r_lattice, VALUE r_position, VALUE r_types, VALUE r_symprec, VALUE r_angle_symprec)
+{
+ int i, j, k, num_atom;
+ double symprec, lattice[3][3];
+ SpglibDataset *dataset;
+ VALUE mat, vec, row, array, r_tmat, r_oshift, r_rot, r_trans, r_wyckoffs;
+
+ num_atom = RARRAY_LEN( r_types );
+
+ double position[num_atom][3];
+ int types[num_atom];
+ int rotation[num_atom*48][3][3];
+ double translation[num_atom*48][3];
+
+ symprec = NUM2DBL(r_symprec);
+
+ for ( i = 0; i < num_atom; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ position[i][j] =
+ NUM2DBL( rb_ary_entry( rb_ary_entry( r_position, i ), j ) );
+ types[i] = NUM2DBL( rb_ary_entry( r_types, i ) );
+ }
+ }
+
+ for ( i = 0; i < 3; i++ ) {
+ for ( j = 0; j < 3; j++ ) {
+ lattice[i][j] =
+ NUM2DBL( rb_ary_entry( rb_ary_entry( r_lattice, i), j ) );
+ }
+ }
+
+ dataset = spgat_get_dataset(lattice,
+ position,
+ types,
+ num_atom,
+ symprec,
+ NUM2DBL(r_angle_symprec));
+
+ array = rb_ary_new();
+
+ rb_ary_push( array, INT2NUM( dataset->spacegroup_number ) );
+ rb_ary_push( array, rb_str_new2( dataset->international_symbol ) );
+ rb_ary_push( array, INT2NUM( dataset->hall_number ) );
+ rb_ary_push( array, rb_str_new2( dataset->hall_symbol ) );
+
+ /* Transformation_matrix */
+ r_tmat = rb_ary_new();
+ for ( i = 0; i < 3; i++ ) {
+ row = rb_ary_new();
+ for ( j = 0; j < 3; j++ ) {
+ rb_ary_push( row,
+ rb_float_new( dataset->transformation_matrix[i][j] ) );
+ }
+ rb_ary_push( r_tmat, row );
+ }
+ rb_ary_push( array, r_tmat );
+
+ /* Origin shift */
+ r_oshift = rb_ary_new();
+ for ( i = 0; i < 3; i++ ) {
+ rb_ary_push( r_oshift, rb_float_new( dataset->origin_shift[i] ) );
+ }
+ rb_ary_push( array, r_oshift );
+
+ /* Rotations, translations */
+ r_rot = rb_ary_new();
+ r_trans = rb_ary_new();
+ for ( i = 0; i < dataset->n_operations; i++ ) {
+ mat = rb_ary_new();
+ vec = rb_ary_new();
+ for ( j = 0; j < 3; j++ ) {
+ rb_ary_push( vec, rb_float_new( dataset->translations[i][j] ) );
+ row = rb_ary_new();
+ for ( k = 0; k < 3; k++ ) {
+ rb_ary_push( row, rb_float_new( dataset->rotations[i][j][k] ) );
+ }
+ rb_ary_push( mat, row );
+ }
+ rb_ary_push( r_trans, vec );
+ rb_ary_push( r_rot, mat );
+ }
+ rb_ary_push( array, r_rot );
+ rb_ary_push( array, r_trans );
+
+ /* Wyckoff letters */
+ r_wyckoffs = rb_ary_new();
+ for ( i = 0; i < dataset->n_atoms; i++ ) {
+ r_wyckoffs = rb_ary_push( r_wyckoffs, INT2NUM( dataset->wyckoffs[i] ) );
+ }
+ rb_ary_push( array, r_wyckoffs );
+
+ spg_free_dataset( dataset );
+
+ return array;
+}
diff --git a/test/poscar.rb b/test/poscar.rb
new file mode 100644
index 0000000..abca52a
--- /dev/null
+++ b/test/poscar.rb
@@ -0,0 +1,329 @@
+# Time-stamp: <2008-04-06 13:39:03 togo>
+#
+# Copyright (C) 2005 Atsushi Togo
+# togo.atsushi at gmail.com
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Fifth Floor, Boston, MA 02110-1301, USA, or see
+# http://www.gnu.org/copyleft/gpl.html
+
+
+module Crystal
+ # constant
+ AtomicNumber = {"H"=>1, "He"=>2, "Li"=>3, "Be"=>4, "B"=>5, "C"=>6, "N"=>7, "O"=>8,
+ "F"=>9, "Ne"=>9, "K"=>10, "Na"=>11, "Mg"=>12, "Al"=>13, "Si"=>14, "P"=>15, "S"=>16,
+ "Cl"=>17, "Al"=>18, "K"=>19, "Ca"=>20, "Sc"=>21, "Ti"=>22, "V"=>23, "Cr"=>24,
+ "Mn"=>25, "Fe"=>26, "Co"=>27, "Ni"=>28, "Cu"=>29, "Zn"=>30, "Ga"=>31, "Ge"=>32,
+ "As"=>33, "Se"=>34, "Br"=>35, "Kr"=>36, "Rb"=>37, "Sr"=>38, "Y"=>39, "Zr"=>40,
+ "Nb"=>41, "Mo"=>42, "Tc"=>43, "Ru"=>44, "Rh"=>45, "Pd"=>46, "Ag"=>47, "Cd"=>48,
+ "In"=>49, "Sn"=>50, "Sb"=>51, "Te"=>52, "I"=>53, "Xe"=>54, "Cs"=>55, "Ba"=>56,
+ "La"=>57, "Ce"=>58, "Pr"=>59, "Nd"=>60, "Pm"=>61, "Sm"=>62, "Eu"=>63, "Gd"=>64,
+ "Tb"=>65, "Dy"=>66, "Ho"=>67, "Er"=>68, "Tm"=>69, "Yb"=>70, "Lu"=>71, "Hf"=>72,
+ "Ta"=>73, "W"=>74, "Re"=>75, "Os"=>76, "Ir"=>77, "Pt"=>78, "Au"=>79, "Hg"=>80,
+ "Tl"=>81, "Pb"=>82, "Bi"=>83, "Po"=>84, "At"=>85, "Rn"=>86, "Fr"=>87, "Ra"=>88,
+ "Ac"=>89, "Th"=>90, "Pa"=>91, "U"=>92, "Np"=>93, "Pu"=>94, "Am"=>95, "Cm"=>96,
+ "Bk"=>97, "Cf"=>98, "Es"=>99, "Fm"=>100, "Md"=>101, "No"=>102, "Lr"=>103, "Rf"=>104,
+ "Db"=>105, "Sg"=>106, "Bh"=>107, "Hs"=>108, "Mt"=>109, "Ds"=>110, "Rg"=>111}
+
+ # method
+ def transform2axis(alpha,beta,gamma,cellA,cellB,cellC)
+ alpha = alpha / 180 * Math::PI
+ beta = beta / 180 * Math::PI
+ gamma = gamma / 180 * Math::PI
+# cz = cellC
+# bz = Math.cos(alpha) * cellB
+# by = Math.sin(alpha) * cellB
+# az = Math.cos(beta) * cellA
+# ay = ( Math.cos(gamma) - Math.cos(beta) * Math.cos(alpha) ) / Math.sin(alpha) * cellA
+# ax = Math.sqrt(cellA**2 - ay**2 - az**2)
+# return [ax,ay,az], [0,by,bz], [0,0,cz]
+ ax = cellA
+ bx = Math.cos(gamma) * cellB
+ by = Math.sin(gamma) * cellB
+ cx = Math.cos(beta) * cellC
+ cy = ( Math.cos(alpha) - Math.cos(beta) * Math.cos(gamma) ) / Math.sin(gamma) * cellC
+ cz = Math.sqrt(cellC**2 - cy**2 - cx**2)
+ return [ax,0,0], [bx,by,0], [cx,cy,cz]
+ end
+
+ def axisAngle(inputAxis)
+ axis = []
+ 3.times {|i| axis << Vector.elements(inputAxis[i])}
+ alpha = Math.acos(axis[1].inner_product(axis[2])/axis[1].r/axis[2].r)/Math::PI*180
+ beta = Math.acos(axis[2].inner_product(axis[0])/axis[2].r/axis[0].r)/Math::PI*180
+ gamma = Math.acos(axis[0].inner_product(axis[1])/axis[0].r/axis[1].r)/Math::PI*180
+ return alpha, beta, gamma
+ end
+
+ def axisLength(axis)
+ length = []
+ axis.each do |vec|
+ length << Vector.elements(vec).r
+ end
+ length
+ end
+
+ module_function :transform2axis, :axisAngle, :axisLength
+
+ # class
+ class Atom
+ attr_accessor :position
+ def initialize(position)
+ @position = position
+ end
+ end
+
+ # This class is mainly considered in Cartesian coordinate.
+ class Cell
+ require 'matrix'
+
+ attr_accessor :axis, :atoms, :comment
+ def initialize(axis, atoms, comment = nil)
+ @axis = axis
+ @atoms = atoms
+ @comment = comment
+ end
+
+ def axisAngle
+ Crystal.axisAngle(@axis)
+ end
+
+ def axisLength
+ Crystal.axisLength(@axis)
+ end
+
+ def volume
+ a = @axis
+ a[0][0]*(a[1][1]*a[2][2]-a[1][2]*a[2][1])+a[0][1]*(a[1][2]*a[2][1]-a[1][0]*a[2][2])+a[0][2]*(a[1][0]*a[2][1]-a[1][1]*a[2][0])
+ end
+
+ def distance(num1, num2)
+ (Matrix.rows(@axis).transpose * (Vector.elements(@atoms[num1].position) - Vector.elements(@atoms[num2].position))).r
+ end
+
+ def minDistance(num1, num2)
+ min = distance(num1, num2)
+ (-1..1).each do |a|
+ (-1..1).each do |b|
+ (-1..1).each do |c|
+ position = Vector.elements(@atoms[num2].position) + Vector[a,b,c]
+ distance = (Matrix.rows(@axis).transpose * (Vector.elements(@atoms[num1].position) - position )).r
+ min = distance if min > distance
+ end
+ end
+ end
+ min
+ end
+
+ def positionReal(position)
+ (Matrix.rows(@axis).transpose * Vector.elements(position)).to_a
+ end
+ end
+
+end
+
+module Vasp
+
+ class CellToPoscar
+
+ include Crystal
+
+ def initialize(cell, atomicOrder = nil)
+ @cell = cell
+ @atomicOrder = atomicOrder # this is an array of atomic names like ["Si", "O"]
+ end
+
+ def print
+ puts createPoscar
+ end
+
+ def printXYZ
+ puts createXYZ
+ end
+
+ def write(filename)
+ File.open(filename, "w") {|file| file.puts createPoscar}
+ end
+
+ private
+
+ def createPoscar
+ @cell.comment = "POSCAR generated by cell class" if @cell.comment == nil
+ poscar = sprintf("#{@cell.comment.strip}\n") # comment
+ poscar << (sprintf "1.0\n") # scale
+ @cell.axis.each {|row| poscar << sprintf("%20.16f %20.16f %20.16f\n", row[0], row[1], row[2])} # axis
+ # number of atoms & sort by atom name
+ names = []
+ @cell.atoms.each {|atom| names << atom.name}
+ atomHash = Hash.new
+ if ! @atomicOrder
+ @atomicOrder = names.uniq
+ end
+ @atomicOrder.each {|name| atomHash[name] = []}
+ @cell.atoms.each {|atom| atomHash[atom.name] << atom}
+ @atomicOrder.each {|name| poscar << sprintf(" #{atomHash[name].size}")}
+ poscar << sprintf("\n")
+ poscar << sprintf("Direct\n") # Direct only
+ # position
+ @atomicOrder.each do |name|
+ counter = 0
+ atomHash[name].each do |atom|
+ counter += 1
+ 3.times do |i|
+ if sprintf("%20.16f", atom.position[i]).to_f.abs < 1e-16
+ atom.position[i] = 0.0
+ end
+ end
+ poscar << sprintf("%20.16f %20.16f %20.16f # #{name}#{counter}\n", atom.position[0], atom.position[1], atom.position[2])
+ end
+ end
+ poscar
+ end
+
+ def createXYZ
+ xyz = "#{@cell.atoms.size}\n"
+ @cell.comment = "XYZ generated by cell class" if @cell.comment == nil
+ xyz << "#{@cell.comment}\n"
+ axis = Matrix.rows(@cell.axis).transpose
+ @cell.atoms.each do |atom|
+ xyz << sprintf("%3s", atom.name.to_s)
+ (axis * Vector.elements(atom.position)).to_a.collect {|x| xyz << sprintf("%20.13f", x)}
+ xyz << "\n"
+ end
+ xyz
+ end
+ end
+
+ class Poscar
+
+ def initialize(filename = "POSCAR", potcarName = "POTCAR")
+ parse(filename, potcarName)
+ end
+
+ def cell
+ Crystal::Cell.new(@axis, @atoms, @comment)
+ end
+
+ private
+
+ def atomNameByPotcar(filename) # pick up atom names from POTCAR
+ name = []
+ open(filename, "r").each do |line|
+ if line =~ /VRHFIN\s*=\s*([A-Za-z]*)/
+ name << $1
+ end
+ end
+ name
+ end
+
+ def axisPoscar(scale)
+ axis = []
+ 3.times {|i| axis[i] = @input.readline.strip.split(/\s+/)} # a,b,c axis
+ # multiply universal scaling factor
+ 3.times do |i|
+ 3.times do |j|
+ axis[i][j] = axis[i][j].to_f * scale
+ end
+ end
+ axis
+ end
+
+ def namePoscar(numAtoms, potcarName)
+ if File.exist?(potcarName)
+ atomName = atomNameByPotcar(potcarName)
+ else
+ atomName = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(//)
+ end
+ name = []
+ numAtoms.size.times do |i|
+ numAtoms[i].times {|j| name << "#{atomName[i]}"}
+ end
+ name
+ end
+
+ def numAtomsPoscar
+ num = @input.readline.strip.split(/\s+/)
+ num.size.times {|i| num[i] = num[i].to_i}
+ num
+ end
+
+ def parse(filename, potcarName)
+ @input = open(filename, "r")
+ @comment = @input.readline.chomp # line 1: comment (string)
+ scale = scalePoscar(filename) # line 2: universal scaling factor (float)
+ @axis = axisPoscar(scale) # line 3-5: axis (3x3: float)
+ numAtoms = numAtomsPoscar # line 6: number of atoms ([] integer), atom name ([name, name, ...]) example [Sn, Sn, O, O]
+ if numAtoms[0] == 0
+ numAtoms = numAtomsPoscar
+ end
+ name = namePoscar(numAtoms, potcarName)
+ #
+ # line 7-(8): 'Selective dynamics' or not (bool)
+ #
+ @selectiveDynamics = false
+ temp = @input.readline
+ if temp =~ /^\s*s/i then # check 's' or 'S' of the first word
+ @selectiveDynamics = true
+ temp = @input.readline # when this situation, reading one more line is nessesarry
+ end
+ if (! temp =~ /^\s*d/i)
+ # allow only 'Direct' now
+ warn "#{filename}: line 7 or 8"
+ warn "poscar.rb can handle only direct coordinates."
+ exit
+ end
+
+ @atoms = positionPoscar(numAtoms, name) # line 9(8): [Atom, ...]
+ # initial states of MD is ignored.
+ @input.close
+ end
+
+ def positionPoscar(numEachAtom, name)
+ atoms = []
+ numEachAtom.each do |num|
+ num.times do
+ lineArr = @input.gets.strip.split(/\s+/)
+ position = lineArr[0..2].collect! {|x| x.to_f}
+ if lineArr.size >= 5 then
+ movable = lineArr[3..5].collect! {|x| x = true if x =~ /^t/i}
+ else
+ movable = [false, false, false]
+ end
+ atoms << Atom.new(position, name.shift, movable)
+ end
+ end
+ atoms
+ end
+
+ def scalePoscar(filename)
+ scale = @input.readline.to_f
+ if scale < 0 # minus value is neglected
+ print "#{filename} line 2\n"
+ print "poscar.rb cannot use negative scaling factor.\n"
+ exit
+ end
+ scale
+ end
+ end
+
+ class Atom < Crystal::Atom
+ attr_accessor :name, :movable
+ def initialize(position, name = nil, movable = nil)
+ @position = position
+ @name = name
+ @movable = movable
+ end
+ end
+end
diff --git a/test/poscar2findsym.rb b/test/poscar2findsym.rb
new file mode 100755
index 0000000..1095358
--- /dev/null
+++ b/test/poscar2findsym.rb
@@ -0,0 +1,354 @@
+#!/usr/bin/env ruby
+
+# Time-stamp: <2007-09-11 16:05:49 togo>
+#
+# Copyright (C) 2005 Atsushi Togo
+# togo.atsushi at gmail.com
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Fifth Floor, Boston, MA 02110-1301, USA, or see
+# http://www.gnu.org/copyleft/gpl.html
+
+require "optparse"
+
+module Crystal
+ # constant
+ AtomicNumber = {"H"=>1, "He"=>2, "Li"=>3, "Be"=>4, "B"=>5, "C"=>6, "N"=>7, "O"=>8,
+ "F"=>9, "Ne"=>9, "K"=>10, "Na"=>11, "Mg"=>12, "Al"=>13, "Si"=>14, "P"=>15, "S"=>16,
+ "Cl"=>17, "Al"=>18, "K"=>19, "Ca"=>20, "Sc"=>21, "Ti"=>22, "V"=>23, "Cr"=>24,
+ "Mn"=>25, "Fe"=>26, "Co"=>27, "Ni"=>28, "Cu"=>29, "Zn"=>30, "Ga"=>31, "Ge"=>32,
+ "As"=>33, "Se"=>34, "Br"=>35, "Kr"=>36, "Rb"=>37, "Sr"=>38, "Y"=>39, "Zr"=>40,
+ "Nb"=>41, "Mo"=>42, "Tc"=>43, "Ru"=>44, "Rh"=>45, "Pd"=>46, "Ag"=>47, "Cd"=>48,
+ "In"=>49, "Sn"=>50, "Sb"=>51, "Te"=>52, "I"=>53, "Xe"=>54, "Cs"=>55, "Ba"=>56,
+ "La"=>57, "Ce"=>58, "Pr"=>59, "Nd"=>60, "Pm"=>61, "Sm"=>62, "Eu"=>63, "Gd"=>64,
+ "Tb"=>65, "Dy"=>66, "Ho"=>67, "Er"=>68, "Tm"=>69, "Yb"=>70, "Lu"=>71, "Hf"=>72,
+ "Ta"=>73, "W"=>74, "Re"=>75, "Os"=>76, "Ir"=>77, "Pt"=>78, "Au"=>79, "Hg"=>80,
+ "Tl"=>81, "Pb"=>82, "Bi"=>83, "Po"=>84, "At"=>85, "Rn"=>86, "Fr"=>87, "Ra"=>88,
+ "Ac"=>89, "Th"=>90, "Pa"=>91, "U"=>92, "Np"=>93, "Pu"=>94, "Am"=>95, "Cm"=>96,
+ "Bk"=>97, "Cf"=>98, "Es"=>99, "Fm"=>100, "Md"=>101, "No"=>102, "Lr"=>103, "Rf"=>104,
+ "Db"=>105, "Sg"=>106, "Bh"=>107, "Hs"=>108, "Mt"=>109, "Ds"=>110, "Rg"=>111}
+
+ # method
+ def transform2axis(alpha,beta,gamma,cellA,cellB,cellC)
+ alpha = alpha / 180 * Math::PI
+ beta = beta / 180 * Math::PI
+ gamma = gamma / 180 * Math::PI
+# cz = cellC
+# bz = Math.cos(alpha) * cellB
+# by = Math.sin(alpha) * cellB
+# az = Math.cos(beta) * cellA
+# ay = ( Math.cos(gamma) - Math.cos(beta) * Math.cos(alpha) ) / Math.sin(alpha) * cellA
+# ax = Math.sqrt(cellA**2 - ay**2 - az**2)
+# return [ax,ay,az], [0,by,bz], [0,0,cz]
+ ax = cellA
+ bx = Math.cos(gamma) * cellB
+ by = Math.sin(gamma) * cellB
+ cx = Math.cos(beta) * cellC
+ cy = ( Math.cos(alpha) - Math.cos(beta) * Math.cos(gamma) ) / Math.sin(gamma) * cellC
+ cz = Math.sqrt(cellC**2 - cy**2 - cx**2)
+ return [ax,0,0], [bx,by,0], [cx,cy,cz]
+ end
+
+ def axisAngle(inputAxis)
+ axis = []
+ 3.times {|i| axis << Vector.elements(inputAxis[i])}
+ alpha = Math.acos(axis[1].inner_product(axis[2])/axis[1].r/axis[2].r)/Math::PI*180
+ beta = Math.acos(axis[2].inner_product(axis[0])/axis[2].r/axis[0].r)/Math::PI*180
+ gamma = Math.acos(axis[0].inner_product(axis[1])/axis[0].r/axis[1].r)/Math::PI*180
+ return alpha, beta, gamma
+ end
+
+ def axisLength(axis)
+ length = []
+ axis.each do |vec|
+ length << Vector.elements(vec).r
+ end
+ length
+ end
+
+ module_function :transform2axis, :axisAngle, :axisLength
+
+ # class
+ class Atom
+ attr_accessor :position
+ def initialize(position)
+ @position = position
+ end
+ end
+
+ # This class is mainly considered in Cartesian coordinate.
+ class Cell
+ require 'matrix'
+
+ attr_accessor :axis, :atoms, :comment
+ def initialize(axis, atoms, comment = nil)
+ @axis = axis
+ @atoms = atoms
+ @comment = comment
+ end
+
+ def axisAngle
+ Crystal.axisAngle(@axis)
+ end
+
+ def axisLength
+ Crystal.axisLength(@axis)
+ end
+
+ def volume
+ a = @axis
+ a[0][0]*(a[1][1]*a[2][2]-a[1][2]*a[2][1])+a[0][1]*(a[1][2]*a[2][1]-a[1][0]*a[2][2])+a[0][2]*(a[1][0]*a[2][1]-a[1][1]*a[2][0])
+ end
+
+ def distance(num1, num2)
+ (Matrix.rows(@axis).transpose * (Vector.elements(@atoms[num1].position) - Vector.elements(@atoms[num2].position))).r
+ end
+
+ def minDistance(num1, num2)
+ min = distance(num1, num2)
+ (-1..1).each do |a|
+ (-1..1).each do |b|
+ (-1..1).each do |c|
+ position = Vector.elements(@atoms[num2].position) + Vector[a,b,c]
+ distance = (Matrix.rows(@axis).transpose * (Vector.elements(@atoms[num1].position) - position )).r
+ min = distance if min > distance
+ end
+ end
+ end
+ min
+ end
+
+ def positionReal(position)
+ (Matrix.rows(@axis).transpose * Vector.elements(position)).to_a
+ end
+ end
+
+end
+
+module Vasp
+
+ class CellToPoscar
+
+ include Crystal
+
+ def initialize(cell)
+ @cell = cell
+ end
+
+ def print
+ puts createPoscar
+ end
+
+ def write(filename)
+ File.open(filename, "w") {|file| file.puts createPoscar}
+ end
+
+ private
+
+ def createPoscar
+ @cell.comment = "POSCAR generated by cell class" if @cell.comment == nil
+ poscar = sprintf("#{@cell.comment.strip}\n") # comment
+ poscar << (sprintf "1.0\n") # scale
+ @cell.axis.each {|row| poscar << sprintf("%20.16f %20.16f %20.16f\n", row[0], row[1], row[2])} # axis
+ # number of atoms & sort by atom name
+ names = []
+ @cell.atoms.each {|atom| names << atom.name}
+ atomHash = Hash.new
+ names.uniq.each {|name| atomHash[name] = []}
+ @cell.atoms.each {|atom| atomHash[atom.name] << atom}
+ names.uniq.each {|name| poscar << sprintf(" #{atomHash[name].size}")}
+ poscar << sprintf("\n")
+ poscar << sprintf("Direct\n") # Direct only
+ # position
+ names.uniq.each do |name|
+ counter = 0
+ atomHash[name].each do |atom|
+ counter += 1
+ 3.times do |i|
+ if sprintf("%20.16f", atom.position[i]).to_f.abs < 1e-16
+ atom.position[i] = 0.0
+ end
+ end
+ poscar << sprintf("%20.16f %20.16f %20.16f # #{name}#{counter}\n", atom.position[0], atom.position[1], atom.position[2])
+ end
+ end
+ poscar
+ end
+ end
+
+ class Poscar
+
+ def initialize(filename = "POSCAR", potcarName = "POTCAR")
+ parse(filename, potcarName)
+ end
+
+ def cell
+ Crystal::Cell.new(@axis, @atoms, @comment)
+ end
+
+ private
+
+ def atomNameByPotcar(filename) # pick up atom names from POTCAR
+ name = []
+ open(filename, "r").each do |line|
+ if line =~ /VRHFIN\s*=\s*([A-Za-z]*)/
+ name << $1
+ end
+ end
+ name
+ end
+
+ def axisPoscar(scale)
+ axis = []
+ 3.times {|i| axis[i] = @input.readline.strip.split(/\s+/)} # a,b,c axis
+ # multiply universal scaling factor
+ 3.times do |i|
+ 3.times do |j|
+ axis[i][j] = axis[i][j].to_f * scale
+ end
+ end
+ axis
+ end
+
+ def namePoscar(numAtoms, potcarName)
+ if File.exist?(potcarName)
+ atomName = atomNameByPotcar(potcarName)
+ else
+ atomName = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(//)
+ end
+ name = []
+ numAtoms.size.times do |i|
+ numAtoms[i].times {|j| name << "#{atomName[i]}"}
+ end
+ name
+ end
+
+ def numAtomsPoscar
+ num = @input.readline.strip.split(/\s+/)
+ num.size.times {|i| num[i] = num[i].to_i}
+ num
+ end
+
+ def parse(filename, potcarName)
+ @input = open(filename, "r")
+ @comment = @input.readline.chomp # line 1: comment (string)
+ scale = scalePoscar(filename) # line 2: universal scaling factor (float)
+ @axis = axisPoscar(scale) # line 3-5: axis (3x3: float)
+ numAtoms = numAtomsPoscar # line 6: number of atoms ([] integer), atom name ([name, name, ...]) example [Sn, Sn, O, O]
+ if numAtoms[0] == 0
+ numAtoms = numAtomsPoscar
+ end
+ name = namePoscar(numAtoms, potcarName)
+ #
+ # line 7-(8): 'Selective dynamics' or not (bool)
+ #
+ @selectiveDynamics = false
+ temp = @input.readline
+ if temp =~ /^\s*s/i then # check 's' or 'S' of the first word
+ @selectiveDynamics = true
+ temp = @input.readline # when this situation, reading one more line is nessesarry
+ end
+ if (! temp =~ /^\s*d/i)
+ # allow only 'Direct' now
+ warn "#{filename}: line 7 or 8"
+ warn "poscar.rb can handle only direct coordinates."
+ exit
+ end
+
+ @atoms = positionPoscar(numAtoms, name) # line 9(8): [Atom, ...]
+ # initial states of MD is ignored.
+ @input.close
+ end
+
+ def positionPoscar(numEachAtom, name)
+ atoms = []
+ numEachAtom.each do |num|
+ num.times do
+ lineArr = @input.gets.strip.split(/\s+/)
+ position = lineArr[0..2].collect! {|x| x.to_f}
+ if lineArr.size >= 5 then
+ movable = lineArr[3..5].collect! {|x| x = true if x =~ /^t/i}
+ else
+ movable = [false, false, false]
+ end
+ atoms << Atom.new(position, name.shift, movable)
+ end
+ end
+ atoms
+ end
+
+ def scalePoscar(filename)
+ scale = @input.readline.to_f
+ if scale < 0 # minus value is neglected
+ print "#{filename} line 2\n"
+ print "poscar.rb cannot use negative scaling factor.\n"
+ exit
+ end
+ scale
+ end
+ end
+
+ class Atom < Crystal::Atom
+ attr_accessor :name, :movable
+ def initialize(position, name = nil, movable = nil)
+ @position = position
+ @name = name
+ @movable = movable
+ end
+ end
+end
+
+
+def printFindsym(cell, precision)
+ puts "poscar2findsym"
+ puts "#{precision}"
+ puts "1"
+ cell.axis.each do |vec|
+ printf("%20.16f %20.16f %20.16f\n", vec[0], vec[1], vec[2])
+ end
+ puts "1"
+ puts "1 0 0"
+ puts "0 1 0"
+ puts "0 0 1"
+ puts "#{cell.atoms.size}"
+ # number of atoms & sort by atom name
+ names = []
+ cell.atoms.each {|atom| names << atom.name}
+ names.uniq.each_with_index do |name, i|
+ cell.atoms.each do |atom|
+ if atom.name == name
+ print "#{i+1} "
+ end
+ end
+ end
+ puts
+ names.uniq.each_with_index do |name, i|
+ cell.atoms.each do |atom|
+ if atom.name == name
+ vec = atom.position
+ printf("%20.16f %20.16f %20.16f\n", vec[0], vec[1], vec[2])
+ end
+ end
+ end
+
+ printf("\n")
+end
+
+precision = 1e-5
+opt = OptionParser.new
+opt.on('--precision=', '-p', 'precision') {|tmp| precision = tmp.to_f}
+opt.parse!(ARGV)
+
+printFindsym(Vasp::Poscar.new(ARGV.shift).cell, precision)
diff --git a/test/symPoscar.rb b/test/symPoscar.rb
new file mode 100644
index 0000000..fda1db3
--- /dev/null
+++ b/test/symPoscar.rb
@@ -0,0 +1,137 @@
+#!/usr/bin/env ruby
+# Copyright (C) 2008 Atsushi Togo
+# togo.atsushi at gmail.com
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Fifth Floor, Boston, MA 02110-1301, USA, or see
+# http://www.gnu.org/copyleft/gpl.html
+#
+# Usage: symPoscar.rb [OPTION] [structure]
+# OPTION: -s, --symprec= : Symmetry check precision
+
+require 'optparse'
+require 'getspg.so'
+require 'poscar'
+include Getspg
+
+symprec = 1e-5
+angle_tolerance = -1.0
+nonewline = false
+pos_shift = [0,0,0]
+shift_string = false
+is_long_output = false
+is_operations = false
+is_dataset = false
+opt = OptionParser.new
+opt.on('-s', '--symprec VALUE', 'Symmetry check precision') {|tmp| symprec = tmp.to_f}
+opt.on('-a', '--angle_tolerance VALUE', 'Symmetry check precision for angle between lattice vectors in degrees') {|tmp| angle_tolerance = tmp.to_f}
+opt.on('--shift VALUE', 'uniform shift of internal atomic positions') {shift_string = true}
+opt.on('-n', '--nonewline', 'Do not output the trailing newline') {nonewline = true}
+opt.on('-l', '--long', 'Long output') {is_long_output = true}
+opt.on('-o', '--operations', 'Symmetry operations') {is_operations = true}
+opt.on('-d', '--dataset', 'Dataset') {is_dataset = true}
+opt.parse!(ARGV)
+
+if shift_string
+ pos_shift = []
+ shift_string.split.each {|val| pos_shift << val.to_f }
+end
+cell = Vasp::Poscar.new(ARGV.shift).cell
+lattice = cell.axis.transpose
+names = (cell.atoms.collect {|atom| atom.name}).uniq
+position = []
+types = []
+names.each_with_index do |name, i|
+ cell.atoms.each do |atom|
+ if atom.name == name
+ apos = atom.position
+ position << [ apos[0]+pos_shift[0],
+ apos[1]+pos_shift[1],
+ apos[2]+pos_shift[2] ]
+ types << i+1
+ end
+ end
+end
+
+if is_long_output
+ spg, brv_lattice, brv_positions, brv_types, spgnum =
+ refine_cell(types.size, lattice, position, types, symprec, angle_tolerance)
+end
+
+spgnum, spg, hallnum, hall_symbol, t_mat, o_shift,
+rotations, translations, wyckoffs = get_dataset(lattice,
+ position,
+ types,
+ symprec,
+ angle_tolerance)
+ptg_symbol, ptg_num, trans_mat = getptg(rotations)
+
+if spgnum > 0
+ if nonewline
+ print "#{spg.strip} (#{spgnum})"
+ else
+ puts "#{spg.strip} (#{spgnum}) / #{ptg_symbol}/ #{hall_symbol.strip} (#{hallnum})"
+
+ if is_long_output
+ puts "----------- original -----------"
+ lattice.each do |vec|
+ printf("%10.5f %10.5f %10.5f\n", vec[0], vec[1], vec[2]);
+ end
+
+ puts "------------ final -------------"
+ brv_lattice.each do |vec|
+ printf("%10.5f %10.5f %10.5f\n", vec[0], vec[1], vec[2]);
+ end
+
+ brv_types.size.times do |i|
+ printf("%d: %d %10.5f %10.5f %10.5f\n", i+1, brv_types[i],
+ brv_positions[i][0], brv_positions[i][1], brv_positions[i][2]);
+ end
+ end
+
+ if is_dataset
+ puts "------ transformation matrix -----"
+ t_mat.each do |row|
+ printf("%10.5f %10.5f %10.5f\n", row[0], row[1], row[2]);
+ end
+
+ puts "---------- origin shift ----------"
+ printf("%10.5f %10.5f %10.5f\n", o_shift[0], o_shift[1], o_shift[2]);
+
+ puts "--------- Wyckoff position ----------"
+ wl = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ wyckoffs.each_with_index do |w, i|
+ pos = []
+ 3.times do |j|
+ pos.push( position[i][j] - position[i][j].floor )
+ end
+ printf("%4d %2s %s %8.5f %8.5f %8.5f\n",
+ i+1, cell.atoms[i].name, wl[w,1], pos[0], pos[1], pos[2])
+ end
+ end
+
+ end
+end
+
+if is_operations or is_dataset
+ rotations.size.times do |i|
+ print "----", i+1, "----\n"
+ rotations[i].each do |row|
+ printf("%2d %2d %2d\n", row[0], row[1], row[2])
+ end
+ printf("%f %f %f\n", translations[i][0], translations[i][1], translations[i][2])
+ end
+end
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/spglib.git
More information about the debian-science-commits
mailing list