Re: [deal.II] Re: What's the best strategy to speed up assembly?

2022-12-08 Thread Wolfgang Bangerth
On 12/8/22 12:13, blais...@gmail.com wrote: For example, I try to avoid doing as much work as possible during the double loop over DOFs which is the inner most loop. Sometimes pre-calculating things in the outer loop really speeds-up the calculation. This also depends on the polynomials you are

[deal.II] Re: What's the best strategy to speed up assembly?

2022-12-08 Thread blais...@gmail.com
I am a bit surprised that your assembly is really 100x more expensive than your linear solver. Maybe your assembly code is not optimized? For example, I try to avoid doing as much work as possible during the double loop over DOFs which is the inner most loop. Sometimes pre-calculating things in