Skip to content

Commit a3e4bf4

Browse files
committed
Change type of Cell.positions from MMatrix to Vector{MVector{3,P}}, Drop type N
as in #91 (comment)
1 parent 3c863f9 commit a3e4bf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/model.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ Numbers to distinguish atomic species `types` are given by a list of ``N`` integ
1616
The collinear polarizations `magmoms` only work with `get_symmetry` and are given
1717
as a list of ``N`` floating point values.
1818
"""
19-
struct Cell{N,L,P,T,M}
19+
struct Cell{L,P,T,M}
2020
lattice::MMatrix{3,3,L,9}
21-
positions::MMatrix{3,N,P}
22-
types::MVector{N,T}
23-
magmoms::MVector{N,M}
21+
positions::Vector{MVector{3,P}}
22+
types::Vector{T}
23+
magmoms::Vector{M}
2424
end
2525
function Cell(lattice, positions, types, magmoms = zeros(length(types)))
2626
if lattice isa AbstractVector

0 commit comments

Comments
 (0)