UNH has received a gift of $3 million from an anonymous alumnus to expand marine research and opportunities for undergraduate students.