Mexico has temporarily suspended classes in areas along the Pacific Coast as heavy rain could produce flash flooding and mudslides.