| 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 PLTGM2(XL,XU,YL,YU,PXL,PXU,PYL,PYU,UMAP) |
| 9 |
REAL UMAP(*) |
| 10 |
|
| 11 |
DU = XU - XL |
| 12 |
DP = PXU - PXL |
| 13 |
IF (DU.EQ.0.) THEN |
| 14 |
DU = 1. |
| 15 |
END IF |
| 16 |
|
| 17 |
UMAP(1) = DP/DU |
| 18 |
UMAP(1+1) = 0. |
| 19 |
UMAP(1+2) = 0. |
| 20 |
DV = YU - YL |
| 21 |
DQ = PYU - PYL |
| 22 |
IF (DV.EQ.0.) THEN |
| 23 |
DV = 1. |
| 24 |
END IF |
| 25 |
|
| 26 |
UMAP(1+3) = DQ/DV |
| 27 |
UMAP(5) = PXL - XL*UMAP(1) |
| 28 |
UMAP(5+1) = PYL - YL*UMAP(1+3) |
| 29 |
UMAP(7) = PXL |
| 30 |
UMAP(7+1) = PYL |
| 31 |
UMAP(9) = PXU |
| 32 |
UMAP(9+1) = PYL |
| 33 |
UMAP(11) = PXU |
| 34 |
UMAP(11+1) = PYU |
| 35 |
UMAP(13) = PXL |
| 36 |
UMAP(13+1) = PYU |
| 37 |
RETURN |
| 38 |
|
| 39 |
END |