export and import concrete particle types, new legacytypeparameters function
Always export and import concrete particle types. Apply legacytypeparameters
function to type on import, which can be defined to yield the correct concrete type for UnionAll
s. These can happen for two reasons:
- files saved the old way, where only the
Simulation
particle type was saved, which might have been a UnionAll if there was a corresponding particle type constructor. - types where a type parameter was retrospectively added