Flow dynamics near the Great Barrier Reef