1. A method for calibrating a resist model used in critical dimension (CD) calculation, comprising the steps of: obtaining a dose function indicating the amount of energy in a resist based on optical tool to be used to form the resist on a wafer; and convolving the dose function with a convolution kernel to obtain a modified dose function, the convolution kernel having variable diffusion lengths in different directions.