Debian Codegraph @

packages/seacas/applications/algebra/ag_svcord.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 SVCORD (CORD, MAXNE, VARVAL)
9 C=======================================================================
10
11 C --*** SVCORD *** (ALGEBRA) Save referenced coordinates in VARVAL
12 C -- Written by Amy Gilkey - revised 03/15/88
13 C --
14 C --SVCORD saves the coordinates needed in the equation evaluation
15 C --in the VARVAL array.
16 C --
17 C --Parameters:
18 C -- CORD - IN - the coordinates
19 C -- MAXNE - IN - the VARVAL dimension (max of NUMEL and NUMNP)
20 C -- VARVAL - OUT - the returned coordinates needed
21 C --
22 C --Common Variables:
23 C -- Uses IDVAR, ISTVAR of /VAR../
24 C -- Uses NUMNP of /DBNUMS/
25 C -- Uses ICOBEG, ICOEND of /DBXVAR/
26
27 PARAMETER (ICURTM = 1, ILSTTM = 2, IONETM = 3)
28 include 'ag_namlen.blk'
29 include 'ag_var.blk'
30 include 'ag_dbnums.blk'
31 include 'ag_dbxvar.blk'
32
33 REAL CORD(NUMNP,NDIM)
34 REAL VARVAL(MAXNE,*)
35
36 C --Save any coordinates needed in VARVAL
37
38 DO 100 NVAR = ICOBEG, ICOEND
39 ID = IDVAR(NVAR)
40 NSTO = ISTVAR(ICURTM,NVAR)
41 CALL CPYREA (NUMNP, CORD(1,ID), VARVAL(1,NSTO))
42 100 CONTINUE
43
44 RETURN
45 END