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.
29 lines
965 B
29 lines
965 B
2 years ago
|
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
|
||
|
|
||
|
LOGICAL FUNCTION SHRUNK (RATIO, NROW)
|
||
|
C***********************************************************************
|
||
|
|
||
|
C FUNCTION SHRUNK = LOGICAL FUNCTION THAT RETURNS TRUE IF THE ELEMENT
|
||
|
C SIZE IS DIMINISHING WITH ROW DEPTH
|
||
|
|
||
|
C***********************************************************************
|
||
|
|
||
|
DATA TOLER1 /.85/, TOLER2 /.75/, TOLER3 /.6/
|
||
|
|
||
|
IF ((NROW .GE. 3) .AND. (RATIO .LT. TOLER1)) THEN
|
||
|
SHRUNK = .TRUE.
|
||
|
ELSEIF ((NROW .GE. 2) .AND. (RATIO .LT. TOLER2)) THEN
|
||
|
SHRUNK = .TRUE.
|
||
|
ELSEIF ((NROW .GE. 1) .AND. (RATIO .LT. TOLER3)) THEN
|
||
|
SHRUNK = .TRUE.
|
||
|
ELSE
|
||
|
SHRUNK = .FALSE.
|
||
|
ENDIF
|
||
|
|
||
|
RETURN
|
||
|
END
|