Debian Codegraph @

packages/seacas/applications/algebra/ag_chkfnc.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 CHKFNC (FNAM, ENAM)
9 C=======================================================================
10
11 C --*** CHKFNC *** (ALGEBRA) Check that the function names match
12 C -- Written by Amy Gilkey - revised 07/24/87
13 C --
14 C --CHKFNC prints a program error message if the two function names
15 C --do not match. This is a debugging tool to check that the functions
16 C --in EVAL are ordered correctly.
17 C --
18 C --Parameters:
19 C -- FNAM - IN - the name of the function from the EVAL code
20 C -- ENAM - IN - the name of the function from the equation entry
21
22 CHARACTER*(*) FNAM, ENAM
23
24 CHARACTER*80 ERRMSG
25
26 IF (FNAM .NE. ENAM) THEN
27 ERRMSG = 'Function ' // FNAM(:LENSTR(FNAM))
28 & // ' should be ' // ENAM(:LENSTR(ENAM))
29 CALL PRTERR ('PROGRAM', ERRMSG(:LENSTR(ERRMSG)))
30 END IF
31
32 RETURN
33 END