With tens of thousands already displaced, both countries set up shelters in anticipation of further downpours.