This fix might not be enough to make the SS method work with JFNK, however: the line search
there isn't projected, so MatMFFD might have an infeasible base at some iterates. This might break residual evaluation (e.g., due to negative densities). More importantly, however, even if the intermediate iterates were feasible, the increments used in the MatMFFD differencing algorithm might not be, and there is really no way around it with something like projection without breaking the semantics of MatMult. Is VINEWTONSSLS unusable with JFNK in its current form? In any event, should the Armijo line search be implemented?
Dmitry.