mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -47,5 +47,9 @@ graphFormat raw;
|
||||
|
||||
runTimeModifiable true;
|
||||
|
||||
functions
|
||||
{
|
||||
#include "abort"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
Reference in New Issue
Block a user