-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
writing updated coord AND xtbopt.xyz during external driver optimization (including nicer printout) #828
Conversation
marcelmbn
commented
Jun 27, 2023
- write xtbopt.xyz constantly in the external driver mode so that not only "coord"-based external methods can be used for geometry optimization.
- nicer formatting
…r for each step depending on the original filetype
Update to latest development.
…ecessarily has to be negative (-> exactly zero should also be okay)
Additional comment regarding the commit 7468cc9: |
Merge latest developments.
Co-authored-by: Sebastian Ehlert <[email protected]>
src/extern/driver.f90
Outdated
write(env%unit,'(/,a,1x,a,/)') & | ||
"updated geometry written to:",tmpname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This output should be guarded by printlevel > 0
src/extern/driver.f90
Outdated
end if | ||
if (.not. cache) then | ||
call wrtm(mol%n, mol%at, mol%xyz) | ||
call generateFileName(tmpname, 'xtbopt', extension, mol%ftype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use xtbopt
for the final optimized structure, but this routine can be called from a single point or hessian calculation. Better use a more neutral filename here.
src/extern/driver.f90
Outdated
energy = 0.0_wp | ||
gradient(:, :) = 0.0_wp | ||
sigma(:, :) = 0.0_wp | ||
hlgap = 0.0_wp | ||
efix = 0.0_wp | ||
dipole(:) = 0.0_wp | ||
|
||
write(*,*) printlevel | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably a debug line, that should be removed.
src/extern/driver.f90
Outdated
if (cache) then | ||
if (printlevel > 0) & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a single if statement instead of a nested one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me now
…ion (including nicer printout) (grimme-lab#828) * writing updated coord AND xtbopt.xyz during external driver optimization * resolved formatting error * removed deprecated 'wrtm' call and included a general structure writer for each step depending on the original filetype * more detailed printout and default setting of cache variable * Modified convergence condition such that the energy change does not necessarily has to be negative (-> exactly zero should also be okay) * Update src/extern/driver.f90 Co-authored-by: Sebastian Ehlert <[email protected]> * more neutral structure file name and guarded printout * Removed debug printout and merged nested if loops --------- Co-authored-by: Sebastian Ehlert <[email protected]> Signed-off-by: Johannes Gorges <[email protected]>