Add a function to set cfl._global_max and correct initialization of global cfl at the beggining of each step.