Hi!
I have a general CG1 mass matrix which needs to be altered such that all non-zero values are set equal to 1. Any idea on the fastest way to do this?
I have tried fenicstools' SetMatrixValue method, but it does not work in parallell and is in general too slow for larger systems. The method needs to be fast, and work in parallell. I need such a matrix since I'm averaging over neighbouring nodes in a CG1-space, the CG1 mass matrix has the correct sparsity pattern for this purpose..
Thanks!