The calculation of the connection coefficients can be broken up into several stages. This obviates the necessity for storing the first derivatives of the 3-metric which saves us 18 grid functions.
The connection coefficients are given by
The calculation can be broken up into three separate sets using 9 temporary variables.
There are 3 steps: