ENH: glboal file handling: initial commit

Moved file path handling to regIOobject and made it type specific so
now every object can have its own rules. Examples:
- faceZones are now processor local (and don't search up anymore)
- timeStampMaster is now no longer hardcoded inside IOdictionary
  (e.g. uniformDimensionedFields support it as well)
- the distributedTriSurfaceMesh is properly processor-local; no need
  for fileModificationChecking manipulation.
This commit is contained in:
mattijs
2016-01-25 13:03:15 +00:00
parent 9fd840c12a
commit e424059208
188 changed files with 3487 additions and 1364 deletions

View File

@ -55,7 +55,7 @@ bool Foam::writeDictionary::tryDirectory
false
);
if (dictIO.headerOk())
if (dictIO.typeHeaderOk<IOdictionary>(true))
{
IOdictionary dict(dictIO);

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -115,7 +115,7 @@ void Foam::fieldCoordinateSystemTransform::transform
if
(
fieldHeader.headerOk()
fieldHeader.typeHeaderOk<vfType>(false)
&& fieldHeader.headerClassName() == vfType::typeName
)
{
@ -129,7 +129,7 @@ void Foam::fieldCoordinateSystemTransform::transform
}
else if
(
fieldHeader.headerOk()
fieldHeader.typeHeaderOk<sfType>(false)
&& fieldHeader.headerClassName() == sfType::typeName
)
{

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -72,7 +72,7 @@ void Foam::readFields::loadField
if
(
fieldHeader.headerOk()
fieldHeader.typeHeaderOk<vfType>(false)
&& fieldHeader.headerClassName() == vfType::typeName
)
{
@ -84,7 +84,7 @@ void Foam::readFields::loadField
}
else if
(
fieldHeader.headerOk()
fieldHeader.typeHeaderOk<sfType>(false)
&& fieldHeader.headerClassName() == sfType::typeName
)
{