Skip to content
Snippets Groups Projects
Commit 4d10d061 authored by Mark Olesen's avatar Mark Olesen
Browse files

IOOutputFilter - can create from IOobject directly

- useful when using alternative dictionary names/locations
parent 68e7c736
Branches
Tags
No related merge requests found
...@@ -29,6 +29,19 @@ License ...@@ -29,6 +29,19 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class OutputFilter>
Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
(
const word& outputFilterName,
const IOobject& ioDict,
const bool readFromFiles
)
:
IOdictionary(ioDict),
OutputFilter(outputFilterName, ioDict.db(), *this, readFromFiles)
{}
template<class OutputFilter> template<class OutputFilter>
Foam::IOOutputFilter<OutputFilter>::IOOutputFilter Foam::IOOutputFilter<OutputFilter>::IOOutputFilter
( (
......
...@@ -29,6 +29,11 @@ Description ...@@ -29,6 +29,11 @@ Description
IOdictionary wrapper around OutputFilter to allow them to read from IOdictionary wrapper around OutputFilter to allow them to read from
their associated dictionaries. their associated dictionaries.
Note
The IOobject or the objectRegistry will normally have to be
derived from a fvMesh for a subsequent cast (within OutputFilter)
to work correctly.
SourceFiles SourceFiles
IOOutputFilter.C IOOutputFilter.C
...@@ -69,6 +74,15 @@ public: ...@@ -69,6 +74,15 @@ public:
// Constructors // Constructors
//- Construct from an IOobject for IOdictionary
// Allow the possibility to load fields from files
IOOutputFilter
(
const word& outputFilterName,
const IOobject& ioDict,
const bool loadFromFile = false
);
//- Construct for given objectRegistry and dictionary //- Construct for given objectRegistry and dictionary
// Allow dictionary to be optional // Allow dictionary to be optional
// Allow the possibility to load fields from files // Allow the possibility to load fields from files
......
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