File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -63,20 +63,16 @@ DOUBLE PRECISION FUNCTION DROUNDUP_LWORK( LWORK )
63
63
*
64
64
* =====================================================================
65
65
* ..
66
- * .. External Functions ..
67
- DOUBLE PRECISION DLAMCH
68
- EXTERNAL DLAMCH
69
- * ..
70
66
* .. Intrinsic Functions ..
71
- INTRINSIC DIGITS, RADIX
67
+ INTRINSIC DIGITS, RADIX, EPSILON
72
68
* ..
73
69
* .. Executable Statements ..
74
70
* ..
75
71
DROUNDUP_LWORK = LWORK
76
72
*
77
73
IF ( DROUNDUP_LWORK .GE. DBLE (RADIX (0.0D+0 ))** DIGITS (0.0D+0 ) ) THEN
78
74
* If LWORK can't be represented exactly in double precision
79
- DROUNDUP_LWORK = LWORK * ( 1.0D+0 + DLAMCH( ' EPS ' ) )
75
+ DROUNDUP_LWORK = DROUNDUP_LWORK * ( 1.0D+0 + EPSILON ( 0.0D+0 ) )
80
76
ENDIF
81
77
*
82
78
RETURN
Original file line number Diff line number Diff line change @@ -66,20 +66,16 @@ REAL FUNCTION SROUNDUP_LWORK( LWORK )
66
66
*
67
67
* =====================================================================
68
68
* ..
69
- * .. External Functions ..
70
- REAL SLAMCH
71
- EXTERNAL SLAMCH
72
- * ..
73
69
* .. Intrinsic Functions ..
74
- INTRINSIC DIGITS, RADIX
70
+ INTRINSIC DIGITS, RADIX, EPSILON
75
71
* ..
76
72
* .. Executable Statements ..
77
73
* ..
78
74
SROUNDUP_LWORK = LWORK
79
75
*
80
76
IF ( SROUNDUP_LWORK .GE. REAL (RADIX (0.0E+0 ))** DIGITS (0.0E+0 ) ) THEN
81
77
* If LWORK can't be represented exactly in single precision
82
- SROUNDUP_LWORK = LWORK * ( 1.0E+0 + SLAMCH( ' EPS ' ) )
78
+ SROUNDUP_LWORK = SROUNDUP_LWORK * ( 1.0E+0 + EPSILON ( 0.0E+0 ) )
83
79
ENDIF
84
80
*
85
81
RETURN
You can’t perform that action at this time.
0 commit comments