anchor.diff:        KK=IACT(ICON)
         DO 90 I=1,N
      90 DXNEW(I)=A(I,KK)
  -      TOT=0.0d0
  +      TOT=0.0D0
         K=N
  +      print *, '   k, nact, dxnew =', k, nact, (dxnew(i),i=1,n)
     100 IF (K .GT. NACT) THEN
             SP=0.0d0
             SPABS=0.0d0
  
positive.code:       SUBROUTINE TRSTLP (N,M,A,B,RHO,DX,IFULL,IACT,Z,ZDOTA,VMULTC,
       1  SDIRN,DXNEW,VMULTD,IPRINT)
        IMPLICIT DOUBLE PRECISION (A-H,O-Z)
        DIMENSION A(N,*),B(*),DX(*),IACT(*),Z(N,*),ZDOTA(*),
       1  VMULTC(*),SDIRN(*),DXNEW(*),VMULTD(*)
  C
  
negative.code:   470 VMULTC(K)=DMAX1(0.0d0,TEMP*VMULTC(K)+RATIO*VMULTD(K))
        PRINT *, '  3. VMULTC = ', (VMULTC(I),I=1,M+1)
        IF (MCON .EQ. M) RESMAX=RESOLD+RATIO*(RESMAX-RESOLD)
        PRINT *, ' RESMAX, MCON, M, ICON = ', 
       1    RESMAX, MCON, M, ICON
  C
  C     If the full step is not acceptable then begin another iteration.
  C     Otherwise switch to stage two or end the calculation.
  