Hejsan, I’m also new, so I can be wrong.
I’m also testing some alloys with crange.
When I use the crange file, I don’t change my specification in the lat.in file. I leave the constriction of composition just for the crange file.
For me it is working the calculation, but rather slow to find structures.
Okay, I think I did not make it clear. The numbers after the atom symbols are the magnetic moments, for example: 0.6 BM for Ni. That tells vasp to do a spin-polarized calculation. But I tried using both Ni+0.6 and Ni for the crange.in files. In both cases, it gives the same error.
Sorry for the delayed response (see main forum page for the reasons!)
The problem comes from the fact that the parser for the concentration constraints confuses the label names that include numbers with the coefficients of the equations. I don’t have a fix for that specifically (sorry!). However, here is a way around. Since all your atoms always have the same moment, you could use only Co and Ni as your labels in your lat.in file. In your vasp.wrap file you would put
SUBATOM = s/Co/Co+1.67/g
SUBATOM = s/Ni/Ni+0.6/g
Then, since you have already run mmaps, you need to edit the */str_relax.out file to reflect the new names.
perl -pi.bak -e ‘s/Co+1.67/Co/g; s/Ni+0.6/Ni/g;’ */str_relax.out
(This would not be necessary if this were a fresh new run.)
Note that if your had, say Ni+0.5 and Ni-0.5 as your species, I would use an alphabetical label to distinguish them (e.g. Nip Nim) and use the same SUBATOM trick with each.