[bugfix] Fix vertex ids when compiled without mpi

My last patch in the 'id' method must have been very late at night.
It contained an #ifdef ModelP inside an #ifdef ModelP...
Not sure how that could ever work.  Vertex ids failed when compiling
without ModelP.  This patch should fix the issue.