      SUBROUTINE ccsdtq_lambda3(d_f1,d_i0,d_t1,d_t2,d_t3,d_v2,d_y1,d_y2,
     &d_y3,d_y4,k_f1_offset,k_i0_offset,k_t1_offset,k_t2_offset,k_t3_off
     &set,k_v2_offset,k_y1_offset,k_y2_offset,k_y3_offset,k_y4_offset)
C     $Id: ccsdtq_lambda3.F 19700 2010-10-29 17:11:57Z 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 ( h4 h5 h6 p1 p2 p3 )_yv + = 1 * P( 9 ) * y ( h4 p1 )_y * v ( h5 h6 p2 p3 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yf + = 1 * P( 9 ) * y ( h4 h5 p1 p2 )_y * i1 ( h6 p3 )_f
C         i1 ( h4 p1 )_f + = 1 * f ( h4 p1 )_f
C         i1 ( h4 p1 )_vt + = 1 * Sum ( h8 p7 ) * t ( p7 h8 )_t * v ( h4 h8 p1 p7 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = -1 * P( 9 ) * Sum ( h9 ) * y ( h4 h9 p1 p2 )_y * i1 ( h5 h6 h9 p3 )_v
C         i1 ( h4 h5 h9 p1 )_v + = 1 * v ( h4 h5 h9 p1 )_v
C         i1 ( h4 h5 h9 p1 )_vt + = -1 * Sum ( p7 ) * t ( p7 h9 )_t * v ( h4 h5 p1 p7 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = -1 * P( 9 ) * Sum ( p7 ) * y ( h4 h5 p1 p7 )_y * v ( h6 p7 p2 p3 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yf + = -1 * P( 3 ) * Sum ( h11 ) * y ( h4 h5 h11 p1 p2 p3 )_y * i1 ( h6 h11 )_f
C         i1 ( h4 h11 )_f + = 1 * f ( h4 h11 )_f
C         i1 ( h4 h11 )_ft + = 1 * Sum ( p7 ) * t ( p7 h11 )_t * i2 ( h4 p7 )_f
C             i2 ( h4 p7 )_f + = 1 * f ( h4 p7 )_f
C             i2 ( h4 p7 )_vt + = 1 * Sum ( h10 p9 ) * t ( p9 h10 )_t * v ( h4 h10 p7 p9 )_v
C         i1 ( h4 h11 )_vt + = 1 * Sum ( h8 p7 ) * t ( p7 h8 )_t * v ( h4 h8 h11 p7 )_v
C         i1 ( h4 h11 )_vt + = -1/2 * Sum ( h10 p7 p8 ) * t ( p7 p8 h10 h11 )_t * v ( h4 h10 p7 p8 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yf + = 1 * P( 3 ) * Sum ( p12 ) * y ( h4 h5 h6 p1 p2 p12 )_y * i1 ( p12 p3 )_f
C         i1 ( p12 p1 )_f + = 1 * f ( p12 p1 )_f
C         i1 ( p12 p1 )_vt + = -1 * Sum ( h8 p7 ) * t ( p7 h8 )_t * v ( h8 p12 p1 p7 )_v
C         i1 ( p12 p1 )_vt + = 1/2 * Sum ( h9 h10 p8 ) * t ( p8 p12 h9 h10 )_t * v ( h9 h10 p1 p8 )_v
C         i1 ( p12 p1 )_vtt + = -1 * Sum ( h8 ) * t ( p12 h8 )_t * i2 ( h8 p1 )_vt
C             i2 ( h8 p1 )_vt + = 1 * Sum ( h10 p9 ) * t ( p9 h10 )_t * v ( h8 h10 p1 p9 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = 1/2 * P( 3 ) * Sum ( h12 h11 ) * y ( h4 h11 h12 p1 p2 p3 )_y * i1 ( h5 h6 h11 h12 )_v
C         i1 ( h4 h5 h11 h12 )_v + = 1 * v ( h4 h5 h11 h12 )_v
C         i1 ( h4 h5 h11 h12 )_vt + = -2 * Sum ( p7 ) * t ( p7 h11 )_t * i2 ( h4 h5 h12 p7 )_v
C             i2 ( h4 h5 h12 p7 )_v + = 1 * v ( h4 h5 h12 p7 )_v
C             i2 ( h4 h5 h12 p7 )_vt + = -1/2 * Sum ( p9 ) * t ( p9 h12 )_t * v ( h4 h5 p7 p9 )_v
C         i1 ( h4 h5 h11 h12 )_vt + = 1/2 * Sum ( p7 p8 ) * t ( p7 p8 h11 h12 )_t * v ( h4 h5 p7 p8 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = -1 * P( 9 ) * Sum ( h12 p9 ) * y ( h4 h5 h12 p1 p2 p9 )_y * i1 ( h6 p9 h12 p3 )_v
C         i1 ( h4 p9 h12 p1 )_v + = 1 * v ( h4 p9 h12 p1 )_v
C         i1 ( h4 p9 h12 p1 )_vt + = -1 * Sum ( p7 ) * t ( p7 h12 )_t * v ( h4 p9 p1 p7 )_v
C         i1 ( h4 p9 h12 p1 )_vt + = -1 * Sum ( h10 p8 ) * t ( p8 p9 h10 h12 )_t * v ( h4 h10 p1 p8 )_v
C         i1 ( h4 p9 h12 p1 )_vtt + = 1 * Sum ( h10 ) * t ( p9 h10 )_t * i2 ( h4 h10 h12 p1 )_vt
C             i2 ( h4 h10 h12 p1 )_vt + = 1 * Sum ( p7 ) * t ( p7 h12 )_t * v ( h4 h10 p1 p7 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = 1/2 * P( 3 ) * Sum ( p8 p7 ) * y ( h4 h5 h6 p1 p7 p8 )_y * v ( p7 p8 p2 p3 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yf + = 1 * Sum ( h14 p15 ) * y ( h4 h5 h6 h14 p1 p2 p3 p15 )_y * i1 ( p15 h14 )_f
C         i1 ( p15 h14 )_f + = 1 * f ( p15 h14 )_f
C         i1 ( p15 h14 )_ft + = -1 * Sum ( h13 ) * t ( p15 h13 )_t * i2 ( h13 h14 )_f
C             i2 ( h13 h14 )_f + = 1 * f ( h13 h14 )_f
C             i2 ( h13 h14 )_ft + = 1 * Sum ( p7 ) * t ( p7 h14 )_t * i3 ( h13 p7 )_f
C                 i3 ( h13 p7 )_f + = 1 * f ( h13 p7 )_f
C                 i3 ( h13 p7 )_vt + = -1 * Sum ( h12 p11 ) * t ( p11 h12 )_t * v ( h12 h13 p7 p11 )_v
C             i2 ( h13 h14 )_vt + = -1 * Sum ( h10 p9 ) * t ( p9 h10 )_t * v ( h10 h13 h14 p9 )_v
C             i2 ( h13 h14 )_vt + = 1/2 * Sum ( h10 p7 p8 ) * t ( p7 p8 h10 h14 )_t * v ( h10 h13 p7 p8 )_v
C         i1 ( p15 h14 )_ft + = 1 * Sum ( p11 ) * t ( p11 h14 )_t * i2 ( p15 p11 )_f
C             i2 ( p15 p11 )_f + = 1 * f ( p15 p11 )_f
C             i2 ( p15 p11 )_vt + = 1 * Sum ( h10 p9 ) * t ( p9 h10 )_t * v ( h10 p15 p9 p11 )_v
C             i2 ( p15 p11 )_vt + = -1/2 * Sum ( h9 h10 p8 ) * t ( p8 p15 h9 h10 )_t * v ( h9 h10 p8 p11 )_v
C         i1 ( p15 h14 )_vt + = -1 * Sum ( h8 p7 ) * t ( p7 h8 )_t * v ( h8 p15 h14 p7 )_v
C         i1 ( p15 h14 )_ft + = 1 * Sum ( h9 p8 ) * t ( p8 p15 h9 h14 )_t * i2 ( h9 p8 )_f
C             i2 ( h9 p8 )_f + = 1 * f ( h9 p8 )_f
C             i2 ( h9 p8 )_vt + = 1 * Sum ( h12 p11 ) * t ( p11 h12 )_t * v ( h9 h12 p8 p11 )_v
C         i1 ( p15 h14 )_vt + = 1/2 * Sum ( h9 h10 p8 ) * t ( p8 p15 h9 h10 )_t * v ( h9 h10 h14 p8 )_v
C         i1 ( p15 h14 )_vt + = 1/2 * Sum ( h10 p7 p8 ) * t ( p7 p8 h10 h14 )_t * v ( h10 p15 p7 p8 )_v
C         i1 ( p15 h14 )_vt + = 1/4 * Sum ( h11 h12 p8 p9 ) * t ( p8 p9 p15 h11 h12 h14 )_t * v ( h11 h12 p8 p9 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = 1/2 * P( 3 ) * Sum ( h13 h16 p15 ) * y ( h4 h5 h13 h16 p1 p2 p3 p15 )_y * i1 ( h6 p15 h13 h16 )_v
C         i1 ( h4 p15 h13 h16 )_v + = -1 * v ( h4 p15 h13 h16 )_v
C         i1 ( h4 p15 h13 h16 )_vt + = 1 * Sum ( h11 ) * t ( p15 h11 )_t * i2 ( h4 h11 h13 h16 )_v
C             i2 ( h4 h11 h13 h16 )_v + = 1 * v ( h4 h11 h13 h16 )_v
C             i2 ( h4 h11 h13 h16 )_vt + = 2 * Sum ( p7 ) * t ( p7 h16 )_t * i3 ( h4 h11 h13 p7 )_v
C                 i3 ( h4 h11 h13 p7 )_v + = 1 * v ( h4 h11 h13 p7 )_v
C                 i3 ( h4 h11 h13 p7 )_vt + = -1/2 * Sum ( p9 ) * t ( p9 h13 )_t * v ( h4 h11 p7 p9 )_v
C             i2 ( h4 h11 h13 h16 )_vt + = 1/2 * Sum ( p7 p8 ) * t ( p7 p8 h13 h16 )_t * v ( h4 h11 p7 p8 )_v
C         i1 ( h4 p15 h13 h16 )_vt + = -2 * Sum ( p7 ) * t ( p7 h16 )_t * i2 ( h4 p15 h13 p7 )_v
C             i2 ( h4 p15 h13 p7 )_v + = 1 * v ( h4 p15 h13 p7 )_v
C             i2 ( h4 p15 h13 p7 )_vt + = -1/2 * Sum ( p9 ) * t ( p9 h13 )_t * v ( h4 p15 p7 p9 )_v
C         i1 ( h4 p15 h13 h16 )_ft + = -1 * Sum ( p9 ) * t ( p9 p15 h13 h16 )_t * i2 ( h4 p9 )_f
C             i2 ( h4 p9 )_f + = 1 * f ( h4 p9 )_f
C             i2 ( h4 p9 )_vt + = 1 * Sum ( h12 p11 ) * t ( p11 h12 )_t * v ( h4 h12 p9 p11 )_v
C         i1 ( h4 p15 h13 h16 )_vt + = -2 * Sum ( h10 p8 ) * t ( p8 p15 h10 h16 )_t * i2 ( h4 h10 h13 p8 )_v
C             i2 ( h4 h10 h13 p8 )_v + = 1 * v ( h4 h10 h13 p8 )_v
C             i2 ( h4 h10 h13 p8 )_vt + = -1 * Sum ( p11 ) * t ( p11 h13 )_t * v ( h4 h10 p8 p11 )_v
C         i1 ( h4 p15 h13 h16 )_vt + = -1/2 * Sum ( p7 p8 ) * t ( p7 p8 h13 h16 )_t * v ( h4 p15 p7 p8 )_v
C         i1 ( h4 p15 h13 h16 )_vt + = 1/2 * Sum ( h12 p8 p9 ) * t ( p8 p9 p15 h12 h13 h16 )_t * v ( h4 h12 p8 p9 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yv + = 1/2 * P( 3 ) * Sum ( h14 p13 p15 ) * y ( h4 h5 h6 h14 p1 p2 p13 p15 )_y * i1 ( p13 p15 h14 p3 )_v
C         i1 ( p13 p15 h14 p1 )_v + = -1 * v ( p13 p15 h14 p1 )_v
C         i1 ( p13 p15 h14 p1 )_vt + = 1 * Sum ( p7 ) * t ( p7 h14 )_t * v ( p13 p15 p1 p7 )_v
C         i1 ( p13 p15 h14 p1 )_vt + = -1/2 * Sum ( h9 h10 ) * t ( p13 p15 h9 h10 )_t * i2 ( h9 h10 h14 p1 )_v
C             i2 ( h9 h10 h14 p1 )_v + = 1 * v ( h9 h10 h14 p1 )_v
C             i2 ( h9 h10 h14 p1 )_vt + = -1 * Sum ( p11 ) * t ( p11 h14 )_t * v ( h9 h10 p1 p11 )_v
C         i1 ( p13 p15 h14 p1 )_vt + = -2 * Sum ( h10 p8 ) * t ( p8 p15 h10 h14 )_t * v ( h10 p13 p1 p8 )_v
C         i1 ( p13 p15 h14 p1 )_vt + = 1/2 * Sum ( h11 h12 p9 ) * t ( p9 p13 p15 h11 h12 h14 )_t * v ( h11 h12 p1 p9 )_v
C         i1 ( p13 p15 h14 p1 )_vtt + = -2 * Sum ( h10 ) * t ( p15 h10 )_t * i2 ( h10 p13 h14 p1 )_vt
C             i2 ( h10 p13 h14 p1 )_vt + = -1 * Sum ( p7 ) * t ( p7 h14 )_t * v ( h10 p13 p1 p7 )_v
C         i1 ( p13 p15 h14 p1 )_vtt + = 2 * Sum ( h12 ) * t ( p13 h12 )_t * i2 ( h12 p15 h14 p1 )_vt
C             i2 ( h12 p15 h14 p1 )_vt + = 1 * Sum ( h10 p8 ) * t ( p8 p15 h10 h14 )_t * v ( h10 h12 p1 p8 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = -1 * P( 9 ) * Sum ( h13 ) * i1 ( h4 h5 h13 p1 )_yt * v ( h6 h13 p2 p3 )_v
C         i1 ( h4 h5 h13 p1 )_yt + = -1 * Sum ( p7 ) * t ( p7 h13 )_t * y ( h4 h5 p1 p7 )_y
C         i1 ( h4 h5 h13 p1 )_yt + = 1/2 * Sum ( h9 p8 p7 ) * t ( p7 p8 h9 h13 )_t * y ( h4 h5 h9 p1 p7 p8 )_y
C         i1 ( h4 h5 h13 p1 )_yt + = -1/12 * Sum ( h11 h10 p9 p8 p7 ) * t ( p7 p8 p9 h10 h11 h13 )_t * y ( h4 h5 h10 h11 p1 p7 p8 p9 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytf + = -1 * P( 3 ) * Sum ( h7 ) * i1 ( h4 h5 h6 h7 p1 p2 )_yt * f ( h7 p3 )_f
C         i1 ( h4 h5 h6 h7 p1 p2 )_yt + = 1 * Sum ( p8 ) * t ( p8 h7 )_t * y ( h4 h5 h6 p1 p2 p8 )_y
C         i1 ( h4 h5 h6 h7 p1 p2 )_yt + = 1/2 * Sum ( h10 p9 p8 ) * t ( p8 p9 h7 h10 )_t * y ( h4 h5 h6 h10 p1 p2 p8 p9 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = 1 * P( 9 ) * Sum ( h10 h12 ) * i1 ( h4 h5 h10 h12 p1 p2 )_yt * v ( h6 h12 h10 p3 )_v
C         i1 ( h4 h5 h10 h12 p1 p2 )_yt + = 1 * Sum ( p7 ) * t ( p7 h12 )_t * y ( h4 h5 h10 p1 p2 p7 )_y
C         i1 ( h4 h5 h10 h12 p1 p2 )_yt + = 1/2 * Sum ( h9 p8 p7 ) * t ( p7 p8 h9 h12 )_t * y ( h4 h5 h9 h10 p1 p2 p7 p8 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = 1 * P( 3 ) * Sum ( h12 p10 ) * i1 ( h4 h5 h6 h12 p1 p10 )_yt * v ( h12 p10 p2 p3 )_v
C         i1 ( h4 h5 h6 h12 p1 p10 )_yt + = -1 * Sum ( p7 ) * t ( p7 h12 )_t * y ( h4 h5 h6 p1 p7 p10 )_y
C         i1 ( h4 h5 h6 h12 p1 p10 )_yt + = -1/2 * Sum ( h9 p8 p7 ) * t ( p7 p8 h9 h12 )_t * y ( h4 h5 h6 h9 p1 p7 p8 p10 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = 1 * P( 3 ) * Sum ( h10 h8 p9 ) * i1 ( h4 h5 h6 h10 h8 p1 p2 p9 )_yt * v ( h8 p9 h10 p3 )_v
C         i1 ( h4 h5 h6 h10 h8 p1 p2 p9 )_yt + = 1 * Sum ( p7 ) * t ( p7 h8 )_t * y ( h4 h5 h6 h10 p1 p2 p7 p9 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = 1/2 * P( 9 ) * Sum ( p13 ) * i1 ( h4 p13 p1 p2 )_yt * v ( h5 h6 p3 p13 )_v
C         i1 ( h4 p13 p1 p2 )_yt + = -1 * Sum ( h10 h9 p7 ) * t ( p7 p13 h9 h10 )_t * y ( h4 h9 h10 p1 p2 p7 )_y
C         i1 ( h4 p13 p1 p2 )_yt + = 1/6 * Sum ( h12 h11 h10 p8 p7 ) * t ( p7 p8 p13 h10 h11 h12 )_t * y ( h4 h10 h11 h12 p1 p2 p7 p8 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = -1/4 * P( 3 ) * Sum ( h14 h15 ) * i1 ( h4 h5 h6 h14 h15 p1 )_yt * v ( h14 h15 p2 p3 )_v
C         i1 ( h4 h5 h6 h14 h15 p1 )_yt + = -1 * Sum ( p8 p7 ) * t ( p7 p8 h14 h15 )_t * y ( h4 h5 h6 p1 p7 p8 )_y
C         i1 ( h4 h5 h6 h14 h15 p1 )_yt + = -1/3 * Sum ( h10 p9 p8 p7 ) * t ( p7 p8 p9 h10 h14 h15 )_t * y ( h4 h5 h6 h10 p1 p7 p8 p9 )_y
C         i1 ( h4 h5 h6 h14 h15 p1 )_ytt + = 2 * Sum ( p7 ) * t ( p7 h14 )_t * i2 ( h4 h5 h6 h15 p1 p7 )_yt
C             i2 ( h4 h5 h6 h15 p1 p7 )_yt + = -1 * Sum ( p9 ) * t ( p9 h15 )_t * y ( h4 h5 h6 p1 p7 p9 )_y
C         i1 ( h4 h5 h6 h14 h15 p1 )_ytt + = 2 * Sum ( p11 ) * t ( p11 h15 )_t * i2 ( h4 h5 h6 h14 p1 p11 )_yt
C             i2 ( h4 h5 h6 h14 p1 p11 )_yt + = -1 * Sum ( h9 p8 p7 ) * t ( p7 p8 h9 h14 )_t * y ( h4 h5 h6 h9 p1 p7 p8 p11 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = 1/2 * P( 3 ) * Sum ( h11 p8 ) * i1 ( h4 h11 p8 p1 p2 p3 )_yt * v ( h5 h6 h11 p8 )_v
C         i1 ( h4 h11 p8 p1 p2 p3 )_yt + = -1 * Sum ( h10 h9 p7 ) * t ( p7 p8 h9 h10 )_t * y ( h4 h9 h10 h11 p1 p2 p3 p7 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_ytv + = 1/2 * P( 9 ) * Sum ( p8 p11 ) * i1 ( h4 h5 p8 p1 p2 p11 )_yt * v ( h6 p11 p3 p8 )_v
C         i1 ( h4 h5 p8 p1 p2 p11 )_yt + = 1 * Sum ( h10 h9 p7 ) * t ( p7 p8 h9 h10 )_t * y ( h4 h5 h9 h10 p1 p2 p7 p11 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_vty + = 1/12 * P( 3 ) * Sum ( p7 h10 h11 h12 ) * y ( h4 h10 h11 h12 p1 p2 p3 p7 )_y * i1 ( h5 h6 p7 h10 h11 h12 )_vt
C         i1 ( h4 h5 p7 h10 h11 h12 )_vt + = 1 * Sum ( p8 p9 ) * t ( p7 p8 p9 h10 h11 h12 )_t * v ( h4 h5 p8 p9 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_vty + = 1/4 * P( 9 ) * Sum ( p7 p8 h10 h11 ) * y ( h4 h5 h10 h11 p1 p2 p7 p8 )_y * i1 ( h6 p7 p8 h10 h11 p3 )_vt
C         i1 ( h4 p7 p8 h10 h11 p1 )_vt + = 1 * Sum ( h12 p9 ) * t ( p7 p8 p9 h10 h11 h12 )_t * v ( h4 h12 p1 p9 )_v
C     i0 ( h4 h5 h6 p1 p2 p3 )_yttv + = -1/2 * P( 3 ) * Sum ( h11 h8 h10 ) * i1 ( h4 h5 h6 h11 h8 h10 p1 p2 )_ytt * v ( h8 h10 h11 p3 )_v
C         i1 ( h4 h5 h6 h11 h8 h10 p1 p2 )_ytt + = 1 * Sum ( p7 ) * t ( p7 h8 )_t * i2 ( h4 h5 h6 h11 h10 p1 p2 p7 )_yt
C             i2 ( h4 h5 h6 h11 h10 p1 p2 p7 )_yt + = 1 * Sum ( p9 ) * t ( p9 h10 )_t * y ( h4 h5 h6 h11 p1 p2 p7 p9 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_yttv + = -1/2 * P( 3 ) * Sum ( p8 p11 ) * i1 ( h4 p8 p11 p1 p2 p3 )_ytt * v ( h5 h6 p8 p11 )_v
C         i1 ( h4 p8 p11 p1 p2 p3 )_ytt + = 1 * Sum ( h12 ) * t ( p11 h12 )_t * i2 ( h4 h12 p8 p1 p2 p3 )_yt
C             i2 ( h4 h12 p8 p1 p2 p3 )_yt + = -1 * Sum ( h10 h9 p7 ) * t ( p7 p8 h9 h10 )_t * y ( h4 h9 h10 h12 p1 p2 p3 p7 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_yttv + = -1/2 * P( 9 ) * Sum ( p14 h13 ) * i1 ( h4 h5 p14 h13 p1 p2 )_ytt * v ( h6 h13 p3 p14 )_v
C         i1 ( h4 h5 p14 h13 p1 p2 )_ytt + = 1 * Sum ( h12 ) * t ( p14 h12 )_t * i2 ( h4 h5 h12 h13 p1 p2 )_yt
C             i2 ( h4 h5 h12 h13 p1 p2 )_yt + = 1 * Sum ( h9 p8 p7 ) * t ( p7 p8 h9 h13 )_t * y ( h4 h5 h9 h12 p1 p2 p7 p8 )_y
C         i1 ( h4 h5 p14 h13 p1 p2 )_ytt + = 1 * Sum ( h9 h10 p7 ) * t ( p7 p14 h9 h10 )_t * i2 ( h4 h5 h9 h10 h13 p1 p2 p7 )_yt
C             i2 ( h4 h5 h9 h10 h13 p1 p2 p7 )_yt + = 1 * Sum ( p11 ) * t ( p11 h13 )_t * y ( h4 h5 h9 h10 p1 p2 p7 p11 )_y
C     i0 ( h4 h5 h6 p1 p2 p3 )_yttv + = 1/2 * P( 3 ) * Sum ( p13 h10 h12 ) * i1 ( h4 h5 h6 p13 h10 h12 p1 p2 )_ytt * v ( h10 h12 p3 p13 )_v
C         i1 ( h4 h5 h6 p13 h10 h12 p1 p2 )_ytt + = 1 * t ( p13 h12 )_t * i2 ( h4 h5 h6 h10 p1 p2 )_yt
C             i2 ( h4 h5 h6 h10 p1 p2 )_yt + = 1 * Sum ( h9 p8 p7 ) * t ( p7 p8 h9 h10 )_t * y ( h4 h5 h6 h9 p1 p2 p7 p8 )_y
C         i1 ( h4 h5 h6 p13 h10 h12 p1 p2 )_yttt + = 1 * Sum ( h8 ) * t ( p13 h8 )_t * i2 ( h4 h5 h6 h8 h10 h12 p1 p2 )_ytt
C             i2 ( h4 h5 h6 h8 h10 h12 p1 p2 )_ytt + = 1 * Sum ( p9 ) * t ( p9 h10 )_t * i3 ( h4 h5 h6 h8 h12 p1 p2 p9 )_yt
C                 i3 ( h4 h5 h6 h8 h12 p1 p2 p9 )_yt + = 1 * Sum ( p11 ) * t ( p11 h12 )_t * y ( h4 h5 h6 h8 p1 p2 p9 p11 )_y
      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_y1
      INTEGER k_y1_offset
      INTEGER d_v2
      INTEGER k_v2_offset
      INTEGER d_y2
      INTEGER k_y2_offset
      INTEGER d_i1
      INTEGER k_i1_offset
      INTEGER d_y3
      INTEGER k_y3_offset
      INTEGER d_y4
      INTEGER k_y4_offset
      INTEGER d_f1
      INTEGER k_f1_offset
      INTEGER l_i1_offset
      INTEGER size_i1
      INTEGER d_t1
      INTEGER k_t1_offset
      INTEGER d_i2
      INTEGER k_i2_offset
      INTEGER d_t2
      INTEGER k_t2_offset
      INTEGER l_i2_offset
      INTEGER size_i2
      INTEGER d_t3
      INTEGER k_t3_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 ccsdtq_lambda3_1(d_y1,k_y1_offset,d_v2,k_v2_offset,d_i0,k_i0_
     &offset)
      CALL OFFSET_ccsdtq_lambda3_2_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_2_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_2_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL ccsdtq_lambda3_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_2(d_y2,k_y2_offset,d_i1,k_i1_offset,d_i0,k_i0_
     &offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_3_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_3_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_3_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL ccsdtq_lambda3_3_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_3(d_y2,k_y2_offset,d_i1,k_i1_offset,d_i0,k_i0_
     &offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_4(d_y2,k_y2_offset,d_v2,k_v2_offset,d_i0,k_i0_
     &offset)
      CALL OFFSET_ccsdtq_lambda3_5_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_5_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_5_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL OFFSET_ccsdtq_lambda3_5_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_5_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_5_2_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_5_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k
     &_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_5_2(d_t1,k_t1_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_5_3(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL ccsdtq_lambda3_5_4(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_5(d_y3,k_y3_offset,d_i1,k_i1_offset,d_i0,k_i0_
     &offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_6_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_6_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_6_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL ccsdtq_lambda3_6_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL ccsdtq_lambda3_6_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL OFFSET_ccsdtq_lambda3_6_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_6_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_6_4_1(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k
     &_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_6_4(d_t1,k_t1_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_6(d_y3,k_y3_offset,d_i1,k_i1_offset,d_i0,k_i0_
     &offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_7_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_7_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_7_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL OFFSET_ccsdtq_lambda3_7_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_7_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_7_2_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_7_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k
     &_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_7_2(d_t1,k_t1_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_7_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_7(d_y3,k_y3_offset,d_i1,k_i1_offset,d_i0,k_i0_
     &offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_8_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_8_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_8_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL ccsdtq_lambda3_8_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL ccsdtq_lambda3_8_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_i
     &1_offset)
      CALL OFFSET_ccsdtq_lambda3_8_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_8_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_8_4_1(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,k
     &_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_8_4(d_t1,k_t1_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_8(d_y3,k_y3_offset,d_i1,k_i1_offset,d_i0,k_i0_
     &offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_9(d_y3,k_y3_offset,d_v2,k_v2_offset,d_i0,k_i0_
     &offset)
      CALL OFFSET_ccsdtq_lambda3_10_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_10_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_10_1(d_f1,k_f1_offset,d_i1,k_i1_offset)
      CALL OFFSET_ccsdtq_lambda3_10_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_10_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_10_2_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL OFFSET_ccsdtq_lambda3_10_2_2_1(l_i3_offset,k_i3_offset,size_i
     &3)
      CALL TCE_FILENAME('ccsdtq_lambda3_10_2_2_1_i3',filename)
      CALL CREATEFILE(filename,d_i3,size_i3)
      CALL ccsdtq_lambda3_10_2_2_1(d_f1,k_f1_offset,d_i3,k_i3_offset)
      CALL ccsdtq_lambda3_10_2_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i
     &3,k_i3_offset)
      CALL RECONCILEFILE(d_i3,size_i3)
      CALL ccsdtq_lambda3_10_2_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_10_2_3(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL ccsdtq_lambda3_10_2_4(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_10_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_10_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_10_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_10_3_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_10_3_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL ccsdtq_lambda3_10_3_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_10_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_10_4(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL OFFSET_ccsdtq_lambda3_10_5_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_10_5_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_10_5_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_10_5_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_10_5(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_10_6(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_10_7(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_10_8(d_t3,k_t3_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_10(d_y4,k_y4_offset,d_i1,k_i1_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_11_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_11_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_11_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL OFFSET_ccsdtq_lambda3_11_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_11_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_11_2_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL OFFSET_ccsdtq_lambda3_11_2_2_1(l_i3_offset,k_i3_offset,size_i
     &3)
      CALL TCE_FILENAME('ccsdtq_lambda3_11_2_2_1_i3',filename)
      CALL CREATEFILE(filename,d_i3,size_i3)
      CALL ccsdtq_lambda3_11_2_2_1(d_v2,k_v2_offset,d_i3,k_i3_offset)
      CALL ccsdtq_lambda3_11_2_2_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i
     &3,k_i3_offset)
      CALL RECONCILEFILE(d_i3,size_i3)
      CALL ccsdtq_lambda3_11_2_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_11_2_3(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_11_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_11_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_11_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_11_3_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_11_3_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_11_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_11_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_11_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_11_4_1(d_f1,k_f1_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_11_4_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_11_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_11_5_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_11_5_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_11_5_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_11_5_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_11_5(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_11_6(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_11_7(d_t3,k_t3_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_11(d_y4,k_y4_offset,d_i1,k_i1_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_12_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_12_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_12_1(d_v2,k_v2_offset,d_i1,k_i1_offset)
      CALL ccsdtq_lambda3_12_2(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL OFFSET_ccsdtq_lambda3_12_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_12_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_12_3_1(d_v2,k_v2_offset,d_i2,k_i2_offset)
      CALL ccsdtq_lambda3_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 ccsdtq_lambda3_12_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL ccsdtq_lambda3_12_4(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_12_5(d_t3,k_t3_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL OFFSET_ccsdtq_lambda3_12_6_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_12_6_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_12_6_1(d_t1,k_t1_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_12_6(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_12_7_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_12_7_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_12_7_1(d_t2,k_t2_offset,d_v2,k_v2_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_12(d_y4,k_y4_offset,d_i1,k_i1_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_13_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_13_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_13_1(d_t1,k_t1_offset,d_y2,k_y2_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_13_2(d_t2,k_t2_offset,d_y3,k_y3_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_13_3(d_t3,k_t3_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_13(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_14_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_14_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_14_1(d_t1,k_t1_offset,d_y3,k_y3_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_14_2(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_14(d_i1,k_i1_offset,d_f1,k_f1_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_15_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_15_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_15_1(d_t1,k_t1_offset,d_y3,k_y3_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_15_2(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_15(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_16_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_16_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_16_1(d_t1,k_t1_offset,d_y3,k_y3_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_16_2(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_16(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_17_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_17_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_17_1(d_t1,k_t1_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_17(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_18_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_18_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_18_1(d_t2,k_t2_offset,d_y3,k_y3_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_18_2(d_t3,k_t3_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_18(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_19_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_19_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_19_1(d_t2,k_t2_offset,d_y3,k_y3_offset,d_i1,k_
     &i1_offset)
      CALL ccsdtq_lambda3_19_2(d_t3,k_t3_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL OFFSET_ccsdtq_lambda3_19_3_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_19_3_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_19_3_1(d_t1,k_t1_offset,d_y3,k_y3_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_19_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_19_4_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_19_4_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_19_4_1(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_19_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_19(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_20_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_20_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_20_1(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_20(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_21_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_21_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_21_1(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_21(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_22_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_22_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_22_1(d_t3,k_t3_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_22(d_y4,k_y4_offset,d_i1,k_i1_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_23_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_23_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL ccsdtq_lambda3_23_1(d_t3,k_t3_offset,d_v2,k_v2_offset,d_i1,k_
     &i1_offset)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_23(d_y4,k_y4_offset,d_i1,k_i1_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_24_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_24_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL OFFSET_ccsdtq_lambda3_24_1_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_24_1_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_24_1_1(d_t1,k_t1_offset,d_y4,k_y4_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_24_1(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_24(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_25_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_25_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL OFFSET_ccsdtq_lambda3_25_1_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_25_1_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_25_1_1(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_25_1(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_25(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_26_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_26_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL OFFSET_ccsdtq_lambda3_26_1_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_26_1_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_26_1_1(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_26_1(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_26_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_26_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_26_2_1(d_t1,k_t1_offset,d_y4,k_y4_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_26_2(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_26(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_27_1(l_i1_offset,k_i1_offset,size_i1)
      CALL TCE_FILENAME('ccsdtq_lambda3_27_1_i1',filename)
      CALL CREATEFILE(filename,d_i1,size_i1)
      CALL OFFSET_ccsdtq_lambda3_27_1_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_27_1_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL ccsdtq_lambda3_27_1_1(d_t2,k_t2_offset,d_y4,k_y4_offset,d_i2,
     &k_i2_offset)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_27_1(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL OFFSET_ccsdtq_lambda3_27_2_1(l_i2_offset,k_i2_offset,size_i2)
      CALL TCE_FILENAME('ccsdtq_lambda3_27_2_1_i2',filename)
      CALL CREATEFILE(filename,d_i2,size_i2)
      CALL OFFSET_ccsdtq_lambda3_27_2_1_1(l_i3_offset,k_i3_offset,size_i
     &3)
      CALL TCE_FILENAME('ccsdtq_lambda3_27_2_1_1_i3',filename)
      CALL CREATEFILE(filename,d_i3,size_i3)
      CALL ccsdtq_lambda3_27_2_1_1(d_t1,k_t1_offset,d_y4,k_y4_offset,d_i
     &3,k_i3_offset)
      CALL RECONCILEFILE(d_i3,size_i3)
      CALL ccsdtq_lambda3_27_2_1(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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i2,size_i2)
      CALL ccsdtq_lambda3_27_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('ccsdtq_lambda3',
     &-1,MA_ERR)
      CALL RECONCILEFILE(d_i1,size_i1)
      CALL ccsdtq_lambda3_27(d_i1,k_i1_offset,d_v2,k_v2_offset,d_i0,k_i0
     &_offset)
      CALL DELETEFILE(d_i1)
      IF (.not.MA_POP_STACK(l_i1_offset)) CALL ERRQUIT('ccsdtq_lambda3',
     &-1,MA_ERR)
      RETURN
      END
c#endif
