Hello,<br> I am trying to run a metal oxide (Mn3O4) which has a complicated spin state. There are Mn atoms with 2+, 3+ (all spin alpha), and 3+ (all spin beta). I am trying to specify the spins using the keywords under KIND. Mn atom has 4s2 3d5 configuration, with d electrons all spin alpha (high spin). Mn2+ has 3d5 configuration, and Mn3+ has either 3d4 (all alpha) or 3d4 (all beta). O becomes O2-, or 2s2 2p6. <br><br> I am trying to follow the example discussed here: https://groups.google.com/forum/#!topic/cp2k/8fTVlCEjSME/discussion <br><br> For Mn2+, I want to remove all beta electrons,  remove 2 from alpha s states, and add 5 to alpha d states, which when divided by 2, should give 3d5 for alpha electrons. Unfortunately CP2K always give NaN for the energy of the alpha wavefunction when trying to calculate the initial guess wavefunction, which makes the whole calculation fail.<br><br> Can anyone give some suggestions? <br> <br>  Below is the input I have tried.<br><br>    &KIND Mn2<br>      ELEMENT Mn<br>      BASIS_SET DZVP-MOLOPT-SR-GTH<br>      POTENTIAL GTH-PBE-q15<br>      &BS<br>        &ALPHA<br>          NEL -2   5<br>          L    0   2<br>          N    4   3<br>        &END<br>        &BETA<br>          NEL -2  -5<br>          L    0   2<br>          N    4   3<br>        &END<br>      &END<br>    &END KIND<br>    &KIND Mn31<br>      ELEMENT Mn<br>      BASIS_SET DZVP-MOLOPT-SR-GTH<br>      POTENTIAL GTH-PBE-q15<br>      &BS<br>        &ALPHA<br>          NEL -2   3<br>          L    0   2<br>          N    4   3<br>        &END<br>        &BETA<br>          NEL -2  -5<br>          L    0   2<br>          N    4   3<br>        &END<br>      &END<br>    &END KIND<br>    &KIND Mn32<br>      ELEMENT Mn<br>      BASIS_SET DZVP-MOLOPT-SR-GTH<br>      POTENTIAL GTH-PBE-q15<br>      &BS<br>        &ALPHA<br>          NEL -2  -5<br>          L    0   2<br>          N    4   3<br>        &END<br>        &BETA<br>          NEL -2   3<br>          L    0   2<br>          N    4   3<br>        &END<br>      &END<br>    &END KIND<br>    &KIND O<br>      BASIS_SET DZVP-MOLOPT-GTH<br>      POTENTIAL GTH-PBE-q6<br>      &BS<br>        &ALPHA<br>          NEL  2<br>          L    1<br>          N    2<br>        &END<br>        &BETA<br>          NEL  2<br>          L    1<br>          N    2<br>        &END<br>      &END<br>    &END KIND<br><br>