ACEsuit / ACE.jl

Parameterisation of Equivariant Properties of Particle Systems
65 stars 15 forks source link

Type Instabilities in basis assembly #10

Closed cortner closed 4 years ago

cortner commented 4 years ago

This appears to go quite deep into an inability to determine the type of the inner basis. It is amazing that the Julia compiler can work with that anyhow, but for sure the ::Int hack needs to be removed and this type instability fixed properly.

cortner commented 4 years ago

The first type instability was created during the implementation of the DAGEvaluator - this added a new type parameter to PIBasis which should have also been added to RPIBasis. This is now fixed.

cortner commented 4 years ago

made a few tests and little hack-y workaround and it seems to make no difference to the performance. Will close this for now. Maybe worth returning to this once many other things have been fixed.