1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Fixed funny memory leak

This commit is contained in:
Michael Marshall 2019-03-27 17:55:52 +00:00
parent 4c02ed6d0c
commit faa8bb9bc6

View File

@ -38,11 +38,11 @@ class Smear_Stout : public Smear<Gimpl> {
}
/*! 3D constructor */
Smear_Stout(double rho = 1.0, int orthogdim = -1) : SmearBase(new Smear_APE<Gimpl>(rho3D(rho,orthogdim))) {
Smear_Stout(double rho = 1.0, int orthogdim = -1) : SmearBase{new Smear_APE<Gimpl>(rho3D(rho,orthogdim))} {
assert(Nc == 3 && "Stout smearing currently implemented only for Nc==3");
}
~Smear_Stout() {} // delete SmearBase...
~Smear_Stout() {delete SmearBase;}
void smear(GaugeField& u_smr, const GaugeField& U) const {
GaugeField C(U._grid);