waveSuperposition: Fixed name clash and memory leak

Resolves bug report https://bugs.openfoam.org/view.php?id=3229
This commit is contained in:
Will Bainbridge
2019-04-30 16:59:57 +01:00
parent 6afe1b4632
commit 562040f572

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2017-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -45,7 +45,8 @@ const Foam::waveSuperposition& Foam::waveSuperposition::New
db.time().constant(),
db,
IOobject::MUST_READ,
IOobject::NO_WRITE
IOobject::NO_WRITE,
false
)
);