PHARE icon indicating copy to clipboard operation
PHARE copied to clipboard

default initialize particles?

Open nicolasaunai opened this issue 1 year ago • 1 comments

Should we allow for default particle init? I don't think so unless it's so much trouble not to.

nicolasaunai avatar Dec 14 '23 18:12 nicolasaunai

we have a case where we do actually use a default initialized particle for diagnostics. I believe it's in order to forward the type to highfive to create a dataset, and the values are not "used" per se

other than that there some default initialized particles in tests

the simplest approach might be multiple classes, where the current "Particle" class becomes non-default construcbile, but it inherits from a super class "AParticle(?)" which is default constructible

or the particle class has an optional template param deciding if it's default constructible

PhilipDeegan avatar Dec 15 '23 09:12 PhilipDeegan