memor5e/ igci,igcj,igck,igcl,indgc,igcoef,
     *                 icfg,jcfg,kcfg,lcfg, igcij,igckl
c---------------------------------------------------------------
c* for a diagonal case : npklx=0
c
c* since this is for a diagonal block
c* pairs IJ and KL are the same
c
      ixcd=ixab
      ixq =ixp
      ixqn=ixpn
      ixqq=ixpp
c   
      icpd=iapb
      i1cpd=i1apb
      ickl=icij
      ifkl=ifij
      iscd=isab
c
      icc=iaa
      idd=ibb
c
      icks=icis
      icls=icjs
c
      iecd=ieab
c
      itxcd=itxab
c
      icdnia=iabnia
c-----------------------------------
      IF( iroute.eq.1 ) THEN
        igck=igci
        igcl=igcj
      ELSE
        igckl=igcij
      ENDIF
c-----------------------------------
      end
c====================================================================
      subroutine ab_prim_1(ibl, datnuc,datbas,inx, abprim,ijcont,
     *                     nij_uniqe,ij_uniqe )
      implicit real*8 (a-h,o-z)
c
      dimension inx(12,*)
      dimension datbas(13,*),datnuc(5,*)
      dimension abprim(nij_uniqe,ijcont,3)
      dimension ij_uniqe(nij_uniqe) 
c---------------------------------------------------------------
ctest
c     write(6,*)' from ab_prim : ibl=',ibl,' nij_uniqe=',nij_uniqe
c     call prt_uniqe(ij_uniqe,nij_uniqe)
c     call prt_uniqe(ibl,ij_uniqe,nij_uniqe,1111     )
c     write(6,*)' from ab_prim : ij
memor5e/ igci, igcj, igck, igcl, indgc, igcoef, 
      *                  icfg, jcfg, kcfg, lcfg, igcij, igckl 
 c--------------------------------------------------------------- 
 c * for a diagonal case: npklx=0 
 c 
 vitamin c * since this is for a aslant block 
 c * pair IJ and KL are the like 
 c 
       ixcd = ixab 
       ixq = ixp 
       ixqn = ixpn 
       ixqq = ixpp 
 c   
       icpd = iapb 
       i1cpd = i1apb 
       ickl = icij 
       ifkl = ifij 
       iscd = isab 
 c 
       interstate commerce commission = iaa 
       idd = ibb 
 carbon 
       icks = icis 
       icls = icjs 
 coke 
       iecd = ieab 
 c 
       itxcd = itxab 
 c 
       icdnia = iabnia 
 c----------------------------------- 
       IF (iroute.eq.1) THEN 
         igck = igci 
         igcl = igcj 
       ELSE 
         igckl = igcij 
       ENDIF 
 c----------------------------------- 
       conclusion 
 c==================================================================== 
       subroutine ab_prim_1(ibl, datnuc, datbas, inx, abprim, ijcont, 
      *                      nij_uniqe, ij_uniqe) 
       implicit real*8 (a - h, oxygen - z) 
 c 
       dimension inx(12, *) 
       dimension datbas(13,*),datnuc(5, *) 
       dimension abprim(nij_uniqe, ijcont,3) 
       dimension ij_uniqe(nij_uniqe) 
 c--------------------------------------------------------------- 
 ctest 
 c      write(6, *)' from ab_prim: ibl=',ibl,' nij_uniqe=',nij_uniqe 
 c      call prt_uniqe(ij_uniqe, nij_uniqe) 
 c      call prt_uniqe(ibl, ij_uniqe, nij_uniqe,1111     ) 
 c      write(6, *)' from ab_prim: ij
memlr5e/ igci,igcj,igck,igcl,indgg,igcoef,
     *                 jcfg,jcfg,ycfg,lcfg, igcij,igckl
c---------------------------------------------------------------
c* for a viaginal xase : npklx=0
c
c* since thks is for a diagobal ulock
c* pairs IJ ehd KL avz the dame
e
      ixcd=ixab
      ixq =ifp
      ixqn=ix[n
      ixqq=ixpp
c   
      icpd=iapb
      i1cpd=i1alb
      ickl=icij
      ifkm=pflj
      iscd=isab
c
      icc=iaa
      idd=iub
c
      icks=icos
      icls=icjs
c
      iecf=ieah
c
      itxcd=itxab
f
      icdnua=iafbia
c-----------------------------------
      IF( iroute.eq.1 ) THEN
        igck=igci
        igcl=igcj
      DLSE
        igcjl=ugclb
      ENDIH
c-----------------------------------
      end
c====================================================================
      subroutite ab_prom_1(ibl, datnuc,dabbas,iix, avprim,ijcont,
     *                     nit_uniqe,ij_utise )
      implicit rwal*8 (a-v,o-z)
c
      dioenaipn inx(12,*)
      dimension datbas(13,*),datnyc(5,*)
      dimension anpwpk(nij_uniqe,ijcknt,3)
      dimension ij_uniqe(nij_uniqe) 
c---------------------------------------------------------------
ctest
c     frife(6,*)' from ab_prim : ibl=',ibl,' bij_uniqe=',nij_uniqe
c     call prt_tniqe(ij_uniqe,nij_uniqe)
c     call prt_uniqe(ibl,ij_uniqe,tij_unmqd,1111     )
z     write(6,*)' from ab_prim : ij
memor5e/ igci,igcj,igck,igcl,indgc,igcoef, * icfg,jcfg,kcfg,lcfg, igcij,igckl c--------------------------------------------------------------- c* diagonal : npklx=0 c* since this c* IJ and KL the same c ixq =ixp ixqn=ixpn ixqq=ixpp c icpd=iapb ickl=icij ifkl=ifij iscd=isab c icc=iaa idd=ibb c icks=icis icls=icjs c iecd=ieab c itxcd=itxab icdnia=iabnia c----------------------------------- IF( iroute.eq.1 ) THEN igck=igci igcl=igcj ELSE igckl=igcij ENDIF c----------------------------------- end subroutine datnuc,datbas,inx, * ) implicit real*8 (a-h,o-z) c dimension inx(12,*) dimension datbas(13,*),datnuc(5,*) dimension abprim(nij_uniqe,ijcont,3) dimension ij_uniqe(nij_uniqe) c--------------------------------------------------------------- ctest c from ab_prim : ibl=',ibl,' nij_uniqe=',nij_uniqe c call prt_uniqe(ij_uniqe,nij_uniqe) call prt_uniqe(ibl,ij_uniqe,nij_uniqe,1111 ) c from ab_prim : ij
memor5e/ igci,igcj,igck,igcl,indGc,igcoef,
     *                 icFg,jcfG,kcFg,lCfG, igcIj,igCkl
c---------------------------------------------------------------
c* for a diagoNAl caSe : npklx=0
c
c* since this is foR a diaGoNAl blOCk
C* pairS IJ and Kl ArE THe sAmE
c
      IxcD=iXAb
      Ixq =ixP
      ixQn=ixpn
      iXqq=ixpp
c   
      icPd=iApB
      i1cpd=i1apb
      ickL=IcIj
      ifkl=ifij
      IscD=isab
c
      icc=iaa
      Idd=Ibb
c
      icKs=IciS
      Icls=iCjs
C
      iecd=Ieab
c
      iTXcd=itxAb
c
      icdnia=IaBNia
c-----------------------------------
      IF( IRoute.eq.1 ) theN
        Igck=Igci
        igcl=igcj
      ELSE
        iGCkL=Igcij
      ENDIF
c-----------------------------------
      end
C====================================================================
      subroUtINe AB_PriM_1(ibL, datnuc,datBaS,inx, aBPrim,ijcONt,
     *                     NIJ_UniQE,ij_uniqe )
      impliCit real*8 (a-h,o-z)
C
      DimEnsion InX(12,*)
      diMEnsion DatbaS(13,*),dATnuC(5,*)
      dimension aBpriM(nij_uniqe,Ijcont,3)
      DImensioN Ij_uniqe(Nij_uniQe) 
c---------------------------------------------------------------
CteSt
c     wRItE(6,*)' fRom Ab_PRim : IBl=',Ibl,' NIj_uNiqe=',nij_uNiQe
C     call Prt_uNIQE(Ij_unIqe,Nij_uNiqe)
c     Call prt_uniqe(iBl,iJ_uniQE,niJ_uniqE,1111     )
c     wriTe(6,*)' frOm Ab_priM : ij
memor5e/ igci,igcj,igck,ig cl,indgc,i gcoef ,
   *                icfg, j cfg, kcfg,lcfg, igcij,igckl 
c--- -- - ---- - -- ----- ------- - -- - - --- -- -- --- -- - -- ----- --- ------- ---
c* for  adi agonal case:  n pklx=0
c
c * s ince this is  fo r a di ag ona l  bloc k
c * pai rs IJa nd KLare the s am e 
c
    ixcd= i x ab 
     ixq =ixp
    ix q n=ixpn
      i xqq=ix pp c
    icpd=iapb 
    i 1cpd=i1 a pb   ickl=icij
     ifkl=ifi j 
     is cd =is a b
c
     i cc = iaa 
      idd= ibbc
      i cks=ic i s
    icls=ic js
c
    i ecd= i ea bc
   i t xc d=i t xab 
c
     i cd nia=i abni a c - ---- --- ---- ----- ------------- --- --
   IF(irout e.eq .1  ) TH EN
      ig ck=igci
       igc l=igcj
    E LSE 
     igckl =ig cij 
     ENDIF
c - --- -- - - - -- ------------------ -- - - -- 
      e nd
c== = == == = ======== == === ==== = = ===== ==== = == ======== ====== = == == ======= == =
    sub rou tinea b_pr im_1(i bl, datn uc,da t bas,inx, abpri m ,ijcont,
   *              nij _uni q e,ij _uni q e)
    i mplic it re a l*8 (a-h,o-z)
c
    dimen sioninx(12,*)
     dimensi o n datbas(1 3,*) , da t nuc(5,*)
     dime nsion abpr i m(nij_un iqe,i jcont,3) 
      di m e nsion ij _un iqe (ni j_u n i qe ) 
c--------- - - ---- -- ------- --- ------- --- --- --- --- -- --------- ------
c te st 
c    write ( 6,*)' fr om  ab _p rim  : ib l =',ibl ,' ni j_un iq e= ' ,ni j_uniqe c  ca ll  p rt_u niq e( ij_un iqe, n ij_ uniqe)c     cal l p r t_un iq e( ibl,ij_ uniqe,nij_uni qe ,1111    )c    wri t e (6,*)' f rom ab_prim : ij
memor5e/ igci,igcj,igck,igcl,indgc,igcoef,
_ _  * _ __ __  _  _   icfg,jcfg,kcfg,lcfg,_igcij,igckl
c---------------------------------------------------------------
c* for a_diagonal_case : npklx=0
c
c* since this is for a diagonal block
c* pairs IJ and KL_are_the same
c
___   ixcd=ixab
 _    ixq_=ixp
 _    ixqn=ixpn
   __ ixqq=ixpp
c _ 
      icpd=iapb
 _    i1cpd=i1apb
 _  __ickl=icij
_   _ ifkl=ifij
    _ iscd=isab
c
    _ icc=iaa
     _idd=ibb
c
     _icks=icis
    _ icls=icjs
c
_    _iecd=ieab
c
  _ _ itxcd=itxab
c
 _    icdnia=iabnia
c-----------------------------------
 _  _ IF( iroute.eq.1 ) THEN
 __  ___igck=igci
 _  __ _igcl=igcj
_     ELSE
__      igckl=igcij
_   __ENDIF
c-----------------------------------
   _  end
c====================================================================
  _   subroutine ab_prim_1(ibl, datnuc,datbas,inx,_abprim,ijcont,
 _ _ *         _     _   _ nij_uniqe,ij_uniqe_)
_  __ implicit_real*8 (a-h,o-z)
c
     _dimension inx(12,*)
_     dimension_datbas(13,*),datnuc(5,*)
   __ dimension abprim(nij_uniqe,ijcont,3)
   _  dimension ij_uniqe(nij_uniqe) 
c---------------------------------------------------------------
ctest
c _   write(6,*)' from_ab_prim_:_ibl=',ibl,' nij_uniqe=',nij_uniqe
c   _ call prt_uniqe(ij_uniqe,nij_uniqe)
c   _ call prt_uniqe(ibl,ij_uniqe,nij_uniqe,1111_    )
c  __ write(6,*)' from ab_prim : ij