Merged in feature/exit-reasons (pull request #237)
3ea24b3·Author: Joseph Parker·Closed by: Joseph Parker·2020-02-07
Description
GS2 provides a reason for terminating a run, written to the file <run_name>.exit_reason. This PR fixes a bug to ensure the correct reason is written when GS2 stops because of the presence of a stop file. This fixes the job_manage test.
This PR also provides a default exit reason, EXIT_NO_REASON, and a reason for exiting after the expected number of nsteps, EXIT_NSTEP.
The way exit reasons are implemented will change in 8.1, so this is a stop-gap solution to fix the job manage test.
GS2 provides a reason for terminating a run, written to the file
<run_name>.exit_reason
. This PR fixes a bug to ensure the correct reason is written when GS2 stops because of the presence of a stop file. This fixes the job_manage test.This PR also provides a default exit reason,
EXIT_NO_REASON
, and a reason for exiting after the expected number of nsteps,EXIT_NSTEP
.The way exit reasons are implemented will change in 8.1, so this is a stop-gap solution to fix the job manage test.
Needs utils #33.