A program and library for calculating tectonomagnetic fields caused by piezomagnetic effect