OpenMP optimization of TsdGrid