Debian Codegraph @

packages/seacas/applications/gen3d/g3_felcen.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 FELCEN (NUMCOL, NEROW, IELROW, IXROW, IELCEN)
9 C=======================================================================
10
11 C --*** FELCEN *** (GEN3D) Put center elements into row by column array
12 C -- Written by Amy Gilkey - revised 04/26/88
13 C --
14 C --It puts the center elements into a row by column array.
15 C --
16 C --Parameters:
17 C -- NUMCOL - IN - the number of columns in the center blocks
18 C -- NEROW - IN - the number of element rows in the center blocks
19 C -- IELROW - IN - the element numbers of the rows of center elements
20 C -- IXROW - IN - the IELROW index of the starting column for each row
21 C -- IELCEN - OUT - the element numbers of the center elements
22 C -- by column and row (column 1 is not necessarily the center)
23
24 INTEGER IELROW(*)
25 INTEGER IXROW(NEROW+1)
26 C...Assert NUMCOL > 0
27 INTEGER IELCEN(NUMCOL,*)
28
29 C --Put rows into row by column array
30
31 DO 20 IROW = 1, NEROW
32 IX = IXROW(IROW)
33 DO 10 ICOL = 1, NUMCOL
34 IF (IX .LE. IXROW(IROW+1)-1) THEN
35 IELCEN(ICOL,IROW) = IELROW(IX)
36 IX = IX + 1
37 ELSE
38 IELCEN(ICOL,IROW) = 0
39 END IF
40 10 CONTINUE
41 20 CONTINUE
42
43 RETURN
44 END