Skip to content

Commit 6285816

Browse files
foxtranthfroitzheim
authored andcommitted
Catch cases when mol%ftype == 0
Signed-off-by: Igor S. Gerasimov <foxtranigor@gmail.com>
1 parent 012a9ad commit 6285816

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/prog/main.F90

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ subroutine xtbMain(env, argParser)
10931093
(set%runtyp == p_run_omd) .or. (set%runtyp == p_run_screen) .or. &
10941094
(set%runtyp == p_run_metaopt) .or. (set%runtyp == p_run_bhess)) then
10951095
call generateFileName(tmpname, 'xtbopt', extension, mol%ftype)
1096+
if (mol%ftype == 0) mol%ftype = getFileType(tmpname)
10961097
write (env%unit, '(/,a,1x,a,/)') &
10971098
"optimized geometry written to:", tmpname
10981099
call open_file(ich, tmpname, 'w')

0 commit comments

Comments
 (0)