first version C code to compute the shear, vorticity and helicity