Commit bf92e869 authored by henry's avatar henry
Browse files

Changed the IOOutputFilter constructor to accept a "name" argument. For...

Changed the IOOutputFilter constructor to accept a "name" argument.  For details see the changes proposed by Vincent Tang:
http://openfoam.cfd-online.com/cgi-bin/forum/show.cgi?126/10405
parent 7386e4c9
......@@ -101,8 +101,23 @@ int main(int argc, char *argv[])
instantList timeDirs = timeSelector::select0(runTime, args);
# include "createMesh.H"
IOsampledSets sSets(mesh, "sampleDict", IOobject::MUST_READ, true);
IOsampledSurfaces sSurfs(mesh, "sampleDict", IOobject::MUST_READ, true);
IOsampledSets sSets
(
sampledSets::typeName,
mesh,
"sampleDict",
IOobject::MUST_READ,
true
);
IOsampledSurfaces sSurfs
(
sampledSurfaces::typeName,
mesh,
"sampleDict",
IOobject::MUST_READ,
true
);
forAll(timeDirs, timeI)
{
......
......@@ -32,6 +32,7 @@ License
template<class OutputFilter>
Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
(
const word& outputFilterName,
const objectRegistry& obr,
const fileName& dictName,
const IOobject::readOption rOpt,
......@@ -49,7 +50,7 @@ Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
IOobject::NO_WRITE
)
),
OutputFilter(OutputFilter::typeName, obr, *this, readFromFiles)
OutputFilter(outputFilterName, obr, *this, readFromFiles)
{}
......
......@@ -60,7 +60,7 @@ class IOOutputFilter
{
// Private Member Functions
//- Disallow default bitwise copy construct and assignment
// Disallow default bitwise copy construct and assignment
IOOutputFilter(const IOOutputFilter&);
void operator=(const IOOutputFilter&);
......@@ -74,6 +74,7 @@ public:
// Allow the possibility to load fields from files
IOOutputFilter
(
const word& outputFilterName,
const objectRegistry&,
const fileName& dictName = OutputFilter::typeName() + "Dict",
const IOobject::readOption rOpt = IOobject::MUST_READ,
......@@ -81,9 +82,8 @@ public:
);
// Destructor
virtual ~IOOutputFilter();
//- Destructor
virtual ~IOOutputFilter();
// Member Functions
......
......@@ -78,6 +78,7 @@ bool Foam::OutputFilterFunctionObject<OutputFilter>::start()
(
new IOOutputFilter<OutputFilter>
(
name_,
time_.lookupObject<objectRegistry>(regionName_),
dictName_
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment