Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.3 KiB

C Copyright(C) 1999-2020 National Technology & Engineering Solutions
C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C See packages/seacas/LICENSE for details
C=======================================================================
SUBROUTINE CKNONE (NVAL, ISSEL, VALNAM, *)
C=======================================================================
C --*** CKNONE *** (ETCLIB) Check number of values is zero
C -- Written by Amy Gilkey - revised 12/23/87
C --
C --CKNONE prints an error message if the number of values is zero.
C --
C --Parameters:
C -- NVAL - IN - the value being checked
C -- ISSEL - IN - print none selected error message iff true
C -- VALNAM - IN - the name of the value being checked (plural)
C -- * - return statement if error
LOGICAL ISSEL
CHARACTER*(*) VALNAM
CHARACTER*1024 ERRMSG
IF (NVAL .LE. 0) THEN
IF (ISSEL) THEN
ERRMSG = 'No ' // VALNAM // ' are selected'
CALL PRTERR ('CMDERR', ERRMSG(:LENSTR(ERRMSG)))
ELSE
ERRMSG = 'There are no ' // VALNAM
CALL PRTERR ('CMDERR', ERRMSG(:LENSTR(ERRMSG)))
END IF
RETURN 1
END IF
RETURN
END