added zheev error check and fixed static run check for zpotrf
added zheev error check and fixed static run check for zpotrf

materialsproject/custodian,specter119/custodian,materialsproject/custodian,specter119/custodian,materialsproject/custodian,specter119/custodian