This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

modify element matrix before assembling

0 votes

In the assemble algorithm:

for T ∈ ...
    Compute the element matrix Aij
    Compute the local-to-global mapping 
    Add Aij to A according to mapping
end for

Is there any way to modify element matrix Aij before added to the global matrix A? Thanks.

asked Jul 22, 2015 by lz2m12 FEniCS Novice (290 points)

1 Answer

0 votes

I think you would have to write your own assembler

answered Jul 22, 2015 by chris_richardson FEniCS Expert (31,740 points)

Thanks chris.
Could you share me some links of the references or examples of this? I totally have no idea where to start.

...