Find locations of .true. values in logical mask of rank 2
Find locations of .true. values in logical mask of rank 1