     sprintf(out_name, "log/%s-log.bin", f_name);
     pFile = fopen(out_name, "wb");
 
-    write_log(padded, NUM, 0, y_host, pFile);
+    write_log(NUM, 0, y_host, pFile);
 
     //initialize integrator specific log
     init_solver_log();

    #endif
    #ifdef LOG_OUTPUT
            #if !defined(LOG_END_ONLY)
                write_log(padded, NUM, t, y_host, pFile);
                solver_log();
            #endif
    #endif

    __device__ int integrator_steps[DIVERGENCE_TEST] = {0};
#endif

void write_log(int NUM, double t, const double* y_host, FILE* pFile)
{
    fwrite(&t, sizeof(double), 1, pFile);
    double buffer[NN];
