   #endif  
 
   #ifdef DE
-  Real ge_i, ge_imo, ge_ipo, ge_imt, ge_ipt, ge_L, ge_R;
+  Real ge_i, ge_imo, ge_ipo, ge_imt, ge_ipt, ge_L, ge_R, E, E_kin, GE;
   #ifdef CTU
   Real del_ge, ge_6, geL_0, geR_0;
   #endif

    vx_i =  dev_conserved[o1*n_cells + id] / d_i;
    vy_i =  dev_conserved[o2*n_cells + id] / d_i;
    vz_i =  dev_conserved[o3*n_cells + id] / d_i;
    p_i  = (dev_conserved[4*n_cells + id] - 0.5*d_i*(vx_i*vx_i + vy_i*vy_i + vz_i*vz_i)) * (gamma - 1.0);
    p_i  = fmax(p_i, (Real) TINY_NUMBER);
    #ifdef DE
    ge_i = dev_conserved[(n_fields-1)*n_cells + id] / d_i;

    vx_ipo =  dev_conserved[o1*n_cells + id] / d_ipo;
    vy_ipo =  dev_conserved[o2*n_cells + id] / d_ipo;
    vz_ipo =  dev_conserved[o3*n_cells + id] / d_ipo;
    #ifdef DE //PRESSURE_DE
    E = dev_conserved[4*n_cells + id];
    GE = dev_conserved[(n_fields-1)*n_cells + id];
    E_kin = 0.5 * d_ipo * ( vx_ipo*vx_ipo + vy_ipo*vy_ipo + vz_ipo*vz_ipo );
    p_ipo = Get_Pressure_From_DE( E, E - E_kin, GE, gamma );    
    #else
    p_ipo  = (dev_conserved[4*n_cells + id] - 0.5*d_ipo*(vx_ipo*vx_ipo + vy_ipo*vy_ipo + vz_ipo*vz_ipo)) * (gamma - 1.0);
    #endif
    p_ipo  = fmax(p_ipo, (Real) TINY_NUMBER);
    #ifdef DE
    ge_ipo = dev_conserved[(n_fields-1)*n_cells + id] / d_ipo;
