-
As I mentioned in an earlier question, I've started an attempt to port an old code from Epetra to Tpetra, since Epetra is being deprecated. There are a couple uses of Epetra in the old code. In one, I'm doing the usual routing of assembling a global matrix for a linear finite element calculation: looping over elements "owned" by a processing element and summing their stiffness matrices into the global matrix. I do this in two steps, first assembling an The other use was to generate an adjacency list from a list of elements and the nodes that belonged to each of them. Again, I was looping over elements "owned" by a processing element, and the process went much like the aforementioned assembly of the graph. In both of these uses, I relied on Are there known workarounds for this issue, or some sane straightforward way of finding the number of nonzeros that I hadn't thought of? Tagging @trilinos/tpetra |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
@trilinos/tpetra |
Beta Was this translation helpful? Give feedback.
IiRC, you can also loop over only your owned elements and the graph will expand itself during endFill()