| 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 ADJCON (DELCOK) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** ADJCON *** (DETOUR) Adjust the contour parameters |
| 12 |
C -- Written by Amy Gilkey - revised 07/10/87 |
| 13 |
C -- |
| 14 |
C --ADJCON adjusts the contour parameters to be consistent with each |
| 15 |
C --other. If CINTOK is false and the parameter DELCOK is true, the |
| 16 |
C --contour maximum (CMAX) is set; if DELCOK is false, the contour |
| 17 |
C --interval (DELC) is set. If CINTOK is true, the contour minimum and |
| 18 |
C --maximum (CMIN and CMAX) and interval (DELC) are set. |
| 19 |
C -- |
| 20 |
C --Parameters: |
| 21 |
C -- DELCOK - IN - true if CMAX is to be set, false if DELC is to be set |
| 22 |
C -- |
| 23 |
C --Common Variables: |
| 24 |
C -- Uses CINTOK, LINCON, NCNTR, CMIN, CMAX, DELC, CINTV of /CNTR/ |
| 25 |
C -- Sets CMIN, CMAX, DELC of /CNTR/ |
| 26 |
|
| 27 |
include 'cntr.blk' |
| 28 |
|
| 29 |
LOGICAL DELCOK |
| 30 |
|
| 31 |
IF (LINCON) THEN |
| 32 |
NC = NCNTR |
| 33 |
ELSE |
| 34 |
NC = NCNTR+1 |
| 35 |
END IF |
| 36 |
|
| 37 |
IF (.NOT. CINTOK) THEN |
| 38 |
IF (DELCOK) THEN |
| 39 |
CMAX = CMIN + (NC-1) * DELC |
| 40 |
ELSE |
| 41 |
DELC = CMAX - CMIN |
| 42 |
IF (NC .GT. 1) DELC = (CMAX - CMIN) / (NC-1) |
| 43 |
END IF |
| 44 |
|
| 45 |
ELSE |
| 46 |
CMIN = CINTV(NC) |
| 47 |
CMAX = CINTV(NC) |
| 48 |
DELC = CMAX - CMIN |
| 49 |
IF (NC .GT. 1) DELC = (CMAX - CMIN) / (NC-1) |
| 50 |
END IF |
| 51 |
|
| 52 |
RETURN |
| 53 |
END |