| 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 MRKCEN (LINK, XN, NUMCOL, NEROW, IELCEN, |
| 9 |
& ICOL1, ALLCEN) |
| 10 |
C======================================================================= |
| 11 |
|
| 12 |
C --*** MRKCEN *** (GEN3D) Find center column for each element row |
| 13 |
C -- Written by Amy Gilkey - revised 04/26/88 |
| 14 |
C -- |
| 15 |
C --MRKCEN identifies whether the first column of each row is on the |
| 16 |
C --center. This is true iff the first node in the row is located to |
| 17 |
C --the left of the minimum location of the second node in all rows. |
| 18 |
C -- |
| 19 |
C --Parameters: |
| 20 |
C -- LINK - IN - the connectivity for the 2D elements, always 4 nodes |
| 21 |
C -- XN - IN - the coordinates, needed to find node ordering |
| 22 |
C -- NUMCOL - IN - the number of columns in the center blocks |
| 23 |
C -- NEROW - IN - the number of element rows in the center blocks |
| 24 |
C -- IELCEN - IN - the element numbers of the center elements |
| 25 |
C -- by column and row (column 1 is not necessarily the center) |
| 26 |
C -- ICOL1 - OUT - set to 1 if the first element in the row is on the |
| 27 |
C -- center, else set to 0 |
| 28 |
C -- ALLCEN - OUT - true iff all rows are on the center column |
| 29 |
C -- |
| 30 |
C --Common Variables: |
| 31 |
C -- Uses IX1, IX2, IX3, IX4 of /CENPAR/ |
| 32 |
|
| 33 |
INCLUDE 'g3_cenpar.blk' |
| 34 |
|
| 35 |
INTEGER LINK(4,*) |
| 36 |
REAL XN(*) |
| 37 |
C ASSERT: NUMCOL > 0 |
| 38 |
INTEGER IELCEN(NUMCOL,*) |
| 39 |
INTEGER ICOL1(*) |
| 40 |
LOGICAL ALLCEN |
| 41 |
|
| 42 |
C --Find the minimum X for the second node in all rows |
| 43 |
|
| 44 |
XMIN = 1E36 |
| 45 |
DO 10 IROW = 1, NEROW |
| 46 |
IEL = IELCEN(1,IROW) |
| 47 |
INP = LINK(IX2,IEL) |
| 48 |
XMIN = MIN (XMIN, XN(INP)) |
| 49 |
10 CONTINUE |
| 50 |
|
| 51 |
C --Mark as on center if the first node in the row is to the left of the |
| 52 |
C --minimum found above |
| 53 |
|
| 54 |
ALLCEN = .TRUE. |
| 55 |
|
| 56 |
DO 20 IROW = 1, NEROW |
| 57 |
IEL = IELCEN(1,IROW) |
| 58 |
INP = LINK(IX1,IEL) |
| 59 |
IF (XN(INP) .LT. XMIN) THEN |
| 60 |
ICOL1(IROW) = 1 |
| 61 |
ELSE |
| 62 |
ICOL1(IROW) = 0 |
| 63 |
ALLCEN = .FALSE. |
| 64 |
END IF |
| 65 |
20 CONTINUE |
| 66 |
|
| 67 |
RETURN |
| 68 |
END |