Commit 2da4d042 authored by Matthias Redies's avatar Matthias Redies

make sure fleur iterates twice in metagga

parent a5ee163f
......@@ -446,7 +446,9 @@ CONTAINS
END IF
ELSE
l_cont = l_cont.AND.(iter < input%itmax)
l_cont = l_cont.AND.((input%mindistance<=results%last_distance).OR.input%l_f)
! MetaGGAs need a at least 2 iterations
l_cont = l_cont.AND.((input%mindistance<=results%last_distance).OR.input%l_f &
.OR. (xcpot%exc_is_MetaGGA() .and. iter == 1))
CALL check_time_for_next_iteration(iter,l_cont)
END IF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment