Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pystop.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pystop.f
1 
2 C*********************************************************************
3 
4 C...PYSTOP
5 C...Allows users to handle STOP statemens
6 
7  SUBROUTINE pystop(MCOD)
8 
9 C...Double precision and integer declarations.
10  IMPLICIT DOUBLE PRECISION(a-h, o-z)
11  IMPLICIT INTEGER(i-n)
12  INTEGER pyk,pychge,pycomp
13 C...Commonblocks.
14  common/pydat1/mstu(200),paru(200),mstj(200),parj(200)
15  SAVE /pydat1/
16 
17 
18 C...Write message, then stop
19  WRITE(mstu(11),5000) mcod
20  stop
21 
22 
23 C...Formats for output.
24  5000 FORMAT(/5x,'PYSTOP called with code: ',i4)
25  RETURN
26  END