prism_terminated (flag, ierror)
This routine can be used to check whether prism_terminate has already been called by this process. This may help to detect ambiguous implementations of multi-component applications.