Ideal and resistive edge stability calculations with M3D-C1 | Synapse