compiling with ifort 13, changed solution to eliminate array temporary creation in deriv calc