mirror of
https://github.com/paboyle/Grid.git
synced 2026-11-02 18:28:04 +00:00
Fixed funny memory leak
This commit is contained in:
1 parent
4c02ed6d0c
commit
faa8bb9bc6
1 file changed
+2
-2
@@ -38,11 +38,11 @@ class Smear_Stout : public Smear<Gimpl> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! 3D constructor */
|
/*! 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");
|
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 {
|
void smear(GaugeField& u_smr, const GaugeField& U) const {
|
||||||
GaugeField C(U._grid);
|
GaugeField C(U._grid);
|
||||||
|
|||||||
Reference in new issue
Block a user