Simple appending of completed CalcJob nodes in a VaspBaseWorkChain does not guarantee the last item in list would be actually the last completed calculation. Therefore, the attached last incar would not necessarily be the last converged one.
solution
Get the CalcJob with highest pk from the list of completed CalcJob nodes.
context
Simple appending of completed
CalcJob
nodes in aVaspBaseWorkChain
does not guarantee the last item in list would be actually the last completed calculation. Therefore, the attached last incar would not necessarily be the last converged one.solution
Get the
CalcJob
with highestpk
from the list of completedCalcJob
nodes.