Rearranged the CRITICAL OMP directive to be outside the loop - now almost linear speedup with six processors.