The calculation of the Ricci tensor can be similarly broken up into several segments with the use of 9 temporary grid functions once more. The Ricci tensor is given by
The evaluation of the Ricci tensor is broken as follows:
where in eqns. (14,15) terms like and are calculated using temporary arrays.