Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pitsteinbach
Copy link
Contributor

Adding implicit solvation models ALPB and CPCM to the C and python API, as requested by #129.

@awvwgk awvwgk requested a review from haneug October 17, 2023 11:22
@pitsteinbach
Copy link
Contributor Author

Seems like there is a difference in the energies depending on the use of intel or GNU compilers with the CPCM model. It seems to happen only when casting string to double.

@pitsteinbach
Copy link
Contributor Author

Seems like there is a difference in the energies depending on the use of intel or GNU compilers with the CPCM model. It seems to happen only when casting string to double.

I compiled a fresh version and got a different value for CrCp2 with CPCM and an epsilon value of 7.0, which is now consistent with the results I got from the C-API test. Would be happy to have somebody else checking these values.

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Attention: 35 lines in your changes are missing coverage. Please review.

Comparison is base (3191316) 71.39% compared to head (f70cec5) 71.51%.

Files Patch % Lines
src/tblite/api/container.f90 62.06% 0 Missing and 33 partials ⚠️
python/tblite/library.py 88.88% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #130      +/-   ##
==========================================
+ Coverage   71.39%   71.51%   +0.11%     
==========================================
  Files         134      134              
  Lines       16654    16759     +105     
  Branches     5081     5121      +40     
==========================================
+ Hits        11890    11985      +95     
+ Misses       2514     2484      -30     
- Partials     2250     2290      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pitsteinbach pitsteinbach linked an issue Oct 24, 2023 that may be closed by this pull request
Copy link
Member

@awvwgk awvwgk left a 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

@haneug
Copy link
Contributor

haneug commented Nov 21, 2023

Looks good! I only have two small things to add:

  1. We could add the newly available interactions to the docstring of the add function in the Calculator class:
    """
    Add an interaction to the calculator instance. Supported interactions are
    =================== =========================== ===================
    name description Arguments
    =================== =========================== ===================
    electric-field Uniform electric field Field vector (3,)
    spin-polarization Spin polarization Scaling factor
    =================== =========================== ===================
    """
  2. and I found two small typos (cpcm instead of alpb):
    if (debug) print '("[Info]", 1x, a)', "new_cpcm_solvation"

    and
    if (debug) print '("[Info]", 1x, a)', "new_cpcm_solvation float input"

I compared the results of the Python API with the command line for Intel compilers with CrCp2 and the results nicely matched!

The GBSA solvation model could also be added in the future but first the full ALPB and GBSA should be implemented I think (see #138)

@pitsteinbach
Copy link
Contributor Author

I changed the suggested lines, thanks for catching the typos.
Once you give approval, I will merge and close the PR.

@pitsteinbach pitsteinbach merged commit f6df2e4 into tblite:main Nov 27, 2023
@pitsteinbach pitsteinbach deleted the add-solvation-API branch March 26, 2024 13:50
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.

Solvent and GFN-FF support

4 participants