@karlnapf I used the iteration count as index of the SGVector that stores the residuals. using int64_t it was giving a stupid warning :(