From 875cf89bb092b25e3dd721145c24f52a9a135eee Mon Sep 17 00:00:00 2001
From: Martina Stella <martinastella@phpca3.ph.kcl.ac.uk>
Date: Fri, 11 Nov 2016 14:46:16 +0000
Subject: [PATCH] fixing failed parsed file

---
 .../nomad_lab/parsers/CastepParserSpec.scala  |  11 +
 .../5Sb2Te3only426Sym/5Sb2Te3only426Sym.bands | 705 ++++++++++++++++++
 .../5Sb2Te3only426Sym.castep                  | 465 ++++++++++++
 .../5Sb2Te3only426Sym/5Sb2Te3only426Sym.cell  | 115 +++
 .../5Sb2Te3only426Sym/5Sb2Te3only426Sym.param |  28 +
 5 files changed, 1324 insertions(+)
 create mode 100755 test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.bands
 create mode 100755 test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.castep
 create mode 100755 test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.cell
 create mode 100755 test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.param

diff --git a/src/test/scala/eu/nomad_lab/parsers/CastepParserSpec.scala b/src/test/scala/eu/nomad_lab/parsers/CastepParserSpec.scala
index a4fd4af..586cf02 100644
--- a/src/test/scala/eu/nomad_lab/parsers/CastepParserSpec.scala
+++ b/src/test/scala/eu/nomad_lab/parsers/CastepParserSpec.scala
@@ -208,3 +208,14 @@ object CastepParserSpec19 extends Specification {
   }
 }
 
+object CastepParserSpec20 extends Specification {
+  "CastepParserTest" >> {
+    "test with json-events" >> {
+      ParserRun.parse(CastepParser, "parsers/castep/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.castep", "json-events") must_== ParseResult.ParseSuccess
+    }
+    "test with json" >> {
+      ParserRun.parse(CastepParser, "parsers/castep/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.castep", "json") must_== ParseResult.ParseSuccess
+    }
+  }
+}
+
diff --git a/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.bands b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.bands
new file mode 100755
index 0000000..ab050a2
--- /dev/null
+++ b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.bands
@@ -0,0 +1,705 @@
+Number of k-points     8
+Number of spin components 1
+Number of electrons  140.0    
+Number of eigenvalues     85
+Fermi energy (in atomic units)    -0.192011
+Unit cell vectors
+    6.978253   -4.028896    0.000000
+    0.000000    8.057792    0.000000
+    0.000000    0.000000  153.924013
+K-point     1  0.42857143  0.42857143  0.00000000  0.12244898
+Spin component 1
+   -0.61576781
+   -0.61548207
+   -0.61508426
+   -0.61503039
+   -0.61040161
+   -0.60994152
+   -0.60950560
+   -0.60937987
+   -0.60712566
+   -0.60692908
+   -0.60691906
+   -0.60680682
+   -0.60680637
+   -0.60563063
+   -0.60563022
+   -0.55258944
+   -0.55170306
+   -0.55067437
+   -0.54955373
+   -0.54933606
+   -0.53691834
+   -0.53598203
+   -0.53510067
+   -0.53415723
+   -0.53407959
+   -0.40110768
+   -0.39879372
+   -0.39550465
+   -0.39188555
+   -0.38976894
+   -0.36468359
+   -0.35922690
+   -0.35854104
+   -0.35774471
+   -0.35642717
+   -0.35515742
+   -0.35425662
+   -0.35415093
+   -0.35255658
+   -0.35210978
+   -0.34396231
+   -0.34296518
+   -0.33825948
+   -0.33580886
+   -0.33264953
+   -0.32981021
+   -0.32256319
+   -0.31502074
+   -0.31480564
+   -0.31014173
+   -0.30814188
+   -0.30422402
+   -0.30280972
+   -0.30000991
+   -0.29875845
+   -0.28414385
+   -0.27727483
+   -0.26791358
+   -0.26613381
+   -0.25823652
+   -0.25706238
+   -0.25122391
+   -0.24692744
+   -0.24107221
+   -0.23804082
+   -0.23524334
+   -0.23075278
+   -0.22835921
+   -0.22285797
+   -0.21961087
+   -0.16993521
+   -0.16763762
+   -0.16563138
+   -0.15972086
+   -0.15625098
+   -0.15218124
+   -0.14984998
+   -0.14439429
+   -0.14243067
+   -0.14107730
+   -0.13600116
+   -0.13271444
+   -0.13220648
+   -0.12612053
+   -0.11281948
+K-point     3  0.42857143  0.00000000  0.00000000  0.12244898
+Spin component 1
+   -0.62949187
+   -0.62856481
+   -0.62728989
+   -0.62563151
+   -0.62397102
+   -0.62163306
+   -0.61938072
+   -0.61720219
+   -0.61520154
+   -0.61471096
+   -0.60611997
+   -0.60485649
+   -0.60379793
+   -0.60235913
+   -0.60232163
+   -0.54779042
+   -0.54648720
+   -0.54485446
+   -0.54321809
+   -0.54260220
+   -0.52678262
+   -0.52510810
+   -0.52341650
+   -0.52205453
+   -0.52162661
+   -0.40238633
+   -0.40009324
+   -0.39681272
+   -0.39316044
+   -0.39099272
+   -0.36720176
+   -0.36091587
+   -0.35393325
+   -0.34789193
+   -0.34366682
+   -0.34273811
+   -0.33914119
+   -0.33439266
+   -0.33196941
+   -0.33034506
+   -0.32965101
+   -0.32905957
+   -0.32727384
+   -0.32519967
+   -0.32431196
+   -0.31415906
+   -0.31273586
+   -0.30935212
+   -0.30773856
+   -0.30565402
+   -0.30249664
+   -0.30093851
+   -0.29950038
+   -0.28930928
+   -0.28133604
+   -0.27799021
+   -0.27307058
+   -0.26926799
+   -0.26259858
+   -0.25789771
+   -0.25490496
+   -0.25415776
+   -0.24971819
+   -0.24674424
+   -0.24585869
+   -0.24379192
+   -0.23988760
+   -0.23567619
+   -0.22810099
+   -0.22047459
+   -0.17945922
+   -0.17340814
+   -0.16769784
+   -0.16574030
+   -0.16124882
+   -0.15961461
+   -0.15669155
+   -0.15576027
+   -0.15544508
+   -0.14833290
+   -0.14198713
+   -0.14056734
+   -0.13490174
+   -0.12642900
+   -0.11255205
+K-point     5  0.28571429  0.00000000  0.00000000  0.12244898
+Spin component 1
+   -0.65774125
+   -0.65654664
+   -0.65486797
+   -0.65273917
+   -0.65160508
+   -0.64481805
+   -0.64153108
+   -0.63811045
+   -0.63515891
+   -0.63378092
+   -0.61069926
+   -0.60796728
+   -0.60509399
+   -0.60279153
+   -0.60192330
+   -0.52756956
+   -0.52547382
+   -0.52281348
+   -0.52024471
+   -0.51901134
+   -0.50054038
+   -0.49842565
+   -0.49632021
+   -0.49467770
+   -0.49409224
+   -0.37873522
+   -0.37649858
+   -0.37313929
+   -0.36897401
+   -0.36588107
+   -0.35133038
+   -0.34471784
+   -0.33837608
+   -0.33534843
+   -0.33472168
+   -0.32990468
+   -0.32439068
+   -0.31785923
+   -0.31685954
+   -0.31561555
+   -0.31388172
+   -0.31183525
+   -0.31161607
+   -0.31095648
+   -0.30762968
+   -0.30046839
+   -0.29719175
+   -0.29514180
+   -0.29365930
+   -0.29066171
+   -0.29049216
+   -0.28923934
+   -0.28528883
+   -0.27937294
+   -0.27166269
+   -0.26983281
+   -0.26185999
+   -0.25621183
+   -0.25021862
+   -0.24705053
+   -0.24684192
+   -0.24290399
+   -0.23961070
+   -0.23954880
+   -0.23787379
+   -0.23751333
+   -0.22973173
+   -0.22070790
+   -0.21216072
+   -0.20591304
+   -0.17799271
+   -0.17177349
+   -0.16356576
+   -0.16065373
+   -0.15617226
+   -0.15565198
+   -0.15264305
+   -0.15019607
+   -0.15017754
+   -0.14450454
+   -0.14409882
+   -0.13996357
+   -0.13409180
+   -0.12314947
+   -0.11359778
+K-point     7  0.14285714  0.00000000  0.00000000  0.12244898
+Spin component 1
+   -0.67740216
+   -0.67614273
+   -0.67437711
+   -0.67219945
+   -0.67110120
+   -0.66263782
+   -0.65915828
+   -0.65545513
+   -0.65225359
+   -0.65065826
+   -0.62076058
+   -0.61745610
+   -0.61379896
+   -0.61076576
+   -0.60932708
+   -0.52371628
+   -0.51986076
+   -0.51470596
+   -0.50943855
+   -0.50593341
+   -0.47546895
+   -0.47102076
+   -0.46635861
+   -0.46260308
+   -0.46053973
+   -0.32779826
+   -0.32638018
+   -0.32439526
+   -0.32205736
+   -0.31987356
+   -0.31806005
+   -0.31557546
+   -0.31204520
+   -0.30796970
+   -0.29397598
+   -0.29369509
+   -0.29267570
+   -0.29243800
+   -0.29157018
+   -0.29039276
+   -0.29003428
+   -0.28843675
+   -0.28812245
+   -0.28731741
+   -0.28649425
+   -0.28566042
+   -0.28005606
+   -0.27722513
+   -0.27589363
+   -0.27431639
+   -0.27189422
+   -0.27094949
+   -0.26647860
+   -0.25660013
+   -0.24767266
+   -0.24254848
+   -0.24012863
+   -0.23742603
+   -0.23660971
+   -0.23519377
+   -0.23502587
+   -0.23440104
+   -0.23044507
+   -0.22521904
+   -0.22188740
+   -0.22017751
+   -0.21599602
+   -0.21152494
+   -0.20654229
+   -0.20107278
+   -0.17780974
+   -0.17337563
+   -0.17010266
+   -0.16808134
+   -0.16696167
+   -0.16322927
+   -0.16281172
+   -0.15945874
+   -0.15864602
+   -0.15776374
+   -0.15612786
+   -0.15537531
+   -0.14938019
+   -0.14332929
+   -0.13881964
+K-point     2  0.42857143  0.28571429  0.00000000  0.12244898
+Spin component 1
+   -0.61510686
+   -0.61440042
+   -0.61348557
+   -0.61249813
+   -0.61056258
+   -0.60935032
+   -0.60804083
+   -0.60687270
+   -0.60490495
+   -0.60485360
+   -0.59969238
+   -0.59911027
+   -0.59877714
+   -0.59686565
+   -0.59686521
+   -0.54898249
+   -0.54874626
+   -0.54859285
+   -0.54779138
+   -0.54776202
+   -0.54732373
+   -0.54698686
+   -0.54684396
+   -0.54561705
+   -0.54561597
+   -0.38834582
+   -0.38649032
+   -0.38416617
+   -0.38408379
+   -0.38182102
+   -0.38167005
+   -0.38066274
+   -0.37817058
+   -0.37443340
+   -0.37218430
+   -0.35979736
+   -0.35946049
+   -0.35650245
+   -0.35458465
+   -0.35157806
+   -0.35054830
+   -0.34657181
+   -0.34537360
+   -0.34169963
+   -0.34064880
+   -0.33917089
+   -0.33874891
+   -0.33074589
+   -0.32272727
+   -0.31610808
+   -0.31394874
+   -0.31265389
+   -0.30899529
+   -0.30352027
+   -0.29908277
+   -0.28257182
+   -0.27433323
+   -0.26605902
+   -0.26281659
+   -0.26147644
+   -0.25882191
+   -0.25084699
+   -0.24064914
+   -0.23860155
+   -0.23849169
+   -0.23376559
+   -0.23041178
+   -0.22700161
+   -0.22302654
+   -0.22182475
+   -0.16329499
+   -0.15723976
+   -0.15559016
+   -0.15524893
+   -0.14858075
+   -0.14767233
+   -0.14583550
+   -0.13557788
+   -0.13427977
+   -0.12892286
+   -0.12502120
+   -0.12231723
+   -0.11872922
+   -0.11654041
+   -0.11138536
+K-point     4  0.42857143 -0.14285714  0.00000000  0.24489796
+Spin component 1
+   -0.63962976
+   -0.63854529
+   -0.63702640
+   -0.63502513
+   -0.63380387
+   -0.62918165
+   -0.62626609
+   -0.62334121
+   -0.62081119
+   -0.61982666
+   -0.60432212
+   -0.60231489
+   -0.60036239
+   -0.59872376
+   -0.59841846
+   -0.53685772
+   -0.53578475
+   -0.53449237
+   -0.53309462
+   -0.53279137
+   -0.52168153
+   -0.52052914
+   -0.51945331
+   -0.51837668
+   -0.51827795
+   -0.38952970
+   -0.38726970
+   -0.38397229
+   -0.38009538
+   -0.37750817
+   -0.36475117
+   -0.36110742
+   -0.35751076
+   -0.35401253
+   -0.35261572
+   -0.35196707
+   -0.34763552
+   -0.34174846
+   -0.33822934
+   -0.33751404
+   -0.33674245
+   -0.33465662
+   -0.33085058
+   -0.32767307
+   -0.32551758
+   -0.32142378
+   -0.31667171
+   -0.31307866
+   -0.30763446
+   -0.30419309
+   -0.30336101
+   -0.29907647
+   -0.29322594
+   -0.28755519
+   -0.28362780
+   -0.27495852
+   -0.26790348
+   -0.26323370
+   -0.25986419
+   -0.25569323
+   -0.25315321
+   -0.24806941
+   -0.24294441
+   -0.23500324
+   -0.23195776
+   -0.22854701
+   -0.22701791
+   -0.22272905
+   -0.21942140
+   -0.21696380
+   -0.16993975
+   -0.16579669
+   -0.16527959
+   -0.16009081
+   -0.15292498
+   -0.15201772
+   -0.14659232
+   -0.14593874
+   -0.13948272
+   -0.13877773
+   -0.13586268
+   -0.13262921
+   -0.12829155
+   -0.12424171
+   -0.11299434
+K-point     6  0.28571429 -0.14285714  0.00000000  0.12244898
+Spin component 1
+   -0.66412152
+   -0.66290049
+   -0.66118645
+   -0.65903548
+   -0.65791571
+   -0.65048631
+   -0.64711741
+   -0.64357525
+   -0.64051500
+   -0.63904170
+   -0.61345387
+   -0.61049683
+   -0.60732255
+   -0.60474967
+   -0.60366706
+   -0.52456395
+   -0.52193217
+   -0.51855515
+   -0.51528203
+   -0.51348821
+   -0.49234195
+   -0.48998146
+   -0.48766124
+   -0.48589062
+   -0.48522500
+   -0.35862140
+   -0.35671178
+   -0.35384780
+   -0.35020374
+   -0.34463364
+   -0.34459136
+   -0.34326237
+   -0.34272055
+   -0.34130280
+   -0.34074447
+   -0.32981065
+   -0.32686882
+   -0.32297653
+   -0.32006102
+   -0.31306289
+   -0.31067941
+   -0.30893230
+   -0.30523303
+   -0.29982751
+   -0.29818241
+   -0.29795551
+   -0.29623292
+   -0.29438787
+   -0.29364808
+   -0.29217448
+   -0.28660953
+   -0.28229869
+   -0.27823974
+   -0.27472558
+   -0.26990814
+   -0.26601502
+   -0.25683010
+   -0.24828896
+   -0.24051435
+   -0.23495576
+   -0.23395212
+   -0.23189369
+   -0.22928158
+   -0.22682045
+   -0.22434470
+   -0.22043917
+   -0.21986668
+   -0.21662251
+   -0.21519267
+   -0.21272197
+   -0.17611719
+   -0.17117045
+   -0.16451277
+   -0.15781805
+   -0.15721739
+   -0.15403184
+   -0.15268241
+   -0.14930926
+   -0.14852857
+   -0.14148176
+   -0.14131761
+   -0.13331439
+   -0.13311469
+   -0.12671590
+   -0.12569096
+K-point     8  0.00000000  0.00000000  0.00000000  0.02040816
+Spin component 1
+   -0.68423033
+   -0.68295496
+   -0.68116877
+   -0.67898420
+   -0.67789493
+   -0.66898865
+   -0.66546970
+   -0.66170784
+   -0.65845719
+   -0.65682134
+   -0.62497877
+   -0.62152857
+   -0.61766199
+   -0.61441960
+   -0.61282005
+   -0.52479347
+   -0.52034485
+   -0.51430009
+   -0.50797432
+   -0.50350867
+   -0.46802409
+   -0.46196391
+   -0.45531051
+   -0.44965909
+   -0.44621632
+   -0.30948614
+   -0.30440548
+   -0.29711573
+   -0.28836658
+   -0.27771541
+   -0.27200326
+   -0.27200281
+   -0.27143889
+   -0.27143841
+   -0.27067382
+   -0.27067337
+   -0.27031079
+   -0.26968040
+   -0.26968000
+   -0.26838917
+   -0.26838868
+   -0.26707531
+   -0.26707483
+   -0.26555218
+   -0.26555170
+   -0.26403472
+   -0.26403428
+   -0.26241950
+   -0.26241904
+   -0.26220777
+   -0.26220730
+   -0.26069981
+   -0.25209975
+   -0.24534548
+   -0.24534542
+   -0.24484627
+   -0.24357374
+   -0.24357368
+   -0.24162473
+   -0.24162471
+   -0.23989901
+   -0.23989898
+   -0.23952356
+   -0.23952355
+   -0.23355303
+   -0.23320293
+   -0.21212333
+   -0.20701957
+   -0.20124222
+   -0.19546091
+   -0.18857588
+   -0.18367624
+   -0.18050359
+   -0.18050285
+   -0.17877650
+   -0.17760157
+   -0.17760081
+   -0.17476076
+   -0.17377407
+   -0.17377339
+   -0.17225613
+   -0.16995588
+   -0.16995519
+   -0.16771591
+   -0.16771525
diff --git a/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.castep b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.castep
new file mode 100755
index 0000000..4126da0
--- /dev/null
+++ b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.castep
@@ -0,0 +1,465 @@
+ Job started on host ulmo
+ at Mon Jan  6 19:15:37 2014
+
+ +-------------------------------------------------+
+ |                                                 |
+ |      CCC   AA    SSS  TTTTT  EEEEE  PPPP        |
+ |     C     A  A  S       T    E      P   P       |
+ |     C     AAAA   SS     T    EEE    PPPP        |
+ |     C     A  A     S    T    E      P           |
+ |      CCC  A  A  SSS     T    EEEEE  P           |
+ |                                                 |
+ +-------------------------------------------------+
+ |                                                 |
+ | Welcome to Materials Studio CASTEP version 6.1  |
+ | Ab Initio Total Energy Program                  |
+ |                                                 |
+ | Authors:                                        |
+ | M. Segall, M. Probert, C. Pickard, P. Hasnip,   |
+ | S. Clark, K. Refson, J. R. Yates, M. Payne      |
+ |                                                 |
+ | Contributors:                                   |
+ | P. Lindan, P. Haynes, J. White, V. Milman,      |
+ | N. Govind, M. Gibson, P. Tulip, V. Cocula,      |
+ | B. Montanari, D. Quigley, M. Glover,            |
+ | L. Bernasconi, A. Perlov, M. Plummer,           |
+ | E. McNellis, J. Meyer, J. Gale, D. Jochym       |
+ | J. Aarons, B. Walker, R. Gillen                 |
+ |                                                 |
+ | Copyright (c) 2000 - 2012                       |
+ |                                                 |
+ | Please cite                                     |
+ |                                                 |
+ |     "First principles methods using CASTEP"     |
+ |                                                 |
+ |         Zeitschrift fuer Kristallographie       |
+ |           220(5-6) pp. 567-570 (2005)           |
+ |                                                 |
+ | S. J. Clark, M. D. Segall, C. J. Pickard,       |
+ | P. J. Hasnip, M. J. Probert, K. Refson,         |
+ | M. C. Payne                                     |
+ |                                                 |
+ |       in all publications arising from          |
+ |              your use of CASTEP                 |
+ |                                                 |
+ +-------------------------------------------------+
+ 
+ 
+ This version was compiled for x86_64-windows-msvc2008 on Nov 05 2012
+ 
+License checkout of MS_castep successful
+ 
+ 
+ Pseudo atomic calculation performed for Sb 5s2 5p3
+ 
+ Converged in 18 iterations to a total energy of -146.9167 eV
+ 
+ 
+ Pseudo atomic calculation performed for Te 5s2 5p4
+ 
+ Converged in 18 iterations to a total energy of -219.7491 eV
+ 
+ Calculation parallelised over 2 processes.
+ Data is distributed by k-point(2-way)
+
+ ************************************ Title ************************************
+ CASTEP calculation from Materials Studio
+
+ ***************************** General Parameters ******************************
+  
+ output verbosity                               : normal  (1)
+ write checkpoint data to                       : 5Sb2Te3only426Sym.check
+ type of calculation                            : single point energy
+ stress calculation                             : off
+ density difference calculation                 : off
+ electron localisation func (ELF) calculation   : off
+ Hirshfeld analysis                             : on
+ unlimited duration calculation
+ timing information                             : on
+ memory usage estimate                          : on
+ write final potential to formatted file        : off
+ write final density to formatted file          : off
+ write BibTeX reference list                    : on
+  
+ output         length unit                     : A
+ output           mass unit                     : amu
+ output           time unit                     : ps
+ output         charge unit                     : e
+ output         energy unit                     : eV
+ output          force unit                     : eV/A
+ output       velocity unit                     : A/ps
+ output       pressure unit                     : GPa
+ output     inv_length unit                     : 1/A
+ output      frequency unit                     : cm-1
+ output force constant unit                     : eV/A**2
+ output         volume unit                     : A**3
+ output   IR intensity unit                     : (D/A)**2/amu
+ output         dipole unit                     : D
+ output         efield unit                     : eV/A/e
+ output        entropy unit                     : J/mol/K
+  
+ wavefunctions paging                           : none
+ random number generator seed                   : randomised (191538822)
+ data distribution                              : optimal for this architecture
+ optimization strategy                          : balance speed and memory
+
+ *********************** Exchange-Correlation Parameters ***********************
+  
+ using functional                               : Perdew Burke Ernzerhof
+ Divergence correction                          : off
+ DFT+D: Semi-empirical dispersion correction    : off
+
+ ************************* Pseudopotential Parameters **************************
+  
+ pseudopotential representation                 : reciprocal space
+ <beta|phi> representation                      : reciprocal space
+
+ **************************** Basis Set Parameters *****************************
+  
+ plane wave basis set cut-off                   :   230.0000   eV
+ size of standard grid                          :     2.0000
+ size of   fine   grid                          :     3.0000
+ size of   fine   gmax                          :    23.3090   1/A
+ largest prime factor in FFT                    :          5
+ finite basis set correction                    : none
+
+ **************************** Electronic Parameters ****************************
+  
+ number of  electrons                           :  140.0    
+ net charge of system                           :  0.000    
+ net spin   of system                           :  0.000    
+ number of  up  spins                           :  70.00    
+ number of down spins                           :  70.00    
+ treating system as non-spin-polarized
+ number of bands                                :         85
+
+ ********************* Electronic Minimization Parameters **********************
+  
+ Method: Treating system as metallic with density mixing treatment of electrons,
+         and number of  SD  steps               :          1
+         and number of  CG  steps               :          4
+  
+ total energy / atom convergence tol.           : 0.5000E-06   eV
+ eigen-energy convergence tolerance             : 0.1471E-06   eV
+ max force / atom convergence tol.              : ignored
+ convergence tolerance window                   :          3   cycles
+ max. number of SCF cycles                      :        999
+ number of fixed-spin iterations                :         10
+ smearing scheme                                : Gaussian
+ smearing width                                 : 0.1000       eV
+ Fermi energy convergence tolerance             : 0.1471E-07   eV
+ periodic dipole correction                     : NONE
+
+ ************************** Density Mixing Parameters **************************
+  
+ density-mixing scheme                          : Pulay
+ max. length of mixing history                  :         20
+ charge density mixing amplitude                : 0.5000    
+ cut-off energy for mixing                      :  230.0       eV
+ charge density mixing g-vector                 :  1.500       1/A
+
+ *********************** Population Analysis Parameters ************************
+  
+ Population analysis with cutoff                :  3.000       A
+
+ *******************************************************************************
+  
+ 
+                           -------------------------------
+                                      Unit Cell
+                           -------------------------------
+        Real Lattice(A)                      Reciprocal Lattice(1/A)
+   3.6927323  -2.1320000   0.0000000        1.7015004   0.0000000   0.0000000
+   0.0000000   4.2639999   0.0000000        0.8507502   1.4735425   0.0000000
+   0.0000000   0.0000000  81.4530792        0.0000000   0.0000000   0.0771387
+ 
+                       Lattice parameters(A)       Cell Angles
+                    a =    4.264000          alpha =   90.000000
+                    b =    4.264000          beta  =   90.000000
+                    c =   81.453079          gamma =  120.000000
+ 
+                       Current cell volume = 1282.544723       A**3
+ 
+                           -------------------------------
+                                     Cell Contents
+                           -------------------------------
+                         Total number of ions in cell =   25
+                      Total number of species in cell =    2
+                        Max number of any one species =   15
+ 
+            xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+            x  Element    Atom        Fractional coordinates of atoms  x
+            x            Number           u          v          w      x
+            x----------------------------------------------------------x
+            x  Sb           1         0.333333  -0.333333   0.399836   x
+            x  Sb           2         0.333333  -0.333333   0.773731   x
+            x  Sb           3        -0.333333   0.333333  -0.399836   x
+            x  Sb           4        -0.333333   0.333333  -0.773731   x
+            x  Sb           5        -0.333333  -1.666667   0.524480   x
+            x  Sb           6        -1.666667  -0.333333  -0.524480   x
+            x  Sb           7         0.000000  -1.000000   0.275230   x
+            x  Sb           8         0.000000  -1.000000   0.649124   x
+            x  Sb           9        -1.000000   0.000000  -0.275230   x
+            x  Sb          10        -1.000000   0.000000  -0.649124   x
+            x  Te           1         0.333333  -0.333333   0.545071   x
+            x  Te           2         0.333333  -0.333333   0.250749   x
+            x  Te           3         0.333333  -0.333333   0.624645   x
+            x  Te           4        -0.333333   0.333333  -0.545071   x
+            x  Te           5        -0.333333   0.333333  -0.250749   x
+            x  Te           6        -0.333333   0.333333  -0.624645   x
+            x  Te           7        -0.333333  -1.666667   0.295821   x
+            x  Te           8        -0.333333  -1.666667   0.669716   x
+            x  Te           9        -1.666667  -0.333333  -0.295821   x
+            x  Te          10        -1.666667  -0.333333  -0.669716   x
+            x  Te          11         0.000000  -1.000000   0.420427   x
+            x  Te          12         0.000000  -1.000000   0.794322   x
+            x  Te          13        -1.000000   0.000000  -0.420427   x
+            x  Te          14        -1.000000   0.000000  -0.794322   x
+            x  Te          15         0.000000  -1.000000   0.500000   x
+            xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ 
+ 
+                         No user defined ionic velocities
+ 
+                           -------------------------------
+                                   Details of Species
+                           -------------------------------
+ 
+                               Mass of species in AMU
+                                    Sb  121.7500000
+                                    Te  127.5999985
+ 
+                          Electric Quadrupole Moment (Barn)
+                                    Sb   -0.5430000 Isotope121
+                                    Te    1.0000000 No Isotope Defined
+ 
+                          Files used for pseudopotentials:
+                                    Sb Sb_00PBE.usp
+                                    Te Te_00PBE.usp
+ 
+                           -------------------------------
+                              k-Points For BZ Sampling
+                           -------------------------------
+                       MP grid size for SCF calculation is  7  7  1
+                         Number of kpoints used =           8
+ 
+             +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+             +  Number       Fractional coordinates        Weight  +
+             +-----------------------------------------------------+
+             +     1   0.428571   0.428571   0.000000   0.1224490  +
+             +     2   0.428571   0.285714   0.000000   0.1224490  +
+             +     3   0.428571   0.000000   0.000000   0.1224490  +
+             +     4   0.428571  -0.142857   0.000000   0.2448980  +
+             +     5   0.285714   0.000000   0.000000   0.1224490  +
+             +     6   0.285714  -0.142857   0.000000   0.1224490  +
+             +     7   0.142857   0.000000   0.000000   0.1224490  +
+             +     8   0.000000   0.000000   0.000000   0.0204082  +
+             +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 
+                           -------------------------------
+                               Symmetry and Constraints
+                           -------------------------------
+ 
+                      Number of symmetry operations   =          12
+         There are no ionic constraints specified or generated for this cell
+                      Maximum deviation from symmetry = 0.302975E-13     ANG
+               Point group of crystal =    20: D3d, -3m, -3 2/m
+           Set iprint > 1 for details on symmetry rotations/translations
+ 
+                        Centre of mass is NOT constrained
+ 
+                         Number of cell constraints= 4
+                         Cell constraints are:  1 1 3 0 0 0
+ 
+                         External pressure/stress (GPa)
+                          0.00000   0.00000   0.00000
+                                    0.00000   0.00000
+                                              0.00000
+  
++---------------- MEMORY AND SCRATCH DISK ESTIMATES PER NODE -----------------+
+|                                                     Memory          Disk    |
+| Model and support data                              678.4 MB       351.6 MB |
+| Electronic energy minimisation requirements         122.2 MB        53.0 MB |
+|                                               ----------------------------- |
+| Approx. total storage required per node             800.7 MB       404.6 MB |
+|                                                                             |
+| Requirements will fluctuate during execution and may exceed these estimates |
++-----------------------------------------------------------------------------+
+------------------------------------------------------------------------ <-- SCF
+SCF loop      Energy           Fermi           Energy gain       Timer   <-- SCF
+                               energy          per atom          (sec)   <-- SCF
+------------------------------------------------------------------------ <-- SCF
+Initial   2.94155135E+003  0.00000000E+000                        41.47  <-- SCF
+      1  -3.91456524E+003  9.95792808E-001   2.74244664E+002     113.96  <-- SCF
+      2  -4.78715981E+003 -5.10499578E+000   3.49037826E+001     163.35  <-- SCF
+      3  -4.85659536E+003 -5.19359116E+000   2.77742211E+000     220.71  <-- SCF
+      4  -4.85866973E+003 -5.27577114E+000   8.29746949E-002     273.00  <-- SCF
+      5  -4.85810586E+003 -5.28656275E+000  -2.25548827E-002     352.48  <-- SCF
+      6  -4.85808039E+003 -5.27822049E+000  -1.01879151E-003     442.14  <-- SCF
+      7  -4.85808346E+003 -5.26527127E+000   1.23087759E-004     548.33  <-- SCF
+      8  -4.85808433E+003 -5.26110867E+000   3.48853127E-005     638.36  <-- SCF
+      9  -4.85808441E+003 -5.25693464E+000   2.91733300E-006     715.56  <-- SCF
+     10  -4.85808425E+003 -5.25483798E+000  -6.12066391E-006     784.19  <-- SCF
+     11  -4.85808418E+003 -5.25398696E+000  -2.92826842E-006     839.33  <-- SCF
+     12  -4.85808406E+003 -5.25226710E+000  -4.77290855E-006     898.49  <-- SCF
+     13  -4.85808398E+003 -5.25037244E+000  -3.33527961E-006     955.77  <-- SCF
+     14  -4.85808395E+003 -5.24868696E+000  -1.08839141E-006    1015.71  <-- SCF
+     15  -4.85808393E+003 -5.24321479E+000  -7.83918660E-007    1077.65  <-- SCF
+     16  -4.85808371E+003 -5.23913962E+000  -8.73944898E-006    1137.33  <-- SCF
+     17  -4.85808370E+003 -5.23624769E+000  -5.76399585E-007    1193.92  <-- SCF
+     18  -4.85808379E+003 -5.23457622E+000   3.50751706E-006    1262.02  <-- SCF
+     19  -4.85808388E+003 -5.23343510E+000   3.57314097E-006    1319.33  <-- SCF
+     20  -4.85808396E+003 -5.23151725E+000   3.16435581E-006    1374.56  <-- SCF
+     21  -4.85808403E+003 -5.22915421E+000   2.92742895E-006    1428.91  <-- SCF
+     22  -4.85808404E+003 -5.22750341E+000   2.97479779E-007    1481.74  <-- SCF
+     23  -4.85808403E+003 -5.22487941E+000  -4.13216159E-007    1544.75  <-- SCF
+------------------------------------------------------------------------ <-- SCF
+ 
+Final energy, E             =  -4858.083043131     eV
+Final free energy (E-TS)    =  -4858.084025494     eV
+(energies not corrected for finite basis set)
+ 
+NB est. 0K energy (E-0.5TS)      =  -4858.083534312     eV
+ 
+ 
+Writing model to 5Sb2Te3only426Sym.check
+ 
+ ***************** Symmetrised Forces *****************
+ *                                                    *
+ *            Cartesian components (eV/A)             *
+ * -------------------------------------------------- *
+ *                   x            y            z      *
+ *                                                    *
+ * Sb        1      0.00000      0.00000     -0.33347 *
+ * Sb        2      0.00000      0.00000     -0.22608 *
+ * Sb        3      0.00000      0.00000      0.33347 *
+ * Sb        4      0.00000      0.00000      0.22608 *
+ * Sb        5      0.00000      0.00000     -0.37659 *
+ * Sb        6      0.00000      0.00000      0.37659 *
+ * Sb        7      0.00000      0.00000     -0.38463 *
+ * Sb        8      0.00000      0.00000     -0.27533 *
+ * Sb        9      0.00000      0.00000      0.38463 *
+ * Sb       10      0.00000      0.00000      0.27533 *
+ * Te        1      0.00000      0.00000      0.26388 *
+ * Te        2      0.00000      0.00000      0.01302 *
+ * Te        3      0.00000      0.00000      0.01597 *
+ * Te        4      0.00000      0.00000     -0.26388 *
+ * Te        5      0.00000      0.00000     -0.01302 *
+ * Te        6      0.00000      0.00000     -0.01597 *
+ * Te        7      0.00000      0.00000      0.23501 *
+ * Te        8      0.00000      0.00000      0.21049 *
+ * Te        9      0.00000      0.00000     -0.23501 *
+ * Te       10      0.00000      0.00000     -0.21049 *
+ * Te       11      0.00000      0.00000      0.29329 *
+ * Te       12      0.00000      0.00000      0.16645 *
+ * Te       13      0.00000      0.00000     -0.29329 *
+ * Te       14      0.00000      0.00000     -0.16645 *
+ * Te       15      0.00000      0.00000      0.00000 *
+ *                                                    *
+ ******************************************************
+ 
+ Pseudo atomic calculation performed for Sb 5s2 5p3
+ 
+ Converged in 18 iterations to a total energy of -146.9167 eV
+ 
+ 
+ Pseudo atomic calculation performed for Te 5s2 5p4
+ 
+ Converged in 18 iterations to a total energy of -219.7491 eV
+ 
+Charge spilling parameter for spin component 1 = 0.57%
+ 
+     Atomic Populations (Mulliken)
+     -----------------------------
+Species   Ion     s      p      d      f     Total  Charge (e)
+==============================================================
+  Sb       1     2.15   2.80   0.00   0.00   4.95     0.05
+  Sb       2     2.06   2.77   0.00   0.00   4.83     0.17
+  Sb       3     2.15   2.80   0.00   0.00   4.95     0.05
+  Sb       4     2.06   2.77   0.00   0.00   4.83     0.17
+  Sb       5     2.15   2.80   0.00   0.00   4.95     0.05
+  Sb       6     2.15   2.80   0.00   0.00   4.95     0.05
+  Sb       7     2.13   2.80   0.00   0.00   4.93     0.07
+  Sb       8     2.15   2.80   0.00   0.00   4.95     0.05
+  Sb       9     2.13   2.80   0.00   0.00   4.93     0.07
+  Sb      10     2.15   2.80   0.00   0.00   4.95     0.05
+  Te       1     1.79   4.22   0.00   0.00   6.01    -0.01
+  Te       2     1.68   4.38   0.00   0.00   6.06    -0.06
+  Te       3     1.72   4.36   0.00   0.00   6.08    -0.08
+  Te       4     1.79   4.22   0.00   0.00   6.01    -0.01
+  Te       5     1.68   4.38   0.00   0.00   6.06    -0.06
+  Te       6     1.72   4.36   0.00   0.00   6.08    -0.08
+  Te       7     1.78   4.22   0.00   0.00   6.00     0.00
+  Te       8     1.80   4.22   0.00   0.00   6.02    -0.02
+  Te       9     1.78   4.22   0.00   0.00   6.00     0.00
+  Te      10     1.80   4.22   0.00   0.00   6.02    -0.02
+  Te      11     1.79   4.22   0.00   0.00   6.00     0.00
+  Te      12     1.93   4.24   0.00   0.00   6.18    -0.18
+  Te      13     1.79   4.22   0.00   0.00   6.00     0.00
+  Te      14     1.93   4.24   0.00   0.00   6.18    -0.18
+  Te      15     1.73   4.36   0.00   0.00   6.09    -0.09
+==============================================================
+ 
+     Bond                     Population      Length (A)
+============================================================
+  Sb 003 --   Te 013              -4.93        2.97885
+  Sb 001 --   Te 011              -4.93        2.97885
+  Sb 009 --   Te 009              -3.82        2.97885
+  Sb 007 --   Te 007              -3.82        2.97885
+  Sb 002 --   Te 012               0.72        2.97885
+  Sb 004 --   Te 014               0.72        2.97885
+  Sb 005 --   Te 001              -5.02        2.97888
+  Sb 006 --   Te 004              -5.02        2.97888
+  Sb 010 --   Te 010              -5.09        2.97888
+  Sb 008 --   Te 008              -5.09        2.97888
+============================================================
+ 
+ 
+     Hirshfeld Analysis
+     ------------------
+Species   Ion     Hirshfeld Charge (e)
+======================================
+  Sb       1                 0.11
+  Sb       2                 0.12
+  Sb       3                 0.11
+  Sb       4                 0.12
+  Sb       5                 0.11
+  Sb       6                 0.11
+  Sb       7                 0.11
+  Sb       8                 0.11
+  Sb       9                 0.11
+  Sb      10                 0.11
+  Te       1                -0.05
+  Te       2                -0.11
+  Te       3                -0.11
+  Te       4                -0.05
+  Te       5                -0.11
+  Te       6                -0.11
+  Te       7                -0.06
+  Te       8                -0.05
+  Te       9                -0.06
+  Te      10                -0.05
+  Te      11                -0.05
+  Te      12                -0.06
+  Te      13                -0.05
+  Te      14                -0.06
+  Te      15                -0.11
+======================================
+ 
+ 
+Writing model to 5Sb2Te3only426Sym.check
+ 
+Writing analysis data to 5Sb2Te3only426Sym.castep_bin
+ 
+ A BibTeX formatted list of references used in this run has been written to 
+ 5Sb2Te3only426Sym.bib
+ 
+Initialisation time =      3.12 s
+Calculation time    =   1698.15 s
+Finalisation time   =     26.13 s
+Total time          =   1727.40 s
+  
+Overall parallel efficiency rating: Excellent (95%)                             
+  
+Data was distributed by:-
+k-point (2-way); efficiency rating: Excellent (95%)                             
diff --git a/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.cell b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.cell
new file mode 100755
index 0000000..0246ee1
--- /dev/null
+++ b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.cell
@@ -0,0 +1,115 @@
+%BLOCK LATTICE_CART
+       3.692732268878852      -2.131999969482418       0.000000000000000
+       0.000000000000000       4.263999938964840       0.000000000000000
+       0.000000000000000       0.000000000000000      81.453079223632798
+%ENDBLOCK LATTICE_CART
+
+%BLOCK POSITIONS_FRAC
+ Sb   0.3333333333333329  -0.3333333333333329   0.3998359963297850
+ Sb   0.3333333333333329  -0.3333333333333329   0.7737310035154219
+ Sb  -0.3333333333333330   0.3333333333333330  -0.3998359963297851
+ Sb  -0.3333333333333330   0.3333333333333330  -0.7737310035154219
+ Sb  -0.3333333333333330  -1.6666666666666701   0.5244800001382829
+ Sb  -1.6666666666666698  -0.3333333333333328  -0.5244800001382829
+ Sb   0.0000000000000000  -1.0000000000000000   0.2752299904823299
+ Sb   0.0000000000000000  -1.0000000000000000   0.6491244956850998
+ Sb  -1.0000000000000000   0.0000000000000001  -0.2752299904823300
+ Sb  -1.0000000000000000   0.0000000000000001  -0.6491244956851000
+ Te   0.3333333333333329  -0.3333333333333329   0.5450714975595479
+ Te   0.3333333333333329  -0.3333333333333329   0.2507494967430829
+ Te   0.3333333333333329  -0.3333333333333329   0.6246445029973980
+ Te  -0.3333333333333330   0.3333333333333330  -0.5450714975595479
+ Te  -0.3333333333333330   0.3333333333333330  -0.2507494967430830
+ Te  -0.3333333333333330   0.3333333333333330  -0.6246445029973979
+ Te  -0.3333333333333330  -1.6666666666666701   0.2958209998905659
+ Te  -0.3333333333333330  -1.6666666666666701   0.6697160042822370
+ Te  -1.6666666666666698  -0.3333333333333328  -0.2958209998905660
+ Te  -1.6666666666666698  -0.3333333333333328  -0.6697160042822369
+ Te   0.0000000000000000  -1.0000000000000000   0.4204269945621489
+ Te   0.0000000000000000  -1.0000000000000000   0.7943220138549808
+ Te  -1.0000000000000000   0.0000000000000001  -0.4204269945621489
+ Te  -1.0000000000000000   0.0000000000000001  -0.7943220138549809
+ Te   0.0000000000000000  -1.0000000000000000   0.4999999999999999
+%ENDBLOCK POSITIONS_FRAC
+
+%BLOCK KPOINTS_LIST
+   0.4285714285714286   0.4285714285714286   0.0000000000000000       0.122448979591837
+   0.4285714285714286   0.2857142857142858   0.0000000000000000       0.122448979591837
+   0.4285714285714286   0.0000000000000000   0.0000000000000000       0.122448979591837
+   0.4285714285714286  -0.1428571428571429   0.0000000000000000       0.244897959183673
+   0.2857142857142858   0.0000000000000000   0.0000000000000000       0.122448979591837
+   0.2857142857142858  -0.1428571428571429   0.0000000000000000       0.122448979591837
+   0.1428571428571429   0.0000000000000000   0.0000000000000000       0.122448979591837
+   0.0000000000000000   0.0000000000000000   0.0000000000000000       0.020408163265306
+%ENDBLOCK KPOINTS_LIST
+
+%BLOCK SYMMETRY_OPS
+       1.000000000000000       0.000000000000000       0.000000000000000
+       0.000000000000000       1.000000000000000       0.000000000000000
+       0.000000000000000       0.000000000000000       1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+      -0.500000000000000       0.866025403784438       0.000000000000000
+      -0.866025403784440      -0.500000000000001       0.000000000000000
+       0.000000000000000       0.000000000000000       1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+      -0.500000000000000      -0.866025403784438       0.000000000000000
+       0.866025403784440      -0.499999999999999       0.000000000000000
+       0.000000000000000       0.000000000000000       1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+       0.500000000000000       0.866025403784438       0.000000000000000
+       0.866025403784440      -0.499999999999999       0.000000000000000
+       0.000000000000000       0.000000000000000      -1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+       0.500000000000000      -0.866025403784437       0.000000000000000
+      -0.866025403784440      -0.500000000000001       0.000000000000000
+       0.000000000000000       0.000000000000000      -1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+      -1.000000000000000      -0.000000000000001       0.000000000000000
+       0.000000000000000       1.000000000000000       0.000000000000000
+       0.000000000000000       0.000000000000000      -1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+      -1.000000000000000       0.000000000000000       0.000000000000000
+       0.000000000000000      -1.000000000000000       0.000000000000000
+       0.000000000000000       0.000000000000000      -1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+       0.500000000000000      -0.866025403784438       0.000000000000000
+       0.866025403784440       0.500000000000001       0.000000000000000
+       0.000000000000000       0.000000000000000      -1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+       0.500000000000000       0.866025403784438       0.000000000000000
+      -0.866025403784440       0.499999999999999       0.000000000000000
+       0.000000000000000       0.000000000000000      -1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+      -0.500000000000000      -0.866025403784438       0.000000000000000
+      -0.866025403784440       0.499999999999999       0.000000000000000
+       0.000000000000000       0.000000000000000       1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+      -0.500000000000000       0.866025403784437       0.000000000000000
+       0.866025403784440       0.500000000000001       0.000000000000000
+       0.000000000000000       0.000000000000000       1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+       1.000000000000000       0.000000000000001       0.000000000000000
+       0.000000000000000      -1.000000000000000       0.000000000000000
+       0.000000000000000       0.000000000000000       1.000000000000000
+       0.000000000000000       0.000000000000000       0.000000000000000
+%ENDBLOCK SYMMETRY_OPS
+
+FIX_COM : false
+%BLOCK IONIC_CONSTRAINTS
+%ENDBLOCK IONIC_CONSTRAINTS
+
+%BLOCK SPECIES_MASS
+      Sb    121.7500000000
+      Te    127.5999984741
+%ENDBLOCK SPECIES_MASS
+
+%BLOCK SPECIES_POT
+      Sb  Sb_00PBE.usp
+      Te  Te_00PBE.usp
+%ENDBLOCK SPECIES_POT
+
+%BLOCK SPECIES_LCAO_STATES
+      Sb         3
+      Te         3
+%ENDBLOCK SPECIES_LCAO_STATES
+
diff --git a/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.param b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.param
new file mode 100755
index 0000000..a1630f8
--- /dev/null
+++ b/test/examples/5Sb2Te3only426Sym/5Sb2Te3only426Sym.param
@@ -0,0 +1,28 @@
+comment : CASTEP calculation from Materials Studio
+task : SinglePoint
+xc_functional : PBE
+spin_polarized : false
+opt_strategy : Default
+page_wvfns :        0
+cut_off_energy :      230.000000000000000
+grid_scale :        2.000000000000000
+fine_grid_scale :        3.000000000000000
+finite_basis_corr :        0
+elec_energy_tol :   5.000000000000000e-007
+max_scf_cycles :      999
+fix_occupancy : false
+metals_method : dm
+mixing_scheme : Pulay
+mix_charge_amp :        0.500000000000000
+mix_charge_gmax :        1.500000000000000
+mix_history_length :       20
+nextra_bands :       15
+smearing_width :        0.100000000000000
+calculate_ELF : false
+calculate_stress : false
+popn_calculate : true
+calculate_hirshfeld : true
+calculate_densdiff : false
+popn_bond_cutoff :        3.000000000000000
+pdos_calculate_weights : false
+num_dump_cycles : 0
-- 
GitLab