threadvars allHaveBarriers and reachbarrier uncommented , these are part of the _Block data structure and are needed for compilation for simulation