Merge branch 'master' of ssh://graham@hunt//home/noisy3/OpenFOAM/OpenFOAM-dev

This commit is contained in:
graham
2010-06-02 12:04:28 +01:00
196 changed files with 1372 additions and 311 deletions

23
TODO Normal file
View File

@ -0,0 +1,23 @@
- check
new fvMesh
new fvMeshSubset
for consistency with createMesh.H
- Check the following:
doc/changes/inotify.txt

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"turbulenceProperties", "turbulenceProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -23,7 +23,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -39,7 +39,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -62,7 +62,7 @@ Foam::XiEqModels::SCOPEXiEq::SCOPEXiEq
"combustionProperties", "combustionProperties",
Su.mesh().time().constant(), Su.mesh().time().constant(),
Su.mesh(), Su.mesh(),
IOobject::MUST_READ IOobject::MUST_READ_IF_MODIFIED
) )
), ),
thermo thermo

View File

@ -110,7 +110,7 @@
"PDRProperties", "PDRProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"combustionProperties", "combustionProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"combustionProperties", "combustionProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary combustionProperties
"combustionProperties", "combustionProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -65,7 +65,7 @@ IOdictionary combustionProperties
"combustionProperties", "combustionProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary chemistryProperties
"chemistryProperties", "chemistryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -7,7 +7,7 @@ IOdictionary chemistryProperties
"chemistryProperties", "chemistryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -9,7 +9,7 @@ IOdictionary thermophysicalProperties
"thermophysicalProperties", "thermophysicalProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary mdEquilibrationDict
"mdEquilibrationDict", "mdEquilibrationDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"physicalProperties", "physicalProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -21,7 +21,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"financialProperties", "financialProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -36,7 +36,7 @@ Foam::regionProperties::regionProperties(const Time& runTime)
"regionProperties", "regionProperties",
runTime.time().constant(), runTime.time().constant(),
runTime.db(), runTime.db(),
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
), ),

View File

@ -44,7 +44,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -6,7 +6,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary gravitationalProperties
"gravitationalProperties", "gravitationalProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary chemistryProperties
"chemistryProperties", "chemistryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary chemistryProperties
"chemistryProperties", "chemistryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -97,7 +97,7 @@
"additionalControls", "additionalControls",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary chemistryProperties
"chemistryProperties", "chemistryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -7,7 +7,7 @@ IOdictionary chemistryProperties
"chemistryProperties", "chemistryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -91,7 +91,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -5,7 +5,7 @@
"RASProperties", "RASProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -46,7 +46,7 @@ Foam::phaseChangeTwoPhaseMixture::New
"transportProperties", "transportProperties",
U.time().constant(), U.time().constant(),
U.db(), U.db(),
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -50,7 +50,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -184,7 +184,7 @@
"RASProperties", "RASProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -153,7 +153,7 @@
"interfacialProperties", "interfacialProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -56,7 +56,7 @@ Foam::kineticTheoryModel::kineticTheoryModel
"kineticTheoryProperties", "kineticTheoryProperties",
Ua_.time().constant(), Ua_.time().constant(),
Ua_.mesh(), Ua_.mesh(),
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
), ),

View File

@ -5,7 +5,7 @@
"ppProperties", "ppProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"mechanicalProperties", "mechanicalProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermalProperties", "thermalProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -48,7 +48,7 @@ int main(int argc, char *argv[])
"dataEntryProperties", "dataEntryProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -116,7 +116,7 @@ int main(int argc, char *argv[])
dictName, dictName,
"system", "system",
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -57,7 +57,7 @@ int main(int argc, char *argv[])
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -56,7 +56,7 @@ int main(int argc, char *argv[])
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -57,7 +57,7 @@ int main(int argc, char *argv[])
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -58,7 +58,7 @@ int main(int argc, char *argv[])
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -639,7 +639,7 @@ int main(int argc, char *argv[])
"motionProperties", "motionProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
); );
@ -669,7 +669,7 @@ int main(int argc, char *argv[])
"autoRefineMeshDict", "autoRefineMeshDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -74,7 +74,7 @@ void checkSnapMesh
"snapMeshDict", "snapMeshDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -346,7 +346,7 @@ int main(int argc, char *argv[])
"modifyMeshDict", "modifyMeshDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -78,7 +78,7 @@ Foam::edgeStats::edgeStats(const polyMesh& mesh)
"motionProperties", "motionProperties",
mesh.time().constant(), mesh.time().constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
); );

View File

@ -346,7 +346,7 @@ int main(int argc, char *argv[])
"selectCellsDict", "selectCellsDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -29,7 +29,7 @@
runTime.timeName(), runTime.timeName(),
"uniform", "uniform",
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -29,7 +29,7 @@
runTime.timeName(), runTime.timeName(),
"uniform", "uniform",
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -121,7 +121,7 @@ int main(int argc, char *argv[])
: dictPath : dictPath
), ),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )
@ -137,7 +137,7 @@ int main(int argc, char *argv[])
runTime.constant(), runTime.constant(),
polyMeshDir, polyMeshDir,
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -218,7 +218,7 @@ int main(int argc, char *argv[])
runTimeExtruded.constant(), runTimeExtruded.constant(),
regionDir, regionDir,
runTimeExtruded, runTimeExtruded,
IOobject::MUST_READ IOobject::MUST_READ_IF_MODIFIED
) )
); );

View File

@ -144,7 +144,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -157,7 +157,7 @@ int main(int argc, char *argv[])
"snappyHexMeshDict", "snappyHexMeshDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -532,7 +532,7 @@ int main(int argc, char *argv[])
: word::null : word::null
), ),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -39,7 +39,7 @@ Foam::mirrorFvMesh::mirrorFvMesh(const IOobject& io)
"mirrorMeshDict", "mirrorMeshDict",
time().system(), time().system(),
*this, *this,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
), ),

View File

@ -7,7 +7,7 @@
"mirrorMeshDict", "mirrorMeshDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -334,7 +334,7 @@ int main(int argc, char *argv[])
"refineMeshDict", "refineMeshDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -483,7 +483,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -298,7 +298,7 @@ int main(int argc, char *argv[])
args.options()["toleranceDict"], args.options()["toleranceDict"],
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -83,7 +83,7 @@ int main(int argc, char *argv[])
( (
dictPath, dictPath,
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
: IOobject : IOobject
@ -91,7 +91,7 @@ int main(int argc, char *argv[])
dictName, dictName,
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
) )

View File

@ -169,7 +169,7 @@ int main(int argc, char *argv[])
runTime.time().system(), runTime.time().system(),
regionDir, // use region if non-standard regionDir, // use region if non-standard
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -94,7 +94,7 @@ Foam::domainDecomposition::domainDecomposition(const IOobject& io)
"decomposeParDict", "decomposeParDict",
time().system(), time().system(),
*this, *this,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
), ),

View File

@ -581,7 +581,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -94,7 +94,7 @@ int main(int argc, char *argv[])
"foamDataToFluentDict", "foamDataToFluentDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -26,7 +26,7 @@
if (io.headerOk()) if (io.headerOk())
{ {
io.readOpt() = IOobject::MUST_READ; io.readOpt() = IOobject::MUST_READ_IF_MODIFIED;
IOdictionary timeObject(io); IOdictionary timeObject(io);
timeObject.lookup("index") >> timeIndex; timeObject.lookup("index") >> timeIndex;

View File

@ -5,7 +5,7 @@ IOdictionary conversionProperties
"conversionProperties", "conversionProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -315,7 +315,7 @@ void Foam::vtkPV3blockMesh::updateFoamMesh()
dbPtr_().constant(), dbPtr_().constant(),
polyMesh::meshSubDir, polyMesh::meshSubDir,
dbPtr_(), dbPtr_(),
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -5,7 +5,7 @@ IOdictionary propsDict
"particleTrackProperties", "particleTrackProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ IOobject::MUST_READ_IF_MODIFIED
) )
); );

View File

@ -62,7 +62,7 @@ namespace Foam
args["dict"], args["dict"],
runTime.system(), runTime.system(),
runTime, runTime,
IOobject::MUST_READ IOobject::MUST_READ_IF_MODIFIED
) )
); );
@ -130,7 +130,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"RASProperties", "RASProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
); );
@ -140,7 +140,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"LESProperties", "LESProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
); );
@ -184,7 +184,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -214,7 +214,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"RASProperties", "RASProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
); );
@ -224,7 +224,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"LESProperties", "LESProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
); );
@ -266,7 +266,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -5,7 +5,7 @@
"pdfDict", "pdfDict",
runTime.constant(), runTime.constant(),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -69,7 +69,7 @@ int main(int argc, char *argv[])
"postChannelDict", "postChannelDict",
mesh.time().constant(), mesh.time().constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -98,7 +98,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"thermodynamicProperties", "thermodynamicProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -81,7 +81,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"RASProperties", "RASProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
); );
@ -90,7 +90,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"LESProperties", "LESProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
); );
@ -174,7 +174,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -299,7 +299,7 @@ void Foam::calc(const argList& args, const Time& runTime, const fvMesh& mesh)
"transportProperties", "transportProperties",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@
"boxTurbDict", "boxTurbDict",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -292,7 +292,7 @@ int main(int argc, char *argv[])
"changeDictionaryDict", "changeDictionaryDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -405,7 +405,7 @@ int main(int argc, char *argv[])
fieldName, fieldName,
instance, instance,
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -50,7 +50,7 @@ int main(int argc, char *argv[])
"dsmcInitialiseDict", "dsmcInitialiseDict",
mesh.time().system(), mesh.time().system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -7,7 +7,7 @@ IOdictionary engineGeometry
"engineGeometry", "engineGeometry",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -278,7 +278,7 @@ void rewriteField
fieldName, fieldName,
runTime.timeName(), runTime.timeName(),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -70,7 +70,7 @@ int main(int argc, char *argv[])
"fvSolution", "fvSolution",
runTime.system(), runTime.system(),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -291,7 +291,7 @@ int main(int argc, char *argv[])
"mapFieldsDict", "mapFieldsDict",
runTimeTarget.system(), runTimeTarget.system(),
runTimeTarget, runTimeTarget,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )
@ -310,7 +310,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTimeSource.system(), runTimeSource.system(),
runTimeSource, runTimeSource,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -375,7 +375,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTimeTarget.system(), runTimeTarget.system(),
runTimeTarget, runTimeTarget,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -446,7 +446,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTimeSource.system(), runTimeSource.system(),
runTimeSource, runTimeSource,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );
@ -464,7 +464,7 @@ int main(int argc, char *argv[])
"decomposeParDict", "decomposeParDict",
runTimeTarget.system(), runTimeTarget.system(),
runTimeTarget, runTimeTarget,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -44,7 +44,7 @@ int main(int argc, char *argv[])
"mdInitialiseDict", "mdInitialiseDict",
runTime.system(), runTime.system(),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

View File

@ -186,7 +186,7 @@ int main(int argc, char *argv[])
"setFieldsDict", "setFieldsDict",
runTime.system(), runTime.system(),
mesh, mesh,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -47,7 +47,7 @@ int main(int argc, char *argv[])
"wallFunctionDict", "wallFunctionDict",
runTime.constant(), runTime.constant(),
mesh, mesh,
IOobject::MUST_READ IOobject::MUST_READ_IF_MODIFIED
) )
); );

View File

@ -241,7 +241,7 @@ int main(int argc, char *argv[])
importName, importName,
runTime.constant(), runTime.constant(),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE IOobject::NO_WRITE
) )
); );

View File

@ -62,7 +62,7 @@ int main(int argc, char *argv[])
"BurcatCpData", "BurcatCpData",
runTime.constant(), runTime.constant(),
runTime, runTime,
IOobject::MUST_READ, IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE, IOobject::NO_WRITE,
false false
) )

53
doc/changes/inotify.txt Normal file
View File

@ -0,0 +1,53 @@
2010-05-28
Cleanup of automatic regIOobject rereading.
- all files (usually only IOdictionary) that need to be monitored
should be registered using MUST_READ_IF_MODIFIED. The MUST_READ should
be used for objects that do not need to be re-read (e.g. fields).
In the old system it would actually monitor e.g. 0/U and constant/polyMesh
files.
I've temporarily added a warning in IOdictionary if constructed with MUST_READ.
Same for IOList,IOField,IOMap if constructed with MUST_READ_IF_MODIFIED
(or is rereading supported?). Please let me know if something does not work or
you see the warning
"Dictionary constructed with IOobject::MUST_READ instead of IOobject::MUST_READ_IF_MODIFIED." << nl
- any monitored and modified file will get reloaded from the exact path
that was monitored. In the old system it would/could do a re-search through all
times.
- all reductions to synchronise status on different processors are done with
a single reduction instead of one reduction per registered object. This could
be quite a gain on large numbers of processors.
- all file monitoring is done by an instance of 'fileMonitor' in the Time
class. The fileMonitor class can be found in OSspecific. Default is
to use the (linux-specific) 'inotify' system calls.
If compiled with -DFOAM_USE_STAT it will revert to the current 'stat' system
calls.
- inotify does not need timestamps. There is no need for fileModificationSkew
to allow for time differences. (there can still temporarily be a difference
in modified status between different processors due to nfs lagging)
- fileMonitor stores two hashtables per file so there is a small overhead
adding and removing files from monitoring.
- if runTimeModifiable is false at start of run no files will get monitored,
however if runTimeModified gets set to false during the run the files
will still get monitored (though never reloaded). This is only a hypothetical
problem in that the kernel still stores events for the monitored files. However
inotify is very efficient - e.g. it gets used to track changes on file systems
for desktop search engines.
- in the old system one could call modified() on any object and get
and uptodate state. In the new system it will return the state from
the last runTime++ (which if it triggered any re-reads will have reset the
state anyway).

View File

@ -9,6 +9,12 @@ POSIX.C
cpuTime/cpuTime.C cpuTime/cpuTime.C
clockTime/clockTime.C clockTime/clockTime.C
/*
* Note: fileMonitor assumes inotify by default. Compile with -DFOAM_USE_STAT
* to use stat (=timestamps) instead of inotify
*/
fileMonitor.C
#ifdef SunOS64 #ifdef SunOS64
dummyPrintStack.C dummyPrintStack.C
#else #else

View File

@ -0,0 +1,3 @@
#ifdef SunOS64
EXE_INC = -DFOAM_USE_STAT
#endif

Some files were not shown because too many files have changed in this diff Show More