fix(calculator): adapt to upstream tblite/gfnff API drift#3
Open
UMI5751 wants to merge 1 commit into
Open
Conversation
`gfnff_initialize` (gfnff main) replaced the legacy `print=logical, iunit=int` pair with `printlevel=int, printunit=int`. Map the existing optional `pr` (logical) and `iunit` (int) arguments of `gfnff_api_setup` to the new signature: pl=2 when pr=.true., 0 otherwise (silent default matches old "pr absent" behavior); pu defaults to stdout. `eeq_guess` (tblite xtb_solvation) gained a trailing `error` argument. Pass through the `error_type` already in scope at the call site. Without these the build now fails on a fresh deps fetch: gfnff_api.F90:75: Keyword argument 'print' is not in the procedure tblite_api.F90:379: There is no specific subroutine for 'eeq_guess' Verified: crest-exe builds cleanly and runs an MCP iMTD-GC end-to-end (see Bowen's MCP CREST benchmark, all 6 cyclic peptides). Co-Authored-By: Claude Opus 4.7 (1M context) <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.
Summary
Two source-level shims so this branch compiles against current
tblite(xtb_solvation) andgfnff(main) again. Without these the build now fails on a fresh deps fetch:gfnff_api.F90Upstream
gfnff_initializereplacedprint=logical, iunit=intwithprintlevel=int, printunit=int. Map the existing optionalpr/iunitparameters of ourgfnff_api_setupto the new signature:pr=.true.→printlevel=2(info)pr=.false.or absent →printlevel=0(silent — matches old "pr absent" behavior)iunitpresent →printunit=iunit; absent →printunit=stdouttblite_api.F90Upstream
eeq_guess(tblite/wavefunction/guess.f90) gained a trailingerrorargument. Pass through theerror_typealready declared in scope at the call site.Test plan
crest-exetarget builds cleanly on RunPod 4090 with fresh deps fetch fromtalo/hyper-crest:feat/nnxtb-benchmark-quick -mdlen 0.5 -gfnffruns end-to-end on MCP-0001..MCP-0006 (cyclic peptides, 111-196 atoms)eeqguess path runs without errorlib-crest-sharedstill fails to link, but that's an unrelated PIC issue withlibmace.a(relocation R_X86_64_PC32 against symbol stderr@@GLIBC_2.2.5) — not in scope for this PR🤖 Generated with Claude Code