fixing the nonlinear equation residual calculation.
Merge pull request #10 from HaibingShao/react_trans_GIA

fixing the nonlinear equation residual calculation.