Parameter patch for computeRhoField

Patch to take into account the depth of the test cell as an input
parameter.
Collect all constants at the beginning of the function.