text:   double *grad_0_alpha = __mem_pool->allocate(n);
    double *grad_1_alpha = __mem_pool->allocate(n);
    double *grad_2_alpha = __mem_pool->allocate(n);
    double *grad_0_beta0 = __mem_pool->allocate(n);
    double *grad_1_beta0 = __mem_pool->allocate(n);
    double *grad_2_beta0 = __mem_pool->allocate(n);
    double *grad_0_beta1 = __mem_pool->allocate(n);
    double *grad_1_beta1 = __mem_pool->allocate(n);
    double *grad_2_beta1 = __mem_pool->allocate(n);
    double *grad_0_beta2 = __mem_pool->allocate(n);
    double *grad_1_beta2 = __mem_pool->allocate(n);
    double *grad_2_beta2 = __mem_pool->allocate(n);
    double *grad_0_B0 = __mem_pool->allocate(n);
    double *grad_1_B0 = __mem_pool->allocate(n);
    double *grad_2_B0 = __mem_pool->allocate(n);
    double *grad_0_B1 = __mem_pool->allocate(n);
    double *grad_1_B1 = __mem_pool->allocate(n);
    double *grad_2_B1 = __mem_pool->allocate(n);
    double *grad_0_B2 = __mem_pool->allocate(n);
    double *grad_1_B2 = __mem_pool->allocate(n);
    double *grad_2_B2 = __mem_pool->allocate(n);
    double *grad_0_chi = __mem_pool->allocate(n);
    double *grad_1_chi = __mem_pool->allocate(n);
    double *grad_2_chi = __mem_pool->allocate(n);
    double *grad_0_Gt0 = __mem_pool->allocate(n);
    double *grad_1_Gt0 = __mem_pool->allocate(n);
    double *grad_2_Gt0 = __mem_pool->allocate(n);
    double *grad_0_Gt1 = __mem_pool->allocate(n);
    double *grad_1_Gt1 = __mem_pool->allocate(n);
    double *grad_2_Gt1 = __mem_pool->allocate(n);
    double *grad_0_Gt2 = __mem_pool->allocate(n);
    double *grad_1_Gt2 = __mem_pool->allocate(n);
    double *grad_2_Gt2 = __mem_pool->allocate(n);
    double *grad_0_K = __mem_pool->allocate(n);
    double *grad_1_K = __mem_pool->allocate(n);
    double *grad_2_K = __mem_pool->allocate(n);
    double *grad_0_gt0 = __mem_pool->allocate(n);
    double *grad_1_gt0 = __mem_pool->allocate(n);
    double *grad_2_gt0 = __mem_pool->allocate(n);
    double *grad_0_gt1 = __mem_pool->allocate(n);
    double *grad_1_gt1 = __mem_pool->allocate(n);
    double *grad_2_gt1 = __mem_pool->allocate(n);
    double *grad_0_gt2 = __mem_pool->allocate(n);
    double *grad_1_gt2 = __mem_pool->allocate(n);
    double *grad_2_gt2 = __mem_pool->allocate(n);
    double *grad_0_gt3 = __mem_pool->allocate(n);
    double *grad_1_gt3 = __mem_pool->allocate(n);
    double *grad_2_gt3 = __mem_pool->allocate(n);
    double *grad_0_gt4 = __mem_pool->allocate(n);
    double *grad_1_gt4 = __mem_pool->allocate(n);
    double *grad_2_gt4 = __mem_pool->allocate(n);
    double *grad_0_gt5 = __mem_pool->allocate(n);
    double *grad_1_gt5 = __mem_pool->allocate(n);
    double *grad_2_gt5 = __mem_pool->allocate(n);
    double *grad_0_At0 = __mem_pool->allocate(n);
    double *grad_1_At0 = __mem_pool->allocate(n);
    double *grad_2_At0 = __mem_pool->allocate(n);
    double *grad_0_At1 = __mem_pool->allocate(n);
    double *grad_1_At1 = __mem_pool->allocate(n);
    double *grad_2_At1 = __mem_pool->allocate(n);
    double *grad_0_At2 = __mem_pool->allocate(n);
    double *grad_1_At2 = __mem_pool->allocate(n);
    double *grad_2_At2 = __mem_pool->allocate(n);
    double *grad_0_At3 = __mem_pool->allocate(n);
    double *grad_1_At3 = __mem_pool->allocate(n);
    double *grad_2_At3 = __mem_pool->allocate(n);
    double *grad_0_At4 = __mem_pool->allocate(n);
    double *grad_1_At4 = __mem_pool->allocate(n);
    double *grad_2_At4 = __mem_pool->allocate(n);
    double *grad_0_At5 = __mem_pool->allocate(n);
    double *grad_1_At5 = __mem_pool->allocate(n);
    double *grad_2_At5 = __mem_pool->allocate(n);
    double *grad2_0_0_gt0 = __mem_pool->allocate(n);
    double *grad2_0_1_gt0 = __mem_pool->allocate(n);
    double *grad2_0_2_gt0 = __mem_pool->allocate(n);
    double *grad2_1_1_gt0 = __mem_pool->allocate(n);
    double *grad2_1_2_gt0 = __mem_pool->allocate(n);
    double *grad2_2_2_gt0 = __mem_pool->allocate(n);
    double *grad2_0_0_gt1 = __mem_pool->allocate(n);
    double *grad2_0_1_gt1 = __mem_pool->allocate(n);
    double *grad2_0_2_gt1 = __mem_pool->allocate(n);
    double *grad2_1_1_gt1 = __mem_pool->allocate(n);
    double *grad2_1_2_gt1 = __mem_pool->allocate(n);
    double *grad2_2_2_gt1 = __mem_pool->allocate(n);
    double *grad2_0_0_gt2 = __mem_pool->allocate(n);
    double *grad2_0_1_gt2 = __mem_pool->allocate(n);
    double *grad2_0_2_gt2 = __mem_pool->allocate(n);
    double *grad2_1_1_gt2 = __mem_pool->allocate(n);
    double *grad2_1_2_gt2 = __mem_pool->allocate(n);
    double *grad2_2_2_gt2 = __mem_pool->allocate(n);
    double *grad2_0_0_gt3 = __mem_pool->allocate(n);
    double *grad2_0_1_gt3 = __mem_pool->allocate(n);
    double *grad2_0_2_gt3 = __mem_pool->allocate(n);
    double *grad2_1_1_gt3 = __mem_pool->allocate(n);
    double *grad2_1_2_gt3 = __mem_pool->allocate(n);
    double *grad2_2_2_gt3 = __mem_pool->allocate(n);
    double *grad2_0_0_gt4 = __mem_pool->allocate(n);
    double *grad2_0_1_gt4 = __mem_pool->allocate(n);
    double *grad2_0_2_gt4 = __mem_pool->allocate(n);
    double *grad2_1_1_gt4 = __mem_pool->allocate(n);
    double *grad2_1_2_gt4 = __mem_pool->allocate(n);
    double *grad2_2_2_gt4 = __mem_pool->allocate(n);
    double *grad2_0_0_gt5 = __mem_pool->allocate(n);
    double *grad2_0_1_gt5 = __mem_pool->allocate(n);
    double *grad2_0_2_gt5 = __mem_pool->allocate(n);
    double *grad2_1_1_gt5 = __mem_pool->allocate(n);
    double *grad2_1_2_gt5 = __mem_pool->allocate(n);
    double *grad2_2_2_gt5 = __mem_pool->allocate(n);
    double *grad2_0_0_chi = __mem_pool->allocate(n);
    double *grad2_0_1_chi = __mem_pool->allocate(n);
    double *grad2_0_2_chi = __mem_pool->allocate(n);
    double *grad2_1_1_chi = __mem_pool->allocate(n);
    double *grad2_1_2_chi = __mem_pool->allocate(n);
    double *grad2_2_2_chi = __mem_pool->allocate(n);
    double *grad2_0_0_alpha = __mem_pool->allocate(n);
    double *grad2_0_1_alpha = __mem_pool->allocate(n);
    double *grad2_0_2_alpha = __mem_pool->allocate(n);
    double *grad2_1_1_alpha = __mem_pool->allocate(n);
    double *grad2_1_2_alpha = __mem_pool->allocate(n);
    double *grad2_2_2_alpha = __mem_pool->allocate(n);
    double *grad2_0_0_beta0 = __mem_pool->allocate(n);
    double *grad2_0_1_beta0 = __mem_pool->allocate(n);
    double *grad2_0_2_beta0 = __mem_pool->allocate(n);
    double *grad2_1_1_beta0 = __mem_pool->allocate(n);
    double *grad2_1_2_beta0 = __mem_pool->allocate(n);
    double *grad2_2_2_beta0 = __mem_pool->allocate(n);
    double *grad2_0_0_beta1 = __mem_pool->allocate(n);
    double *grad2_0_1_beta1 = __mem_pool->allocate(n);
    double *grad2_0_2_beta1 = __mem_pool->allocate(n);
    double *grad2_1_1_beta1 = __mem_pool->allocate(n);
    double *grad2_1_2_beta1 = __mem_pool->allocate(n);
    double *grad2_2_2_beta1 = __mem_pool->allocate(n);
    double *grad2_0_0_beta2 = __mem_pool->allocate(n);
    double *grad2_0_1_beta2 = __mem_pool->allocate(n);
    double *grad2_0_2_beta2 = __mem_pool->allocate(n);
    double *grad2_1_1_beta2 = __mem_pool->allocate(n);
    double *grad2_1_2_beta2 = __mem_pool->allocate(n);
    double *grad2_2_2_beta2 = __mem_pool->allocate(n);
  