Debian Codegraph @

packages/seacas/applications/algebra/ag_cpyvar.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 CPYVAR (TYP, MAXNE, FROM, TO)
9 C=======================================================================
10
11 C --*** CPYVAR *** (ALGEBRA) Copy a database variable entry
12 C -- Written by Amy Gilkey - revised 03/15/88
13 C --
14 C --CPYVAR copies a variable entry into another entry.
15 C --
16 C --Parameters:
17 C -- TYP - IN - the variable type, used to determine entry size
18 C -- MAXNE - IN - the maximum entry size
19 C -- FROM - IN - the variables to be copied
20 C -- TO - OUT - the copied variables
21 C --
22 C --Common Variables:
23 C -- Uses NVARNP, NVAREL of /DBNUMS/
24
25 include 'ag_dbnums.blk'
26
27 CHARACTER TYP
28 REAL FROM(*), TO(*)
29
30 IF ((TYP .EQ. 'T') .OR. (TYP .EQ. 'H') .OR. (TYP .EQ. 'G')) THEN
31 N = MAXNE
32 ELSE IF ((TYP .EQ. 'C') .OR. (TYP .EQ. 'N')) THEN
33 N = NUMNP
34 ELSE IF (TYP .EQ. 'E') THEN
35 N = NUMEL
36 END IF
37
38 CALL CPYREA (N, FROM, TO)
39
40 RETURN
41 END