Skip to content

warn if taking derivs of a method calling model calculate without model, updateNodes, or constantNodes args#1566

Merged
paciorek merged 14 commits intodevelfrom
warn_derivs_calc
Jul 10, 2025
Merged

warn if taking derivs of a method calling model calculate without model, updateNodes, or constantNodes args#1566
paciorek merged 14 commits intodevelfrom
warn_derivs_calc

Conversation

@paciorek
Copy link
Copy Markdown
Contributor

This addresses NCT issue 574.

The checking is done very early in nimbleFunction. It feels a bit kludgey as the checking is done based on direct examination of the parse tree, so it's possible some unexpected nf syntax could cause problems. But it does seem useful to do this check, as currently we only detect this issue at run time for uncompiled execution only.

@paciorek paciorek merged commit 0f15cea into devel Jul 10, 2025
8 checks passed
@paciorek paciorek deleted the warn_derivs_calc branch July 10, 2025 18:13
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.

1 participant