Debian Codegraph @

packages/seacas/applications/explore/exp_selset.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 C=======================================================================
7 SUBROUTINE SELSET (NUMSEL, IXSEL, NUMSET, LISNPS, LNPSNL,
8 & IDNPS, NNNPS, IXNNPS, LTNNPS, VALNAM)
9 C=======================================================================
10
11 INTEGER IXSEL(*)
12 INTEGER LISNPS(0:*)
13 INTEGER IDNPS(*)
14 INTEGER NNNPS(*)
15 INTEGER IXNNPS(*)
16 INTEGER LTNNPS(*)
17 CHARACTER*(*) VALNAM
18 CHARACTER*40 STRA
19 CHARACTER*132 MSG
20
21 NUMSEL = 0
22 DO 100 IX = 1, LISNPS(0)
23 INPS = LISNPS(IX)
24 IS = IXNNPS(INPS)
25 IE = IS + NNNPS(INPS) - 1
26 do 90 i=is,ie
27 NUMSEL = NUMSEL + 1
28 IXSEL(NUMSEL) = ltnnps(i)
29 90 continue
30 100 CONTINUE
31 write (stra, 10000) numsel
32 call pckstr(1, stra)
33 MSG = STRA(:lenstr(stra)) // ' ' // VALNAM // ' selected'
34 call prterr('CMDSPEC', MSG)
35 10000 format(I12)
36 RETURN
37 END