A default-constructed PotentialPointData could have uninitialized
data, but it is sometimes helpful to be able to default construct an
object and not worry about whether it is valid. Objects will usually
be constructed with initializing values, but this change updates the
default constructor to avoid surprises.
Change-Id: I9ae87d8bc361da5b3134f05ca8761f25d6ca7646
{
PotentialPointData::PotentialPointData() :
- PotentialPointData {Vector(), real(0.0)}
+ PotentialPointData {Vector(0., 0., 0.), real(0.0)}
{}
PotentialPointData::PotentialPointData(const Vector &f, const real e) :