Provide a helper function that can reset cgsems to zero.