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

Added additional checks for C API #718

Closed
wants to merge 4 commits into from
Closed

Conversation

pultar
Copy link
Contributor

@pultar pultar commented Nov 16, 2022

In line with #683, I have deviating energies, gradients, and point charge gradients depending on whether I use the C API or xtb binaries.

This PR is not a solution, however, it (a) adds more tests for the C API and (b) increases the number of digits printed for PC gradients.

Values hard-coded in the tests were obtained using the C API.

I will add a second PR with actual values obtained from the binary for easier comparison.

…rom C program

Signed-off-by: Felix Pultar <felix.pultar@phys.chem.ethz.ch>
Signed-off-by: Felix Pultar <felix.pultar@phys.chem.ethz.ch>
Signed-off-by: Felix Pultar <felix.pultar@phys.chem.ethz.ch>
pultar added a commit to pultar/xtb that referenced this pull request Nov 16, 2022
…ed with binary

Signed-off-by: Felix Pultar <felix.pultar@phys.chem.ethz.ch>
Signed-off-by: Felix Pultar <felix.pultar@phys.chem.ethz.ch>
MtoLStoN added a commit that referenced this pull request Nov 17, 2022
There was an error for the conversion of point charge coordinates in external embedding. The Orca flag was wrongly set to "true" without an "interface=orca" command. This lead to deviations between point charge gradients calculated with the xTB binaries and our test suite. 
This will fix this. Will also close Issue #683 and PRs #718 and #719.
@MtoLStoN MtoLStoN mentioned this pull request Nov 17, 2022
MtoLStoN added a commit that referenced this pull request Nov 17, 2022
There was an error for the conversion of point charge coordinates in external embedding. The Orca flag was wrongly set to "true" without an "interface=orca" command. This lead to deviations between point charge gradients calculated with the xTB binaries and our test suite. 
This will fix this. Will also close Issue #683 and PRs #718 and #719.
@MtoLStoN
Copy link
Member

The underlying issue was fixed in #720. I don't think a higher test accuracy is necessary or helpful here. But thanks for committing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants