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
Fix a bug in function DoFCellAccessor::distribute_local_to_global() #16472
Conversation
Thanks for the fix! Would you be willing to do two more small things:
|
1964bef
to
01a77d5
Compare
I have rebased the branch. It is the first time I use the "rebase" command so I don't know if I have done it right. Please let me know if there is something wrong. A short test (test.txt) is appended to this comment. |
Would you include your test to the testsuite? You can find more information about it here: I suspect the right subfolder for the test would be |
…,local_vector,global_matrix,global_vector)
3c54ae0
to
7522c79
Compare
I found a bug in line 2960 of file include/deal.II/dofs/dof_accessor.templates.h. The bug is caused by passing boost::container::small_vector<>::iterator to function SparseMatrix<>::add(), which only takes a C pointer as the third argument. I simply replace dof_indices.begin() by dof_indices.data() (as in old versions of deal.II).