I meant i, j instead of j, k.
> On Jun 10, 2014, at 6:38 PM, z...@rescale.com wrote: > > Still looking for any help on this... > >> On Sunday, May 18, 2014 8:39:33 AM UTC-7, za...@rescale.com wrote: >> I've inluded the entire code as attachments per Milan's request. >> >> Thanks! >> >> enc >> >> >> >>> On Sunday, May 18, 2014 3:28:14 AM UTC-7, Milan Bouchet-Valat wrote: >>>> Le samedi 17 mai 2014 à 20:56 -0700, za...@rescale.com a écrit : >>>> Sorry I missed a line when transcribing the code snippet in my message. >>>> The while loop should read: >>> Please provide the complete code and check it's working before posting. >>> After replacing the loop in the rest of the code, I got an error about >>> REARTH not being defined. >>> >>> That said, the problem is simply that in htab[k], k is not a integer value. >>> Julia tries to convert k to an integer, and fails. I'm not sure what you >>> intended to do, but a non-integer index doesn't make sense to me. :-) >>> >>> >>> Regards