summaryrefslogtreecommitdiff
path: root/SRC/dtprfb.f
diff options
context:
space:
mode:
Diffstat (limited to 'SRC/dtprfb.f')
-rw-r--r--SRC/dtprfb.f16
1 files changed, 15 insertions, 1 deletions
diff --git a/SRC/dtprfb.f b/SRC/dtprfb.f
index 6b892176..9b0f4971 100644
--- a/SRC/dtprfb.f
+++ b/SRC/dtprfb.f
@@ -273,7 +273,7 @@
* ..
* .. Local Scalars ..
INTEGER I, J, MP, NP, KP
- LOGICAL LEFT, FORWARD, COLUMN, RIGHT, BACKWARD, ROW
+ LOGICAL LEFT, LQUERY, FORWARD, COLUMN, RIGHT, BACKWARD, ROW
* ..
* .. External Functions ..
LOGICAL LSAME
@@ -284,6 +284,7 @@
* ..
* .. Executable Statements ..
*
+ LQUERY = ( LDWORK.EQ.-1 )
* Quick return if possible
*
IF( M.LE.0 .OR. N.LE.0 .OR. K.LE.0 .OR. L.LT.0 ) RETURN
@@ -320,6 +321,19 @@
FORWARD = .FALSE.
BACKWARD = .FALSE.
END IF
+* ---------------------------------------------------------------------------
+*
+* Workspace Query
+*
+ IF( LQUERY .AND. LEFT ) THEN
+ LDWORK=MAX(1,K)
+ ELSE IF ( LQUERY .AND. RIGHT ) THEN
+ LDWORK=MAX(1,M)
+ END IF
+
+ IF( LQUERY ) THEN
+ RETURN
+ END IF
*
* ---------------------------------------------------------------------------
*