Debian Codegraph @

packages/seacas/applications/algebra/ag_dbicon.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 DBICON (NDB, NDIM, NAMECO)
8 C=======================================================================
9
10 C --*** DBICON *** Read and pack coordinate names
11 C -- Modified from DBINAM for ExodusIIV2 database format 8/26/95
12 C --*** DBINAM *** (EXOLIB) Read database names
13 C -- Written by Amy Gilkey - revised 02/08/88
14 C --
15 C --DBINAM performed a number of different input file read base
16 C --on the passed in option argument. DBINAM was split up
17 C --into a number of different subroutins
18 C --
19 C --Parameters:
20 C -- NDB - IN - the database number
21 C -- NDIM - IN - the number of coordinates per node
22 C -- NAMECO - OUT - the names of the coordinates; max size = 6 (if OPTION)
23
24 C --Routines Called:
25 C -- EXUPCS - (SUPES) Convert to uppercase and blank non-standard
26 C -- PCKSTR - (STRLIB) Remove embedded blanks
27
28 include 'ag_namlen.blk'
29 PARAMETER (MAXDIM=6)
30
31 INTEGER NDB
32 INTEGER NDIM
33 CHARACTER*(namlen) NAMECO(*)
34
35 C Read and pack coordinate names
36 IF (NDIM .GT. MAXDIM) THEN
37 CALL PRTERR ('WARNING',
38 & 'Too many coordinate names in the database')
39 RETURN
40 END IF
41
42 C Read the name of the coordinate arrays from the database
43 call exgcon(ndb, nameco, ierr)
44
45 C Make upper case & remove blanks
46 DO 100 I = 1, MIN(NDIM,MAXDIM)
47 CALL EXUPCS (NAMECO(I))
48 100 CONTINUE
49 CALL PCKSTR (MIN(NDIM,MAXDIM), NAMECO)
50
51 RETURN
52 END