inlined local projection code within iterative solver for time optimization