fun to compute mixed layer depth