[deal.II] Re: How would you document a step/code/module?

2022-12-08 Thread Abbas
Thank you Marc for your input, Maybe I am just complicating things. If I ever make a good example/module in the future, I'll make sure to share it to the code gallery. On Monday, December 5, 2022 at 1:11:14 AM UTC+2 mafe...@gmail.com wrote: > Hello Abbas, > > if you are willing the share your

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

2022-12-08 Thread Kev Se
Hej, I've written here before and hope I don't misuse the mailing list - however I've been looking a bit in the documentation and here and haven't really found a conclusive answer. I am aiming to solve a nonlinear hyperbolic transport equation. For the sake of the argument, let's say it reads

[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

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

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

2022-12-08 Thread Wolfgang Bangerth
Kev, I've done some layman's benchmarking of the individual "steps" (setup, assembly, solve, ...) in my current version of the code. It looks as if the assembly takes several orders of magnitude (~100 at least) longer than the solving part. My question is now: What is the best strategy to

[deal.II] Control over the "valence" of p4est distributed meshes

2022-12-08 Thread blais...@gmail.com
Dear all, I hope you are well. I know that P4est as a partitioner has limitations compared to other approaches like Metis or Scotch. However, I was wondering if there was anyway to penalize the partitioner in order to generate the smaller valence that is possible? Sometimes we end up with inter

Re: [deal.II] Control over the "valence" of p4est distributed meshes

2022-12-08 Thread Wolfgang Bangerth
On 12/8/22 14:46, blais...@gmail.com wrote: I know that P4est as a partitioner has limitations compared to other approaches like Metis or Scotch. However, I was wondering if there was anyway to penalize the partitioner in order to generate the smaller valence that is possible? Sometimes we en