def METHOD_NAME(self, variables):
    if self.x_average is True:
        c_plated_Li = variables[
            "X-averaged lithium plating concentration [mol.m-3]"
        ]
        c_dead_Li = variables["X-averaged dead lithium concentration [mol.m-3]"]
    else:
        c_plated_Li = variables["Lithium plating concentration [mol.m-3]"]
        c_dead_Li = variables["Dead lithium concentration [mol.m-3]"]
    c_plated_Li_0 = self.param.c_plated_Li_0
    zero = pybamm.Scalar(0)
    self.initial_conditions = {c_plated_Li: c_plated_Li_0, c_dead_Li: zero}