Nodal kernel compute jacobian thread bug fix #10620 #10621
Merged
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.
There is a break statement in both ComputeNodalKernelJacobiansThread.C and ComputeNodalKernelBCJacobiansThread.C that breaks out of the loop over nodal kernels if the first nodal kernel's variable is not equal to ivar. So, even if the second nodal kernel's variable is same as ivar, it does not get added to the active_involved_kernels list.
I removed the break statement and modified the code such that nodal kernel gets added to the list of active_nodal_kernels if its variable is same as ivar and either jvar equals ivar or jvar is one of the coupled variables.
closes #10620