brainandforce / Electrum.jl

A Julian toolkit for solid-state chemical theory.
MIT License
31 stars 0 forks source link

The subtype relation of `PlanewaveWavefunction` is wrong #193

Open brainandforce opened 1 year ago

brainandforce commented 1 year ago

Currently, PlanewaveWavefunction{D,T} subtypes AbstractArray{T,D}. This runs into serious problems, primarily with indexing behavior.

I propose that we subtype DenseArray{ReciprocalDataGrid{D,T},3} for the following reasons:

Such a change would be breaking (warranting a 0.2 release). I may implement this change as a set of unexported structs/methods before the 0.2 release.