Handle masking in Fortran convolve.