forked from gt-frc/GTNEUT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zstop.f
22 lines (16 loc) · 835 Bytes
/
zstop.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
subroutine zstop(ntty, nout, n)
c///////////////////////////////////////////////////////////////////////
c/ /
c/ This subroutine terminates the run, and writes the reason for /
c/ termination as determined by the flag n, to the terminal (ntty) /
c/ and the main output file (nout). /
c/ Written by John Mandrekas, GIT, 12-12-93, for the 0-D code. /
c/ /
c///////////////////////////////////////////////////////////////////////
implicit none
integer ntty, nout, n
write (ntty, 5000) n
write (nout, 5000) n
5000 format (1x, 'Exit code = ', i2)
stop
end