Envoyer la notice par courriel: A hybrid algorithm for coupling partial differential equation and compartment-based dynamics