Thanks a lot. It works now. Richard On Jan 8, 2006, at 8:20 PM, Aleksandar Donev wrote: > Richard Wang wrote: > >> integer :: dm = 3, N = 100, M = 10 > integer, parameter :: dm = 3, N = 100, M = 10 > > This makes these constants, rather than variables, so they can be > used in array bounds. > > Aleks