Regularity of vector fields with piecewise regular curl and divergence | Synapse