|
各位大佬,我这里有个论文里面的程序求帮忙看一下,我认为红色那一段完全是多余的吧,因为蓝色字段都说明了逻辑变量为假,中间也没有改变他的值,到红色哪里肯定是假的吧,那就直接不用执行了呀SUBROUTINE SINTGR (MIEFUN, A, B, S, EPS, IERR, NMAX)
PARAMETER ( JMAX = 14 )
PARAMETER ( maxdim = 2**JMAX + 2*JMAX + 3 )
INTEGER IERR
LOGICAL LINLOG
DOUBLE PRECISION MIEFUN
DOUBLE PRECISION A, B, S, EPS
DOUBLE PRECISION H, Y(maxdim), OLDS, X, ERR, AL, BL, FACTOR
EXTERNAL MIEFUN
LINLOG =.false.
OLDS = -1.E-30
IF ( EPS .LE. 0.D0 ) THEN
IERR = 3
RETURN
ELSE
IERR = 0
ENDIF
IF ( LINLOG ) THEN
IF ( A .LE. 0.D0 .OR. B .LE. 0.D0 ) THEN
IERR = 3
RETURN
ENDIF
AL = DLOG(A)
BL = DLOG(B)
ELSE
AL = A
BL = B
ENDIF
|
|