BUG: The option to cache the limiter field was not working

In fvSolution is possible to cache the limiter. This surface field
is stored in the database to be read later.

The internal tmp management of the field was not working properly.
This commit is contained in:
sergio
2020-07-29 11:10:41 -07:00
parent d073724232
commit 28eae0573b

View File

@ -6,6 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -177,7 +178,11 @@ Foam::LimitedScheme<Type, Limiter, LimitFunc>::limiter
calcLimiter(phi, limiterField);
return limiterField;
return tmp<surfaceScalarField>::New
(
limiterFieldName,
limiterField
);
}
else
{