preparing for OpenMP

separate datacost and smooth Jacobian