Debian Codegraph @

packages/seacas/applications/blot/prnsel.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 PRNSEL (NSEL, NTOT, VALNAM)
9 C=======================================================================
10
11 C --*** PRNSEL *** (BLOT) Print number of values selected
12 C -- Written by Amy Gilkey - revised 03/02/88
13 C --
14 C --PRNSEL prints the number of values selected.
15 C --
16 C --Parameters:
17 C -- NSEL - IN - the number of values selected
18 C -- NTOT - IN - the total number of values
19 C -- VALNAM - IN - the name of the value being checked (plural)
20
21 CHARACTER*(*) VALNAM
22
23 CHARACTER*80 STRING
24
25 IF (NSEL .LE. 0) THEN
26 WRITE (STRING, '(5A)') 'No ', VALNAM, ' are selected'
27 CALL PRTERR ('CMDWARN', STRING(:LENSTR(STRING)))
28 ELSE
29 WRITE (STRING, 10000) NSEL, NTOT, VALNAM
30 10000 FORMAT (I6, ' of ', I6, ' ', A, ' selected')
31 CALL SQZSTR (STRING, LSTR)
32 WRITE (*, 10010) STRING(:LSTR)
33 END IF
34
35 RETURN
36 10010 FORMAT (4X, A)
37 END