That was only commented out in my note to the forum. I actually take in k and b from user input, and was just noting their values in the code I posted in case that was part of the problem. Thanks, though.
I did get everything to work though...see my note dated 2 Feb 11 if you want to let me...
I got my program to work, but I don't understand why. The following line was just before the loops in my program:
PRINT *, "Reading input file into memory..."
When I commented it out, the loops ran like a charm. What happened there???
I am new to Fortran 90, but have programmed in other languages. I am working on reading data into an array, and have a nested do loop that is acting strangely:
INTEGER (KIND = 4) :: i,j ! Loop counters
INTEGER (KIND = 4) :: k ! Number of pixels
INTEGER (KIND = 2) :: b ! Number of bands
INTEGER...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.