Debian Codegraph @

packages/seacas/libraries/supes/mem_mgr/myfind.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 SUBROUTINE MYFIND (NAME1, DICT, DPOINT, LDICT, NNAMES,
7 * CHRCOL, LASTER, ROW)
8
9 IMPLICIT INTEGER (A-Z)
10 INCLUDE 'params.inc'
11
12 C***********************************************************************
13
14 C NAME1 Name to be found
15 CHARACTER*8 NAME1
16 C DICT Dictionary name table
17 C DPOINT Dictionary pointer table
18 C LDICT
19 CHARACTER*8 DICT(LDICT,CHRCOL)
20 DIMENSION DPOINT(LDICT,CHRCOL,3)
21 C NNAMES Number of names in the dictionary
22 DIMENSION NNAMES(2)
23 C CHRCOL Column number for character array names.
24 C LASTER Error return
25 C ROW Location of found name or place to insert new name
26
27 C***********************************************************************
28
29 CALL SRCHC (DICT, 1, NNAMES(1), NAME1, ERR, ROW)
30 IF (ERR .EQ. 1) THEN
31 IF (DPOINT(ROW,1,3) .NE. -1) THEN
32
33 C The found name is a name for a character array.
34 LASTER = SUCCESS
35
36 ELSE
37
38 C The names was found and is of numeric type.
39 LASTER = WRTYPE
40 END IF
41
42 ELSE IF (CHRCOL .EQ. 1) THEN
43
44 C ENTRY NOT FOUND.
45
46 LASTER = NONAME
47
48 ELSE
49 CALL SRCHC (DICT(1,2), 1, NNAMES(2), NAME1, ERR, ROW)
50 IF (ERR .EQ. 1) THEN
51 LASTER = SUCCESS
52 ELSE
53 LASTER = NONAME
54 END IF
55 END IF
56
57 RETURN
58 END