Skip to content
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

implemented -bhess option in xtb thermo submodule #1004

Merged
merged 13 commits into from
Sep 11, 2024

Conversation

gorges97
Copy link
Contributor

Frequencies of the hessian file need to be scaled to remove the frequency shift caused by the bias RMSD potential. With the --bhess flag, xtb thermo now reads in an hessian_sph file from a previous xTB SPH calculation and scales the frequencies accordingly to reproduce the thermo contributions of the xTB SPH calculation.

Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
@marcelmbn
Copy link
Member

Why do we need xtb thermo at all for --bhess? When you run xtb struc.xyz --bhess you already get all relevant information, don't you?

@marcelmbn marcelmbn added the enhancement New feature or request label Sep 3, 2024
@gorges97
Copy link
Contributor Author

gorges97 commented Sep 3, 2024

The xtb thermo module can save you the computation time to recompute the hessian. At the moment, xtb thermo gives wrong thermostatistical contributions if it is used for the hessian of an SPH calculation.

Comment on lines 212 to 213
alp1=1.27_wp
alp2=1.5d-4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid using fixed float point numbers?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or is the whole function "copied" from the bhess workflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just "copied" the function from the bhess workflow. Otherwise the bhess subroutine has to be also rewritten to avoid this "double code".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just use it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you highlight which lines of code from src/hessian.f90 are actually relevant and could be "recycled" here? So that we can think about putting these parts of the code into single functions that could be reused in this project. I'd strongly speak against implementing doubled code using fixed float point parameters (which is in itself already a bit of bad practice), if we can avoid it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it is mainly lines 397-416 from the updated hessian.F90 that could be reused here fairly easily.

Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
src/hessian.F90 Outdated Show resolved Hide resolved
src/hessian.F90 Outdated Show resolved Hide resolved
src/hessian.F90 Outdated Show resolved Hide resolved
src/prog/thermo.f90 Outdated Show resolved Hide resolved
src/prog/thermo.f90 Outdated Show resolved Hide resolved
src/prog/thermo.f90 Outdated Show resolved Hide resolved
gorges97 and others added 6 commits September 11, 2024 17:10
Co-authored-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>
Co-authored-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>
Co-authored-by: Marcel Mueller <marcel.mueller@thch.uni-bonn.de>
Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
Signed-off-by: Johannes Gorges <58849467+gorges97@users.noreply.github.com>
@marcelmbn marcelmbn merged commit 404df3d into grimme-lab:main Sep 11, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants