autodetect fermi and nkpts