Repository navigation
Export the gauge-including and nuclear-moment integrals - #27
Merged
Merged
Conversation
A nuclear magnetic shielding over London orbitals needs eight integrals that the port has had all along and libcint_fortran did not export: the overlap, kinetic, nuclear-attraction and two-electron integrals differentiated through the gauge factor (igovlp, igkin, ignuc, ig1), the gauge-including r x p, and the three nuclear-moment operators (giao_a11part, a01gp, prinvxp). A caller wanting them had to use the generated modules directly and carry its own workspace, which is what metalquicha's shielding code does today. They go through run1e like every other one-electron wrapper, with seven new kinds and their component counts. The two-electron one has its own wrapper: three components, where run2e_hess is written for nine. backend_check compares each against libcint through the public interface, Cartesian and spherical, over every ordered shell pair since none of them is symmetric. All bit-identical: 86,419,435 values compared, worst difference zero. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Eight integrals an NMR shielding over London orbitals needs are added to the public
libcint_fortranmodule. The port has had all of them; they were just not exported.libcint_1e_igovlp_{cart,sph}libcint_1e_igkin_{cart,sph}libcint_1e_ignuc_{cart,sph}libcint_1e_giao_irjxp_{cart,sph}r x plibcint_1e_giao_a11part_{cart,sph}libcint_1e_a01gp_{cart,sph}libcint_1e_prinvxp_{cart,sph}libcint_2e_ig1_{cart,sph}Why
metalquicha's shielding code (JorgeG94/metalquicha#538) currently reaches these by using
cint_gen_intor1,cint_gen_intor2andcint_workspacedirectly and carrying its own workspace. It is the only place in metalquicha that goes past the public interface. With these exported, that adapter switches to them and the coupling to libfint's internals goes away.How
run1elike every other one-electron wrapper: seven new kinds and their component counts inNCOMP_1E.run2e_hessis written for nine components and this has three.Validation
backend_checkcompares each against libcint through the public interface, Cartesian and spherical, over every ordered shell pair, since none of these is symmetric:Bit-identical. Only
backend_checkwas run locally; the other checks do not touch this file's new code.After this merges
metalquicha needs its libfint pin moved to a commit that includes this, and
backends/cenzontle/integrals/mqc_czt_giao.f90switched to the wrappers. That is a one-file change on the metalquicha side, and I'll make it once this is in.Generated by Claude Code