I used XE2011 to compile WRF and WPS. When ran metgrid.exe, it gave error like the following:
Processing domain 1 of 3
./TAVGSFC
WARNING: Couldn't open file ./TAVGSFC for input.
Processing 2006-06-10_00
FILE
forrtl: severe (153): allocatable array or pointer is not allocated
Image PC Routine Line Source
metgrid.exe 000000000060161A Unknown Unknown Unknown
metgrid.exe 0000000000600195 Unknown Unknown Unknown
metgrid.exe 00000000005AA316 Unknown Unknown Unknown
metgrid.exe 000000000054C585 Unknown Unknown Unknown
metgrid.exe 0000000000588523 Unknown Unknown Unknown
metgrid.exe 000000000047D239 Unknown Unknown Unknown
metgrid.exe 000000000044F708 Unknown Unknown Unknown
metgrid.exe 000000000044BB82 Unknown Unknown Unknown
metgrid.exe 000000000040B5D1 Unknown Unknown Unknown
metgrid.exe 0000000000403BAC Unknown Unknown Unknown
libc.so.6 00000034BFE1EC5D Unknown Unknown Unknown
metgrid.exe 0000000000403AA9 Unknown Unknown Unknown
Hope someone here can help solve it.