IOobjectList does not fail gracefully when reading invalid FoamFiles
In my case, I use a file constant/turbulenceProperties.template
to fill/select turbulence properties at run time. This is seemingly fine for all other utilities, i.e., the correct file, constant/turbulenceProperties
is read. However, when running postProcess
, the template file is loaded. It looks like this occurs because postProcess
reads all objects in the constant
directory (actually, all fields regardless of -fields
argument).
selectedFields
should be used in the executeFunctionObjects
function, or the list of constantObjects
be filtered gracefully. On the other hand, maybe I'm doing something unwise by putting a template file in there that sort of looks like a dictionary.
Edited by Pete Bachant