If the number of electrons is not compatible with the number derived from the valence and the number of atoms a homogeneous background-charge is assumed.
If the number of ions specified in the POSCAR file is 0 and NELECT=n, then the energy of a homogeneous LDA-electron gas is calculated.