ezpzbz / aiida-catmat

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

[BUG] Restart when structure relaxation is not converged #55

Closed ezpzbz closed 4 years ago

ezpzbz commented 4 years ago

Context

There is a critical bug in VaspMultiStageWorkChain which results in failing the calculation to be restarted from previous one in case the relaxation is not converged. As we are in the relaxation stage, it makes sense to restart the calculation for another iteration using previous CONTCAR and other available information. However, it currently fails. By failing, I mean it restarts but it is actually the previous calculation which is repeating.

solution

We need to update structure in relaxation stage. Currently. we only update self.ctx.current_structure if it is converged.