function pot = ensure_moment_form(pot)
% ENSURE_MOMENT_FORM Ensure the G or CG potential is in moment form.
% pot = ensure_moment_form(pot)

switch pot.type
  case 'cg',
    pot = cg_can_to_mom(pot);
  case 'g',
    pot = can_to_mom(pot);
  otherwise
    % no-op
end
