ezpzbz / aiida-catmat

Collection of AiiDA WorkChains Developed in CATMAT project
MIT License
3 stars 1 forks source link

Better handling of DFT+U calculations #21

Closed ezpzbz closed 4 years ago

ezpzbz commented 4 years ago

context:

When we start of a workchain with a structure that has magnetic ordering, we have species with different kinds in StructureData to reflect this. For example:

Li Fe1 Fe2 P S
2 1 1 2 8

which would require LDAUU of:

0 5.3 5.3 0 0

Currently, if use requests DFT+U calculation, the LDAU section of INCAR is constructed in setup_protocols for all stages. This results in an issue that will cause wokchain to fail. Once a stage is finished with structure as output, and considering that we do not attach converged spins to the structure, the resulting structure will have species as:

Li Fe P S
2 2 2 8

which would require LDAUU of:

0 5.3 0 0

which is not given as it is made before this. This will result in parsing errors.

Solution: