Numerical method for the magnetic vector potential in incompressible magnetohydrodynamic flows and the conservation properties of magnetic helicity | Synapse