Overwriting a value using Cell_index and cell_dof_index.

3 months ago by
So I have a function 'u' that is a result of some computation. A part of it looks like the following:

Now as you can see some cell indices are repeated and of course the vertex number of each tetrahedron a.k.a cell_dof_indexes. So suppose I just want to set the values of the function for cell_index>400 and cell_dof_index==3 equal to 1. How can I go about that?

Thank you in advance
Community: FEniCS Project
Please login to add an answer/comment or follow this question.

Similar posts:
Search »