LCOV - code coverage report
Current view: top level - src/xc - xc_xbecke88_lr_adiabatic.F (source / functions) Hit Total Coverage
Test: CP2K Regtests (git:262480d) Lines: 747 3341 22.4 %
Date: 2024-11-22 07:00:40 Functions: 6 6 100.0 %

          Line data    Source code
       1             : !--------------------------------------------------------------------------------------------------!
       2             : !   CP2K: A general program to perform molecular dynamics simulations                              !
       3             : !   Copyright 2000-2024 CP2K developers group <https://cp2k.org>                                   !
       4             : !                                                                                                  !
       5             : !   SPDX-License-Identifier: GPL-2.0-or-later                                                      !
       6             : !--------------------------------------------------------------------------------------------------!
       7             : 
       8             : ! **************************************************************************************************
       9             : !> \brief Calculates the density_scaled BECKE88 long-range functional
      10             : !>      when used in adiabatic hybrids.
      11             : !>      The energy is given as
      12             : !>
      13             : !>        Ec = 2*lambda*Ex(rho/lambda) + lambda^2*d/dlambda(Ex(rho/lambda)),
      14             : !>
      15             : !>      where rho/lambda is the scaled density
      16             : !> \par History
      17             : !>      01.2008 created [mguidon]
      18             : !> \author Manuel Guidon
      19             : ! **************************************************************************************************
      20             : MODULE xc_xbecke88_lr_adiabatic
      21             :    USE bibliography,                    ONLY: Becke1988,&
      22             :                                               cite_reference
      23             :    USE cp_array_utils,                  ONLY: cp_3d_r_cp_type
      24             :    USE input_section_types,             ONLY: section_vals_type,&
      25             :                                               section_vals_val_get
      26             :    USE kinds,                           ONLY: dp
      27             :    USE mathconstants,                   ONLY: pi,&
      28             :                                               rootpi
      29             :    USE xc_derivative_desc,              ONLY: deriv_norm_drho,&
      30             :                                               deriv_norm_drhoa,&
      31             :                                               deriv_norm_drhob,&
      32             :                                               deriv_rho,&
      33             :                                               deriv_rhoa,&
      34             :                                               deriv_rhob
      35             :    USE xc_derivative_set_types,         ONLY: xc_derivative_set_type,&
      36             :                                               xc_dset_get_derivative
      37             :    USE xc_derivative_types,             ONLY: xc_derivative_get,&
      38             :                                               xc_derivative_type
      39             :    USE xc_rho_cflags_types,             ONLY: xc_rho_cflags_type
      40             :    USE xc_rho_set_types,                ONLY: xc_rho_set_get,&
      41             :                                               xc_rho_set_type
      42             : #include "../base/base_uses.f90"
      43             : 
      44             :    IMPLICIT NONE
      45             :    PRIVATE
      46             : 
      47             :    LOGICAL, PRIVATE, PARAMETER :: debug_this_module = .TRUE.
      48             :    CHARACTER(len=*), PARAMETER, PRIVATE :: moduleN = 'xc_xbecke88_lr_adiabatic'
      49             :    REAL(kind=dp), PARAMETER :: beta = 0.0042_dp
      50             : 
      51             :    PUBLIC :: xb88_lr_adiabatic_lda_info, xb88_lr_adiabatic_lsd_info, &
      52             :              xb88_lr_adiabatic_lda_eval, xb88_lr_adiabatic_lsd_eval
      53             : CONTAINS
      54             : 
      55             : ! **************************************************************************************************
      56             : !> \brief return various information on the functional
      57             : !> \param reference string with the reference of the actual functional
      58             : !> \param shortform string with the shortform of the functional name
      59             : !> \param needs the components needed by this functional are set to
      60             : !>        true (does not set the unneeded components to false)
      61             : !> \param max_deriv ...
      62             : !> \par History
      63             : !>      01.2008 created [mguidon]
      64             : !> \author Manuel Guidon
      65             : ! **************************************************************************************************
      66         109 :    SUBROUTINE xb88_lr_adiabatic_lda_info(reference, shortform, needs, max_deriv)
      67             :       CHARACTER(LEN=*), INTENT(OUT), OPTIONAL            :: reference, shortform
      68             :       TYPE(xc_rho_cflags_type), INTENT(inout), OPTIONAL  :: needs
      69             :       INTEGER, INTENT(out), OPTIONAL                     :: max_deriv
      70             : 
      71         109 :       IF (PRESENT(reference)) THEN
      72           1 :          reference = "A. Becke, Phys. Rev. A 38, 3098 (1988) {LDA version}"
      73             :       END IF
      74         109 :       IF (PRESENT(shortform)) THEN
      75           1 :          shortform = "Becke 1988 Exchange Functional (LDA)"
      76             :       END IF
      77         109 :       IF (PRESENT(needs)) THEN
      78         108 :          needs%rho = .TRUE.
      79         108 :          needs%norm_drho = .TRUE.
      80             :       END IF
      81         109 :       IF (PRESENT(max_deriv)) max_deriv = 1
      82             : 
      83         109 :    END SUBROUTINE xb88_lr_adiabatic_lda_info
      84             : 
      85             : ! **************************************************************************************************
      86             : !> \brief return various information on the functional
      87             : !> \param reference string with the reference of the actual functional
      88             : !> \param shortform string with the shortform of the functional name
      89             : !> \param needs the components needed by this functional are set to
      90             : !>        true (does not set the unneeded components to false)
      91             : !> \param max_deriv ...
      92             : !> \par History
      93             : !>      01.2008 created [mguidon]
      94             : !> \author Manuel Guidon
      95             : ! **************************************************************************************************
      96         125 :    SUBROUTINE xb88_lr_adiabatic_lsd_info(reference, shortform, needs, max_deriv)
      97             :       CHARACTER(LEN=*), INTENT(OUT), OPTIONAL            :: reference, shortform
      98             :       TYPE(xc_rho_cflags_type), INTENT(inout), OPTIONAL  :: needs
      99             :       INTEGER, INTENT(out), OPTIONAL                     :: max_deriv
     100             : 
     101         125 :       IF (PRESENT(reference)) THEN
     102           1 :          reference = "A. Becke, Phys. Rev. A 38, 3098 (1988) {LSD version}"
     103             :       END IF
     104         125 :       IF (PRESENT(shortform)) THEN
     105           1 :          shortform = "Becke 1988 Exchange Functional (LSD)"
     106             :       END IF
     107         125 :       IF (PRESENT(needs)) THEN
     108         124 :          needs%rho_spin = .TRUE.
     109         124 :          needs%rho_spin_1_3 = .TRUE.
     110         124 :          needs%norm_drho_spin = .TRUE.
     111             :       END IF
     112         125 :       IF (PRESENT(max_deriv)) max_deriv = 3
     113             : 
     114         125 :    END SUBROUTINE xb88_lr_adiabatic_lsd_info
     115             : 
     116             : ! **************************************************************************************************
     117             : !> \brief evaluates the becke 88 longrange exchange functional for lda
     118             : !> \param rho_set the density where you want to evaluate the functional
     119             : !> \param deriv_set place where to store the functional derivatives (they are
     120             : !>        added to the derivatives)
     121             : !> \param grad_deriv degree of the derivative that should be evaluated,
     122             : !>        if positive all the derivatives up to the given degree are evaluated,
     123             : !>        if negative only the given degree is calculated
     124             : !> \param xb88_lr_ad_params input parameters (scaling)
     125             : !> \par History
     126             : !>      01.2008 created [mguidon]
     127             : !> \author Manuel Guidon
     128             : ! **************************************************************************************************
     129         520 :    SUBROUTINE xb88_lr_adiabatic_lda_eval(rho_set, deriv_set, grad_deriv, xb88_lr_ad_params)
     130             :       TYPE(xc_rho_set_type), INTENT(IN)                  :: rho_set
     131             :       TYPE(xc_derivative_set_type), INTENT(IN)           :: deriv_set
     132             :       INTEGER, INTENT(in)                                :: grad_deriv
     133             :       TYPE(section_vals_type), POINTER                   :: xb88_lr_ad_params
     134             : 
     135             :       CHARACTER(len=*), PARAMETER :: routineN = 'xb88_lr_adiabatic_lda_eval'
     136             : 
     137             :       INTEGER                                            :: handle, npoints
     138             :       INTEGER, DIMENSION(2, 3)                           :: bo
     139             :       REAL(kind=dp)                                      :: epsilon_rho, lambda, omega, sx
     140         104 :       REAL(kind=dp), CONTIGUOUS, DIMENSION(:, :, :), POINTER :: dummy, e_0, e_ndrho, &
     141         104 :          e_ndrho_ndrho, e_ndrho_ndrho_ndrho, e_ndrho_ndrho_rho, e_ndrho_rho, e_ndrho_rho_rho, &
     142         104 :          e_rho, e_rho_rho, e_rho_rho_rho, norm_drho, rho
     143             :       TYPE(xc_derivative_type), POINTER                  :: deriv
     144             : 
     145         104 :       CALL timeset(routineN, handle)
     146             : 
     147         104 :       CALL section_vals_val_get(xb88_lr_ad_params, "SCALE_X", r_val=sx)
     148         104 :       CALL section_vals_val_get(xb88_lr_ad_params, "OMEGA", r_val=omega)
     149         104 :       CALL section_vals_val_get(xb88_lr_ad_params, "LAMBDA", r_val=lambda)
     150             : 
     151         104 :       CALL cite_reference(Becke1988)
     152             : 
     153             :       CALL xc_rho_set_get(rho_set, rho=rho, &
     154         104 :                           norm_drho=norm_drho, local_bounds=bo, rho_cutoff=epsilon_rho)
     155         104 :       npoints = (bo(2, 1) - bo(1, 1) + 1)*(bo(2, 2) - bo(1, 2) + 1)*(bo(2, 3) - bo(1, 3) + 1)
     156             : 
     157         104 :       dummy => rho
     158             : 
     159         104 :       e_0 => dummy
     160         104 :       e_rho => dummy
     161         104 :       e_ndrho => dummy
     162         104 :       e_rho_rho => dummy
     163         104 :       e_ndrho_rho => dummy
     164         104 :       e_ndrho_ndrho => dummy
     165         104 :       e_rho_rho_rho => dummy
     166         104 :       e_ndrho_rho_rho => dummy
     167         104 :       e_ndrho_ndrho_rho => dummy
     168         104 :       e_ndrho_ndrho_ndrho => dummy
     169             : 
     170         104 :       IF (grad_deriv >= 0) THEN
     171             :          deriv => xc_dset_get_derivative(deriv_set, [INTEGER::], &
     172         104 :                                          allocate_deriv=.TRUE.)
     173         104 :          CALL xc_derivative_get(deriv, deriv_data=e_0)
     174             :       END IF
     175         104 :       IF (grad_deriv >= 1 .OR. grad_deriv == -1) THEN
     176             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rho], &
     177          66 :                                          allocate_deriv=.TRUE.)
     178          66 :          CALL xc_derivative_get(deriv, deriv_data=e_rho)
     179             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drho], &
     180          66 :                                          allocate_deriv=.TRUE.)
     181          66 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho)
     182             :       END IF
     183         104 :       IF (grad_deriv >= 2 .OR. grad_deriv == -2) THEN
     184             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rho, deriv_rho], &
     185           0 :                                          allocate_deriv=.TRUE.)
     186           0 :          CALL xc_derivative_get(deriv, deriv_data=e_rho_rho)
     187             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drho, deriv_rho], &
     188           0 :                                          allocate_deriv=.TRUE.)
     189           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_rho)
     190             :          deriv => xc_dset_get_derivative(deriv_set, &
     191           0 :                                          [deriv_norm_drho, deriv_norm_drho], allocate_deriv=.TRUE.)
     192           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho)
     193             :       END IF
     194         104 :       IF (grad_deriv >= 3 .OR. grad_deriv == -3) THEN
     195             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rho, deriv_rho, deriv_rho], &
     196           0 :                                          allocate_deriv=.TRUE.)
     197           0 :          CALL xc_derivative_get(deriv, deriv_data=e_rho_rho_rho)
     198             :          deriv => xc_dset_get_derivative(deriv_set, &
     199           0 :                                          [deriv_norm_drho, deriv_rho, deriv_rho], allocate_deriv=.TRUE.)
     200           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_rho_rho)
     201             :          deriv => xc_dset_get_derivative(deriv_set, &
     202           0 :                                          [deriv_norm_drho, deriv_norm_drho, deriv_rho], allocate_deriv=.TRUE.)
     203           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_rho)
     204             :          deriv => xc_dset_get_derivative(deriv_set, &
     205           0 :                                          [deriv_norm_drho, deriv_norm_drho, deriv_norm_drho], allocate_deriv=.TRUE.)
     206           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_ndrho)
     207             :       END IF
     208         104 :       IF (grad_deriv > 3 .OR. grad_deriv < -3) THEN
     209           0 :          CPABORT("derivatives bigger than 3 not implemented")
     210             :       END IF
     211             : 
     212             : !$OMP     PARALLEL DEFAULT(NONE) &
     213             : !$OMP              SHARED(rho, norm_drho, e_0, e_rho, e_ndrho, e_rho_rho) &
     214             : !$OMP              SHARED(e_ndrho_rho, e_ndrho_ndrho, e_rho_rho_rho) &
     215             : !$OMP              SHARED(e_ndrho_rho_rho, e_ndrho_ndrho_rho) &
     216             : !$OMP              SHARED(e_ndrho_ndrho_ndrho, grad_deriv, npoints) &
     217         104 : !$OMP              SHARED(epsilon_rho, sx, omega, lambda)
     218             : 
     219             :       CALL xb88_lr_adiabatic_lda_calc(rho=rho, norm_drho=norm_drho, &
     220             :                                       e_0=e_0, e_rho=e_rho, e_ndrho=e_ndrho, e_rho_rho=e_rho_rho, &
     221             :                                       e_ndrho_rho=e_ndrho_rho, e_ndrho_ndrho=e_ndrho_ndrho, &
     222             :                                       e_rho_rho_rho=e_rho_rho_rho, e_ndrho_rho_rho=e_ndrho_rho_rho, &
     223             :                                       e_ndrho_ndrho_rho=e_ndrho_ndrho_rho, &
     224             :                                       e_ndrho_ndrho_ndrho=e_ndrho_ndrho_ndrho, grad_deriv=grad_deriv, &
     225             :                                       npoints=npoints, epsilon_rho=epsilon_rho, &
     226             :                                       sx=sx, omega=omega, lambda=lambda)
     227             : 
     228             : !$OMP     END PARALLEL
     229             : 
     230         104 :       CALL timestop(handle)
     231         104 :    END SUBROUTINE xb88_lr_adiabatic_lda_eval
     232             : 
     233             : ! **************************************************************************************************
     234             : !> \brief low level calculation of the becke 88 exchange functional for lda
     235             : !> \param rho alpha or beta spin density
     236             : !> \param norm_drho || grad rho ||
     237             : !> \param e_0 adds to it the local value of the functional
     238             : !> \param e_rho e_*: derivative of the functional wrt. to the variables
     239             : !>        named where the * is. Everything wrt. to the spin of the arguments.
     240             : !> \param e_ndrho ...
     241             : !> \param e_rho_rho ...
     242             : !> \param e_ndrho_rho ...
     243             : !> \param e_ndrho_ndrho ...
     244             : !> \param e_rho_rho_rho ...
     245             : !> \param e_ndrho_rho_rho ...
     246             : !> \param e_ndrho_ndrho_rho ...
     247             : !> \param e_ndrho_ndrho_ndrho ...
     248             : !> \param grad_deriv ...
     249             : !> \param npoints ...
     250             : !> \param epsilon_rho ...
     251             : !> \param sx scaling-parameter for exchange
     252             : !> \param omega parameter for erfc
     253             : !> \param lambda ...
     254             : !> \par History
     255             : !>      01.2008 created [mguidon]
     256             : !> \author Manuel Guidon
     257             : !> \note
     258             : !>      - Just took the lsd code and scaled rho and ndrho by 1/2 (e_0 with 2.0)
     259             : ! **************************************************************************************************
     260         104 :    SUBROUTINE xb88_lr_adiabatic_lda_calc(rho, norm_drho, &
     261         104 :                                          e_0, e_rho, e_ndrho, e_rho_rho, e_ndrho_rho, &
     262         104 :                                          e_ndrho_ndrho, e_rho_rho_rho, e_ndrho_rho_rho, e_ndrho_ndrho_rho, &
     263         104 :                                          e_ndrho_ndrho_ndrho, grad_deriv, npoints, epsilon_rho, sx, &
     264             :                                          omega, lambda)
     265             :       INTEGER, INTENT(in)                                :: npoints, grad_deriv
     266             :       REAL(kind=dp), DIMENSION(1:npoints), INTENT(inout) :: e_ndrho_ndrho_ndrho, &
     267             :          e_ndrho_ndrho_rho, e_ndrho_rho_rho, e_rho_rho_rho, e_ndrho_ndrho, e_ndrho_rho, e_rho_rho, &
     268             :          e_ndrho, e_rho, e_0
     269             :       REAL(kind=dp), DIMENSION(1:npoints), INTENT(in)    :: norm_drho, rho
     270             :       REAL(kind=dp), INTENT(in)                          :: epsilon_rho, sx, omega, lambda
     271             : 
     272             :       INTEGER                                            :: ii
     273             :       REAL(KIND=dp) :: Cx, epsilon_rho43, my_epsilon_rho, my_ndrho, my_rho, t1, t10, t1000, t1002, &
     274             :          t1004, t1008, t1012, t1014, t1019, t102, t1021, t1024, t1026, t103, t1030, t1033, t1034, &
     275             :          t1036, t104, t1040, t1044, t1046, t105, t1050, t1054, t1055, t1056, t1058, t1059, t106, &
     276             :          t1060, t1063, t1064, t1067, t1068, t107, t1071, t1076, t1079, t108, t1082, t1085, t1089, &
     277             :          t1093, t1097, t1099, t11, t1100, t1101, t1106, t1109, t1111, t1119, t112, t1122, t1125, &
     278             :          t1126, t1129, t1134, t1137, t114, t1140, t1141, t1142, t1143, t115, t1150, t1157, t116, &
     279             :          t1161, t1168, t1172, t1176, t1189, t119, t1191, t1192, t1193
     280             :       REAL(KIND=dp) :: t1194, t12, t1200, t1201, t1206, t1207, t1210, t1213, t1216, t122, t1221, &
     281             :          t1224, t123, t1235, t1238, t1239, t1246, t1247, t1254, t126, t1264, t1268, t1275, t1283, &
     282             :          t1284, t1288, t1292, t13, t130, t1300, t1301, t1302, t1309, t131, t1316, t132, t1320, &
     283             :          t133, t1333, t1340, t1347, t1348, t136, t1360, t1367, t1368, t137, t1372, t1373, t1377, &
     284             :          t1387, t1388, t1392, t1396, t1397, t14, t140, t1401, t1406, t1408, t1409, t141, t1410, &
     285             :          t1411, t1413, t1417, t1420, t1425, t1426, t1429, t1436, t1438, t1439, t144, t1440, t1443, &
     286             :          t1444, t1447, t145, t1451, t1455, t1459, t146, t1466, t147, t1470
     287             :       REAL(KIND=dp) :: t1471, t1476, t1479, t1482, t1483, t1485, t1489, t149, t1492, t1493, t1496, &
     288             :          t1498, t15, t150, t1500, t1502, t1504, t1505, t1506, t1507, t1509, t151, t1510, t1512, &
     289             :          t1513, t1515, t1517, t1518, t1519, t1523, t1525, t1528, t1530, t1531, t1535, t1536, &
     290             :          t1541, t1543, t1545, t1546, t1547, t1549, t155, t1552, t1553, t1556, t1557, t156, t1560, &
     291             :          t1563, t1564, t1565, t1568, t1570, t1571, t1574, t1575, t1577, t1579, t1581, t1582, &
     292             :          t1584, t1586, t1588, t1589, t1591, t1592, t1594, t1596, t1597, t1598, t1599, t16, t160, &
     293             :          t1601, t1602, t1603, t1605, t1607, t1608, t161, t1610, t1611, t1613
     294             :       REAL(KIND=dp) :: t1615, t1616, t1617, t1618, t1620, t1621, t1622, t1624, t1625, t1626, &
     295             :          t1628, t1630, t1631, t1632, t1634, t1636, t1638, t164, t1640, t1642, t1644, t1645, t1647, &
     296             :          t1649, t165, t1652, t1654, t1656, t1658, t166, t1660, t1662, t1664, t1667, t1669, t1671, &
     297             :          t1675, t1677, t1679, t1680, t1681, t1684, t1685, t1688, t1689, t1693, t1694, t1696, &
     298             :          t1699, t17, t170, t1700, t1702, t1703, t1705, t1706, t1708, t1709, t171, t1712, t1714, &
     299             :          t1715, t1717, t1718, t1719, t172, t1720, t1722, t1724, t1726, t1728, t1730, t1731, t1735, &
     300             :          t1737, t1740, t1741, t1743, t1745, t1748, t1752, t1754, t1755, t1757
     301             :       REAL(KIND=dp) :: t1758, t176, t1760, t1762, t1763, t1765, t1766, t1768, t1769, t177, t1773, &
     302             :          t1774, t1776, t1777, t1779, t178, t1782, t1784, t1785, t1787, t1789, t1790, t1794, t1795, &
     303             :          t1797, t18, t1800, t1801, t1804, t1807, t1810, t1811, t1814, t1817, t182, t1821, t1822, &
     304             :          t1824, t1825, t1828, t1829, t183, t1832, t1835, t1836, t1837, t1838, t1842, t1843, t1849, &
     305             :          t1852, t1854, t1858, t1861, t1864, t1865, t1868, t187, t1871, t1874, t1875, t1878, t1881, &
     306             :          t1884, t1885, t1886, t189, t1891, t1892, t1895, t1898, t19, t1901, t1902, t1905, t1908, &
     307             :          t1912, t1914, t1917, t192, t1920, t1923, t1924, t1925
     308             :       REAL(KIND=dp) :: t1928, t1932, t1938, t1939, t194, t1940, t1943, t1946, t195, t1952, t1954, &
     309             :          t1958, t196, t1961, t1962, t1965, t1966, t1969, t1971, t1972, t1973, t1974, t1975, t1977, &
     310             :          t1980, t1981, t1984, t1987, t1988, t199, t1991, t1994, t1997, t20, t200, t2000, t2001, &
     311             :          t2002, t2006, t2009, t2013, t2014, t2018, t2022, t2027, t2028, t203, t2031, t2032, t2035, &
     312             :          t2042, t2046, t2050, t2054, t2057, t2058, t2061, t207, t2073, t2074, t2077, t2081, t2082, &
     313             :          t2086, t2088, t2095, t2098, t2099, t2104, t2107, t2113, t2114, t2117, t2118, t2124, &
     314             :          t2126, t2130, t2131, t2138, t2139, t214, t2143, t2147, t2160
     315             :       REAL(KIND=dp) :: t2169, t217, t218, t2182, t2183, t2187, t219, t2190, t2193, t2196, t2197, &
     316             :          t22, t220, t2200, t2201, t2204, t2205, t221, t2220, t2226, t2227, t2230, t224, t225, &
     317             :          t2257, t2261, t2264, t2268, t2272, t2274, t2276, t2279, t2280, t2281, t2282, t2285, &
     318             :          t2287, t2292, t2295, t2296, t2299, t23, t230, t2300, t2304, t2307, t2308, t2311, t2312, &
     319             :          t2319, t2326, t233, t234, t2351, t2368, t237, t2378, t2382, t2392, t24, t2404, t2418, &
     320             :          t2424, t2437, t2439, t245, t2451, t2455, t2468, t2480, t249, t2492, t25, t250, t2537, &
     321             :          t2552, t2565, t2569, t2576, t2585, t26, t260, t2611, t262, t2621, t2622
     322             :       REAL(KIND=dp) :: t2631, t2635, t2636, t264, t2645, t2655, t266, t267, t268, t27, t2707, &
     323             :          t271, t2720, t2724, t2732, t274, t275, t2759, t2763, t2779, t278, t2783, t2808, t2816, &
     324             :          t282, t2821, t2823, t283, t2833, t2843, t2853, t2869, t2873, t2877, t2885, t289, t290, &
     325             :          t2935, t2937, t294, t295, t298, t299, t2992, t2994, t2998, t302, t3026, t3030, t306, &
     326             :          t3069, t307, t3070, t308, t3085, t309, t3093, t3097, t3098, t31, t311, t3129, t313, &
     327             :          t3141, t316, t317, t318, t3181, t321, t322, t3232, t3244, t3248, t326, t3262, t3264, &
     328             :          t3268, t327, t3278, t328, t3288, t329, t3291, t3305, t3306, t3314, t332, t3329
     329             :       REAL(KIND=dp) :: t3339, t3344, t3347, t3352, t3353, t3356, t3357, t336, t3362, t3363, t3366, &
     330             :          t3378, t3379, t3382, t339, t341, t342, t343, t3449, t3453, t347, t3472, t3491, t3494, &
     331             :          t3497, t35, t350, t3501, t3505, t3507, t3512, t3513, t3514, t352, t3525, t3533, t3543, &
     332             :          t3546, t3547, t3552, t3553, t356, t3561, t3569, t357, t3575, t3576, t3580, t3581, t36, &
     333             :          t360, t3608, t3618, t362, t365, t366, t3668, t367, t3673, t3674, t3677, t3679, t368, &
     334             :          t3682, t37, t371, t3711, t372, t3726, t375, t3750, t376, t3763, t379, t3794, t3796, t380, &
     335             :          t3826, t3827, t383, t384, t3842, t3849, t3853, t3861, t3865, t3869
     336             :       REAL(KIND=dp) :: t387, t3871, t3875, t3892, t3918, t392, t3925, t393, t3933, t3939, t394, &
     337             :          t3940, t3965, t3969, t3975, t3979, t398, t3985, t399, t4, t40, t400, t401, t4010, t4018, &
     338             :          t4025, t4032, t405, t406, t4070, t4079, t41, t4101, t4108, t413, t4140, t4156, t417, t42, &
     339             :          t4201, t4214, t4230, t424, t425, t4255, t4256, t4261, t4272, t428, t429, t4292, t43, &
     340             :          t4317, t433, t4345, t4352, t437, t4378, t4392, t44, t4428, t444, t445, t446, t4466, &
     341             :          t4498, t45, t450, t4505, t451, t4512, t4545, t455, t4553, t4575, t4585, t46, t4607, t462, &
     342             :          t4627, t4657, t466, t4696, t47, t470, t4700, t4701, t4704, t4707
     343             :       REAL(KIND=dp) :: t4708, t471, t4713, t4714, t4717, t472, t4721, t4725, t4726, t4729, t473, &
     344             :          t4732, t4733, t4734, t4736, t4738, t4739, t474, t4743, t4744, t4748, t4760, t4764, t4768, &
     345             :          t4769, t4770, t4771, t4772, t4776, t478, t4782, t4786, t4789, t479, t4790, t4793, t4796, &
     346             :          t4797, t48, t4800, t4801, t4804, t4808, t4812, t4817, t4820, t4829, t4830, t4833, t4834, &
     347             :          t4837, t4838, t4849, t4850, t4853, t4857, t4861, t4864, t4869, t4872, t4874, t4878, &
     348             :          t4881, t4884, t4887, t4889, t489, t4893, t4895, t4897, t4898, t49, t4901, t4904, t4905, &
     349             :          t4907, t4908, t4909, t4911, t4915, t4917, t4918, t4920, t4922
     350             :       REAL(KIND=dp) :: t4925, t4929, t4932, t4935, t4940, t4941, t4943, t4945, t4946, t4951, &
     351             :          t4952, t4955, t4958, t496, t498, t4994, t4995, t50, t500, t5001, t5002, t5005, t5008, &
     352             :          t5009, t5011, t5013, t5016, t5019, t5022, t5025, t5028, t5029, t503, t5032, t5035, t5036, &
     353             :          t5040, t5043, t5044, t5047, t5050, t5051, t5060, t5065, t5069, t5079, t508, t5083, t5087, &
     354             :          t5106, t5108, t511, t5115, t5118, t512, t5122, t5123, t5126, t5139, t5143, t5147, t515, &
     355             :          t516, t5163, t517, t5170, t5174, t520, t5226, t5228, t5229, t5237, t5244, t5247, t5251, &
     356             :          t5256, t526, t5262, t527, t5270, t5271, t5276, t5280, t5281, t5284
     357             :       REAL(KIND=dp) :: t5291, t5294, t5295, t5298, t53, t530, t5301, t5303, t5305, t5308, t531, &
     358             :          t5311, t5314, t5317, t5320, t5323, t5326, t5329, t5330, t5333, t5335, t5338, t5339, t534, &
     359             :          t5342, t5343, t5345, t5347, t5351, t5354, t5357, t5360, t5363, t5367, t537, t5370, t5371, &
     360             :          t5373, t5376, t5379, t5383, t5386, t5389, t5397, t5400, t5402, t5406, t5409, t541, t5412, &
     361             :          t5415, t5418, t5421, t5423, t5426, t5429, t5430, t5432, t5436, t5440, t5443, t5446, &
     362             :          t5449, t5451, t5454, t5456, t5459, t5460, t5462, t5466, t5468, t5469, t5472, t5474, &
     363             :          t5478, t5480, t5482, t5484, t5487, t5489, t5492, t5494, t5496, t5499
     364             :       REAL(KIND=dp) :: t55, t550, t5503, t5507, t5509, t551, t5511, t5516, t5523, t5525, t5528, &
     365             :          t5531, t5533, t5535, t5537, t5540, t5541, t5545, t5548, t5551, t5553, t5558, t5560, &
     366             :          t5562, t5564, t5565, t5568, t557, t5572, t5574, t5575, t5579, t558, t5581, t5585, t5590, &
     367             :          t5593, t5595, t5597, t56, t5600, t5602, t5604, t5607, t561, t5610, t5611, t5613, t5619, &
     368             :          t5622, t5625, t5628, t5631, t5632, t5635, t5638, t5641, t5643, t5647, t5650, t5653, &
     369             :          t5657, t566, t5660, t5663, t5666, t5667, t567, t5670, t5671, t5673, t5676, t5679, t5682, &
     370             :          t5686, t5689, t569, t5692, t5695, t5696, t5698, t5699, t57, t5701, t5705
     371             :       REAL(KIND=dp) :: t5713, t5716, t5719, t5722, t5724, t5728, t5731, t5734, t5738, t5741, &
     372             :          t5742, t5745, t5749, t575, t5752, t5756, t5760, t5767, t5770, t5773, t5776, t5780, t5783, &
     373             :          t5786, t5789, t579, t5792, t5795, t5797, t58, t5801, t5804, t5807, t5810, t5813, t5816, &
     374             :          t5819, t5822, t5825, t5828, t5830, t5831, t5833, t5835, t5838, t5841, t5845, t5848, t585, &
     375             :          t5850, t5854, t5857, t5861, t5864, t5868, t5869, t5875, t5880, t5881, t5885, t5888, t589, &
     376             :          t5891, t5898, t59, t590, t5902, t5905, t5908, t5911, t5913, t5918, t5922, t5925, t5926, &
     377             :          t5929, t593, t5932, t5938, t5940, t5942, t5944, t5949, t5952
     378             :       REAL(KIND=dp) :: t5954, t5956, t5958, t5960, t5963, t5964, t5966, t597, t5971, t5973, t5975, &
     379             :          t5977, t5978, t598, t5985, t5990, t5994, t5996, t6, t60, t6000, t6002, t6004, t6006, &
     380             :          t6009, t6017, t6019, t6021, t6023, t6025, t6029, t6031, t6033, t6036, t6040, t6042, &
     381             :          t6044, t6047, t6049, t605, t6052, t6053, t6056, t6058, t6060, t6063, t6066, t6074, t6075, &
     382             :          t6078, t6079, t608, t6087, t609, t6090, t6091, t6094, t6099, t61, t6102, t6106, t6109, &
     383             :          t6112, t6116, t6119, t6123, t6126, t6129, t6132, t6136, t6138, t614, t6141, t6144, t615, &
     384             :          t6155, t6158, t6160, t6162, t6170, t6173, t6175, t6179, t6181, t6185
     385             :       REAL(KIND=dp) :: t6186, t6189, t6192, t6194, t6198, t62, t6201, t6207, t6210, t6213, t6216, &
     386             :          t6219, t6222, t6223, t6227, t624, t6247, t6249, t6252, t6253, t6256, t6257, t6260, t6263, &
     387             :          t6267, t6268, t627, t6271, t628, t6281, t6283, t6290, t6291, t63, t6308, t6338, t6339, &
     388             :          t6344, t635, t6352, t6363, t6367, t637, t6370, t6373, t6375, t6380, t6389, t640, t6400, &
     389             :          t6415, t6428, t6433, t6442, t645, t6451, t646, t6461, t6479, t649, t6490, t6499, t65, &
     390             :          t650, t6509, t6529, t653, t6539, t6554, t6557, t6569, t657, t658, t6583, t6596, t66, &
     391             :          t6603, t6611, t6620, t6621, t6630, t6640, t6658, t6665, t6669, t668
     392             :       REAL(KIND=dp) :: t67, t672, t673, t679, t68, t689, t69, t7, t70, t705, t707, t708, t709, &
     393             :          t71, t710, t713, t716, t719, t722, t723, t728, t729, t732, t735, t739, t74, t747, t753, &
     394             :          t754, t764, t765, t766, t769, t772, t773, t776, t777, t78, t782, t785, t786, t787, t79, &
     395             :          t790, t792, t795, t796, t797, t8, t800, t801, t804, t815, t822, t826, t827, t83, t833, &
     396             :          t84, t85, t851, t852, t855, t857, t859, t86, t862, t863, t864, t865, t866, t867, t87, &
     397             :          t874, t877, t878, t88, t881, t882, t886, t889, t893, t894, t897, t9, t905, t906, t907, &
     398             :          t914, t918, t92, t922, t923, t926, t929, t93, t930, t94, t940, t941
     399             :       REAL(KIND=dp) :: t942, t944, t946, t949, t95, t950, t953, t954, t955, t958, t959, t962, &
     400             :          t963, t966, t969, t97, t972, t973, t974, t975, t976, t979, t98, t980, t983, t984, t987, &
     401             :          t99, t991, t995, t997, xx
     402             : 
     403         104 :       my_epsilon_rho = epsilon_rho
     404             :       epsilon_rho43 = my_epsilon_rho**(4.0_dp/3.0_dp)
     405         104 :       Cx = 1.5_dp*(3.0_dp/4.0_dp/pi)**(1.0_dp/3.0_dp)
     406             : 
     407             : !$OMP     DO
     408             :       DO ii = 1, npoints
     409             :          !! scale densities with 0.5 because code comes from LSD
     410     4224064 :          my_rho = rho(ii)*0.5_dp
     411     4224064 :          my_ndrho = norm_drho(ii)*0.5_dp
     412     4224064 :          IF (my_rho > my_epsilon_rho) THEN
     413     1218022 :             IF (grad_deriv >= 0) THEN
     414             :                t1 = my_rho**(0.1e1_dp/0.3e1_dp)
     415     1218022 :                xx = my_ndrho*MAX(1.0_dp/t1/my_rho, epsilon_rho43)
     416     1218022 :                t4 = lambda*my_rho
     417     1218022 :                t6 = my_ndrho**2
     418     1218022 :                t7 = beta*t6
     419     1218022 :                t8 = lambda**2
     420     1218022 :                t9 = t8**2
     421     1218022 :                t10 = t9**2
     422     1218022 :                t11 = 0.1e1_dp/t10
     423     1218022 :                t12 = my_rho**2
     424     1218022 :                t13 = t9*t8
     425     1218022 :                t14 = 0.1e1_dp/t13
     426     1218022 :                t15 = t12*t14
     427     1218022 :                t16 = t8*lambda
     428     1218022 :                t17 = 0.1e1_dp/t16
     429     1218022 :                t18 = my_rho*t17
     430     1218022 :                t19 = t18**(0.1e1_dp/0.3e1_dp)
     431     1218022 :                t20 = t19**2
     432     1218022 :                t22 = 0.1e1_dp/t20/t15
     433     1218022 :                t23 = t11*t22
     434     1218022 :                t24 = beta*my_ndrho
     435     1218022 :                t25 = 0.1e1_dp/t9
     436     1218022 :                t26 = t19*t18
     437     1218022 :                t27 = 0.1e1_dp/t26
     438             :                t31 = LOG(my_ndrho*t25*t27 + SQRT((my_ndrho*t25*t27)**0.2e1_dp + &
     439     1218022 :                                                  0.1e1_dp))
     440     1218022 :                t35 = 0.10e1_dp + 0.60e1_dp*t24*t25*t27*t31
     441     1218022 :                t36 = 0.1e1_dp/t35
     442     1218022 :                t37 = t23*t36
     443     1218022 :                t40 = 0.20e1_dp*Cx + 0.20e1_dp*t7*t37
     444     1218022 :                t41 = SQRT(t40)
     445     1218022 :                t42 = t41*t40
     446     1218022 :                t43 = t4*t42
     447     1218022 :                t44 = rootpi
     448     1218022 :                t45 = 0.1e1_dp/t44
     449     1218022 :                t46 = omega*t45
     450     1218022 :                t47 = 0.1e1_dp/omega
     451     1218022 :                t48 = 0.1e1_dp/t41
     452     1218022 :                t49 = t47*t48
     453     1218022 :                t50 = t44*t19
     454     1218022 :                t53 = erf(0.3000000000e1_dp*t49*t50)
     455     1218022 :                t55 = omega*t41
     456     1218022 :                t56 = 0.1e1_dp/t19
     457     1218022 :                t57 = t45*t56
     458     1218022 :                t58 = omega**2
     459     1218022 :                t59 = 0.1e1_dp/t58
     460     1218022 :                t60 = 0.1e1_dp/t40
     461     1218022 :                t61 = t59*t60
     462     1218022 :                t62 = pi*t20
     463     1218022 :                t63 = t61*t62
     464     1218022 :                t65 = EXP(-0.8999999998e1_dp*t63)
     465     1218022 :                t66 = t58*t40
     466     1218022 :                t67 = 0.1e1_dp/pi
     467     1218022 :                t68 = 0.1e1_dp/t20
     468     1218022 :                t69 = t67*t68
     469     1218022 :                t70 = t65 - 0.10e1_dp
     470     1218022 :                t71 = t69*t70
     471     1218022 :                t74 = t65 - 0.15e1_dp - 0.5555555558e-1_dp*t66*t71
     472     1218022 :                t78 = t44*t53 + 0.3333333334e0_dp*t55*t57*t74
     473     1218022 :                t79 = t46*t78
     474     1218022 :                t83 = my_rho*t41*omega
     475     1218022 :                t84 = t45*t78
     476     1218022 :                t85 = t10*lambda
     477     1218022 :                t86 = 0.1e1_dp/t85
     478     1218022 :                t87 = t86*t22
     479     1218022 :                t88 = t87*t36
     480     1218022 :                t92 = 0.1e1_dp/t10/t9
     481     1218022 :                t93 = t7*t92
     482     1218022 :                t94 = t12*my_rho
     483     1218022 :                t95 = t94*t86
     484     1218022 :                t97 = 0.1e1_dp/t20/t95
     485     1218022 :                t98 = t97*t36
     486     1218022 :                t99 = t98*my_rho
     487     1218022 :                t102 = t7*t11
     488     1218022 :                t103 = t35**2
     489     1218022 :                t104 = 0.1e1_dp/t103
     490     1218022 :                t105 = t22*t104
     491     1218022 :                t106 = t9*lambda
     492     1218022 :                t107 = 0.1e1_dp/t106
     493     1218022 :                t108 = t107*t27
     494     1218022 :                t112 = t24*t11
     495     1218022 :                t114 = 0.1e1_dp/t19/t15
     496     1218022 :                t115 = t114*t31
     497     1218022 :                t116 = t115*my_rho
     498     1218022 :                t119 = t24*t25
     499     1218022 :                t122 = my_ndrho*t11
     500     1218022 :                t123 = t114*my_rho
     501     1218022 :                t126 = -4*my_ndrho*t107*t27 + 4*t122*t123
     502     1218022 :                t130 = 1 + t6*t11*t22
     503     1218022 :                t131 = SQRT(t130)
     504     1218022 :                t132 = 0.1e1_dp/t131
     505     1218022 :                t133 = t27*t126*t132
     506             :                t136 = -0.240e2_dp*t24*t108*t31 + 0.240e2_dp*t112*t116 + 0.60e1_dp &
     507     1218022 :                       *t119*t133
     508     1218022 :                t137 = t105*t136
     509             :                t140 = -0.160e2_dp*t7*t88 + 0.160e2_dp*t93*t99 - 0.20e1_dp*t102* &
     510     1218022 :                       t137
     511     1218022 :                t141 = t84*t140
     512     1218022 :                t144 = my_rho*t42
     513     1218022 :                t145 = SQRT(0.3141592654e1_dp)
     514     1218022 :                t146 = 0.1e1_dp/t145
     515     1218022 :                t147 = t44*t146
     516     1218022 :                t149 = EXP(-0.9000000000e1_dp*t63)
     517     1218022 :                t150 = 0.1e1_dp/t42
     518     1218022 :                t151 = t47*t150
     519     1218022 :                t155 = t49*t44
     520     1218022 :                t156 = t68*my_rho
     521             :                t160 = -0.1500000000e1_dp*t151*t50*t140 - 0.3000000000e1_dp*t155 &
     522     1218022 :                       *t156*t25
     523     1218022 :                t161 = t149*t160
     524     1218022 :                t164 = omega*t48
     525     1218022 :                t165 = t164*t45
     526     1218022 :                t166 = t56*t74
     527     1218022 :                t170 = t55*t45
     528     1218022 :                t171 = t27*t74
     529     1218022 :                t172 = my_rho*t25
     530     1218022 :                t176 = t40**2
     531     1218022 :                t177 = 0.1e1_dp/t176
     532     1218022 :                t178 = t59*t177
     533     1218022 :                t182 = t61*pi
     534     1218022 :                t183 = t56*my_rho
     535             :                t187 = 0.8999999998e1_dp*t178*t62*t140 + 0.1800000000e2_dp*t182* &
     536     1218022 :                       t183*t25
     537     1218022 :                t189 = t58*t140
     538     1218022 :                t192 = t66*t67
     539     1218022 :                t194 = 0.1e1_dp/t20/t18
     540     1218022 :                t195 = t194*t70
     541     1218022 :                t196 = t195*t172
     542     1218022 :                t199 = t68*t187
     543     1218022 :                t200 = t199*t65
     544             :                t203 = t187*t65 - 0.5555555558e-1_dp*t189*t71 - 0.1111111112e0_dp* &
     545     1218022 :                       t192*t196 - 0.5555555558e-1_dp*t192*t200
     546             :                t207 = (2*t147*t161) + 0.1666666667e0_dp*t165*t166*t140 &
     547             :                       + 0.3333333334e0_dp*t170*t171*t172 + 0.3333333334e0_dp*t55*t57 &
     548     1218022 :                       *t203
     549             :                !! Multiply with 2.0 because Code comes from LSD
     550             : 
     551             :                e_0(ii) = e_0(ii) + (-0.4444444448e0_dp*t43*t79 + t8*(-0.3333333336e0_dp*t83*t141 &
     552     1218022 :                                                                      - 0.2222222224e0_dp*t144*t46*t207))*sx*2.0_dp
     553             :             END IF
     554     1218022 :             IF (grad_deriv >= 1 .OR. grad_deriv == -1) THEN
     555      398229 :                t214 = lambda*t42
     556      398229 :                t217 = t4*t41
     557      398229 :                t218 = t10*t16
     558      398229 :                t219 = 0.1e1_dp/t218
     559      398229 :                t220 = t219*t97
     560      398229 :                t221 = t220*t36
     561      398229 :                t224 = t9*t16
     562      398229 :                t225 = 0.1e1_dp/t224
     563      398229 :                t230 = t220*t132
     564             :                t233 = -0.8000000000e1_dp*t24*t225*t114*t31 - 0.8000000000e1_dp* &
     565      398229 :                       t7*t230
     566      398229 :                t234 = t105*t233
     567      398229 :                t237 = -0.5333333333e1_dp*t7*t221 - 0.20e1_dp*t102*t234
     568      398229 :                t245 = t44*t68
     569             :                t249 = -0.1500000000e1_dp*t151*t50*t237 + 0.1000000000e1_dp*t49* &
     570      398229 :                       t245*t17
     571      398229 :                t250 = t149*t249
     572      398229 :                t260 = t178*t62*t237
     573      398229 :                t262 = pi*t56
     574      398229 :                t264 = t61*t262*t17
     575      398229 :                t266 = 0.8999999998e1_dp*t260 - 0.5999999999e1_dp*t264
     576      398229 :                t267 = t266*t65
     577      398229 :                t268 = t58*t237
     578      398229 :                t271 = t195*t17
     579      398229 :                t274 = t68*t266
     580      398229 :                t275 = t274*t65
     581             :                t278 = t267 - 0.5555555558e-1_dp*t268*t71 + 0.3703703705e-1_dp*t192 &
     582      398229 :                       *t271 - 0.5555555558e-1_dp*t192*t275
     583             :                t282 = (2*t147*t250) + 0.1666666667e0_dp*t165*t166*t237 &
     584             :                       - 0.1111111111e0_dp*t170*t171*t17 + 0.3333333334e0_dp*t55*t57 &
     585      398229 :                       *t278
     586      398229 :                t283 = t46*t282
     587      398229 :                t289 = my_rho*t48*omega
     588      398229 :                t290 = t140*t237
     589      398229 :                t294 = t45*t282
     590      398229 :                t295 = t294*t140
     591      398229 :                t298 = t92*t97
     592      398229 :                t299 = t298*t36
     593      398229 :                t302 = t7*t86
     594      398229 :                t306 = 0.1e1_dp/t10/t224
     595      398229 :                t307 = t7*t306
     596      398229 :                t308 = t12**2
     597      398229 :                t309 = t308*t92
     598      398229 :                t311 = 0.1e1_dp/t20/t309
     599      398229 :                t313 = t311*t36*my_rho
     600      398229 :                t316 = t97*t104
     601      398229 :                t317 = my_rho*t233
     602      398229 :                t318 = t316*t317
     603      398229 :                t321 = t7*t219
     604      398229 :                t322 = t316*t136
     605      398229 :                t326 = 0.1e1_dp/t103/t35
     606      398229 :                t327 = t22*t326
     607      398229 :                t328 = t136*t233
     608      398229 :                t329 = t327*t328
     609      398229 :                t332 = t11*t114
     610      398229 :                t336 = t298*t132
     611      398229 :                t339 = t24*t219
     612      398229 :                t341 = 0.1e1_dp/t19/t95
     613      398229 :                t342 = t341*t31
     614      398229 :                t343 = t342*my_rho
     615      398229 :                t347 = t311*t132*my_rho
     616      398229 :                t350 = t24*t225
     617      398229 :                t352 = t114*t126*t132
     618      398229 :                t356 = my_ndrho*t219
     619      398229 :                t357 = t341*my_rho
     620      398229 :                t360 = 0.28e2_dp/0.3e1_dp*t122*t114 - 0.28e2_dp/0.3e1_dp*t356*t357
     621      398229 :                t362 = t27*t360*t132
     622      398229 :                t365 = t6*my_ndrho
     623      398229 :                t366 = beta*t365
     624      398229 :                t367 = t308*my_rho
     625      398229 :                t368 = 0.1e1_dp/t367
     626      398229 :                t371 = 0.1e1_dp/t131/t130
     627      398229 :                t372 = t368*t126*t371
     628             :                t375 = 0.5600000000e2_dp*t24*t332*t31 + 0.3200000000e2_dp*t7*t336 &
     629             :                       - 0.5600000000e2_dp*t339*t343 - 0.3200000000e2_dp*t307*t347 - &
     630             :                       0.8000000000e1_dp*t350*t352 + 0.60e1_dp*t119*t362 + 0.8000000000e1_dp &
     631      398229 :                       *t366*t372
     632      398229 :                t376 = t105*t375
     633             :                t379 = 0.5866666667e2_dp*t7*t299 + 0.160e2_dp*t302*t234 - 0.5866666667e2_dp &
     634             :                       *t307*t313 - 0.160e2_dp*t93*t318 + 0.5333333333e1_dp*t321 &
     635      398229 :                       *t322 + 0.40e1_dp*t102*t329 - 0.20e1_dp*t102*t376
     636      398229 :                t380 = t84*t379
     637      398229 :                t383 = t42*omega
     638      398229 :                t384 = t45*t207
     639      398229 :                t387 = t384*t237
     640      398229 :                t392 = 0.9000000000e1_dp*t260 - 0.6000000000e1_dp*t264
     641      398229 :                t393 = t392*t149
     642      398229 :                t394 = t393*t160
     643      398229 :                t398 = 0.1e1_dp/t41/t176
     644      398229 :                t399 = t47*t398
     645      398229 :                t400 = t399*t44
     646      398229 :                t401 = t19*t140
     647      398229 :                t405 = t151*t44
     648      398229 :                t406 = t68*t140
     649      398229 :                t413 = t25*t237
     650      398229 :                t417 = t194*my_rho
     651             :                t424 = 0.2250000000e1_dp*t400*t401*t237 - 0.5000000000e0_dp*t405 &
     652             :                       *t406*t17 - 0.1500000000e1_dp*t151*t50*t379 + 0.1500000000e1_dp &
     653             :                       *t405*t156*t413 + 0.2000000000e1_dp*t155*t417*t225 - 0.3000000000e1_dp &
     654      398229 :                       *t49*t245*t25
     655      398229 :                t425 = t149*t424
     656      398229 :                t428 = omega*t150
     657      398229 :                t429 = t428*t45
     658      398229 :                t433 = t140*t17
     659      398229 :                t437 = t56*t278
     660      398229 :                t444 = t45*t27
     661      398229 :                t445 = t164*t444
     662      398229 :                t446 = t74*my_rho
     663      398229 :                t450 = t114*t74
     664      398229 :                t451 = my_rho*t225
     665      398229 :                t455 = t27*t278
     666      398229 :                t462 = t56*t203
     667      398229 :                t466 = t27*t203
     668      398229 :                t470 = t176*t40
     669      398229 :                t471 = 0.1e1_dp/t470
     670      398229 :                t472 = t59*t471
     671      398229 :                t473 = t472*pi
     672      398229 :                t474 = t20*t140
     673      398229 :                t478 = t178*pi
     674      398229 :                t479 = t56*t140
     675      398229 :                t489 = t27*my_rho
     676             :                t496 = -0.1800000000e2_dp*t473*t474*t237 + 0.5999999999e1_dp*t478 &
     677             :                       *t479*t17 + 0.8999999998e1_dp*t178*t62*t379 - 0.1800000000e2_dp &
     678             :                       *t478*t183*t413 - 0.6000000000e1_dp*t182*t489*t225 + 0.1800000000e2_dp &
     679      398229 :                       *t61*t262*t25
     680      398229 :                t498 = t187*t266
     681      398229 :                t500 = t58*t379
     682      398229 :                t503 = t189*t67
     683      398229 :                t508 = t268*t67
     684      398229 :                t511 = t22*t70
     685      398229 :                t512 = t511*t451
     686      398229 :                t515 = t67*t194
     687      398229 :                t516 = t66*t515
     688      398229 :                t517 = t267*t172
     689      398229 :                t520 = t195*t25
     690      398229 :                t526 = t65*t17
     691      398229 :                t527 = t194*t187*t526
     692      398229 :                t530 = t68*t496
     693      398229 :                t531 = t530*t65
     694      398229 :                t534 = t199*t267
     695             :                t537 = t496*t65 + t498*t65 - 0.5555555558e-1_dp*t500*t71 + 0.3703703705e-1_dp &
     696             :                       *t503*t271 - 0.5555555558e-1_dp*t503*t275 - 0.1111111112e0_dp &
     697             :                       *t508*t196 + 0.1851851853e0_dp*t192*t512 - 0.1111111112e0_dp &
     698             :                       *t516*t517 - 0.1111111112e0_dp*t192*t520 - 0.5555555558e-1_dp &
     699             :                       *t508*t200 + 0.3703703705e-1_dp*t192*t527 - 0.5555555558e-1_dp &
     700      398229 :                       *t192*t531 - 0.5555555558e-1_dp*t192*t534
     701             :                t541 = (2*t147*t394) + (2*t147*t425) - 0.8333333335e-1_dp &
     702             :                       *t429*t166*t290 - 0.5555555557e-1_dp*t165*t171*t433 + &
     703             :                       0.1666666667e0_dp*t165*t437*t140 + 0.1666666667e0_dp*t165*t166 &
     704             :                       *t379 + 0.1666666667e0_dp*t445*t446*t413 - 0.4444444445e0_dp*t170 &
     705             :                       *t450*t451 + 0.3333333334e0_dp*t170*t455*t172 + 0.3333333334e0_dp &
     706             :                       *t170*t171*t25 + 0.1666666667e0_dp*t165*t462*t237 - &
     707             :                       0.1111111111e0_dp*t170*t466*t17 + 0.3333333334e0_dp*t55*t57* &
     708      398229 :                       t537
     709             :                e_rho(ii) = e_rho(ii) + (-0.4444444448e0_dp*t214*t79 - 0.6666666672e0_dp*t217*t46 &
     710             :                                         *t78*t237 - 0.4444444448e0_dp*t43*t283 + t8*(-0.3333333336e0_dp &
     711             :                                                                    *t55*t141 - 0.1666666668e0_dp*t289*t84*t290 - 0.3333333336e0_dp &
     712             :                                                                    *t83*t295 - 0.3333333336e0_dp*t83*t380 - 0.2222222224e0_dp*t383 &
     713             :                                                                       *t384 - 0.3333333336e0_dp*t83*t387 - 0.2222222224e0_dp*t144* &
     714      398229 :                                                                                      t46*t541))*sx
     715      398229 :                t550 = beta*t25
     716      398229 :                t551 = t27*t31
     717      398229 :                t557 = 0.60e1_dp*t550*t551 + 0.60e1_dp*t24*t23*t132
     718      398229 :                t558 = t105*t557
     719      398229 :                t561 = 0.40e1_dp*t24*t37 - 0.20e1_dp*t102*t558
     720      398229 :                t566 = pi*t146
     721      398229 :                t567 = t566*t149
     722      398229 :                t569 = t151*t19*t561
     723      398229 :                t575 = t20*t561
     724      398229 :                t579 = t58*t561
     725             :                t585 = 0.8999999998e1_dp*t478*t575*t65 - 0.5555555558e-1_dp*t579 &
     726      398229 :                       *t71 - 0.5000000001e0_dp*t60*t561*t65
     727             :                t589 = -0.3000000000e1_dp*t567*t569 + 0.1666666667e0_dp*t165*t166 &
     728      398229 :                       *t561 + 0.3333333334e0_dp*t55*t57*t585
     729      398229 :                t590 = t46*t589
     730      398229 :                t593 = t140*t561
     731      398229 :                t597 = t45*t589
     732      398229 :                t598 = t597*t140
     733      398229 :                t605 = t24*t92
     734      398229 :                t608 = my_rho*t557
     735      398229 :                t609 = t316*t608
     736      398229 :                t614 = t136*t557
     737      398229 :                t615 = t327*t614
     738      398229 :                t624 = beta*t11
     739      398229 :                t627 = t97*t132
     740      398229 :                t628 = t627*my_rho
     741      398229 :                t635 = -4*t108 + 4*t332*my_rho
     742      398229 :                t637 = t27*t635*t132
     743      398229 :                t640 = 0.1e1_dp/t308
     744             :                t645 = -0.240e2_dp*beta*t107*t551 - 0.240e2_dp*t24*t87*t132 + &
     745             :                       0.240e2_dp*t624*t116 + 0.240e2_dp*t605*t628 + 0.60e1_dp*t550*t133 &
     746      398229 :                       + 0.60e1_dp*t119*t637 - 0.60e1_dp*t7*t640*t126*t371
     747      398229 :                t646 = t105*t645
     748             :                t649 = -0.320e2_dp*t24*t88 + 0.160e2_dp*t302*t558 + 0.320e2_dp*t605 &
     749             :                       *t99 - 0.160e2_dp*t93*t609 - 0.40e1_dp*t112*t137 + 0.40e1_dp*t102 &
     750      398229 :                       *t615 - 0.20e1_dp*t102*t646
     751      398229 :                t650 = t84*t649
     752      398229 :                t653 = t384*t561
     753      398229 :                t657 = t44*pi*t146
     754      398229 :                t658 = t657*t178
     755      398229 :                t668 = t25*t561
     756             :                t672 = 0.2250000000e1_dp*t400*t401*t561 - 0.1500000000e1_dp*t151 &
     757      398229 :                       *t50*t649 + 0.1500000000e1_dp*t405*t156*t668
     758      398229 :                t673 = t149*t672
     759      398229 :                t679 = t56*t585
     760      398229 :                t689 = t27*t585
     761             :                t705 = -0.1800000000e2_dp*t473*t474*t561 + 0.8999999998e1_dp*t178 &
     762      398229 :                       *t62*t649 - 0.1800000000e2_dp*t478*t183*t668
     763      398229 :                t707 = t187*t59
     764      398229 :                t708 = t707*t177
     765      398229 :                t709 = t561*t65
     766      398229 :                t710 = t62*t709
     767      398229 :                t713 = t58*t649
     768      398229 :                t716 = t140*t177
     769      398229 :                t719 = t579*t67
     770      398229 :                t722 = 0.1e1_dp/lambda
     771      398229 :                t723 = t60*t722
     772      398229 :                t728 = t68*t705
     773      398229 :                t729 = t728*t65
     774      398229 :                t732 = t60*t187
     775             :                t735 = t705*t65 + 0.8999999998e1_dp*t708*t710 - 0.5555555558e-1_dp &
     776             :                       *t713*t71 - 0.5000000001e0_dp*t716*t709 - 0.1111111112e0_dp*t719 &
     777             :                       *t196 - 0.1000000001e1_dp*t723*t709 - 0.5555555558e-1_dp*t719* &
     778      398229 :                       t200 - 0.5555555558e-1_dp*t192*t729 - 0.5000000001e0_dp*t732*t709
     779             :                t739 = 0.1800000000e2_dp*t658*t575*t161 + (2*t147*t673) &
     780             :                       - 0.8333333335e-1_dp*t429*t166*t593 + 0.1666666667e0_dp*t165*t679 &
     781             :                       *t140 + 0.1666666667e0_dp*t165*t166*t649 + 0.1666666667e0_dp &
     782             :                       *t445*t446*t668 + 0.3333333334e0_dp*t170*t689*t172 + 0.1666666667e0_dp &
     783      398229 :                       *t165*t462*t561 + 0.3333333334e0_dp*t55*t57*t735
     784             :                e_ndrho(ii) = e_ndrho(ii) + (-0.6666666672e0_dp*t217*t46*t78*t561 - 0.4444444448e0_dp &
     785             :                                             *t43*t590 + t8*(-0.1666666668e0_dp*t289*t84*t593 - 0.3333333336e0_dp &
     786             :                                                             *t83*t598 - 0.3333333336e0_dp*t83*t650 - 0.3333333336e0_dp &
     787      398229 :                                                             *t83*t653 - 0.2222222224e0_dp*t144*t46*t739))*sx
     788             :             END IF
     789             : 
     790     1218022 :             IF (grad_deriv >= 2 .OR. grad_deriv == -2) THEN
     791           0 :                t747 = lambda*t41*omega
     792           0 :                t753 = t4*t48
     793           0 :                t754 = t237**2
     794           0 :                t764 = 0.1e1_dp/t10/t13
     795           0 :                t765 = t764*t311
     796           0 :                t766 = t765*t36
     797           0 :                t769 = t316*t233
     798           0 :                t772 = t233**2
     799           0 :                t773 = t327*t772
     800           0 :                t776 = t10*t8
     801           0 :                t777 = 0.1e1_dp/t776
     802           0 :                t782 = t765*t132
     803           0 :                t785 = t6**2
     804           0 :                t786 = beta*t785
     805           0 :                t787 = t10**2
     806           0 :                t790 = t308*t94
     807           0 :                t792 = 0.1e1_dp/t787/t106
     808           0 :                t795 = 0.1e1_dp/t19/t790/t792
     809           0 :                t796 = 0.1e1_dp/t787/t13*t795
     810           0 :                t797 = t796*t371
     811             :                t800 = 0.1866666667e2_dp*t24*t777*t341*t31 + 0.4000000000e2_dp* &
     812           0 :                       t7*t782 - 0.1066666667e2_dp*t786*t797
     813           0 :                t801 = t105*t800
     814             :                t804 = 0.1955555555e2_dp*t7*t766 + 0.1066666667e2_dp*t321*t769 + &
     815           0 :                       0.40e1_dp*t102*t773 - 0.20e1_dp*t102*t801
     816           0 :                t815 = t68*t237
     817           0 :                t822 = t44*t194
     818             :                t826 = 0.2250000000e1_dp*t399*t50*t754 - 0.1000000000e1_dp*t405* &
     819             :                       t815*t17 - 0.1500000000e1_dp*t151*t50*t804 - 0.6666666667e0_dp &
     820           0 :                       *t49*t822*t14
     821           0 :                t827 = t149*t826
     822           0 :                t833 = t237*t17
     823           0 :                t851 = 0.1800000000e2_dp*t472*t62*t754
     824           0 :                t852 = t56*t237
     825           0 :                t855 = 0.1200000000e2_dp*t478*t852*t17
     826           0 :                t857 = t178*t62*t804
     827           0 :                t859 = pi*t27
     828           0 :                t862 = 0.2000000000e1_dp*t61*t859*t14
     829           0 :                t863 = -t851 + t855 + 0.8999999998e1_dp*t857 + t862
     830           0 :                t864 = t863*t65
     831           0 :                t865 = t266**2
     832           0 :                t866 = t865*t65
     833           0 :                t867 = t58*t804
     834           0 :                t874 = t511*t14
     835           0 :                t877 = t194*t266
     836           0 :                t878 = t877*t526
     837           0 :                t881 = t68*t863
     838           0 :                t882 = t881*t65
     839           0 :                t886 = t68*t865*t65
     840             :                t889 = t864 + t866 - 0.5555555558e-1_dp*t867*t71 + 0.7407407410e-1_dp &
     841             :                       *t508*t271 - 0.1111111112e0_dp*t508*t275 - 0.6172839508e-1_dp* &
     842             :                       t192*t874 + 0.7407407410e-1_dp*t192*t878 - 0.5555555558e-1_dp*t192 &
     843           0 :                       *t882 - 0.5555555558e-1_dp*t192*t886
     844             :                t893 = (2*t147*t393*t249) + (2*t147*t827) - 0.8333333335e-1_dp &
     845             :                       *t429*t166*t754 - 0.1111111111e0_dp*t165*t171*t833 &
     846             :                       + 0.3333333334e0_dp*t165*t437*t237 + 0.1666666667e0_dp*t165 &
     847             :                       *t166*t804 + 0.1481481481e0_dp*t170*t450*t14 - 0.2222222222e0_dp &
     848           0 :                       *t170*t455*t17 + 0.3333333334e0_dp*t55*t57*t889
     849           0 :                t894 = t46*t893
     850           0 :                t897 = t78*t140
     851           0 :                t905 = my_rho*t150
     852           0 :                t906 = t905*omega
     853           0 :                t907 = t140*t754
     854           0 :                t914 = t379*t237
     855           0 :                t918 = t140*t804
     856           0 :                t922 = t45*t893
     857           0 :                t923 = t922*t140
     858           0 :                t926 = t294*t379
     859           0 :                t929 = t306*t311
     860           0 :                t930 = t929*t36
     861           0 :                t940 = 0.1e1_dp/t787/t8
     862           0 :                t941 = t7*t940
     863           0 :                t942 = t367*t306
     864           0 :                t944 = 0.1e1_dp/t20/t942
     865           0 :                t946 = t944*t36*my_rho
     866           0 :                t949 = t311*t104
     867           0 :                t950 = t949*t317
     868           0 :                t953 = t97*t326
     869           0 :                t954 = my_rho*t772
     870           0 :                t955 = t953*t954
     871           0 :                t958 = my_rho*t800
     872           0 :                t959 = t316*t958
     873           0 :                t962 = t7*t764
     874           0 :                t963 = t949*t136
     875           0 :                t966 = t953*t328
     876           0 :                t969 = t316*t375
     877           0 :                t972 = t103**2
     878           0 :                t973 = 0.1e1_dp/t972
     879           0 :                t974 = t22*t973
     880           0 :                t975 = t136*t772
     881           0 :                t976 = t974*t975
     882           0 :                t979 = t375*t233
     883           0 :                t980 = t327*t979
     884           0 :                t983 = t136*t800
     885           0 :                t984 = t327*t983
     886           0 :                t987 = t219*t341
     887           0 :                t991 = t929*t132
     888           0 :                t995 = 0.1e1_dp/t787/t224
     889           0 :                t997 = t995*t795*t371
     890           0 :                t1000 = t24*t764
     891           0 :                t1002 = 0.1e1_dp/t19/t309
     892           0 :                t1004 = t1002*t31*my_rho
     893           0 :                t1008 = t944*t132*my_rho
     894           0 :                t1012 = 0.1e1_dp/t787/t776
     895           0 :                t1014 = t308**2
     896           0 :                t1019 = 0.1e1_dp/t19/t1014*t787*t10
     897           0 :                t1021 = t1019*t371*my_rho
     898           0 :                t1024 = t24*t777
     899           0 :                t1026 = t341*t126*t132
     900           0 :                t1030 = t114*t360*t132
     901           0 :                t1033 = t308*t12
     902           0 :                t1034 = 0.1e1_dp/t1033
     903           0 :                t1036 = t1034*t126*t371
     904           0 :                t1040 = my_ndrho*t764
     905             :                t1044 = -0.280e3_dp/0.9e1_dp*t356*t341 + 0.280e3_dp/0.9e1_dp*t1040* &
     906           0 :                        t1002*my_rho
     907           0 :                t1046 = t27*t1044*t132
     908           0 :                t1050 = t368*t360*t371
     909           0 :                t1054 = beta*t785*my_ndrho
     910           0 :                t1055 = t1054*t368
     911           0 :                t1056 = t130**2
     912           0 :                t1058 = 0.1e1_dp/t131/t1056
     913           0 :                t1059 = t126*t1058
     914           0 :                t1060 = t1059*t220
     915             :                t1063 = -0.1866666667e3_dp*t24*t987*t31 - 0.2240000000e3_dp*t7* &
     916             :                        t991 + 0.4266666667e2_dp*t786*t997 + 0.1866666667e3_dp*t1000*t1004 &
     917             :                        + 0.2240000000e3_dp*t941*t1008 - 0.4266666667e2_dp*t786*t1012 &
     918             :                        *t1021 + 0.1866666667e2_dp*t1024*t1026 - 0.1600000000e2_dp*t350 &
     919             :                        *t1030 - 0.5066666667e2_dp*t366*t1036 + 0.60e1_dp*t119*t1046 + &
     920           0 :                        0.1600000000e2_dp*t366*t1050 + 0.3200000000e2_dp*t1055*t1060
     921           0 :                t1064 = t105*t1063
     922             :                t1067 = -0.2737777778e3_dp*t7*t930 - 0.1173333333e3_dp*t93*t769 - &
     923             :                        0.320e2_dp*t302*t773 + 0.160e2_dp*t302*t801 + 0.2737777778e3_dp* &
     924             :                        t941*t946 + 0.1173333333e3_dp*t307*t950 + 0.320e2_dp*t93*t955 &
     925             :                        - 0.160e2_dp*t93*t959 - 0.1955555555e2_dp*t962*t963 - 0.2133333334e2_dp &
     926             :                        *t321*t966 + 0.1066666667e2_dp*t321*t969 - 0.120e2_dp*t102 &
     927             :                        *t976 + 0.80e1_dp*t102*t980 + 0.40e1_dp*t102*t984 - 0.20e1_dp*t102 &
     928           0 :                        *t1064
     929           0 :                t1068 = t84*t1067
     930           0 :                t1071 = t45*t541
     931           0 :                t1076 = t384*t754
     932           0 :                t1079 = t1071*t237
     933           0 :                t1082 = t384*t804
     934           0 :                t1085 = t379*t17
     935           0 :                t1089 = t114*t278
     936           0 :                t1093 = t25*t804
     937           0 :                t1097 = t187*t865
     938           0 :                t1099 = t97*t70
     939           0 :                t1100 = my_rho*t777
     940           0 :                t1101 = t1099*t1100
     941           0 :                t1106 = t500*t67
     942           0 :                t1109 = t187*t863
     943           0 :                t1111 = t496*t266
     944           0 :                t1119 = t194*t496*t526
     945           0 :                t1122 = t199*t866
     946           0 :                t1125 = t65*t25
     947           0 :                t1126 = t877*t1125
     948           0 :                t1129 = t867*t67
     949           0 :                t1134 = t866*t172
     950           0 :                t1137 = t268*t515
     951           0 :                t1140 = t176**2
     952           0 :                t1141 = 0.1e1_dp/t1140
     953           0 :                t1142 = t59*t1141
     954           0 :                t1143 = t1142*pi
     955           0 :                t1150 = t20*t379
     956           0 :                t1157 = t27*t140
     957           0 :                t1161 = t56*t379
     958           0 :                t1168 = t25*t754
     959           0 :                t1172 = t225*t237
     960           0 :                t1176 = t56*t25
     961             :                t1189 = 0.5400000000e2_dp*t1143*t474*t754 - 0.2400000000e2_dp*t473 &
     962             :                        *t479*t833 - 0.3600000000e2_dp*t473*t1150*t237 - 0.1800000000e2_dp &
     963             :                        *t473*t474*t804 - 0.2000000000e1_dp*t478*t1157*t14 + &
     964             :                        0.1200000000e2_dp*t478*t1161*t17 + 0.8999999998e1_dp*t178*t62 &
     965             :                        *t1067 + 0.3600000000e2_dp*t473*t183*t1168 + 0.1200000000e2_dp* &
     966             :                        t478*t489*t1172 - 0.3600000000e2_dp*t478*t1176*t237 - 0.1800000000e2_dp &
     967             :                        *t478*t183*t1093 + 0.8000000000e1_dp*t182*t123* &
     968           0 :                        t777 - 0.1200000000e2_dp*t61*t859*t225
     969             :                t1191 = (t1097*t65) - 0.4938271608e0_dp*t192*t1101 - 0.6172839508e-1_dp &
     970             :                        *t503*t874 - 0.1111111112e0_dp*t1106*t275 + (t1109 &
     971             :                                                                     *t65) + (2*t1111*t65) + 0.3703703706e0_dp*t508*t512 + &
     972             :                        0.7407407410e-1_dp*t503*t878 + 0.7407407410e-1_dp*t192*t1119 - 0.5555555558e-1_dp &
     973             :                        *t192*t1122 - 0.2222222224e0_dp*t192*t1126 - 0.1111111112e0_dp &
     974             :                        *t1129*t196 - 0.5555555558e-1_dp*t503*t882 - 0.1111111112e0_dp &
     975             :                        *t516*t1134 - 0.2222222224e0_dp*t1137*t517 + (t1189 &
     976           0 :                                                                      *t65)
     977           0 :                t1192 = t67*t22
     978           0 :                t1193 = t66*t1192
     979           0 :                t1194 = t267*t451
     980           0 :                t1200 = t65*t14
     981           0 :                t1201 = t22*t187*t1200
     982           0 :                t1206 = t68*t1189
     983           0 :                t1207 = t1206*t65
     984           0 :                t1210 = t58*t1067
     985           0 :                t1213 = t511*t225
     986           0 :                t1216 = t864*t172
     987           0 :                t1221 = t498*t526
     988           0 :                t1224 = t530*t267
     989           0 :                t1235 = t199*t864
     990             :                t1238 = 0.3703703706e0_dp*t1193*t1194 - 0.5555555558e-1_dp*t503*t886 &
     991             :                        - 0.6172839508e-1_dp*t192*t1201 - 0.5555555558e-1_dp*t1129*t200 &
     992             :                        - 0.5555555558e-1_dp*t192*t1207 - 0.5555555558e-1_dp*t1210*t71 &
     993             :                        + 0.3703703706e0_dp*t192*t1213 - 0.1111111112e0_dp*t516*t1216 &
     994             :                        - 0.1111111112e0_dp*t508*t534 + 0.7407407410e-1_dp*t516*t1221 - &
     995             :                        0.1111111112e0_dp*t192*t1224 + 0.7407407410e-1_dp*t508*t527 + 0.7407407410e-1_dp &
     996             :                        *t1106*t271 - 0.1111111112e0_dp*t508*t531 - 0.2222222224e0_dp &
     997           0 :                        *t508*t520 - 0.5555555558e-1_dp*t192*t1235
     998           0 :                t1239 = t1191 + t1238
     999           0 :                t1246 = t428*t444
    1000           0 :                t1247 = t74*t140
    1001           0 :                t1254 = t27*t889
    1002           0 :                t1264 = t27*t537
    1003           0 :                t1268 = t341*t74
    1004           0 :                t1275 = t56*t889
    1005           0 :                t1283 = -t851 + t855 + 0.9000000000e1_dp*t857 + t862
    1006           0 :                t1284 = t1283*t149
    1007             :                t1288 = -0.1111111111e0_dp*t165*t171*t1085 - 0.8888888890e0_dp*t170 &
    1008             :                        *t1089*t451 + 0.1666666667e0_dp*t445*t446*t1093 + 0.3333333334e0_dp &
    1009             :                        *t55*t57*t1239 - 0.8333333335e-1_dp*t429*t462*t754 &
    1010             :                        + 0.5555555556e-1_dp*t1246*t1247*t833 + (4*t147*t393* &
    1011             :                                                                 t424) + 0.3333333334e0_dp*t170*t1254*t172 - 0.1111111111e0_dp*t165 &
    1012             :                        *t466*t833 + 0.3333333334e0_dp*t165*t437*t379 - 0.2222222222e0_dp &
    1013             :                        *t170*t1264*t17 + 0.1037037037e1_dp*t170*t1268*t1100 &
    1014             :                        + 0.1666666667e0_dp*t165*t166*t1067 + 0.1666666667e0_dp*t165* &
    1015             :                        t1275*t140 - 0.8333333335e-1_dp*t1246*t446*t1168 + (2* &
    1016           0 :                                                                            t147*t1284*t160)
    1017           0 :                t1292 = t278*my_rho
    1018           0 :                t1300 = 0.1e1_dp/t41/t470
    1019           0 :                t1301 = t47*t1300
    1020           0 :                t1302 = t1301*t44
    1021           0 :                t1309 = t19*t379
    1022           0 :                t1316 = t194*t140
    1023           0 :                t1320 = t68*t379
    1024           0 :                t1333 = t68*t25
    1025           0 :                t1340 = t22*my_rho
    1026             :                t1347 = -0.5625000000e1_dp*t1302*t401*t754 + 0.1500000000e1_dp*t400 &
    1027             :                        *t406*t833 + 0.4500000000e1_dp*t400*t1309*t237 + 0.2250000000e1_dp &
    1028             :                        *t400*t401*t804 + 0.3333333333e0_dp*t405*t1316*t14 &
    1029             :                        - 0.1000000000e1_dp*t405*t1320*t17 - 0.1500000000e1_dp*t151*t50 &
    1030             :                        *t1067 - 0.2250000000e1_dp*t400*t156*t1168 - 0.2000000000e1_dp &
    1031             :                        *t405*t417*t1172 + 0.3000000000e1_dp*t405*t1333*t237 + 0.1500000000e1_dp &
    1032             :                        *t405*t156*t1093 - 0.3333333333e1_dp*t155*t1340 &
    1033           0 :                        *t777 + 0.4000000000e1_dp*t49*t822*t225
    1034           0 :                t1348 = t149*t1347
    1035           0 :                t1360 = t140*t14
    1036           0 :                t1367 = omega*t398
    1037           0 :                t1368 = t1367*t45
    1038           0 :                t1372 = t45*t114
    1039           0 :                t1373 = t164*t1372
    1040           0 :                t1377 = t114*t203
    1041           0 :                t1387 = t392**2
    1042           0 :                t1388 = t1387*t149
    1043           0 :                t1392 = t56*t537
    1044             :                t1396 = 0.6666666668e0_dp*t170*t455*t25 + 0.3333333334e0_dp*t445 &
    1045             :                        *t1292*t413 + 0.1666666667e0_dp*t165*t462*t804 + (2*t147 &
    1046             :                                                                    *t1348) - 0.1111111111e0_dp*t165*t455*t433 - 0.8333333335e-1_dp &
    1047             :                        *t429*t166*t918 + 0.3333333334e0_dp*t165*t171*t413 + 0.7407407409e-1_dp &
    1048             :                        *t165*t450*t1360 - 0.1666666667e0_dp*t429*t437 &
    1049             :                        *t290 + 0.1250000000e0_dp*t1368*t166*t907 - 0.4444444445e0_dp*t1373 &
    1050             :                        *t446*t1172 + 0.1481481481e0_dp*t170*t1377*t14 - 0.8888888890e0_dp &
    1051             :                        *t170*t450*t225 - 0.1666666667e0_dp*t429*t166*t914 &
    1052             :                        + (2*t147*t1388*t160) + 0.3333333334e0_dp*t165*t1392 &
    1053           0 :                        *t237
    1054           0 :                t1397 = t1288 + t1396
    1055             :                t1401 = -0.3333333336e0_dp*t165*t897*t237 - 0.6666666672e0_dp*t55 &
    1056             :                        *t295 - 0.6666666672e0_dp*t55*t380 + 0.8333333340e-1_dp*t906*t84 &
    1057             :                        *t907 - 0.3333333336e0_dp*t289*t294*t290 - 0.3333333336e0_dp* &
    1058             :                        t289*t84*t914 - 0.1666666668e0_dp*t289*t84*t918 - 0.3333333336e0_dp &
    1059             :                        *t83*t923 - 0.6666666672e0_dp*t83*t926 - 0.3333333336e0_dp &
    1060             :                        *t83*t1068 - 0.4444444448e0_dp*t383*t1071 - 0.6666666672e0_dp* &
    1061             :                        t55*t387 - 0.1666666668e0_dp*t289*t1076 - 0.6666666672e0_dp*t83 &
    1062             :                        *t1079 - 0.3333333336e0_dp*t83*t1082 - 0.2222222224e0_dp*t144*t46 &
    1063           0 :                        *t1397
    1064             :                e_rho_rho(ii) = e_rho_rho(ii) + (-0.1333333334e1_dp*t747*t84*t237 - 0.8888888896e0_dp*t214 &
    1065             :                                                 *t283 - 0.3333333336e0_dp*t753*t46*t78*t754 - 0.1333333334e1_dp &
    1066             :                                                 *t217*t46*t282*t237 - 0.6666666672e0_dp*t217*t46*t78* &
    1067           0 :                                                 t804 - 0.4444444448e0_dp*t43*t894 + t8*t1401)*sx
    1068           0 :                t1406 = 0.6666666672e0_dp*t747*t84*t561
    1069           0 :                t1408 = 0.4444444448e0_dp*t214*t590
    1070           0 :                t1409 = t4*t164
    1071           0 :                t1410 = t237*t561
    1072           0 :                t1411 = t84*t1410
    1073           0 :                t1413 = 0.3333333336e0_dp*t1409*t1411
    1074           0 :                t1417 = 0.6666666672e0_dp*t217*t46*t589*t237
    1075           0 :                t1420 = t316*t557
    1076           0 :                t1425 = t233*t557
    1077           0 :                t1426 = t327*t1425
    1078           0 :                t1429 = beta*t225
    1079           0 :                t1436 = t1033*t940
    1080           0 :                t1438 = 0.1e1_dp/t19/t1436
    1081           0 :                t1439 = 0.1e1_dp/t787/t16*t1438
    1082           0 :                t1440 = t1439*t371
    1083             :                t1443 = -0.8000000000e1_dp*t1429*t115 - 0.2400000000e2_dp*t24*t230 &
    1084           0 :                        + 0.8000000000e1_dp*t366*t1440
    1085           0 :                t1444 = t105*t1443
    1086             :                t1447 = -0.1066666667e2_dp*t24*t221 + 0.5333333333e1_dp*t321*t1420 &
    1087             :                        - 0.40e1_dp*t112*t234 + 0.40e1_dp*t102*t1426 - 0.20e1_dp*t102* &
    1088           0 :                        t1444
    1089           0 :                t1451 = 0.6666666672e0_dp*t217*t46*t78*t1447
    1090           0 :                t1455 = 0.6666666672e0_dp*t217*t46*t282*t561
    1091           0 :                t1459 = t19*t237
    1092           0 :                t1466 = t68*t17
    1093             :                t1470 = 0.2250000000e1_dp*t400*t1459*t561 - 0.1500000000e1_dp*t151 &
    1094           0 :                        *t50*t1447 - 0.5000000000e0_dp*t405*t1466*t561
    1095           0 :                t1471 = t149*t1470
    1096           0 :                t1476 = 0.8333333335e-1_dp*t429*t166*t1410
    1097           0 :                t1479 = 0.1666666667e0_dp*t165*t679*t237
    1098           0 :                t1482 = 0.1666666667e0_dp*t165*t166*t1447
    1099           0 :                t1483 = t17*t561
    1100           0 :                t1485 = t165*t171*t1483
    1101           0 :                t1489 = 0.1111111111e0_dp*t170*t689*t17
    1102           0 :                t1492 = 0.1666666667e0_dp*t165*t437*t561
    1103           0 :                t1493 = t20*t237
    1104           0 :                t1496 = 0.1800000000e2_dp*t473*t1493*t561
    1105           0 :                t1498 = t178*t62*t1447
    1106           0 :                t1500 = t56*t17
    1107           0 :                t1502 = t478*t1500*t561
    1108           0 :                t1504 = -t1496 + 0.8999999998e1_dp*t1498 + 0.5999999999e1_dp*t1502
    1109           0 :                t1505 = t1504*t65
    1110           0 :                t1506 = t266*t59
    1111           0 :                t1507 = t1506*t177
    1112           0 :                t1509 = 0.8999999998e1_dp*t1507*t710
    1113           0 :                t1510 = t58*t1447
    1114           0 :                t1512 = 0.5555555558e-1_dp*t1510*t71
    1115           0 :                t1513 = t237*t177
    1116           0 :                t1515 = 0.5000000001e0_dp*t1513*t709
    1117           0 :                t1517 = 0.3703703705e-1_dp*t719*t271
    1118           0 :                t1518 = 0.1e1_dp/my_rho
    1119           0 :                t1519 = t60*t1518
    1120           0 :                t1523 = 0.5555555558e-1_dp*t719*t275
    1121           0 :                t1525 = t68*t1504*t65
    1122           0 :                t1528 = t60*t266
    1123           0 :                t1530 = 0.5000000001e0_dp*t1528*t709
    1124             :                t1531 = t1505 + t1509 - t1512 - t1515 + t1517 + 0.3333333334e0_dp*t1519 &
    1125           0 :                        *t709 - t1523 - 0.5555555558e-1_dp*t192*t1525 - t1530
    1126             :                t1535 = 0.1800000000e2_dp*t658*t575*t250 + (2*t147*t1471) &
    1127             :                        - t1476 + t1479 + t1482 - 0.5555555555e-1_dp*t1485 - t1489 + t1492 &
    1128           0 :                        + 0.3333333334e0_dp*t55*t57*t1531
    1129           0 :                t1536 = t46*t1535
    1130           0 :                t1541 = 0.1666666668e0_dp*t165*t897*t561
    1131           0 :                t1543 = 0.3333333336e0_dp*t55*t598
    1132           0 :                t1545 = 0.3333333336e0_dp*t55*t650
    1133           0 :                t1546 = t905*t46
    1134           0 :                t1547 = t897*t1410
    1135           0 :                t1549 = 0.8333333340e-1_dp*t1546*t1547
    1136           0 :                t1552 = 0.1666666668e0_dp*t289*t597*t290
    1137           0 :                t1553 = t649*t237
    1138           0 :                t1556 = 0.1666666668e0_dp*t289*t84*t1553
    1139           0 :                t1557 = t140*t1447
    1140           0 :                t1560 = 0.1666666668e0_dp*t289*t84*t1557
    1141           0 :                t1563 = 0.1666666668e0_dp*t289*t294*t593
    1142           0 :                t1564 = t45*t1535
    1143           0 :                t1565 = t1564*t140
    1144           0 :                t1568 = t294*t649
    1145           0 :                t1570 = 0.3333333336e0_dp*t83*t1568
    1146           0 :                t1571 = t379*t561
    1147           0 :                t1574 = 0.1666666668e0_dp*t289*t84*t1571
    1148           0 :                t1575 = t597*t379
    1149           0 :                t1577 = 0.3333333336e0_dp*t83*t1575
    1150           0 :                t1579 = 0.1173333333e3_dp*t24*t299
    1151           0 :                t1581 = 0.5866666667e2_dp*t93*t1420
    1152           0 :                t1582 = t24*t86
    1153           0 :                t1584 = 0.320e2_dp*t1582*t234
    1154           0 :                t1586 = 0.320e2_dp*t302*t1426
    1155           0 :                t1588 = 0.160e2_dp*t302*t1444
    1156           0 :                t1589 = t24*t306
    1157           0 :                t1591 = 0.1173333333e3_dp*t1589*t313
    1158           0 :                t1592 = t949*t608
    1159           0 :                t1594 = 0.5866666667e2_dp*t307*t1592
    1160           0 :                t1596 = 0.320e2_dp*t605*t318
    1161           0 :                t1597 = t7*t298
    1162           0 :                t1598 = t326*my_rho
    1163           0 :                t1599 = t1598*t1425
    1164           0 :                t1601 = 0.320e2_dp*t1597*t1599
    1165           0 :                t1602 = my_rho*t1443
    1166           0 :                t1603 = t316*t1602
    1167           0 :                t1605 = 0.160e2_dp*t93*t1603
    1168           0 :                t1607 = 0.1066666667e2_dp*t339*t322
    1169           0 :                t1608 = t953*t614
    1170           0 :                t1610 = 0.1066666667e2_dp*t321*t1608
    1171           0 :                t1611 = t316*t645
    1172           0 :                t1613 = 0.5333333333e1_dp*t321*t1611
    1173           0 :                t1615 = 0.80e1_dp*t112*t329
    1174           0 :                t1616 = t7*t23
    1175           0 :                t1617 = t973*t136
    1176           0 :                t1618 = t1617*t1425
    1177           0 :                t1620 = 0.120e2_dp*t1616*t1618
    1178           0 :                t1621 = t645*t233
    1179           0 :                t1622 = t327*t1621
    1180           0 :                t1624 = 0.40e1_dp*t102*t1622
    1181           0 :                t1625 = t136*t1443
    1182           0 :                t1626 = t327*t1625
    1183           0 :                t1628 = 0.40e1_dp*t102*t1626
    1184           0 :                t1630 = 0.40e1_dp*t112*t376
    1185           0 :                t1631 = t375*t557
    1186           0 :                t1632 = t327*t1631
    1187           0 :                t1634 = 0.40e1_dp*t102*t1632
    1188           0 :                t1636 = 0.5600000000e2_dp*t624*t115
    1189           0 :                t1638 = 0.1200000000e3_dp*t24*t336
    1190           0 :                t1640 = 0.1e1_dp/t787/t9
    1191           0 :                t1642 = t1640*t1438*t371
    1192           0 :                t1644 = 0.3200000000e2_dp*t366*t1642
    1193           0 :                t1645 = beta*t219
    1194           0 :                t1647 = 0.5600000000e2_dp*t1645*t343
    1195           0 :                t1649 = 0.1200000000e3_dp*t1589*t347
    1196           0 :                t1652 = t795*t371*my_rho
    1197           0 :                t1654 = 0.3200000000e2_dp*t366*t995*t1652
    1198           0 :                t1656 = 0.8000000000e1_dp*t1429*t352
    1199           0 :                t1658 = t114*t635*t132
    1200           0 :                t1660 = 0.8000000000e1_dp*t350*t1658
    1201           0 :                t1662 = 0.3200000000e2_dp*t7*t372
    1202           0 :                t1664 = 0.60e1_dp*t550*t362
    1203           0 :                t1667 = 0.28e2_dp/0.3e1_dp*t332 - 0.28e2_dp/0.3e1_dp*t987*my_rho
    1204           0 :                t1669 = t27*t1667*t132
    1205           0 :                t1671 = 0.60e1_dp*t119*t1669
    1206           0 :                t1675 = 0.60e1_dp*t7*t640*t360*t371
    1207           0 :                t1677 = t368*t635*t371
    1208           0 :                t1679 = 0.8000000000e1_dp*t366*t1677
    1209           0 :                t1680 = t786*t368
    1210           0 :                t1681 = t1059*t23
    1211             :                t1684 = t1636 + t1638 - t1644 - t1647 - t1649 + t1654 - t1656 - t1660 &
    1212             :                        + t1662 + t1664 + t1671 - t1675 + t1679 - 0.2400000000e2_dp*t1680 &
    1213           0 :                        *t1681
    1214           0 :                t1685 = t105*t1684
    1215             :                t1688 = t1579 - t1581 + t1584 - t1586 + t1588 - t1591 + t1594 - t1596 &
    1216             :                        + t1601 - t1605 + t1607 - t1610 + t1613 + t1615 - t1620 + t1624 &
    1217           0 :                        + t1628 - t1630 + t1634 - 0.20e1_dp*t102*t1685
    1218           0 :                t1689 = t84*t1688
    1219           0 :                t1693 = 0.3333333336e0_dp*t55*t653
    1220           0 :                t1694 = t45*t739
    1221           0 :                t1696 = 0.2222222224e0_dp*t383*t1694
    1222           0 :                t1699 = 0.1666666668e0_dp*t289*t384*t1410
    1223           0 :                t1700 = t1694*t237
    1224           0 :                t1702 = 0.3333333336e0_dp*t83*t1700
    1225           0 :                t1703 = t384*t1447
    1226           0 :                t1705 = 0.3333333336e0_dp*t83*t1703
    1227           0 :                t1706 = t1071*t561
    1228           0 :                t1708 = 0.3333333336e0_dp*t83*t1706
    1229           0 :                t1709 = t187*t1504
    1230           0 :                t1712 = t266*t561*t65
    1231           0 :                t1714 = 0.5000000001e0_dp*t732*t1712
    1232           0 :                t1715 = t713*t67
    1233           0 :                t1717 = 0.3703703705e-1_dp*t1715*t271
    1234           0 :                t1718 = t705*t266
    1235           0 :                t1719 = t1718*t65
    1236           0 :                t1720 = t140*t266
    1237           0 :                t1722 = t177*t561*t65
    1238           0 :                t1724 = 0.5000000001e0_dp*t1720*t1722
    1239           0 :                t1726 = t194*t705*t526
    1240           0 :                t1728 = 0.3703703705e-1_dp*t192*t1726
    1241           0 :                t1730 = 0.1111111112e0_dp*t719*t520
    1242           0 :                t1731 = t58*t1688
    1243           0 :                t1735 = 0.3703703705e-1_dp*t719*t527
    1244           0 :                t1737 = t722*t561*t65
    1245           0 :                t1740 = t496*t59
    1246           0 :                t1741 = t1740*t177
    1247           0 :                t1743 = 0.8999999998e1_dp*t1741*t710
    1248           0 :                t1745 = t187*t561*t65
    1249           0 :                t1748 = t140*t1518
    1250           0 :                t1752 = 0.1851851853e0_dp*t719*t512
    1251           0 :                t1754 = 0.5555555558e-1_dp*t1715*t275
    1252           0 :                t1755 = t1510*t67
    1253           0 :                t1757 = 0.1111111112e0_dp*t1755*t196
    1254             :                t1758 = t1709*t65 - t1714 + t1717 + t1719 - t1724 + t1728 - t1730 &
    1255             :                        - 0.5555555558e-1_dp*t1731*t71 + t1735 + 0.666666666e0_dp*t1519* &
    1256             :                        t1737 + t1743 + 0.3333333334e0_dp*t1519*t1745 + 0.3333333334e0_dp* &
    1257           0 :                        t1748*t1722 + t1752 - t1754 - t1757
    1258           0 :                t1760 = 0.5555555558e-1_dp*t719*t534
    1259           0 :                t1762 = 0.5555555558e-1_dp*t1755*t200
    1260           0 :                t1763 = t237*t722
    1261           0 :                t1765 = 0.1000000001e1_dp*t1763*t1722
    1262           0 :                t1766 = t237*t187
    1263           0 :                t1768 = 0.5000000001e0_dp*t1766*t1722
    1264           0 :                t1769 = t199*t1505
    1265           0 :                t1773 = 0.5555555558e-1_dp*t719*t531
    1266           0 :                t1774 = t60*t496
    1267           0 :                t1776 = 0.5000000001e0_dp*t1774*t709
    1268           0 :                t1777 = t379*t177
    1269           0 :                t1779 = 0.5000000001e0_dp*t1777*t709
    1270           0 :                t1782 = t728*t267
    1271           0 :                t1784 = 0.5555555558e-1_dp*t192*t1782
    1272           0 :                t1785 = t579*t515
    1273           0 :                t1787 = 0.1111111112e0_dp*t1785*t517
    1274           0 :                t1789 = 0.5555555558e-1_dp*t508*t729
    1275           0 :                t1790 = t1505*t172
    1276           0 :                t1794 = 0.1000000001e1_dp*t723*t1712
    1277           0 :                t1795 = t498*t178
    1278           0 :                t1797 = 0.8999999998e1_dp*t1795*t710
    1279           0 :                t1800 = 0.5400000000e2_dp*t1143*t474*t1410
    1280           0 :                t1801 = t20*t649
    1281           0 :                t1804 = 0.1800000000e2_dp*t473*t1801*t237
    1282           0 :                t1807 = 0.1800000000e2_dp*t473*t474*t1447
    1283           0 :                t1810 = 0.1200000000e2_dp*t473*t479*t1483
    1284           0 :                t1811 = t56*t649
    1285           0 :                t1814 = 0.5999999999e1_dp*t478*t1811*t17
    1286           0 :                t1817 = 0.1800000000e2_dp*t473*t1150*t561
    1287           0 :                t1821 = t472*t262
    1288           0 :                t1822 = t172*t1410
    1289           0 :                t1824 = 0.3600000000e2_dp*t1821*t1822
    1290           0 :                t1825 = t25*t1447
    1291           0 :                t1828 = 0.1800000000e2_dp*t478*t183*t1825
    1292           0 :                t1829 = t225*t561
    1293           0 :                t1832 = 0.6000000000e1_dp*t478*t489*t1829
    1294           0 :                t1835 = 0.1800000000e2_dp*t478*t1176*t561
    1295             :                t1836 = t1800 - t1804 - t1807 - t1810 + t1814 - t1817 + 0.8999999998e1_dp &
    1296           0 :                        *t178*t62*t1688 + t1824 - t1828 + t1832 - t1835
    1297           0 :                t1837 = t68*t1836
    1298           0 :                t1838 = t1837*t65
    1299             :                t1842 = -t1760 - t1762 - t1765 - t1768 - 0.5555555558e-1_dp*t192*t1769 &
    1300             :                        - t1773 - t1776 - t1779 - 0.5555555558e-1_dp*t503*t1525 - t1784 &
    1301             :                        - t1787 - t1789 - 0.1111111112e0_dp*t516*t1790 - t1794 + t1797 &
    1302           0 :                        - 0.5555555558e-1_dp*t192*t1838 + t1836*t65
    1303           0 :                t1843 = t1758 + t1842
    1304           0 :                t1849 = 0.8333333335e-1_dp*t429*t166*t1571
    1305           0 :                t1852 = 0.8333333335e-1_dp*t429*t679*t290
    1306           0 :                t1854 = t165*t466*t1483
    1307           0 :                t1858 = 0.1666666667e0_dp*t445*t446*t1825
    1308           0 :                t1861 = 0.1800000000e2_dp*t658*t575*t425
    1309           0 :                t1864 = 0.1666666667e0_dp*t445*t1292*t668
    1310           0 :                t1865 = t413*t561
    1311           0 :                t1868 = 0.8333333335e-1_dp*t1246*t446*t1865
    1312           0 :                t1871 = 2*t147*t393*t672
    1313           0 :                t1874 = 0.3333333334e0_dp*t170*t689*t25
    1314           0 :                t1875 = t114*t585
    1315           0 :                t1878 = 0.4444444445e0_dp*t170*t1875*t451
    1316           0 :                t1881 = 0.1666666667e0_dp*t165*t437*t649
    1317           0 :                t1884 = -t1496 + 0.9000000000e1_dp*t1498 + 0.6000000000e1_dp*t1502
    1318           0 :                t1885 = t1884*t149
    1319           0 :                t1886 = t1885*t160
    1320           0 :                t1891 = 0.5625000000e1_dp*t1302*t401*t1410
    1321           0 :                t1892 = t19*t649
    1322           0 :                t1895 = 0.2250000000e1_dp*t400*t1892*t237
    1323           0 :                t1898 = 0.2250000000e1_dp*t400*t401*t1447
    1324           0 :                t1901 = 0.7500000000e0_dp*t400*t406*t1483
    1325           0 :                t1902 = t68*t649
    1326           0 :                t1905 = 0.5000000000e0_dp*t405*t1902*t17
    1327           0 :                t1908 = 0.2250000000e1_dp*t400*t1309*t561
    1328           0 :                t1912 = t399*t245
    1329           0 :                t1914 = 0.2250000000e1_dp*t1912*t1822
    1330           0 :                t1917 = 0.1500000000e1_dp*t405*t156*t1825
    1331           0 :                t1920 = 0.1000000000e1_dp*t405*t417*t1829
    1332           0 :                t1923 = 0.1500000000e1_dp*t405*t1333*t561
    1333             :                t1924 = -t1891 + t1895 + t1898 + t1901 - t1905 + t1908 - 0.1500000000e1_dp &
    1334           0 :                        *t151*t50*t1688 - t1914 + t1917 - t1920 + t1923
    1335           0 :                t1925 = t149*t1924
    1336           0 :                t1928 = t56*t1531
    1337           0 :                t1932 = t27*t1531
    1338           0 :                t1938 = 0.1666666667e0_dp*t165*t462*t1447
    1339             :                t1939 = 0.3333333334e0_dp*t55*t57*t1843 - t1849 - t1852 - 0.5555555555e-1_dp &
    1340             :                        *t1854 + t1858 + t1861 + t1864 - t1868 + t1871 + t1874 &
    1341             :                        - t1878 + t1881 + (2*t147*t1886) + (2*t147*t1925) &
    1342             :                        + 0.1666666667e0_dp*t165*t1928*t140 + 0.3333333334e0_dp*t170*t1932 &
    1343           0 :                        *t172 + t1938
    1344           0 :                t1940 = t27*t735
    1345           0 :                t1943 = 0.1111111111e0_dp*t170*t1940*t17
    1346           0 :                t1946 = 0.1666666667e0_dp*t165*t1392*t561
    1347           0 :                t1952 = 0.5555555557e-1_dp*t165*t689*t433
    1348           0 :                t1954 = t1373*t446*t1829
    1349           0 :                t1958 = 0.8333333335e-1_dp*t429*t166*t1553
    1350           0 :                t1961 = 0.1666666667e0_dp*t165*t679*t379
    1351           0 :                t1962 = t585*my_rho
    1352           0 :                t1965 = 0.1666666667e0_dp*t445*t1962*t413
    1353           0 :                t1966 = t56*t735
    1354           0 :                t1969 = 0.1666666667e0_dp*t165*t1966*t237
    1355           0 :                t1971 = t657*t392*t59
    1356           0 :                t1972 = t177*t20
    1357           0 :                t1973 = t561*t149
    1358           0 :                t1974 = t1973*t160
    1359           0 :                t1975 = t1972*t1974
    1360           0 :                t1977 = 0.1800000000e2_dp*t1971*t1975
    1361           0 :                t1980 = 0.2777777778e-1_dp*t1246*t1247*t1483
    1362           0 :                t1981 = t1367*t57
    1363           0 :                t1984 = 0.1250000000e0_dp*t1981*t1247*t1410
    1364           0 :                t1987 = 0.8333333335e-1_dp*t429*t437*t593
    1365           0 :                t1988 = t649*t17
    1366           0 :                t1991 = 0.5555555557e-1_dp*t165*t171*t1988
    1367           0 :                t1994 = 0.8333333335e-1_dp*t429*t166*t1557
    1368           0 :                t1997 = 0.1666666667e0_dp*t165*t171*t668
    1369           0 :                t2000 = 0.8333333335e-1_dp*t429*t462*t1410
    1370             :                t2001 = -t1943 + t1946 + 0.1666666667e0_dp*t165*t166*t1688 - t1952 &
    1371             :                        - 0.2222222222e0_dp*t1954 - t1958 + t1961 + t1965 + t1969 + t1977 &
    1372           0 :                        + t1980 + t1984 - t1987 - t1991 - t1994 + t1997 - t2000
    1373           0 :                t2002 = t1939 + t2001
    1374             :                t2006 = -t1541 - t1543 - t1545 + t1549 - t1552 - t1556 - t1560 - t1563 &
    1375             :                        - 0.3333333336e0_dp*t83*t1565 - t1570 - t1574 - t1577 - 0.3333333336e0_dp &
    1376             :                        *t83*t1689 - t1693 - t1696 - t1699 - t1702 - t1705 - &
    1377           0 :                        t1708 - 0.2222222224e0_dp*t144*t46*t2002
    1378             :                e_ndrho_rho(ii) = e_ndrho_rho(ii) + (-t1406 - t1408 - t1413 - t1417 - t1451 - t1455 - 0.4444444448e0_dp &
    1379           0 :                                                     *t43*t1536 + t8*t2006)*sx
    1380           0 :                t2009 = t566*t393
    1381           0 :                t2013 = t566*t149*t47
    1382           0 :                t2014 = t398*t19
    1383           0 :                t2018 = t150*t68
    1384           0 :                t2022 = t19*t1447
    1385           0 :                t2027 = t65*t237
    1386           0 :                t2028 = t575*t2027
    1387           0 :                t2031 = t56*t561
    1388           0 :                t2032 = t2031*t526
    1389           0 :                t2035 = t20*t1447
    1390             :                t2042 = -0.1800000000e2_dp*t473*t2028 + 0.5999999999e1_dp*t478*t2032 &
    1391             :                        + 0.8999999998e1_dp*t478*t2035*t65 + t1509 - t1512 + t1517 &
    1392           0 :                        - t1523 + t1515 - 0.5000000001e0_dp*t60*t1447*t65 - t1530
    1393             :                t2046 = -0.3000000000e1_dp*t2009*t569 + 0.4500000000e1_dp*t2013*t2014 &
    1394             :                        *t1410 - 0.1000000000e1_dp*t2013*t2018*t1483 - 0.3000000000e1_dp &
    1395             :                        *t567*t151*t2022 - t1476 - 0.5555555557e-1_dp*t1485 + t1492 &
    1396           0 :                        + t1482 + t1479 - t1489 + 0.3333333334e0_dp*t55*t57*t2042
    1397           0 :                t2050 = t45*t2046
    1398           0 :                t2054 = t786*t640
    1399             :                t2057 = t1636 + t1638 - t1644 - t1647 - t1649 + t1654 - t1656 + t1664 &
    1400           0 :                        + t1662 - t1660 + t1671 + t1679 - t1675 - 0.240e2_dp*t2054*t1060
    1401           0 :                t2058 = t105*t2057
    1402             :                t2061 = t1579 + t1584 - t1581 - t1586 + t1588 - t1591 - t1596 + t1594 &
    1403             :                        + t1601 - t1605 + t1607 + t1615 - t1630 - t1610 - t1620 + t1634 &
    1404           0 :                        + t1628 + t1613 + t1624 - 0.20e1_dp*t102*t2058
    1405             :                t2073 = -t1891 + t1901 + t1908 + t1898 + t1895 - t1905 - 0.1500000000e1_dp &
    1406           0 :                        *t151*t50*t2061 - t1914 - t1920 + t1923 + t1917
    1407           0 :                t2074 = t149*t2073
    1408           0 :                t2077 = t161*t17
    1409           0 :                t2081 = t657*t472
    1410           0 :                t2082 = t161*t237
    1411             :                t2086 = -t1849 - t1852 - 0.5555555557e-1_dp*t1854 + t1858 + t1861 + &
    1412             :                        t1864 - t1868 + t1871 + t1874 + 0.3333333334e0_dp*t170*t27*t2042 &
    1413             :                        *t172 - t1878 + (2*t147*t2074) + t1881 + t1938 - t1943 &
    1414             :                        + 0.1200000000e2_dp*t658*t2031*t2077 + t1946 - 0.3600000000e2_dp* &
    1415           0 :                        t2081*t575*t2082
    1416           0 :                t2088 = t56*t2042
    1417           0 :                t2095 = t1447*t65
    1418           0 :                t2098 = t140*t471
    1419           0 :                t2099 = t709*t237
    1420           0 :                t2104 = t62*t2095
    1421             :                t2107 = -t1714 + t1717 + t1719 - t1724 + t1728 - 0.5000000001e0_dp*t716 &
    1422             :                        *t2095 + 0.1000000000e1_dp*t2098*t2099 - 0.1000000001e1_dp*t723 &
    1423             :                        *t2095 - t1730 + t1735 + t1743 + 0.8999999998e1_dp*t708*t2104 &
    1424           0 :                        + t1752 - t1754 - t1757 - t1760
    1425           0 :                t2113 = t177*pi
    1426           0 :                t2114 = t707*t2113
    1427           0 :                t2117 = t471*pi
    1428           0 :                t2118 = t707*t2117
    1429             :                t2124 = t1800 - t1810 - t1817 - t1807 - t1804 + t1814 + 0.8999999998e1_dp &
    1430           0 :                        *t178*t62*t2061 + t1824 + t1832 - t1835 - t1828
    1431           0 :                t2126 = t68*t2124*t65
    1432             :                t2130 = -0.5000000001e0_dp*t732*t2095 - 0.5555555558e-1_dp*t58*t2061 &
    1433             :                        *t71 - t1762 + t1765 + t1768 + 0.5999999999e1_dp*t2114*t2032 &
    1434             :                        - t1773 - t1776 - 0.1800000000e2_dp*t2118*t2028 - 0.5555555558e-1_dp &
    1435             :                        *t192*t2126 - t1779 - t1784 - t1787 - t1789 - t1794 + t1797 + &
    1436           0 :                        t2124*t65
    1437           0 :                t2131 = t2107 + t2130
    1438             :                t2138 = -t1952 - 0.2222222223e0_dp*t1954 - t1958 + t1961 + t1965 + t1969 &
    1439             :                        + t1977 + t1980 + 0.1666666667e0_dp*t165*t2088*t140 + 0.1800000000e2_dp &
    1440             :                        *t658*t2035*t161 + 0.3333333334e0_dp*t55*t57*t2131 &
    1441             :                        + t1984 + 0.1666666667e0_dp*t165*t166*t2061 - t1987 - t1991 &
    1442           0 :                        - t1994 + t1997 - t2000
    1443           0 :                t2139 = t2086 + t2138
    1444             :                t2143 = -t1541 + t1549 - t1563 - t1574 - t1560 - t1543 - t1552 - 0.3333333336e0_dp &
    1445             :                        *t83*t2050*t140 - t1577 - t1545 - t1556 - t1570 &
    1446             :                        - 0.3333333336e0_dp*t83*t84*t2061 - t1693 - t1699 - t1708 - t1705 &
    1447           0 :                        - t1696 - t1702 - 0.2222222224e0_dp*t144*t46*t2139
    1448             :                e_ndrho_ndrho(ii) = e_ndrho_ndrho(ii) + (-t1406 - t1413 - t1455 - t1451 - t1408 - t1417 - 0.4444444448e0_dp &
    1449           0 :                                                         *t43*t46*t2046 + t8*t2143)*sx
    1450           0 :                t2147 = lambda*t48*omega
    1451           0 :                t2160 = t754*t237
    1452           0 :                t2169 = t237*t804
    1453           0 :                t2182 = 0.1e1_dp/t787/lambda
    1454           0 :                t2183 = t2182*t944
    1455           0 :                t2187 = t949*t233
    1456           0 :                t2190 = t953*t772
    1457           0 :                t2193 = t316*t800
    1458           0 :                t2196 = t772*t233
    1459           0 :                t2197 = t974*t2196
    1460           0 :                t2200 = t233*t800
    1461           0 :                t2201 = t327*t2200
    1462           0 :                t2204 = t10*t106
    1463           0 :                t2205 = 0.1e1_dp/t2204
    1464           0 :                t2220 = beta*t785*t6
    1465             :                t2226 = -0.6222222223e2_dp*t24*t2205*t1002*t31 - 0.2115555556e3_dp &
    1466             :                        *t7*t2183*t132 + 0.1315555556e3_dp*t786/t787/t85*t1019 &
    1467           0 :                        *t371 - 0.4266666668e2_dp*t2220/t1014/t94*t1058
    1468           0 :                t2227 = t105*t2226
    1469             :                t2230 = -0.9125925923e2_dp*t7*t2183*t36 - 0.5866666667e2_dp*t962 &
    1470             :                        *t2187 - 0.3200000001e2_dp*t321*t2190 + 0.1600000000e2_dp*t321* &
    1471             :                        t2193 - 0.120e2_dp*t102*t2197 + 0.120e2_dp*t102*t2201 - 0.20e1_dp* &
    1472           0 :                        t102*t2227
    1473           0 :                t2257 = 0.5400000000e2_dp*t1142*t62*t2160
    1474           0 :                t2261 = 0.3600000000e2_dp*t473*t56*t754*t17
    1475           0 :                t2264 = 0.5400000000e2_dp*t473*t1493*t804
    1476           0 :                t2268 = 0.6000000000e1_dp*t478*t27*t237*t14
    1477           0 :                t2272 = 0.1800000000e2_dp*t478*t56*t804*t17
    1478           0 :                t2274 = t178*t62*t2230
    1479           0 :                t2276 = pi*t114
    1480           0 :                t2279 = 0.2666666667e1_dp*t61*t2276*t86
    1481             :                t2280 = t2257 - t2261 - t2264 - t2268 + t2272 + 0.8999999998e1_dp*t2274 &
    1482           0 :                        - t2279
    1483           0 :                t2281 = t2280*t65
    1484           0 :                t2282 = t881*t267
    1485           0 :                t2285 = t865*t266
    1486           0 :                t2287 = t68*t2285*t65
    1487           0 :                t2292 = t863*t266
    1488           0 :                t2295 = t2285*t65
    1489           0 :                t2296 = t58*t2230
    1490           0 :                t2299 = t194*t865
    1491           0 :                t2300 = t2299*t526
    1492           0 :                t2304 = t68*t2280*t65
    1493           0 :                t2307 = t22*t266
    1494           0 :                t2308 = t2307*t1200
    1495           0 :                t2311 = t194*t863
    1496           0 :                t2312 = t2311*t526
    1497           0 :                t2319 = t1099*t86
    1498             :                t2326 = -0.1851851853e0_dp*t508*t874 + t2281 - 0.1666666668e0_dp*t192 &
    1499             :                        *t2282 - 0.5555555558e-1_dp*t192*t2287 - 0.1666666668e0_dp*t508 &
    1500             :                        *t886 + (3*t2292*t65) + t2295 - 0.5555555558e-1_dp*t2296 &
    1501             :                        *t71 + 0.1111111112e0_dp*t192*t2300 - 0.5555555558e-1_dp*t192* &
    1502             :                        t2304 - 0.1851851853e0_dp*t192*t2308 + 0.1111111112e0_dp*t192*t2312 &
    1503             :                        + 0.2222222223e0_dp*t508*t878 - 0.1666666668e0_dp*t508*t882 &
    1504             :                        + 0.1646090535e0_dp*t192*t2319 - 0.1666666668e0_dp*t1129*t275 + &
    1505           0 :                        0.1111111112e0_dp*t1129*t271
    1506           0 :                t2351 = t44*t22
    1507           0 :                t2368 = t237*t14
    1508           0 :                t2378 = t804*t17
    1509           0 :                t2382 = t754*t17
    1510             :                t2392 = (2*t147*t1284*t249) + (2*t147*t1388*t249) &
    1511             :                        - 0.3456790122e0_dp*t170*t1268*t86 + 0.4444444444e0_dp*t170* &
    1512             :                        t1089*t14 + 0.1666666667e0_dp*t165*t166*t2230 + 0.5000000001e0_dp &
    1513             :                        *t165*t437*t804 + 0.3333333334e0_dp*t55*t57*t2326 + 0.2e1_dp &
    1514             :                        *(t147)*t149*(-0.5625000000e1_dp*t1301*t50*t2160 + &
    1515             :                                      0.2250000000e1_dp*t400*t68*t754*t17 + 0.6750000000e1_dp*t400* &
    1516             :                                      t1459*t804 + 0.1000000000e1_dp*t405*t194*t237*t14 - 0.1500000000e1_dp &
    1517             :                                      *t405*t68*t804*t17 - 0.1500000000e1_dp*t151*t50* &
    1518             :                                      t2230 + 0.1111111111e1_dp*t49*t2351*t86) - 0.3333333333e0_dp*t170 &
    1519             :                        *t1254*t17 + (4*t147*t393*t826) + 0.5000000001e0_dp* &
    1520             :                        t165*t1275*t237 + 0.2222222222e0_dp*t165*t450*t2368 - 0.3333333333e0_dp &
    1521             :                        *t165*t455*t833 - 0.2500000000e0_dp*t429*t166*t2169 &
    1522             :                        - 0.1666666667e0_dp*t165*t171*t2378 + 0.8333333333e-1_dp*t429 &
    1523             :                        *t171*t2382 - 0.2500000000e0_dp*t429*t437*t754 + 0.1250000000e0_dp &
    1524           0 :                        *t1368*t166*t2160
    1525           0 :                t2404 = t45*t1397
    1526           0 :                t2418 = t379*t754
    1527           0 :                t2424 = t1067*t237
    1528           0 :                t2437 = t7*t792
    1529           0 :                t2439 = 0.1e1_dp/t20/t1436
    1530           0 :                t2451 = t940*t944
    1531           0 :                t2455 = t97*t973
    1532           0 :                t2468 = t944*t104
    1533           0 :                t2480 = 0.1e1_dp/t19/t942
    1534           0 :                t2492 = t1014*my_rho
    1535           0 :                t2537 = t764*t1002
    1536           0 :                t2552 = t360*t1058
    1537           0 :                t2565 = t126/t131/t1056/t130
    1538             :                t2569 = -0.8088888890e3_dp*t24*t2182*t2480*t31*my_rho - 0.1518222222e4_dp &
    1539             :                        *t2437*t2439*t132*my_rho + 0.6542222223e3_dp*t786/t2204 &
    1540             :                        /t19/t2492*t218*t371*my_rho - 0.6222222223e2_dp*t24*t2205 &
    1541             :                        *t1002*t126*t132 + 0.5600000000e2_dp*t1024*t341*t360 &
    1542             :                        *t132 + 0.3288888889e3_dp*t366/t790*t126*t371 - 0.2400000000e2_dp &
    1543             :                        *t350*t114*t1044*t132 - 0.1520000000e3_dp*t366*t1034* &
    1544             :                        t360*t371 - 0.3626666667e3_dp*t1054*t1034*t1060 + 0.60e1_dp*t119 &
    1545             :                        *t27*(0.3640e4_dp/0.27e2_dp*t1040*t1002 - 0.3640e4_dp/0.27e2_dp &
    1546             :                              *my_ndrho*t2182*t2480*my_rho)*t132 + 0.8088888890e3_dp*t24*t2537 &
    1547             :                        *t31 + 0.1518222222e4_dp*t7*t2451*t132 - 0.6542222223e3_dp* &
    1548             :                        t786*t1012*t1019*t371 + 0.2400000000e2_dp*t366*t368*t1044 &
    1549             :                        *t371 + 0.9600000000e2_dp*t1055*t2552*t220 - 0.1173333333e3_dp &
    1550             :                        *t1055*t1059*t765 + 0.2133333333e3_dp*beta*t785*t365*t368 &
    1551           0 :                        *t2565*t796
    1552             :                t2576 = 0.40e1_dp*t102*t327*t136*t2226 + 0.3519999999e3_dp*t93 &
    1553             :                        *t2190 - 0.1551407408e4_dp*t2437*t2439*t36*my_rho + 0.960e2_dp* &
    1554             :                        t1597*t1598*t2200 + 0.120e2_dp*t102*t327*t375*t800 + 0.1551407408e4_dp &
    1555             :                        *t7*t2451*t36 - 0.960e2_dp*t93*t2455*my_rho*t2196 &
    1556             :                        + 0.120e2_dp*t102*t327*t1063*t233 + 0.1600000000e2_dp*t321 &
    1557             :                        *t316*t1063 + 0.9125925923e2_dp*t7*t2182*t2468*t136 + 0.1760000000e3_dp &
    1558             :                        *t307*t949*t958 - 0.360e2_dp*t1616*t1617*t2200 &
    1559           0 :                        - 0.20e1_dp*t102*t105*t2569 - 0.6400000001e2_dp*t321*t953*t979
    1560           0 :                t2585 = 0.1e1_dp/t972/t35
    1561           0 :                t2611 = t311*t326
    1562             :                t2621 = -0.3200000001e2_dp*t321*t953*t983 - 0.160e2_dp*t93*t316 &
    1563             :                        *my_rho*t2226 + 0.480e2_dp*t102*t22*t2585*t136*t2196 - 0.1760000000e3_dp &
    1564             :                        *t93*t2193 + 0.960e2_dp*t302*t2197 + 0.160e2_dp*t302 &
    1565             :                        *t2227 - 0.960e2_dp*t302*t2201 - 0.8213333332e3_dp*t941*t2468 &
    1566             :                        *t317 + 0.8213333332e3_dp*t307*t2187 + 0.9600000002e2_dp*t321* &
    1567             :                        t2455*t975 - 0.360e2_dp*t102*t974*t375*t772 - 0.3519999999e3_dp &
    1568             :                        *t307*t2611*t954 + 0.1173333334e3_dp*t962*t2611*t328 - &
    1569           0 :                        0.5866666667e2_dp*t962*t949*t375
    1570           0 :                t2622 = t2576 + t2621
    1571           0 :                t2631 = t282*t140
    1572             :                t2635 = -0.1000000001e1_dp*t55*t923 - 0.3333333336e0_dp*t83*t384 &
    1573             :                        *t2230 - 0.5000000004e0_dp*t165*t897*t804 - 0.6666666672e0_dp*t383 &
    1574             :                        *t2404 - 0.1000000001e1_dp*t83*t1071*t804 - 0.5000000004e0_dp &
    1575             :                        *t164*t1076 - 0.1000000001e1_dp*t289*t294*t914 - 0.5000000004e0_dp &
    1576             :                        *t289*t294*t918 + 0.2500000002e0_dp*t906*t84*t2418 - &
    1577             :                        0.2000000001e1_dp*t55*t1079 - 0.5000000004e0_dp*t289*t84*t2424 &
    1578             :                        + 0.2500000002e0_dp*t1546*t897*t2169 - 0.3333333336e0_dp*t83* &
    1579             :                        t84*t2622 + 0.2500000002e0_dp*t906*t294*t907 - 0.1000000001e1_dp &
    1580           0 :                        *t55*t1082 - 0.1000000001e1_dp*t165*t2631*t237
    1581           0 :                t2636 = t78*t379
    1582           0 :                t2645 = t379*t804
    1583           0 :                t2655 = t140*t2230
    1584           0 :                t2707 = t74*t379
    1585           0 :                t2720 = t56*t1239
    1586             :                t2724 = 0.5000000001e0_dp*t165*t1392*t804 - 0.1333333334e1_dp*t165 &
    1587             :                        *t450*t1172 - 0.2666666667e1_dp*t170*t1089*t225 + 0.8333333333e-1_dp &
    1588             :                        *t429*t466*t2382 + 0.1000000000e1_dp*t170*t1254*t25 &
    1589             :                        + 0.1666666667e0_dp*t165*t166*t2622 + 0.1666666667e0_dp*t165* &
    1590             :                        t56*t2326*t140 - 0.2500000000e0_dp*t429*t166*t2424 - 0.3333333333e0_dp &
    1591             :                        *t165*t455*t1085 - 0.1728395062e0_dp*t165*t1268* &
    1592             :                        t140*t86 - 0.2500000000e0_dp*t1246*t446*t413*t804 + 0.1666666666e0_dp &
    1593             :                        *t1246*t2707*t833 + 0.1250000000e0_dp*t1368*t462*t2160 &
    1594             :                        - 0.1666666667e0_dp*t165*t466*t2378 + (6*t147*t1283 &
    1595           0 :                                                               *t394) + 0.5000000001e0_dp*t165*t2720*t237
    1596           0 :                t2732 = my_rho*t2205
    1597           0 :                t2759 = t25*t2230
    1598           0 :                t2763 = t1367*t444
    1599           0 :                t2779 = t25*t2160
    1600             :                t2783 = -0.2500000000e0_dp*t429*t1392*t754 + (6*t147*t393 &
    1601             :                                                              *t1347) - 0.3456790123e1_dp*t170*t1002*t74*t2732 + 0.5000000001e0_dp &
    1602             :                        *t165*t1275*t379 - 0.1333333334e1_dp*t170*t114*t889 &
    1603             :                        *t451 + 0.3333333334e0_dp*t170*t27*t2326*t172 - 0.2500000000e0_dp &
    1604             :                        *t429*t171*t1168 + 0.3750000000e0_dp*t1981*t1247*t2169 &
    1605             :                        + 0.5000000001e0_dp*t165*t171*t1093 + 0.8333333334e-1_dp*t1246 &
    1606             :                        *t1247*t2378 + 0.1666666667e0_dp*t445*t446*t2759 - 0.1250000000e0_dp &
    1607             :                        *t2763*t1247*t2382 + 0.5000000001e0_dp*t165*t437*t1067 &
    1608             :                        + 0.2222222222e0_dp*t165*t1089*t1360 + 0.1000000000e1_dp*t165 &
    1609             :                        *t455*t413 - 0.2500000000e0_dp*t429*t462*t2169 + 0.1250000000e0_dp &
    1610           0 :                        *t2763*t446*t2779
    1611           0 :                t2808 = t19*t1067
    1612           0 :                t2816 = t225*t754
    1613           0 :                t2821 = 0.1e1_dp/t41/t1140
    1614           0 :                t2823 = t47*t2821*t44
    1615             :                t2833 = -0.1687500000e2_dp*t1302*t401*t2169 + 0.6750000000e1_dp*t400 &
    1616             :                        *t1309*t804 + 0.4500000000e1_dp*t400*t1320*t833 - 0.1500000000e1_dp &
    1617             :                        *t400*t1316*t2368 + 0.1000000000e1_dp*t405*t194*t379 &
    1618             :                        *t14 + 0.8888888888e1_dp*t155*t97*my_rho*t2205 + 0.6750000000e1_dp &
    1619             :                        *t400*t2808*t237 - 0.1500000000e1_dp*t405*t68*t1067 &
    1620             :                        *t17 + 0.4500000000e1_dp*t400*t417*t2816 + 0.1968750000e2_dp*t2823 &
    1621             :                        *t401*t2160 + 0.1500000000e1_dp*t405*t156*t2759 + 0.2250000000e1_dp &
    1622           0 :                        *t400*t401*t2230
    1623           0 :                t2843 = t777*t237
    1624           0 :                t2853 = t172*t2169
    1625           0 :                t2869 = t225*t804
    1626           0 :                t2873 = t194*t225
    1627             :                t2877 = -0.1500000000e1_dp*t151*t50*t2622 + 0.5625000000e1_dp*t1302 &
    1628             :                        *t156*t2779 - 0.6750000000e1_dp*t400*t1333*t754 + 0.4999999999e1_dp &
    1629             :                        *t405*t1340*t2843 - 0.1000000000e2_dp*t49*t2351*t777 &
    1630             :                        - 0.5625000000e1_dp*t1302*t406*t2382 - 0.6750000000e1_dp*t1912 &
    1631             :                        *t2853 - 0.5555555555e0_dp*t405*t22*t140*t86 + 0.4500000000e1_dp &
    1632             :                        *t405*t1333*t804 + 0.2250000000e1_dp*t400*t406*t2378 - &
    1633             :                        0.1687500000e2_dp*t1302*t1309*t754 - 0.3000000000e1_dp*t405*t417 &
    1634           0 :                        *t2869 - 0.6000000000e1_dp*t405*t2873*t237
    1635           0 :                t2885 = t428*t1372
    1636             :                t2935 = -0.2500000000e0_dp*t429*t166*t2645 + (2*t147*t149 &
    1637             :                                                         *(t2833 + t2877)) + 0.5000000001e0_dp*t445*t1292*t1093 + 0.3333333333e0_dp &
    1638             :                        *t2885*t446*t2816 + 0.2222222222e0_dp*t165*t1377 &
    1639             :                        *t2368 - 0.3333333333e0_dp*t165*t1264*t833 + 0.2e1_dp*(t147) &
    1640             :                        *(t2257 - t2261 - t2264 - t2268 + t2272 + 0.9000000000e1_dp*t2274 &
    1641             :                          - t2279)*(t149)*t160 - 0.3333333333e0_dp*t170*t27*t1239 &
    1642             :                        *t17 - 0.8333333335e-1_dp*t429*t166*t2655 + (6*t147 &
    1643             :                                                                     *t1284*t424) + 0.2e1_dp*(t147)*t1387*t392*(t149)* &
    1644             :                        t160 - 0.2500000000e0_dp*t1246*t1292*t1168 - 0.1666666667e0_dp* &
    1645             :                        t165*t1254*t433 + (6*t147*t1388*t424) + 0.1666666667e0_dp &
    1646             :                        *t165*t462*t2230 + 0.2222222222e0_dp*t165*t450*t379*t14 &
    1647           0 :                        - 0.5000000001e0_dp*t429*t437*t914
    1648           0 :                t2937 = t164*t45*t341
    1649           0 :                t2992 = 0.1e1_dp/t1140/t40
    1650           0 :                t2994 = t59*t2992*pi
    1651           0 :                t2998 = t27*t225
    1652             :                t3026 = 0.1620000000e3_dp*t1143*t474*t2169 + 0.1080000000e3_dp*t1143 &
    1653             :                        *t479*t2382 - 0.2160000000e3_dp*t2994*t474*t2160 + 0.3600000000e2_dp &
    1654             :                        *t478*t2998*t237 + 0.1620000000e3_dp*t1143*t1150* &
    1655             :                        t754 + 0.2666666667e1_dp*t478*t114*t140*t86 - 0.3600000000e2_dp &
    1656             :                        *t473*t479*t2378 + 0.1080000000e3_dp*t1821*t2853 - 0.7200000000e2_dp &
    1657             :                        *t473*t1161*t833 - 0.1800000000e2_dp*t473*t474*t2230 &
    1658             :                        + 0.8999999998e1_dp*t178*t62*t2622 - 0.5400000000e2_dp*t478* &
    1659           0 :                        t1176*t804
    1660           0 :                t3030 = t20*t1067
    1661             :                t3069 = -0.1800000000e2_dp*t478*t183*t2759 - 0.5400000000e2_dp*t473 &
    1662             :                        *t3030*t237 - 0.6000000000e1_dp*t478*t27*t379*t14 - 0.5400000000e2_dp &
    1663             :                        *t473*t1150*t804 + 0.1800000000e2_dp*t478*t489* &
    1664             :                        t2869 + 0.1080000000e3_dp*t473*t1176*t754 + 0.1800000000e2_dp*t478 &
    1665             :                        *t56*t1067*t17 - 0.3600000000e2_dp*t473*t489*t2816 - 0.1866666667e2_dp &
    1666             :                        *t182*t357*t2205 + 0.2400000000e2_dp*t61*t2276 &
    1667             :                        *t777 - 0.2400000000e2_dp*t478*t123*t2843 - 0.1080000000e3_dp* &
    1668           0 :                        t1143*t183*t2779 + 0.1200000000e2_dp*t473*t1157*t2368
    1669           0 :                t3070 = t3026 + t3069
    1670           0 :                t3085 = t1210*t67
    1671             :                t3093 = (3*t496*t865*t65) + (3*t1189*t266*t65) &
    1672             :                        + 0.1111111112e1_dp*(t192)*(t2307)*(t65)*(t225) &
    1673             :                        + (t187*t2280*t65) + (3*t496*t863*t65) + 0.2222222223e0_dp &
    1674             :                        *t516*t1111*t526 + (t187*t2285*t65) + (t3070 &
    1675             :                                                               *t65) - 0.1851851853e0_dp*t1193*t498*t1200 + 0.2222222223e0_dp &
    1676             :                        *t508*t1119 + 0.1111111112e0_dp*(t192)*t194*(t1189) &
    1677             :                        *t526 + 0.2222222223e0_dp*t1137*t1221 - 0.1666666668e0_dp*t1129 &
    1678             :                        *t534 + 0.1111111112e0_dp*t3085*t271 - 0.5555555558e-1_dp*(t192) &
    1679           0 :                        *(t199)*(t2281) - 0.1851851853e0_dp*t508*t1201
    1680           0 :                t3097 = t66*t69
    1681           0 :                t3098 = t1109*t267
    1682           0 :                t3129 = t2296*t67
    1683             :                t3141 = -0.3333333336e0_dp*t192*t2299*t1125 - 0.1666666668e0_dp*t3097 &
    1684             :                        *t3098 + 0.1111111112e0_dp*t503*t2300 + 0.1111111112e0_dp*t1129 &
    1685             :                        *t527 - 0.1666666668e0_dp*t1129*t531 - 0.5555555558e-1_dp*t192 &
    1686             :                        *t68*t3070*t65 + 0.1646090535e0_dp*t192*t97*t187*t65* &
    1687             :                        t86 + 0.5555555559e0_dp*t1129*t512 - 0.1666666668e0_dp*t192*t530 &
    1688             :                        *t864 - 0.1666666668e0_dp*t1106*t882 - 0.1666666668e0_dp*t192* &
    1689             :                        t530*t866 - 0.1481481482e1_dp*t192*t1099*t777 - 0.1111111112e0_dp &
    1690             :                        *t3129*t196 + 0.5555555559e0_dp*t1193*t866*t451 - 0.1666666668e0_dp &
    1691             :                        *t503*t2282 - 0.1666666668e0_dp*t3085*t275 + 0.1111111112e0_dp &
    1692           0 :                        *t503*t2312
    1693             :                t3181 = -0.1851851853e0_dp*t1106*t874 - 0.1666666668e0_dp*t508*t1235 &
    1694             :                        - 0.3333333336e0_dp*t508*t1224 - 0.1111111112e0_dp*t516*t2281 &
    1695             :                        *t172 + 0.1111111112e0_dp*t516*t1097*t526 + 0.2222222223e0_dp* &
    1696             :                        t1106*t878 - 0.1851851853e0_dp*t503*t2308 - 0.3333333336e0_dp*t1137 &
    1697             :                        *t1216 + (3*t3098) + 0.1111111112e0_dp*t516*t1109*t526 &
    1698             :                        - 0.5555555558e-1_dp*t503*t2287 - 0.3333333336e0_dp*t192*t2311 &
    1699             :                        *t1125 - 0.6666666672e0_dp*t508*t1126 + 0.1646090535e0_dp*t503 &
    1700             :                        *t2319 - 0.5555555558e-1_dp*t3129*t200 - 0.5555555558e-1_dp*t58 &
    1701           0 :                        *t2622*t71 - 0.1666666668e0_dp*t1106*t886
    1702             :                t3232 = -0.1666666668e0_dp*t192*t1206*t267 - 0.5555555558e-1_dp*t192 &
    1703             :                        *t199*t2295 - 0.1666666668e0_dp*t508*t1122 - 0.3333333336e0_dp &
    1704             :                        *t1129*t520 - 0.1111111112e0_dp*t516*t2295*t172 - 0.1481481482e1_dp &
    1705             :                        *t66*t67*t97*t267*t1100 - 0.1851851853e0_dp*t192* &
    1706             :                        t22*t496*t1200 - 0.3333333336e0_dp*t516*t2292*t65*my_rho* &
    1707             :                        t25 + 0.1810699590e1_dp*t192*t311*t70*t2732 - 0.5555555558e-1_dp &
    1708             :                        *t503*t2304 - 0.1481481482e1_dp*t508*t1101 - 0.3333333336e0_dp* &
    1709             :                        t867*t515*t517 + 0.1111111112e1_dp*t268*t1192*t1194 + 0.5555555559e0_dp &
    1710             :                        *t1193*t864*t451 + 0.1111111112e1_dp*t508*t1213 - &
    1711           0 :                        0.1666666668e0_dp*t508*t1207 - 0.3333333336e0_dp*t1137*t1134
    1712           0 :                t3244 = t278*t140
    1713           0 :                t3248 = t889*my_rho
    1714           0 :                t3262 = omega*t1300
    1715           0 :                t3264 = t140*t2160
    1716             :                t3268 = 0.1555555556e1_dp*t2937*t446*t2843 + 0.3111111111e1_dp*t170 &
    1717             :                        *t1268*t777 - 0.2500000000e0_dp*t429*t1275*t290 - 0.1333333334e1_dp &
    1718             :                        *t1373*t1292*t1172 + 0.3111111111e1_dp*t170*t341*t278 &
    1719             :                        *t1100 - 0.3456790122e0_dp*t170*t341*t203*t86 + 0.3750000000e0_dp &
    1720             :                        *t1368*t166*t2418 + 0.4444444444e0_dp*t170*t114*t537 &
    1721             :                        *t14 + 0.3333333334e0_dp*t55*t57*(t3093 + t3141 + t3181 + t3232) &
    1722             :                        - 0.1111111111e0_dp*t2885*t1247*t2368 - 0.6666666668e0_dp*t1373 &
    1723             :                        *t446*t2869 + 0.1666666667e0_dp*t1246*t3244*t833 + 0.5000000001e0_dp &
    1724             :                        *t445*t3248*t413 - 0.1666666667e0_dp*t165*t171* &
    1725             :                        t1067*t17 - 0.2500000000e0_dp*t429*t437*t918 + 0.3750000000e0_dp &
    1726           0 :                        *t1368*t437*t907 - 0.3125000000e0_dp*t3262*t45*t166*t3264
    1727           0 :                t3278 = my_rho*t398
    1728             :                t3288 = -0.1000000001e1_dp*t165*t2636*t237 - 0.2000000001e1_dp*t55 &
    1729             :                        *t926 - 0.1000000001e1_dp*t83*t922*t379 - 0.5000000004e0_dp*t289 &
    1730             :                        *t84*t2645 + 0.2500000002e0_dp*t429*t897*t754 - 0.1000000001e1_dp &
    1731             :                        *t83*t294*t1067 - 0.1666666668e0_dp*t289*t84*t2655 &
    1732             :                        - 0.1000000001e1_dp*t83*t2404*t237 - 0.5000000004e0_dp*t289*t922 &
    1733             :                        *t290 - 0.5000000004e0_dp*t289*t384*t2169 - 0.5000000004e0_dp &
    1734             :                        *t289*t1071*t754 - 0.2222222224e0_dp*t144*t46*(t2724 + t2783 &
    1735             :                                                                       + t2935 + t3268) - 0.3333333336e0_dp*t83*t45*t2392*t140 - &
    1736             :                        0.1250000001e0_dp*t3278*omega*t84*t3264 - 0.1000000001e1_dp*t55 &
    1737           0 :                        *t1068 + 0.8333333340e-1_dp*t906*t384*t2160
    1738             :                t3291 = -0.1000000001e1_dp*t2147*t84*t754 - 0.4000000002e1_dp*t747 &
    1739             :                        *t294*t237 - 0.2000000001e1_dp*t747*t84*t804 - 0.1333333334e1_dp &
    1740             :                        *t214*t894 + 0.1666666668e0_dp*t4*t150*t46*t78*t2160 &
    1741             :                        - 0.1000000001e1_dp*t753*t46*t282*t754 - 0.1000000001e1_dp*t1409 &
    1742             :                        *t84*t2169 - 0.2000000001e1_dp*t217*t46*t893*t237 - 0.2000000001e1_dp &
    1743             :                        *t217*t46*t282*t804 - 0.6666666672e0_dp*t217* &
    1744             :                        t46*t78*t2230 - 0.4444444448e0_dp*t43*t46*t2392 + t8*(t2635 &
    1745           0 :                                                                              + t3288)
    1746             :             END IF
    1747     1218022 :             IF (grad_deriv >= 3 .OR. grad_deriv == -3) THEN
    1748           0 :                e_rho_rho_rho(ii) = e_rho_rho_rho(ii) + t3291*sx
    1749           0 :                t3305 = t4*t428
    1750           0 :                t3306 = t754*t561
    1751           0 :                t3314 = t237*t1447
    1752           0 :                t3329 = t804*t561
    1753           0 :                t3339 = t949*t557
    1754           0 :                t3344 = t953*t1425
    1755           0 :                t3347 = t316*t1443
    1756           0 :                t3352 = t772*t557
    1757           0 :                t3353 = t974*t3352
    1758           0 :                t3356 = t233*t1443
    1759           0 :                t3357 = t327*t3356
    1760           0 :                t3362 = t800*t557
    1761           0 :                t3363 = t327*t3362
    1762           0 :                t3366 = beta*t777
    1763             :                t3378 = 0.1866666667e2_dp*t3366*t342 + 0.9866666667e2_dp*t24*t782 &
    1764             :                        - 0.8266666668e2_dp*t366*t797 + 0.3200000001e2_dp*t1054/t1014/ &
    1765           0 :                        t12*t1058
    1766           0 :                t3379 = t105*t3378
    1767             :                t3382 = 0.3911111110e2_dp*t24*t766 - 0.1955555555e2_dp*t962*t3339 &
    1768             :                        + 0.2133333334e2_dp*t339*t769 - 0.2133333334e2_dp*t321*t3344 + &
    1769             :                        0.1066666667e2_dp*t321*t3347 + 0.80e1_dp*t112*t773 - 0.120e2_dp*t102 &
    1770             :                        *t3353 + 0.80e1_dp*t102*t3357 - 0.40e1_dp*t112*t801 + 0.40e1_dp &
    1771           0 :                        *t102*t3363 - 0.20e1_dp*t102*t3379
    1772           0 :                t3449 = t1447*t17
    1773             :                t3453 = (2*t147*t1885*t249) + 0.1800000000e2_dp*(t1971) &
    1774             :                        *(t1972)*(t1973)*(t249) + (2*t147*t393 &
    1775             :                                                   *t1470) + 0.1800000000e2_dp*t658*t575*t827 + 0.2e1_dp*(t147) &
    1776             :                        *t149*(-0.5625000000e1_dp*t1302*t19*t754*t561 + 0.4500000000e1_dp &
    1777             :                               *t400*t1459*t1447 + 0.1500000000e1_dp*t400*t815*t1483 &
    1778             :                               - 0.1000000000e1_dp*t405*t68*t1447*t17 + 0.2250000000e1_dp* &
    1779             :                               t400*t19*t804*t561 - 0.1500000000e1_dp*t151*t50*t3382 + 0.3333333334e0_dp &
    1780             :                               *t405*t194*t14*t561) + 0.1250000000e0_dp*t1368 &
    1781             :                        *t166*t3306 - 0.8333333335e-1_dp*t429*t679*t754 - 0.1666666667e0_dp &
    1782             :                        *t429*t166*t3314 + 0.5555555555e-1_dp*t1246*t74*t237 &
    1783             :                        *t1483 - 0.1111111111e0_dp*t165*t689*t833 - 0.1111111111e0_dp* &
    1784           0 :                        t165*t171*t3449
    1785           0 :                t3472 = t14*t561
    1786           0 :                t3491 = 0.5400000000e2_dp*t1143*t20*t754*t561
    1787           0 :                t3494 = 0.3600000000e2_dp*t473*t1493*t1447
    1788           0 :                t3497 = 0.2400000000e2_dp*t473*t852*t1483
    1789           0 :                t3501 = 0.1200000000e2_dp*t478*t56*t1447*t17
    1790           0 :                t3505 = 0.1800000000e2_dp*t473*t20*t804*t561
    1791           0 :                t3507 = t178*t62*t3382
    1792           0 :                t3512 = 0.2000000000e1_dp*t478*t27*t14*t561
    1793             :                t3513 = t3491 - t3494 - t3497 + t3501 - t3505 + 0.8999999998e1_dp*t3507 &
    1794           0 :                        - t3512
    1795           0 :                t3514 = t3513*t65
    1796           0 :                t3525 = t58*t3382
    1797           0 :                t3533 = t237*t1518
    1798             :                t3543 = t3514 + 0.8999999998e1_dp*t863*t59*t177*t710 + (2 &
    1799             :                                                           *t267*t1504) + 0.8999999998e1_dp*t865*t59*t177*t710 - 0.5555555558e-1_dp &
    1800             :                        *t3525*t71 - 0.5000000001e0_dp*t804*t177*t709 + &
    1801             :                        0.7407407410e-1_dp*t1755*t271 + 0.6666666668e0_dp*t3533*t1722 - &
    1802             :                        0.1111111112e0_dp*t1755*t275 - 0.1111111112e0_dp*t508*t1525 - 0.1000000001e1_dp &
    1803           0 :                        *t237*t266*t1722
    1804           0 :                t3546 = 0.1e1_dp/t12
    1805           0 :                t3547 = t60*t3546
    1806           0 :                t3552 = t194*t1504
    1807           0 :                t3553 = t3552*t526
    1808           0 :                t3561 = t68*t3513*t65
    1809           0 :                t3569 = t274*t1505
    1810             :                t3575 = -0.6172839508e-1_dp*t719*t874 - 0.5555555556e0_dp*t3547*t709 &
    1811             :                        + 0.7407407410e-1_dp*t719*t878 + 0.7407407410e-1_dp*t192*t3553 &
    1812             :                        + 0.6666666668e0_dp*t1519*t1712 - 0.5555555558e-1_dp*t719*t882 &
    1813             :                        - 0.5555555558e-1_dp*t192*t3561 - 0.5000000001e0_dp*t60*t863* &
    1814             :                        t709 - 0.5555555558e-1_dp*t719*t886 - 0.1111111112e0_dp*t192*t3569 &
    1815           0 :                        - 0.5000000001e0_dp*t60*t865*t709
    1816           0 :                t3576 = t3543 + t3575
    1817             :                t3580 = -0.1666666667e0_dp*t429*t437*t1410 + 0.3333333334e0_dp*t165 &
    1818             :                        *t1928*t237 + 0.3333333334e0_dp*t165*t437*t1447 - 0.8333333335e-1_dp &
    1819             :                        *t429*t166*t3329 + 0.1666666667e0_dp*t165*t679*t804 &
    1820             :                        + 0.1666666667e0_dp*t165*t166*t3382 + 0.7407407405e-1_dp*t165 &
    1821             :                        *t450*t3472 + 0.1481481481e0_dp*t170*t1875*t14 - 0.1111111111e0_dp &
    1822             :                        *t165*t455*t1483 - 0.2222222222e0_dp*t170*t1932*t17 + &
    1823             :                        0.1666666667e0_dp*t165*t1275*t561 + 0.3333333334e0_dp*t55*t57 &
    1824           0 :                        *t3576
    1825           0 :                t3581 = t3453 + t3580
    1826           0 :                t3608 = t973*my_rho
    1827             :                t3618 = 0.640e2_dp*t1597*t1598*t3356 - 0.640e2_dp*t1582*t773 - &
    1828             :                        0.1173333333e3_dp*t93*t3347 - 0.3911111110e2_dp*t1000*t963 - 0.320e2_dp &
    1829             :                        *t605*t959 + 0.1173333333e3_dp*t307*t949*t1602 + 0.40e1_dp &
    1830             :                        *t102*t327*t136*t3378 - 0.960e2_dp*t1597*t3608*t3352 - &
    1831             :                        0.40e1_dp*t112*t1064 + 0.80e1_dp*t112*t984 + 0.2737777778e3_dp*t307 &
    1832           0 :                        *t3339
    1833           0 :                t3668 = t2552*t23
    1834           0 :                t3673 = t635*t1058
    1835           0 :                t3674 = t3673*t220
    1836             :                t3677 = -0.1866666667e3_dp*t1645*t342 - 0.6346666667e3_dp*t24*t991 &
    1837             :                        + 0.3946666667e3_dp*t366*t997 + 0.1866666667e3_dp*beta*t764* &
    1838             :                        t1004 + 0.60e1_dp*t550*t1046 + 0.60e1_dp*t119*t27*(-0.280e3_dp/ &
    1839             :                                                              0.9e1_dp*t987 + 0.280e3_dp/0.9e1_dp*t2537*my_rho)*t132 - 0.60e1_dp*t7 &
    1840             :                        *t640*t1044*t371 + 0.1600000000e2_dp*t366*t368*t1667*t371 &
    1841             :                        - 0.4800000000e2_dp*t1680*t3668 + 0.1600000000e3_dp*t1680*t1060 &
    1842           0 :                        + 0.3200000000e2_dp*t1055*t3674
    1843           0 :                t3679 = t2565*t1439
    1844           0 :                t3682 = t24*t940
    1845             :                t3711 = -0.1600000000e3_dp*t2220*t368*t3679 + 0.6346666667e3_dp*t3682 &
    1846             :                        *t1008 - 0.3946666667e3_dp*t366*t1012*t1021 + 0.1866666667e2_dp &
    1847             :                        *t3366*t1026 + 0.1866666667e2_dp*t1024*t341*t635*t132 &
    1848             :                        - 0.1706666667e3_dp*t7*t1036 - 0.1600000000e2_dp*t1429*t1030 - 0.1600000000e2_dp &
    1849             :                        *t350*t114*t1667*t132 + 0.6400000000e2_dp*t7* &
    1850             :                        t1050 - 0.5066666667e2_dp*t366*t1034*t635*t371 + 0.1520000000e3_dp &
    1851           0 :                        *t786*t1034*t1681
    1852             :                t3726 = -0.240e2_dp*t1616*t1617*t3356 + 0.160e2_dp*t302*t3379 + &
    1853             :                        0.40e1_dp*t102*t327*t1063*t557 + 0.960e2_dp*t302*t3353 - 0.320e2_dp &
    1854             :                        *t302*t3363 - 0.2737777778e3_dp*t941*t2468*t608 - 0.120e2_dp &
    1855             :                        *t102*t974*t645*t772 - 0.2133333334e2_dp*t321*t953*t1621 &
    1856             :                        - 0.20e1_dp*t102*t105*(t3677 + t3711) + 0.80e1_dp*t102*t327 &
    1857             :                        *t375*t1443 - 0.120e2_dp*t1616*t1617*t3362 - 0.2133333334e2_dp &
    1858           0 :                        *t321*t953*t1625
    1859           0 :                t3750 = t2585*t136
    1860             :                t3763 = 0.2346666666e3_dp*t1589*t950 + 0.80e1_dp*t102*t327*t1684 &
    1861             :                        *t233 + 0.6400000002e2_dp*t7*t220*t1618 - 0.240e2_dp*t112*t976 &
    1862             :                        - 0.160e2_dp*t93*t316*my_rho*t3378 + 0.2346666666e3_dp*t93* &
    1863             :                        t3344 + 0.3911111110e2_dp*t962*t2611*t614 - 0.5475555556e3_dp*t24 &
    1864             :                        *t930 + 0.480e2_dp*t1616*t3750*t3352 - 0.1955555555e2_dp*t962 &
    1865             :                        *t949*t645 - 0.240e2_dp*t1616*t973*t375*t1425 + 0.2133333334e2_dp &
    1866           0 :                        *t339*t969
    1867             :                t3794 = -0.640e2_dp*t302*t3357 - 0.4266666668e2_dp*t339*t966 + 0.640e2_dp &
    1868             :                        *t605*t955 + 0.40e1_dp*t102*t327*t645*t800 + 0.5475555556e3_dp &
    1869             :                        *t3682*t946 + 0.1066666667e2_dp*t321*t316*t1684 + 0.160e2_dp &
    1870             :                        *t112*t980 - 0.2346666666e3_dp*t7*t929*t1599 + 0.320e2_dp &
    1871             :                        *t1597*t1598*t3362 - 0.2346666666e3_dp*t605*t769 + 0.320e2_dp &
    1872           0 :                        *t1582*t801 - 0.2133333334e2_dp*t321*t953*t1631
    1873           0 :                t3796 = t3618 + t3726 + t3763 + t3794
    1874             :                t3826 = 0.8333333340e-1_dp*t906*t597*t907 + 0.1666666668e0_dp*t429 &
    1875             :                        *t1547 - 0.3333333336e0_dp*t83*t84*t3796 - 0.3333333336e0_dp* &
    1876             :                        t83*t922*t649 - 0.3333333336e0_dp*t289*t294*t1571 - 0.3333333336e0_dp &
    1877             :                        *t289*t1071*t1410 - 0.6666666672e0_dp*t83*t1564*t379 &
    1878             :                        - 0.6666666672e0_dp*t55*t1700 - 0.3333333336e0_dp*t165*t207* &
    1879             :                        t237*t561 - 0.6666666672e0_dp*t55*t1689 - 0.3333333336e0_dp*t83 &
    1880           0 :                        *t1694*t804 + 0.1666666668e0_dp*t1546*t897*t3314
    1881           0 :                t3827 = t649*t804
    1882           0 :                t3842 = t3278*t46
    1883           0 :                t3849 = t140*t3382
    1884           0 :                t3853 = t649*t754
    1885           0 :                t3861 = t78*t649
    1886           0 :                t3865 = t589*t140
    1887             :                t3869 = -0.1666666668e0_dp*t289*t84*t3827 - 0.1666666668e0_dp*t289 &
    1888             :                        *t922*t593 + 0.1666666668e0_dp*t1546*t2636*t1410 - 0.6666666672e0_dp &
    1889             :                        *t55*t1703 - 0.3333333336e0_dp*t83*t597*t1067 - 0.1250000001e0_dp &
    1890             :                        *t3842*t897*t3306 - 0.3333333336e0_dp*t83*t384* &
    1891             :                        t3382 - 0.1666666668e0_dp*t289*t84*t3849 + 0.8333333340e-1_dp*t906 &
    1892             :                        *t84*t3853 - 0.6666666672e0_dp*t55*t1568 - 0.6666666672e0_dp* &
    1893             :                        t55*t1565 - 0.3333333336e0_dp*t165*t3861*t237 - 0.3333333336e0_dp &
    1894           0 :                        *t165*t3865*t237
    1895           0 :                t3871 = t379*t1447
    1896           0 :                t3875 = t45*t2002
    1897           0 :                t3892 = t225*t1447
    1898           0 :                t3918 = t25*t3382
    1899           0 :                t3925 = t777*t561
    1900           0 :                t3933 = t451*t1410
    1901           0 :                t3939 = t1301*t245
    1902           0 :                t3940 = t172*t3306
    1903             :                t3965 = 0.1500000000e1_dp*t405*t156*t3918 + 0.1968750000e2_dp*t2823 &
    1904             :                        *t401*t3306 + 0.1666666666e1_dp*t405*t1340*t3925 + 0.3000000000e1_dp &
    1905             :                        *t405*t1333*t1447 + 0.3000000000e1_dp*t399*t822*t3933 &
    1906             :                        + 0.2250000000e1_dp*t400*t401*t3382 + 0.5625000000e1_dp*t3939 &
    1907             :                        *t3940 + 0.3333333333e0_dp*t405*t194*t649*t14 - 0.1125000000e2_dp &
    1908             :                        *t1302*t1309*t1410 + 0.2250000000e1_dp*t400*t1892*t804 &
    1909             :                        - 0.5625000000e1_dp*t1302*t401*t3329 - 0.5625000000e1_dp*t1302 &
    1910             :                        *t1892*t754 + 0.2250000000e1_dp*t400*t2808*t561 - 0.4500000000e1_dp &
    1911           0 :                        *t400*t1333*t1410
    1912           0 :                t3969 = t172*t3314
    1913           0 :                t3975 = t19*t1688
    1914           0 :                t3979 = t290*t1483
    1915           0 :                t3985 = t172*t3329
    1916             :                t4010 = -0.1125000000e2_dp*t1302*t401*t3314 - 0.4500000000e1_dp*t1912 &
    1917             :                        *t3969 + 0.4500000000e1_dp*t400*t1309*t1447 + 0.4500000000e1_dp &
    1918             :                        *t400*t3975*t237 - 0.3750000000e1_dp*t3939*t3979 - 0.2000000000e1_dp &
    1919             :                        *t405*t417*t3892 - 0.2250000000e1_dp*t1912*t3985 - &
    1920             :                        0.2000000000e1_dp*t405*t2873*t561 - 0.5000000000e0_dp*t400*t1316 &
    1921             :                        *t3472 - 0.1000000000e1_dp*t405*t68*t1688*t17 + 0.1500000000e1_dp &
    1922             :                        *t400*t406*t3449 - 0.1500000000e1_dp*t151*t50*t3796 &
    1923             :                        + 0.1500000000e1_dp*t400*t1902*t833 + 0.1500000000e1_dp*t400* &
    1924           0 :                        t1320*t1483
    1925             :                t4018 = 0.2222222222e0_dp*t2885*t446*t1172*t561 - 0.1666666667e0_dp &
    1926             :                        *t1246*t1292*t1865 - 0.4444444445e0_dp*t1373*t446*t3892 &
    1927             :                        - 0.1111111111e0_dp*t165*t171*t1688*t17 + 0.1666666667e0_dp*t165 &
    1928             :                        *t56*t3576*t140 + 0.1250000000e0_dp*t2763*t446*t1168* &
    1929             :                        t561 + 0.3333333334e0_dp*t165*t689*t413 + 0.1666666667e0_dp*t165 &
    1930             :                        *t679*t1067 - 0.1666666667e0_dp*t1246*t446*t413*t1447 + &
    1931             :                        (2*t147*t149*(t3965 + t4010)) - 0.4444444445e0_dp*t1373* &
    1932           0 :                        t1292*t1829
    1933           0 :                t4025 = t3262*t57
    1934           0 :                t4032 = t74*t649
    1935           0 :                t4070 = t3525*t67
    1936             :                t4079 = -0.5555555558e-1_dp*t192*t199*t3514 + (t705*t863* &
    1937             :                                                               t65) + (2*t496*t1504*t65) + (t187*t3513*t65) - &
    1938             :                        0.5555555558e-1_dp*t192*t728*t864 - 0.5555555556e0_dp*t140*t3546 &
    1939             :                        *t1722 + (t705*t865*t65) - 0.1111111112e0_dp*t1106*t1525 &
    1940             :                        - 0.1111111112e0_dp*t4070*t196 + 0.6666666668e0_dp*t1748*t266 &
    1941           0 :                        *t1722 + 0.3703703706e0_dp*t1193*t1505*t451
    1942           0 :                t4101 = t498*t1505
    1943             :                t4108 = -0.5000000001e0_dp*t60*t1189*t709 + 0.3703703706e0_dp*t1755 &
    1944             :                        *t512 - 0.5555555558e-1_dp*t503*t3561 - 0.2222222224e0_dp*t516 &
    1945             :                        *t267*t172*t1504 - 0.5555555558e-1_dp*t1715*t886 - 0.5555555558e-1_dp &
    1946             :                        *t1715*t882 - 0.1111111112e0_dp*t516*t3514*t172 - 0.5000000001e0_dp &
    1947             :                        *t1067*t177*t709 + (2*t4101) - 0.1111111112e0_dp &
    1948           0 :                        *t508*t1769 - 0.1111111112e0_dp*t192*t1837*t267
    1949             :                t4140 = -0.5555555558e-1_dp*t719*t1207 - 0.2000000001e1_dp*t1763* &
    1950             :                        t266*t1722 - 0.1111111112e0_dp*t192*t530*t1505 + 0.1333333334e1_dp &
    1951             :                        *t1519*t722*t1712 + 0.7407407410e-1_dp*t516*t1718*t526 &
    1952             :                        + 0.6666666668e0_dp*t379*t1518*t1722 - 0.5555555558e-1_dp*t192* &
    1953             :                        t728*t866 - 0.2222222224e0_dp*t719*t1126 + 0.1800000000e2_dp*t1111 &
    1954             :                        *t178*t710 - 0.1111111112e0_dp*t508*t1782 - 0.5555555558e-1_dp &
    1955           0 :                        *t58*t3796*t71
    1956           0 :                t4156 = t865*t561*t65
    1957           0 :                t4201 = t20*t1688
    1958             :                t4214 = -0.8000000000e1_dp*t478*t123*t3925 - 0.2400000000e2_dp*t473 &
    1959             :                        *t479*t3449 + 0.1200000000e2_dp*t478*t489*t3892 + 0.1200000000e2_dp &
    1960             :                        *t478*t2998*t561 - 0.2000000000e1_dp*t478*t27*t649 &
    1961             :                        *t14 + 0.1200000000e2_dp*t478*t56*t1688*t17 - 0.2400000000e2_dp &
    1962             :                        *t473*t1161*t1483 + 0.1080000000e3_dp*t1143*t474*t3314 - &
    1963             :                        0.2160000000e3_dp*t2994*t474*t3306 + 0.7200000000e2_dp*t1821* &
    1964             :                        t3969 - 0.3600000000e2_dp*t473*t4201*t237 - 0.1800000000e2_dp*t473 &
    1965             :                        *t3030*t561 - 0.2400000000e2_dp*t473*t1811*t833 - 0.1800000000e2_dp &
    1966           0 :                        *t478*t183*t3918
    1967           0 :                t4230 = t1142*t262
    1968             :                t4255 = 0.5400000000e2_dp*t1143*t474*t3329 + 0.5400000000e2_dp*t1143 &
    1969             :                        *t1801*t754 + 0.7200000000e2_dp*t473*t1176*t1410 + 0.8999999998e1_dp &
    1970             :                        *t178*t62*t3796 - 0.2400000000e2_dp*t472*t859*t3933 &
    1971             :                        - 0.1080000000e3_dp*t4230*t3940 + 0.4000000000e1_dp*t473*t1157 &
    1972             :                        *t3472 + 0.1080000000e3_dp*t1143*t1150*t1410 + 0.3600000000e2_dp &
    1973             :                        *t1821*t3985 + 0.7200000000e2_dp*t4230*t3979 - 0.1800000000e2_dp &
    1974             :                        *t473*t1801*t804 - 0.3600000000e2_dp*t473*t1150*t1447 - &
    1975             :                        0.3600000000e2_dp*t478*t1176*t1447 - 0.1800000000e2_dp*t473*t474 &
    1976           0 :                        *t3382
    1977           0 :                t4256 = t4214 + t4255
    1978             :                t4261 = -0.2222222224e0_dp*t1510*t515*t517 + 0.3703703706e0_dp*t719 &
    1979             :                        *t1213 - 0.1000000001e1_dp*t1766*t266*t1722 - 0.5555555558e-1_dp &
    1980             :                        *t4070*t200 + 0.6666666668e0_dp*t1519*t496*t561*t65 - 0.5000000001e0_dp &
    1981             :                        *t732*t4156 - 0.5000000001e0_dp*t140*t865*t1722 &
    1982             :                        - 0.5000000001e0_dp*t804*t187*t1722 - 0.4938271608e0_dp*t719* &
    1983             :                        t1101 + 0.8999999998e1_dp*t1097*t178*t710 - 0.5555555558e-1_dp* &
    1984           0 :                        t192*t68*t4256*t65
    1985           0 :                t4272 = t863*t561*t65
    1986             :                t4292 = (2*t1836*t266*t65) - 0.1111111112e0_dp*t719*t1224 &
    1987             :                        - 0.2222222224e0_dp*t1137*t1790 - 0.1000000001e1_dp*t723*t4272 &
    1988             :                        - 0.1111111112e0_dp*t1785*t1134 - 0.6172839508e-1_dp*t192*t22* &
    1989             :                        t705*t1200 - 0.5000000001e0_dp*t140*t863*t1722 - 0.1111111112e0_dp &
    1990             :                        *t1755*t531 - 0.6172839508e-1_dp*t1715*t874 - 0.5555555558e-1_dp &
    1991           0 :                        *t719*t1122 + 0.7407407410e-1_dp*t508*t1726
    1992             :                t4317 = 0.7407407410e-1_dp*t1755*t527 - 0.6172839508e-1_dp*t719*t1201 &
    1993             :                        - 0.1111111112e0_dp*t508*t1838 - 0.2222222224e0_dp*t192*t3552 &
    1994             :                        *t1125 + 0.7407407410e-1_dp*t1785*t1221 - 0.1111111111e1_dp*t3547 &
    1995             :                        *t1737 + 0.6666666668e0_dp*t1519*t187*t1712 + 0.7407407410e-1_dp &
    1996             :                        *t503*t3553 - 0.1111111112e0_dp*t1755*t534 - 0.1000000001e1_dp &
    1997           0 :                        *t1774*t1712 + 0.7407407410e-1_dp*t719*t1119
    1998             :                t4345 = -0.1000000001e1_dp*t379*t266*t1722 - 0.1000000001e1_dp*t804 &
    1999             :                        *t722*t1722 + 0.8999999998e1_dp*t1109*t178*t710 - 0.5555555558e-1_dp &
    2000             :                        *t1129*t729 + t4256*t65 - 0.2222222224e0_dp*t1755*t520 &
    2001             :                        - 0.1111111112e0_dp*t503*t3569 - 0.1111111112e0_dp*t1785*t1216 &
    2002             :                        - 0.1111111112e0_dp*t3097*t4101 - 0.5000000001e0_dp*t732*t4272 &
    2003           0 :                        + 0.7407407410e-1_dp*t192*t194*t1836*t526
    2004           0 :                t4352 = t1731*t67
    2005             :                t4378 = 0.7407407410e-1_dp*t1715*t878 + 0.8999999998e1_dp*t1189*t59 &
    2006             :                        *t177*t710 + 0.7407407410e-1_dp*t4352*t271 - 0.1111111112e0_dp &
    2007             :                        *t4352*t275 - 0.5555555556e0_dp*t3547*t1745 + 0.7407407410e-1_dp &
    2008             :                        *t516*t1709*t526 + 0.6666666668e0_dp*t3533*t187*t1722 - 0.1000000001e1_dp &
    2009             :                        *t237*t496*t1722 + 0.3703703706e0_dp*t579*t1192 &
    2010             :                        *t1194 - 0.1000000001e1_dp*t723*t4156 + 0.1333333334e1_dp*t3533 &
    2011           0 :                        *t722*t1722 - 0.5555555558e-1_dp*t719*t1235
    2012             :                t4392 = 0.3333333334e0_dp*t165*t171*t1825 + 0.1250000000e0_dp*t1981 &
    2013             :                        *t1247*t3329 - 0.3125000000e0_dp*t4025*t1247*t3306 + 0.3333333334e0_dp &
    2014             :                        *t165*t1392*t1447 + 0.5555555556e-1_dp*t1246*t4032 &
    2015             :                        *t833 - 0.1666666667e0_dp*t1246*t74*t25*t1410 + 0.5555555556e-1_dp &
    2016             :                        *t1246*t1247*t3449 + 0.1800000000e2_dp*t657*t1283*t59 &
    2017             :                        *t1975 - 0.1666666667e0_dp*t429*t166*t3871 + 0.3333333334e0_dp &
    2018             :                        *t55*t57*(t4079 + t4108 + t4140 + t4261 + t4292 + t4317 + t4345 &
    2019             :                                  + t4378) + 0.1481481481e0_dp*t170*t114*t735*t14 - 0.1666666667e0_dp &
    2020           0 :                        *t429*t1928*t290
    2021             :                t4428 = -0.1111111111e0_dp*t165*t1264*t1483 + 0.1800000000e2_dp*t658 &
    2022             :                        *t575*t1348 - 0.8333333335e-1_dp*t429*t679*t918 - 0.1111111111e0_dp &
    2023             :                        *t165*t455*t1988 + 0.3333333334e0_dp*t170*t27*t3576 &
    2024             :                        *t172 - 0.8333333335e-1_dp*t429*t1966*t754 + 0.1250000000e0_dp &
    2025             :                        *t1368*t679*t907 + 0.1666666667e0_dp*t445*t446*t3918 - 0.4444444445e0_dp &
    2026             :                        *t165*t450*t1829 + 0.2500000000e0_dp*t1981*t3244 &
    2027           0 :                        *t1410 - 0.1666666667e0_dp*t429*t1392*t1410
    2028             :                t4466 = -0.1666666667e0_dp*t429*t437*t1553 - 0.1111111111e0_dp*t165 &
    2029             :                        *t689*t1085 + 0.1666666667e0_dp*t165*t1275*t649 - 0.2222222222e0_dp &
    2030             :                        *t170*t27*t1843*t17 - 0.8333333335e-1_dp*t1246*t1962 &
    2031             :                        *t1168 + 0.1666666667e0_dp*t165*t2720*t561 + 0.6666666668e0_dp &
    2032             :                        *t170*t1932*t25 + 0.3333333334e0_dp*t445*t1292*t1825 + 0.1250000000e0_dp &
    2033             :                        *t1368*t166*t3853 - 0.4444444445e0_dp*t1373*t1962 &
    2034             :                        *t1172 + 0.7407407405e-1_dp*t165*t1377*t3472 + 0.5555555555e-1_dp &
    2035           0 :                        *t1246*t3244*t1483
    2036           0 :                t4498 = t56*t1843
    2037             :                t4505 = 0.1666666667e0_dp*t165*t166*t3796 - 0.8333333334e-1_dp*t2763 &
    2038             :                        *t1247*t833*t561 + (4*t147*t392*t1886) + (2 &
    2039             :                                                          *t147*t1388*t672) - 0.1111111111e0_dp*t165*t1940*t833 + 0.3333333334e0_dp &
    2040             :                        *t165*t1928*t379 + 0.7407407409e-1_dp*t165*t450 &
    2041             :                        *t649*t14 - 0.1666666667e0_dp*t429*t462*t3314 - 0.3703703704e-1_dp &
    2042             :                        *t2885*t1247*t3472 + 0.3333333334e0_dp*t165*t4498*t237 &
    2043           0 :                        + (2*t147*t1284*t672)
    2044           0 :                t4512 = t1531*my_rho
    2045             :                t4545 = (4*t147*t1885*t424) + 0.1666666667e0_dp*t165*t462 &
    2046             :                        *t3382 + 0.3333333334e0_dp*t445*t4512*t413 + 0.5185185185e0_dp &
    2047             :                        *t2937*t446*t3925 - 0.8333333335e-1_dp*t429*t166*t3827 - 0.1666666667e0_dp &
    2048             :                        *t429*t437*t1571 + 0.5555555555e-1_dp*t1246*t203 &
    2049             :                        *t237*t1483 + 0.5555555555e-1_dp*t1246*t2707*t1483 + 0.7407407409e-1_dp &
    2050             :                        *t165*t1875*t1360 + (4*t147*t393*t1924) &
    2051             :                        + 0.3600000000e2_dp*(t1971)*(t1972)*(t1973)*(t424) &
    2052           0 :                        + 0.3333333334e0_dp*t165*t437*t1688
    2053           0 :                t4553 = t585*t140
    2054           0 :                t4575 = t1067*t561
    2055             :                t4585 = 0.1666666667e0_dp*t445*t3248*t668 - 0.1111111111e0_dp*t165 &
    2056             :                        *t1932*t433 + 0.5555555556e-1_dp*t1246*t4553*t833 - 0.8333333335e-1_dp &
    2057             :                        *t429*t1275*t593 - 0.8333333335e-1_dp*t429*t462* &
    2058             :                        t3329 + 0.2500000000e0_dp*t1981*t1247*t3314 + 0.1666666667e0_dp* &
    2059             :                        t445*t1962*t1093 + 0.3333333334e0_dp*t165*t455*t668 - 0.8333333335e-1_dp &
    2060             :                        *t429*t166*t3849 - 0.8333333335e-1_dp*t429*t166* &
    2061             :                        t4575 + 0.2e1_dp*t147*(t3491 - t3494 - t3497 + t3501 - t3505 + 0.9000000000e1_dp &
    2062           0 :                                               *t3507 - t3512)*t149*t160
    2063           0 :                t4607 = t1688*t237
    2064             :                t4627 = 0.1666666667e0_dp*t165*t1966*t804 - 0.1666666667e0_dp*t429 &
    2065             :                        *t437*t1557 + 0.1800000000e2_dp*t657*t1387*t59*t1975 + 0.1037037037e1_dp &
    2066             :                        *t170*t341*t585*t1100 - 0.8888888890e0_dp*t170 &
    2067             :                        *t114*t1531*t451 - 0.8888888890e0_dp*t170*t1875*t225 - 0.1666666667e0_dp &
    2068             :                        *t429*t166*t4607 - 0.1111111111e0_dp*t165*t466 &
    2069             :                        *t3449 - 0.1666666667e0_dp*t429*t679*t914 - 0.8333333335e-1_dp* &
    2070             :                        t1246*t446*t1093*t561 + 0.1250000000e0_dp*t1368*t462*t3306 &
    2071           0 :                        + 0.2500000000e0_dp*t1981*t2707*t1410
    2072             :                t4657 = -0.3333333336e0_dp*t289*t84*t3871 - 0.6666666672e0_dp*t83 &
    2073             :                        *t3875*t237 + 0.8333333340e-1_dp*t906*t384*t3306 - 0.1666666668e0_dp &
    2074             :                        *t289*t597*t918 - 0.2222222224e0_dp*t144*t46*(t4018 &
    2075             :                                                       + t4392 + t4428 + t4466 + t4505 + t4545 + t4585 + t4627) - 0.1666666668e0_dp &
    2076             :                        *t289*t384*t3329 - 0.3333333336e0_dp*t165*t2636*t561 &
    2077             :                        - 0.3333333336e0_dp*t165*t897*t1447 + 0.8333333340e-1_dp*t1546 &
    2078             :                        *t897*t3329 - 0.6666666672e0_dp*t83*t1071*t1447 - 0.3333333336e0_dp &
    2079             :                        *t83*t2404*t561 - 0.4444444448e0_dp*t383*t3875 - 0.3333333336e0_dp &
    2080           0 :                        *t289*t294*t1553
    2081             :                t4696 = -0.6666666672e0_dp*t55*t1575 - 0.3333333336e0_dp*t289*t597 &
    2082             :                        *t914 - 0.3333333336e0_dp*t165*t2631*t561 - 0.6666666672e0_dp* &
    2083             :                        t55*t1706 - 0.3333333336e0_dp*t289*t384*t3314 - 0.6666666672e0_dp &
    2084             :                        *t83*t294*t1688 + 0.1666666668e0_dp*t1546*t2631*t1410 - &
    2085             :                        0.3333333336e0_dp*t289*t1564*t290 - 0.1666666668e0_dp*t289*t84 &
    2086             :                        *t4575 - 0.3333333336e0_dp*t289*t294*t1557 - 0.1666666668e0_dp &
    2087             :                        *t289*t1694*t754 - 0.3333333336e0_dp*t289*t84*t4607 - 0.3333333336e0_dp &
    2088           0 :                        *t83*t45*t3581*t140
    2089             :                t4700 = -0.6666666670e0_dp*t2147*t1411 - 0.1333333334e1_dp*t747*t597 &
    2090             :                        *t237 - 0.1333333334e1_dp*t747*t84*t1447 - 0.1333333334e1_dp &
    2091             :                        *t747*t294*t561 - 0.8888888896e0_dp*t214*t1536 + 0.1666666668e0_dp &
    2092             :                        *t3305*t84*t3306 - 0.3333333336e0_dp*t753*t46*t589*t754 &
    2093             :                        - 0.6666666672e0_dp*t1409*t84*t3314 - 0.6666666670e0_dp*t1409 &
    2094             :                        *t294*t1410 - 0.1333333334e1_dp*t217*t46*t1535*t237 - 0.1333333334e1_dp &
    2095             :                        *t217*t46*t282*t1447 - 0.3333333336e0_dp*t1409 &
    2096             :                        *t84*t3329 - 0.6666666672e0_dp*t217*t46*t589*t804 - 0.6666666672e0_dp &
    2097             :                        *t217*t46*t78*t3382 - 0.6666666672e0_dp*t217*t46 &
    2098             :                        *t893*t561 - 0.4444444448e0_dp*t43*t46*t3581 + t8*(t3826 + &
    2099           0 :                                                                           t3869 + t4657 + t4696)
    2100           0 :                e_ndrho_rho_rho(ii) = e_ndrho_rho_rho(ii) + t4700*sx
    2101           0 :                t4701 = t561**2
    2102           0 :                t4704 = 0.3333333336e0_dp*t2147*t84*t4701
    2103           0 :                t4707 = 0.1333333334e1_dp*t747*t597*t561
    2104           0 :                t4708 = t22*t36
    2105           0 :                t4713 = t557**2
    2106           0 :                t4714 = t327*t4713
    2107           0 :                t4717 = t22*t132
    2108           0 :                t4721 = 0.1e1_dp/t787*t2480
    2109           0 :                t4725 = 0.120e2_dp*t624*t4717 - 0.60e1_dp*t7*t4721*t371
    2110           0 :                t4726 = t105*t4725
    2111             :                t4729 = 0.40e1_dp*t624*t4708 - 0.80e1_dp*t112*t558 + 0.40e1_dp*t102 &
    2112           0 :                        *t4714 - 0.20e1_dp*t102*t4726
    2113           0 :                t4732 = 0.6666666672e0_dp*t747*t84*t4729
    2114           0 :                t4733 = pi**2
    2115           0 :                t4734 = t4733*t146
    2116           0 :                t4736 = 0.1e1_dp/t58/omega
    2117           0 :                t4738 = t4734*t4736*t1300
    2118           0 :                t4739 = t4701*t149
    2119           0 :                t4743 = t19*t4701
    2120           0 :                t4744 = t399*t4743
    2121           0 :                t4748 = t151*t19*t4729
    2122           0 :                t4760 = t20*t4701
    2123           0 :                t4764 = t20*t4729
    2124           0 :                t4768 = t58**2
    2125           0 :                t4769 = 0.1e1_dp/t4768
    2126           0 :                t4770 = t4769*t1141
    2127           0 :                t4771 = t4770*t4733
    2128           0 :                t4772 = t26*t4701
    2129           0 :                t4776 = t58*t4729
    2130             :                t4782 = -0.2250000000e2_dp*t473*t4760*t65 + 0.8999999998e1_dp*t478 &
    2131             :                        *t4764*t65 + 0.8099999996e2_dp*t4771*t4772*t65 - 0.5555555558e-1_dp &
    2132           0 :                        *t4776*t71 - 0.5000000001e0_dp*t60*t4729*t65
    2133             :                t4786 = -0.2700000000e2_dp*t4738*t18*t4739 + 0.4500000000e1_dp*t567 &
    2134             :                        *t4744 - 0.3000000000e1_dp*t567*t4748 - 0.8333333335e-1_dp*t429 &
    2135             :                        *t166*t4701 + 0.3333333334e0_dp*t165*t679*t561 + 0.1666666667e0_dp &
    2136           0 :                        *t165*t166*t4729 + 0.3333333334e0_dp*t55*t57*t4782
    2137           0 :                t4789 = 0.4444444448e0_dp*t214*t46*t4786
    2138           0 :                t4790 = t237*t4701
    2139           0 :                t4793 = 0.1666666668e0_dp*t3305*t84*t4790
    2140           0 :                t4796 = 0.6666666672e0_dp*t1409*t597*t1410
    2141           0 :                t4797 = t1447*t561
    2142           0 :                t4800 = 0.6666666672e0_dp*t1409*t84*t4797
    2143           0 :                t4801 = t237*t4729
    2144           0 :                t4804 = 0.3333333336e0_dp*t1409*t84*t4801
    2145           0 :                t4808 = 0.6666666672e0_dp*t217*t46*t4786*t237
    2146           0 :                t4812 = 0.1333333334e1_dp*t217*t46*t589*t1447
    2147           0 :                t4817 = t953*t4713
    2148           0 :                t4820 = t316*t4725
    2149           0 :                t4829 = t233*t4713
    2150           0 :                t4830 = t974*t4829
    2151           0 :                t4833 = t1443*t557
    2152           0 :                t4834 = t327*t4833
    2153           0 :                t4837 = t233*t4725
    2154           0 :                t4838 = t327*t4837
    2155             :                t4849 = -0.3200000000e2_dp*t1645*t627 + 0.4800000000e2_dp*t7*t1440 &
    2156           0 :                        - 0.2400000000e2_dp*t786/t2492*t1058
    2157           0 :                t4850 = t105*t4849
    2158             :                t4853 = -0.1066666667e2_dp*t1645*t98 + 0.2133333334e2_dp*t339*t1420 &
    2159             :                        - 0.1066666667e2_dp*t321*t4817 + 0.5333333333e1_dp*t321*t4820 &
    2160             :                        - 0.40e1_dp*t624*t234 + 0.160e2_dp*t112*t1426 - 0.80e1_dp*t112* &
    2161             :                        t1444 - 0.120e2_dp*t102*t4830 + 0.80e1_dp*t102*t4834 + 0.40e1_dp* &
    2162           0 :                        t102*t4838 - 0.20e1_dp*t102*t4850
    2163           0 :                t4857 = 0.6666666672e0_dp*t217*t46*t78*t4853
    2164           0 :                t4861 = 0.3333333336e0_dp*t753*t46*t282*t4701
    2165           0 :                t4864 = t217*t46*t1535*t561
    2166           0 :                t4869 = 0.6666666672e0_dp*t217*t46*t282*t4729
    2167           0 :                t4872 = 0.8333333335e-1_dp*t429*t437*t4701
    2168           0 :                t4874 = t165*t1928*t561
    2169           0 :                t4878 = 0.1666666667e0_dp*t165*t437*t4729
    2170           0 :                t4881 = 0.5400000000e2_dp*t1143*t1493*t4701
    2171           0 :                t4884 = 0.3600000000e2_dp*t473*t2035*t561
    2172           0 :                t4887 = 0.1800000000e2_dp*t473*t1493*t4729
    2173           0 :                t4889 = t178*t62*t4853
    2174           0 :                t4893 = 0.1200000000e2_dp*t473*t1500*t4701
    2175           0 :                t4895 = t478*t1500*t4729
    2176             :                t4897 = t4881 - t4884 - t4887 + 0.8999999998e1_dp*t4889 - t4893 + 0.5999999999e1_dp &
    2177           0 :                        *t4895
    2178           0 :                t4898 = t4897*t65
    2179           0 :                t4901 = t1504*t59*t177*t710
    2180           0 :                t4904 = t4701*t65
    2181           0 :                t4905 = t62*t4904
    2182           0 :                t4907 = 0.2250000000e2_dp*t1506*t471*t4905
    2183           0 :                t4908 = t4729*t65
    2184           0 :                t4909 = t62*t4908
    2185           0 :                t4911 = 0.8999999998e1_dp*t1507*t4909
    2186           0 :                t4915 = t4733*t26*t4904
    2187           0 :                t4917 = 0.8099999996e2_dp*t266*t4769*t1141*t4915
    2188           0 :                t4918 = t58*t4853
    2189           0 :                t4920 = 0.5555555558e-1_dp*t4918*t71
    2190           0 :                t4922 = t1447*t177*t709
    2191           0 :                t4925 = 0.5000000001e0_dp*t1513*t4908
    2192           0 :                t4929 = t60*t1504*t709
    2193           0 :                t4932 = 0.5000000001e0_dp*t1528*t4908
    2194           0 :                t4935 = 0.1000000000e1_dp*t237*t471*t4904
    2195           0 :                t4940 = t59*pi*t20*t65
    2196           0 :                t4941 = t237*t1141*t4701*t4940
    2197           0 :                t4943 = t4776*t67
    2198           0 :                t4945 = 0.3703703705e-1_dp*t4943*t271
    2199           0 :                t4946 = t471*t1518
    2200           0 :                t4951 = 0.5555555558e-1_dp*t4943*t275
    2201           0 :                t4952 = t719*t1525
    2202           0 :                t4955 = t68*t4897*t65
    2203             :                t4958 = t4898 + 0.1800000000e2_dp*t4901 - t4907 + t4911 + t4917 - t4920 &
    2204             :                        - 0.1000000000e1_dp*t4922 - t4925 + 0.3333333334e0_dp*t1519*t4908 &
    2205             :                        - 0.1000000000e1_dp*t4929 - t4932 + t4935 - 0.4500000000e1_dp*t4941 &
    2206             :                        + t4945 + 0.3000000000e1_dp*t4946*t4701*t4940 - t4951 - 0.1111111112e0_dp &
    2207           0 :                        *t4952 - 0.5555555558e-1_dp*t192*t4955
    2208           0 :                t4994 = t44*t4733*t146
    2209           0 :                t4995 = t4994*t4770
    2210           0 :                t5001 = 0.1666666667e0_dp*t165*t166*t4853
    2211           0 :                t5002 = t17*t4701
    2212           0 :                t5005 = 0.2777777778e-1_dp*t429*t171*t5002
    2213           0 :                t5008 = 0.1111111111e0_dp*t165*t689*t1483
    2214           0 :                t5009 = t17*t4729
    2215           0 :                t5011 = t165*t171*t5009
    2216           0 :                t5013 = t27*t4782
    2217           0 :                t5016 = 0.1111111111e0_dp*t170*t5013*t17
    2218           0 :                t5019 = 0.1250000000e0_dp*t1368*t166*t4790
    2219           0 :                t5022 = 0.1666666667e0_dp*t429*t679*t1410
    2220           0 :                t5025 = 0.1666666667e0_dp*t429*t166*t4797
    2221           0 :                t5028 = 0.8333333335e-1_dp*t429*t166*t4801
    2222           0 :                t5029 = t56*t4782
    2223           0 :                t5032 = 0.1666666667e0_dp*t165*t5029*t237
    2224           0 :                t5035 = 0.3333333334e0_dp*t165*t679*t1447
    2225             :                t5036 = -t4872 + 0.3333333334e0_dp*t4874 + t4878 + 0.3333333334e0_dp* &
    2226             :                        t55*t57*t4958 + 0.2e1_dp*t147*t149*(-0.5625000000e1_dp*t1302 &
    2227             :                                                            *t1459*t4701 + 0.4500000000e1_dp*t400*t2022*t561 + 0.2250000000e1_dp &
    2228             :                                                            *t400*t1459*t4729 - 0.1500000000e1_dp*t151*t50*t4853 &
    2229             :                                                            + 0.7500000000e0_dp*t400*t1466*t4701 - 0.5000000000e0_dp*t405 &
    2230             :                                                            *t1466*t4729) - 0.3600000000e2_dp*t2081*t4760*t250 + 0.1800000000e2_dp &
    2231             :                        *t658*t4764*t250 + 0.3600000000e2_dp*t658*t575*t1471 &
    2232             :                        + 0.1620000000e3_dp*t4995*t4772*t250 + t5001 + t5005 - t5008 &
    2233             :                        - 0.5555555555e-1_dp*t5011 - t5016 + t5019 - t5022 - t5025 - t5028 &
    2234           0 :                        + t5032 + t5035
    2235           0 :                t5040 = t379*t4729
    2236           0 :                t5043 = 0.1666666668e0_dp*t289*t84*t5040
    2237           0 :                t5044 = t140*t4853
    2238           0 :                t5047 = 0.1666666668e0_dp*t289*t84*t5044
    2239           0 :                t5050 = 0.1666666668e0_dp*t165*t897*t4729
    2240           0 :                t5051 = beta*t86
    2241           0 :                t5060 = beta*t92
    2242           0 :                t5065 = my_rho*t4713
    2243           0 :                t5069 = my_rho*t4725
    2244           0 :                t5079 = t136*t4713
    2245           0 :                t5083 = t645*t557
    2246           0 :                t5087 = t136*t4725
    2247           0 :                t5106 = beta*t640
    2248           0 :                t5108 = t126*t371*my_ndrho
    2249           0 :                t5115 = t366*t640
    2250             :                t5118 = -0.480e2_dp*t5051*t4717 + 0.240e2_dp*t7*t2182*t2480*t371 &
    2251             :                        + 0.480e2_dp*t5060*t628 - 0.240e2_dp*t7*t1640*t1438*t371 &
    2252             :                        *my_rho + 0.120e2_dp*t550*t637 - 0.180e2_dp*t5106*t5108 - 0.120e2_dp &
    2253           0 :                        *t7*t640*t635*t371 + 0.180e2_dp*t5115*t1681
    2254             :                t5122 = -0.320e2_dp*t5051*t4708 + 0.640e2_dp*t1582*t558 - 0.320e2_dp &
    2255             :                        *t302*t4714 + 0.160e2_dp*t302*t4726 + 0.320e2_dp*t5060*t99 - &
    2256             :                        0.640e2_dp*t605*t609 + 0.320e2_dp*t93*t953*t5065 - 0.160e2_dp* &
    2257             :                        t93*t316*t5069 - 0.40e1_dp*t624*t137 + 0.160e2_dp*t112*t615 &
    2258             :                        - 0.80e1_dp*t112*t646 - 0.120e2_dp*t102*t974*t5079 + 0.80e1_dp* &
    2259             :                        t102*t327*t5083 + 0.40e1_dp*t102*t327*t5087 - 0.20e1_dp*t102 &
    2260           0 :                        *t105*t5118
    2261           0 :                t5123 = t5122*t237
    2262           0 :                t5126 = 0.1666666668e0_dp*t289*t84*t5123
    2263           0 :                t5139 = t25*t4701
    2264           0 :                t5143 = t25*t4729
    2265             :                t5147 = -0.5625000000e1_dp*t1302*t401*t4701 + 0.4500000000e1_dp*t400 &
    2266             :                        *t1892*t561 + 0.2250000000e1_dp*t400*t401*t4729 - 0.1500000000e1_dp &
    2267             :                        *t151*t50*t5122 - 0.2250000000e1_dp*t400*t156*t5139 &
    2268           0 :                        + 0.1500000000e1_dp*t405*t156*t5143
    2269           0 :                t5163 = t140*t4701
    2270           0 :                t5170 = t649*t561
    2271           0 :                t5174 = t140*t4729
    2272             :                t5226 = 0.5400000000e2_dp*t1143*t474*t4701 - 0.3600000000e2_dp*t473 &
    2273             :                        *t1801*t561 - 0.1800000000e2_dp*t473*t474*t4729 + 0.8999999998e1_dp &
    2274             :                        *t178*t62*t5122 + 0.3600000000e2_dp*t473*t183*t5139 &
    2275           0 :                        - 0.1800000000e2_dp*t478*t183*t5143
    2276           0 :                t5228 = t705*t59
    2277           0 :                t5229 = t5228*t177
    2278           0 :                t5237 = t649*t177
    2279           0 :                t5244 = t60*t705
    2280           0 :                t5247 = t187*t4769
    2281           0 :                t5251 = t58*t5122
    2282           0 :                t5256 = t140*t1141
    2283           0 :                t5262 = t471*t722
    2284           0 :                t5270 = t68*t5226
    2285           0 :                t5271 = t5270*t65
    2286             :                t5276 = t5226*t65 + 0.1800000000e2_dp*t5229*t710 - 0.2250000000e2_dp &
    2287             :                        *t707*t471*t4905 + 0.8999999998e1_dp*t708*t4909 - 0.1000000000e1_dp &
    2288             :                        *t5237*t709 - 0.5000000001e0_dp*t716*t4908 - 0.1000000001e1_dp &
    2289             :                        *t723*t4908 - 0.1000000000e1_dp*t5244*t709 + 0.8099999996e2_dp &
    2290             :                        *t5247*t1141*t4915 - 0.5555555558e-1_dp*t5251*t71 + 0.1000000000e1_dp &
    2291             :                        *t2098*t4904 - 0.4500000000e1_dp*t5256*t4701*t4940 &
    2292             :                        - 0.1111111112e0_dp*t4943*t196 - 0.9000000007e1_dp*t5262*t4701 &
    2293             :                        *t4940 - 0.5555555558e-1_dp*t4943*t200 - 0.1111111112e0_dp*t719* &
    2294           0 :                        t729 - 0.5555555558e-1_dp*t192*t5271 - 0.5000000001e0_dp*t732*t4908
    2295             :                t5280 = (2*t147*t149*t5147) - 0.3600000000e2_dp*t2081*t4760 &
    2296             :                        *t161 + 0.1800000000e2_dp*t658*t4764*t161 + 0.3600000000e2_dp &
    2297             :                        *t658*t575*t673 + 0.1620000000e3_dp*t4995*t4772*t161 + 0.1250000000e0_dp &
    2298             :                        *t1368*t166*t5163 - 0.1666666667e0_dp*t429*t679 &
    2299             :                        *t593 - 0.1666666667e0_dp*t429*t166*t5170 - 0.8333333335e-1_dp* &
    2300             :                        t429*t166*t5174 + 0.1666666667e0_dp*t165*t5029*t140 + 0.3333333334e0_dp &
    2301             :                        *t165*t679*t649 + 0.1666666667e0_dp*t165*t166*t5122 &
    2302             :                        - 0.8333333335e-1_dp*t1246*t446*t5139 + 0.3333333334e0_dp*t445 &
    2303             :                        *t1962*t668 + 0.1666666667e0_dp*t445*t446*t5143 + 0.3333333334e0_dp &
    2304             :                        *t170*t5013*t172 - 0.8333333335e-1_dp*t429*t462*t4701 &
    2305             :                        + 0.3333333334e0_dp*t165*t1966*t561 + 0.1666666667e0_dp*t165 &
    2306           0 :                        *t462*t4729 + 0.3333333334e0_dp*t55*t57*t5276
    2307           0 :                t5281 = t45*t5280
    2308           0 :                t5284 = 0.3333333336e0_dp*t83*t5281*t237
    2309           0 :                t5291 = 0.1666666668e0_dp*t289*t384*t4801
    2310           0 :                t5294 = 0.1666666668e0_dp*t1546*t3865*t1410
    2311           0 :                t5295 = t45*t4786
    2312           0 :                t5298 = 0.3333333336e0_dp*t83*t5295*t379
    2313           0 :                t5301 = 0.3333333336e0_dp*t55*t384*t4729
    2314           0 :                t5303 = t83*t1564*t649
    2315             :                t5305 = -t5043 - t5047 - t5050 - t5126 - t5284 - 0.3333333336e0_dp*t83 &
    2316             :                        *t45*t5036*t140 - t5291 + t5294 - t5298 - t5301 - 0.6666666672e0_dp &
    2317           0 :                        *t5303
    2318           0 :                t5308 = 0.3333333336e0_dp*t289*t1694*t1410
    2319           0 :                t5311 = 0.1666666668e0_dp*t289*t1071*t4701
    2320           0 :                t5314 = 0.1666666668e0_dp*t289*t5295*t290
    2321           0 :                t5317 = 0.3333333336e0_dp*t165*t3861*t561
    2322           0 :                t5320 = 0.3333333336e0_dp*t83*t1071*t4729
    2323           0 :                t5323 = 0.1666666668e0_dp*t1546*t3861*t1410
    2324           0 :                t5326 = 0.1250000001e0_dp*t3842*t897*t4790
    2325           0 :                t5329 = 0.6666666672e0_dp*t83*t1694*t1447
    2326           0 :                t5330 = t379*t4701
    2327           0 :                t5333 = 0.8333333340e-1_dp*t906*t84*t5330
    2328           0 :                t5335 = 0.2222222224e0_dp*t383*t5281
    2329           0 :                t5338 = 0.6666666672e0_dp*t55*t1694*t561
    2330           0 :                t5339 = t649*t1447
    2331           0 :                t5342 = 0.3333333336e0_dp*t289*t84*t5339
    2332             :                t5343 = -t5308 - t5311 - t5314 - t5317 - t5320 + t5323 - t5326 - t5329 &
    2333           0 :                        + t5333 - t5335 - t5338 - t5342
    2334           0 :                t5345 = t1688*t561
    2335           0 :                t5347 = t289*t84*t5345
    2336           0 :                t5351 = 0.1666666668e0_dp*t164*t384*t4701
    2337           0 :                t5354 = 0.3333333336e0_dp*t83*t384*t4853
    2338           0 :                t5357 = 0.6666666672e0_dp*t55*t597*t649
    2339           0 :                t5360 = 0.3333333336e0_dp*t289*t384*t4797
    2340           0 :                t5363 = 0.8333333335e-1_dp*t429*t166*t5040
    2341           0 :                t5367 = 0.1666666667e0_dp*t445*t4782*my_rho*t413
    2342           0 :                t5370 = 0.1666666667e0_dp*t429*t679*t1557
    2343           0 :                t5371 = t225*t4701
    2344           0 :                t5373 = t2885*t446*t5371
    2345           0 :                t5376 = t165*t466*t5009
    2346           0 :                t5379 = t165*t1928*t649
    2347           0 :                t5383 = 0.4166666667e-1_dp*t2763*t1247*t5002
    2348           0 :                t5386 = 0.8333333335e-1_dp*t429*t5029*t290
    2349           0 :                t5389 = 0.8333333335e-1_dp*t429*t166*t5044
    2350           0 :                t5397 = 0.8333333335e-1_dp*t1246*t446*t413*t4729
    2351           0 :                t5400 = 0.3333333334e0_dp*t445*t1962*t1825
    2352           0 :                t5402 = t165*t679*t1688
    2353           0 :                t5406 = 0.8333333335e-1_dp*t429*t166*t5123
    2354           0 :                t5409 = 0.8333333335e-1_dp*t429*t1392*t4701
    2355           0 :                t5412 = 0.8333333335e-1_dp*t429*t171*t5139
    2356           0 :                t5415 = 0.1666666667e0_dp*t429*t462*t4797
    2357           0 :                t5418 = 2*t147*t393*t5147
    2358           0 :                t5421 = t657*t1884*t59*t1975
    2359             :                t5423 = -t5363 + t5367 - t5370 + 0.1111111111e0_dp*t5373 - 0.5555555555e-1_dp &
    2360             :                        *t5376 + 0.3333333334e0_dp*t5379 - t5383 - t5386 - t5389 + &
    2361             :                        0.3333333334e0_dp*t170*t27*t4958*t172 - t5397 + t5400 + 0.3333333334e0_dp &
    2362             :                        *t5402 - t5406 - t5409 - t5412 - t5415 + t5418 + 0.3600000000e2_dp &
    2363           0 :                        *t5421
    2364           0 :                t5426 = 0.8333333335e-1_dp*t1246*t1292*t5139
    2365           0 :                t5429 = 0.1666666667e0_dp*t445*t1292*t5143
    2366           0 :                t5430 = t225*t4729
    2367           0 :                t5432 = t1373*t446*t5430
    2368           0 :                t5436 = 0.1666666667e0_dp*t165*t5029*t379
    2369           0 :                t5440 = 0.40e1_dp*t102*t327*t375*t4725
    2370           0 :                t5443 = 0.960e2_dp*t1597*t3608*t4829
    2371           0 :                t5446 = 0.480e2_dp*t24*t23*t1618
    2372           0 :                t5449 = 0.1173333333e3_dp*t307*t2611*t5065
    2373           0 :                t5451 = 0.640e2_dp*t605*t1603
    2374           0 :                t5454 = 0.2133333334e2_dp*t321*t953*t5083
    2375           0 :                t5456 = 0.1280e3_dp*t1582*t1426
    2376           0 :                t5459 = 0.5333333333e1_dp*t321*t316*t5118
    2377           0 :                t5460 = beta*t306
    2378           0 :                t5462 = 0.1173333333e3_dp*t5460*t313
    2379           0 :                t5466 = 0.40e1_dp*t102*t327*t136*t4849
    2380           0 :                t5468 = 0.2346666666e3_dp*t605*t1420
    2381             :                t5469 = t5440 - t5443 - t5446 - t5449 - t5451 - t5454 - t5456 + t5459 &
    2382           0 :                        - t5462 + t5466 - t5468
    2383           0 :                t5472 = 0.3200000001e2_dp*t321*t2455*t5079
    2384           0 :                t5474 = 0.4266666668e2_dp*t339*t1608
    2385           0 :                t5478 = 0.240e2_dp*t1616*t973*t645*t1425
    2386           0 :                t5480 = 0.1760000000e3_dp*t5060*t627
    2387           0 :                t5482 = 0.2160000000e3_dp*t7*t1642
    2388           0 :                t5484 = 0.1760000000e3_dp*t5460*t347
    2389           0 :                t5487 = 0.2160000000e3_dp*t7*t995*t1652
    2390           0 :                t5489 = 0.1600000000e2_dp*t1429*t1658
    2391           0 :                t5492 = 0.7200000000e2_dp*beta*t368*t5108
    2392           0 :                t5494 = 0.6400000000e2_dp*t7*t1677
    2393           0 :                t5496 = t366*t368*t1681
    2394           0 :                t5499 = 0.120e2_dp*t550*t1669
    2395           0 :                t5503 = 0.180e2_dp*t5106*t360*t371*my_ndrho
    2396           0 :                t5507 = 0.120e2_dp*t7*t640*t1667*t371
    2397           0 :                t5509 = 0.180e2_dp*t5115*t3668
    2398           0 :                t5511 = t1680*t3673*t23
    2399             :                t5516 = t5480 - t5482 - t5484 + t5487 - t5489 + t5492 + t5494 - 0.1920000000e3_dp &
    2400             :                        *t5496 + t5499 - t5503 - t5507 + t5509 - 0.4800000000e2_dp &
    2401           0 :                        *t5511 + 0.1200000000e3_dp*t1055*t2565*t4721
    2402           0 :                t5523 = 0.120e2_dp*t102*t974*t375*t4713
    2403           0 :                t5525 = 0.2133333334e2_dp*t339*t1611
    2404           0 :                t5528 = t102*t327*t1684*t557
    2405           0 :                t5531 = 0.160e2_dp*t112*t1626
    2406           0 :                t5533 = 0.160e2_dp*t112*t1632
    2407           0 :                t5535 = 0.640e2_dp*t1582*t1444
    2408           0 :                t5537 = 0.160e2_dp*t112*t1622
    2409           0 :                t5540 = 0.320e2_dp*t1597*t1598*t4837
    2410             :                t5541 = t5472 - t5474 - t5478 - 0.20e1_dp*t102*t105*t5516 - t5523 &
    2411           0 :                        + t5525 + 0.80e1_dp*t5528 + t5531 + t5533 + t5535 + t5537 + t5540
    2412           0 :                t5545 = 0.480e2_dp*t1616*t3750*t4829
    2413           0 :                t5548 = 0.120e2_dp*t1616*t1617*t4837
    2414           0 :                t5551 = 0.1280e3_dp*t24*t298*t1599
    2415           0 :                t5553 = 0.160e2_dp*t302*t4850
    2416           0 :                t5558 = 0.320e2_dp*t5060*t97*t104*my_rho*t233
    2417           0 :                t5560 = 0.2346666666e3_dp*t1589*t1592
    2418           0 :                t5562 = 0.5866666667e2_dp*t93*t4820
    2419           0 :                t5564 = 0.1173333333e3_dp*t5060*t98
    2420           0 :                t5565 = t112*t1685
    2421           0 :                t5568 = 0.1066666667e2_dp*t1645*t322
    2422           0 :                t5572 = 0.40e1_dp*t102*t327*t5118*t233
    2423           0 :                t5574 = 0.1173333333e3_dp*t93*t4817
    2424             :                t5575 = t5545 - t5548 + t5551 + t5553 - t5558 + t5560 - t5562 + t5564 &
    2425           0 :                        - 0.80e1_dp*t5565 + t5568 + t5572 + t5574
    2426           0 :                t5579 = 0.80e1_dp*t102*t327*t645*t1443
    2427           0 :                t5581 = 0.320e2_dp*t302*t4838
    2428           0 :                t5585 = 0.160e2_dp*t93*t316*my_rho*t4849
    2429           0 :                t5590 = 0.80e1_dp*t624*t22*t326*t136*t233
    2430           0 :                t5593 = 0.1066666667e2_dp*t321*t953*t5087
    2431           0 :                t5595 = 0.640e2_dp*t302*t4834
    2432           0 :                t5597 = 0.960e2_dp*t302*t4830
    2433           0 :                t5600 = 0.240e2_dp*t1616*t1617*t4833
    2434           0 :                t5602 = 0.40e1_dp*t624*t376
    2435           0 :                t5604 = 0.320e2_dp*t5051*t234
    2436           0 :                t5607 = 0.5866666667e2_dp*t307*t949*t5069
    2437           0 :                t5610 = 0.640e2_dp*t1597*t1598*t4833
    2438             :                t5611 = t5579 - t5581 - t5585 + t5590 - t5593 - t5595 + t5597 - t5600 &
    2439           0 :                        - t5602 + t5604 + t5607 + t5610
    2440           0 :                t5613 = t5469 + t5541 + t5575 + t5611
    2441           0 :                t5619 = 0.3333333334e0_dp*t170*t5013*t25
    2442           0 :                t5622 = 0.1666666667e0_dp*t165*t1392*t4729
    2443           0 :                t5625 = 0.1666666667e0_dp*t429*t166*t5339
    2444           0 :                t5628 = 0.3600000000e2_dp*t2081*t4760*t425
    2445           0 :                t5631 = 0.5555555556e-1_dp*t1246*t4032*t1483
    2446           0 :                t5632 = t25*t4853
    2447           0 :                t5635 = 0.1500000000e1_dp*t405*t156*t5632
    2448           0 :                t5638 = 0.2250000000e1_dp*t400*t1333*t4701
    2449           0 :                t5641 = 0.1500000000e1_dp*t405*t1333*t4729
    2450           0 :                t5643 = t400*t3975*t561
    2451           0 :                t5647 = 0.5625000000e1_dp*t1302*t1309*t4701
    2452           0 :                t5650 = 0.5625000000e1_dp*t1302*t401*t4801
    2453           0 :                t5653 = 0.4500000000e1_dp*t400*t1892*t1447
    2454           0 :                t5657 = 0.5000000000e0_dp*t405*t68*t5122*t17
    2455           0 :                t5660 = 0.1125000000e2_dp*t1302*t401*t4797
    2456           0 :                t5663 = 0.1500000000e1_dp*t400*t417*t5371
    2457           0 :                t5666 = 0.1125000000e2_dp*t1302*t1892*t1410
    2458             :                t5667 = t5635 - t5638 + t5641 + 0.4500000000e1_dp*t5643 - t5647 - t5650 &
    2459           0 :                        + t5653 - t5657 - t5660 + t5663 - t5666
    2460           0 :                t5670 = 0.2250000000e1_dp*t400*t1309*t4729
    2461           0 :                t5671 = t172*t4801
    2462           0 :                t5673 = 0.2250000000e1_dp*t1912*t5671
    2463           0 :                t5676 = 0.2250000000e1_dp*t400*t401*t4853
    2464           0 :                t5679 = 0.1875000000e1_dp*t1302*t406*t5002
    2465           0 :                t5682 = 0.1500000000e1_dp*t400*t1902*t1483
    2466           0 :                t5686 = 0.2250000000e1_dp*t400*t19*t5122*t237
    2467           0 :                t5689 = 0.1000000000e1_dp*t405*t417*t5430
    2468           0 :                t5692 = 0.1968750000e2_dp*t2823*t401*t4790
    2469           0 :                t5695 = 0.7500000000e0_dp*t400*t406*t5009
    2470           0 :                t5696 = t172*t4790
    2471           0 :                t5698 = 0.5625000000e1_dp*t3939*t5696
    2472           0 :                t5699 = t172*t4797
    2473           0 :                t5701 = 0.4500000000e1_dp*t1912*t5699
    2474             :                t5705 = t5670 - t5673 + t5676 - t5679 + t5682 + t5686 - t5689 + t5692 &
    2475           0 :                        + t5695 + t5698 - t5701 - 0.1500000000e1_dp*t151*t50*t5613
    2476           0 :                t5713 = t4739*t160
    2477           0 :                t5716 = 0.1620000000e3_dp*t4994*t392*t4769*t1141*t26*t5713
    2478           0 :                t5719 = 0.3333333334e0_dp*t165*t1966*t1447
    2479           0 :                t5722 = 0.1111111111e0_dp*t165*t689*t1988
    2480           0 :                t5724 = t429*t166*t5345
    2481           0 :                t5728 = 0.2500000000e0_dp*t1981*t1247*t4797
    2482           0 :                t5731 = 0.1666666667e0_dp*t445*t446*t5632
    2483           0 :                t5734 = 0.1666666667e0_dp*t429*t679*t1553
    2484           0 :                t5738 = 0.4444444445e0_dp*t170*t114*t4782*t451
    2485           0 :                t5741 = 0.1666666667e0_dp*t165*t171*t5143
    2486             :                t5742 = -t5426 + t5429 - 0.2222222222e0_dp*t5432 + t5436 + 0.1666666667e0_dp &
    2487             :                        *t165*t166*t5613 + t5619 + t5622 - t5625 - t5628 + t5631 &
    2488             :                        + (2*t147*t149*(t5667 + t5705)) + t5716 + t5719 - t5722 &
    2489           0 :                        - 0.1666666667e0_dp*t5724 + t5728 + t5731 - t5734 - t5738 + t5741
    2490           0 :                t5745 = t165*t4498*t561
    2491           0 :                t5749 = 0.1666666667e0_dp*t429*t437*t5170
    2492           0 :                t5752 = 0.8333333335e-1_dp*t429*t462*t4801
    2493           0 :                t5756 = 0.1111111111e0_dp*t170*t27*t5276*t17
    2494           0 :                t5760 = 0.1250000000e0_dp*t2763*t446*t413*t4701
    2495           0 :                t5767 = 0.1666666667e0_dp*t165*t437*t5122
    2496           0 :                t5770 = 0.1620000000e3_dp*t4995*t4772*t425
    2497           0 :                t5773 = 0.1250000000e0_dp*t1368*t437*t5163
    2498           0 :                t5776 = 0.2777777778e-1_dp*t1246*t1247*t5009
    2499           0 :                t5780 = 0.1666666667e0_dp*t165*t56*t5276*t237
    2500           0 :                t5783 = 0.5555555557e-1_dp*t165*t5013*t433
    2501           0 :                t5786 = 0.3333333334e0_dp*t165*t689*t668
    2502           0 :                t5789 = 0.1250000000e0_dp*t1368*t166*t5330
    2503           0 :                t5792 = 0.2777777778e-1_dp*t429*t466*t5002
    2504           0 :                t5795 = 0.1111111111e0_dp*t165*t1940*t1483
    2505           0 :                t5797 = t1373*t1962*t1829
    2506           0 :                t5801 = 0.3600000000e2_dp*t1143*t479*t5002
    2507           0 :                t5804 = 0.2400000000e2_dp*t473*t1811*t1483
    2508           0 :                t5807 = 0.2160000000e3_dp*t2994*t474*t4790
    2509           0 :                t5810 = 0.1080000000e3_dp*t1143*t1801*t1410
    2510           0 :                t5813 = 0.1800000000e2_dp*t478*t183*t5632
    2511           0 :                t5816 = 0.3600000000e2_dp*t473*t1176*t4701
    2512           0 :                t5819 = 0.1800000000e2_dp*t478*t1176*t4729
    2513           0 :                t5822 = 0.1800000000e2_dp*t473*t474*t4853
    2514           0 :                t5825 = 0.1200000000e2_dp*t473*t479*t5009
    2515           0 :                t5828 = 0.3600000000e2_dp*t473*t1801*t1447
    2516           0 :                t5830 = 0.1080000000e3_dp*t4230*t5696
    2517             :                t5831 = t5801 - t5804 - t5807 + t5810 - t5813 + t5816 - t5819 - t5822 &
    2518           0 :                        - t5825 - t5828 - t5830
    2519           0 :                t5833 = 0.7200000000e2_dp*t1821*t5699
    2520           0 :                t5835 = 0.3600000000e2_dp*t1821*t5671
    2521           0 :                t5838 = 0.1080000000e3_dp*t1143*t474*t4797
    2522           0 :                t5841 = 0.5400000000e2_dp*t1143*t474*t4801
    2523           0 :                t5845 = 0.1800000000e2_dp*t473*t20*t5122*t237
    2524           0 :                t5848 = 0.5400000000e2_dp*t1143*t1150*t4701
    2525           0 :                t5850 = t473*t4201*t561
    2526           0 :                t5854 = 0.1200000000e2_dp*t473*t489*t5371
    2527           0 :                t5857 = 0.6000000000e1_dp*t478*t489*t5430
    2528           0 :                t5861 = 0.5999999999e1_dp*t478*t56*t5122*t17
    2529           0 :                t5864 = 0.1800000000e2_dp*t473*t1150*t4729
    2530             :                t5868 = t5833 + t5835 + t5838 + t5841 - t5845 + t5848 - 0.3600000000e2_dp &
    2531             :                        *t5850 - t5854 + t5857 + t5861 - t5864 + 0.8999999998e1_dp*t178 &
    2532           0 :                        *t62*t5613
    2533           0 :                t5869 = t5831 + t5868
    2534           0 :                t5875 = t1447*t187*t1722
    2535           0 :                t5880 = 0.3703703705e-1_dp*t192*t194*t5226*t526
    2536           0 :                t5881 = t1141*t4701
    2537           0 :                t5885 = t719*t1769
    2538           0 :                t5888 = t60*t1836*t709
    2539           0 :                t5891 = 0.5555555558e-1_dp*t4943*t534
    2540           0 :                t5898 = t705*t1504*t65
    2541           0 :                t5902 = 0.1800000000e2_dp*t1718*t178*t710
    2542           0 :                t5905 = 0.5555555558e-1_dp*t192*t5270*t267
    2543           0 :                t5908 = t1836*t59*t177*t710
    2544           0 :                t5911 = t266*t4729*t65
    2545           0 :                t5913 = 0.1000000001e1_dp*t723*t5911
    2546           0 :                t5918 = t140*t1504*t1722
    2547           0 :                t5922 = 0.1111111112e0_dp*t4776*t515*t517
    2548           0 :                t5925 = 0.8099999996e2_dp*t498*t4770*t4915
    2549             :                t5926 = -0.5555555558e-1_dp*t192*t68*t5869*t65 - 0.1000000000e1_dp &
    2550             :                        *t5875 + t5880 + 0.3000000000e1_dp*t1748*t5881*t4940 - 0.1111111112e0_dp &
    2551             :                        *t5885 - 0.1000000000e1_dp*t5888 - t5891 + t5869*t65 + &
    2552             :                        0.666666666e0_dp*t1519*t722*t4729*t65 + (2*t5898) + t5902 &
    2553             :                        - t5905 + 0.1800000000e2_dp*t5908 - t5913 - 0.1111111112e0_dp*t516 &
    2554           0 :                        *t4898*t172 - 0.1000000000e1_dp*t5918 - t5922 + t5925
    2555           0 :                t5929 = 0.2250000000e2_dp*t1740*t471*t4905
    2556           0 :                t5932 = 0.1000000000e1_dp*t649*t266*t1722
    2557           0 :                t5938 = t192*t728*t1505
    2558           0 :                t5940 = t4918*t67
    2559           0 :                t5942 = 0.1111111112e0_dp*t5940*t196
    2560           0 :                t5944 = t1447*t722*t1722
    2561           0 :                t5949 = 0.8999999998e1_dp*t1795*t4909
    2562           0 :                t5952 = 0.9000000007e1_dp*t1763*t5881*t4940
    2563           0 :                t5954 = 0.8999999998e1_dp*t1741*t4909
    2564           0 :                t5956 = t471*t4701*t65
    2565           0 :                t5958 = 0.1000000000e1_dp*t1766*t5956
    2566           0 :                t5960 = 0.5555555558e-1_dp*t5940*t200
    2567           0 :                t5963 = 0.1000000000e1_dp*t379*t471*t4904
    2568           0 :                t5964 = t1715*t1525
    2569           0 :                t5966 = t1785*t1790
    2570           0 :                t5971 = 0.4500000000e1_dp*t379*t1141*t4701*t4940
    2571           0 :                t5973 = 0.5555555558e-1_dp*t4943*t531
    2572           0 :                t5975 = t5226*t266*t65
    2573           0 :                t5977 = 0.1111111112e0_dp*t1755*t729
    2574             :                t5978 = -t5929 - t5932 + 0.3333333334e0_dp*t1519*t187*t4729*t65 &
    2575             :                        - 0.1111111112e0_dp*t5938 - t5942 - 0.2000000002e1_dp*t5944 - 0.5555555558e-1_dp &
    2576             :                        *t503*t4955 + t5949 - t5952 + t5954 + t5958 - t5960 &
    2577             :                        + t5963 - 0.1111111112e0_dp*t5964 - 0.2222222224e0_dp*t5966 - t5971 &
    2578           0 :                        - t5973 + t5975 - t5977
    2579           0 :                t5985 = 0.5000000001e0_dp*t1774*t4908
    2580           0 :                t5990 = t177*t4729*t65
    2581           0 :                t5994 = 0.5000000001e0_dp*t1766*t5990
    2582           0 :                t5996 = 0.3703703705e-1_dp*t4943*t527
    2583           0 :                t6000 = 0.9000000007e1_dp*t5262*t266*t4701*t4940
    2584           0 :                t6002 = 0.1851851853e0_dp*t4943*t512
    2585           0 :                t6004 = t1709*t178*t710
    2586           0 :                t6006 = t719*t1838
    2587           0 :                t6009 = 0.5000000001e0_dp*t1777*t4908
    2588           0 :                t6017 = 0.5000000001e0_dp*t732*t5911
    2589           0 :                t6019 = 0.7407407410e-1_dp*t719*t1726
    2590           0 :                t6021 = t649*t1518*t1722
    2591           0 :                t6023 = t5251*t67
    2592           0 :                t6025 = 0.3703703705e-1_dp*t6023*t271
    2593             :                t6029 = 0.5999999993e1_dp*t4946*t722*t4701*t4940 - t5985 - 0.5555555558e-1_dp &
    2594             :                        *t192*t199*t4898 + 0.3333333334e0_dp*t1748*t5990 &
    2595             :                        - t5994 + t5996 - t6000 + t6002 + 0.1800000000e2_dp*t6004 - 0.1111111112e0_dp &
    2596             :                        *t6006 - t6009 + 0.3000000000e1_dp*t4946*t187*t4701 &
    2597             :                        *t4940 - 0.6666666668e0_dp*t1748*t5956 - t6017 + t6019 + 0.6666666668e0_dp &
    2598           0 :                        *t6021 + t6025 - 0.5555555558e-1_dp*t58*t5613*t71
    2599           0 :                t6031 = 0.5000000001e0_dp*t1720*t5990
    2600           0 :                t6033 = 0.1000000000e1_dp*t5244*t1712
    2601           0 :                t6036 = 0.2250000000e2_dp*t498*t472*t4905
    2602           0 :                t6040 = 0.5555555558e-1_dp*t6023*t275
    2603           0 :                t6042 = 0.1000000001e1_dp*t1763*t5990
    2604           0 :                t6044 = 0.2000000002e1_dp*t1763*t5956
    2605           0 :                t6047 = 0.4500000000e1_dp*t1720*t5881*t4940
    2606           0 :                t6049 = t1688*t177*t709
    2607           0 :                t6052 = t1504*t561*t65
    2608           0 :                t6053 = t732*t6052
    2609           0 :                t6056 = 0.5555555558e-1_dp*t508*t5271
    2610           0 :                t6058 = 0.1111111112e0_dp*t4943*t520
    2611           0 :                t6060 = t1766*t5881*t4940
    2612           0 :                t6063 = 0.1000000000e1_dp*t1720*t5956
    2613           0 :                t6066 = t1519*t705*t561*t65
    2614           0 :                t6074 = 0.8099999996e2_dp*t496*t4769*t1141*t4915
    2615           0 :                t6075 = t723*t6052
    2616           0 :                t6078 = 0.1111111112e0_dp*t719*t1782
    2617             :                t6079 = -t6031 - t6033 - t6036 + t187*t4897*t65 - t6040 - t6042 &
    2618             :                        + t6044 - t6047 - 0.1000000000e1_dp*t6049 - 0.1000000000e1_dp*t6053 &
    2619             :                        - t6056 - t6058 - 0.4500000000e1_dp*t6060 + t6063 + 0.6666666668e0_dp &
    2620             :                        *t6066 - 0.1000000000e1_dp*t237*t705*t1722 + t6074 - 0.2000000002e1_dp &
    2621           0 :                        *t6075 - t6078
    2622           0 :                t6087 = 0.1666666667e0_dp*t429*t1966*t1410
    2623           0 :                t6090 = 0.3125000000e0_dp*t4025*t1247*t4790
    2624             :                t6091 = 0.3333333334e0_dp*t5745 - t5749 - t5752 - t5756 + t5760 + 0.1666666667e0_dp &
    2625             :                        *t165*t56*t4958*t140 + t5767 + t5770 + t5773 + &
    2626             :                        t5776 + t5780 - t5783 + t5786 + t5789 + t5792 - t5795 - 0.4444444444e0_dp &
    2627             :                        *t5797 + 0.3333333334e0_dp*t55*t57*(t5926 + t5978 + t6029 &
    2628           0 :                                                            + t6079) - t6087 - t6090
    2629           0 :                t6094 = 0.1250000000e0_dp*t1981*t1247*t4801
    2630           0 :                t6099 = 0.1800000000e2_dp*t1971*t1972*t4729*t149*t160
    2631           0 :                t6102 = 0.2500000000e0_dp*t1981*t4553*t1410
    2632           0 :                t6106 = 0.3600000000e2_dp*t1971*t1972*t1973*t672
    2633           0 :                t6109 = 0.1666666667e0_dp*t1246*t1962*t1865
    2634           0 :                t6112 = 0.5555555556e-1_dp*t1246*t4553*t1483
    2635           0 :                t6116 = 0.3600000000e2_dp*t1971*t471*t20*t5713
    2636           0 :                t6119 = 0.1250000000e0_dp*t1368*t462*t4790
    2637           0 :                t6123 = 0.1666666667e0_dp*t1246*t446*t1825*t561
    2638           0 :                t6126 = 0.1800000000e2_dp*t658*t4764*t425
    2639           0 :                t6129 = 0.8333333335e-1_dp*t429*t437*t5174
    2640           0 :                t6132 = 0.1666666667e0_dp*t165*t462*t4853
    2641           0 :                t6136 = 0.5555555557e-1_dp*t165*t171*t5122*t17
    2642           0 :                t6138 = t429*t1928*t593
    2643           0 :                t6141 = t658*t575*t1925
    2644           0 :                t6144 = t445*t4512*t668
    2645           0 :                t6155 = 0.2500000000e0_dp*t1981*t4032*t1410
    2646           0 :                t6158 = 0.1666666667e0_dp*t429*t679*t1571
    2647           0 :                t6160 = t147*t1885*t672
    2648             :                t6162 = t6094 + t6099 + t6102 + t6106 - t6109 + t6112 - t6116 + t6119 &
    2649             :                        - t6123 + t6126 - t6129 + t6132 - t6136 - 0.1666666667e0_dp*t6138 &
    2650             :                        + 0.3600000000e2_dp*t6141 + 0.3333333334e0_dp*t6144 + 0.2e1_dp*t147 &
    2651             :                        *(t4881 - t4884 - t4887 + 0.9000000000e1_dp*t4889 - t4893 + 0.6000000000e1_dp &
    2652           0 :                          *t4895)*t149*t160 + t6155 - t6158 + (4*t6160)
    2653           0 :                t6170 = 0.3333333336e0_dp*t289*t597*t1571
    2654           0 :                t6173 = 0.3333333336e0_dp*t55*t5295*t140
    2655           0 :                t6175 = t83*t597*t1688
    2656           0 :                t6179 = 0.3333333336e0_dp*t165*t3865*t561
    2657           0 :                t6181 = t289*t1564*t593
    2658           0 :                t6185 = 0.3333333336e0_dp*t289*t597*t1553
    2659             :                t6186 = -0.3333333336e0_dp*t5347 - t5351 - t5354 - t5357 - t5360 - 0.2222222224e0_dp &
    2660             :                        *t144*t46*(t5423 + t5742 + t6091 + t6162) - t6170 &
    2661             :                        - t6173 - 0.6666666672e0_dp*t6175 - t6179 - 0.3333333336e0_dp*t6181 &
    2662           0 :                        - t6185
    2663           0 :                t6189 = 0.8333333340e-1_dp*t906*t294*t5163
    2664           0 :                t6192 = 0.3333333336e0_dp*t83*t294*t5122
    2665           0 :                t6194 = t83*t3875*t561
    2666           0 :                t6198 = 0.3333333336e0_dp*t289*t294*t5170
    2667           0 :                t6201 = 0.3333333336e0_dp*t289*t597*t1557
    2668           0 :                t6207 = 0.1666666668e0_dp*t1546*t897*t4797
    2669           0 :                t6210 = 0.1666666668e0_dp*t289*t294*t5174
    2670           0 :                t6213 = 0.3333333336e0_dp*t55*t84*t5122
    2671           0 :                t6216 = 0.8333333340e-1_dp*t429*t897*t4701
    2672           0 :                t6219 = 0.8333333340e-1_dp*t906*t384*t4790
    2673           0 :                t6222 = 0.8333333340e-1_dp*t1546*t897*t4801
    2674             :                t6223 = t6189 - t6192 - 0.6666666672e0_dp*t6194 - t6198 - t6201 - 0.3333333336e0_dp &
    2675             :                        *t83*t84*t5613 + t6207 - t6210 - t6213 + t6216 + &
    2676           0 :                        t6219 + t6222
    2677             :                t6227 = -t4704 - t4707 - t4732 - t4789 + t4793 - t4796 - t4800 - t4804 &
    2678             :                        - t4808 - t4812 - t4857 - t4861 - 0.1333333334e1_dp*t4864 - t4869 &
    2679             :                        - 0.4444444448e0_dp*t43*t46*t5036 + t8*(t5305 + t5343 + t6186 &
    2680           0 :                                                                + t6223)
    2681           0 :                e_ndrho_ndrho_rho(ii) = e_ndrho_ndrho_rho(ii) + t6227*sx
    2682           0 :                t6247 = t4769*t2992
    2683           0 :                t6249 = t4772*t2027
    2684           0 :                t6252 = t56*t4701
    2685           0 :                t6253 = t6252*t526
    2686           0 :                t6256 = t56*t4729
    2687           0 :                t6257 = t6256*t526
    2688           0 :                t6260 = t4743*t526
    2689           0 :                t6263 = t20*t4853
    2690           0 :                t6267 = t26*t1447
    2691           0 :                t6268 = t6267*t709
    2692           0 :                t6271 = t4764*t2027
    2693             :                t6281 = -0.1620000000e3_dp*t6247*t4733*t6249 - 0.1200000000e2_dp* &
    2694             :                        t473*t6253 + 0.5999999999e1_dp*t478*t6257 + 0.5399999998e2_dp*t4771 &
    2695             :                        *t6260 + 0.8999999998e1_dp*t478*t6263*t65 + 0.8099999996e2_dp &
    2696             :                        *t4771*t6268 - 0.1800000000e2_dp*t473*t6271 - 0.4050000000e2_dp &
    2697             :                        *t473*t575*t2095 - 0.5000000001e0_dp*t60*t4853*t65 + 0.8999999998e1_dp &
    2698           0 :                        *t4901 - t4907 + t4911
    2699           0 :                t6283 = t4701*t1518
    2700             :                t6290 = t4917 - t4920 + 0.5000000001e0_dp*t4922 + t4925 + 0.3333333334e0_dp &
    2701             :                        *t6283*t177*t65 - 0.5000000001e0_dp*t4929 - t4932 - t4935 &
    2702           0 :                        + 0.5850000000e2_dp*t4941 + t4945 - t4951 - 0.5555555558e-1_dp*t4952
    2703           0 :                t6291 = t6281 + t6290
    2704             :                t6308 = 0.4050000000e2_dp*t4734*t4736*t2821*t18*t4739*t237 &
    2705             :                        - 0.1125000000e2_dp*t2013*t1300*t19*t4790 - t5028 - t5022 + &
    2706             :                        0.1500000000e1_dp*t2013*t398*t68*t5002 + 0.3333333334e0_dp*t55 &
    2707             :                        *t57*t6291 + t5019 - 0.3000000000e1_dp*t566*t1885*t569 - t5016 &
    2708             :                        - 0.9000000000e1_dp*t4734*t4736*t1300*t4701*t149*t17 &
    2709             :                        + t5032 + 0.1666666667e0_dp*t165*t2088*t561 - 0.5555555557e-1_dp* &
    2710           0 :                        t5011 + t5001
    2711             :                t6338 = 0.1666666667e0_dp*t4874 - t5025 - 0.2700000000e2_dp*t4734*t392 &
    2712             :                        *t4736*t1300*my_rho*t5002*t149 - 0.3000000000e1_dp*t2009 &
    2713             :                        *t4748 - 0.2700000000e2_dp*t4738*t18*t1973*t1447 - t5008 - &
    2714             :                        0.3000000000e1_dp*t567*t151*t19*t4853 + t5035 - 0.1000000000e1_dp &
    2715             :                        *t2013*t2018*t5009 + 0.9000000000e1_dp*t2013*t2014*t4797 &
    2716             :                        - t4872 + 0.4500000000e1_dp*t2013*t2014*t4801 + t4878 + t5005 &
    2717           0 :                        + 0.4500000000e1_dp*t2009*t4744
    2718           0 :                t6339 = t6308 + t6338
    2719             :                t6344 = -t5043 - t5047 - t5050 - t5126 - t5284 - t5291 + t5294 - t5298 &
    2720           0 :                        - t5301 - 0.3333333336e0_dp*t5303 - t5308 - t5311 - t5314
    2721             :                t6352 = t5440 - t5443 - t5446 - t5449 - t5451 - t5454 + 0.40e1_dp*t102 &
    2722           0 :                        *t327*t2057*t557 - t5456 + t5459 - t5462 + t5466 - t5468
    2723             :                t6363 = t5480 - t5482 - t5484 + t5487 - t5489 + t5492 + t5494 - 0.9600000000e2_dp &
    2724             :                        *t5496 + t5499 - t5503 - t5507 + t5509 - 0.2400000000e2_dp &
    2725             :                        *t5511 - 0.960e2_dp*t5115*t1060 - 0.240e2_dp*t2054*t3674 + 0.1200e3_dp &
    2726           0 :                        *t1054*t640*t3679
    2727             :                t6367 = t5472 - t5474 - t5478 - t5523 + t5525 + 0.40e1_dp*t5528 + t5531 &
    2728           0 :                        + t5533 + t5535 + t5537 - 0.20e1_dp*t102*t105*t6363 + t5540
    2729             :                t6370 = t5545 - t5548 + t5551 + t5553 - t5558 + t5560 - t5562 + t5564 &
    2730           0 :                        - 0.40e1_dp*t5565 + t5568 + t5572 + t5574
    2731             :                t6373 = t5579 - t5581 - 0.40e1_dp*t112*t2058 - t5585 + t5590 - t5593 &
    2732           0 :                        - t5595 + t5597 - t5600 - t5602 + t5604 + t5607 + t5610
    2733           0 :                t6375 = t6352 + t6367 + t6370 + t6373
    2734             :                t6380 = -t5317 - t5320 + t5323 - t5326 - t5329 - 0.3333333336e0_dp*t83 &
    2735             :                        *t597*t2061 - 0.3333333336e0_dp*t83*t84*t6375 + t5333 - t5335 &
    2736           0 :                        - t5338 - t5342 - 0.1666666668e0_dp*t5347 - t5351
    2737             :                t6389 = -t5354 - t5357 - 0.3333333336e0_dp*t83*t45*t2139*t561 &
    2738             :                        - t5360 - t6170 - t6173 - 0.3333333336e0_dp*t6175 - t6179 - 0.1666666668e0_dp &
    2739           0 :                        *t6181 - t6185 + t6189 - t6192 - 0.3333333336e0_dp*t6194
    2740           0 :                t6400 = t2061*t561
    2741             :                t6415 = -t5363 + t5367 - t5370 + 0.1111111112e0_dp*t5373 - 0.5555555557e-1_dp &
    2742             :                        *t5376 + 0.1666666667e0_dp*t5379 - t5383 - t5386 - t5389 + &
    2743             :                        0.1200000000e2_dp*t658*t2031*t673*t17 + 0.3333333334e0_dp*t170 &
    2744           0 :                        *t27*t6291*t172 - t5397
    2745             :                t6428 = t5635 - t5638 + t5641 + 0.2250000000e1_dp*t5643 - t5647 - 0.1500000000e1_dp &
    2746             :                        *t151*t50*t6375 - t5650 + t5653 - t5657 - t5660 &
    2747           0 :                        + t5663 - t5666
    2748             :                t6433 = t5670 - t5673 + t5676 - t5679 + t5682 + t5686 - t5689 + t5692 &
    2749             :                        + t5695 + 0.2250000000e1_dp*t400*t19*t2061*t561 + t5698 - &
    2750           0 :                        t5701
    2751             :                t6442 = t5400 + 0.1666666667e0_dp*t5402 - t5406 + 0.1666666667e0_dp*t165 &
    2752             :                        *t56*t2131*t561 + 0.1666666667e0_dp*t165*t679*t2061 + &
    2753             :                        (2*t147*t149*(t6428 + t6433)) - t5409 - t5412 - t5415 + &
    2754           0 :                        t5418 + 0.1800000000e2_dp*t658*t575*t2074 + 0.1800000000e2_dp*t5421
    2755             :                t6451 = -t5426 + t5429 - 0.2222222223e0_dp*t5432 + t5436 + 0.1620000000e3_dp &
    2756             :                        *t4995*t6267*t1974 + 0.1666666667e0_dp*t165*t2088*t649 &
    2757           0 :                        + t5619 + t5622 - t5625 - t5628 + t5631 + t5716
    2758             :                t6461 = t5719 - t5722 - 0.8333333335e-1_dp*t5724 + 0.1200000000e2_dp* &
    2759             :                        t658*t6256*t2077 - 0.3240000000e3_dp*t4994*t6247*t4772*t2082 &
    2760             :                        + t5728 + t5731 - t5734 - t5738 + t5741 + 0.1666666667e0_dp*t5745 &
    2761           0 :                        - t5749
    2762             :                t6479 = -t5752 + 0.1666666667e0_dp*t445*t2042*my_rho*t668 - t5756 &
    2763             :                        - 0.3600000000e2_dp*t2081*t575*t673*t237 + 0.1800000000e2_dp* &
    2764             :                        t658*t6263*t161 + t5760 + t5767 + t5770 - 0.7200000000e2_dp*t2081 &
    2765           0 :                        *t575*t161*t1447 + t5773 + t5776 + t5780
    2766             :                t6490 = -t5783 - 0.3600000000e2_dp*t2081*t4764*t2082 - 0.2400000000e2_dp &
    2767             :                        *t2081*t6252*t2077 + t5786 + t5789 + t5792 - t5795 - 0.4444444445e0_dp &
    2768             :                        *t5797 - t6087 - 0.8333333335e-1_dp*t429*t166*t6400 &
    2769           0 :                        - t6090 + t6094
    2770             :                t6499 = t6099 + 0.1666666667e0_dp*t165*t166*t6375 + t6102 + 0.1666666667e0_dp &
    2771             :                        *t165*t56*t6291*t140 + t6106 - t6109 + t6112 - t6116 &
    2772           0 :                        + t6119 - t6123 + t6126 - t6129
    2773           0 :                t6509 = t4853*t65
    2774             :                t6529 = 0.4999999999e0_dp*t5875 - 0.5000000001e0_dp*t5244*t2095 - 0.5000000001e0_dp &
    2775             :                        *t732*t6509 + t5880 + 0.1000000000e1_dp*t649*t471 &
    2776             :                        *t2099 - 0.1620000000e3_dp*t5247*t2992*t4733*t6249 - 0.5555555558e-1_dp &
    2777             :                        *t5885 + 0.8999999998e1_dp*t140*t2992*t4701*t59* &
    2778             :                        t62*t2027 - 0.5000000001e0_dp*t5888 - t5891 - 0.1800000000e2_dp*t2118 &
    2779           0 :                        *t6271
    2780             :                t6539 = t5898 + t5902 - t5905 + 0.8999999998e1_dp*t5908 - t5913 + 0.2000000000e1_dp &
    2781             :                        *t2098*t2095*t561 - 0.5000000001e0_dp*t5918 - t5922 &
    2782           0 :                        + 0.3333333334e0_dp*t6283*t187*t177*t65 + t5925 - t5929
    2783             :                t6554 = -t5932 - 0.5555555558e-1_dp*t5938 + 0.666666666e0_dp*t6283* &
    2784             :                        t722*t177*t65 - t5942 + 0.8999999998e1_dp*t2124*t59*t177* &
    2785             :                        t710 + 0.1000000001e1_dp*t5944 - 0.5000000001e0_dp*t2061*t177*t709 &
    2786           0 :                        + t5949 + t5952 + t5954 - t5958
    2787           0 :                t6557 = t1447*t59
    2788             :                t6569 = -t5960 - 0.5000000001e0_dp*t5237*t2095 + t5963 - 0.4500000000e1_dp &
    2789             :                        *t5256*t6557*t710 - 0.5555555558e-1_dp*t5964 - 0.1111111112e0_dp &
    2790             :                        *t5966 - t5971 - 0.1200000000e2_dp*t2118*t6253 - 0.5555555558e-1_dp &
    2791           0 :                        *t719*t2126 - t5973 + t5975 + 0.5999999999e1_dp*t2114*t6257
    2792             :                t6583 = -t5977 - t5985 + t5994 - 0.5000000001e0_dp*t716*t6509 + t5996 &
    2793             :                        - t6000 + t6002 + 0.8999999998e1_dp*t6004 + 0.1000000000e1_dp*t2098 &
    2794             :                        *t4908*t237 - 0.1000000001e1_dp*t723*t6509 - 0.1800000000e2_dp &
    2795           0 :                        *t5228*t2117*t2028
    2796           0 :                t6596 = t5247*t1141*t4733
    2797             :                t6603 = -0.5555555558e-1_dp*t6006 - t6009 - t6017 - 0.5555555558e-1_dp &
    2798             :                        *t58*t6375*t71 + t6019 - 0.9000000007e1_dp*t5262*t6557*t710 &
    2799             :                        + 0.8999999998e1_dp*t708*t62*t6509 + 0.3333333334e0_dp*t6021 + &
    2800             :                        t6025 + 0.8099999996e2_dp*t6596*t6268 + 0.5399999998e2_dp*t6596* &
    2801           0 :                        t6260 + 0.8999999998e1_dp*t5229*t2104
    2802             :                t6611 = t5801 - t5804 - t5807 + t5810 - t5813 + t5816 - t5819 - t5822 &
    2803           0 :                        - t5825 - t5828 - t5830 + t5833
    2804             :                t6620 = t5835 + t5838 + t5841 - t5845 + t5848 - 0.1800000000e2_dp*t5850 &
    2805             :                        - t5854 + t5857 + t5861 - t5864 - 0.1800000000e2_dp*t473*t20 &
    2806           0 :                        *t2061*t561 + 0.8999999998e1_dp*t178*t62*t6375
    2807           0 :                t6621 = t6611 + t6620
    2808             :                t6630 = -0.3000000000e1_dp*t5256*t4904*t237 + 0.5999999999e1_dp*t5228 &
    2809             :                        *t2113*t2032 + t6621*t65 - t6031 - 0.4050000000e2_dp*t471 &
    2810             :                        *t187*t6557*t710 - t6033 - t6036 - t6040 + t6042 - 0.5000000001e0_dp &
    2811           0 :                        *t60*t2124*t709 - t6044
    2812             :                t6640 = -t6047 - 0.5000000001e0_dp*t6049 - 0.5555555558e-1_dp*t192* &
    2813             :                        t68*t6621*t65 - 0.5000000001e0_dp*t6053 - t6056 - t6058 + 0.5850000000e2_dp &
    2814             :                        *t6060 + t6063 + 0.3333333334e0_dp*t6066 + t6074 - 0.1000000001e1_dp &
    2815           0 :                        *t6075 - t6078
    2816             :                t6658 = 0.1800000000e2_dp*t658*t2035*t673 - 0.8333333335e-1_dp*t429 &
    2817             :                        *t2088*t593 + t6132 + 0.3333333334e0_dp*t55*t57*(t6529 + &
    2818             :                                                t6539 + t6554 + t6569 + t6583 + t6603 + t6630 + t6640) - t6136 - 0.8333333335e-1_dp &
    2819             :                        *t6138 + 0.1800000000e2_dp*t6141 + 0.1080000000e3_dp* &
    2820             :                        t4995*t4743*t2077 + 0.1080000000e3_dp*t657*t1142*t4760*t2082 &
    2821           0 :                        + 0.1666666667e0_dp*t6144 + t6155 - t6158 + (2*t6160)
    2822             :                t6665 = -0.3333333336e0_dp*t83*t45*t6339*t140 - t6198 - 0.3333333336e0_dp &
    2823             :                        *t83*t2050*t649 - t6201 + t6207 - t6210 - t6213 + t6216 &
    2824             :                        + t6219 - 0.1666666668e0_dp*t289*t2050*t593 - 0.1666666668e0_dp &
    2825             :                        *t289*t84*t6400 + t6222 - 0.2222222224e0_dp*t144*t46*(t6415 &
    2826           0 :                                                                             + t6442 + t6451 + t6461 + t6479 + t6490 + t6499 + t6658)
    2827             :                t6669 = -t4704 - t4707 - t4732 + t4793 - t4796 - t4800 - t4804 - t4861 &
    2828             :                        - 0.6666666672e0_dp*t4864 - t4869 - t4812 - t4857 - t4789 - t4808 &
    2829             :                        - 0.6666666672e0_dp*t217*t46*t2046*t561 - 0.4444444448e0_dp* &
    2830           0 :                        t43*t46*t6339 + t8*(t6344 + t6380 + t6389 + t6665)
    2831           0 :                e_ndrho_ndrho_ndrho(ii) = e_ndrho_ndrho_ndrho(ii) + t6669*sx
    2832             :             END IF
    2833             : 
    2834             :          END IF
    2835             :       END DO
    2836             : !$OMP     END DO
    2837         104 :    END SUBROUTINE xb88_lr_adiabatic_lda_calc
    2838             : 
    2839             : ! **************************************************************************************************
    2840             : !> \brief evaluates the becke 88 longrange exchange functional for lsd
    2841             : !> \param rho_set ...
    2842             : !> \param deriv_set ...
    2843             : !> \param grad_deriv ...
    2844             : !> \param xb88_lr_ad_params ...
    2845             : !> \par History
    2846             : !>      01.2008 created [mguidon]
    2847             : !> \author Manuel Guidon
    2848             : ! **************************************************************************************************
    2849         720 :    SUBROUTINE xb88_lr_adiabatic_lsd_eval(rho_set, deriv_set, grad_deriv, xb88_lr_ad_params)
    2850             :       TYPE(xc_rho_set_type), INTENT(IN)                  :: rho_set
    2851             :       TYPE(xc_derivative_set_type), INTENT(IN)           :: deriv_set
    2852             :       INTEGER, INTENT(in)                                :: grad_deriv
    2853             :       TYPE(section_vals_type), POINTER                   :: xb88_lr_ad_params
    2854             : 
    2855             :       CHARACTER(len=*), PARAMETER :: routineN = 'xb88_lr_adiabatic_lsd_eval'
    2856             : 
    2857             :       INTEGER                                            :: handle, i, ispin, npoints
    2858             :       INTEGER, DIMENSION(2, 3)                           :: bo
    2859             :       REAL(kind=dp)                                      :: epsilon_rho, lambda, omega, sx
    2860             :       REAL(kind=dp), CONTIGUOUS, DIMENSION(:, :, :), &
    2861         120 :          POINTER                                         :: dummy, e_0
    2862        1080 :       TYPE(cp_3d_r_cp_type), DIMENSION(2) :: e_ndrho, e_ndrho_ndrho, e_ndrho_ndrho_ndrho, &
    2863        2160 :          e_ndrho_ndrho_rho, e_ndrho_rho, e_ndrho_rho_rho, e_rho, e_rho_rho, e_rho_rho_rho, &
    2864         720 :          norm_drho, rho
    2865             :       TYPE(xc_derivative_type), POINTER                  :: deriv
    2866             : 
    2867         120 :       CALL timeset(routineN, handle)
    2868             : 
    2869         120 :       CALL cite_reference(Becke1988)
    2870             : 
    2871         120 :       NULLIFY (deriv)
    2872         360 :       DO i = 1, 2
    2873         360 :          NULLIFY (norm_drho(i)%array, rho(i)%array)
    2874             :       END DO
    2875             : 
    2876         120 :       CALL section_vals_val_get(xb88_lr_ad_params, "SCALE_X", r_val=sx)
    2877         120 :       CALL section_vals_val_get(xb88_lr_ad_params, "OMEGA", r_val=omega)
    2878         120 :       CALL section_vals_val_get(xb88_lr_ad_params, "LAMBDA", r_val=lambda)
    2879             : 
    2880             :       CALL xc_rho_set_get(rho_set, &
    2881             :                           rhoa=rho(1)%array, &
    2882             :                           rhob=rho(2)%array, norm_drhoa=norm_drho(1)%array, &
    2883             :                           norm_drhob=norm_drho(2)%array, rho_cutoff=epsilon_rho, &
    2884         120 :                           local_bounds=bo)
    2885         120 :       npoints = (bo(2, 1) - bo(1, 1) + 1)*(bo(2, 2) - bo(1, 2) + 1)*(bo(2, 3) - bo(1, 3) + 1)
    2886             : 
    2887         120 :       dummy => rho(1)%array
    2888             : 
    2889         120 :       e_0 => dummy
    2890         360 :       DO i = 1, 2
    2891         240 :          e_rho(i)%array => dummy
    2892         240 :          e_ndrho(i)%array => dummy
    2893         240 :          e_rho_rho(i)%array => dummy
    2894         240 :          e_ndrho_rho(i)%array => dummy
    2895         240 :          e_ndrho_ndrho(i)%array => dummy
    2896         240 :          e_rho_rho_rho(i)%array => dummy
    2897         240 :          e_ndrho_rho_rho(i)%array => dummy
    2898         240 :          e_ndrho_ndrho_rho(i)%array => dummy
    2899         360 :          e_ndrho_ndrho_ndrho(i)%array => dummy
    2900             :       END DO
    2901             : 
    2902         120 :       IF (grad_deriv >= 0) THEN
    2903             :          deriv => xc_dset_get_derivative(deriv_set, [INTEGER::], &
    2904         120 :                                          allocate_deriv=.TRUE.)
    2905         120 :          CALL xc_derivative_get(deriv, deriv_data=e_0)
    2906             :       END IF
    2907         120 :       IF (grad_deriv >= 1 .OR. grad_deriv == -1) THEN
    2908             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rhoa], &
    2909          76 :                                          allocate_deriv=.TRUE.)
    2910          76 :          CALL xc_derivative_get(deriv, deriv_data=e_rho(1)%array)
    2911             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rhob], &
    2912          76 :                                          allocate_deriv=.TRUE.)
    2913          76 :          CALL xc_derivative_get(deriv, deriv_data=e_rho(2)%array)
    2914             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drhoa], &
    2915          76 :                                          allocate_deriv=.TRUE.)
    2916          76 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho(1)%array)
    2917             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drhob], &
    2918          76 :                                          allocate_deriv=.TRUE.)
    2919          76 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho(2)%array)
    2920             :       END IF
    2921         120 :       IF (grad_deriv >= 2 .OR. grad_deriv == -2) THEN
    2922             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rhoa, deriv_rhoa], &
    2923           0 :                                          allocate_deriv=.TRUE.)
    2924           0 :          CALL xc_derivative_get(deriv, deriv_data=e_rho_rho(1)%array)
    2925             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rhob, deriv_rhob], &
    2926           0 :                                          allocate_deriv=.TRUE.)
    2927           0 :          CALL xc_derivative_get(deriv, deriv_data=e_rho_rho(2)%array)
    2928             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drhoa, deriv_rhoa], &
    2929           0 :                                          allocate_deriv=.TRUE.)
    2930           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_rho(1)%array)
    2931             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_norm_drhob, deriv_rhob], &
    2932           0 :                                          allocate_deriv=.TRUE.)
    2933           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_rho(2)%array)
    2934             :          deriv => xc_dset_get_derivative(deriv_set, &
    2935           0 :                                          [deriv_norm_drhoa, deriv_norm_drhoa], allocate_deriv=.TRUE.)
    2936           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho(1)%array)
    2937             :          deriv => xc_dset_get_derivative(deriv_set, &
    2938           0 :                                          [deriv_norm_drhob, deriv_norm_drhob], allocate_deriv=.TRUE.)
    2939           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho(2)%array)
    2940             :       END IF
    2941         120 :       IF (grad_deriv >= 3 .OR. grad_deriv == -3) THEN
    2942             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rhoa, deriv_rhoa, deriv_rhoa], &
    2943           0 :                                          allocate_deriv=.TRUE.)
    2944           0 :          CALL xc_derivative_get(deriv, deriv_data=e_rho_rho_rho(1)%array)
    2945             :          deriv => xc_dset_get_derivative(deriv_set, [deriv_rhob, deriv_rhob, deriv_rhob], &
    2946           0 :                                          allocate_deriv=.TRUE.)
    2947           0 :          CALL xc_derivative_get(deriv, deriv_data=e_rho_rho_rho(2)%array)
    2948             :          deriv => xc_dset_get_derivative(deriv_set, &
    2949           0 :                                          [deriv_norm_drhoa, deriv_rhoa, deriv_rhoa], allocate_deriv=.TRUE.)
    2950           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_rho_rho(1)%array)
    2951             :          deriv => xc_dset_get_derivative(deriv_set, &
    2952           0 :                                          [deriv_norm_drhob, deriv_rhob, deriv_rhob], allocate_deriv=.TRUE.)
    2953           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_rho_rho(2)%array)
    2954             :          deriv => xc_dset_get_derivative(deriv_set, &
    2955           0 :                                          [deriv_norm_drhoa, deriv_norm_drhoa, deriv_rhoa], allocate_deriv=.TRUE.)
    2956           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_rho(1)%array)
    2957             :          deriv => xc_dset_get_derivative(deriv_set, &
    2958           0 :                                          [deriv_norm_drhob, deriv_norm_drhob, deriv_rhob], allocate_deriv=.TRUE.)
    2959           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_rho(2)%array)
    2960             :          deriv => xc_dset_get_derivative(deriv_set, &
    2961           0 :                                          [deriv_norm_drhoa, deriv_norm_drhoa, deriv_norm_drhoa], allocate_deriv=.TRUE.)
    2962           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_ndrho(1)%array)
    2963             :          deriv => xc_dset_get_derivative(deriv_set, &
    2964           0 :                                          [deriv_norm_drhob, deriv_norm_drhob, deriv_norm_drhob], allocate_deriv=.TRUE.)
    2965           0 :          CALL xc_derivative_get(deriv, deriv_data=e_ndrho_ndrho_ndrho(2)%array)
    2966             :       END IF
    2967         120 :       IF (grad_deriv > 3 .OR. grad_deriv < -3) THEN
    2968           0 :          CPABORT("derivatives bigger than 3 not implemented")
    2969             :       END IF
    2970             : 
    2971         360 :       DO ispin = 1, 2
    2972             : 
    2973             : !$OMP        PARALLEL DEFAULT(NONE) &
    2974             : !$OMP                 SHARED(rho, ispin, norm_drho, e_0, e_rho, e_ndrho) &
    2975             : !$OMP                 SHARED(e_rho_rho, e_ndrho_rho, e_ndrho_ndrho) &
    2976             : !$OMP                 SHARED(e_rho_rho_rho, e_ndrho_rho_rho) &
    2977             : !$OMP                 SHARED(e_ndrho_ndrho_rho, e_ndrho_ndrho_ndrho) &
    2978             : !$OMP                 SHARED(grad_deriv, npoints, epsilon_rho, sx, omega) &
    2979         360 : !$OMP                 SHARED(lambda)
    2980             : 
    2981             :          CALL xb88_lr_adiabatic_lsd_calc( &
    2982             :             rho_spin=rho(ispin)%array, &
    2983             :             norm_drho_spin=norm_drho(ispin)%array, &
    2984             :             e_0=e_0, &
    2985             :             e_rho_spin=e_rho(ispin)%array, &
    2986             :             e_ndrho_spin=e_ndrho(ispin)%array, &
    2987             :             e_rho_rho_spin=e_rho_rho(ispin)%array, &
    2988             :             e_ndrho_rho_spin=e_ndrho_rho(ispin)%array, &
    2989             :             e_ndrho_ndrho_spin=e_ndrho_ndrho(ispin)%array, &
    2990             :             e_rho_rho_rho_spin=e_rho_rho_rho(ispin)%array, &
    2991             :             e_ndrho_rho_rho_spin=e_ndrho_rho_rho(ispin)%array, &
    2992             :             e_ndrho_ndrho_rho_spin=e_ndrho_ndrho_rho(ispin)%array, &
    2993             :             e_ndrho_ndrho_ndrho_spin=e_ndrho_ndrho_ndrho(ispin)%array, &
    2994             :             grad_deriv=grad_deriv, npoints=npoints, &
    2995             :             epsilon_rho=epsilon_rho, &
    2996             :             sx=sx, omega=omega, lambda=lambda)
    2997             : 
    2998             : !$OMP        END PARALLEL
    2999             : 
    3000             :       END DO
    3001             : 
    3002         120 :       CALL timestop(handle)
    3003             : 
    3004         120 :    END SUBROUTINE xb88_lr_adiabatic_lsd_eval
    3005             : 
    3006             : ! **************************************************************************************************
    3007             : !> \brief low level calculation of the becke 88 exchange functional for lsd
    3008             : !> \param rho_spin alpha or beta spin density
    3009             : !> \param norm_drho_spin || grad rho_spin ||
    3010             : !> \param e_0 adds to it the local value of the functional
    3011             : !> \param e_rho_spin e_*_spin: derivative of the functional wrt. to the variables
    3012             : !>        named where the * is. Everything wrt. to the spin of the arguments.
    3013             : !> \param e_ndrho_spin ...
    3014             : !> \param e_rho_rho_spin ...
    3015             : !> \param e_ndrho_rho_spin ...
    3016             : !> \param e_ndrho_ndrho_spin ...
    3017             : !> \param e_rho_rho_rho_spin ...
    3018             : !> \param e_ndrho_rho_rho_spin ...
    3019             : !> \param e_ndrho_ndrho_rho_spin ...
    3020             : !> \param e_ndrho_ndrho_ndrho_spin ...
    3021             : !> \param grad_deriv ...
    3022             : !> \param npoints ...
    3023             : !> \param epsilon_rho ...
    3024             : !> \param sx scaling-parameter for exchange
    3025             : !> \param omega ...
    3026             : !> \param lambda ...
    3027             : !> \par History
    3028             : !>      01.2008 created [mguidon]
    3029             : !> \author Manuel Guidon
    3030             : ! **************************************************************************************************
    3031         240 :    SUBROUTINE xb88_lr_adiabatic_lsd_calc(rho_spin, norm_drho_spin, e_0, &
    3032             :                                          e_rho_spin, e_ndrho_spin, e_rho_rho_spin, e_ndrho_rho_spin, &
    3033             :                                          e_ndrho_ndrho_spin, e_rho_rho_rho_spin, e_ndrho_rho_rho_spin, &
    3034             :                                          e_ndrho_ndrho_rho_spin, &
    3035             :                                          e_ndrho_ndrho_ndrho_spin, grad_deriv, npoints, epsilon_rho, sx, &
    3036             :                                          omega, lambda)
    3037             :       REAL(kind=dp), DIMENSION(*), INTENT(in)            :: rho_spin, norm_drho_spin
    3038             :       REAL(kind=dp), DIMENSION(*), INTENT(inout) :: e_0, e_rho_spin, e_ndrho_spin, e_rho_rho_spin, &
    3039             :          e_ndrho_rho_spin, e_ndrho_ndrho_spin, e_rho_rho_rho_spin, e_ndrho_rho_rho_spin, &
    3040             :          e_ndrho_ndrho_rho_spin, e_ndrho_ndrho_ndrho_spin
    3041             :       INTEGER, INTENT(in)                                :: grad_deriv, npoints
    3042             :       REAL(kind=dp), INTENT(in)                          :: epsilon_rho, sx, omega, lambda
    3043             : 
    3044             :       INTEGER                                            :: ii
    3045             :       REAL(kind=dp) :: Cx, epsilon_rho43, my_epsilon_rho, ndrho, rho, t1, t10, t1000, t1002, &
    3046             :          t1004, t1008, t1012, t1014, t1019, t102, t1021, t1024, t1026, t103, t1030, t1033, t1034, &
    3047             :          t1036, t104, t1040, t1044, t1046, t105, t1050, t1054, t1055, t1056, t1058, t1059, t106, &
    3048             :          t1060, t1063, t1064, t1067, t1068, t107, t1071, t1076, t1079, t108, t1082, t1085, t1089, &
    3049             :          t1093, t1097, t1099, t11, t1100, t1101, t1106, t1109, t1111, t1119, t112, t1122, t1125, &
    3050             :          t1126, t1129, t1134, t1137, t114, t1140, t1141, t1142, t1143, t115, t1150, t1157, t116, &
    3051             :          t1161, t1168, t1172, t1176, t1189, t119, t1191, t1192, t1193, t1194
    3052             :       REAL(kind=dp) :: t12, t1200, t1201, t1206, t1207, t1210, t1213, t1216, t122, t1221, t1224, &
    3053             :          t123, t1235, t1238, t1239, t1246, t1247, t1254, t126, t1264, t1268, t1275, t1283, t1284, &
    3054             :          t1288, t1292, t13, t130, t1300, t1301, t1302, t1309, t131, t1316, t132, t1320, t133, &
    3055             :          t1333, t1340, t1347, t1348, t136, t1360, t1367, t1368, t137, t1372, t1373, t1377, t1387, &
    3056             :          t1388, t1392, t1396, t1397, t14, t140, t1401, t1406, t1408, t1409, t141, t1410, t1411, &
    3057             :          t1413, t1417, t1420, t1425, t1426, t1429, t1436, t1438, t1439, t144, t1440, t1443, t1444, &
    3058             :          t1447, t145, t1451, t1455, t1459, t146, t1466, t147, t1470, t1471
    3059             :       REAL(kind=dp) :: t1476, t1479, t1482, t1483, t1485, t1489, t149, t1492, t1493, t1496, t1498, &
    3060             :          t15, t150, t1500, t1502, t1504, t1505, t1506, t1507, t1509, t151, t1510, t1512, t1513, &
    3061             :          t1515, t1517, t1518, t1519, t1523, t1525, t1528, t1530, t1531, t1535, t1536, t1541, &
    3062             :          t1543, t1545, t1546, t1547, t1549, t155, t1552, t1553, t1556, t1557, t156, t1560, t1563, &
    3063             :          t1564, t1565, t1568, t1570, t1571, t1574, t1575, t1577, t1579, t1581, t1582, t1584, &
    3064             :          t1586, t1588, t1589, t1591, t1592, t1594, t1596, t1597, t1598, t1599, t16, t160, t1601, &
    3065             :          t1602, t1603, t1605, t1607, t1608, t161, t1610, t1611, t1613, t1615
    3066             :       REAL(kind=dp) :: t1616, t1617, t1618, t1620, t1621, t1622, t1624, t1625, t1626, t1628, &
    3067             :          t1630, t1631, t1632, t1634, t1636, t1638, t164, t1640, t1642, t1644, t1645, t1647, t1649, &
    3068             :          t165, t1652, t1654, t1656, t1658, t166, t1660, t1662, t1664, t1667, t1669, t1671, t1675, &
    3069             :          t1677, t1679, t1680, t1681, t1684, t1685, t1688, t1689, t1693, t1694, t1696, t1699, t17, &
    3070             :          t170, t1700, t1702, t1703, t1705, t1706, t1708, t1709, t171, t1712, t1714, t1715, t1717, &
    3071             :          t1718, t1719, t172, t1720, t1722, t1724, t1726, t1728, t1730, t1731, t1735, t1737, t1740, &
    3072             :          t1741, t1743, t1745, t1748, t1752, t1754, t1755, t1757, t1758
    3073             :       REAL(kind=dp) :: t176, t1760, t1762, t1763, t1765, t1766, t1768, t1769, t177, t1773, t1774, &
    3074             :          t1776, t1777, t1779, t178, t1782, t1784, t1785, t1787, t1789, t1790, t1794, t1795, t1797, &
    3075             :          t18, t1800, t1801, t1804, t1807, t1810, t1811, t1814, t1817, t182, t1821, t1822, t1824, &
    3076             :          t1825, t1828, t1829, t183, t1832, t1835, t1836, t1837, t1838, t1842, t1843, t1849, t1852, &
    3077             :          t1854, t1858, t1861, t1864, t1865, t1868, t187, t1871, t1874, t1875, t1878, t1881, t1884, &
    3078             :          t1885, t1886, t189, t1891, t1892, t1895, t1898, t19, t1901, t1902, t1905, t1908, t1912, &
    3079             :          t1914, t1917, t192, t1920, t1923, t1924, t1925, t1928
    3080             :       REAL(kind=dp) :: t1932, t1938, t1939, t194, t1940, t1943, t1946, t195, t1952, t1954, t1958, &
    3081             :          t196, t1961, t1962, t1965, t1966, t1969, t1971, t1972, t1973, t1974, t1975, t1977, t1980, &
    3082             :          t1981, t1984, t1987, t1988, t199, t1991, t1994, t1997, t20, t200, t2000, t2001, t2002, &
    3083             :          t2006, t2009, t2013, t2014, t2018, t2022, t2027, t2028, t203, t2031, t2032, t2035, t2042, &
    3084             :          t2046, t2050, t2054, t2057, t2058, t2061, t207, t2073, t2074, t2077, t2081, t2082, t2086, &
    3085             :          t2088, t2095, t2098, t2099, t2104, t2107, t2113, t2114, t2117, t2118, t2124, t2126, &
    3086             :          t2130, t2131, t2138, t2139, t214, t2143, t2147, t2160, t2169
    3087             :       REAL(kind=dp) :: t217, t218, t2182, t2183, t2187, t219, t2190, t2193, t2196, t2197, t22, &
    3088             :          t220, t2200, t2201, t2204, t2205, t221, t2220, t2226, t2227, t2230, t224, t225, t2257, &
    3089             :          t2261, t2264, t2268, t2272, t2274, t2276, t2279, t2280, t2281, t2282, t2285, t2287, &
    3090             :          t2292, t2295, t2296, t2299, t23, t230, t2300, t2304, t2307, t2308, t2311, t2312, t2319, &
    3091             :          t2326, t233, t234, t2351, t2368, t237, t2378, t2382, t2392, t24, t2404, t2418, t2424, &
    3092             :          t2437, t2439, t245, t2451, t2455, t2468, t2480, t249, t2492, t25, t250, t2537, t2552, &
    3093             :          t2565, t2569, t2576, t2585, t26, t260, t2611, t262, t2621, t2622, t2631
    3094             :       REAL(kind=dp) :: t2635, t2636, t264, t2645, t2655, t266, t267, t268, t27, t2707, t271, &
    3095             :          t2720, t2724, t2732, t274, t275, t2759, t2763, t2779, t278, t2783, t2808, t2816, t282, &
    3096             :          t2821, t2823, t283, t2833, t2843, t2853, t2869, t2873, t2877, t2885, t289, t290, t2935, &
    3097             :          t2937, t294, t295, t298, t299, t2992, t2994, t2998, t302, t3026, t3030, t306, t3069, &
    3098             :          t307, t3070, t308, t3085, t309, t3093, t3097, t3098, t31, t311, t3129, t313, t3141, t316, &
    3099             :          t317, t318, t3181, t321, t322, t3232, t3244, t3248, t326, t3262, t3264, t3268, t327, &
    3100             :          t3278, t328, t3288, t329, t3291, t3305, t3306, t3314, t332, t3329, t3339
    3101             :       REAL(kind=dp) :: t3344, t3347, t3352, t3353, t3356, t3357, t336, t3362, t3363, t3366, t3378, &
    3102             :          t3379, t3382, t339, t341, t342, t343, t3449, t3453, t347, t3472, t3491, t3494, t3497, &
    3103             :          t35, t350, t3501, t3505, t3507, t3512, t3513, t3514, t352, t3525, t3533, t3543, t3546, &
    3104             :          t3547, t3552, t3553, t356, t3561, t3569, t357, t3575, t3576, t3580, t3581, t36, t360, &
    3105             :          t3608, t3618, t362, t365, t366, t3668, t367, t3673, t3674, t3677, t3679, t368, t3682, &
    3106             :          t37, t371, t3711, t372, t3726, t375, t3750, t376, t3763, t379, t3794, t3796, t380, t3826, &
    3107             :          t3827, t383, t384, t3842, t3849, t3853, t3861, t3865, t3869, t387
    3108             :       REAL(kind=dp) :: t3871, t3875, t3892, t3918, t392, t3925, t393, t3933, t3939, t394, t3940, &
    3109             :          t3965, t3969, t3975, t3979, t398, t3985, t399, t4, t40, t400, t401, t4010, t4018, t4025, &
    3110             :          t4032, t405, t406, t4070, t4079, t41, t4101, t4108, t413, t4140, t4156, t417, t42, t4201, &
    3111             :          t4214, t4230, t424, t425, t4255, t4256, t4261, t4272, t428, t429, t4292, t43, t4317, &
    3112             :          t433, t4345, t4352, t437, t4378, t4392, t44, t4428, t444, t445, t446, t4466, t4498, t45, &
    3113             :          t450, t4505, t451, t4512, t4545, t455, t4553, t4575, t4585, t46, t4607, t462, t4627, &
    3114             :          t4657, t466, t4696, t47, t470, t4700, t4701, t4704, t4707, t4708
    3115             :       REAL(kind=dp) :: t471, t4713, t4714, t4717, t472, t4721, t4725, t4726, t4729, t473, t4732, &
    3116             :          t4733, t4734, t4736, t4738, t4739, t474, t4743, t4744, t4748, t4760, t4764, t4768, t4769, &
    3117             :          t4770, t4771, t4772, t4776, t478, t4782, t4786, t4789, t479, t4790, t4793, t4796, t4797, &
    3118             :          t48, t4800, t4801, t4804, t4808, t4812, t4817, t4820, t4829, t4830, t4833, t4834, t4837, &
    3119             :          t4838, t4849, t4850, t4853, t4857, t4861, t4864, t4869, t4872, t4874, t4878, t4881, &
    3120             :          t4884, t4887, t4889, t489, t4893, t4895, t4897, t4898, t49, t4901, t4904, t4905, t4907, &
    3121             :          t4908, t4909, t4911, t4915, t4917, t4918, t4920, t4922, t4925
    3122             :       REAL(kind=dp) :: t4929, t4932, t4935, t4940, t4941, t4943, t4945, t4946, t4951, t4952, &
    3123             :          t4955, t4958, t496, t498, t4994, t4995, t50, t500, t5001, t5002, t5005, t5008, t5009, &
    3124             :          t5011, t5013, t5016, t5019, t5022, t5025, t5028, t5029, t503, t5032, t5035, t5036, t5040, &
    3125             :          t5043, t5044, t5047, t5050, t5051, t5060, t5065, t5069, t5079, t508, t5083, t5087, t5106, &
    3126             :          t5108, t511, t5115, t5118, t512, t5122, t5123, t5126, t5139, t5143, t5147, t515, t516, &
    3127             :          t5163, t517, t5170, t5174, t520, t5226, t5228, t5229, t5237, t5244, t5247, t5251, t5256, &
    3128             :          t526, t5262, t527, t5270, t5271, t5276, t5280, t5281, t5284, t5291
    3129             :       REAL(kind=dp) :: t5294, t5295, t5298, t53, t530, t5301, t5303, t5305, t5308, t531, t5311, &
    3130             :          t5314, t5317, t5320, t5323, t5326, t5329, t5330, t5333, t5335, t5338, t5339, t534, t5342, &
    3131             :          t5343, t5345, t5347, t5351, t5354, t5357, t5360, t5363, t5367, t537, t5370, t5371, t5373, &
    3132             :          t5376, t5379, t5383, t5386, t5389, t5397, t5400, t5402, t5406, t5409, t541, t5412, t5415, &
    3133             :          t5418, t5421, t5423, t5426, t5429, t5430, t5432, t5436, t5440, t5443, t5446, t5449, &
    3134             :          t5451, t5454, t5456, t5459, t5460, t5462, t5466, t5468, t5469, t5472, t5474, t5478, &
    3135             :          t5480, t5482, t5484, t5487, t5489, t5492, t5494, t5496, t5499, t55
    3136             :       REAL(kind=dp) :: t550, t5503, t5507, t5509, t551, t5511, t5516, t5523, t5525, t5528, t5531, &
    3137             :          t5533, t5535, t5537, t5540, t5541, t5545, t5548, t5551, t5553, t5558, t5560, t5562, &
    3138             :          t5564, t5565, t5568, t557, t5572, t5574, t5575, t5579, t558, t5581, t5585, t5590, t5593, &
    3139             :          t5595, t5597, t56, t5600, t5602, t5604, t5607, t561, t5610, t5611, t5613, t5619, t5622, &
    3140             :          t5625, t5628, t5631, t5632, t5635, t5638, t5641, t5643, t5647, t5650, t5653, t5657, t566, &
    3141             :          t5660, t5663, t5666, t5667, t567, t5670, t5671, t5673, t5676, t5679, t5682, t5686, t5689, &
    3142             :          t569, t5692, t5695, t5696, t5698, t5699, t57, t5701, t5705
    3143             :       REAL(kind=dp) :: t5713, t5716, t5719, t5722, t5724, t5728, t5731, t5734, t5738, t5741, &
    3144             :          t5742, t5745, t5749, t575, t5752, t5756, t5760, t5767, t5770, t5773, t5776, t5780, t5783, &
    3145             :          t5786, t5789, t579, t5792, t5795, t5797, t58, t5801, t5804, t5807, t5810, t5813, t5816, &
    3146             :          t5819, t5822, t5825, t5828, t5830, t5831, t5833, t5835, t5838, t5841, t5845, t5848, t585, &
    3147             :          t5850, t5854, t5857, t5861, t5864, t5868, t5869, t5875, t5880, t5881, t5885, t5888, t589, &
    3148             :          t5891, t5898, t59, t590, t5902, t5905, t5908, t5911, t5913, t5918, t5922, t5925, t5926, &
    3149             :          t5929, t593, t5932, t5938, t5940, t5942, t5944, t5949, t5952
    3150             :       REAL(kind=dp) :: t5954, t5956, t5958, t5960, t5963, t5964, t5966, t597, t5971, t5973, t5975, &
    3151             :          t5977, t5978, t598, t5985, t5990, t5994, t5996, t6, t60, t6000, t6002, t6004, t6006, &
    3152             :          t6009, t6017, t6019, t6021, t6023, t6025, t6029, t6031, t6033, t6036, t6040, t6042, &
    3153             :          t6044, t6047, t6049, t605, t6052, t6053, t6056, t6058, t6060, t6063, t6066, t6074, t6075, &
    3154             :          t6078, t6079, t608, t6087, t609, t6090, t6091, t6094, t6099, t61, t6102, t6106, t6109, &
    3155             :          t6112, t6116, t6119, t6123, t6126, t6129, t6132, t6136, t6138, t614, t6141, t6144, t615, &
    3156             :          t6155, t6158, t6160, t6162, t6170, t6173, t6175, t6179, t6181, t6185
    3157             :       REAL(kind=dp) :: t6186, t6189, t6192, t6194, t6198, t62, t6201, t6207, t6210, t6213, t6216, &
    3158             :          t6219, t6222, t6223, t6227, t624, t6247, t6249, t6252, t6253, t6256, t6257, t6260, t6263, &
    3159             :          t6267, t6268, t627, t6271, t628, t6281, t6283, t6290, t6291, t63, t6308, t6338, t6339, &
    3160             :          t6344, t635, t6352, t6363, t6367, t637, t6370, t6373, t6375, t6380, t6389, t640, t6400, &
    3161             :          t6415, t6428, t6433, t6442, t645, t6451, t646, t6461, t6479, t649, t6490, t6499, t65, &
    3162             :          t650, t6509, t6529, t653, t6539, t6554, t6557, t6569, t657, t658, t6583, t6596, t66, &
    3163             :          t6603, t6611, t6620, t6621, t6630, t6640, t6658, t6665, t6669, t668
    3164             :       REAL(kind=dp) :: t67, t672, t673, t679, t68, t689, t69, t7, t70, t705, t707, t708, t709, &
    3165             :          t71, t710, t713, t716, t719, t722, t723, t728, t729, t732, t735, t739, t74, t747, t753, &
    3166             :          t754, t764, t765, t766, t769, t772, t773, t776, t777, t78, t782, t785, t786, t787, t79, &
    3167             :          t790, t792, t795, t796, t797, t8, t800, t801, t804, t815, t822, t826, t827, t83, t833, &
    3168             :          t84, t85, t851, t852, t855, t857, t859, t86, t862, t863, t864, t865, t866, t867, t87, &
    3169             :          t874, t877, t878, t88, t881, t882, t886, t889, t893, t894, t897, t9, t905, t906, t907, &
    3170             :          t914, t918, t92, t922, t923, t926, t929, t93, t930, t94, t940, t941
    3171             :       REAL(kind=dp) :: t942, t944, t946, t949, t95, t950, t953, t954, t955, t958, t959, t962, &
    3172             :          t963, t966, t969, t97, t972, t973, t974, t975, t976, t979, t98, t980, t983, t984, t987, &
    3173             :          t99, t991, t995, t997, xx
    3174             : 
    3175         240 :       my_epsilon_rho = 0.5_dp*epsilon_rho
    3176             :       epsilon_rho43 = my_epsilon_rho**(4.0_dp/3.0_dp)
    3177         240 :       Cx = 1.5_dp*(3.0_dp/4.0_dp/pi)**(1.0_dp/3.0_dp)
    3178             : 
    3179         240 : !$OMP     DO
    3180             :       DO ii = 1, npoints
    3181     9747840 :          rho = rho_spin(ii)
    3182     9747840 :          ndrho = norm_drho_spin(ii)
    3183     9747840 :          IF (rho > my_epsilon_rho) THEN
    3184     9686234 :             IF (grad_deriv >= 0) THEN
    3185             :                t1 = rho**(0.1e1_dp/0.3e1_dp)
    3186     9686234 :                xx = ndrho*MAX(1.0_dp/t1/rho, epsilon_rho43)
    3187     9686234 :                t4 = lambda*rho
    3188     9686234 :                t6 = ndrho**2
    3189     9686234 :                t7 = beta*t6
    3190     9686234 :                t8 = lambda**2
    3191     9686234 :                t9 = t8**2
    3192     9686234 :                t10 = t9**2
    3193     9686234 :                t11 = 0.1e1_dp/t10
    3194     9686234 :                t12 = rho**2
    3195     9686234 :                t13 = t9*t8
    3196     9686234 :                t14 = 0.1e1_dp/t13
    3197     9686234 :                t15 = t12*t14
    3198     9686234 :                t16 = t8*lambda
    3199     9686234 :                t17 = 0.1e1_dp/t16
    3200     9686234 :                t18 = rho*t17
    3201     9686234 :                t19 = t18**(0.1e1_dp/0.3e1_dp)
    3202     9686234 :                t20 = t19**2
    3203     9686234 :                t22 = 0.1e1_dp/t20/t15
    3204     9686234 :                t23 = t11*t22
    3205     9686234 :                t24 = beta*ndrho
    3206     9686234 :                t25 = 0.1e1_dp/t9
    3207     9686234 :                t26 = t19*t18
    3208     9686234 :                t27 = 0.1e1_dp/t26
    3209             :                t31 = LOG(ndrho*t25*t27 + SQRT((ndrho*t25*t27)**0.2e1_dp + &
    3210     9686234 :                                               0.1e1_dp))
    3211     9686234 :                t35 = 0.10e1_dp + 0.60e1_dp*t24*t25*t27*t31
    3212     9686234 :                t36 = 0.1e1_dp/t35
    3213     9686234 :                t37 = t23*t36
    3214     9686234 :                t40 = 0.20e1_dp*Cx + 0.20e1_dp*t7*t37
    3215     9686234 :                t41 = SQRT(t40)
    3216     9686234 :                t42 = t41*t40
    3217     9686234 :                t43 = t4*t42
    3218     9686234 :                t44 = rootpi
    3219     9686234 :                t45 = 0.1e1_dp/t44
    3220     9686234 :                t46 = omega*t45
    3221     9686234 :                t47 = 0.1e1_dp/omega
    3222     9686234 :                t48 = 0.1e1_dp/t41
    3223     9686234 :                t49 = t47*t48
    3224     9686234 :                t50 = t44*t19
    3225     9686234 :                t53 = erf(0.3000000000e1_dp*t49*t50)
    3226     9686234 :                t55 = omega*t41
    3227     9686234 :                t56 = 0.1e1_dp/t19
    3228     9686234 :                t57 = t45*t56
    3229     9686234 :                t58 = omega**2
    3230     9686234 :                t59 = 0.1e1_dp/t58
    3231     9686234 :                t60 = 0.1e1_dp/t40
    3232     9686234 :                t61 = t59*t60
    3233     9686234 :                t62 = pi*t20
    3234     9686234 :                t63 = t61*t62
    3235     9686234 :                t65 = EXP(-0.8999999998e1_dp*t63)
    3236     9686234 :                t66 = t58*t40
    3237     9686234 :                t67 = 0.1e1_dp/pi
    3238     9686234 :                t68 = 0.1e1_dp/t20
    3239     9686234 :                t69 = t67*t68
    3240     9686234 :                t70 = t65 - 0.10e1_dp
    3241     9686234 :                t71 = t69*t70
    3242     9686234 :                t74 = t65 - 0.15e1_dp - 0.5555555558e-1_dp*t66*t71
    3243     9686234 :                t78 = t44*t53 + 0.3333333334e0_dp*t55*t57*t74
    3244     9686234 :                t79 = t46*t78
    3245     9686234 :                t83 = rho*t41*omega
    3246     9686234 :                t84 = t45*t78
    3247     9686234 :                t85 = t10*lambda
    3248     9686234 :                t86 = 0.1e1_dp/t85
    3249     9686234 :                t87 = t86*t22
    3250     9686234 :                t88 = t87*t36
    3251     9686234 :                t92 = 0.1e1_dp/t10/t9
    3252     9686234 :                t93 = t7*t92
    3253     9686234 :                t94 = t12*rho
    3254     9686234 :                t95 = t94*t86
    3255     9686234 :                t97 = 0.1e1_dp/t20/t95
    3256     9686234 :                t98 = t97*t36
    3257     9686234 :                t99 = t98*rho
    3258     9686234 :                t102 = t7*t11
    3259     9686234 :                t103 = t35**2
    3260     9686234 :                t104 = 0.1e1_dp/t103
    3261     9686234 :                t105 = t22*t104
    3262     9686234 :                t106 = t9*lambda
    3263     9686234 :                t107 = 0.1e1_dp/t106
    3264     9686234 :                t108 = t107*t27
    3265     9686234 :                t112 = t24*t11
    3266     9686234 :                t114 = 0.1e1_dp/t19/t15
    3267     9686234 :                t115 = t114*t31
    3268     9686234 :                t116 = t115*rho
    3269     9686234 :                t119 = t24*t25
    3270     9686234 :                t122 = ndrho*t11
    3271     9686234 :                t123 = t114*rho
    3272     9686234 :                t126 = -4*ndrho*t107*t27 + 4*t122*t123
    3273     9686234 :                t130 = 1 + t6*t11*t22
    3274     9686234 :                t131 = SQRT(t130)
    3275     9686234 :                t132 = 0.1e1_dp/t131
    3276     9686234 :                t133 = t27*t126*t132
    3277             :                t136 = -0.240e2_dp*t24*t108*t31 + 0.240e2_dp*t112*t116 + 0.60e1_dp &
    3278     9686234 :                       *t119*t133
    3279     9686234 :                t137 = t105*t136
    3280             :                t140 = -0.160e2_dp*t7*t88 + 0.160e2_dp*t93*t99 - 0.20e1_dp*t102* &
    3281     9686234 :                       t137
    3282     9686234 :                t141 = t84*t140
    3283     9686234 :                t144 = rho*t42
    3284     9686234 :                t145 = SQRT(0.3141592654e1_dp)
    3285     9686234 :                t146 = 0.1e1_dp/t145
    3286     9686234 :                t147 = t44*t146
    3287     9686234 :                t149 = EXP(-0.9000000000e1_dp*t63)
    3288     9686234 :                t150 = 0.1e1_dp/t42
    3289     9686234 :                t151 = t47*t150
    3290     9686234 :                t155 = t49*t44
    3291     9686234 :                t156 = t68*rho
    3292             :                t160 = -0.1500000000e1_dp*t151*t50*t140 - 0.3000000000e1_dp*t155 &
    3293     9686234 :                       *t156*t25
    3294     9686234 :                t161 = t149*t160
    3295     9686234 :                t164 = omega*t48
    3296     9686234 :                t165 = t164*t45
    3297     9686234 :                t166 = t56*t74
    3298     9686234 :                t170 = t55*t45
    3299     9686234 :                t171 = t27*t74
    3300     9686234 :                t172 = rho*t25
    3301     9686234 :                t176 = t40**2
    3302     9686234 :                t177 = 0.1e1_dp/t176
    3303     9686234 :                t178 = t59*t177
    3304     9686234 :                t182 = t61*pi
    3305     9686234 :                t183 = t56*rho
    3306             :                t187 = 0.8999999998e1_dp*t178*t62*t140 + 0.1800000000e2_dp*t182* &
    3307     9686234 :                       t183*t25
    3308     9686234 :                t189 = t58*t140
    3309     9686234 :                t192 = t66*t67
    3310     9686234 :                t194 = 0.1e1_dp/t20/t18
    3311     9686234 :                t195 = t194*t70
    3312     9686234 :                t196 = t195*t172
    3313     9686234 :                t199 = t68*t187
    3314     9686234 :                t200 = t199*t65
    3315             :                t203 = t187*t65 - 0.5555555558e-1_dp*t189*t71 - 0.1111111112e0_dp* &
    3316     9686234 :                       t192*t196 - 0.5555555558e-1_dp*t192*t200
    3317             :                t207 = (2*t147*t161) + 0.1666666667e0_dp*t165*t166*t140 &
    3318             :                       + 0.3333333334e0_dp*t170*t171*t172 + 0.3333333334e0_dp*t55*t57 &
    3319     9686234 :                       *t203
    3320             :                e_0(ii) = e_0(ii) + (-0.4444444448e0_dp*t43*t79 + t8*(-0.3333333336e0_dp*t83*t141 &
    3321     9686234 :                                                                      - 0.2222222224e0_dp*t144*t46*t207))*sx
    3322             :             END IF
    3323     9686234 :             IF (grad_deriv >= 1 .OR. grad_deriv == -1) THEN
    3324     2780390 :                t214 = lambda*t42
    3325     2780390 :                t217 = t4*t41
    3326     2780390 :                t218 = t10*t16
    3327     2780390 :                t219 = 0.1e1_dp/t218
    3328     2780390 :                t220 = t219*t97
    3329     2780390 :                t221 = t220*t36
    3330     2780390 :                t224 = t9*t16
    3331     2780390 :                t225 = 0.1e1_dp/t224
    3332     2780390 :                t230 = t220*t132
    3333             :                t233 = -0.8000000000e1_dp*t24*t225*t114*t31 - 0.8000000000e1_dp* &
    3334     2780390 :                       t7*t230
    3335     2780390 :                t234 = t105*t233
    3336     2780390 :                t237 = -0.5333333333e1_dp*t7*t221 - 0.20e1_dp*t102*t234
    3337     2780390 :                t245 = t44*t68
    3338             :                t249 = -0.1500000000e1_dp*t151*t50*t237 + 0.1000000000e1_dp*t49* &
    3339     2780390 :                       t245*t17
    3340     2780390 :                t250 = t149*t249
    3341     2780390 :                t260 = t178*t62*t237
    3342     2780390 :                t262 = pi*t56
    3343     2780390 :                t264 = t61*t262*t17
    3344     2780390 :                t266 = 0.8999999998e1_dp*t260 - 0.5999999999e1_dp*t264
    3345     2780390 :                t267 = t266*t65
    3346     2780390 :                t268 = t58*t237
    3347     2780390 :                t271 = t195*t17
    3348     2780390 :                t274 = t68*t266
    3349     2780390 :                t275 = t274*t65
    3350             :                t278 = t267 - 0.5555555558e-1_dp*t268*t71 + 0.3703703705e-1_dp*t192 &
    3351     2780390 :                       *t271 - 0.5555555558e-1_dp*t192*t275
    3352             :                t282 = (2*t147*t250) + 0.1666666667e0_dp*t165*t166*t237 &
    3353             :                       - 0.1111111111e0_dp*t170*t171*t17 + 0.3333333334e0_dp*t55*t57 &
    3354     2780390 :                       *t278
    3355     2780390 :                t283 = t46*t282
    3356     2780390 :                t289 = rho*t48*omega
    3357     2780390 :                t290 = t140*t237
    3358     2780390 :                t294 = t45*t282
    3359     2780390 :                t295 = t294*t140
    3360     2780390 :                t298 = t92*t97
    3361     2780390 :                t299 = t298*t36
    3362     2780390 :                t302 = t7*t86
    3363     2780390 :                t306 = 0.1e1_dp/t10/t224
    3364     2780390 :                t307 = t7*t306
    3365     2780390 :                t308 = t12**2
    3366     2780390 :                t309 = t308*t92
    3367     2780390 :                t311 = 0.1e1_dp/t20/t309
    3368     2780390 :                t313 = t311*t36*rho
    3369     2780390 :                t316 = t97*t104
    3370     2780390 :                t317 = rho*t233
    3371     2780390 :                t318 = t316*t317
    3372     2780390 :                t321 = t7*t219
    3373     2780390 :                t322 = t316*t136
    3374     2780390 :                t326 = 0.1e1_dp/t103/t35
    3375     2780390 :                t327 = t22*t326
    3376     2780390 :                t328 = t136*t233
    3377     2780390 :                t329 = t327*t328
    3378     2780390 :                t332 = t11*t114
    3379     2780390 :                t336 = t298*t132
    3380     2780390 :                t339 = t24*t219
    3381     2780390 :                t341 = 0.1e1_dp/t19/t95
    3382     2780390 :                t342 = t341*t31
    3383     2780390 :                t343 = t342*rho
    3384     2780390 :                t347 = t311*t132*rho
    3385     2780390 :                t350 = t24*t225
    3386     2780390 :                t352 = t114*t126*t132
    3387     2780390 :                t356 = ndrho*t219
    3388     2780390 :                t357 = t341*rho
    3389     2780390 :                t360 = 0.28e2_dp/0.3e1_dp*t122*t114 - 0.28e2_dp/0.3e1_dp*t356*t357
    3390     2780390 :                t362 = t27*t360*t132
    3391     2780390 :                t365 = t6*ndrho
    3392     2780390 :                t366 = beta*t365
    3393     2780390 :                t367 = t308*rho
    3394     2780390 :                t368 = 0.1e1_dp/t367
    3395     2780390 :                t371 = 0.1e1_dp/t131/t130
    3396     2780390 :                t372 = t368*t126*t371
    3397             :                t375 = 0.5600000000e2_dp*t24*t332*t31 + 0.3200000000e2_dp*t7*t336 &
    3398             :                       - 0.5600000000e2_dp*t339*t343 - 0.3200000000e2_dp*t307*t347 - &
    3399             :                       0.8000000000e1_dp*t350*t352 + 0.60e1_dp*t119*t362 + 0.8000000000e1_dp &
    3400     2780390 :                       *t366*t372
    3401     2780390 :                t376 = t105*t375
    3402             :                t379 = 0.5866666667e2_dp*t7*t299 + 0.160e2_dp*t302*t234 - 0.5866666667e2_dp &
    3403             :                       *t307*t313 - 0.160e2_dp*t93*t318 + 0.5333333333e1_dp*t321 &
    3404     2780390 :                       *t322 + 0.40e1_dp*t102*t329 - 0.20e1_dp*t102*t376
    3405     2780390 :                t380 = t84*t379
    3406     2780390 :                t383 = t42*omega
    3407     2780390 :                t384 = t45*t207
    3408     2780390 :                t387 = t384*t237
    3409     2780390 :                t392 = 0.9000000000e1_dp*t260 - 0.6000000000e1_dp*t264
    3410     2780390 :                t393 = t392*t149
    3411     2780390 :                t394 = t393*t160
    3412     2780390 :                t398 = 0.1e1_dp/t41/t176
    3413     2780390 :                t399 = t47*t398
    3414     2780390 :                t400 = t399*t44
    3415     2780390 :                t401 = t19*t140
    3416     2780390 :                t405 = t151*t44
    3417     2780390 :                t406 = t68*t140
    3418     2780390 :                t413 = t25*t237
    3419     2780390 :                t417 = t194*rho
    3420             :                t424 = 0.2250000000e1_dp*t400*t401*t237 - 0.5000000000e0_dp*t405 &
    3421             :                       *t406*t17 - 0.1500000000e1_dp*t151*t50*t379 + 0.1500000000e1_dp &
    3422             :                       *t405*t156*t413 + 0.2000000000e1_dp*t155*t417*t225 - 0.3000000000e1_dp &
    3423     2780390 :                       *t49*t245*t25
    3424     2780390 :                t425 = t149*t424
    3425     2780390 :                t428 = omega*t150
    3426     2780390 :                t429 = t428*t45
    3427     2780390 :                t433 = t140*t17
    3428     2780390 :                t437 = t56*t278
    3429     2780390 :                t444 = t45*t27
    3430     2780390 :                t445 = t164*t444
    3431     2780390 :                t446 = t74*rho
    3432     2780390 :                t450 = t114*t74
    3433     2780390 :                t451 = rho*t225
    3434     2780390 :                t455 = t27*t278
    3435     2780390 :                t462 = t56*t203
    3436     2780390 :                t466 = t27*t203
    3437     2780390 :                t470 = t176*t40
    3438     2780390 :                t471 = 0.1e1_dp/t470
    3439     2780390 :                t472 = t59*t471
    3440     2780390 :                t473 = t472*pi
    3441     2780390 :                t474 = t20*t140
    3442     2780390 :                t478 = t178*pi
    3443     2780390 :                t479 = t56*t140
    3444     2780390 :                t489 = t27*rho
    3445             :                t496 = -0.1800000000e2_dp*t473*t474*t237 + 0.5999999999e1_dp*t478 &
    3446             :                       *t479*t17 + 0.8999999998e1_dp*t178*t62*t379 - 0.1800000000e2_dp &
    3447             :                       *t478*t183*t413 - 0.6000000000e1_dp*t182*t489*t225 + 0.1800000000e2_dp &
    3448     2780390 :                       *t61*t262*t25
    3449     2780390 :                t498 = t187*t266
    3450     2780390 :                t500 = t58*t379
    3451     2780390 :                t503 = t189*t67
    3452     2780390 :                t508 = t268*t67
    3453     2780390 :                t511 = t22*t70
    3454     2780390 :                t512 = t511*t451
    3455     2780390 :                t515 = t67*t194
    3456     2780390 :                t516 = t66*t515
    3457     2780390 :                t517 = t267*t172
    3458     2780390 :                t520 = t195*t25
    3459     2780390 :                t526 = t65*t17
    3460     2780390 :                t527 = t194*t187*t526
    3461     2780390 :                t530 = t68*t496
    3462     2780390 :                t531 = t530*t65
    3463     2780390 :                t534 = t199*t267
    3464             :                t537 = t496*t65 + t498*t65 - 0.5555555558e-1_dp*t500*t71 + 0.3703703705e-1_dp &
    3465             :                       *t503*t271 - 0.5555555558e-1_dp*t503*t275 - 0.1111111112e0_dp &
    3466             :                       *t508*t196 + 0.1851851853e0_dp*t192*t512 - 0.1111111112e0_dp &
    3467             :                       *t516*t517 - 0.1111111112e0_dp*t192*t520 - 0.5555555558e-1_dp &
    3468             :                       *t508*t200 + 0.3703703705e-1_dp*t192*t527 - 0.5555555558e-1_dp &
    3469     2780390 :                       *t192*t531 - 0.5555555558e-1_dp*t192*t534
    3470             :                t541 = (2*t147*t394) + (2*t147*t425) - 0.8333333335e-1_dp &
    3471             :                       *t429*t166*t290 - 0.5555555557e-1_dp*t165*t171*t433 + &
    3472             :                       0.1666666667e0_dp*t165*t437*t140 + 0.1666666667e0_dp*t165*t166 &
    3473             :                       *t379 + 0.1666666667e0_dp*t445*t446*t413 - 0.4444444445e0_dp*t170 &
    3474             :                       *t450*t451 + 0.3333333334e0_dp*t170*t455*t172 + 0.3333333334e0_dp &
    3475             :                       *t170*t171*t25 + 0.1666666667e0_dp*t165*t462*t237 - &
    3476             :                       0.1111111111e0_dp*t170*t466*t17 + 0.3333333334e0_dp*t55*t57* &
    3477     2780390 :                       t537
    3478             :                e_rho_spin(ii) = e_rho_spin(ii) + (-0.4444444448e0_dp*t214*t79 - 0.6666666672e0_dp*t217*t46 &
    3479             :                                                   *t78*t237 - 0.4444444448e0_dp*t43*t283 + t8*(-0.3333333336e0_dp &
    3480             :                                                                    *t55*t141 - 0.1666666668e0_dp*t289*t84*t290 - 0.3333333336e0_dp &
    3481             :                                                                    *t83*t295 - 0.3333333336e0_dp*t83*t380 - 0.2222222224e0_dp*t383 &
    3482             :                                                                       *t384 - 0.3333333336e0_dp*t83*t387 - 0.2222222224e0_dp*t144* &
    3483     2780390 :                                                                                                t46*t541))*sx
    3484     2780390 :                t550 = beta*t25
    3485     2780390 :                t551 = t27*t31
    3486     2780390 :                t557 = 0.60e1_dp*t550*t551 + 0.60e1_dp*t24*t23*t132
    3487     2780390 :                t558 = t105*t557
    3488     2780390 :                t561 = 0.40e1_dp*t24*t37 - 0.20e1_dp*t102*t558
    3489     2780390 :                t566 = pi*t146
    3490     2780390 :                t567 = t566*t149
    3491     2780390 :                t569 = t151*t19*t561
    3492     2780390 :                t575 = t20*t561
    3493     2780390 :                t579 = t58*t561
    3494             :                t585 = 0.8999999998e1_dp*t478*t575*t65 - 0.5555555558e-1_dp*t579 &
    3495     2780390 :                       *t71 - 0.5000000001e0_dp*t60*t561*t65
    3496             :                t589 = -0.3000000000e1_dp*t567*t569 + 0.1666666667e0_dp*t165*t166 &
    3497     2780390 :                       *t561 + 0.3333333334e0_dp*t55*t57*t585
    3498     2780390 :                t590 = t46*t589
    3499     2780390 :                t593 = t140*t561
    3500     2780390 :                t597 = t45*t589
    3501     2780390 :                t598 = t597*t140
    3502     2780390 :                t605 = t24*t92
    3503     2780390 :                t608 = rho*t557
    3504     2780390 :                t609 = t316*t608
    3505     2780390 :                t614 = t136*t557
    3506     2780390 :                t615 = t327*t614
    3507     2780390 :                t624 = beta*t11
    3508     2780390 :                t627 = t97*t132
    3509     2780390 :                t628 = t627*rho
    3510     2780390 :                t635 = -4*t108 + 4*t332*rho
    3511     2780390 :                t637 = t27*t635*t132
    3512     2780390 :                t640 = 0.1e1_dp/t308
    3513             :                t645 = -0.240e2_dp*beta*t107*t551 - 0.240e2_dp*t24*t87*t132 + &
    3514             :                       0.240e2_dp*t624*t116 + 0.240e2_dp*t605*t628 + 0.60e1_dp*t550*t133 &
    3515     2780390 :                       + 0.60e1_dp*t119*t637 - 0.60e1_dp*t7*t640*t126*t371
    3516     2780390 :                t646 = t105*t645
    3517             :                t649 = -0.320e2_dp*t24*t88 + 0.160e2_dp*t302*t558 + 0.320e2_dp*t605 &
    3518             :                       *t99 - 0.160e2_dp*t93*t609 - 0.40e1_dp*t112*t137 + 0.40e1_dp*t102 &
    3519     2780390 :                       *t615 - 0.20e1_dp*t102*t646
    3520     2780390 :                t650 = t84*t649
    3521     2780390 :                t653 = t384*t561
    3522     2780390 :                t657 = t44*pi*t146
    3523     2780390 :                t658 = t657*t178
    3524     2780390 :                t668 = t25*t561
    3525             :                t672 = 0.2250000000e1_dp*t400*t401*t561 - 0.1500000000e1_dp*t151 &
    3526     2780390 :                       *t50*t649 + 0.1500000000e1_dp*t405*t156*t668
    3527     2780390 :                t673 = t149*t672
    3528     2780390 :                t679 = t56*t585
    3529     2780390 :                t689 = t27*t585
    3530             :                t705 = -0.1800000000e2_dp*t473*t474*t561 + 0.8999999998e1_dp*t178 &
    3531     2780390 :                       *t62*t649 - 0.1800000000e2_dp*t478*t183*t668
    3532     2780390 :                t707 = t187*t59
    3533     2780390 :                t708 = t707*t177
    3534     2780390 :                t709 = t561*t65
    3535     2780390 :                t710 = t62*t709
    3536     2780390 :                t713 = t58*t649
    3537     2780390 :                t716 = t140*t177
    3538     2780390 :                t719 = t579*t67
    3539     2780390 :                t722 = 0.1e1_dp/lambda
    3540     2780390 :                t723 = t60*t722
    3541     2780390 :                t728 = t68*t705
    3542     2780390 :                t729 = t728*t65
    3543     2780390 :                t732 = t60*t187
    3544             :                t735 = t705*t65 + 0.8999999998e1_dp*t708*t710 - 0.5555555558e-1_dp &
    3545             :                       *t713*t71 - 0.5000000001e0_dp*t716*t709 - 0.1111111112e0_dp*t719 &
    3546             :                       *t196 - 0.1000000001e1_dp*t723*t709 - 0.5555555558e-1_dp*t719* &
    3547     2780390 :                       t200 - 0.5555555558e-1_dp*t192*t729 - 0.5000000001e0_dp*t732*t709
    3548             :                t739 = 0.1800000000e2_dp*t658*t575*t161 + (2*t147*t673) &
    3549             :                       - 0.8333333335e-1_dp*t429*t166*t593 + 0.1666666667e0_dp*t165*t679 &
    3550             :                       *t140 + 0.1666666667e0_dp*t165*t166*t649 + 0.1666666667e0_dp &
    3551             :                       *t445*t446*t668 + 0.3333333334e0_dp*t170*t689*t172 + 0.1666666667e0_dp &
    3552     2780390 :                       *t165*t462*t561 + 0.3333333334e0_dp*t55*t57*t735
    3553             :                e_ndrho_spin(ii) = e_ndrho_spin(ii) + (-0.6666666672e0_dp*t217*t46*t78*t561 - 0.4444444448e0_dp &
    3554             :                                                       *t43*t590 + t8*(-0.1666666668e0_dp*t289*t84*t593 - 0.3333333336e0_dp &
    3555             :                                                                       *t83*t598 - 0.3333333336e0_dp*t83*t650 - 0.3333333336e0_dp &
    3556     2780390 :                                                                       *t83*t653 - 0.2222222224e0_dp*t144*t46*t739))*sx
    3557             :             END IF
    3558             : 
    3559     9686234 :             IF (grad_deriv >= 2 .OR. grad_deriv == -2) THEN
    3560           0 :                t747 = lambda*t41*omega
    3561           0 :                t753 = t4*t48
    3562           0 :                t754 = t237**2
    3563           0 :                t764 = 0.1e1_dp/t10/t13
    3564           0 :                t765 = t764*t311
    3565           0 :                t766 = t765*t36
    3566           0 :                t769 = t316*t233
    3567           0 :                t772 = t233**2
    3568           0 :                t773 = t327*t772
    3569           0 :                t776 = t10*t8
    3570           0 :                t777 = 0.1e1_dp/t776
    3571           0 :                t782 = t765*t132
    3572           0 :                t785 = t6**2
    3573           0 :                t786 = beta*t785
    3574           0 :                t787 = t10**2
    3575           0 :                t790 = t308*t94
    3576           0 :                t792 = 0.1e1_dp/t787/t106
    3577           0 :                t795 = 0.1e1_dp/t19/t790/t792
    3578           0 :                t796 = 0.1e1_dp/t787/t13*t795
    3579           0 :                t797 = t796*t371
    3580             :                t800 = 0.1866666667e2_dp*t24*t777*t341*t31 + 0.4000000000e2_dp* &
    3581           0 :                       t7*t782 - 0.1066666667e2_dp*t786*t797
    3582           0 :                t801 = t105*t800
    3583             :                t804 = 0.1955555555e2_dp*t7*t766 + 0.1066666667e2_dp*t321*t769 + &
    3584           0 :                       0.40e1_dp*t102*t773 - 0.20e1_dp*t102*t801
    3585           0 :                t815 = t68*t237
    3586           0 :                t822 = t44*t194
    3587             :                t826 = 0.2250000000e1_dp*t399*t50*t754 - 0.1000000000e1_dp*t405* &
    3588             :                       t815*t17 - 0.1500000000e1_dp*t151*t50*t804 - 0.6666666667e0_dp &
    3589           0 :                       *t49*t822*t14
    3590           0 :                t827 = t149*t826
    3591           0 :                t833 = t237*t17
    3592           0 :                t851 = 0.1800000000e2_dp*t472*t62*t754
    3593           0 :                t852 = t56*t237
    3594           0 :                t855 = 0.1200000000e2_dp*t478*t852*t17
    3595           0 :                t857 = t178*t62*t804
    3596           0 :                t859 = pi*t27
    3597           0 :                t862 = 0.2000000000e1_dp*t61*t859*t14
    3598           0 :                t863 = -t851 + t855 + 0.8999999998e1_dp*t857 + t862
    3599           0 :                t864 = t863*t65
    3600           0 :                t865 = t266**2
    3601           0 :                t866 = t865*t65
    3602           0 :                t867 = t58*t804
    3603           0 :                t874 = t511*t14
    3604           0 :                t877 = t194*t266
    3605           0 :                t878 = t877*t526
    3606           0 :                t881 = t68*t863
    3607           0 :                t882 = t881*t65
    3608           0 :                t886 = t68*t865*t65
    3609             :                t889 = t864 + t866 - 0.5555555558e-1_dp*t867*t71 + 0.7407407410e-1_dp &
    3610             :                       *t508*t271 - 0.1111111112e0_dp*t508*t275 - 0.6172839508e-1_dp* &
    3611             :                       t192*t874 + 0.7407407410e-1_dp*t192*t878 - 0.5555555558e-1_dp*t192 &
    3612           0 :                       *t882 - 0.5555555558e-1_dp*t192*t886
    3613             :                t893 = (2*t147*t393*t249) + (2*t147*t827) - 0.8333333335e-1_dp &
    3614             :                       *t429*t166*t754 - 0.1111111111e0_dp*t165*t171*t833 &
    3615             :                       + 0.3333333334e0_dp*t165*t437*t237 + 0.1666666667e0_dp*t165 &
    3616             :                       *t166*t804 + 0.1481481481e0_dp*t170*t450*t14 - 0.2222222222e0_dp &
    3617           0 :                       *t170*t455*t17 + 0.3333333334e0_dp*t55*t57*t889
    3618           0 :                t894 = t46*t893
    3619           0 :                t897 = t78*t140
    3620           0 :                t905 = rho*t150
    3621           0 :                t906 = t905*omega
    3622           0 :                t907 = t140*t754
    3623           0 :                t914 = t379*t237
    3624           0 :                t918 = t140*t804
    3625           0 :                t922 = t45*t893
    3626           0 :                t923 = t922*t140
    3627           0 :                t926 = t294*t379
    3628           0 :                t929 = t306*t311
    3629           0 :                t930 = t929*t36
    3630           0 :                t940 = 0.1e1_dp/t787/t8
    3631           0 :                t941 = t7*t940
    3632           0 :                t942 = t367*t306
    3633           0 :                t944 = 0.1e1_dp/t20/t942
    3634           0 :                t946 = t944*t36*rho
    3635           0 :                t949 = t311*t104
    3636           0 :                t950 = t949*t317
    3637           0 :                t953 = t97*t326
    3638           0 :                t954 = rho*t772
    3639           0 :                t955 = t953*t954
    3640           0 :                t958 = rho*t800
    3641           0 :                t959 = t316*t958
    3642           0 :                t962 = t7*t764
    3643           0 :                t963 = t949*t136
    3644           0 :                t966 = t953*t328
    3645           0 :                t969 = t316*t375
    3646           0 :                t972 = t103**2
    3647           0 :                t973 = 0.1e1_dp/t972
    3648           0 :                t974 = t22*t973
    3649           0 :                t975 = t136*t772
    3650           0 :                t976 = t974*t975
    3651           0 :                t979 = t375*t233
    3652           0 :                t980 = t327*t979
    3653           0 :                t983 = t136*t800
    3654           0 :                t984 = t327*t983
    3655           0 :                t987 = t219*t341
    3656           0 :                t991 = t929*t132
    3657           0 :                t995 = 0.1e1_dp/t787/t224
    3658           0 :                t997 = t995*t795*t371
    3659           0 :                t1000 = t24*t764
    3660           0 :                t1002 = 0.1e1_dp/t19/t309
    3661           0 :                t1004 = t1002*t31*rho
    3662           0 :                t1008 = t944*t132*rho
    3663           0 :                t1012 = 0.1e1_dp/t787/t776
    3664           0 :                t1014 = t308**2
    3665           0 :                t1019 = 0.1e1_dp/t19/t1014*t787*t10
    3666           0 :                t1021 = t1019*t371*rho
    3667           0 :                t1024 = t24*t777
    3668           0 :                t1026 = t341*t126*t132
    3669           0 :                t1030 = t114*t360*t132
    3670           0 :                t1033 = t308*t12
    3671           0 :                t1034 = 0.1e1_dp/t1033
    3672           0 :                t1036 = t1034*t126*t371
    3673           0 :                t1040 = ndrho*t764
    3674             :                t1044 = -0.280e3_dp/0.9e1_dp*t356*t341 + 0.280e3_dp/0.9e1_dp*t1040* &
    3675           0 :                        t1002*rho
    3676           0 :                t1046 = t27*t1044*t132
    3677           0 :                t1050 = t368*t360*t371
    3678           0 :                t1054 = beta*t785*ndrho
    3679           0 :                t1055 = t1054*t368
    3680           0 :                t1056 = t130**2
    3681           0 :                t1058 = 0.1e1_dp/t131/t1056
    3682           0 :                t1059 = t126*t1058
    3683           0 :                t1060 = t1059*t220
    3684             :                t1063 = -0.1866666667e3_dp*t24*t987*t31 - 0.2240000000e3_dp*t7* &
    3685             :                        t991 + 0.4266666667e2_dp*t786*t997 + 0.1866666667e3_dp*t1000*t1004 &
    3686             :                        + 0.2240000000e3_dp*t941*t1008 - 0.4266666667e2_dp*t786*t1012 &
    3687             :                        *t1021 + 0.1866666667e2_dp*t1024*t1026 - 0.1600000000e2_dp*t350 &
    3688             :                        *t1030 - 0.5066666667e2_dp*t366*t1036 + 0.60e1_dp*t119*t1046 + &
    3689           0 :                        0.1600000000e2_dp*t366*t1050 + 0.3200000000e2_dp*t1055*t1060
    3690           0 :                t1064 = t105*t1063
    3691             :                t1067 = -0.2737777778e3_dp*t7*t930 - 0.1173333333e3_dp*t93*t769 - &
    3692             :                        0.320e2_dp*t302*t773 + 0.160e2_dp*t302*t801 + 0.2737777778e3_dp* &
    3693             :                        t941*t946 + 0.1173333333e3_dp*t307*t950 + 0.320e2_dp*t93*t955 &
    3694             :                        - 0.160e2_dp*t93*t959 - 0.1955555555e2_dp*t962*t963 - 0.2133333334e2_dp &
    3695             :                        *t321*t966 + 0.1066666667e2_dp*t321*t969 - 0.120e2_dp*t102 &
    3696             :                        *t976 + 0.80e1_dp*t102*t980 + 0.40e1_dp*t102*t984 - 0.20e1_dp*t102 &
    3697           0 :                        *t1064
    3698           0 :                t1068 = t84*t1067
    3699           0 :                t1071 = t45*t541
    3700           0 :                t1076 = t384*t754
    3701           0 :                t1079 = t1071*t237
    3702           0 :                t1082 = t384*t804
    3703           0 :                t1085 = t379*t17
    3704           0 :                t1089 = t114*t278
    3705           0 :                t1093 = t25*t804
    3706           0 :                t1097 = t187*t865
    3707           0 :                t1099 = t97*t70
    3708           0 :                t1100 = rho*t777
    3709           0 :                t1101 = t1099*t1100
    3710           0 :                t1106 = t500*t67
    3711           0 :                t1109 = t187*t863
    3712           0 :                t1111 = t496*t266
    3713           0 :                t1119 = t194*t496*t526
    3714           0 :                t1122 = t199*t866
    3715           0 :                t1125 = t65*t25
    3716           0 :                t1126 = t877*t1125
    3717           0 :                t1129 = t867*t67
    3718           0 :                t1134 = t866*t172
    3719           0 :                t1137 = t268*t515
    3720           0 :                t1140 = t176**2
    3721           0 :                t1141 = 0.1e1_dp/t1140
    3722           0 :                t1142 = t59*t1141
    3723           0 :                t1143 = t1142*pi
    3724           0 :                t1150 = t20*t379
    3725           0 :                t1157 = t27*t140
    3726           0 :                t1161 = t56*t379
    3727           0 :                t1168 = t25*t754
    3728           0 :                t1172 = t225*t237
    3729           0 :                t1176 = t56*t25
    3730             :                t1189 = 0.5400000000e2_dp*t1143*t474*t754 - 0.2400000000e2_dp*t473 &
    3731             :                        *t479*t833 - 0.3600000000e2_dp*t473*t1150*t237 - 0.1800000000e2_dp &
    3732             :                        *t473*t474*t804 - 0.2000000000e1_dp*t478*t1157*t14 + &
    3733             :                        0.1200000000e2_dp*t478*t1161*t17 + 0.8999999998e1_dp*t178*t62 &
    3734             :                        *t1067 + 0.3600000000e2_dp*t473*t183*t1168 + 0.1200000000e2_dp* &
    3735             :                        t478*t489*t1172 - 0.3600000000e2_dp*t478*t1176*t237 - 0.1800000000e2_dp &
    3736             :                        *t478*t183*t1093 + 0.8000000000e1_dp*t182*t123* &
    3737           0 :                        t777 - 0.1200000000e2_dp*t61*t859*t225
    3738             :                t1191 = (t1097*t65) - 0.4938271608e0_dp*t192*t1101 - 0.6172839508e-1_dp &
    3739             :                        *t503*t874 - 0.1111111112e0_dp*t1106*t275 + (t1109 &
    3740             :                                                                     *t65) + (2*t1111*t65) + 0.3703703706e0_dp*t508*t512 + &
    3741             :                        0.7407407410e-1_dp*t503*t878 + 0.7407407410e-1_dp*t192*t1119 - 0.5555555558e-1_dp &
    3742             :                        *t192*t1122 - 0.2222222224e0_dp*t192*t1126 - 0.1111111112e0_dp &
    3743             :                        *t1129*t196 - 0.5555555558e-1_dp*t503*t882 - 0.1111111112e0_dp &
    3744             :                        *t516*t1134 - 0.2222222224e0_dp*t1137*t517 + (t1189 &
    3745           0 :                                                                      *t65)
    3746           0 :                t1192 = t67*t22
    3747           0 :                t1193 = t66*t1192
    3748           0 :                t1194 = t267*t451
    3749           0 :                t1200 = t65*t14
    3750           0 :                t1201 = t22*t187*t1200
    3751           0 :                t1206 = t68*t1189
    3752           0 :                t1207 = t1206*t65
    3753           0 :                t1210 = t58*t1067
    3754           0 :                t1213 = t511*t225
    3755           0 :                t1216 = t864*t172
    3756           0 :                t1221 = t498*t526
    3757           0 :                t1224 = t530*t267
    3758           0 :                t1235 = t199*t864
    3759             :                t1238 = 0.3703703706e0_dp*t1193*t1194 - 0.5555555558e-1_dp*t503*t886 &
    3760             :                        - 0.6172839508e-1_dp*t192*t1201 - 0.5555555558e-1_dp*t1129*t200 &
    3761             :                        - 0.5555555558e-1_dp*t192*t1207 - 0.5555555558e-1_dp*t1210*t71 &
    3762             :                        + 0.3703703706e0_dp*t192*t1213 - 0.1111111112e0_dp*t516*t1216 &
    3763             :                        - 0.1111111112e0_dp*t508*t534 + 0.7407407410e-1_dp*t516*t1221 - &
    3764             :                        0.1111111112e0_dp*t192*t1224 + 0.7407407410e-1_dp*t508*t527 + 0.7407407410e-1_dp &
    3765             :                        *t1106*t271 - 0.1111111112e0_dp*t508*t531 - 0.2222222224e0_dp &
    3766           0 :                        *t508*t520 - 0.5555555558e-1_dp*t192*t1235
    3767           0 :                t1239 = t1191 + t1238
    3768           0 :                t1246 = t428*t444
    3769           0 :                t1247 = t74*t140
    3770           0 :                t1254 = t27*t889
    3771           0 :                t1264 = t27*t537
    3772           0 :                t1268 = t341*t74
    3773           0 :                t1275 = t56*t889
    3774           0 :                t1283 = -t851 + t855 + 0.9000000000e1_dp*t857 + t862
    3775           0 :                t1284 = t1283*t149
    3776             :                t1288 = -0.1111111111e0_dp*t165*t171*t1085 - 0.8888888890e0_dp*t170 &
    3777             :                        *t1089*t451 + 0.1666666667e0_dp*t445*t446*t1093 + 0.3333333334e0_dp &
    3778             :                        *t55*t57*t1239 - 0.8333333335e-1_dp*t429*t462*t754 &
    3779             :                        + 0.5555555556e-1_dp*t1246*t1247*t833 + (4*t147*t393* &
    3780             :                                                                 t424) + 0.3333333334e0_dp*t170*t1254*t172 - 0.1111111111e0_dp*t165 &
    3781             :                        *t466*t833 + 0.3333333334e0_dp*t165*t437*t379 - 0.2222222222e0_dp &
    3782             :                        *t170*t1264*t17 + 0.1037037037e1_dp*t170*t1268*t1100 &
    3783             :                        + 0.1666666667e0_dp*t165*t166*t1067 + 0.1666666667e0_dp*t165* &
    3784             :                        t1275*t140 - 0.8333333335e-1_dp*t1246*t446*t1168 + (2* &
    3785           0 :                                                                            t147*t1284*t160)
    3786           0 :                t1292 = t278*rho
    3787           0 :                t1300 = 0.1e1_dp/t41/t470
    3788           0 :                t1301 = t47*t1300
    3789           0 :                t1302 = t1301*t44
    3790           0 :                t1309 = t19*t379
    3791           0 :                t1316 = t194*t140
    3792           0 :                t1320 = t68*t379
    3793           0 :                t1333 = t68*t25
    3794           0 :                t1340 = t22*rho
    3795             :                t1347 = -0.5625000000e1_dp*t1302*t401*t754 + 0.1500000000e1_dp*t400 &
    3796             :                        *t406*t833 + 0.4500000000e1_dp*t400*t1309*t237 + 0.2250000000e1_dp &
    3797             :                        *t400*t401*t804 + 0.3333333333e0_dp*t405*t1316*t14 &
    3798             :                        - 0.1000000000e1_dp*t405*t1320*t17 - 0.1500000000e1_dp*t151*t50 &
    3799             :                        *t1067 - 0.2250000000e1_dp*t400*t156*t1168 - 0.2000000000e1_dp &
    3800             :                        *t405*t417*t1172 + 0.3000000000e1_dp*t405*t1333*t237 + 0.1500000000e1_dp &
    3801             :                        *t405*t156*t1093 - 0.3333333333e1_dp*t155*t1340 &
    3802           0 :                        *t777 + 0.4000000000e1_dp*t49*t822*t225
    3803           0 :                t1348 = t149*t1347
    3804           0 :                t1360 = t140*t14
    3805           0 :                t1367 = omega*t398
    3806           0 :                t1368 = t1367*t45
    3807           0 :                t1372 = t45*t114
    3808           0 :                t1373 = t164*t1372
    3809           0 :                t1377 = t114*t203
    3810           0 :                t1387 = t392**2
    3811           0 :                t1388 = t1387*t149
    3812           0 :                t1392 = t56*t537
    3813             :                t1396 = 0.6666666668e0_dp*t170*t455*t25 + 0.3333333334e0_dp*t445 &
    3814             :                        *t1292*t413 + 0.1666666667e0_dp*t165*t462*t804 + (2*t147 &
    3815             :                                                                    *t1348) - 0.1111111111e0_dp*t165*t455*t433 - 0.8333333335e-1_dp &
    3816             :                        *t429*t166*t918 + 0.3333333334e0_dp*t165*t171*t413 + 0.7407407409e-1_dp &
    3817             :                        *t165*t450*t1360 - 0.1666666667e0_dp*t429*t437 &
    3818             :                        *t290 + 0.1250000000e0_dp*t1368*t166*t907 - 0.4444444445e0_dp*t1373 &
    3819             :                        *t446*t1172 + 0.1481481481e0_dp*t170*t1377*t14 - 0.8888888890e0_dp &
    3820             :                        *t170*t450*t225 - 0.1666666667e0_dp*t429*t166*t914 &
    3821             :                        + (2*t147*t1388*t160) + 0.3333333334e0_dp*t165*t1392 &
    3822           0 :                        *t237
    3823           0 :                t1397 = t1288 + t1396
    3824             :                t1401 = -0.3333333336e0_dp*t165*t897*t237 - 0.6666666672e0_dp*t55 &
    3825             :                        *t295 - 0.6666666672e0_dp*t55*t380 + 0.8333333340e-1_dp*t906*t84 &
    3826             :                        *t907 - 0.3333333336e0_dp*t289*t294*t290 - 0.3333333336e0_dp* &
    3827             :                        t289*t84*t914 - 0.1666666668e0_dp*t289*t84*t918 - 0.3333333336e0_dp &
    3828             :                        *t83*t923 - 0.6666666672e0_dp*t83*t926 - 0.3333333336e0_dp &
    3829             :                        *t83*t1068 - 0.4444444448e0_dp*t383*t1071 - 0.6666666672e0_dp* &
    3830             :                        t55*t387 - 0.1666666668e0_dp*t289*t1076 - 0.6666666672e0_dp*t83 &
    3831             :                        *t1079 - 0.3333333336e0_dp*t83*t1082 - 0.2222222224e0_dp*t144*t46 &
    3832           0 :                        *t1397
    3833             :                e_rho_rho_spin(ii) = e_rho_rho_spin(ii) + (-0.1333333334e1_dp*t747*t84*t237 - 0.8888888896e0_dp*t214 &
    3834             :                                                           *t283 - 0.3333333336e0_dp*t753*t46*t78*t754 - 0.1333333334e1_dp &
    3835             :                                                           *t217*t46*t282*t237 - 0.6666666672e0_dp*t217*t46*t78* &
    3836           0 :                                                           t804 - 0.4444444448e0_dp*t43*t894 + t8*t1401)*sx
    3837           0 :                t1406 = 0.6666666672e0_dp*t747*t84*t561
    3838           0 :                t1408 = 0.4444444448e0_dp*t214*t590
    3839           0 :                t1409 = t4*t164
    3840           0 :                t1410 = t237*t561
    3841           0 :                t1411 = t84*t1410
    3842           0 :                t1413 = 0.3333333336e0_dp*t1409*t1411
    3843           0 :                t1417 = 0.6666666672e0_dp*t217*t46*t589*t237
    3844           0 :                t1420 = t316*t557
    3845           0 :                t1425 = t233*t557
    3846           0 :                t1426 = t327*t1425
    3847           0 :                t1429 = beta*t225
    3848           0 :                t1436 = t1033*t940
    3849           0 :                t1438 = 0.1e1_dp/t19/t1436
    3850           0 :                t1439 = 0.1e1_dp/t787/t16*t1438
    3851           0 :                t1440 = t1439*t371
    3852             :                t1443 = -0.8000000000e1_dp*t1429*t115 - 0.2400000000e2_dp*t24*t230 &
    3853           0 :                        + 0.8000000000e1_dp*t366*t1440
    3854           0 :                t1444 = t105*t1443
    3855             :                t1447 = -0.1066666667e2_dp*t24*t221 + 0.5333333333e1_dp*t321*t1420 &
    3856             :                        - 0.40e1_dp*t112*t234 + 0.40e1_dp*t102*t1426 - 0.20e1_dp*t102* &
    3857           0 :                        t1444
    3858           0 :                t1451 = 0.6666666672e0_dp*t217*t46*t78*t1447
    3859           0 :                t1455 = 0.6666666672e0_dp*t217*t46*t282*t561
    3860           0 :                t1459 = t19*t237
    3861           0 :                t1466 = t68*t17
    3862             :                t1470 = 0.2250000000e1_dp*t400*t1459*t561 - 0.1500000000e1_dp*t151 &
    3863           0 :                        *t50*t1447 - 0.5000000000e0_dp*t405*t1466*t561
    3864           0 :                t1471 = t149*t1470
    3865           0 :                t1476 = 0.8333333335e-1_dp*t429*t166*t1410
    3866           0 :                t1479 = 0.1666666667e0_dp*t165*t679*t237
    3867           0 :                t1482 = 0.1666666667e0_dp*t165*t166*t1447
    3868           0 :                t1483 = t17*t561
    3869           0 :                t1485 = t165*t171*t1483
    3870           0 :                t1489 = 0.1111111111e0_dp*t170*t689*t17
    3871           0 :                t1492 = 0.1666666667e0_dp*t165*t437*t561
    3872           0 :                t1493 = t20*t237
    3873           0 :                t1496 = 0.1800000000e2_dp*t473*t1493*t561
    3874           0 :                t1498 = t178*t62*t1447
    3875           0 :                t1500 = t56*t17
    3876           0 :                t1502 = t478*t1500*t561
    3877           0 :                t1504 = -t1496 + 0.8999999998e1_dp*t1498 + 0.5999999999e1_dp*t1502
    3878           0 :                t1505 = t1504*t65
    3879           0 :                t1506 = t266*t59
    3880           0 :                t1507 = t1506*t177
    3881           0 :                t1509 = 0.8999999998e1_dp*t1507*t710
    3882           0 :                t1510 = t58*t1447
    3883           0 :                t1512 = 0.5555555558e-1_dp*t1510*t71
    3884           0 :                t1513 = t237*t177
    3885           0 :                t1515 = 0.5000000001e0_dp*t1513*t709
    3886           0 :                t1517 = 0.3703703705e-1_dp*t719*t271
    3887           0 :                t1518 = 0.1e1_dp/rho
    3888           0 :                t1519 = t60*t1518
    3889           0 :                t1523 = 0.5555555558e-1_dp*t719*t275
    3890           0 :                t1525 = t68*t1504*t65
    3891           0 :                t1528 = t60*t266
    3892           0 :                t1530 = 0.5000000001e0_dp*t1528*t709
    3893             :                t1531 = t1505 + t1509 - t1512 - t1515 + t1517 + 0.3333333334e0_dp*t1519 &
    3894           0 :                        *t709 - t1523 - 0.5555555558e-1_dp*t192*t1525 - t1530
    3895             :                t1535 = 0.1800000000e2_dp*t658*t575*t250 + (2*t147*t1471) &
    3896             :                        - t1476 + t1479 + t1482 - 0.5555555555e-1_dp*t1485 - t1489 + t1492 &
    3897           0 :                        + 0.3333333334e0_dp*t55*t57*t1531
    3898           0 :                t1536 = t46*t1535
    3899           0 :                t1541 = 0.1666666668e0_dp*t165*t897*t561
    3900           0 :                t1543 = 0.3333333336e0_dp*t55*t598
    3901           0 :                t1545 = 0.3333333336e0_dp*t55*t650
    3902           0 :                t1546 = t905*t46
    3903           0 :                t1547 = t897*t1410
    3904           0 :                t1549 = 0.8333333340e-1_dp*t1546*t1547
    3905           0 :                t1552 = 0.1666666668e0_dp*t289*t597*t290
    3906           0 :                t1553 = t649*t237
    3907           0 :                t1556 = 0.1666666668e0_dp*t289*t84*t1553
    3908           0 :                t1557 = t140*t1447
    3909           0 :                t1560 = 0.1666666668e0_dp*t289*t84*t1557
    3910           0 :                t1563 = 0.1666666668e0_dp*t289*t294*t593
    3911           0 :                t1564 = t45*t1535
    3912           0 :                t1565 = t1564*t140
    3913           0 :                t1568 = t294*t649
    3914           0 :                t1570 = 0.3333333336e0_dp*t83*t1568
    3915           0 :                t1571 = t379*t561
    3916           0 :                t1574 = 0.1666666668e0_dp*t289*t84*t1571
    3917           0 :                t1575 = t597*t379
    3918           0 :                t1577 = 0.3333333336e0_dp*t83*t1575
    3919           0 :                t1579 = 0.1173333333e3_dp*t24*t299
    3920           0 :                t1581 = 0.5866666667e2_dp*t93*t1420
    3921           0 :                t1582 = t24*t86
    3922           0 :                t1584 = 0.320e2_dp*t1582*t234
    3923           0 :                t1586 = 0.320e2_dp*t302*t1426
    3924           0 :                t1588 = 0.160e2_dp*t302*t1444
    3925           0 :                t1589 = t24*t306
    3926           0 :                t1591 = 0.1173333333e3_dp*t1589*t313
    3927           0 :                t1592 = t949*t608
    3928           0 :                t1594 = 0.5866666667e2_dp*t307*t1592
    3929           0 :                t1596 = 0.320e2_dp*t605*t318
    3930           0 :                t1597 = t7*t298
    3931           0 :                t1598 = t326*rho
    3932           0 :                t1599 = t1598*t1425
    3933           0 :                t1601 = 0.320e2_dp*t1597*t1599
    3934           0 :                t1602 = rho*t1443
    3935           0 :                t1603 = t316*t1602
    3936           0 :                t1605 = 0.160e2_dp*t93*t1603
    3937           0 :                t1607 = 0.1066666667e2_dp*t339*t322
    3938           0 :                t1608 = t953*t614
    3939           0 :                t1610 = 0.1066666667e2_dp*t321*t1608
    3940           0 :                t1611 = t316*t645
    3941           0 :                t1613 = 0.5333333333e1_dp*t321*t1611
    3942           0 :                t1615 = 0.80e1_dp*t112*t329
    3943           0 :                t1616 = t7*t23
    3944           0 :                t1617 = t973*t136
    3945           0 :                t1618 = t1617*t1425
    3946           0 :                t1620 = 0.120e2_dp*t1616*t1618
    3947           0 :                t1621 = t645*t233
    3948           0 :                t1622 = t327*t1621
    3949           0 :                t1624 = 0.40e1_dp*t102*t1622
    3950           0 :                t1625 = t136*t1443
    3951           0 :                t1626 = t327*t1625
    3952           0 :                t1628 = 0.40e1_dp*t102*t1626
    3953           0 :                t1630 = 0.40e1_dp*t112*t376
    3954           0 :                t1631 = t375*t557
    3955           0 :                t1632 = t327*t1631
    3956           0 :                t1634 = 0.40e1_dp*t102*t1632
    3957           0 :                t1636 = 0.5600000000e2_dp*t624*t115
    3958           0 :                t1638 = 0.1200000000e3_dp*t24*t336
    3959           0 :                t1640 = 0.1e1_dp/t787/t9
    3960           0 :                t1642 = t1640*t1438*t371
    3961           0 :                t1644 = 0.3200000000e2_dp*t366*t1642
    3962           0 :                t1645 = beta*t219
    3963           0 :                t1647 = 0.5600000000e2_dp*t1645*t343
    3964           0 :                t1649 = 0.1200000000e3_dp*t1589*t347
    3965           0 :                t1652 = t795*t371*rho
    3966           0 :                t1654 = 0.3200000000e2_dp*t366*t995*t1652
    3967           0 :                t1656 = 0.8000000000e1_dp*t1429*t352
    3968           0 :                t1658 = t114*t635*t132
    3969           0 :                t1660 = 0.8000000000e1_dp*t350*t1658
    3970           0 :                t1662 = 0.3200000000e2_dp*t7*t372
    3971           0 :                t1664 = 0.60e1_dp*t550*t362
    3972           0 :                t1667 = 0.28e2_dp/0.3e1_dp*t332 - 0.28e2_dp/0.3e1_dp*t987*rho
    3973           0 :                t1669 = t27*t1667*t132
    3974           0 :                t1671 = 0.60e1_dp*t119*t1669
    3975           0 :                t1675 = 0.60e1_dp*t7*t640*t360*t371
    3976           0 :                t1677 = t368*t635*t371
    3977           0 :                t1679 = 0.8000000000e1_dp*t366*t1677
    3978           0 :                t1680 = t786*t368
    3979           0 :                t1681 = t1059*t23
    3980             :                t1684 = t1636 + t1638 - t1644 - t1647 - t1649 + t1654 - t1656 - t1660 &
    3981             :                        + t1662 + t1664 + t1671 - t1675 + t1679 - 0.2400000000e2_dp*t1680 &
    3982           0 :                        *t1681
    3983           0 :                t1685 = t105*t1684
    3984             :                t1688 = t1579 - t1581 + t1584 - t1586 + t1588 - t1591 + t1594 - t1596 &
    3985             :                        + t1601 - t1605 + t1607 - t1610 + t1613 + t1615 - t1620 + t1624 &
    3986           0 :                        + t1628 - t1630 + t1634 - 0.20e1_dp*t102*t1685
    3987           0 :                t1689 = t84*t1688
    3988           0 :                t1693 = 0.3333333336e0_dp*t55*t653
    3989           0 :                t1694 = t45*t739
    3990           0 :                t1696 = 0.2222222224e0_dp*t383*t1694
    3991           0 :                t1699 = 0.1666666668e0_dp*t289*t384*t1410
    3992           0 :                t1700 = t1694*t237
    3993           0 :                t1702 = 0.3333333336e0_dp*t83*t1700
    3994           0 :                t1703 = t384*t1447
    3995           0 :                t1705 = 0.3333333336e0_dp*t83*t1703
    3996           0 :                t1706 = t1071*t561
    3997           0 :                t1708 = 0.3333333336e0_dp*t83*t1706
    3998           0 :                t1709 = t187*t1504
    3999           0 :                t1712 = t266*t561*t65
    4000           0 :                t1714 = 0.5000000001e0_dp*t732*t1712
    4001           0 :                t1715 = t713*t67
    4002           0 :                t1717 = 0.3703703705e-1_dp*t1715*t271
    4003           0 :                t1718 = t705*t266
    4004           0 :                t1719 = t1718*t65
    4005           0 :                t1720 = t140*t266
    4006           0 :                t1722 = t177*t561*t65
    4007           0 :                t1724 = 0.5000000001e0_dp*t1720*t1722
    4008           0 :                t1726 = t194*t705*t526
    4009           0 :                t1728 = 0.3703703705e-1_dp*t192*t1726
    4010           0 :                t1730 = 0.1111111112e0_dp*t719*t520
    4011           0 :                t1731 = t58*t1688
    4012           0 :                t1735 = 0.3703703705e-1_dp*t719*t527
    4013           0 :                t1737 = t722*t561*t65
    4014           0 :                t1740 = t496*t59
    4015           0 :                t1741 = t1740*t177
    4016           0 :                t1743 = 0.8999999998e1_dp*t1741*t710
    4017           0 :                t1745 = t187*t561*t65
    4018           0 :                t1748 = t140*t1518
    4019           0 :                t1752 = 0.1851851853e0_dp*t719*t512
    4020           0 :                t1754 = 0.5555555558e-1_dp*t1715*t275
    4021           0 :                t1755 = t1510*t67
    4022           0 :                t1757 = 0.1111111112e0_dp*t1755*t196
    4023             :                t1758 = t1709*t65 - t1714 + t1717 + t1719 - t1724 + t1728 - t1730 &
    4024             :                        - 0.5555555558e-1_dp*t1731*t71 + t1735 + 0.666666666e0_dp*t1519* &
    4025             :                        t1737 + t1743 + 0.3333333334e0_dp*t1519*t1745 + 0.3333333334e0_dp* &
    4026           0 :                        t1748*t1722 + t1752 - t1754 - t1757
    4027           0 :                t1760 = 0.5555555558e-1_dp*t719*t534
    4028           0 :                t1762 = 0.5555555558e-1_dp*t1755*t200
    4029           0 :                t1763 = t237*t722
    4030           0 :                t1765 = 0.1000000001e1_dp*t1763*t1722
    4031           0 :                t1766 = t237*t187
    4032           0 :                t1768 = 0.5000000001e0_dp*t1766*t1722
    4033           0 :                t1769 = t199*t1505
    4034           0 :                t1773 = 0.5555555558e-1_dp*t719*t531
    4035           0 :                t1774 = t60*t496
    4036           0 :                t1776 = 0.5000000001e0_dp*t1774*t709
    4037           0 :                t1777 = t379*t177
    4038           0 :                t1779 = 0.5000000001e0_dp*t1777*t709
    4039           0 :                t1782 = t728*t267
    4040           0 :                t1784 = 0.5555555558e-1_dp*t192*t1782
    4041           0 :                t1785 = t579*t515
    4042           0 :                t1787 = 0.1111111112e0_dp*t1785*t517
    4043           0 :                t1789 = 0.5555555558e-1_dp*t508*t729
    4044           0 :                t1790 = t1505*t172
    4045           0 :                t1794 = 0.1000000001e1_dp*t723*t1712
    4046           0 :                t1795 = t498*t178
    4047           0 :                t1797 = 0.8999999998e1_dp*t1795*t710
    4048           0 :                t1800 = 0.5400000000e2_dp*t1143*t474*t1410
    4049           0 :                t1801 = t20*t649
    4050           0 :                t1804 = 0.1800000000e2_dp*t473*t1801*t237
    4051           0 :                t1807 = 0.1800000000e2_dp*t473*t474*t1447
    4052           0 :                t1810 = 0.1200000000e2_dp*t473*t479*t1483
    4053           0 :                t1811 = t56*t649
    4054           0 :                t1814 = 0.5999999999e1_dp*t478*t1811*t17
    4055           0 :                t1817 = 0.1800000000e2_dp*t473*t1150*t561
    4056           0 :                t1821 = t472*t262
    4057           0 :                t1822 = t172*t1410
    4058           0 :                t1824 = 0.3600000000e2_dp*t1821*t1822
    4059           0 :                t1825 = t25*t1447
    4060           0 :                t1828 = 0.1800000000e2_dp*t478*t183*t1825
    4061           0 :                t1829 = t225*t561
    4062           0 :                t1832 = 0.6000000000e1_dp*t478*t489*t1829
    4063           0 :                t1835 = 0.1800000000e2_dp*t478*t1176*t561
    4064             :                t1836 = t1800 - t1804 - t1807 - t1810 + t1814 - t1817 + 0.8999999998e1_dp &
    4065           0 :                        *t178*t62*t1688 + t1824 - t1828 + t1832 - t1835
    4066           0 :                t1837 = t68*t1836
    4067           0 :                t1838 = t1837*t65
    4068             :                t1842 = -t1760 - t1762 - t1765 - t1768 - 0.5555555558e-1_dp*t192*t1769 &
    4069             :                        - t1773 - t1776 - t1779 - 0.5555555558e-1_dp*t503*t1525 - t1784 &
    4070             :                        - t1787 - t1789 - 0.1111111112e0_dp*t516*t1790 - t1794 + t1797 &
    4071           0 :                        - 0.5555555558e-1_dp*t192*t1838 + t1836*t65
    4072           0 :                t1843 = t1758 + t1842
    4073           0 :                t1849 = 0.8333333335e-1_dp*t429*t166*t1571
    4074           0 :                t1852 = 0.8333333335e-1_dp*t429*t679*t290
    4075           0 :                t1854 = t165*t466*t1483
    4076           0 :                t1858 = 0.1666666667e0_dp*t445*t446*t1825
    4077           0 :                t1861 = 0.1800000000e2_dp*t658*t575*t425
    4078           0 :                t1864 = 0.1666666667e0_dp*t445*t1292*t668
    4079           0 :                t1865 = t413*t561
    4080           0 :                t1868 = 0.8333333335e-1_dp*t1246*t446*t1865
    4081           0 :                t1871 = 2*t147*t393*t672
    4082           0 :                t1874 = 0.3333333334e0_dp*t170*t689*t25
    4083           0 :                t1875 = t114*t585
    4084           0 :                t1878 = 0.4444444445e0_dp*t170*t1875*t451
    4085           0 :                t1881 = 0.1666666667e0_dp*t165*t437*t649
    4086           0 :                t1884 = -t1496 + 0.9000000000e1_dp*t1498 + 0.6000000000e1_dp*t1502
    4087           0 :                t1885 = t1884*t149
    4088           0 :                t1886 = t1885*t160
    4089           0 :                t1891 = 0.5625000000e1_dp*t1302*t401*t1410
    4090           0 :                t1892 = t19*t649
    4091           0 :                t1895 = 0.2250000000e1_dp*t400*t1892*t237
    4092           0 :                t1898 = 0.2250000000e1_dp*t400*t401*t1447
    4093           0 :                t1901 = 0.7500000000e0_dp*t400*t406*t1483
    4094           0 :                t1902 = t68*t649
    4095           0 :                t1905 = 0.5000000000e0_dp*t405*t1902*t17
    4096           0 :                t1908 = 0.2250000000e1_dp*t400*t1309*t561
    4097           0 :                t1912 = t399*t245
    4098           0 :                t1914 = 0.2250000000e1_dp*t1912*t1822
    4099           0 :                t1917 = 0.1500000000e1_dp*t405*t156*t1825
    4100           0 :                t1920 = 0.1000000000e1_dp*t405*t417*t1829
    4101           0 :                t1923 = 0.1500000000e1_dp*t405*t1333*t561
    4102             :                t1924 = -t1891 + t1895 + t1898 + t1901 - t1905 + t1908 - 0.1500000000e1_dp &
    4103           0 :                        *t151*t50*t1688 - t1914 + t1917 - t1920 + t1923
    4104           0 :                t1925 = t149*t1924
    4105           0 :                t1928 = t56*t1531
    4106           0 :                t1932 = t27*t1531
    4107           0 :                t1938 = 0.1666666667e0_dp*t165*t462*t1447
    4108             :                t1939 = 0.3333333334e0_dp*t55*t57*t1843 - t1849 - t1852 - 0.5555555555e-1_dp &
    4109             :                        *t1854 + t1858 + t1861 + t1864 - t1868 + t1871 + t1874 &
    4110             :                        - t1878 + t1881 + (2*t147*t1886) + (2*t147*t1925) &
    4111             :                        + 0.1666666667e0_dp*t165*t1928*t140 + 0.3333333334e0_dp*t170*t1932 &
    4112           0 :                        *t172 + t1938
    4113           0 :                t1940 = t27*t735
    4114           0 :                t1943 = 0.1111111111e0_dp*t170*t1940*t17
    4115           0 :                t1946 = 0.1666666667e0_dp*t165*t1392*t561
    4116           0 :                t1952 = 0.5555555557e-1_dp*t165*t689*t433
    4117           0 :                t1954 = t1373*t446*t1829
    4118           0 :                t1958 = 0.8333333335e-1_dp*t429*t166*t1553
    4119           0 :                t1961 = 0.1666666667e0_dp*t165*t679*t379
    4120           0 :                t1962 = t585*rho
    4121           0 :                t1965 = 0.1666666667e0_dp*t445*t1962*t413
    4122           0 :                t1966 = t56*t735
    4123           0 :                t1969 = 0.1666666667e0_dp*t165*t1966*t237
    4124           0 :                t1971 = t657*t392*t59
    4125           0 :                t1972 = t177*t20
    4126           0 :                t1973 = t561*t149
    4127           0 :                t1974 = t1973*t160
    4128           0 :                t1975 = t1972*t1974
    4129           0 :                t1977 = 0.1800000000e2_dp*t1971*t1975
    4130           0 :                t1980 = 0.2777777778e-1_dp*t1246*t1247*t1483
    4131           0 :                t1981 = t1367*t57
    4132           0 :                t1984 = 0.1250000000e0_dp*t1981*t1247*t1410
    4133           0 :                t1987 = 0.8333333335e-1_dp*t429*t437*t593
    4134           0 :                t1988 = t649*t17
    4135           0 :                t1991 = 0.5555555557e-1_dp*t165*t171*t1988
    4136           0 :                t1994 = 0.8333333335e-1_dp*t429*t166*t1557
    4137           0 :                t1997 = 0.1666666667e0_dp*t165*t171*t668
    4138           0 :                t2000 = 0.8333333335e-1_dp*t429*t462*t1410
    4139             :                t2001 = -t1943 + t1946 + 0.1666666667e0_dp*t165*t166*t1688 - t1952 &
    4140             :                        - 0.2222222222e0_dp*t1954 - t1958 + t1961 + t1965 + t1969 + t1977 &
    4141           0 :                        + t1980 + t1984 - t1987 - t1991 - t1994 + t1997 - t2000
    4142           0 :                t2002 = t1939 + t2001
    4143             :                t2006 = -t1541 - t1543 - t1545 + t1549 - t1552 - t1556 - t1560 - t1563 &
    4144             :                        - 0.3333333336e0_dp*t83*t1565 - t1570 - t1574 - t1577 - 0.3333333336e0_dp &
    4145             :                        *t83*t1689 - t1693 - t1696 - t1699 - t1702 - t1705 - &
    4146           0 :                        t1708 - 0.2222222224e0_dp*t144*t46*t2002
    4147             :                e_ndrho_rho_spin(ii) = e_ndrho_rho_spin(ii) + (-t1406 - t1408 - t1413 - t1417 - t1451 - t1455 - 0.4444444448e0_dp &
    4148           0 :                                                               *t43*t1536 + t8*t2006)*sx
    4149           0 :                t2009 = t566*t393
    4150           0 :                t2013 = t566*t149*t47
    4151           0 :                t2014 = t398*t19
    4152           0 :                t2018 = t150*t68
    4153           0 :                t2022 = t19*t1447
    4154           0 :                t2027 = t65*t237
    4155           0 :                t2028 = t575*t2027
    4156           0 :                t2031 = t56*t561
    4157           0 :                t2032 = t2031*t526
    4158           0 :                t2035 = t20*t1447
    4159             :                t2042 = -0.1800000000e2_dp*t473*t2028 + 0.5999999999e1_dp*t478*t2032 &
    4160             :                        + 0.8999999998e1_dp*t478*t2035*t65 + t1509 - t1512 + t1517 &
    4161           0 :                        - t1523 + t1515 - 0.5000000001e0_dp*t60*t1447*t65 - t1530
    4162             :                t2046 = -0.3000000000e1_dp*t2009*t569 + 0.4500000000e1_dp*t2013*t2014 &
    4163             :                        *t1410 - 0.1000000000e1_dp*t2013*t2018*t1483 - 0.3000000000e1_dp &
    4164             :                        *t567*t151*t2022 - t1476 - 0.5555555557e-1_dp*t1485 + t1492 &
    4165           0 :                        + t1482 + t1479 - t1489 + 0.3333333334e0_dp*t55*t57*t2042
    4166           0 :                t2050 = t45*t2046
    4167           0 :                t2054 = t786*t640
    4168             :                t2057 = t1636 + t1638 - t1644 - t1647 - t1649 + t1654 - t1656 + t1664 &
    4169           0 :                        + t1662 - t1660 + t1671 + t1679 - t1675 - 0.240e2_dp*t2054*t1060
    4170           0 :                t2058 = t105*t2057
    4171             :                t2061 = t1579 + t1584 - t1581 - t1586 + t1588 - t1591 - t1596 + t1594 &
    4172             :                        + t1601 - t1605 + t1607 + t1615 - t1630 - t1610 - t1620 + t1634 &
    4173           0 :                        + t1628 + t1613 + t1624 - 0.20e1_dp*t102*t2058
    4174             :                t2073 = -t1891 + t1901 + t1908 + t1898 + t1895 - t1905 - 0.1500000000e1_dp &
    4175           0 :                        *t151*t50*t2061 - t1914 - t1920 + t1923 + t1917
    4176           0 :                t2074 = t149*t2073
    4177           0 :                t2077 = t161*t17
    4178           0 :                t2081 = t657*t472
    4179           0 :                t2082 = t161*t237
    4180             :                t2086 = -t1849 - t1852 - 0.5555555557e-1_dp*t1854 + t1858 + t1861 + &
    4181             :                        t1864 - t1868 + t1871 + t1874 + 0.3333333334e0_dp*t170*t27*t2042 &
    4182             :                        *t172 - t1878 + (2*t147*t2074) + t1881 + t1938 - t1943 &
    4183             :                        + 0.1200000000e2_dp*t658*t2031*t2077 + t1946 - 0.3600000000e2_dp* &
    4184           0 :                        t2081*t575*t2082
    4185           0 :                t2088 = t56*t2042
    4186           0 :                t2095 = t1447*t65
    4187           0 :                t2098 = t140*t471
    4188           0 :                t2099 = t709*t237
    4189           0 :                t2104 = t62*t2095
    4190             :                t2107 = -t1714 + t1717 + t1719 - t1724 + t1728 - 0.5000000001e0_dp*t716 &
    4191             :                        *t2095 + 0.1000000000e1_dp*t2098*t2099 - 0.1000000001e1_dp*t723 &
    4192             :                        *t2095 - t1730 + t1735 + t1743 + 0.8999999998e1_dp*t708*t2104 &
    4193           0 :                        + t1752 - t1754 - t1757 - t1760
    4194           0 :                t2113 = t177*pi
    4195           0 :                t2114 = t707*t2113
    4196           0 :                t2117 = t471*pi
    4197           0 :                t2118 = t707*t2117
    4198             :                t2124 = t1800 - t1810 - t1817 - t1807 - t1804 + t1814 + 0.8999999998e1_dp &
    4199           0 :                        *t178*t62*t2061 + t1824 + t1832 - t1835 - t1828
    4200           0 :                t2126 = t68*t2124*t65
    4201             :                t2130 = -0.5000000001e0_dp*t732*t2095 - 0.5555555558e-1_dp*t58*t2061 &
    4202             :                        *t71 - t1762 + t1765 + t1768 + 0.5999999999e1_dp*t2114*t2032 &
    4203             :                        - t1773 - t1776 - 0.1800000000e2_dp*t2118*t2028 - 0.5555555558e-1_dp &
    4204             :                        *t192*t2126 - t1779 - t1784 - t1787 - t1789 - t1794 + t1797 + &
    4205           0 :                        t2124*t65
    4206           0 :                t2131 = t2107 + t2130
    4207             :                t2138 = -t1952 - 0.2222222223e0_dp*t1954 - t1958 + t1961 + t1965 + t1969 &
    4208             :                        + t1977 + t1980 + 0.1666666667e0_dp*t165*t2088*t140 + 0.1800000000e2_dp &
    4209             :                        *t658*t2035*t161 + 0.3333333334e0_dp*t55*t57*t2131 &
    4210             :                        + t1984 + 0.1666666667e0_dp*t165*t166*t2061 - t1987 - t1991 &
    4211           0 :                        - t1994 + t1997 - t2000
    4212           0 :                t2139 = t2086 + t2138
    4213             :                t2143 = -t1541 + t1549 - t1563 - t1574 - t1560 - t1543 - t1552 - 0.3333333336e0_dp &
    4214             :                        *t83*t2050*t140 - t1577 - t1545 - t1556 - t1570 &
    4215             :                        - 0.3333333336e0_dp*t83*t84*t2061 - t1693 - t1699 - t1708 - t1705 &
    4216           0 :                        - t1696 - t1702 - 0.2222222224e0_dp*t144*t46*t2139
    4217             :                e_ndrho_ndrho_spin(ii) = e_ndrho_ndrho_spin(ii) + (-t1406 - t1413 - t1455 - t1451 - t1408 - t1417 - &
    4218           0 :                                                                   0.4444444448e0_dp*t43*t46*t2046 + t8*t2143)*sx
    4219           0 :                t2147 = lambda*t48*omega
    4220           0 :                t2160 = t754*t237
    4221           0 :                t2169 = t237*t804
    4222           0 :                t2182 = 0.1e1_dp/t787/lambda
    4223           0 :                t2183 = t2182*t944
    4224           0 :                t2187 = t949*t233
    4225           0 :                t2190 = t953*t772
    4226           0 :                t2193 = t316*t800
    4227           0 :                t2196 = t772*t233
    4228           0 :                t2197 = t974*t2196
    4229           0 :                t2200 = t233*t800
    4230           0 :                t2201 = t327*t2200
    4231           0 :                t2204 = t10*t106
    4232           0 :                t2205 = 0.1e1_dp/t2204
    4233           0 :                t2220 = beta*t785*t6
    4234             :                t2226 = -0.6222222223e2_dp*t24*t2205*t1002*t31 - 0.2115555556e3_dp &
    4235             :                        *t7*t2183*t132 + 0.1315555556e3_dp*t786/t787/t85*t1019 &
    4236           0 :                        *t371 - 0.4266666668e2_dp*t2220/t1014/t94*t1058
    4237           0 :                t2227 = t105*t2226
    4238             :                t2230 = -0.9125925923e2_dp*t7*t2183*t36 - 0.5866666667e2_dp*t962 &
    4239             :                        *t2187 - 0.3200000001e2_dp*t321*t2190 + 0.1600000000e2_dp*t321* &
    4240             :                        t2193 - 0.120e2_dp*t102*t2197 + 0.120e2_dp*t102*t2201 - 0.20e1_dp* &
    4241           0 :                        t102*t2227
    4242           0 :                t2257 = 0.5400000000e2_dp*t1142*t62*t2160
    4243           0 :                t2261 = 0.3600000000e2_dp*t473*t56*t754*t17
    4244           0 :                t2264 = 0.5400000000e2_dp*t473*t1493*t804
    4245           0 :                t2268 = 0.6000000000e1_dp*t478*t27*t237*t14
    4246           0 :                t2272 = 0.1800000000e2_dp*t478*t56*t804*t17
    4247           0 :                t2274 = t178*t62*t2230
    4248           0 :                t2276 = pi*t114
    4249           0 :                t2279 = 0.2666666667e1_dp*t61*t2276*t86
    4250             :                t2280 = t2257 - t2261 - t2264 - t2268 + t2272 + 0.8999999998e1_dp*t2274 &
    4251           0 :                        - t2279
    4252           0 :                t2281 = t2280*t65
    4253           0 :                t2282 = t881*t267
    4254           0 :                t2285 = t865*t266
    4255           0 :                t2287 = t68*t2285*t65
    4256           0 :                t2292 = t863*t266
    4257           0 :                t2295 = t2285*t65
    4258           0 :                t2296 = t58*t2230
    4259           0 :                t2299 = t194*t865
    4260           0 :                t2300 = t2299*t526
    4261           0 :                t2304 = t68*t2280*t65
    4262           0 :                t2307 = t22*t266
    4263           0 :                t2308 = t2307*t1200
    4264           0 :                t2311 = t194*t863
    4265           0 :                t2312 = t2311*t526
    4266           0 :                t2319 = t1099*t86
    4267             :                t2326 = -0.1851851853e0_dp*t508*t874 + t2281 - 0.1666666668e0_dp*t192 &
    4268             :                        *t2282 - 0.5555555558e-1_dp*t192*t2287 - 0.1666666668e0_dp*t508 &
    4269             :                        *t886 + (3*t2292*t65) + t2295 - 0.5555555558e-1_dp*t2296 &
    4270             :                        *t71 + 0.1111111112e0_dp*t192*t2300 - 0.5555555558e-1_dp*t192* &
    4271             :                        t2304 - 0.1851851853e0_dp*t192*t2308 + 0.1111111112e0_dp*t192*t2312 &
    4272             :                        + 0.2222222223e0_dp*t508*t878 - 0.1666666668e0_dp*t508*t882 &
    4273             :                        + 0.1646090535e0_dp*t192*t2319 - 0.1666666668e0_dp*t1129*t275 + &
    4274           0 :                        0.1111111112e0_dp*t1129*t271
    4275           0 :                t2351 = t44*t22
    4276           0 :                t2368 = t237*t14
    4277           0 :                t2378 = t804*t17
    4278           0 :                t2382 = t754*t17
    4279             :                t2392 = (2*t147*t1284*t249) + (2*t147*t1388*t249) &
    4280             :                        - 0.3456790122e0_dp*t170*t1268*t86 + 0.4444444444e0_dp*t170* &
    4281             :                        t1089*t14 + 0.1666666667e0_dp*t165*t166*t2230 + 0.5000000001e0_dp &
    4282             :                        *t165*t437*t804 + 0.3333333334e0_dp*t55*t57*t2326 + 0.2e1_dp &
    4283             :                        *(t147)*t149*(-0.5625000000e1_dp*t1301*t50*t2160 + &
    4284             :                                      0.2250000000e1_dp*t400*t68*t754*t17 + 0.6750000000e1_dp*t400* &
    4285             :                                      t1459*t804 + 0.1000000000e1_dp*t405*t194*t237*t14 - 0.1500000000e1_dp &
    4286             :                                      *t405*t68*t804*t17 - 0.1500000000e1_dp*t151*t50* &
    4287             :                                      t2230 + 0.1111111111e1_dp*t49*t2351*t86) - 0.3333333333e0_dp*t170 &
    4288             :                        *t1254*t17 + (4*t147*t393*t826) + 0.5000000001e0_dp* &
    4289             :                        t165*t1275*t237 + 0.2222222222e0_dp*t165*t450*t2368 - 0.3333333333e0_dp &
    4290             :                        *t165*t455*t833 - 0.2500000000e0_dp*t429*t166*t2169 &
    4291             :                        - 0.1666666667e0_dp*t165*t171*t2378 + 0.8333333333e-1_dp*t429 &
    4292             :                        *t171*t2382 - 0.2500000000e0_dp*t429*t437*t754 + 0.1250000000e0_dp &
    4293           0 :                        *t1368*t166*t2160
    4294           0 :                t2404 = t45*t1397
    4295           0 :                t2418 = t379*t754
    4296           0 :                t2424 = t1067*t237
    4297           0 :                t2437 = t7*t792
    4298           0 :                t2439 = 0.1e1_dp/t20/t1436
    4299           0 :                t2451 = t940*t944
    4300           0 :                t2455 = t97*t973
    4301           0 :                t2468 = t944*t104
    4302           0 :                t2480 = 0.1e1_dp/t19/t942
    4303           0 :                t2492 = t1014*rho
    4304           0 :                t2537 = t764*t1002
    4305           0 :                t2552 = t360*t1058
    4306           0 :                t2565 = t126/t131/t1056/t130
    4307             :                t2569 = -0.8088888890e3_dp*t24*t2182*t2480*t31*rho - 0.1518222222e4_dp &
    4308             :                        *t2437*t2439*t132*rho + 0.6542222223e3_dp*t786/t2204 &
    4309             :                        /t19/t2492*t218*t371*rho - 0.6222222223e2_dp*t24*t2205 &
    4310             :                        *t1002*t126*t132 + 0.5600000000e2_dp*t1024*t341*t360 &
    4311             :                        *t132 + 0.3288888889e3_dp*t366/t790*t126*t371 - 0.2400000000e2_dp &
    4312             :                        *t350*t114*t1044*t132 - 0.1520000000e3_dp*t366*t1034* &
    4313             :                        t360*t371 - 0.3626666667e3_dp*t1054*t1034*t1060 + 0.60e1_dp*t119 &
    4314             :                        *t27*(0.3640e4_dp/0.27e2_dp*t1040*t1002 - 0.3640e4_dp/0.27e2_dp &
    4315             :                              *ndrho*t2182*t2480*rho)*t132 + 0.8088888890e3_dp*t24*t2537 &
    4316             :                        *t31 + 0.1518222222e4_dp*t7*t2451*t132 - 0.6542222223e3_dp* &
    4317             :                        t786*t1012*t1019*t371 + 0.2400000000e2_dp*t366*t368*t1044 &
    4318             :                        *t371 + 0.9600000000e2_dp*t1055*t2552*t220 - 0.1173333333e3_dp &
    4319             :                        *t1055*t1059*t765 + 0.2133333333e3_dp*beta*t785*t365*t368 &
    4320           0 :                        *t2565*t796
    4321             :                t2576 = 0.40e1_dp*t102*t327*t136*t2226 + 0.3519999999e3_dp*t93 &
    4322             :                        *t2190 - 0.1551407408e4_dp*t2437*t2439*t36*rho + 0.960e2_dp* &
    4323             :                        t1597*t1598*t2200 + 0.120e2_dp*t102*t327*t375*t800 + 0.1551407408e4_dp &
    4324             :                        *t7*t2451*t36 - 0.960e2_dp*t93*t2455*rho*t2196 &
    4325             :                        + 0.120e2_dp*t102*t327*t1063*t233 + 0.1600000000e2_dp*t321 &
    4326             :                        *t316*t1063 + 0.9125925923e2_dp*t7*t2182*t2468*t136 + 0.1760000000e3_dp &
    4327             :                        *t307*t949*t958 - 0.360e2_dp*t1616*t1617*t2200 &
    4328           0 :                        - 0.20e1_dp*t102*t105*t2569 - 0.6400000001e2_dp*t321*t953*t979
    4329           0 :                t2585 = 0.1e1_dp/t972/t35
    4330           0 :                t2611 = t311*t326
    4331             :                t2621 = -0.3200000001e2_dp*t321*t953*t983 - 0.160e2_dp*t93*t316 &
    4332             :                        *rho*t2226 + 0.480e2_dp*t102*t22*t2585*t136*t2196 - 0.1760000000e3_dp &
    4333             :                        *t93*t2193 + 0.960e2_dp*t302*t2197 + 0.160e2_dp*t302 &
    4334             :                        *t2227 - 0.960e2_dp*t302*t2201 - 0.8213333332e3_dp*t941*t2468 &
    4335             :                        *t317 + 0.8213333332e3_dp*t307*t2187 + 0.9600000002e2_dp*t321* &
    4336             :                        t2455*t975 - 0.360e2_dp*t102*t974*t375*t772 - 0.3519999999e3_dp &
    4337             :                        *t307*t2611*t954 + 0.1173333334e3_dp*t962*t2611*t328 - &
    4338           0 :                        0.5866666667e2_dp*t962*t949*t375
    4339           0 :                t2622 = t2576 + t2621
    4340           0 :                t2631 = t282*t140
    4341             :                t2635 = -0.1000000001e1_dp*t55*t923 - 0.3333333336e0_dp*t83*t384 &
    4342             :                        *t2230 - 0.5000000004e0_dp*t165*t897*t804 - 0.6666666672e0_dp*t383 &
    4343             :                        *t2404 - 0.1000000001e1_dp*t83*t1071*t804 - 0.5000000004e0_dp &
    4344             :                        *t164*t1076 - 0.1000000001e1_dp*t289*t294*t914 - 0.5000000004e0_dp &
    4345             :                        *t289*t294*t918 + 0.2500000002e0_dp*t906*t84*t2418 - &
    4346             :                        0.2000000001e1_dp*t55*t1079 - 0.5000000004e0_dp*t289*t84*t2424 &
    4347             :                        + 0.2500000002e0_dp*t1546*t897*t2169 - 0.3333333336e0_dp*t83* &
    4348             :                        t84*t2622 + 0.2500000002e0_dp*t906*t294*t907 - 0.1000000001e1_dp &
    4349           0 :                        *t55*t1082 - 0.1000000001e1_dp*t165*t2631*t237
    4350           0 :                t2636 = t78*t379
    4351           0 :                t2645 = t379*t804
    4352           0 :                t2655 = t140*t2230
    4353           0 :                t2707 = t74*t379
    4354           0 :                t2720 = t56*t1239
    4355             :                t2724 = 0.5000000001e0_dp*t165*t1392*t804 - 0.1333333334e1_dp*t165 &
    4356             :                        *t450*t1172 - 0.2666666667e1_dp*t170*t1089*t225 + 0.8333333333e-1_dp &
    4357             :                        *t429*t466*t2382 + 0.1000000000e1_dp*t170*t1254*t25 &
    4358             :                        + 0.1666666667e0_dp*t165*t166*t2622 + 0.1666666667e0_dp*t165* &
    4359             :                        t56*t2326*t140 - 0.2500000000e0_dp*t429*t166*t2424 - 0.3333333333e0_dp &
    4360             :                        *t165*t455*t1085 - 0.1728395062e0_dp*t165*t1268* &
    4361             :                        t140*t86 - 0.2500000000e0_dp*t1246*t446*t413*t804 + 0.1666666666e0_dp &
    4362             :                        *t1246*t2707*t833 + 0.1250000000e0_dp*t1368*t462*t2160 &
    4363             :                        - 0.1666666667e0_dp*t165*t466*t2378 + (6*t147*t1283 &
    4364           0 :                                                               *t394) + 0.5000000001e0_dp*t165*t2720*t237
    4365           0 :                t2732 = rho*t2205
    4366           0 :                t2759 = t25*t2230
    4367           0 :                t2763 = t1367*t444
    4368           0 :                t2779 = t25*t2160
    4369             :                t2783 = -0.2500000000e0_dp*t429*t1392*t754 + (6*t147*t393 &
    4370             :                                                              *t1347) - 0.3456790123e1_dp*t170*t1002*t74*t2732 + 0.5000000001e0_dp &
    4371             :                        *t165*t1275*t379 - 0.1333333334e1_dp*t170*t114*t889 &
    4372             :                        *t451 + 0.3333333334e0_dp*t170*t27*t2326*t172 - 0.2500000000e0_dp &
    4373             :                        *t429*t171*t1168 + 0.3750000000e0_dp*t1981*t1247*t2169 &
    4374             :                        + 0.5000000001e0_dp*t165*t171*t1093 + 0.8333333334e-1_dp*t1246 &
    4375             :                        *t1247*t2378 + 0.1666666667e0_dp*t445*t446*t2759 - 0.1250000000e0_dp &
    4376             :                        *t2763*t1247*t2382 + 0.5000000001e0_dp*t165*t437*t1067 &
    4377             :                        + 0.2222222222e0_dp*t165*t1089*t1360 + 0.1000000000e1_dp*t165 &
    4378             :                        *t455*t413 - 0.2500000000e0_dp*t429*t462*t2169 + 0.1250000000e0_dp &
    4379           0 :                        *t2763*t446*t2779
    4380           0 :                t2808 = t19*t1067
    4381           0 :                t2816 = t225*t754
    4382           0 :                t2821 = 0.1e1_dp/t41/t1140
    4383           0 :                t2823 = t47*t2821*t44
    4384             :                t2833 = -0.1687500000e2_dp*t1302*t401*t2169 + 0.6750000000e1_dp*t400 &
    4385             :                        *t1309*t804 + 0.4500000000e1_dp*t400*t1320*t833 - 0.1500000000e1_dp &
    4386             :                        *t400*t1316*t2368 + 0.1000000000e1_dp*t405*t194*t379 &
    4387             :                        *t14 + 0.8888888888e1_dp*t155*t97*rho*t2205 + 0.6750000000e1_dp &
    4388             :                        *t400*t2808*t237 - 0.1500000000e1_dp*t405*t68*t1067 &
    4389             :                        *t17 + 0.4500000000e1_dp*t400*t417*t2816 + 0.1968750000e2_dp*t2823 &
    4390             :                        *t401*t2160 + 0.1500000000e1_dp*t405*t156*t2759 + 0.2250000000e1_dp &
    4391           0 :                        *t400*t401*t2230
    4392           0 :                t2843 = t777*t237
    4393           0 :                t2853 = t172*t2169
    4394           0 :                t2869 = t225*t804
    4395           0 :                t2873 = t194*t225
    4396             :                t2877 = -0.1500000000e1_dp*t151*t50*t2622 + 0.5625000000e1_dp*t1302 &
    4397             :                        *t156*t2779 - 0.6750000000e1_dp*t400*t1333*t754 + 0.4999999999e1_dp &
    4398             :                        *t405*t1340*t2843 - 0.1000000000e2_dp*t49*t2351*t777 &
    4399             :                        - 0.5625000000e1_dp*t1302*t406*t2382 - 0.6750000000e1_dp*t1912 &
    4400             :                        *t2853 - 0.5555555555e0_dp*t405*t22*t140*t86 + 0.4500000000e1_dp &
    4401             :                        *t405*t1333*t804 + 0.2250000000e1_dp*t400*t406*t2378 - &
    4402             :                        0.1687500000e2_dp*t1302*t1309*t754 - 0.3000000000e1_dp*t405*t417 &
    4403           0 :                        *t2869 - 0.6000000000e1_dp*t405*t2873*t237
    4404           0 :                t2885 = t428*t1372
    4405             :                t2935 = -0.2500000000e0_dp*t429*t166*t2645 + (2*t147*t149 &
    4406             :                                                         *(t2833 + t2877)) + 0.5000000001e0_dp*t445*t1292*t1093 + 0.3333333333e0_dp &
    4407             :                        *t2885*t446*t2816 + 0.2222222222e0_dp*t165*t1377 &
    4408             :                        *t2368 - 0.3333333333e0_dp*t165*t1264*t833 + 0.2e1_dp*(t147) &
    4409             :                        *(t2257 - t2261 - t2264 - t2268 + t2272 + 0.9000000000e1_dp*t2274 &
    4410             :                          - t2279)*(t149)*t160 - 0.3333333333e0_dp*t170*t27*t1239 &
    4411             :                        *t17 - 0.8333333335e-1_dp*t429*t166*t2655 + (6*t147 &
    4412             :                                                                     *t1284*t424) + 0.2e1_dp*(t147)*t1387*t392*(t149)* &
    4413             :                        t160 - 0.2500000000e0_dp*t1246*t1292*t1168 - 0.1666666667e0_dp* &
    4414             :                        t165*t1254*t433 + (6*t147*t1388*t424) + 0.1666666667e0_dp &
    4415             :                        *t165*t462*t2230 + 0.2222222222e0_dp*t165*t450*t379*t14 &
    4416           0 :                        - 0.5000000001e0_dp*t429*t437*t914
    4417           0 :                t2937 = t164*t45*t341
    4418           0 :                t2992 = 0.1e1_dp/t1140/t40
    4419           0 :                t2994 = t59*t2992*pi
    4420           0 :                t2998 = t27*t225
    4421             :                t3026 = 0.1620000000e3_dp*t1143*t474*t2169 + 0.1080000000e3_dp*t1143 &
    4422             :                        *t479*t2382 - 0.2160000000e3_dp*t2994*t474*t2160 + 0.3600000000e2_dp &
    4423             :                        *t478*t2998*t237 + 0.1620000000e3_dp*t1143*t1150* &
    4424             :                        t754 + 0.2666666667e1_dp*t478*t114*t140*t86 - 0.3600000000e2_dp &
    4425             :                        *t473*t479*t2378 + 0.1080000000e3_dp*t1821*t2853 - 0.7200000000e2_dp &
    4426             :                        *t473*t1161*t833 - 0.1800000000e2_dp*t473*t474*t2230 &
    4427             :                        + 0.8999999998e1_dp*t178*t62*t2622 - 0.5400000000e2_dp*t478* &
    4428           0 :                        t1176*t804
    4429           0 :                t3030 = t20*t1067
    4430             :                t3069 = -0.1800000000e2_dp*t478*t183*t2759 - 0.5400000000e2_dp*t473 &
    4431             :                        *t3030*t237 - 0.6000000000e1_dp*t478*t27*t379*t14 - 0.5400000000e2_dp &
    4432             :                        *t473*t1150*t804 + 0.1800000000e2_dp*t478*t489* &
    4433             :                        t2869 + 0.1080000000e3_dp*t473*t1176*t754 + 0.1800000000e2_dp*t478 &
    4434             :                        *t56*t1067*t17 - 0.3600000000e2_dp*t473*t489*t2816 - 0.1866666667e2_dp &
    4435             :                        *t182*t357*t2205 + 0.2400000000e2_dp*t61*t2276 &
    4436             :                        *t777 - 0.2400000000e2_dp*t478*t123*t2843 - 0.1080000000e3_dp* &
    4437           0 :                        t1143*t183*t2779 + 0.1200000000e2_dp*t473*t1157*t2368
    4438           0 :                t3070 = t3026 + t3069
    4439           0 :                t3085 = t1210*t67
    4440             :                t3093 = (3*t496*t865*t65) + (3*t1189*t266*t65) &
    4441             :                        + 0.1111111112e1_dp*(t192)*(t2307)*(t65)*(t225) &
    4442             :                        + (t187*t2280*t65) + (3*t496*t863*t65) + 0.2222222223e0_dp &
    4443             :                        *t516*t1111*t526 + (t187*t2285*t65) + (t3070 &
    4444             :                                                               *t65) - 0.1851851853e0_dp*t1193*t498*t1200 + 0.2222222223e0_dp &
    4445             :                        *t508*t1119 + 0.1111111112e0_dp*(t192)*t194*(t1189) &
    4446             :                        *t526 + 0.2222222223e0_dp*t1137*t1221 - 0.1666666668e0_dp*t1129 &
    4447             :                        *t534 + 0.1111111112e0_dp*t3085*t271 - 0.5555555558e-1_dp*(t192) &
    4448           0 :                        *(t199)*(t2281) - 0.1851851853e0_dp*t508*t1201
    4449           0 :                t3097 = t66*t69
    4450           0 :                t3098 = t1109*t267
    4451           0 :                t3129 = t2296*t67
    4452             :                t3141 = -0.3333333336e0_dp*t192*t2299*t1125 - 0.1666666668e0_dp*t3097 &
    4453             :                        *t3098 + 0.1111111112e0_dp*t503*t2300 + 0.1111111112e0_dp*t1129 &
    4454             :                        *t527 - 0.1666666668e0_dp*t1129*t531 - 0.5555555558e-1_dp*t192 &
    4455             :                        *t68*t3070*t65 + 0.1646090535e0_dp*t192*t97*t187*t65* &
    4456             :                        t86 + 0.5555555559e0_dp*t1129*t512 - 0.1666666668e0_dp*t192*t530 &
    4457             :                        *t864 - 0.1666666668e0_dp*t1106*t882 - 0.1666666668e0_dp*t192* &
    4458             :                        t530*t866 - 0.1481481482e1_dp*t192*t1099*t777 - 0.1111111112e0_dp &
    4459             :                        *t3129*t196 + 0.5555555559e0_dp*t1193*t866*t451 - 0.1666666668e0_dp &
    4460             :                        *t503*t2282 - 0.1666666668e0_dp*t3085*t275 + 0.1111111112e0_dp &
    4461           0 :                        *t503*t2312
    4462             :                t3181 = -0.1851851853e0_dp*t1106*t874 - 0.1666666668e0_dp*t508*t1235 &
    4463             :                        - 0.3333333336e0_dp*t508*t1224 - 0.1111111112e0_dp*t516*t2281 &
    4464             :                        *t172 + 0.1111111112e0_dp*t516*t1097*t526 + 0.2222222223e0_dp* &
    4465             :                        t1106*t878 - 0.1851851853e0_dp*t503*t2308 - 0.3333333336e0_dp*t1137 &
    4466             :                        *t1216 + (3*t3098) + 0.1111111112e0_dp*t516*t1109*t526 &
    4467             :                        - 0.5555555558e-1_dp*t503*t2287 - 0.3333333336e0_dp*t192*t2311 &
    4468             :                        *t1125 - 0.6666666672e0_dp*t508*t1126 + 0.1646090535e0_dp*t503 &
    4469             :                        *t2319 - 0.5555555558e-1_dp*t3129*t200 - 0.5555555558e-1_dp*t58 &
    4470           0 :                        *t2622*t71 - 0.1666666668e0_dp*t1106*t886
    4471             :                t3232 = -0.1666666668e0_dp*t192*t1206*t267 - 0.5555555558e-1_dp*t192 &
    4472             :                        *t199*t2295 - 0.1666666668e0_dp*t508*t1122 - 0.3333333336e0_dp &
    4473             :                        *t1129*t520 - 0.1111111112e0_dp*t516*t2295*t172 - 0.1481481482e1_dp &
    4474             :                        *t66*t67*t97*t267*t1100 - 0.1851851853e0_dp*t192* &
    4475             :                        t22*t496*t1200 - 0.3333333336e0_dp*t516*t2292*t65*rho* &
    4476             :                        t25 + 0.1810699590e1_dp*t192*t311*t70*t2732 - 0.5555555558e-1_dp &
    4477             :                        *t503*t2304 - 0.1481481482e1_dp*t508*t1101 - 0.3333333336e0_dp* &
    4478             :                        t867*t515*t517 + 0.1111111112e1_dp*t268*t1192*t1194 + 0.5555555559e0_dp &
    4479             :                        *t1193*t864*t451 + 0.1111111112e1_dp*t508*t1213 - &
    4480           0 :                        0.1666666668e0_dp*t508*t1207 - 0.3333333336e0_dp*t1137*t1134
    4481           0 :                t3244 = t278*t140
    4482           0 :                t3248 = t889*rho
    4483           0 :                t3262 = omega*t1300
    4484           0 :                t3264 = t140*t2160
    4485             :                t3268 = 0.1555555556e1_dp*t2937*t446*t2843 + 0.3111111111e1_dp*t170 &
    4486             :                        *t1268*t777 - 0.2500000000e0_dp*t429*t1275*t290 - 0.1333333334e1_dp &
    4487             :                        *t1373*t1292*t1172 + 0.3111111111e1_dp*t170*t341*t278 &
    4488             :                        *t1100 - 0.3456790122e0_dp*t170*t341*t203*t86 + 0.3750000000e0_dp &
    4489             :                        *t1368*t166*t2418 + 0.4444444444e0_dp*t170*t114*t537 &
    4490             :                        *t14 + 0.3333333334e0_dp*t55*t57*(t3093 + t3141 + t3181 + t3232) &
    4491             :                        - 0.1111111111e0_dp*t2885*t1247*t2368 - 0.6666666668e0_dp*t1373 &
    4492             :                        *t446*t2869 + 0.1666666667e0_dp*t1246*t3244*t833 + 0.5000000001e0_dp &
    4493             :                        *t445*t3248*t413 - 0.1666666667e0_dp*t165*t171* &
    4494             :                        t1067*t17 - 0.2500000000e0_dp*t429*t437*t918 + 0.3750000000e0_dp &
    4495           0 :                        *t1368*t437*t907 - 0.3125000000e0_dp*t3262*t45*t166*t3264
    4496           0 :                t3278 = rho*t398
    4497             :                t3288 = -0.1000000001e1_dp*t165*t2636*t237 - 0.2000000001e1_dp*t55 &
    4498             :                        *t926 - 0.1000000001e1_dp*t83*t922*t379 - 0.5000000004e0_dp*t289 &
    4499             :                        *t84*t2645 + 0.2500000002e0_dp*t429*t897*t754 - 0.1000000001e1_dp &
    4500             :                        *t83*t294*t1067 - 0.1666666668e0_dp*t289*t84*t2655 &
    4501             :                        - 0.1000000001e1_dp*t83*t2404*t237 - 0.5000000004e0_dp*t289*t922 &
    4502             :                        *t290 - 0.5000000004e0_dp*t289*t384*t2169 - 0.5000000004e0_dp &
    4503             :                        *t289*t1071*t754 - 0.2222222224e0_dp*t144*t46*(t2724 + t2783 &
    4504             :                                                                       + t2935 + t3268) - 0.3333333336e0_dp*t83*t45*t2392*t140 - &
    4505             :                        0.1250000001e0_dp*t3278*omega*t84*t3264 - 0.1000000001e1_dp*t55 &
    4506           0 :                        *t1068 + 0.8333333340e-1_dp*t906*t384*t2160
    4507             :                t3291 = -0.1000000001e1_dp*t2147*t84*t754 - 0.4000000002e1_dp*t747 &
    4508             :                        *t294*t237 - 0.2000000001e1_dp*t747*t84*t804 - 0.1333333334e1_dp &
    4509             :                        *t214*t894 + 0.1666666668e0_dp*t4*t150*t46*t78*t2160 &
    4510             :                        - 0.1000000001e1_dp*t753*t46*t282*t754 - 0.1000000001e1_dp*t1409 &
    4511             :                        *t84*t2169 - 0.2000000001e1_dp*t217*t46*t893*t237 - 0.2000000001e1_dp &
    4512             :                        *t217*t46*t282*t804 - 0.6666666672e0_dp*t217* &
    4513             :                        t46*t78*t2230 - 0.4444444448e0_dp*t43*t46*t2392 + t8*(t2635 &
    4514           0 :                                                                              + t3288)
    4515             :             END IF
    4516     9686234 :             IF (grad_deriv >= 3 .OR. grad_deriv == -3) THEN
    4517           0 :                e_rho_rho_rho_spin(ii) = e_rho_rho_rho_spin(ii) + t3291*sx
    4518           0 :                t3305 = t4*t428
    4519           0 :                t3306 = t754*t561
    4520           0 :                t3314 = t237*t1447
    4521           0 :                t3329 = t804*t561
    4522           0 :                t3339 = t949*t557
    4523           0 :                t3344 = t953*t1425
    4524           0 :                t3347 = t316*t1443
    4525           0 :                t3352 = t772*t557
    4526           0 :                t3353 = t974*t3352
    4527           0 :                t3356 = t233*t1443
    4528           0 :                t3357 = t327*t3356
    4529           0 :                t3362 = t800*t557
    4530           0 :                t3363 = t327*t3362
    4531           0 :                t3366 = beta*t777
    4532             :                t3378 = 0.1866666667e2_dp*t3366*t342 + 0.9866666667e2_dp*t24*t782 &
    4533             :                        - 0.8266666668e2_dp*t366*t797 + 0.3200000001e2_dp*t1054/t1014/ &
    4534           0 :                        t12*t1058
    4535           0 :                t3379 = t105*t3378
    4536             :                t3382 = 0.3911111110e2_dp*t24*t766 - 0.1955555555e2_dp*t962*t3339 &
    4537             :                        + 0.2133333334e2_dp*t339*t769 - 0.2133333334e2_dp*t321*t3344 + &
    4538             :                        0.1066666667e2_dp*t321*t3347 + 0.80e1_dp*t112*t773 - 0.120e2_dp*t102 &
    4539             :                        *t3353 + 0.80e1_dp*t102*t3357 - 0.40e1_dp*t112*t801 + 0.40e1_dp &
    4540           0 :                        *t102*t3363 - 0.20e1_dp*t102*t3379
    4541           0 :                t3449 = t1447*t17
    4542             :                t3453 = (2*t147*t1885*t249) + 0.1800000000e2_dp*(t1971) &
    4543             :                        *(t1972)*(t1973)*(t249) + (2*t147*t393 &
    4544             :                                                   *t1470) + 0.1800000000e2_dp*t658*t575*t827 + 0.2e1_dp*(t147) &
    4545             :                        *t149*(-0.5625000000e1_dp*t1302*t19*t754*t561 + 0.4500000000e1_dp &
    4546             :                               *t400*t1459*t1447 + 0.1500000000e1_dp*t400*t815*t1483 &
    4547             :                               - 0.1000000000e1_dp*t405*t68*t1447*t17 + 0.2250000000e1_dp* &
    4548             :                               t400*t19*t804*t561 - 0.1500000000e1_dp*t151*t50*t3382 + 0.3333333334e0_dp &
    4549             :                               *t405*t194*t14*t561) + 0.1250000000e0_dp*t1368 &
    4550             :                        *t166*t3306 - 0.8333333335e-1_dp*t429*t679*t754 - 0.1666666667e0_dp &
    4551             :                        *t429*t166*t3314 + 0.5555555555e-1_dp*t1246*t74*t237 &
    4552             :                        *t1483 - 0.1111111111e0_dp*t165*t689*t833 - 0.1111111111e0_dp* &
    4553           0 :                        t165*t171*t3449
    4554           0 :                t3472 = t14*t561
    4555           0 :                t3491 = 0.5400000000e2_dp*t1143*t20*t754*t561
    4556           0 :                t3494 = 0.3600000000e2_dp*t473*t1493*t1447
    4557           0 :                t3497 = 0.2400000000e2_dp*t473*t852*t1483
    4558           0 :                t3501 = 0.1200000000e2_dp*t478*t56*t1447*t17
    4559           0 :                t3505 = 0.1800000000e2_dp*t473*t20*t804*t561
    4560           0 :                t3507 = t178*t62*t3382
    4561           0 :                t3512 = 0.2000000000e1_dp*t478*t27*t14*t561
    4562             :                t3513 = t3491 - t3494 - t3497 + t3501 - t3505 + 0.8999999998e1_dp*t3507 &
    4563           0 :                        - t3512
    4564           0 :                t3514 = t3513*t65
    4565           0 :                t3525 = t58*t3382
    4566           0 :                t3533 = t237*t1518
    4567             :                t3543 = t3514 + 0.8999999998e1_dp*t863*t59*t177*t710 + (2 &
    4568             :                                                           *t267*t1504) + 0.8999999998e1_dp*t865*t59*t177*t710 - 0.5555555558e-1_dp &
    4569             :                        *t3525*t71 - 0.5000000001e0_dp*t804*t177*t709 + &
    4570             :                        0.7407407410e-1_dp*t1755*t271 + 0.6666666668e0_dp*t3533*t1722 - &
    4571             :                        0.1111111112e0_dp*t1755*t275 - 0.1111111112e0_dp*t508*t1525 - 0.1000000001e1_dp &
    4572           0 :                        *t237*t266*t1722
    4573           0 :                t3546 = 0.1e1_dp/t12
    4574           0 :                t3547 = t60*t3546
    4575           0 :                t3552 = t194*t1504
    4576           0 :                t3553 = t3552*t526
    4577           0 :                t3561 = t68*t3513*t65
    4578           0 :                t3569 = t274*t1505
    4579             :                t3575 = -0.6172839508e-1_dp*t719*t874 - 0.5555555556e0_dp*t3547*t709 &
    4580             :                        + 0.7407407410e-1_dp*t719*t878 + 0.7407407410e-1_dp*t192*t3553 &
    4581             :                        + 0.6666666668e0_dp*t1519*t1712 - 0.5555555558e-1_dp*t719*t882 &
    4582             :                        - 0.5555555558e-1_dp*t192*t3561 - 0.5000000001e0_dp*t60*t863* &
    4583             :                        t709 - 0.5555555558e-1_dp*t719*t886 - 0.1111111112e0_dp*t192*t3569 &
    4584           0 :                        - 0.5000000001e0_dp*t60*t865*t709
    4585           0 :                t3576 = t3543 + t3575
    4586             :                t3580 = -0.1666666667e0_dp*t429*t437*t1410 + 0.3333333334e0_dp*t165 &
    4587             :                        *t1928*t237 + 0.3333333334e0_dp*t165*t437*t1447 - 0.8333333335e-1_dp &
    4588             :                        *t429*t166*t3329 + 0.1666666667e0_dp*t165*t679*t804 &
    4589             :                        + 0.1666666667e0_dp*t165*t166*t3382 + 0.7407407405e-1_dp*t165 &
    4590             :                        *t450*t3472 + 0.1481481481e0_dp*t170*t1875*t14 - 0.1111111111e0_dp &
    4591             :                        *t165*t455*t1483 - 0.2222222222e0_dp*t170*t1932*t17 + &
    4592             :                        0.1666666667e0_dp*t165*t1275*t561 + 0.3333333334e0_dp*t55*t57 &
    4593           0 :                        *t3576
    4594           0 :                t3581 = t3453 + t3580
    4595           0 :                t3608 = t973*rho
    4596             :                t3618 = 0.640e2_dp*t1597*t1598*t3356 - 0.640e2_dp*t1582*t773 - &
    4597             :                        0.1173333333e3_dp*t93*t3347 - 0.3911111110e2_dp*t1000*t963 - 0.320e2_dp &
    4598             :                        *t605*t959 + 0.1173333333e3_dp*t307*t949*t1602 + 0.40e1_dp &
    4599             :                        *t102*t327*t136*t3378 - 0.960e2_dp*t1597*t3608*t3352 - &
    4600             :                        0.40e1_dp*t112*t1064 + 0.80e1_dp*t112*t984 + 0.2737777778e3_dp*t307 &
    4601           0 :                        *t3339
    4602           0 :                t3668 = t2552*t23
    4603           0 :                t3673 = t635*t1058
    4604           0 :                t3674 = t3673*t220
    4605             :                t3677 = -0.1866666667e3_dp*t1645*t342 - 0.6346666667e3_dp*t24*t991 &
    4606             :                        + 0.3946666667e3_dp*t366*t997 + 0.1866666667e3_dp*beta*t764* &
    4607             :                        t1004 + 0.60e1_dp*t550*t1046 + 0.60e1_dp*t119*t27*(-0.280e3_dp/ &
    4608             :                                                                 0.9e1_dp*t987 + 0.280e3_dp/0.9e1_dp*t2537*rho)*t132 - 0.60e1_dp*t7 &
    4609             :                        *t640*t1044*t371 + 0.1600000000e2_dp*t366*t368*t1667*t371 &
    4610             :                        - 0.4800000000e2_dp*t1680*t3668 + 0.1600000000e3_dp*t1680*t1060 &
    4611           0 :                        + 0.3200000000e2_dp*t1055*t3674
    4612           0 :                t3679 = t2565*t1439
    4613           0 :                t3682 = t24*t940
    4614             :                t3711 = -0.1600000000e3_dp*t2220*t368*t3679 + 0.6346666667e3_dp*t3682 &
    4615             :                        *t1008 - 0.3946666667e3_dp*t366*t1012*t1021 + 0.1866666667e2_dp &
    4616             :                        *t3366*t1026 + 0.1866666667e2_dp*t1024*t341*t635*t132 &
    4617             :                        - 0.1706666667e3_dp*t7*t1036 - 0.1600000000e2_dp*t1429*t1030 - 0.1600000000e2_dp &
    4618             :                        *t350*t114*t1667*t132 + 0.6400000000e2_dp*t7* &
    4619             :                        t1050 - 0.5066666667e2_dp*t366*t1034*t635*t371 + 0.1520000000e3_dp &
    4620           0 :                        *t786*t1034*t1681
    4621             :                t3726 = -0.240e2_dp*t1616*t1617*t3356 + 0.160e2_dp*t302*t3379 + &
    4622             :                        0.40e1_dp*t102*t327*t1063*t557 + 0.960e2_dp*t302*t3353 - 0.320e2_dp &
    4623             :                        *t302*t3363 - 0.2737777778e3_dp*t941*t2468*t608 - 0.120e2_dp &
    4624             :                        *t102*t974*t645*t772 - 0.2133333334e2_dp*t321*t953*t1621 &
    4625             :                        - 0.20e1_dp*t102*t105*(t3677 + t3711) + 0.80e1_dp*t102*t327 &
    4626             :                        *t375*t1443 - 0.120e2_dp*t1616*t1617*t3362 - 0.2133333334e2_dp &
    4627           0 :                        *t321*t953*t1625
    4628           0 :                t3750 = t2585*t136
    4629             :                t3763 = 0.2346666666e3_dp*t1589*t950 + 0.80e1_dp*t102*t327*t1684 &
    4630             :                        *t233 + 0.6400000002e2_dp*t7*t220*t1618 - 0.240e2_dp*t112*t976 &
    4631             :                        - 0.160e2_dp*t93*t316*rho*t3378 + 0.2346666666e3_dp*t93* &
    4632             :                        t3344 + 0.3911111110e2_dp*t962*t2611*t614 - 0.5475555556e3_dp*t24 &
    4633             :                        *t930 + 0.480e2_dp*t1616*t3750*t3352 - 0.1955555555e2_dp*t962 &
    4634             :                        *t949*t645 - 0.240e2_dp*t1616*t973*t375*t1425 + 0.2133333334e2_dp &
    4635           0 :                        *t339*t969
    4636             :                t3794 = -0.640e2_dp*t302*t3357 - 0.4266666668e2_dp*t339*t966 + 0.640e2_dp &
    4637             :                        *t605*t955 + 0.40e1_dp*t102*t327*t645*t800 + 0.5475555556e3_dp &
    4638             :                        *t3682*t946 + 0.1066666667e2_dp*t321*t316*t1684 + 0.160e2_dp &
    4639             :                        *t112*t980 - 0.2346666666e3_dp*t7*t929*t1599 + 0.320e2_dp &
    4640             :                        *t1597*t1598*t3362 - 0.2346666666e3_dp*t605*t769 + 0.320e2_dp &
    4641           0 :                        *t1582*t801 - 0.2133333334e2_dp*t321*t953*t1631
    4642           0 :                t3796 = t3618 + t3726 + t3763 + t3794
    4643             :                t3826 = 0.8333333340e-1_dp*t906*t597*t907 + 0.1666666668e0_dp*t429 &
    4644             :                        *t1547 - 0.3333333336e0_dp*t83*t84*t3796 - 0.3333333336e0_dp* &
    4645             :                        t83*t922*t649 - 0.3333333336e0_dp*t289*t294*t1571 - 0.3333333336e0_dp &
    4646             :                        *t289*t1071*t1410 - 0.6666666672e0_dp*t83*t1564*t379 &
    4647             :                        - 0.6666666672e0_dp*t55*t1700 - 0.3333333336e0_dp*t165*t207* &
    4648             :                        t237*t561 - 0.6666666672e0_dp*t55*t1689 - 0.3333333336e0_dp*t83 &
    4649           0 :                        *t1694*t804 + 0.1666666668e0_dp*t1546*t897*t3314
    4650           0 :                t3827 = t649*t804
    4651           0 :                t3842 = t3278*t46
    4652           0 :                t3849 = t140*t3382
    4653           0 :                t3853 = t649*t754
    4654           0 :                t3861 = t78*t649
    4655           0 :                t3865 = t589*t140
    4656             :                t3869 = -0.1666666668e0_dp*t289*t84*t3827 - 0.1666666668e0_dp*t289 &
    4657             :                        *t922*t593 + 0.1666666668e0_dp*t1546*t2636*t1410 - 0.6666666672e0_dp &
    4658             :                        *t55*t1703 - 0.3333333336e0_dp*t83*t597*t1067 - 0.1250000001e0_dp &
    4659             :                        *t3842*t897*t3306 - 0.3333333336e0_dp*t83*t384* &
    4660             :                        t3382 - 0.1666666668e0_dp*t289*t84*t3849 + 0.8333333340e-1_dp*t906 &
    4661             :                        *t84*t3853 - 0.6666666672e0_dp*t55*t1568 - 0.6666666672e0_dp* &
    4662             :                        t55*t1565 - 0.3333333336e0_dp*t165*t3861*t237 - 0.3333333336e0_dp &
    4663           0 :                        *t165*t3865*t237
    4664           0 :                t3871 = t379*t1447
    4665           0 :                t3875 = t45*t2002
    4666           0 :                t3892 = t225*t1447
    4667           0 :                t3918 = t25*t3382
    4668           0 :                t3925 = t777*t561
    4669           0 :                t3933 = t451*t1410
    4670           0 :                t3939 = t1301*t245
    4671           0 :                t3940 = t172*t3306
    4672             :                t3965 = 0.1500000000e1_dp*t405*t156*t3918 + 0.1968750000e2_dp*t2823 &
    4673             :                        *t401*t3306 + 0.1666666666e1_dp*t405*t1340*t3925 + 0.3000000000e1_dp &
    4674             :                        *t405*t1333*t1447 + 0.3000000000e1_dp*t399*t822*t3933 &
    4675             :                        + 0.2250000000e1_dp*t400*t401*t3382 + 0.5625000000e1_dp*t3939 &
    4676             :                        *t3940 + 0.3333333333e0_dp*t405*t194*t649*t14 - 0.1125000000e2_dp &
    4677             :                        *t1302*t1309*t1410 + 0.2250000000e1_dp*t400*t1892*t804 &
    4678             :                        - 0.5625000000e1_dp*t1302*t401*t3329 - 0.5625000000e1_dp*t1302 &
    4679             :                        *t1892*t754 + 0.2250000000e1_dp*t400*t2808*t561 - 0.4500000000e1_dp &
    4680           0 :                        *t400*t1333*t1410
    4681           0 :                t3969 = t172*t3314
    4682           0 :                t3975 = t19*t1688
    4683           0 :                t3979 = t290*t1483
    4684           0 :                t3985 = t172*t3329
    4685             :                t4010 = -0.1125000000e2_dp*t1302*t401*t3314 - 0.4500000000e1_dp*t1912 &
    4686             :                        *t3969 + 0.4500000000e1_dp*t400*t1309*t1447 + 0.4500000000e1_dp &
    4687             :                        *t400*t3975*t237 - 0.3750000000e1_dp*t3939*t3979 - 0.2000000000e1_dp &
    4688             :                        *t405*t417*t3892 - 0.2250000000e1_dp*t1912*t3985 - &
    4689             :                        0.2000000000e1_dp*t405*t2873*t561 - 0.5000000000e0_dp*t400*t1316 &
    4690             :                        *t3472 - 0.1000000000e1_dp*t405*t68*t1688*t17 + 0.1500000000e1_dp &
    4691             :                        *t400*t406*t3449 - 0.1500000000e1_dp*t151*t50*t3796 &
    4692             :                        + 0.1500000000e1_dp*t400*t1902*t833 + 0.1500000000e1_dp*t400* &
    4693           0 :                        t1320*t1483
    4694             :                t4018 = 0.2222222222e0_dp*t2885*t446*t1172*t561 - 0.1666666667e0_dp &
    4695             :                        *t1246*t1292*t1865 - 0.4444444445e0_dp*t1373*t446*t3892 &
    4696             :                        - 0.1111111111e0_dp*t165*t171*t1688*t17 + 0.1666666667e0_dp*t165 &
    4697             :                        *t56*t3576*t140 + 0.1250000000e0_dp*t2763*t446*t1168* &
    4698             :                        t561 + 0.3333333334e0_dp*t165*t689*t413 + 0.1666666667e0_dp*t165 &
    4699             :                        *t679*t1067 - 0.1666666667e0_dp*t1246*t446*t413*t1447 + &
    4700             :                        (2*t147*t149*(t3965 + t4010)) - 0.4444444445e0_dp*t1373* &
    4701           0 :                        t1292*t1829
    4702           0 :                t4025 = t3262*t57
    4703           0 :                t4032 = t74*t649
    4704           0 :                t4070 = t3525*t67
    4705             :                t4079 = -0.5555555558e-1_dp*t192*t199*t3514 + (t705*t863* &
    4706             :                                                               t65) + (2*t496*t1504*t65) + (t187*t3513*t65) - &
    4707             :                        0.5555555558e-1_dp*t192*t728*t864 - 0.5555555556e0_dp*t140*t3546 &
    4708             :                        *t1722 + (t705*t865*t65) - 0.1111111112e0_dp*t1106*t1525 &
    4709             :                        - 0.1111111112e0_dp*t4070*t196 + 0.6666666668e0_dp*t1748*t266 &
    4710           0 :                        *t1722 + 0.3703703706e0_dp*t1193*t1505*t451
    4711           0 :                t4101 = t498*t1505
    4712             :                t4108 = -0.5000000001e0_dp*t60*t1189*t709 + 0.3703703706e0_dp*t1755 &
    4713             :                        *t512 - 0.5555555558e-1_dp*t503*t3561 - 0.2222222224e0_dp*t516 &
    4714             :                        *t267*t172*t1504 - 0.5555555558e-1_dp*t1715*t886 - 0.5555555558e-1_dp &
    4715             :                        *t1715*t882 - 0.1111111112e0_dp*t516*t3514*t172 - 0.5000000001e0_dp &
    4716             :                        *t1067*t177*t709 + (2*t4101) - 0.1111111112e0_dp &
    4717           0 :                        *t508*t1769 - 0.1111111112e0_dp*t192*t1837*t267
    4718             :                t4140 = -0.5555555558e-1_dp*t719*t1207 - 0.2000000001e1_dp*t1763* &
    4719             :                        t266*t1722 - 0.1111111112e0_dp*t192*t530*t1505 + 0.1333333334e1_dp &
    4720             :                        *t1519*t722*t1712 + 0.7407407410e-1_dp*t516*t1718*t526 &
    4721             :                        + 0.6666666668e0_dp*t379*t1518*t1722 - 0.5555555558e-1_dp*t192* &
    4722             :                        t728*t866 - 0.2222222224e0_dp*t719*t1126 + 0.1800000000e2_dp*t1111 &
    4723             :                        *t178*t710 - 0.1111111112e0_dp*t508*t1782 - 0.5555555558e-1_dp &
    4724           0 :                        *t58*t3796*t71
    4725           0 :                t4156 = t865*t561*t65
    4726           0 :                t4201 = t20*t1688
    4727             :                t4214 = -0.8000000000e1_dp*t478*t123*t3925 - 0.2400000000e2_dp*t473 &
    4728             :                        *t479*t3449 + 0.1200000000e2_dp*t478*t489*t3892 + 0.1200000000e2_dp &
    4729             :                        *t478*t2998*t561 - 0.2000000000e1_dp*t478*t27*t649 &
    4730             :                        *t14 + 0.1200000000e2_dp*t478*t56*t1688*t17 - 0.2400000000e2_dp &
    4731             :                        *t473*t1161*t1483 + 0.1080000000e3_dp*t1143*t474*t3314 - &
    4732             :                        0.2160000000e3_dp*t2994*t474*t3306 + 0.7200000000e2_dp*t1821* &
    4733             :                        t3969 - 0.3600000000e2_dp*t473*t4201*t237 - 0.1800000000e2_dp*t473 &
    4734             :                        *t3030*t561 - 0.2400000000e2_dp*t473*t1811*t833 - 0.1800000000e2_dp &
    4735           0 :                        *t478*t183*t3918
    4736           0 :                t4230 = t1142*t262
    4737             :                t4255 = 0.5400000000e2_dp*t1143*t474*t3329 + 0.5400000000e2_dp*t1143 &
    4738             :                        *t1801*t754 + 0.7200000000e2_dp*t473*t1176*t1410 + 0.8999999998e1_dp &
    4739             :                        *t178*t62*t3796 - 0.2400000000e2_dp*t472*t859*t3933 &
    4740             :                        - 0.1080000000e3_dp*t4230*t3940 + 0.4000000000e1_dp*t473*t1157 &
    4741             :                        *t3472 + 0.1080000000e3_dp*t1143*t1150*t1410 + 0.3600000000e2_dp &
    4742             :                        *t1821*t3985 + 0.7200000000e2_dp*t4230*t3979 - 0.1800000000e2_dp &
    4743             :                        *t473*t1801*t804 - 0.3600000000e2_dp*t473*t1150*t1447 - &
    4744             :                        0.3600000000e2_dp*t478*t1176*t1447 - 0.1800000000e2_dp*t473*t474 &
    4745           0 :                        *t3382
    4746           0 :                t4256 = t4214 + t4255
    4747             :                t4261 = -0.2222222224e0_dp*t1510*t515*t517 + 0.3703703706e0_dp*t719 &
    4748             :                        *t1213 - 0.1000000001e1_dp*t1766*t266*t1722 - 0.5555555558e-1_dp &
    4749             :                        *t4070*t200 + 0.6666666668e0_dp*t1519*t496*t561*t65 - 0.5000000001e0_dp &
    4750             :                        *t732*t4156 - 0.5000000001e0_dp*t140*t865*t1722 &
    4751             :                        - 0.5000000001e0_dp*t804*t187*t1722 - 0.4938271608e0_dp*t719* &
    4752             :                        t1101 + 0.8999999998e1_dp*t1097*t178*t710 - 0.5555555558e-1_dp* &
    4753           0 :                        t192*t68*t4256*t65
    4754           0 :                t4272 = t863*t561*t65
    4755             :                t4292 = (2*t1836*t266*t65) - 0.1111111112e0_dp*t719*t1224 &
    4756             :                        - 0.2222222224e0_dp*t1137*t1790 - 0.1000000001e1_dp*t723*t4272 &
    4757             :                        - 0.1111111112e0_dp*t1785*t1134 - 0.6172839508e-1_dp*t192*t22* &
    4758             :                        t705*t1200 - 0.5000000001e0_dp*t140*t863*t1722 - 0.1111111112e0_dp &
    4759             :                        *t1755*t531 - 0.6172839508e-1_dp*t1715*t874 - 0.5555555558e-1_dp &
    4760           0 :                        *t719*t1122 + 0.7407407410e-1_dp*t508*t1726
    4761             :                t4317 = 0.7407407410e-1_dp*t1755*t527 - 0.6172839508e-1_dp*t719*t1201 &
    4762             :                        - 0.1111111112e0_dp*t508*t1838 - 0.2222222224e0_dp*t192*t3552 &
    4763             :                        *t1125 + 0.7407407410e-1_dp*t1785*t1221 - 0.1111111111e1_dp*t3547 &
    4764             :                        *t1737 + 0.6666666668e0_dp*t1519*t187*t1712 + 0.7407407410e-1_dp &
    4765             :                        *t503*t3553 - 0.1111111112e0_dp*t1755*t534 - 0.1000000001e1_dp &
    4766           0 :                        *t1774*t1712 + 0.7407407410e-1_dp*t719*t1119
    4767             :                t4345 = -0.1000000001e1_dp*t379*t266*t1722 - 0.1000000001e1_dp*t804 &
    4768             :                        *t722*t1722 + 0.8999999998e1_dp*t1109*t178*t710 - 0.5555555558e-1_dp &
    4769             :                        *t1129*t729 + t4256*t65 - 0.2222222224e0_dp*t1755*t520 &
    4770             :                        - 0.1111111112e0_dp*t503*t3569 - 0.1111111112e0_dp*t1785*t1216 &
    4771             :                        - 0.1111111112e0_dp*t3097*t4101 - 0.5000000001e0_dp*t732*t4272 &
    4772           0 :                        + 0.7407407410e-1_dp*t192*t194*t1836*t526
    4773           0 :                t4352 = t1731*t67
    4774             :                t4378 = 0.7407407410e-1_dp*t1715*t878 + 0.8999999998e1_dp*t1189*t59 &
    4775             :                        *t177*t710 + 0.7407407410e-1_dp*t4352*t271 - 0.1111111112e0_dp &
    4776             :                        *t4352*t275 - 0.5555555556e0_dp*t3547*t1745 + 0.7407407410e-1_dp &
    4777             :                        *t516*t1709*t526 + 0.6666666668e0_dp*t3533*t187*t1722 - 0.1000000001e1_dp &
    4778             :                        *t237*t496*t1722 + 0.3703703706e0_dp*t579*t1192 &
    4779             :                        *t1194 - 0.1000000001e1_dp*t723*t4156 + 0.1333333334e1_dp*t3533 &
    4780           0 :                        *t722*t1722 - 0.5555555558e-1_dp*t719*t1235
    4781             :                t4392 = 0.3333333334e0_dp*t165*t171*t1825 + 0.1250000000e0_dp*t1981 &
    4782             :                        *t1247*t3329 - 0.3125000000e0_dp*t4025*t1247*t3306 + 0.3333333334e0_dp &
    4783             :                        *t165*t1392*t1447 + 0.5555555556e-1_dp*t1246*t4032 &
    4784             :                        *t833 - 0.1666666667e0_dp*t1246*t74*t25*t1410 + 0.5555555556e-1_dp &
    4785             :                        *t1246*t1247*t3449 + 0.1800000000e2_dp*t657*t1283*t59 &
    4786             :                        *t1975 - 0.1666666667e0_dp*t429*t166*t3871 + 0.3333333334e0_dp &
    4787             :                        *t55*t57*(t4079 + t4108 + t4140 + t4261 + t4292 + t4317 + t4345 &
    4788             :                                  + t4378) + 0.1481481481e0_dp*t170*t114*t735*t14 - 0.1666666667e0_dp &
    4789           0 :                        *t429*t1928*t290
    4790             :                t4428 = -0.1111111111e0_dp*t165*t1264*t1483 + 0.1800000000e2_dp*t658 &
    4791             :                        *t575*t1348 - 0.8333333335e-1_dp*t429*t679*t918 - 0.1111111111e0_dp &
    4792             :                        *t165*t455*t1988 + 0.3333333334e0_dp*t170*t27*t3576 &
    4793             :                        *t172 - 0.8333333335e-1_dp*t429*t1966*t754 + 0.1250000000e0_dp &
    4794             :                        *t1368*t679*t907 + 0.1666666667e0_dp*t445*t446*t3918 - 0.4444444445e0_dp &
    4795             :                        *t165*t450*t1829 + 0.2500000000e0_dp*t1981*t3244 &
    4796           0 :                        *t1410 - 0.1666666667e0_dp*t429*t1392*t1410
    4797             :                t4466 = -0.1666666667e0_dp*t429*t437*t1553 - 0.1111111111e0_dp*t165 &
    4798             :                        *t689*t1085 + 0.1666666667e0_dp*t165*t1275*t649 - 0.2222222222e0_dp &
    4799             :                        *t170*t27*t1843*t17 - 0.8333333335e-1_dp*t1246*t1962 &
    4800             :                        *t1168 + 0.1666666667e0_dp*t165*t2720*t561 + 0.6666666668e0_dp &
    4801             :                        *t170*t1932*t25 + 0.3333333334e0_dp*t445*t1292*t1825 + 0.1250000000e0_dp &
    4802             :                        *t1368*t166*t3853 - 0.4444444445e0_dp*t1373*t1962 &
    4803             :                        *t1172 + 0.7407407405e-1_dp*t165*t1377*t3472 + 0.5555555555e-1_dp &
    4804           0 :                        *t1246*t3244*t1483
    4805           0 :                t4498 = t56*t1843
    4806             :                t4505 = 0.1666666667e0_dp*t165*t166*t3796 - 0.8333333334e-1_dp*t2763 &
    4807             :                        *t1247*t833*t561 + (4*t147*t392*t1886) + (2 &
    4808             :                                                          *t147*t1388*t672) - 0.1111111111e0_dp*t165*t1940*t833 + 0.3333333334e0_dp &
    4809             :                        *t165*t1928*t379 + 0.7407407409e-1_dp*t165*t450 &
    4810             :                        *t649*t14 - 0.1666666667e0_dp*t429*t462*t3314 - 0.3703703704e-1_dp &
    4811             :                        *t2885*t1247*t3472 + 0.3333333334e0_dp*t165*t4498*t237 &
    4812           0 :                        + (2*t147*t1284*t672)
    4813           0 :                t4512 = t1531*rho
    4814             :                t4545 = (4*t147*t1885*t424) + 0.1666666667e0_dp*t165*t462 &
    4815             :                        *t3382 + 0.3333333334e0_dp*t445*t4512*t413 + 0.5185185185e0_dp &
    4816             :                        *t2937*t446*t3925 - 0.8333333335e-1_dp*t429*t166*t3827 - 0.1666666667e0_dp &
    4817             :                        *t429*t437*t1571 + 0.5555555555e-1_dp*t1246*t203 &
    4818             :                        *t237*t1483 + 0.5555555555e-1_dp*t1246*t2707*t1483 + 0.7407407409e-1_dp &
    4819             :                        *t165*t1875*t1360 + (4*t147*t393*t1924) &
    4820             :                        + 0.3600000000e2_dp*(t1971)*(t1972)*(t1973)*(t424) &
    4821           0 :                        + 0.3333333334e0_dp*t165*t437*t1688
    4822           0 :                t4553 = t585*t140
    4823           0 :                t4575 = t1067*t561
    4824             :                t4585 = 0.1666666667e0_dp*t445*t3248*t668 - 0.1111111111e0_dp*t165 &
    4825             :                        *t1932*t433 + 0.5555555556e-1_dp*t1246*t4553*t833 - 0.8333333335e-1_dp &
    4826             :                        *t429*t1275*t593 - 0.8333333335e-1_dp*t429*t462* &
    4827             :                        t3329 + 0.2500000000e0_dp*t1981*t1247*t3314 + 0.1666666667e0_dp* &
    4828             :                        t445*t1962*t1093 + 0.3333333334e0_dp*t165*t455*t668 - 0.8333333335e-1_dp &
    4829             :                        *t429*t166*t3849 - 0.8333333335e-1_dp*t429*t166* &
    4830             :                        t4575 + 0.2e1_dp*t147*(t3491 - t3494 - t3497 + t3501 - t3505 + 0.9000000000e1_dp &
    4831           0 :                                               *t3507 - t3512)*t149*t160
    4832           0 :                t4607 = t1688*t237
    4833             :                t4627 = 0.1666666667e0_dp*t165*t1966*t804 - 0.1666666667e0_dp*t429 &
    4834             :                        *t437*t1557 + 0.1800000000e2_dp*t657*t1387*t59*t1975 + 0.1037037037e1_dp &
    4835             :                        *t170*t341*t585*t1100 - 0.8888888890e0_dp*t170 &
    4836             :                        *t114*t1531*t451 - 0.8888888890e0_dp*t170*t1875*t225 - 0.1666666667e0_dp &
    4837             :                        *t429*t166*t4607 - 0.1111111111e0_dp*t165*t466 &
    4838             :                        *t3449 - 0.1666666667e0_dp*t429*t679*t914 - 0.8333333335e-1_dp* &
    4839             :                        t1246*t446*t1093*t561 + 0.1250000000e0_dp*t1368*t462*t3306 &
    4840           0 :                        + 0.2500000000e0_dp*t1981*t2707*t1410
    4841             :                t4657 = -0.3333333336e0_dp*t289*t84*t3871 - 0.6666666672e0_dp*t83 &
    4842             :                        *t3875*t237 + 0.8333333340e-1_dp*t906*t384*t3306 - 0.1666666668e0_dp &
    4843             :                        *t289*t597*t918 - 0.2222222224e0_dp*t144*t46*(t4018 &
    4844             :                                                       + t4392 + t4428 + t4466 + t4505 + t4545 + t4585 + t4627) - 0.1666666668e0_dp &
    4845             :                        *t289*t384*t3329 - 0.3333333336e0_dp*t165*t2636*t561 &
    4846             :                        - 0.3333333336e0_dp*t165*t897*t1447 + 0.8333333340e-1_dp*t1546 &
    4847             :                        *t897*t3329 - 0.6666666672e0_dp*t83*t1071*t1447 - 0.3333333336e0_dp &
    4848             :                        *t83*t2404*t561 - 0.4444444448e0_dp*t383*t3875 - 0.3333333336e0_dp &
    4849           0 :                        *t289*t294*t1553
    4850             :                t4696 = -0.6666666672e0_dp*t55*t1575 - 0.3333333336e0_dp*t289*t597 &
    4851             :                        *t914 - 0.3333333336e0_dp*t165*t2631*t561 - 0.6666666672e0_dp* &
    4852             :                        t55*t1706 - 0.3333333336e0_dp*t289*t384*t3314 - 0.6666666672e0_dp &
    4853             :                        *t83*t294*t1688 + 0.1666666668e0_dp*t1546*t2631*t1410 - &
    4854             :                        0.3333333336e0_dp*t289*t1564*t290 - 0.1666666668e0_dp*t289*t84 &
    4855             :                        *t4575 - 0.3333333336e0_dp*t289*t294*t1557 - 0.1666666668e0_dp &
    4856             :                        *t289*t1694*t754 - 0.3333333336e0_dp*t289*t84*t4607 - 0.3333333336e0_dp &
    4857           0 :                        *t83*t45*t3581*t140
    4858             :                t4700 = -0.6666666670e0_dp*t2147*t1411 - 0.1333333334e1_dp*t747*t597 &
    4859             :                        *t237 - 0.1333333334e1_dp*t747*t84*t1447 - 0.1333333334e1_dp &
    4860             :                        *t747*t294*t561 - 0.8888888896e0_dp*t214*t1536 + 0.1666666668e0_dp &
    4861             :                        *t3305*t84*t3306 - 0.3333333336e0_dp*t753*t46*t589*t754 &
    4862             :                        - 0.6666666672e0_dp*t1409*t84*t3314 - 0.6666666670e0_dp*t1409 &
    4863             :                        *t294*t1410 - 0.1333333334e1_dp*t217*t46*t1535*t237 - 0.1333333334e1_dp &
    4864             :                        *t217*t46*t282*t1447 - 0.3333333336e0_dp*t1409 &
    4865             :                        *t84*t3329 - 0.6666666672e0_dp*t217*t46*t589*t804 - 0.6666666672e0_dp &
    4866             :                        *t217*t46*t78*t3382 - 0.6666666672e0_dp*t217*t46 &
    4867             :                        *t893*t561 - 0.4444444448e0_dp*t43*t46*t3581 + t8*(t3826 + &
    4868           0 :                                                                           t3869 + t4657 + t4696)
    4869           0 :                e_ndrho_rho_rho_spin(ii) = e_ndrho_rho_rho_spin(ii) + t4700*sx
    4870           0 :                t4701 = t561**2
    4871           0 :                t4704 = 0.3333333336e0_dp*t2147*t84*t4701
    4872           0 :                t4707 = 0.1333333334e1_dp*t747*t597*t561
    4873           0 :                t4708 = t22*t36
    4874           0 :                t4713 = t557**2
    4875           0 :                t4714 = t327*t4713
    4876           0 :                t4717 = t22*t132
    4877           0 :                t4721 = 0.1e1_dp/t787*t2480
    4878           0 :                t4725 = 0.120e2_dp*t624*t4717 - 0.60e1_dp*t7*t4721*t371
    4879           0 :                t4726 = t105*t4725
    4880             :                t4729 = 0.40e1_dp*t624*t4708 - 0.80e1_dp*t112*t558 + 0.40e1_dp*t102 &
    4881           0 :                        *t4714 - 0.20e1_dp*t102*t4726
    4882           0 :                t4732 = 0.6666666672e0_dp*t747*t84*t4729
    4883           0 :                t4733 = pi**2
    4884           0 :                t4734 = t4733*t146
    4885           0 :                t4736 = 0.1e1_dp/t58/omega
    4886           0 :                t4738 = t4734*t4736*t1300
    4887           0 :                t4739 = t4701*t149
    4888           0 :                t4743 = t19*t4701
    4889           0 :                t4744 = t399*t4743
    4890           0 :                t4748 = t151*t19*t4729
    4891           0 :                t4760 = t20*t4701
    4892           0 :                t4764 = t20*t4729
    4893           0 :                t4768 = t58**2
    4894           0 :                t4769 = 0.1e1_dp/t4768
    4895           0 :                t4770 = t4769*t1141
    4896           0 :                t4771 = t4770*t4733
    4897           0 :                t4772 = t26*t4701
    4898           0 :                t4776 = t58*t4729
    4899             :                t4782 = -0.2250000000e2_dp*t473*t4760*t65 + 0.8999999998e1_dp*t478 &
    4900             :                        *t4764*t65 + 0.8099999996e2_dp*t4771*t4772*t65 - 0.5555555558e-1_dp &
    4901           0 :                        *t4776*t71 - 0.5000000001e0_dp*t60*t4729*t65
    4902             :                t4786 = -0.2700000000e2_dp*t4738*t18*t4739 + 0.4500000000e1_dp*t567 &
    4903             :                        *t4744 - 0.3000000000e1_dp*t567*t4748 - 0.8333333335e-1_dp*t429 &
    4904             :                        *t166*t4701 + 0.3333333334e0_dp*t165*t679*t561 + 0.1666666667e0_dp &
    4905           0 :                        *t165*t166*t4729 + 0.3333333334e0_dp*t55*t57*t4782
    4906           0 :                t4789 = 0.4444444448e0_dp*t214*t46*t4786
    4907           0 :                t4790 = t237*t4701
    4908           0 :                t4793 = 0.1666666668e0_dp*t3305*t84*t4790
    4909           0 :                t4796 = 0.6666666672e0_dp*t1409*t597*t1410
    4910           0 :                t4797 = t1447*t561
    4911           0 :                t4800 = 0.6666666672e0_dp*t1409*t84*t4797
    4912           0 :                t4801 = t237*t4729
    4913           0 :                t4804 = 0.3333333336e0_dp*t1409*t84*t4801
    4914           0 :                t4808 = 0.6666666672e0_dp*t217*t46*t4786*t237
    4915           0 :                t4812 = 0.1333333334e1_dp*t217*t46*t589*t1447
    4916           0 :                t4817 = t953*t4713
    4917           0 :                t4820 = t316*t4725
    4918           0 :                t4829 = t233*t4713
    4919           0 :                t4830 = t974*t4829
    4920           0 :                t4833 = t1443*t557
    4921           0 :                t4834 = t327*t4833
    4922           0 :                t4837 = t233*t4725
    4923           0 :                t4838 = t327*t4837
    4924             :                t4849 = -0.3200000000e2_dp*t1645*t627 + 0.4800000000e2_dp*t7*t1440 &
    4925           0 :                        - 0.2400000000e2_dp*t786/t2492*t1058
    4926           0 :                t4850 = t105*t4849
    4927             :                t4853 = -0.1066666667e2_dp*t1645*t98 + 0.2133333334e2_dp*t339*t1420 &
    4928             :                        - 0.1066666667e2_dp*t321*t4817 + 0.5333333333e1_dp*t321*t4820 &
    4929             :                        - 0.40e1_dp*t624*t234 + 0.160e2_dp*t112*t1426 - 0.80e1_dp*t112* &
    4930             :                        t1444 - 0.120e2_dp*t102*t4830 + 0.80e1_dp*t102*t4834 + 0.40e1_dp* &
    4931           0 :                        t102*t4838 - 0.20e1_dp*t102*t4850
    4932           0 :                t4857 = 0.6666666672e0_dp*t217*t46*t78*t4853
    4933           0 :                t4861 = 0.3333333336e0_dp*t753*t46*t282*t4701
    4934           0 :                t4864 = t217*t46*t1535*t561
    4935           0 :                t4869 = 0.6666666672e0_dp*t217*t46*t282*t4729
    4936           0 :                t4872 = 0.8333333335e-1_dp*t429*t437*t4701
    4937           0 :                t4874 = t165*t1928*t561
    4938           0 :                t4878 = 0.1666666667e0_dp*t165*t437*t4729
    4939           0 :                t4881 = 0.5400000000e2_dp*t1143*t1493*t4701
    4940           0 :                t4884 = 0.3600000000e2_dp*t473*t2035*t561
    4941           0 :                t4887 = 0.1800000000e2_dp*t473*t1493*t4729
    4942           0 :                t4889 = t178*t62*t4853
    4943           0 :                t4893 = 0.1200000000e2_dp*t473*t1500*t4701
    4944           0 :                t4895 = t478*t1500*t4729
    4945             :                t4897 = t4881 - t4884 - t4887 + 0.8999999998e1_dp*t4889 - t4893 + 0.5999999999e1_dp &
    4946           0 :                        *t4895
    4947           0 :                t4898 = t4897*t65
    4948           0 :                t4901 = t1504*t59*t177*t710
    4949           0 :                t4904 = t4701*t65
    4950           0 :                t4905 = t62*t4904
    4951           0 :                t4907 = 0.2250000000e2_dp*t1506*t471*t4905
    4952           0 :                t4908 = t4729*t65
    4953           0 :                t4909 = t62*t4908
    4954           0 :                t4911 = 0.8999999998e1_dp*t1507*t4909
    4955           0 :                t4915 = t4733*t26*t4904
    4956           0 :                t4917 = 0.8099999996e2_dp*t266*t4769*t1141*t4915
    4957           0 :                t4918 = t58*t4853
    4958           0 :                t4920 = 0.5555555558e-1_dp*t4918*t71
    4959           0 :                t4922 = t1447*t177*t709
    4960           0 :                t4925 = 0.5000000001e0_dp*t1513*t4908
    4961           0 :                t4929 = t60*t1504*t709
    4962           0 :                t4932 = 0.5000000001e0_dp*t1528*t4908
    4963           0 :                t4935 = 0.1000000000e1_dp*t237*t471*t4904
    4964           0 :                t4940 = t59*pi*t20*t65
    4965           0 :                t4941 = t237*t1141*t4701*t4940
    4966           0 :                t4943 = t4776*t67
    4967           0 :                t4945 = 0.3703703705e-1_dp*t4943*t271
    4968           0 :                t4946 = t471*t1518
    4969           0 :                t4951 = 0.5555555558e-1_dp*t4943*t275
    4970           0 :                t4952 = t719*t1525
    4971           0 :                t4955 = t68*t4897*t65
    4972             :                t4958 = t4898 + 0.1800000000e2_dp*t4901 - t4907 + t4911 + t4917 - t4920 &
    4973             :                        - 0.1000000000e1_dp*t4922 - t4925 + 0.3333333334e0_dp*t1519*t4908 &
    4974             :                        - 0.1000000000e1_dp*t4929 - t4932 + t4935 - 0.4500000000e1_dp*t4941 &
    4975             :                        + t4945 + 0.3000000000e1_dp*t4946*t4701*t4940 - t4951 - 0.1111111112e0_dp &
    4976           0 :                        *t4952 - 0.5555555558e-1_dp*t192*t4955
    4977           0 :                t4994 = t44*t4733*t146
    4978           0 :                t4995 = t4994*t4770
    4979           0 :                t5001 = 0.1666666667e0_dp*t165*t166*t4853
    4980           0 :                t5002 = t17*t4701
    4981           0 :                t5005 = 0.2777777778e-1_dp*t429*t171*t5002
    4982           0 :                t5008 = 0.1111111111e0_dp*t165*t689*t1483
    4983           0 :                t5009 = t17*t4729
    4984           0 :                t5011 = t165*t171*t5009
    4985           0 :                t5013 = t27*t4782
    4986           0 :                t5016 = 0.1111111111e0_dp*t170*t5013*t17
    4987           0 :                t5019 = 0.1250000000e0_dp*t1368*t166*t4790
    4988           0 :                t5022 = 0.1666666667e0_dp*t429*t679*t1410
    4989           0 :                t5025 = 0.1666666667e0_dp*t429*t166*t4797
    4990           0 :                t5028 = 0.8333333335e-1_dp*t429*t166*t4801
    4991           0 :                t5029 = t56*t4782
    4992           0 :                t5032 = 0.1666666667e0_dp*t165*t5029*t237
    4993           0 :                t5035 = 0.3333333334e0_dp*t165*t679*t1447
    4994             :                t5036 = -t4872 + 0.3333333334e0_dp*t4874 + t4878 + 0.3333333334e0_dp* &
    4995             :                        t55*t57*t4958 + 0.2e1_dp*t147*t149*(-0.5625000000e1_dp*t1302 &
    4996             :                                                            *t1459*t4701 + 0.4500000000e1_dp*t400*t2022*t561 + 0.2250000000e1_dp &
    4997             :                                                            *t400*t1459*t4729 - 0.1500000000e1_dp*t151*t50*t4853 &
    4998             :                                                            + 0.7500000000e0_dp*t400*t1466*t4701 - 0.5000000000e0_dp*t405 &
    4999             :                                                            *t1466*t4729) - 0.3600000000e2_dp*t2081*t4760*t250 + 0.1800000000e2_dp &
    5000             :                        *t658*t4764*t250 + 0.3600000000e2_dp*t658*t575*t1471 &
    5001             :                        + 0.1620000000e3_dp*t4995*t4772*t250 + t5001 + t5005 - t5008 &
    5002             :                        - 0.5555555555e-1_dp*t5011 - t5016 + t5019 - t5022 - t5025 - t5028 &
    5003           0 :                        + t5032 + t5035
    5004           0 :                t5040 = t379*t4729
    5005           0 :                t5043 = 0.1666666668e0_dp*t289*t84*t5040
    5006           0 :                t5044 = t140*t4853
    5007           0 :                t5047 = 0.1666666668e0_dp*t289*t84*t5044
    5008           0 :                t5050 = 0.1666666668e0_dp*t165*t897*t4729
    5009           0 :                t5051 = beta*t86
    5010           0 :                t5060 = beta*t92
    5011           0 :                t5065 = rho*t4713
    5012           0 :                t5069 = rho*t4725
    5013           0 :                t5079 = t136*t4713
    5014           0 :                t5083 = t645*t557
    5015           0 :                t5087 = t136*t4725
    5016           0 :                t5106 = beta*t640
    5017           0 :                t5108 = t126*t371*ndrho
    5018           0 :                t5115 = t366*t640
    5019             :                t5118 = -0.480e2_dp*t5051*t4717 + 0.240e2_dp*t7*t2182*t2480*t371 &
    5020             :                        + 0.480e2_dp*t5060*t628 - 0.240e2_dp*t7*t1640*t1438*t371 &
    5021             :                        *rho + 0.120e2_dp*t550*t637 - 0.180e2_dp*t5106*t5108 - 0.120e2_dp &
    5022           0 :                        *t7*t640*t635*t371 + 0.180e2_dp*t5115*t1681
    5023             :                t5122 = -0.320e2_dp*t5051*t4708 + 0.640e2_dp*t1582*t558 - 0.320e2_dp &
    5024             :                        *t302*t4714 + 0.160e2_dp*t302*t4726 + 0.320e2_dp*t5060*t99 - &
    5025             :                        0.640e2_dp*t605*t609 + 0.320e2_dp*t93*t953*t5065 - 0.160e2_dp* &
    5026             :                        t93*t316*t5069 - 0.40e1_dp*t624*t137 + 0.160e2_dp*t112*t615 &
    5027             :                        - 0.80e1_dp*t112*t646 - 0.120e2_dp*t102*t974*t5079 + 0.80e1_dp* &
    5028             :                        t102*t327*t5083 + 0.40e1_dp*t102*t327*t5087 - 0.20e1_dp*t102 &
    5029           0 :                        *t105*t5118
    5030           0 :                t5123 = t5122*t237
    5031           0 :                t5126 = 0.1666666668e0_dp*t289*t84*t5123
    5032           0 :                t5139 = t25*t4701
    5033           0 :                t5143 = t25*t4729
    5034             :                t5147 = -0.5625000000e1_dp*t1302*t401*t4701 + 0.4500000000e1_dp*t400 &
    5035             :                        *t1892*t561 + 0.2250000000e1_dp*t400*t401*t4729 - 0.1500000000e1_dp &
    5036             :                        *t151*t50*t5122 - 0.2250000000e1_dp*t400*t156*t5139 &
    5037           0 :                        + 0.1500000000e1_dp*t405*t156*t5143
    5038           0 :                t5163 = t140*t4701
    5039           0 :                t5170 = t649*t561
    5040           0 :                t5174 = t140*t4729
    5041             :                t5226 = 0.5400000000e2_dp*t1143*t474*t4701 - 0.3600000000e2_dp*t473 &
    5042             :                        *t1801*t561 - 0.1800000000e2_dp*t473*t474*t4729 + 0.8999999998e1_dp &
    5043             :                        *t178*t62*t5122 + 0.3600000000e2_dp*t473*t183*t5139 &
    5044           0 :                        - 0.1800000000e2_dp*t478*t183*t5143
    5045           0 :                t5228 = t705*t59
    5046           0 :                t5229 = t5228*t177
    5047           0 :                t5237 = t649*t177
    5048           0 :                t5244 = t60*t705
    5049           0 :                t5247 = t187*t4769
    5050           0 :                t5251 = t58*t5122
    5051           0 :                t5256 = t140*t1141
    5052           0 :                t5262 = t471*t722
    5053           0 :                t5270 = t68*t5226
    5054           0 :                t5271 = t5270*t65
    5055             :                t5276 = t5226*t65 + 0.1800000000e2_dp*t5229*t710 - 0.2250000000e2_dp &
    5056             :                        *t707*t471*t4905 + 0.8999999998e1_dp*t708*t4909 - 0.1000000000e1_dp &
    5057             :                        *t5237*t709 - 0.5000000001e0_dp*t716*t4908 - 0.1000000001e1_dp &
    5058             :                        *t723*t4908 - 0.1000000000e1_dp*t5244*t709 + 0.8099999996e2_dp &
    5059             :                        *t5247*t1141*t4915 - 0.5555555558e-1_dp*t5251*t71 + 0.1000000000e1_dp &
    5060             :                        *t2098*t4904 - 0.4500000000e1_dp*t5256*t4701*t4940 &
    5061             :                        - 0.1111111112e0_dp*t4943*t196 - 0.9000000007e1_dp*t5262*t4701 &
    5062             :                        *t4940 - 0.5555555558e-1_dp*t4943*t200 - 0.1111111112e0_dp*t719* &
    5063           0 :                        t729 - 0.5555555558e-1_dp*t192*t5271 - 0.5000000001e0_dp*t732*t4908
    5064             :                t5280 = (2*t147*t149*t5147) - 0.3600000000e2_dp*t2081*t4760 &
    5065             :                        *t161 + 0.1800000000e2_dp*t658*t4764*t161 + 0.3600000000e2_dp &
    5066             :                        *t658*t575*t673 + 0.1620000000e3_dp*t4995*t4772*t161 + 0.1250000000e0_dp &
    5067             :                        *t1368*t166*t5163 - 0.1666666667e0_dp*t429*t679 &
    5068             :                        *t593 - 0.1666666667e0_dp*t429*t166*t5170 - 0.8333333335e-1_dp* &
    5069             :                        t429*t166*t5174 + 0.1666666667e0_dp*t165*t5029*t140 + 0.3333333334e0_dp &
    5070             :                        *t165*t679*t649 + 0.1666666667e0_dp*t165*t166*t5122 &
    5071             :                        - 0.8333333335e-1_dp*t1246*t446*t5139 + 0.3333333334e0_dp*t445 &
    5072             :                        *t1962*t668 + 0.1666666667e0_dp*t445*t446*t5143 + 0.3333333334e0_dp &
    5073             :                        *t170*t5013*t172 - 0.8333333335e-1_dp*t429*t462*t4701 &
    5074             :                        + 0.3333333334e0_dp*t165*t1966*t561 + 0.1666666667e0_dp*t165 &
    5075           0 :                        *t462*t4729 + 0.3333333334e0_dp*t55*t57*t5276
    5076           0 :                t5281 = t45*t5280
    5077           0 :                t5284 = 0.3333333336e0_dp*t83*t5281*t237
    5078           0 :                t5291 = 0.1666666668e0_dp*t289*t384*t4801
    5079           0 :                t5294 = 0.1666666668e0_dp*t1546*t3865*t1410
    5080           0 :                t5295 = t45*t4786
    5081           0 :                t5298 = 0.3333333336e0_dp*t83*t5295*t379
    5082           0 :                t5301 = 0.3333333336e0_dp*t55*t384*t4729
    5083           0 :                t5303 = t83*t1564*t649
    5084             :                t5305 = -t5043 - t5047 - t5050 - t5126 - t5284 - 0.3333333336e0_dp*t83 &
    5085             :                        *t45*t5036*t140 - t5291 + t5294 - t5298 - t5301 - 0.6666666672e0_dp &
    5086           0 :                        *t5303
    5087           0 :                t5308 = 0.3333333336e0_dp*t289*t1694*t1410
    5088           0 :                t5311 = 0.1666666668e0_dp*t289*t1071*t4701
    5089           0 :                t5314 = 0.1666666668e0_dp*t289*t5295*t290
    5090           0 :                t5317 = 0.3333333336e0_dp*t165*t3861*t561
    5091           0 :                t5320 = 0.3333333336e0_dp*t83*t1071*t4729
    5092           0 :                t5323 = 0.1666666668e0_dp*t1546*t3861*t1410
    5093           0 :                t5326 = 0.1250000001e0_dp*t3842*t897*t4790
    5094           0 :                t5329 = 0.6666666672e0_dp*t83*t1694*t1447
    5095           0 :                t5330 = t379*t4701
    5096           0 :                t5333 = 0.8333333340e-1_dp*t906*t84*t5330
    5097           0 :                t5335 = 0.2222222224e0_dp*t383*t5281
    5098           0 :                t5338 = 0.6666666672e0_dp*t55*t1694*t561
    5099           0 :                t5339 = t649*t1447
    5100           0 :                t5342 = 0.3333333336e0_dp*t289*t84*t5339
    5101             :                t5343 = -t5308 - t5311 - t5314 - t5317 - t5320 + t5323 - t5326 - t5329 &
    5102           0 :                        + t5333 - t5335 - t5338 - t5342
    5103           0 :                t5345 = t1688*t561
    5104           0 :                t5347 = t289*t84*t5345
    5105           0 :                t5351 = 0.1666666668e0_dp*t164*t384*t4701
    5106           0 :                t5354 = 0.3333333336e0_dp*t83*t384*t4853
    5107           0 :                t5357 = 0.6666666672e0_dp*t55*t597*t649
    5108           0 :                t5360 = 0.3333333336e0_dp*t289*t384*t4797
    5109           0 :                t5363 = 0.8333333335e-1_dp*t429*t166*t5040
    5110           0 :                t5367 = 0.1666666667e0_dp*t445*t4782*rho*t413
    5111           0 :                t5370 = 0.1666666667e0_dp*t429*t679*t1557
    5112           0 :                t5371 = t225*t4701
    5113           0 :                t5373 = t2885*t446*t5371
    5114           0 :                t5376 = t165*t466*t5009
    5115           0 :                t5379 = t165*t1928*t649
    5116           0 :                t5383 = 0.4166666667e-1_dp*t2763*t1247*t5002
    5117           0 :                t5386 = 0.8333333335e-1_dp*t429*t5029*t290
    5118           0 :                t5389 = 0.8333333335e-1_dp*t429*t166*t5044
    5119           0 :                t5397 = 0.8333333335e-1_dp*t1246*t446*t413*t4729
    5120           0 :                t5400 = 0.3333333334e0_dp*t445*t1962*t1825
    5121           0 :                t5402 = t165*t679*t1688
    5122           0 :                t5406 = 0.8333333335e-1_dp*t429*t166*t5123
    5123           0 :                t5409 = 0.8333333335e-1_dp*t429*t1392*t4701
    5124           0 :                t5412 = 0.8333333335e-1_dp*t429*t171*t5139
    5125           0 :                t5415 = 0.1666666667e0_dp*t429*t462*t4797
    5126           0 :                t5418 = 2*t147*t393*t5147
    5127           0 :                t5421 = t657*t1884*t59*t1975
    5128             :                t5423 = -t5363 + t5367 - t5370 + 0.1111111111e0_dp*t5373 - 0.5555555555e-1_dp &
    5129             :                        *t5376 + 0.3333333334e0_dp*t5379 - t5383 - t5386 - t5389 + &
    5130             :                        0.3333333334e0_dp*t170*t27*t4958*t172 - t5397 + t5400 + 0.3333333334e0_dp &
    5131             :                        *t5402 - t5406 - t5409 - t5412 - t5415 + t5418 + 0.3600000000e2_dp &
    5132           0 :                        *t5421
    5133           0 :                t5426 = 0.8333333335e-1_dp*t1246*t1292*t5139
    5134           0 :                t5429 = 0.1666666667e0_dp*t445*t1292*t5143
    5135           0 :                t5430 = t225*t4729
    5136           0 :                t5432 = t1373*t446*t5430
    5137           0 :                t5436 = 0.1666666667e0_dp*t165*t5029*t379
    5138           0 :                t5440 = 0.40e1_dp*t102*t327*t375*t4725
    5139           0 :                t5443 = 0.960e2_dp*t1597*t3608*t4829
    5140           0 :                t5446 = 0.480e2_dp*t24*t23*t1618
    5141           0 :                t5449 = 0.1173333333e3_dp*t307*t2611*t5065
    5142           0 :                t5451 = 0.640e2_dp*t605*t1603
    5143           0 :                t5454 = 0.2133333334e2_dp*t321*t953*t5083
    5144           0 :                t5456 = 0.1280e3_dp*t1582*t1426
    5145           0 :                t5459 = 0.5333333333e1_dp*t321*t316*t5118
    5146           0 :                t5460 = beta*t306
    5147           0 :                t5462 = 0.1173333333e3_dp*t5460*t313
    5148           0 :                t5466 = 0.40e1_dp*t102*t327*t136*t4849
    5149           0 :                t5468 = 0.2346666666e3_dp*t605*t1420
    5150             :                t5469 = t5440 - t5443 - t5446 - t5449 - t5451 - t5454 - t5456 + t5459 &
    5151           0 :                        - t5462 + t5466 - t5468
    5152           0 :                t5472 = 0.3200000001e2_dp*t321*t2455*t5079
    5153           0 :                t5474 = 0.4266666668e2_dp*t339*t1608
    5154           0 :                t5478 = 0.240e2_dp*t1616*t973*t645*t1425
    5155           0 :                t5480 = 0.1760000000e3_dp*t5060*t627
    5156           0 :                t5482 = 0.2160000000e3_dp*t7*t1642
    5157           0 :                t5484 = 0.1760000000e3_dp*t5460*t347
    5158           0 :                t5487 = 0.2160000000e3_dp*t7*t995*t1652
    5159           0 :                t5489 = 0.1600000000e2_dp*t1429*t1658
    5160           0 :                t5492 = 0.7200000000e2_dp*beta*t368*t5108
    5161           0 :                t5494 = 0.6400000000e2_dp*t7*t1677
    5162           0 :                t5496 = t366*t368*t1681
    5163           0 :                t5499 = 0.120e2_dp*t550*t1669
    5164           0 :                t5503 = 0.180e2_dp*t5106*t360*t371*ndrho
    5165           0 :                t5507 = 0.120e2_dp*t7*t640*t1667*t371
    5166           0 :                t5509 = 0.180e2_dp*t5115*t3668
    5167           0 :                t5511 = t1680*t3673*t23
    5168             :                t5516 = t5480 - t5482 - t5484 + t5487 - t5489 + t5492 + t5494 - 0.1920000000e3_dp &
    5169             :                        *t5496 + t5499 - t5503 - t5507 + t5509 - 0.4800000000e2_dp &
    5170           0 :                        *t5511 + 0.1200000000e3_dp*t1055*t2565*t4721
    5171           0 :                t5523 = 0.120e2_dp*t102*t974*t375*t4713
    5172           0 :                t5525 = 0.2133333334e2_dp*t339*t1611
    5173           0 :                t5528 = t102*t327*t1684*t557
    5174           0 :                t5531 = 0.160e2_dp*t112*t1626
    5175           0 :                t5533 = 0.160e2_dp*t112*t1632
    5176           0 :                t5535 = 0.640e2_dp*t1582*t1444
    5177           0 :                t5537 = 0.160e2_dp*t112*t1622
    5178           0 :                t5540 = 0.320e2_dp*t1597*t1598*t4837
    5179             :                t5541 = t5472 - t5474 - t5478 - 0.20e1_dp*t102*t105*t5516 - t5523 &
    5180           0 :                        + t5525 + 0.80e1_dp*t5528 + t5531 + t5533 + t5535 + t5537 + t5540
    5181           0 :                t5545 = 0.480e2_dp*t1616*t3750*t4829
    5182           0 :                t5548 = 0.120e2_dp*t1616*t1617*t4837
    5183           0 :                t5551 = 0.1280e3_dp*t24*t298*t1599
    5184           0 :                t5553 = 0.160e2_dp*t302*t4850
    5185           0 :                t5558 = 0.320e2_dp*t5060*t97*t104*rho*t233
    5186           0 :                t5560 = 0.2346666666e3_dp*t1589*t1592
    5187           0 :                t5562 = 0.5866666667e2_dp*t93*t4820
    5188           0 :                t5564 = 0.1173333333e3_dp*t5060*t98
    5189           0 :                t5565 = t112*t1685
    5190           0 :                t5568 = 0.1066666667e2_dp*t1645*t322
    5191           0 :                t5572 = 0.40e1_dp*t102*t327*t5118*t233
    5192           0 :                t5574 = 0.1173333333e3_dp*t93*t4817
    5193             :                t5575 = t5545 - t5548 + t5551 + t5553 - t5558 + t5560 - t5562 + t5564 &
    5194           0 :                        - 0.80e1_dp*t5565 + t5568 + t5572 + t5574
    5195           0 :                t5579 = 0.80e1_dp*t102*t327*t645*t1443
    5196           0 :                t5581 = 0.320e2_dp*t302*t4838
    5197           0 :                t5585 = 0.160e2_dp*t93*t316*rho*t4849
    5198           0 :                t5590 = 0.80e1_dp*t624*t22*t326*t136*t233
    5199           0 :                t5593 = 0.1066666667e2_dp*t321*t953*t5087
    5200           0 :                t5595 = 0.640e2_dp*t302*t4834
    5201           0 :                t5597 = 0.960e2_dp*t302*t4830
    5202           0 :                t5600 = 0.240e2_dp*t1616*t1617*t4833
    5203           0 :                t5602 = 0.40e1_dp*t624*t376
    5204           0 :                t5604 = 0.320e2_dp*t5051*t234
    5205           0 :                t5607 = 0.5866666667e2_dp*t307*t949*t5069
    5206           0 :                t5610 = 0.640e2_dp*t1597*t1598*t4833
    5207             :                t5611 = t5579 - t5581 - t5585 + t5590 - t5593 - t5595 + t5597 - t5600 &
    5208           0 :                        - t5602 + t5604 + t5607 + t5610
    5209           0 :                t5613 = t5469 + t5541 + t5575 + t5611
    5210           0 :                t5619 = 0.3333333334e0_dp*t170*t5013*t25
    5211           0 :                t5622 = 0.1666666667e0_dp*t165*t1392*t4729
    5212           0 :                t5625 = 0.1666666667e0_dp*t429*t166*t5339
    5213           0 :                t5628 = 0.3600000000e2_dp*t2081*t4760*t425
    5214           0 :                t5631 = 0.5555555556e-1_dp*t1246*t4032*t1483
    5215           0 :                t5632 = t25*t4853
    5216           0 :                t5635 = 0.1500000000e1_dp*t405*t156*t5632
    5217           0 :                t5638 = 0.2250000000e1_dp*t400*t1333*t4701
    5218           0 :                t5641 = 0.1500000000e1_dp*t405*t1333*t4729
    5219           0 :                t5643 = t400*t3975*t561
    5220           0 :                t5647 = 0.5625000000e1_dp*t1302*t1309*t4701
    5221           0 :                t5650 = 0.5625000000e1_dp*t1302*t401*t4801
    5222           0 :                t5653 = 0.4500000000e1_dp*t400*t1892*t1447
    5223           0 :                t5657 = 0.5000000000e0_dp*t405*t68*t5122*t17
    5224           0 :                t5660 = 0.1125000000e2_dp*t1302*t401*t4797
    5225           0 :                t5663 = 0.1500000000e1_dp*t400*t417*t5371
    5226           0 :                t5666 = 0.1125000000e2_dp*t1302*t1892*t1410
    5227             :                t5667 = t5635 - t5638 + t5641 + 0.4500000000e1_dp*t5643 - t5647 - t5650 &
    5228           0 :                        + t5653 - t5657 - t5660 + t5663 - t5666
    5229           0 :                t5670 = 0.2250000000e1_dp*t400*t1309*t4729
    5230           0 :                t5671 = t172*t4801
    5231           0 :                t5673 = 0.2250000000e1_dp*t1912*t5671
    5232           0 :                t5676 = 0.2250000000e1_dp*t400*t401*t4853
    5233           0 :                t5679 = 0.1875000000e1_dp*t1302*t406*t5002
    5234           0 :                t5682 = 0.1500000000e1_dp*t400*t1902*t1483
    5235           0 :                t5686 = 0.2250000000e1_dp*t400*t19*t5122*t237
    5236           0 :                t5689 = 0.1000000000e1_dp*t405*t417*t5430
    5237           0 :                t5692 = 0.1968750000e2_dp*t2823*t401*t4790
    5238           0 :                t5695 = 0.7500000000e0_dp*t400*t406*t5009
    5239           0 :                t5696 = t172*t4790
    5240           0 :                t5698 = 0.5625000000e1_dp*t3939*t5696
    5241           0 :                t5699 = t172*t4797
    5242           0 :                t5701 = 0.4500000000e1_dp*t1912*t5699
    5243             :                t5705 = t5670 - t5673 + t5676 - t5679 + t5682 + t5686 - t5689 + t5692 &
    5244           0 :                        + t5695 + t5698 - t5701 - 0.1500000000e1_dp*t151*t50*t5613
    5245           0 :                t5713 = t4739*t160
    5246           0 :                t5716 = 0.1620000000e3_dp*t4994*t392*t4769*t1141*t26*t5713
    5247           0 :                t5719 = 0.3333333334e0_dp*t165*t1966*t1447
    5248           0 :                t5722 = 0.1111111111e0_dp*t165*t689*t1988
    5249           0 :                t5724 = t429*t166*t5345
    5250           0 :                t5728 = 0.2500000000e0_dp*t1981*t1247*t4797
    5251           0 :                t5731 = 0.1666666667e0_dp*t445*t446*t5632
    5252           0 :                t5734 = 0.1666666667e0_dp*t429*t679*t1553
    5253           0 :                t5738 = 0.4444444445e0_dp*t170*t114*t4782*t451
    5254           0 :                t5741 = 0.1666666667e0_dp*t165*t171*t5143
    5255             :                t5742 = -t5426 + t5429 - 0.2222222222e0_dp*t5432 + t5436 + 0.1666666667e0_dp &
    5256             :                        *t165*t166*t5613 + t5619 + t5622 - t5625 - t5628 + t5631 &
    5257             :                        + (2*t147*t149*(t5667 + t5705)) + t5716 + t5719 - t5722 &
    5258           0 :                        - 0.1666666667e0_dp*t5724 + t5728 + t5731 - t5734 - t5738 + t5741
    5259           0 :                t5745 = t165*t4498*t561
    5260           0 :                t5749 = 0.1666666667e0_dp*t429*t437*t5170
    5261           0 :                t5752 = 0.8333333335e-1_dp*t429*t462*t4801
    5262           0 :                t5756 = 0.1111111111e0_dp*t170*t27*t5276*t17
    5263           0 :                t5760 = 0.1250000000e0_dp*t2763*t446*t413*t4701
    5264           0 :                t5767 = 0.1666666667e0_dp*t165*t437*t5122
    5265           0 :                t5770 = 0.1620000000e3_dp*t4995*t4772*t425
    5266           0 :                t5773 = 0.1250000000e0_dp*t1368*t437*t5163
    5267           0 :                t5776 = 0.2777777778e-1_dp*t1246*t1247*t5009
    5268           0 :                t5780 = 0.1666666667e0_dp*t165*t56*t5276*t237
    5269           0 :                t5783 = 0.5555555557e-1_dp*t165*t5013*t433
    5270           0 :                t5786 = 0.3333333334e0_dp*t165*t689*t668
    5271           0 :                t5789 = 0.1250000000e0_dp*t1368*t166*t5330
    5272           0 :                t5792 = 0.2777777778e-1_dp*t429*t466*t5002
    5273           0 :                t5795 = 0.1111111111e0_dp*t165*t1940*t1483
    5274           0 :                t5797 = t1373*t1962*t1829
    5275           0 :                t5801 = 0.3600000000e2_dp*t1143*t479*t5002
    5276           0 :                t5804 = 0.2400000000e2_dp*t473*t1811*t1483
    5277           0 :                t5807 = 0.2160000000e3_dp*t2994*t474*t4790
    5278           0 :                t5810 = 0.1080000000e3_dp*t1143*t1801*t1410
    5279           0 :                t5813 = 0.1800000000e2_dp*t478*t183*t5632
    5280           0 :                t5816 = 0.3600000000e2_dp*t473*t1176*t4701
    5281           0 :                t5819 = 0.1800000000e2_dp*t478*t1176*t4729
    5282           0 :                t5822 = 0.1800000000e2_dp*t473*t474*t4853
    5283           0 :                t5825 = 0.1200000000e2_dp*t473*t479*t5009
    5284           0 :                t5828 = 0.3600000000e2_dp*t473*t1801*t1447
    5285           0 :                t5830 = 0.1080000000e3_dp*t4230*t5696
    5286             :                t5831 = t5801 - t5804 - t5807 + t5810 - t5813 + t5816 - t5819 - t5822 &
    5287           0 :                        - t5825 - t5828 - t5830
    5288           0 :                t5833 = 0.7200000000e2_dp*t1821*t5699
    5289           0 :                t5835 = 0.3600000000e2_dp*t1821*t5671
    5290           0 :                t5838 = 0.1080000000e3_dp*t1143*t474*t4797
    5291           0 :                t5841 = 0.5400000000e2_dp*t1143*t474*t4801
    5292           0 :                t5845 = 0.1800000000e2_dp*t473*t20*t5122*t237
    5293           0 :                t5848 = 0.5400000000e2_dp*t1143*t1150*t4701
    5294           0 :                t5850 = t473*t4201*t561
    5295           0 :                t5854 = 0.1200000000e2_dp*t473*t489*t5371
    5296           0 :                t5857 = 0.6000000000e1_dp*t478*t489*t5430
    5297           0 :                t5861 = 0.5999999999e1_dp*t478*t56*t5122*t17
    5298           0 :                t5864 = 0.1800000000e2_dp*t473*t1150*t4729
    5299             :                t5868 = t5833 + t5835 + t5838 + t5841 - t5845 + t5848 - 0.3600000000e2_dp &
    5300             :                        *t5850 - t5854 + t5857 + t5861 - t5864 + 0.8999999998e1_dp*t178 &
    5301           0 :                        *t62*t5613
    5302           0 :                t5869 = t5831 + t5868
    5303           0 :                t5875 = t1447*t187*t1722
    5304           0 :                t5880 = 0.3703703705e-1_dp*t192*t194*t5226*t526
    5305           0 :                t5881 = t1141*t4701
    5306           0 :                t5885 = t719*t1769
    5307           0 :                t5888 = t60*t1836*t709
    5308           0 :                t5891 = 0.5555555558e-1_dp*t4943*t534
    5309           0 :                t5898 = t705*t1504*t65
    5310           0 :                t5902 = 0.1800000000e2_dp*t1718*t178*t710
    5311           0 :                t5905 = 0.5555555558e-1_dp*t192*t5270*t267
    5312           0 :                t5908 = t1836*t59*t177*t710
    5313           0 :                t5911 = t266*t4729*t65
    5314           0 :                t5913 = 0.1000000001e1_dp*t723*t5911
    5315           0 :                t5918 = t140*t1504*t1722
    5316           0 :                t5922 = 0.1111111112e0_dp*t4776*t515*t517
    5317           0 :                t5925 = 0.8099999996e2_dp*t498*t4770*t4915
    5318             :                t5926 = -0.5555555558e-1_dp*t192*t68*t5869*t65 - 0.1000000000e1_dp &
    5319             :                        *t5875 + t5880 + 0.3000000000e1_dp*t1748*t5881*t4940 - 0.1111111112e0_dp &
    5320             :                        *t5885 - 0.1000000000e1_dp*t5888 - t5891 + t5869*t65 + &
    5321             :                        0.666666666e0_dp*t1519*t722*t4729*t65 + (2*t5898) + t5902 &
    5322             :                        - t5905 + 0.1800000000e2_dp*t5908 - t5913 - 0.1111111112e0_dp*t516 &
    5323           0 :                        *t4898*t172 - 0.1000000000e1_dp*t5918 - t5922 + t5925
    5324           0 :                t5929 = 0.2250000000e2_dp*t1740*t471*t4905
    5325           0 :                t5932 = 0.1000000000e1_dp*t649*t266*t1722
    5326           0 :                t5938 = t192*t728*t1505
    5327           0 :                t5940 = t4918*t67
    5328           0 :                t5942 = 0.1111111112e0_dp*t5940*t196
    5329           0 :                t5944 = t1447*t722*t1722
    5330           0 :                t5949 = 0.8999999998e1_dp*t1795*t4909
    5331           0 :                t5952 = 0.9000000007e1_dp*t1763*t5881*t4940
    5332           0 :                t5954 = 0.8999999998e1_dp*t1741*t4909
    5333           0 :                t5956 = t471*t4701*t65
    5334           0 :                t5958 = 0.1000000000e1_dp*t1766*t5956
    5335           0 :                t5960 = 0.5555555558e-1_dp*t5940*t200
    5336           0 :                t5963 = 0.1000000000e1_dp*t379*t471*t4904
    5337           0 :                t5964 = t1715*t1525
    5338           0 :                t5966 = t1785*t1790
    5339           0 :                t5971 = 0.4500000000e1_dp*t379*t1141*t4701*t4940
    5340           0 :                t5973 = 0.5555555558e-1_dp*t4943*t531
    5341           0 :                t5975 = t5226*t266*t65
    5342           0 :                t5977 = 0.1111111112e0_dp*t1755*t729
    5343             :                t5978 = -t5929 - t5932 + 0.3333333334e0_dp*t1519*t187*t4729*t65 &
    5344             :                        - 0.1111111112e0_dp*t5938 - t5942 - 0.2000000002e1_dp*t5944 - 0.5555555558e-1_dp &
    5345             :                        *t503*t4955 + t5949 - t5952 + t5954 + t5958 - t5960 &
    5346             :                        + t5963 - 0.1111111112e0_dp*t5964 - 0.2222222224e0_dp*t5966 - t5971 &
    5347           0 :                        - t5973 + t5975 - t5977
    5348           0 :                t5985 = 0.5000000001e0_dp*t1774*t4908
    5349           0 :                t5990 = t177*t4729*t65
    5350           0 :                t5994 = 0.5000000001e0_dp*t1766*t5990
    5351           0 :                t5996 = 0.3703703705e-1_dp*t4943*t527
    5352           0 :                t6000 = 0.9000000007e1_dp*t5262*t266*t4701*t4940
    5353           0 :                t6002 = 0.1851851853e0_dp*t4943*t512
    5354           0 :                t6004 = t1709*t178*t710
    5355           0 :                t6006 = t719*t1838
    5356           0 :                t6009 = 0.5000000001e0_dp*t1777*t4908
    5357           0 :                t6017 = 0.5000000001e0_dp*t732*t5911
    5358           0 :                t6019 = 0.7407407410e-1_dp*t719*t1726
    5359           0 :                t6021 = t649*t1518*t1722
    5360           0 :                t6023 = t5251*t67
    5361           0 :                t6025 = 0.3703703705e-1_dp*t6023*t271
    5362             :                t6029 = 0.5999999993e1_dp*t4946*t722*t4701*t4940 - t5985 - 0.5555555558e-1_dp &
    5363             :                        *t192*t199*t4898 + 0.3333333334e0_dp*t1748*t5990 &
    5364             :                        - t5994 + t5996 - t6000 + t6002 + 0.1800000000e2_dp*t6004 - 0.1111111112e0_dp &
    5365             :                        *t6006 - t6009 + 0.3000000000e1_dp*t4946*t187*t4701 &
    5366             :                        *t4940 - 0.6666666668e0_dp*t1748*t5956 - t6017 + t6019 + 0.6666666668e0_dp &
    5367           0 :                        *t6021 + t6025 - 0.5555555558e-1_dp*t58*t5613*t71
    5368           0 :                t6031 = 0.5000000001e0_dp*t1720*t5990
    5369           0 :                t6033 = 0.1000000000e1_dp*t5244*t1712
    5370           0 :                t6036 = 0.2250000000e2_dp*t498*t472*t4905
    5371           0 :                t6040 = 0.5555555558e-1_dp*t6023*t275
    5372           0 :                t6042 = 0.1000000001e1_dp*t1763*t5990
    5373           0 :                t6044 = 0.2000000002e1_dp*t1763*t5956
    5374           0 :                t6047 = 0.4500000000e1_dp*t1720*t5881*t4940
    5375           0 :                t6049 = t1688*t177*t709
    5376           0 :                t6052 = t1504*t561*t65
    5377           0 :                t6053 = t732*t6052
    5378           0 :                t6056 = 0.5555555558e-1_dp*t508*t5271
    5379           0 :                t6058 = 0.1111111112e0_dp*t4943*t520
    5380           0 :                t6060 = t1766*t5881*t4940
    5381           0 :                t6063 = 0.1000000000e1_dp*t1720*t5956
    5382           0 :                t6066 = t1519*t705*t561*t65
    5383           0 :                t6074 = 0.8099999996e2_dp*t496*t4769*t1141*t4915
    5384           0 :                t6075 = t723*t6052
    5385           0 :                t6078 = 0.1111111112e0_dp*t719*t1782
    5386             :                t6079 = -t6031 - t6033 - t6036 + t187*t4897*t65 - t6040 - t6042 &
    5387             :                        + t6044 - t6047 - 0.1000000000e1_dp*t6049 - 0.1000000000e1_dp*t6053 &
    5388             :                        - t6056 - t6058 - 0.4500000000e1_dp*t6060 + t6063 + 0.6666666668e0_dp &
    5389             :                        *t6066 - 0.1000000000e1_dp*t237*t705*t1722 + t6074 - 0.2000000002e1_dp &
    5390           0 :                        *t6075 - t6078
    5391           0 :                t6087 = 0.1666666667e0_dp*t429*t1966*t1410
    5392           0 :                t6090 = 0.3125000000e0_dp*t4025*t1247*t4790
    5393             :                t6091 = 0.3333333334e0_dp*t5745 - t5749 - t5752 - t5756 + t5760 + 0.1666666667e0_dp &
    5394             :                        *t165*t56*t4958*t140 + t5767 + t5770 + t5773 + &
    5395             :                        t5776 + t5780 - t5783 + t5786 + t5789 + t5792 - t5795 - 0.4444444444e0_dp &
    5396             :                        *t5797 + 0.3333333334e0_dp*t55*t57*(t5926 + t5978 + t6029 &
    5397           0 :                                                            + t6079) - t6087 - t6090
    5398           0 :                t6094 = 0.1250000000e0_dp*t1981*t1247*t4801
    5399           0 :                t6099 = 0.1800000000e2_dp*t1971*t1972*t4729*t149*t160
    5400           0 :                t6102 = 0.2500000000e0_dp*t1981*t4553*t1410
    5401           0 :                t6106 = 0.3600000000e2_dp*t1971*t1972*t1973*t672
    5402           0 :                t6109 = 0.1666666667e0_dp*t1246*t1962*t1865
    5403           0 :                t6112 = 0.5555555556e-1_dp*t1246*t4553*t1483
    5404           0 :                t6116 = 0.3600000000e2_dp*t1971*t471*t20*t5713
    5405           0 :                t6119 = 0.1250000000e0_dp*t1368*t462*t4790
    5406           0 :                t6123 = 0.1666666667e0_dp*t1246*t446*t1825*t561
    5407           0 :                t6126 = 0.1800000000e2_dp*t658*t4764*t425
    5408           0 :                t6129 = 0.8333333335e-1_dp*t429*t437*t5174
    5409           0 :                t6132 = 0.1666666667e0_dp*t165*t462*t4853
    5410           0 :                t6136 = 0.5555555557e-1_dp*t165*t171*t5122*t17
    5411           0 :                t6138 = t429*t1928*t593
    5412           0 :                t6141 = t658*t575*t1925
    5413           0 :                t6144 = t445*t4512*t668
    5414           0 :                t6155 = 0.2500000000e0_dp*t1981*t4032*t1410
    5415           0 :                t6158 = 0.1666666667e0_dp*t429*t679*t1571
    5416           0 :                t6160 = t147*t1885*t672
    5417             :                t6162 = t6094 + t6099 + t6102 + t6106 - t6109 + t6112 - t6116 + t6119 &
    5418             :                        - t6123 + t6126 - t6129 + t6132 - t6136 - 0.1666666667e0_dp*t6138 &
    5419             :                        + 0.3600000000e2_dp*t6141 + 0.3333333334e0_dp*t6144 + 0.2e1_dp*t147 &
    5420             :                        *(t4881 - t4884 - t4887 + 0.9000000000e1_dp*t4889 - t4893 + 0.6000000000e1_dp &
    5421           0 :                          *t4895)*t149*t160 + t6155 - t6158 + (4*t6160)
    5422           0 :                t6170 = 0.3333333336e0_dp*t289*t597*t1571
    5423           0 :                t6173 = 0.3333333336e0_dp*t55*t5295*t140
    5424           0 :                t6175 = t83*t597*t1688
    5425           0 :                t6179 = 0.3333333336e0_dp*t165*t3865*t561
    5426           0 :                t6181 = t289*t1564*t593
    5427           0 :                t6185 = 0.3333333336e0_dp*t289*t597*t1553
    5428             :                t6186 = -0.3333333336e0_dp*t5347 - t5351 - t5354 - t5357 - t5360 - 0.2222222224e0_dp &
    5429             :                        *t144*t46*(t5423 + t5742 + t6091 + t6162) - t6170 &
    5430             :                        - t6173 - 0.6666666672e0_dp*t6175 - t6179 - 0.3333333336e0_dp*t6181 &
    5431           0 :                        - t6185
    5432           0 :                t6189 = 0.8333333340e-1_dp*t906*t294*t5163
    5433           0 :                t6192 = 0.3333333336e0_dp*t83*t294*t5122
    5434           0 :                t6194 = t83*t3875*t561
    5435           0 :                t6198 = 0.3333333336e0_dp*t289*t294*t5170
    5436           0 :                t6201 = 0.3333333336e0_dp*t289*t597*t1557
    5437           0 :                t6207 = 0.1666666668e0_dp*t1546*t897*t4797
    5438           0 :                t6210 = 0.1666666668e0_dp*t289*t294*t5174
    5439           0 :                t6213 = 0.3333333336e0_dp*t55*t84*t5122
    5440           0 :                t6216 = 0.8333333340e-1_dp*t429*t897*t4701
    5441           0 :                t6219 = 0.8333333340e-1_dp*t906*t384*t4790
    5442           0 :                t6222 = 0.8333333340e-1_dp*t1546*t897*t4801
    5443             :                t6223 = t6189 - t6192 - 0.6666666672e0_dp*t6194 - t6198 - t6201 - 0.3333333336e0_dp &
    5444             :                        *t83*t84*t5613 + t6207 - t6210 - t6213 + t6216 + &
    5445           0 :                        t6219 + t6222
    5446             :                t6227 = -t4704 - t4707 - t4732 - t4789 + t4793 - t4796 - t4800 - t4804 &
    5447             :                        - t4808 - t4812 - t4857 - t4861 - 0.1333333334e1_dp*t4864 - t4869 &
    5448             :                        - 0.4444444448e0_dp*t43*t46*t5036 + t8*(t5305 + t5343 + t6186 &
    5449           0 :                                                                + t6223)
    5450           0 :                e_ndrho_ndrho_rho_spin(ii) = e_ndrho_ndrho_rho_spin(ii) + t6227*sx
    5451           0 :                t6247 = t4769*t2992
    5452           0 :                t6249 = t4772*t2027
    5453           0 :                t6252 = t56*t4701
    5454           0 :                t6253 = t6252*t526
    5455           0 :                t6256 = t56*t4729
    5456           0 :                t6257 = t6256*t526
    5457           0 :                t6260 = t4743*t526
    5458           0 :                t6263 = t20*t4853
    5459           0 :                t6267 = t26*t1447
    5460           0 :                t6268 = t6267*t709
    5461           0 :                t6271 = t4764*t2027
    5462             :                t6281 = -0.1620000000e3_dp*t6247*t4733*t6249 - 0.1200000000e2_dp* &
    5463             :                        t473*t6253 + 0.5999999999e1_dp*t478*t6257 + 0.5399999998e2_dp*t4771 &
    5464             :                        *t6260 + 0.8999999998e1_dp*t478*t6263*t65 + 0.8099999996e2_dp &
    5465             :                        *t4771*t6268 - 0.1800000000e2_dp*t473*t6271 - 0.4050000000e2_dp &
    5466             :                        *t473*t575*t2095 - 0.5000000001e0_dp*t60*t4853*t65 + 0.8999999998e1_dp &
    5467           0 :                        *t4901 - t4907 + t4911
    5468           0 :                t6283 = t4701*t1518
    5469             :                t6290 = t4917 - t4920 + 0.5000000001e0_dp*t4922 + t4925 + 0.3333333334e0_dp &
    5470             :                        *t6283*t177*t65 - 0.5000000001e0_dp*t4929 - t4932 - t4935 &
    5471           0 :                        + 0.5850000000e2_dp*t4941 + t4945 - t4951 - 0.5555555558e-1_dp*t4952
    5472           0 :                t6291 = t6281 + t6290
    5473             :                t6308 = 0.4050000000e2_dp*t4734*t4736*t2821*t18*t4739*t237 &
    5474             :                        - 0.1125000000e2_dp*t2013*t1300*t19*t4790 - t5028 - t5022 + &
    5475             :                        0.1500000000e1_dp*t2013*t398*t68*t5002 + 0.3333333334e0_dp*t55 &
    5476             :                        *t57*t6291 + t5019 - 0.3000000000e1_dp*t566*t1885*t569 - t5016 &
    5477             :                        - 0.9000000000e1_dp*t4734*t4736*t1300*t4701*t149*t17 &
    5478             :                        + t5032 + 0.1666666667e0_dp*t165*t2088*t561 - 0.5555555557e-1_dp* &
    5479           0 :                        t5011 + t5001
    5480             :                t6338 = 0.1666666667e0_dp*t4874 - t5025 - 0.2700000000e2_dp*t4734*t392 &
    5481             :                        *t4736*t1300*rho*t5002*t149 - 0.3000000000e1_dp*t2009 &
    5482             :                        *t4748 - 0.2700000000e2_dp*t4738*t18*t1973*t1447 - t5008 - &
    5483             :                        0.3000000000e1_dp*t567*t151*t19*t4853 + t5035 - 0.1000000000e1_dp &
    5484             :                        *t2013*t2018*t5009 + 0.9000000000e1_dp*t2013*t2014*t4797 &
    5485             :                        - t4872 + 0.4500000000e1_dp*t2013*t2014*t4801 + t4878 + t5005 &
    5486           0 :                        + 0.4500000000e1_dp*t2009*t4744
    5487           0 :                t6339 = t6308 + t6338
    5488             :                t6344 = -t5043 - t5047 - t5050 - t5126 - t5284 - t5291 + t5294 - t5298 &
    5489           0 :                        - t5301 - 0.3333333336e0_dp*t5303 - t5308 - t5311 - t5314
    5490             :                t6352 = t5440 - t5443 - t5446 - t5449 - t5451 - t5454 + 0.40e1_dp*t102 &
    5491           0 :                        *t327*t2057*t557 - t5456 + t5459 - t5462 + t5466 - t5468
    5492             :                t6363 = t5480 - t5482 - t5484 + t5487 - t5489 + t5492 + t5494 - 0.9600000000e2_dp &
    5493             :                        *t5496 + t5499 - t5503 - t5507 + t5509 - 0.2400000000e2_dp &
    5494             :                        *t5511 - 0.960e2_dp*t5115*t1060 - 0.240e2_dp*t2054*t3674 + 0.1200e3_dp &
    5495           0 :                        *t1054*t640*t3679
    5496             :                t6367 = t5472 - t5474 - t5478 - t5523 + t5525 + 0.40e1_dp*t5528 + t5531 &
    5497           0 :                        + t5533 + t5535 + t5537 - 0.20e1_dp*t102*t105*t6363 + t5540
    5498             :                t6370 = t5545 - t5548 + t5551 + t5553 - t5558 + t5560 - t5562 + t5564 &
    5499           0 :                        - 0.40e1_dp*t5565 + t5568 + t5572 + t5574
    5500             :                t6373 = t5579 - t5581 - 0.40e1_dp*t112*t2058 - t5585 + t5590 - t5593 &
    5501           0 :                        - t5595 + t5597 - t5600 - t5602 + t5604 + t5607 + t5610
    5502           0 :                t6375 = t6352 + t6367 + t6370 + t6373
    5503             :                t6380 = -t5317 - t5320 + t5323 - t5326 - t5329 - 0.3333333336e0_dp*t83 &
    5504             :                        *t597*t2061 - 0.3333333336e0_dp*t83*t84*t6375 + t5333 - t5335 &
    5505           0 :                        - t5338 - t5342 - 0.1666666668e0_dp*t5347 - t5351
    5506             :                t6389 = -t5354 - t5357 - 0.3333333336e0_dp*t83*t45*t2139*t561 &
    5507             :                        - t5360 - t6170 - t6173 - 0.3333333336e0_dp*t6175 - t6179 - 0.1666666668e0_dp &
    5508           0 :                        *t6181 - t6185 + t6189 - t6192 - 0.3333333336e0_dp*t6194
    5509           0 :                t6400 = t2061*t561
    5510             :                t6415 = -t5363 + t5367 - t5370 + 0.1111111112e0_dp*t5373 - 0.5555555557e-1_dp &
    5511             :                        *t5376 + 0.1666666667e0_dp*t5379 - t5383 - t5386 - t5389 + &
    5512             :                        0.1200000000e2_dp*t658*t2031*t673*t17 + 0.3333333334e0_dp*t170 &
    5513           0 :                        *t27*t6291*t172 - t5397
    5514             :                t6428 = t5635 - t5638 + t5641 + 0.2250000000e1_dp*t5643 - t5647 - 0.1500000000e1_dp &
    5515             :                        *t151*t50*t6375 - t5650 + t5653 - t5657 - t5660 &
    5516           0 :                        + t5663 - t5666
    5517             :                t6433 = t5670 - t5673 + t5676 - t5679 + t5682 + t5686 - t5689 + t5692 &
    5518             :                        + t5695 + 0.2250000000e1_dp*t400*t19*t2061*t561 + t5698 - &
    5519           0 :                        t5701
    5520             :                t6442 = t5400 + 0.1666666667e0_dp*t5402 - t5406 + 0.1666666667e0_dp*t165 &
    5521             :                        *t56*t2131*t561 + 0.1666666667e0_dp*t165*t679*t2061 + &
    5522             :                        (2*t147*t149*(t6428 + t6433)) - t5409 - t5412 - t5415 + &
    5523           0 :                        t5418 + 0.1800000000e2_dp*t658*t575*t2074 + 0.1800000000e2_dp*t5421
    5524             :                t6451 = -t5426 + t5429 - 0.2222222223e0_dp*t5432 + t5436 + 0.1620000000e3_dp &
    5525             :                        *t4995*t6267*t1974 + 0.1666666667e0_dp*t165*t2088*t649 &
    5526           0 :                        + t5619 + t5622 - t5625 - t5628 + t5631 + t5716
    5527             :                t6461 = t5719 - t5722 - 0.8333333335e-1_dp*t5724 + 0.1200000000e2_dp* &
    5528             :                        t658*t6256*t2077 - 0.3240000000e3_dp*t4994*t6247*t4772*t2082 &
    5529             :                        + t5728 + t5731 - t5734 - t5738 + t5741 + 0.1666666667e0_dp*t5745 &
    5530           0 :                        - t5749
    5531             :                t6479 = -t5752 + 0.1666666667e0_dp*t445*t2042*rho*t668 - t5756 &
    5532             :                        - 0.3600000000e2_dp*t2081*t575*t673*t237 + 0.1800000000e2_dp* &
    5533             :                        t658*t6263*t161 + t5760 + t5767 + t5770 - 0.7200000000e2_dp*t2081 &
    5534           0 :                        *t575*t161*t1447 + t5773 + t5776 + t5780
    5535             :                t6490 = -t5783 - 0.3600000000e2_dp*t2081*t4764*t2082 - 0.2400000000e2_dp &
    5536             :                        *t2081*t6252*t2077 + t5786 + t5789 + t5792 - t5795 - 0.4444444445e0_dp &
    5537             :                        *t5797 - t6087 - 0.8333333335e-1_dp*t429*t166*t6400 &
    5538           0 :                        - t6090 + t6094
    5539             :                t6499 = t6099 + 0.1666666667e0_dp*t165*t166*t6375 + t6102 + 0.1666666667e0_dp &
    5540             :                        *t165*t56*t6291*t140 + t6106 - t6109 + t6112 - t6116 &
    5541           0 :                        + t6119 - t6123 + t6126 - t6129
    5542           0 :                t6509 = t4853*t65
    5543             :                t6529 = 0.4999999999e0_dp*t5875 - 0.5000000001e0_dp*t5244*t2095 - 0.5000000001e0_dp &
    5544             :                        *t732*t6509 + t5880 + 0.1000000000e1_dp*t649*t471 &
    5545             :                        *t2099 - 0.1620000000e3_dp*t5247*t2992*t4733*t6249 - 0.5555555558e-1_dp &
    5546             :                        *t5885 + 0.8999999998e1_dp*t140*t2992*t4701*t59* &
    5547             :                        t62*t2027 - 0.5000000001e0_dp*t5888 - t5891 - 0.1800000000e2_dp*t2118 &
    5548           0 :                        *t6271
    5549             :                t6539 = t5898 + t5902 - t5905 + 0.8999999998e1_dp*t5908 - t5913 + 0.2000000000e1_dp &
    5550             :                        *t2098*t2095*t561 - 0.5000000001e0_dp*t5918 - t5922 &
    5551           0 :                        + 0.3333333334e0_dp*t6283*t187*t177*t65 + t5925 - t5929
    5552             :                t6554 = -t5932 - 0.5555555558e-1_dp*t5938 + 0.666666666e0_dp*t6283* &
    5553             :                        t722*t177*t65 - t5942 + 0.8999999998e1_dp*t2124*t59*t177* &
    5554             :                        t710 + 0.1000000001e1_dp*t5944 - 0.5000000001e0_dp*t2061*t177*t709 &
    5555           0 :                        + t5949 + t5952 + t5954 - t5958
    5556           0 :                t6557 = t1447*t59
    5557             :                t6569 = -t5960 - 0.5000000001e0_dp*t5237*t2095 + t5963 - 0.4500000000e1_dp &
    5558             :                        *t5256*t6557*t710 - 0.5555555558e-1_dp*t5964 - 0.1111111112e0_dp &
    5559             :                        *t5966 - t5971 - 0.1200000000e2_dp*t2118*t6253 - 0.5555555558e-1_dp &
    5560           0 :                        *t719*t2126 - t5973 + t5975 + 0.5999999999e1_dp*t2114*t6257
    5561             :                t6583 = -t5977 - t5985 + t5994 - 0.5000000001e0_dp*t716*t6509 + t5996 &
    5562             :                        - t6000 + t6002 + 0.8999999998e1_dp*t6004 + 0.1000000000e1_dp*t2098 &
    5563             :                        *t4908*t237 - 0.1000000001e1_dp*t723*t6509 - 0.1800000000e2_dp &
    5564           0 :                        *t5228*t2117*t2028
    5565           0 :                t6596 = t5247*t1141*t4733
    5566             :                t6603 = -0.5555555558e-1_dp*t6006 - t6009 - t6017 - 0.5555555558e-1_dp &
    5567             :                        *t58*t6375*t71 + t6019 - 0.9000000007e1_dp*t5262*t6557*t710 &
    5568             :                        + 0.8999999998e1_dp*t708*t62*t6509 + 0.3333333334e0_dp*t6021 + &
    5569             :                        t6025 + 0.8099999996e2_dp*t6596*t6268 + 0.5399999998e2_dp*t6596* &
    5570           0 :                        t6260 + 0.8999999998e1_dp*t5229*t2104
    5571             :                t6611 = t5801 - t5804 - t5807 + t5810 - t5813 + t5816 - t5819 - t5822 &
    5572           0 :                        - t5825 - t5828 - t5830 + t5833
    5573             :                t6620 = t5835 + t5838 + t5841 - t5845 + t5848 - 0.1800000000e2_dp*t5850 &
    5574             :                        - t5854 + t5857 + t5861 - t5864 - 0.1800000000e2_dp*t473*t20 &
    5575           0 :                        *t2061*t561 + 0.8999999998e1_dp*t178*t62*t6375
    5576           0 :                t6621 = t6611 + t6620
    5577             :                t6630 = -0.3000000000e1_dp*t5256*t4904*t237 + 0.5999999999e1_dp*t5228 &
    5578             :                        *t2113*t2032 + t6621*t65 - t6031 - 0.4050000000e2_dp*t471 &
    5579             :                        *t187*t6557*t710 - t6033 - t6036 - t6040 + t6042 - 0.5000000001e0_dp &
    5580           0 :                        *t60*t2124*t709 - t6044
    5581             :                t6640 = -t6047 - 0.5000000001e0_dp*t6049 - 0.5555555558e-1_dp*t192* &
    5582             :                        t68*t6621*t65 - 0.5000000001e0_dp*t6053 - t6056 - t6058 + 0.5850000000e2_dp &
    5583             :                        *t6060 + t6063 + 0.3333333334e0_dp*t6066 + t6074 - 0.1000000001e1_dp &
    5584           0 :                        *t6075 - t6078
    5585             :                t6658 = 0.1800000000e2_dp*t658*t2035*t673 - 0.8333333335e-1_dp*t429 &
    5586             :                        *t2088*t593 + t6132 + 0.3333333334e0_dp*t55*t57*(t6529 + &
    5587             :                                                t6539 + t6554 + t6569 + t6583 + t6603 + t6630 + t6640) - t6136 - 0.8333333335e-1_dp &
    5588             :                        *t6138 + 0.1800000000e2_dp*t6141 + 0.1080000000e3_dp* &
    5589             :                        t4995*t4743*t2077 + 0.1080000000e3_dp*t657*t1142*t4760*t2082 &
    5590           0 :                        + 0.1666666667e0_dp*t6144 + t6155 - t6158 + (2*t6160)
    5591             :                t6665 = -0.3333333336e0_dp*t83*t45*t6339*t140 - t6198 - 0.3333333336e0_dp &
    5592             :                        *t83*t2050*t649 - t6201 + t6207 - t6210 - t6213 + t6216 &
    5593             :                        + t6219 - 0.1666666668e0_dp*t289*t2050*t593 - 0.1666666668e0_dp &
    5594             :                        *t289*t84*t6400 + t6222 - 0.2222222224e0_dp*t144*t46*(t6415 &
    5595           0 :                                                                             + t6442 + t6451 + t6461 + t6479 + t6490 + t6499 + t6658)
    5596             :                t6669 = -t4704 - t4707 - t4732 + t4793 - t4796 - t4800 - t4804 - t4861 &
    5597             :                        - 0.6666666672e0_dp*t4864 - t4869 - t4812 - t4857 - t4789 - t4808 &
    5598             :                        - 0.6666666672e0_dp*t217*t46*t2046*t561 - 0.4444444448e0_dp* &
    5599           0 :                        t43*t46*t6339 + t8*(t6344 + t6380 + t6389 + t6665)
    5600           0 :                e_ndrho_ndrho_ndrho_spin(ii) = e_ndrho_ndrho_ndrho_spin(ii) + t6669*sx
    5601             :             END IF
    5602             :          END IF
    5603             :       END DO
    5604             : !$OMP     END DO
    5605             : 
    5606         240 :    END SUBROUTINE xb88_lr_adiabatic_lsd_calc
    5607             : 
    5608             : END MODULE xc_xbecke88_lr_adiabatic

Generated by: LCOV version 1.15