http://www.hou.usra.edu/meetings/V2050/pdf/8250.pdf
https://phys.org/news/2017-03-nasa-magnetic-shield-mars-atmo...
If things truly get bad, we are not entirely out of options (though powering the aforementioned shield might be somewhat difficult).