Gradients written to results file