...
You need to declare the ECF-variables needed. In the start of an ecFlow script you need to make sure that any command failing will be trapped and calls:
Code Block |
---|
ecflow_client --abort="<Reason>" |
You also need to tell ecFlow that the task is active by using:
Code Block |
---|
ecflow_client - -init <process id> |
In a large suite, with hundreds of tasks, you would need to execute the same commands in each of them. Editing just a single (header) file is somewhat easier than editing them all.
E.g. file head.h
...