So I\'ve been confounded again by Fortran. Go figure. Anyway, I\'m trying to write a pretty simple routine the strips values off the end of an array. Everything complicated work
Lbound()
returns an array! Read The Fortran Manual (RTFM) at https://gcc.gnu.org/onlinedocs/gfortran/LBOUND.html
It returns an array with as many elements as is the rank ("dimension" 1D,2D,...) of the array.
To get a single number, for a specific dimension, use the optional argument DIM.
istart = lbound(list, 1)