C Copyright(C) 1999-2020 National Technology & Engineering Solutions C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with C NTESS, the U.S. Government retains certain rights in this software. C C See packages/seacas/LICENSE for details SUBROUTINE MXFIND (NAME1, DICT, DPOINT, LDICT, NNAMES, * CHRCOL, LASTER, ROW) IMPLICIT INTEGER (A-Z) INCLUDE 'params.inc' C*********************************************************************** C NAME1 Name to be found CHARACTER*8 NAME1 C DICT Dictionary name table C DPOINT Dictionary pointer table C LDICT CHARACTER*8 DICT(LDICT,CHRCOL) DIMENSION DPOINT(LDICT,CHRCOL,3) C NNAMES Number of names in the dictionary DIMENSION NNAMES(2) C CHRCOL Column number for character array names. C LASTER Error return C ROW Location of found name or place to insert new name C*********************************************************************** CALL SRCHC (DICT(1,CHRCOL), 1, NNAMES(CHRCOL), NAME1, ERR, ROW) IF (ERR .EQ. 1) THEN IF (DPOINT(ROW,CHRCOL,3) .EQ. -1) THEN C The names was found and is of numeric type. LASTER = SUCCESS ELSE C The found name is a name for a character array. LASTER = WRTYPE END IF ELSE IF (CHRCOL .EQ. 1) THEN C ENTRY NOT FOUND. LASTER = NONAME ELSE CALL SRCHC (DICT, 1, NNAMES(1), NAME1, ERR, ROW) IF (ERR .EQ. 1) THEN LASTER = SUCCESS ELSE LASTER = NONAME END IF END IF RETURN END