      SUBROUTINE eomccsdtq_x2(d_f1,d_i0,d_t1,d_t2,d_t3,d_v2,d_x1,d_x2,d_
     &x3,d_x4,k_f1_offset,k_i0_offset,k_t1_offset,k_t2_offset,k_t3_offse
     &t,k_v2_offset,k_x1_offset,k_x2_offset,k_x3_offset,k_x4_offset)
C     $Id: eomccsdtq_x2.F 19704 2010-10-29 17:43:02Z d3y133 $
C     This is a Fortran77 program generated by Tensor Contraction Engine v.1.0
C     Copyright (c) Battelle & Pacific Northwest National Laboratory (2002)
C     i0 ( p3 p4 h1 h2 )_xv + = -1 * P( 2 ) * Sum ( h9 ) * x ( p3 h9 )_x * i1 ( h9 p4 h1 h2 )_v
C         i1 ( h9 p3 h1 h2 )_v + = 1 * v ( h9 p3 h1 h2 )_v
C         i1 ( h9 p3 h1 h2 )_vt + = -1 * P( 2 ) * Sum ( p5 ) * t ( p5 h1 )_t * i2 ( h9 p3 h2 p5 )_v
C             i2 ( h9 p3 h1 p5 )_v + = 1 * v ( h9 p3 h1 p5 )_v
C             i2 ( h9 p3 h1 p5 )_vt + = -1/2 * Sum ( p6 ) * t ( p6 h1 )_t * v ( h9 p3 p5 p6 )_v
C         i1 ( h9 p3 h1 h2 )_ft + = -1 * Sum ( p8 ) * t ( p3 p8 h1 h2 )_t * i2 ( h9 p8 )_f
C             i2 ( h9 p8 )_f + = 1 * f ( h9 p8 )_f
C             i2 ( h9 p8 )_vt + = 1 * Sum ( h7 p6 ) * t ( p6 h7 )_t * v ( h7 h9 p6 p8 )_v
C         i1 ( h9 p3 h1 h2 )_vt + = 1 * P( 2 ) * Sum ( h6 p5 ) * t ( p3 p5 h1 h6 )_t * i2 ( h6 h9 h2 p5 )_v
C             i2 ( h6 h9 h1 p5 )_v + = 1 * v ( h6 h9 h1 p5 )_v
C             i2 ( h6 h9 h1 p5 )_vt + = -1 * Sum ( p7 ) * t ( p7 h1 )_t * v ( h6 h9 p5 p7 )_v
C         i1 ( h9 p3 h1 h2 )_vt + = 1/2 * Sum ( p5 p6 ) * t ( p5 p6 h1 h2 )_t * v ( h9 p3 p5 p6 )_v
C         i1 ( h9 p3 h1 h2 )_vt + = 1/2 * Sum ( h7 p5 p6 ) * t ( p3 p5 p6 h1 h2 h7 )_t * v ( h7 h9 p5 p6 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = -1 * P( 2 ) * Sum ( p5 ) * x ( p5 h1 )_x * v ( p3 p4 h2 p5 )_v
C     i0 ( p3 p4 h1 h2 )_xf + = -1 * P( 2 ) * Sum ( h8 ) * x ( p3 p4 h1 h8 )_x * i1 ( h8 h2 )_f
C         i1 ( h8 h1 )_f + = 1 * f ( h8 h1 )_f
C         i1 ( h8 h1 )_ft + = 1 * Sum ( p9 ) * t ( p9 h1 )_t * i2 ( h8 p9 )_f
C             i2 ( h8 p9 )_f + = 1 * f ( h8 p9 )_f
C             i2 ( h8 p9 )_vt + = 1 * Sum ( h7 p6 ) * t ( p6 h7 )_t * v ( h7 h8 p6 p9 )_v
C         i1 ( h8 h1 )_vt + = -1 * Sum ( h6 p5 ) * t ( p5 h6 )_t * v ( h6 h8 h1 p5 )_v
C         i1 ( h8 h1 )_vt + = -1/2 * Sum ( h7 p5 p6 ) * t ( p5 p6 h1 h7 )_t * v ( h7 h8 p5 p6 )_v
C     i0 ( p3 p4 h1 h2 )_xf + = 1 * P( 2 ) * Sum ( p8 ) * x ( p3 p8 h1 h2 )_x * i1 ( p4 p8 )_f
C         i1 ( p3 p8 )_f + = 1 * f ( p3 p8 )_f
C         i1 ( p3 p8 )_vt + = 1 * Sum ( h6 p5 ) * t ( p5 h6 )_t * v ( h6 p3 p5 p8 )_v
C         i1 ( p3 p8 )_vt + = 1/2 * Sum ( h6 h7 p5 ) * t ( p3 p5 h6 h7 )_t * v ( h6 h7 p5 p8 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = 1/2 * Sum ( h10 h9 ) * x ( p3 p4 h9 h10 )_x * i1 ( h9 h10 h1 h2 )_v
C         i1 ( h9 h10 h1 h2 )_v + = 1 * v ( h9 h10 h1 h2 )_v
C         i1 ( h9 h10 h1 h2 )_vt + = -1 * P( 2 ) * Sum ( p5 ) * t ( p5 h1 )_t * i2 ( h9 h10 h2 p5 )_v
C             i2 ( h9 h10 h1 p5 )_v + = 1 * v ( h9 h10 h1 p5 )_v
C             i2 ( h9 h10 h1 p5 )_vt + = -1/2 * Sum ( p6 ) * t ( p6 h1 )_t * v ( h9 h10 p5 p6 )_v
C         i1 ( h9 h10 h1 h2 )_vt + = 1/2 * Sum ( p5 p6 ) * t ( p5 p6 h1 h2 )_t * v ( h9 h10 p5 p6 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = -1 * P( 4 ) * Sum ( p8 h7 ) * x ( p3 p8 h1 h7 )_x * i1 ( h7 p4 h2 p8 )_v
C         i1 ( h7 p3 h1 p8 )_v + = 1 * v ( h7 p3 h1 p8 )_v
C         i1 ( h7 p3 h1 p8 )_vt + = 1 * Sum ( p5 ) * t ( p5 h1 )_t * v ( h7 p3 p5 p8 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = 1/2 * Sum ( p6 p5 ) * x ( p5 p6 h1 h2 )_x * v ( p3 p4 p5 p6 )_v
C     i0 ( p3 p4 h1 h2 )_xf + = 1 * Sum ( p9 h8 ) * x ( p3 p4 p9 h1 h2 h8 )_x * i1 ( h8 p9 )_f
C         i1 ( h8 p9 )_f + = 1 * f ( h8 p9 )_f
C         i1 ( h8 p9 )_vt + = 1 * Sum ( h6 p5 ) * t ( p5 h6 )_t * v ( h6 h8 p5 p9 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = -1/2 * P( 2 ) * Sum ( p9 h10 h8 ) * x ( p3 p4 p9 h1 h8 h10 )_x * i1 ( h8 h10 h2 p9 )_v
C         i1 ( h8 h10 h1 p9 )_v + = 1 * v ( h8 h10 h1 p9 )_v
C         i1 ( h8 h10 h1 p9 )_vt + = 1 * Sum ( p5 ) * t ( p5 h1 )_t * v ( h8 h10 p5 p9 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = -1/2 * P( 2 ) * Sum ( p7 p6 h5 ) * x ( p3 p6 p7 h1 h2 h5 )_x * v ( h5 p4 p6 p7 )_v
C     i0 ( p3 p4 h1 h2 )_xv + = 1/4 * Sum ( p8 p7 h6 h5 ) * x ( p3 p4 p7 p8 h1 h2 h5 h6 )_x * v ( h5 h6 p7 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = -1 * P( 2 ) * Sum ( h9 ) * t ( p3 h9 )_t * i1 ( h9 p4 h1 h2 )_vx
C         i1 ( h9 p3 h1 h2 )_vx + = 1 * Sum ( h10 ) * x ( p3 h10 )_x * i2 ( h9 h10 h1 h2 )_v
C             i2 ( h9 h10 h1 h2 )_v + = -1 * v ( h9 h10 h1 h2 )_v
C             i2 ( h9 h10 h1 h2 )_vt + = 1 * P( 2 ) * Sum ( p6 ) * t ( p6 h1 )_t * i3 ( h9 h10 h2 p6 )_v
C                 i3 ( h9 h10 h1 p6 )_v + = 1 * v ( h9 h10 h1 p6 )_v
C                 i3 ( h9 h10 h1 p6 )_vt + = -1/2 * Sum ( p7 ) * t ( p7 h1 )_t * v ( h9 h10 p6 p7 )_v
C             i2 ( h9 h10 h1 h2 )_vt + = -1/2 * Sum ( p5 p6 ) * t ( p5 p6 h1 h2 )_t * v ( h9 h10 p5 p6 )_v
C         i1 ( h9 p3 h1 h2 )_vx + = -1 * P( 2 ) * Sum ( p6 ) * x ( p6 h1 )_x * v ( h9 p3 h2 p6 )_v
C         i1 ( h9 p3 h1 h2 )_fx + = -1 * Sum ( p5 ) * x ( p3 p5 h1 h2 )_x * i2 ( h9 p5 )_f
C             i2 ( h9 p5 )_f + = 1 * f ( h9 p5 )_f
C             i2 ( h9 p5 )_vt + = -1 * Sum ( h7 p6 ) * t ( p6 h7 )_t * v ( h7 h9 p5 p6 )_v
C         i1 ( h9 p3 h1 h2 )_vx + = 1 * P( 2 ) * Sum ( h8 p5 ) * x ( p3 p5 h1 h8 )_x * i2 ( h8 h9 h2 p5 )_v
C             i2 ( h8 h9 h1 p5 )_v + = 1 * v ( h8 h9 h1 p5 )_v
C             i2 ( h8 h9 h1 p5 )_vt + = -1 * Sum ( p6 ) * t ( p6 h1 )_t * v ( h8 h9 p5 p6 )_v
C         i1 ( h9 p3 h1 h2 )_vx + = 1/2 * Sum ( p6 p7 ) * x ( p6 p7 h1 h2 )_x * v ( h9 p3 p6 p7 )_v
C         i1 ( h9 p3 h1 h2 )_vx + = 1/2 * Sum ( h6 p7 p8 ) * x ( p3 p7 p8 h1 h2 h6 )_x * v ( h6 h9 p7 p8 )_v
C         i1 ( h9 p3 h1 h2 )_vxt + = 1 * Sum ( h6 ) * t ( p3 h6 )_t * i2 ( h6 h9 h1 h2 )_vx
C             i2 ( h6 h9 h1 h2 )_vx + = -1/2 * P( 2 ) * Sum ( p7 ) * x ( p7 h1 )_x * v ( h6 h9 h2 p7 )_v
C             i2 ( h6 h9 h1 h2 )_vx + = 1/4 * Sum ( p7 p8 ) * x ( p7 p8 h1 h2 )_x * v ( h6 h9 p7 p8 )_v
C             i2 ( h6 h9 h1 h2 )_vxt + = -1/2 * P( 2 ) * Sum ( p7 ) * t ( p7 h1 )_t * i3 ( h6 h9 h2 p7 )_vx
C                 i3 ( h6 h9 h1 p7 )_vx + = -1 * Sum ( p8 ) * x ( p8 h1 )_x * v ( h6 h9 p7 p8 )_v
C         i1 ( h9 p3 h1 h2 )_vxt + = -1 * P( 2 ) * Sum ( p6 ) * t ( p6 h1 )_t * i2 ( h9 p3 h2 p6 )_vx
C             i2 ( h9 p3 h1 p6 )_vx + = -1 * Sum ( p7 ) * x ( p7 h1 )_x * v ( h9 p3 p6 p7 )_v
C         i1 ( h9 p3 h1 h2 )_vxt + = -1 * Sum ( p5 ) * t ( p3 p5 h1 h2 )_t * i2 ( h9 p5 )_vx
C             i2 ( h9 p5 )_vx + = -1 * Sum ( h7 p8 ) * x ( p8 h7 )_x * v ( h7 h9 p5 p8 )_v
C         i1 ( h9 p3 h1 h2 )_vxt + = -1 * P( 2 ) * Sum ( h6 p5 ) * t ( p3 p5 h1 h6 )_t * i2 ( h6 h9 h2 p5 )_vx
C             i2 ( h6 h9 h1 p5 )_vx + = 1 * Sum ( p8 ) * x ( p8 h1 )_x * v ( h6 h9 p5 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = -1 * P( 2 ) * Sum ( p5 ) * t ( p5 h1 )_t * i1 ( p3 p4 h2 p5 )_vx
C         i1 ( p3 p4 h1 p5 )_vx + = -1 * Sum ( p6 ) * x ( p6 h1 )_x * v ( p3 p4 p5 p6 )_v
C     i0 ( p3 p4 h1 h2 )_fxt + = -1 * P( 2 ) * Sum ( h5 ) * t ( p3 p4 h1 h5 )_t * i1 ( h5 h2 )_fx
C         i1 ( h5 h1 )_fx + = 1 * Sum ( p9 ) * x ( p9 h1 )_x * i2 ( h5 p9 )_f
C             i2 ( h5 p9 )_f + = 1 * f ( h5 p9 )_f
C             i2 ( h5 p9 )_vt + = -1 * Sum ( h7 p6 ) * t ( p6 h7 )_t * v ( h5 h7 p6 p9 )_v
C         i1 ( h5 h1 )_vx + = 1 * Sum ( h6 p7 ) * x ( p7 h6 )_x * v ( h5 h6 h1 p7 )_v
C         i1 ( h5 h1 )_vx + = 1/2 * Sum ( h6 p7 p8 ) * x ( p7 p8 h1 h6 )_x * v ( h5 h6 p7 p8 )_v
C         i1 ( h5 h1 )_vxt + = 1 * Sum ( p6 ) * t ( p6 h1 )_t * i2 ( h5 p6 )_vx
C             i2 ( h5 p6 )_vx + = 1 * Sum ( h7 p8 ) * x ( p8 h7 )_x * v ( h5 h7 p6 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = 1 * Sum ( h5 h6 ) * t ( p3 p4 h5 h6 )_t * i1 ( h5 h6 h1 h2 )_vx
C         i1 ( h5 h6 h1 h2 )_vx + = -1/2 * P( 2 ) * Sum ( p7 ) * x ( p7 h1 )_x * v ( h5 h6 h2 p7 )_v
C         i1 ( h5 h6 h1 h2 )_vx + = 1/4 * Sum ( p7 p8 ) * x ( p7 p8 h1 h2 )_x * v ( h5 h6 p7 p8 )_v
C         i1 ( h5 h6 h1 h2 )_vxt + = -1/2 * P( 2 ) * Sum ( p7 ) * t ( p7 h1 )_t * i2 ( h5 h6 h2 p7 )_vx
C             i2 ( h5 h6 h1 p7 )_vx + = -1 * Sum ( p8 ) * x ( p8 h1 )_x * v ( h5 h6 p7 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = 1 * P( 2 ) * Sum ( p5 ) * t ( p3 p5 h1 h2 )_t * i1 ( p4 p5 )_vx
C         i1 ( p3 p5 )_vx + = -1 * Sum ( h6 p7 ) * x ( p7 h6 )_x * v ( h6 p3 p5 p7 )_v
C         i1 ( p3 p5 )_vx + = -1/2 * Sum ( h6 h7 p8 ) * x ( p3 p8 h6 h7 )_x * v ( h6 h7 p5 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = -1 * P( 4 ) * Sum ( h6 p5 ) * t ( p3 p5 h1 h6 )_t * i1 ( h6 p4 h2 p5 )_vx
C         i1 ( h6 p3 h1 p5 )_vx + = -1 * Sum ( p7 ) * x ( p7 h1 )_x * v ( h6 p3 p5 p7 )_v
C         i1 ( h6 p3 h1 p5 )_vx + = -1 * Sum ( h7 p8 ) * x ( p3 p8 h1 h7 )_x * v ( h6 h7 p5 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = 1 * Sum ( h6 p5 ) * t ( p3 p4 p5 h1 h2 h6 )_t * i1 ( h6 p5 )_vx
C         i1 ( h6 p5 )_vx + = 1 * Sum ( h7 p8 ) * x ( p8 h7 )_x * v ( h6 h7 p5 p8 )_v
C     i0 ( p3 p4 h1 h2 )_vxt + = -1/2 * P( 2 ) * Sum ( h6 h7 p5 ) * t ( p3 p4 p5 h1 h6 h7 )_t * i1 ( h6 h7 h2 p5 )_vx
C         i1 ( h6 h7 h1 p5 )_vx + = -1 * Sum ( p8 ) * x ( p8 h1 )_x * v ( h6 h7 p5 p8 )_v
      IMPLICIT NONE
#include "global.fh"
#include "mafdecls.fh"
#include "util.fh"
#include "errquit.fh"
#include "tce.fh"
      INTEGER d_i0
      INTEGER k_i0_offset
      INTEGER d_x1
      INTEGER k_x1_offset
      INTEGER d_i1
      INTEGER k_i1_offset
      INTEGER d_v2
      INTEGER k_v2_offset
      INTEGER d_x2
      INTEGER k_x2_offset
      INTEGER d_x3
      INTEGER k_x3_offset
      INTEGER d_x4
      INTEGER k_x4_offset
      INTEGER d_t1
      INTEGER k_t1_offset
      INTEGER d_t2
      INTEGER k_t2_offset
      INTEGER d_t3
      INTEGER k_t3_offset
      INTEGER l_i1_offset
      INTEGER size_i1
      INTEGER d_i2
      INTEGER k_i2_offset
      INTEGER l_i2_offset
      INTEGER size_i2
      INTEGER d_f1
      INTEGER k_f1_offset
      INTEGER d_i3
      INTEGER k_i3_offset
      INTEGER l_i3_offset
      INTEGER size_i3
      CHARACTER*255 filename
c#if !defined(CCSDTQ)
c      CALL ERRQUIT('CCSDTQ not compiled',0,CAPMIS_ERR)
c      RETURN
c      END
c#else
      CALL OFFSET_eomccsdtq_x2_1_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_1_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_1_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL OFFSET_eomccsdtq_x2_1_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_1_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_1_2_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_1_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_i
     &2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_1_2(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1_
     &offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_1_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_1_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_1_3_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_1_3_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_i
     &2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_1_3(d_t2,k_t2_offset,d_i2,k_i2_offset,d_i1,k_i1_
     &offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_1_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_1_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_1_4_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_1_4_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_i
     &2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_1_4(d_t2,k_t2_offset,d_i2,k_i2_offset,d_i1,k_i1_
     &offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_1_5(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL eomccsdtq_x2_1_6(d_t3,k_t3_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_1(d_x1,k_x1_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_2(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i0,k_i0_of
     &fset)
      CALL OFFSET_eomccsdtq_x2_3_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_3_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_3_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL OFFSET_eomccsdtq_x2_3_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_3_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_3_2_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_3_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_i
     &2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_3_2(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1_
     &offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_3_3(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL eomccsdtq_x2_3_4(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_3(d_x2,k_x2_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_4_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_4_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_4_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL eomccsdtq_x2_4_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL eomccsdtq_x2_4_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_4(d_x2,k_x2_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_5_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_5_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_5_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL OFFSET_eomccsdtq_x2_5_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_5_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_5_2_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_5_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_i
     &2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_5_2(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1_
     &offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_5_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_5(d_x2,k_x2_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_6_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_6_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_6_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL eomccsdtq_x2_6_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_6(d_x2,k_x2_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_7(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i0,k_i0_of
     &fset)
      CALL OFFSET_eomccsdtq_x2_8_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_8_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_8_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL eomccsdtq_x2_8_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_8(d_x3,k_x3_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_9_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_9_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_9_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL eomccsdtq_x2_9_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i1_
     &offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_9(d_x3,k_x3_offset,d_i1,k_i1_offset,d_i0,k_i0_of
     &fset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_10(d_x3,k_x3_offset,d_v2,k_v2_offset,d_i0,k_i0_o
     &ffset)
      CALL eomccsdtq_x2_11(d_x4,k_x4_offset,d_v2,k_v2_offset,d_i0,k_i0_o
     &ffset)
      CALL OFFSET_eomccsdtq_x2_12_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_12_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL OFFSET_eomccsdtq_x2_12_1_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_1_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_1_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL OFFSET_eomccsdtq_x2_12_1_2_1(l_i3_offset,k_i3_offset,size_i3)
      CALL TCE_FILENAME('eomccsdtq_x2_12_1_2_1_i3',filename)
      CALL CREATEFILE(filename,d_i3,size_i3)
      CALL eomccsdtq_x2_12_1_2_1(d_v2,k_v2_offset,d_i3,k_i3_offset)
      CALL eomccsdtq_x2_12_1_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i3,
     &k_i3_offset)
      CALL RECONCILEFILE(d_i3,size_i3)
      CALL eomccsdtq_x2_12_1_2(d_t1,k_t1_offset,d_i3,k_i3_offset,d_i2,k_
     &i2_offset)
      CALL DELETEFILE(d_i3)
      IF (.not.MA_POP_STACK(l_i3_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_12_1_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_1(d_x1,k_x1_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_12_2(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL OFFSET_eomccsdtq_x2_12_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_3_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_12_3_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_3(d_x2,k_x2_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_12_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_4_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_12_4_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_4(d_x2,k_x2_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_12_5(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL eomccsdtq_x2_12_6(d_x3,k_x3_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL OFFSET_eomccsdtq_x2_12_7_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_7_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_7_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL eomccsdtq_x2_12_7_2(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL OFFSET_eomccsdtq_x2_12_7_3_1(l_i3_offset,k_i3_offset,size_i3)
      CALL TCE_FILENAME('eomccsdtq_x2_12_7_3_1_i3',filename)
      CALL CREATEFILE(filename,d_i3,size_i3)
      CALL eomccsdtq_x2_12_7_3_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i3,
     &k_i3_offset)
      CALL RECONCILEFILE(d_i3,size_i3)
      CALL eomccsdtq_x2_12_7_3(d_t1,k_t1_offset,d_i3,k_i3_offset,d_i2,k_
     &i2_offset)
      CALL DELETEFILE(d_i3)
      IF (.not.MA_POP_STACK(l_i3_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_7(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_12_8_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_8_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_8_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_8(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_12_9_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_9_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_9_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_9(d_t2,k_t2_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_12_10_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_12_10_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_12_10_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i2,k
     &_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_12_10(d_t2,k_t2_offset,d_i2,k_i2_offset,d_i1,k_i
     &1_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_12(d_t1,k_t1_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_13_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_13_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_13_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_13(d_t1,k_t1_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_14_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_14_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL OFFSET_eomccsdtq_x2_14_1_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_14_1_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_14_1_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL eomccsdtq_x2_14_1_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_14_1(d_x1,k_x1_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL eomccsdtq_x2_14_2(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL eomccsdtq_x2_14_3(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL OFFSET_eomccsdtq_x2_14_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_14_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_14_4_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_14_4(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_14(d_t2,k_t2_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_15_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_15_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_15_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL eomccsdtq_x2_15_2(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL OFFSET_eomccsdtq_x2_15_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('eomccsdtq_x2_15_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL eomccsdtq_x2_15_3_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i2,k_
     &i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL eomccsdtq_x2_15_3(d_t1,k_t1_offset,d_i2,k_i2_offset,d_i1,k_i1
     &_offset)
      CALL DELETEFILE(d_i2)
      IF (.not.MA_POP_STACK(l_i2_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_15(d_t2,k_t2_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_16_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_16_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_16_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL eomccsdtq_x2_16_2(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_16(d_t2,k_t2_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_17_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_17_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_17_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL eomccsdtq_x2_17_2(d_x2,k_x2_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_17(d_t2,k_t2_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_18_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_18_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_18_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_18(d_t3,k_t3_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      CALL OFFSET_eomccsdtq_x2_19_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('eomccsdtq_x2_19_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL eomccsdtq_x2_19_1(d_x1,k_x1_offset,d_v2,k_v2_offset,d_i1,k_i1
     &_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL eomccsdtq_x2_19(d_t3,k_t3_offset,d_i1,k_i1_offset,d_i0,k_i0_o
     &ffset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('eomccsdtq_x2',-1
     &,MA_ERR)
      RETURN
      END
c#endif
