Debian Codegraph @

packages/seacas/applications/fastq/revers.f

raw
1 C Copyright(C) 1999-2020 National Technology & Engineering Solutions
2 C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 C NTESS, the U.S. Government retains certain rights in this software.
4 C
5 C See packages/seacas/LICENSE for details
6
7 SUBROUTINE REVERS (X, N)
8 C***********************************************************************
9
10 C SUBROUTINE REVERS = REVERS THE REAL ARRAY OF X (I), I=1, N
11
12 C***********************************************************************
13
14 DIMENSION X (N)
15
16 IF (N .LE. 1) RETURN
17
18 NUP = N + 1
19 M = N / 2
20 DO 100 I = 1, M
21 NUP = NUP - 1
22 XK = X (I)
23 X (I) = X (NUP)
24 X (NUP) = XK
25 100 CONTINUE
26
27 RETURN
28
29 END