Heavy swells were expected along Mexico’s Pacific coast as Hurricane Dora gained strength Wednesday, the National Hurricane Center said.