in the heat of spain and portugal , during the war against napoleon bonaparte , which had ended only the year before , surgeons had used water to clean wounds when they could no longer obtain healing concoctions .