gcc fixes; discretize simul time steps