Skip to content

Commit deda42e

Browse files
authored
add a gaussian 16 example (#193)
* add a g16 example * fix grammar
1 parent efa7bf8 commit deda42e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

doc/examples/g16.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Running Gaussian 16 with failure allowed
2+
3+
Typically, a task will retry three times if the exit code is not zero. Sometimes, one may allow non-zero code. For example, when running large amounts of Gaussian 16 single-point calculation tasks, some of the Gaussian 16 tasks may throw SCF errors and return a non-zero code. One can append `||:` to the command:
4+
5+
```{literalinclude} ../../examples/task/g16.json
6+
:language: json
7+
:linenos:
8+
```
9+
10+
This command ensures the task will always provide zero code.

examples/task/g16.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"command": "g16 < input > output ||:",
3+
"task_work_path": "p1/",
4+
"forward_files": [
5+
"input"
6+
],
7+
"backward_files": [
8+
"output"
9+
]
10+
}

0 commit comments

Comments
 (0)