mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Fixed funny memory leak
This commit is contained in:
parent
4c02ed6d0c
commit
faa8bb9bc6
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user