A numerical study of nonspherical black hole accretion. I Equations and test problems | Synapse