Dear all,

I am trying to assemble a finite element matrix with “custom” local submatrices.

The pseudo-code is the following:

```
// For each element
for (int i=0;i<Th.nt;i++){
// Calculate elemental submatrix
m_e = ...;
// Global Assembly
Assemble(M, m_e, i);
}
```

My question is then the following: What is the function “Assemble” (in the pseudocode)?

I am sure that this function is already present in the source code, but I can’t find it. And also, can I call it in a user script?

Thank you in advance for your help.