prisms-center / CASMcode

First-principles statistical mechanical software for the study of multi-component crystalline solids
Other
105 stars 70 forks source link

VASP wrapper with MAGMOM in large systems #28

Closed skk74 closed 7 years ago

skk74 commented 8 years ago

I believe there is a design flaw in the way the vasp wrapper writes the INCAR for per atom tags such as MAGMOM from the SPECIES file. It writes out the value of MAGMOM for each species in an array format. The problem with doing this is in large supercells the number of atoms gets quite large and the MAGMOM line in INCAR becomes very long. I believe there is some sort of VASP default that only reads a certain amount of characters per tag which seems to be roughly ~250 characters for MAGMOM. A better way to write the MAGMOM tag in the INCAR would be the following: NUM_SPECIES1 MAGMOM_SPECIES1 NUMSPECIES2 MAGMOM_SPECIES2 .... because this uses much fewer characters and gets the same message across to VASP within its character limit.

This can be fixed by making some changes to read() and update() in incar.py, but requires a sorted poscar. Working on a fix now.

skk74 commented 7 years ago

Forgot to mention I had a fix for this and am using it currently. Not sure if anyone else may be interested though.

bpuchala commented 7 years ago

Yes, please submit a pull request