PEXSI complex inertia counting fails randomly
The complex PEXSI solver fails randomly at the inertia counting stage. This seems to happen with PEXSI release 1.2.0 and its current (11/11/2019) master branch. Tested with Intel (2019.0.5.281), GCC (7.4.0), OpenMPI (4.0.2), MPICH (3.3.2), SuperLU_DIST (5.1.3, 5.3.0, 6.1.1) and SCOTCH (6.0.0, 6.0.7, 6.0.9). It's unclear whether this is a PEXSI problem or it's from SuperLU_DIST or SCOTCH.
A self-contained reproducer is attached: test_inertia_cmplx.c.
Steps to reproduce: