Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

Performance Bottleneck a.Apply(gfu.vec, r)

More
2 years 6 months ago #4048 by creativeworker
Hello,

we do Model Order Reduction for non-linear system, using NGSolve for the FEM backend.
After selecting specific elements from the full mesh, we perform the solution of the reduced mesh with a BilinearForm with the definedonelements parameter.
Code:
aMini += SymbolicBFI(weights_gf*timestep*weak_K, definedonelements=act_el)

Profiling my code unveils a bottleneck that shows that the Apply method does not scale well with the number of elements or that there is some fix overhead which is not so small in terms of time.

The AssembleLinearization method scales very well with the number of calculated elements.

Could the developers have a short look at that? Perhaps there are some easy improvements to boost the Apply method?

Kind regards
Time to create page: 0.102 seconds