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

@NumericallyComputedJacobianBlocks : more than one scalar block #439

Closed
jfauque opened this issue Nov 3, 2023 · 4 comments
Closed

@NumericallyComputedJacobianBlocks : more than one scalar block #439

jfauque opened this issue Nov 3, 2023 · 4 comments
Assignees
Milestone

Comments

@jfauque
Copy link

jfauque commented Nov 3, 2023

Hello,
When we use @NumericallyComputedJacobianBlocks and the nonlinear system includes more than one scalar statevariable, the computation of the corresponding scalar blocks is not possible.
If the nonlinear system includes only one scalar statevariable, it works well !
Jules and Renaud

@thelfer thelfer self-assigned this Nov 3, 2023
@thelfer thelfer added this to the 4.2.0 milestone Nov 3, 2023
@thelfer
Copy link
Owner

thelfer commented Nov 3, 2023

I am quite surprise. Do you have an example ?

@jfauque
Copy link
Author

jfauque commented Nov 7, 2023

I don't have a little example but I can explain you further.
The code doesn't even compile because of the redeclaration of the variable tfzeros2.
For a non-scalar state variable, tfzeros2 is defined in a loop and so you don't have redeclaration.

@thelfer
Copy link
Owner

thelfer commented Nov 8, 2023

Here is a small example showing the trouble.

test.zip

thelfer added a commit that referenced this issue Nov 8, 2023
thelfer added a commit that referenced this issue Nov 8, 2023
thelfer added a commit that referenced this issue Nov 8, 2023
thelfer added a commit that referenced this issue Nov 8, 2023
thelfer added a commit that referenced this issue Nov 8, 2023
thelfer added a commit that referenced this issue Nov 8, 2023
thelfer added a commit that referenced this issue Nov 8, 2023
@thelfer thelfer closed this as completed Nov 8, 2023
@jfauque
Copy link
Author

jfauque commented Nov 9, 2023

Thank you Thomas

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

No branches or pull requests

2 participants