In most mechanics problems the gravitational field is assumed to be uniform. The center of gravity is then in exactly the same position as the center of mass. The terms center of gravity and center of mass tend to often be used interchangeably since they are often at the same location