[Extend] Handle SIGINT, SIGTERM, and SIGXCPU
If either signal is detected, we try to terminate gracefully. If we're given enough time before a nastier signal like SIGKILL is sent, we'll then be able to finish computing and writing out the current timestep. If we do not take such precautions, chances are the HDF5 output will be corrupted.
Please register or sign in to comment