A continuum model for granular materials exhibiting a smooth transition between inelastic flow and elastic jamming | Synapse