ENH: extend flexibility of abort function object (#1119)

- Now also responds to the contents of the trigger file,
  processing action= contents similar to used with external coupling.

  Previously it only handled an action that was defined in the
  dictionary. With this update, the user can chose a diferent action
  simply by echoing the appropriate action string into the trigger
  file.
This commit is contained in:
Mark Olesen
2018-12-12 15:39:49 +01:00
parent 781246c26f
commit 00ec58a141
5 changed files with 166 additions and 57 deletions

View File

@ -0,0 +1,17 @@
// OpenFOAM dictionary -*- C++ -*-
abort
{
type abort;
libs ("libutilityFunctionObjects.so");
file "<case>/ABORT"; // Instead of default name
// action writeNow; // If we want to see immediate results
// Or use default (nextWrite) and force with
// "action=writeNow" in the trigger file
}
// ************************************************************************* //

View File

@ -47,5 +47,9 @@ graphFormat raw;
runTimeModifiable true;
functions
{
#include "abort"
}
// ************************************************************************* //