mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user