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

Nodal kernel compute jacobian thread bug fix #10620 #10621

Merged
merged 1 commit into from
Jan 29, 2018

Conversation

sveerara
Copy link
Contributor

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

@permcody
Copy link
Member

This looks OK, any chance you can come up with a test case to make sure this stays working?

@sveerara
Copy link
Contributor Author

Yes, I will add a test case to moose tests.

@moosebuild
Copy link
Contributor

moosebuild commented Jan 26, 2018

Job Documentation on c385267 wanted to post the following:

View the site here

This comment will be updated on new commits.

@moosebuild
Copy link
Contributor

Job Precheck on d8eac3c wanted to post the following:

Your code requires style changes.

A patch was auto generated and copied here
You can directly apply the patch by running, in the top level of your repository:

curl -s http://mooseframework.org/docs/PRs/10621/style.patch | git apply -v

Alternatively, with your repository up to date and in the top level of your repository:

git clang-format 5d3b47c19ffeaf86a58b8c19bdca403111717dd2

@sveerara
Copy link
Contributor Author

@permcody I have added two nodal kernel jacobian tests - one for block restricted and the other for boundary restricted nodal kernels.

Copy link
Member

@permcody permcody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - Thanks for the tests!

@permcody permcody merged commit 885a549 into idaholab:devel Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants