Re: Indecipherable error message

From: Don Morton (Don.Morton AT umontana.edu)
Date: Fri Nov 26 2004 - 17:35:30 MST


My "guess" is that nmos doesn't have a numeric
value. I don't see it assigned a value anywhere
in your excerpted code, so maybe you'd want to
print out its value just before the start of
the loop, then take it from there?

On Sat, 27 Nov 2004 00:23:26 +0000, "Ian Harris" <i.harris@uea.ac.uk>
said:
> Hi,
>
> I'm getting an error message that doesn't - to me - make sense.
>
> The message:
>
> fatal:Loop end must be numeric value, can't execute loop
> fatal:Execute: Error occurred at or near line 101
>
> What does this mean? I have a 'do' loop that terminates on line 101 so
> I assume it refers to that.
>
> The loop starts:
>
> do imos=1,nmos
>
> And ends:
>
> end do
>
> There are no assignments to 'imos' within the loop.
>
> There are two 'if' statement blocks within the loop:
>
> if (imos .lt. 10) then ;
> build filename
> fil = "echam.000"+imos
> else
> if (imos .lt. 100) then
> fil = "echam.00"+imos
> else
> if (imos .lt. 1000) then
> fil = "echam.0"+imos
> else
> fil = "echam."+imos
> end if
> end if
> end if
>
> and:
>
> if (imos .eq. 21) then
> grid = grid(:,::-1,:)
> ; rereverse grid lats to descend
> asciiwrite(fils(ifil)+"test21.gaussian.64x128.1col.dat",grid)
> asciiwrite(fils(ifil)+"test21.regridded.72x96.1col.dat",regrid)
> asciiwrite(fils(ifil)+"test21.ukwindow.8x7.1col.dat",ukwin)
> end if
>
> So, what does the error message actually mean? No idea at this end;
> happy to get an answer even if it indicates goofery on my part ;-)
>
> Cheers
>
> Harry
> Ian "Harry" Harris
> Climatic Research Unit
> University of East Anglia
> Norwich, UK NR4 7TJ
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

--
       ** NOT ON CAMPUS UNTIL SPRING 2005 **

************************************************************** Don Morton http://www.cs.umt.edu/~morton/ Department of Computer Science The University of Montana Missoula, MT 59812 | Voice (406) 243-4975 | Fax (406) 243-5139

May your trails be crooked, winding, lonesome, dangerous, leading to the most amazing view. May your mountains rise into and above the clouds. -Edward Abbey, naturalist and author (1927-1989)

_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk



This archive was generated by hypermail 2b29 : Wed Dec 01 2004 - 10:32:22 MST