Magnetocaloric effect and critical behavior in ternary equiatomic magnesium compounds REPtMg (RE = Tb, Dy and Ho). (June 2019)