mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: provide setter methods for IOobject read/write options etc.
- simplifies local toggling. - centralize fileModification static variables into IOobject. They were previously scattered between IOobject and regIOobject
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2018 OpenCFD Ltd.
|
||||
Copyright (C) 2018-2021 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -32,7 +32,7 @@ License
|
||||
#include "PackedList.H"
|
||||
#include "PstreamReduceOps.H"
|
||||
#include "OSspecific.H"
|
||||
#include "regIOobject.H" // for fileModificationSkew symbol
|
||||
#include "IOobject.H" // for fileModificationSkew symbol
|
||||
|
||||
#ifdef FOAM_USE_INOTIFY
|
||||
#include <unistd.h>
|
||||
@ -406,7 +406,7 @@ void Foam::fileMonitor::checkFiles() const
|
||||
}
|
||||
else
|
||||
{
|
||||
if (newTime > (oldTime + regIOobject::fileModificationSkew))
|
||||
if (newTime > (oldTime + IOobject::fileModificationSkew))
|
||||
{
|
||||
localState_[watchFd] = MODIFIED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user