New computer program predicts crack initiation in 3-D