mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Utility sample: replaced by 'postProcess -func sample'
To re-use existing 'sampleDict' files simply add the following entries:
type sets;
libs ("libsampling.so");
and run
postProcess -func sampleDict
It is probably better to also rename 'sampleDict' -> 'sample' and then run
postProcess -func sampleDict
This commit is contained in:
@ -233,7 +233,14 @@ bool Foam::functionObjectList::readFunctionObject
|
||||
// Read the functionObject dictionary
|
||||
IFstream fileStream(path);
|
||||
dictionary funcsDict(fileStream);
|
||||
dictionary& funcDict = funcsDict.subDict(funcName);
|
||||
dictionary* funcDictPtr = &funcsDict;
|
||||
|
||||
if (funcsDict.found(funcName) && funcsDict.isDict(funcName))
|
||||
{
|
||||
funcDictPtr = &funcsDict.subDict(funcName);
|
||||
}
|
||||
|
||||
dictionary& funcDict = *funcDictPtr;
|
||||
|
||||
// Insert the 'field' and/or 'fields' entry corresponding to the optional
|
||||
// arguments or read the 'field' or 'fields' entry and add the required
|
||||
|
||||
Reference in New Issue
Block a user