Debian Codegraph @

packages/seacas/libraries/plt/cpucml.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 C=======================================================================
8 SUBROUTINE CPUCML(LINE,PROMPT,L)
9 CHARACTER*(*) LINE,PROMPT
10 LOGICAL FIRST
11 DATA FIRST/.TRUE./
12
13 IF (FIRST) THEN
14 FIRST = .FALSE.
15 LINE = ' '
16 RETURN
17
18 ELSE
19 IF (L.LT.0) THEN
20 CALL CHRTRM(PROMPT,LP)
21
22 ELSE
23 LP = L
24 END IF
25
26 IF (LP.NE.0) THEN
27 WRITE (6,'(1x,a)') PROMPT(1:LP)
28 END IF
29
30 READ (5,'(a)',ERR=10,END=10) LINE
31 CALL CHRTRM(LINE,L)
32 END IF
33
34 RETURN
35
36 10 L = -1
37 RETURN
38
39 END