| 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 LNKFNC (NUMSTO, *) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** LNKFNC *** (ALGEBRA) Assign storage for time functions |
| 12 |
C -- Written by Amy Gilkey - revised 07/22/87 |
| 13 |
C -- |
| 14 |
C --LNKFNC sets up the storage locations for the time functions that |
| 15 |
C --need storage for results that must be saved over time steps. |
| 16 |
C -- |
| 17 |
C --Parameters: |
| 18 |
C -- NUMSTO - IN/OUT - the number of variable storage locations needed |
| 19 |
C -- * - return statement if an error is found; message is printed |
| 20 |
C -- |
| 21 |
C --Common Variables: |
| 22 |
C -- Sets ITMENT of /ENT../ |
| 23 |
C -- Uses NUMEQN, NUMENT, TYPENT, INXENT of /ENT../ |
| 24 |
C -- Uses FNCSTO of /FNCTB./ |
| 25 |
|
| 26 |
include 'exodusII.inc' |
| 27 |
include 'ag_namlen.blk' |
| 28 |
include 'ag_numeqn.blk' |
| 29 |
include 'ag_ent.blk' |
| 30 |
include 'ag_fnctbc.blk' |
| 31 |
|
| 32 |
C --Allocate storage for time functions |
| 33 |
|
| 34 |
DO 110 NEQN = 1, NUMEQN |
| 35 |
DO 100 NENT = 3, NUMENT(NEQN) |
| 36 |
IF (TYPENT(NENT,NEQN) .EQ. 'F') THEN |
| 37 |
INX = INXENT(NENT,NEQN) |
| 38 |
IF (FNCSTO(INX)) THEN |
| 39 |
NUMSTO = NUMSTO + 1 |
| 40 |
ITMENT(NENT,NEQN) = NUMSTO |
| 41 |
ELSE |
| 42 |
ITMENT(NENT,NEQN) = 0 |
| 43 |
END IF |
| 44 |
END IF |
| 45 |
100 CONTINUE |
| 46 |
110 CONTINUE |
| 47 |
|
| 48 |
RETURN |
| 49 |
END |