ENH: disable ensightWrite, vtkWrite function objects in post-process mode

- prevents accidental overwrite of runtime conversions.
This commit is contained in:
Mark Olesen
2018-05-08 09:16:00 +02:00
parent dbe16de58c
commit 9531212f14
5 changed files with 39 additions and 2 deletions

View File

@ -10,8 +10,8 @@ ensightWrite
// Fields to output (words or regex)
fields (U p "(k|epsilon|omega)");
writeControl writeTime;
writeInterval 1;
writeControl writeTime;
writeInterval 1;
}
// ************************************************************************* //

View File

@ -50,6 +50,7 @@ runTimeModifiable true;
functions
{
#include "ensightWrite"
#include "vtkWrite"
}

View File

@ -0,0 +1,18 @@
// -*- C++ -*-
// Minimal example of using the ensight write function object.
// Many more options possible
ensightWrite
{
type ensightWrite;
libs ("libutilityFunctionObjects.so");
log true;
// Fields to output (words or regex)
fields (U p "(k|epsilon|omega)");
//- Write more frequent than fields
writeControl timeStep;
writeInterval 5;
}
// ************************************************************************* //