Stable code for cubic and orthorhombic 2mm