Debian Codegraph @

packages/seacas/applications/exotxt/et_wrprop.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 wrprop(ndbi, ndbo, flag, nump, nval, names, values,
9 * namlen)
10 C************************************************************************
11 C This subroutine with read properties from an input file and
12 C write properties to an output text file
13 C ndbi - IN - file id to read from
14 C ndbo - IN - file id to write to
15 C flag - IN - flag indicating what type of properties to read/write
16 C nump - IN - number of properties
17 C nval - IN - number of values
18 C names - IN - names of the properties
19 C values - IN - values of the properties
20
21 integer ndbi, ndbo, flag, nump, nval
22 character*(namlen) names(*)
23 integer values(*)
24
25 if (nump .eq. 0) return
26
27 call exgpn (ndbi, flag, names, ierr)
28
29 do 100 i = 1, nump
30 call exgpa (ndbi, flag, names(i), values, ierr)
31 write (ndbo,1000) '! Property Name: '
32 write (ndbo,1000) names(i)
33 write (ndbo,1000) '! Property Value(s): '
34 write (ndbo,1010) (values(j), j = 1, nval)
35 100 continue
36
37 1000 format (A)
38 1010 format (7(I10, 1X))
39 return
40 end