-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit test and fixes for castep lattice_abc format
Cell files with lattice_abc vectors were broken, and this was not causing test failures because it wasn't tested. Here we: - Create test files with and without explicit dimension units - fix the treatment of lattice_abc data in "two-rows" format (no unit) - support recent versions of Pymatgen by migrating to - Lattice.from_parameters from the deprecated Lattice.from_lengths_and_angles - Note that Lattice.from_parameters does not produce the same cell matrices as CASTEP, and raise a warning if the user has abs_positions. The positions will very likely be wrong in this case; but not many features of Sumo are impacted.
- Loading branch information
Showing
4 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
%BLOCK LATTICE_ABC | ||
2.983077 2.98308198 5.15994087 | ||
106.80215981 73.19772637 119.99807072 | ||
%ENDBLOCK LATTICE_ABC | ||
|
||
%BLOCK POSITIONS_ABS | ||
Ni 0.000000 0.000000 0.000000 SPIN=1 | ||
Ni 1.491603 0.861143 2.432002 SPIN=-1 | ||
O 0.000069 1.722313 1.215967 SPIN=0 | ||
O 2.983138 -0.000026 3.648036 SPIN=0 | ||
%ENDBLOCK POSITIONS_ABS | ||
|
||
%BLOCK SPECIES_POT | ||
Ni C19 | ||
O C19 | ||
%ENDBLOCK SPECIES_POT | ||
|
||
KPOINTS_MP_GRID 7 7 7 | ||
SPECTRAL_KPOINTS_MP_GRID 2 2 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
%BLOCK LATTICE_ABC | ||
Ang | ||
2.983077 2.98308198 5.15994087 | ||
106.80215981 73.19772637 119.99807072 | ||
%ENDBLOCK LATTICE_ABC | ||
|
||
%BLOCK POSITIONS_ABS | ||
Ang | ||
Ni 0.000000 0.000000 0.000000 SPIN=1 | ||
Ni 1.491603 0.861143 2.432002 SPIN=-1 | ||
O 0.000069 1.722313 1.215967 SPIN=0 | ||
O 2.983138 -0.000026 3.648036 SPIN=0 | ||
%ENDBLOCK POSITIONS_ABS | ||
|
||
%BLOCK SPECIES_POT | ||
Ni C19 | ||
O C19 | ||
%ENDBLOCK SPECIES_POT | ||
|
||
KPOINTS_MP_GRID 7 7 7 | ||
SPECTRAL_KPOINTS_MP_GRID 2 2 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters