From: Wolfgang Bangerth Date: Tue, 9 Jul 2024 21:26:52 +0000 (-0600) Subject: Talk about parallel runs. X-Git-Tag: v9.6.0-rc1~78^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9164794e9f7a3a90c4afdb203f956a787bdfc43b;p=dealii.git Talk about parallel runs. --- diff --git a/examples/step-86/doc/results.dox b/examples/step-86/doc/results.dox index 5e3ef5d752..d578a0c659 100644 --- a/examples/step-86/doc/results.dox +++ b/examples/step-86/doc/results.dox @@ -252,3 +252,23 @@ above that you should take away are: likely not gain this ability either. But, again, it doesn't have to: We can rely on a library written by experts in that area. + + + +

Possibilities for extensions

+ +The program actually runs in parallel, even though we have not used +that above. Specifically, if you have configured deal.II to use MPI, +then you can do `mpirun -np 8 ./step-86 heat_equation.prm` to run the +program with 8 processes. + +For the program as currently written (and in debug mode), this makes +little difference: It will run about twice as fast, but take about 8 +times as much CPU time. That is because the problem is just so small: +Generally between 1000 and 2000 degrees of freedom. A good rule of +thumb is that programs really only benefit from parallel computing if +you have somewhere in the range of 50,000 to 100,000 unknowns *per MPI +process*. But it is not difficult to adapt the program at hand here to +run with a much finer mesh, or perhaps in 3d, so that one is beyond +that limit and sees the benefits of parallel computing. +