Discussion on Numerical Treatment of Periodic Boundary Condition for Temperature