fixed some differences between fortran and reference versionand fixed calc_dt opencl kernel