| 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 CKNONE (NVAL, ISSEL, VALNAM, *) |
| 9 |
C======================================================================= |
| 10 |
|
| 11 |
C --*** CKNONE *** (ETCLIB) Check number of values is zero |
| 12 |
C -- Written by Amy Gilkey - revised 12/23/87 |
| 13 |
C -- |
| 14 |
C --CKNONE prints an error message if the number of values is zero. |
| 15 |
C -- |
| 16 |
C --Parameters: |
| 17 |
C -- NVAL - IN - the value being checked |
| 18 |
C -- ISSEL - IN - print none selected error message iff true |
| 19 |
C -- VALNAM - IN - the name of the value being checked (plural) |
| 20 |
C -- * - return statement if error |
| 21 |
|
| 22 |
LOGICAL ISSEL |
| 23 |
CHARACTER*(*) VALNAM |
| 24 |
|
| 25 |
CHARACTER*1024 ERRMSG |
| 26 |
|
| 27 |
IF (NVAL .LE. 0) THEN |
| 28 |
IF (ISSEL) THEN |
| 29 |
ERRMSG = 'No ' // VALNAM // ' are selected' |
| 30 |
CALL PRTERR ('CMDERR', ERRMSG(:LENSTR(ERRMSG))) |
| 31 |
ELSE |
| 32 |
ERRMSG = 'There are no ' // VALNAM |
| 33 |
CALL PRTERR ('CMDERR', ERRMSG(:LENSTR(ERRMSG))) |
| 34 |
END IF |
| 35 |
RETURN 1 |
| 36 |
END IF |
| 37 |
|
| 38 |
RETURN |
| 39 |
END |