An alternative to a firstprivate statement would be a tmax=0 at the beginning of the parallel section, thereby guaranteeing that tmax starts out as 0