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

@ -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-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -26,7 +26,7 @@ License
#include "displacementInterpolationMotionSolver.H"
#include "addToRunTimeSelectionTable.H"
#include "SortableList.H"
#include "IOList.H"
#include "GlobalIOList.H"
#include "Tuple2.H"
#include "mapPolyMesh.H"
#include "interpolateXY.H"
@ -45,7 +45,10 @@ namespace Foam
);
template<>
const word IOList<Tuple2<scalar, vector> >::typeName("scalarVectorTable");
const word GlobalIOList<Tuple2<scalar, vector> >::typeName
(
"scalarVectorTable"
);
}
@ -94,7 +97,7 @@ displacementInterpolationMotionSolver
const word& tableName = faceZoneToTable[i][1];
IOList<Tuple2<scalar, vector> > table
GlobalIOList<Tuple2<scalar, vector> > table
(
IOobject
(

View File

@ -105,7 +105,7 @@ Foam::displacementLaplacianFvMotionSolver::displacementLaplacianFvMotionSolver
}
if (io.headerOk())
if (io.typeHeaderOk<pointVectorField>(true))
{
pointLocation_.reset
(

View File

@ -293,7 +293,7 @@ void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::checkTable()
IOobject
(
"points",
this->db().time().constant(),
this->db().time().caseConstant(),
"boundaryData"/this->patch().name(),
this->db(),
IOobject::MUST_READ,
@ -403,7 +403,7 @@ void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::checkTable()
IOobject
(
fieldTableName_,
this->db().time().constant(),
this->db().time().caseConstant(),
"boundaryData"
/this->patch().name()
/sampleTimes_[startSampleTime_].name(),
@ -460,7 +460,7 @@ void Foam::timeVaryingMappedFixedValuePointPatchField<Type>::checkTable()
IOobject
(
fieldTableName_,
this->db().time().constant(),
this->db().time().caseConstant(),
"boundaryData"
/this->patch().name()
/sampleTimes_[endSampleTime_].name(),

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -82,7 +82,7 @@ uniformInterpolatedDisplacementPointPatchVectorField
IOobject::NO_WRITE,
false
);
if (io.headerOk())
if (io.typeHeaderOk<pointVectorField>(false))
{
names.append(allTimes[i].name());
values.append(allTimes[i].value());