Skip to content

Commit 07c58b3

Browse files
committed
Do not stop metaopt if one of structures was failed to converge
1 parent 423634e commit 07c58b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/prog/main.F90

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,14 +1188,13 @@ subroutine xtbMain(env, argParser)
11881188
if (.not. set%verbose) then
11891189
write (env%unit, '("current energy:",1x,f20.8)') etot
11901190
end if
1191+
call writeMolecule(mol, ich, fileType%xyz, energy=etot, gnorm=norm2(g))
11911192
if (murks) then
1192-
call close_file(ich)
11931193
write (env%unit, '(/,3x,"***",1x,a,1x,"***",/)') &
11941194
"FAILED TO CONVERGE GEOMETRY OPTIMIZATION"
1195-
call touch_file('NOT_CONVERGED')
1195+
mol%xyz = metaset%xyz(:, :, metaset%nstruc)
11961196
end if
11971197
flush (env%unit)
1198-
call writeMolecule(mol, ich, fileType%xyz, energy=etot, gnorm=norm2(g))
11991198
end do
12001199
call close_file(ich)
12011200
call stop_timing(6)

0 commit comments

Comments
 (0)