ENH: limit file checks in the abort function object to the master process

- do not recheck the abort after it has been triggered once.
  This reduces the output clutter and file checks.
This commit is contained in:
Mark Olesen
2017-07-17 10:47:10 +02:00
parent 9e88a8a21e
commit e045d6c03b
4 changed files with 107 additions and 66 deletions

View File

@ -0,0 +1,13 @@
// OpenFOAM dictionary -*- C++ -*-
ABORT
{
type abort;
libs ("libutilityFunctionObjects.so");
//file "$FOAM_CASE/ABORT"; // default name
// action writeNow;
action nextWrite;
}
// ************************************************************************* //

View File

@ -59,6 +59,7 @@ writeInterval 100;
functions
{
#include "abort"
#include "scalarTransport"
#include "sampling"
}