Apply fix from Reference-LAPACK PR390, NaN not propagating

This commit is contained in:
Martin Kroeker
2020-02-23 22:40:40 +01:00
committed by GitHub
parent 9e40c080f2
commit 87ac1ceb0b

View File

@@ -80,6 +80,8 @@
IF( V1( 1 ).GE.V2( 1 ) ) THEN
IF( V1( 1 ).NE.ZERO ) THEN
V1( 2 ) = V1( 2 ) + ( V2( 1 ) / V1( 1 ) )**2 * V2( 2 )
ELSE
V1( 2 ) = V1( 2 ) + V2( 2 )
END IF
ELSE
V1( 2 ) = V2( 2 ) + ( V1( 1 ) / V2( 1 ) )**2 * V1( 2 )