ERT-480: Added assert.
ERT-480: Added assert_center before accessing cell depth.
ERT-480: Removed unused variables.