]> https://gitweb.dealii.org/ - dealii.git/commit
Always inline some tensor functions.
authorMatthias Maier <tamiko@43-1.org>
Thu, 7 Jan 2016 22:14:39 +0000 (16:14 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 11 Jan 2016 13:18:48 +0000 (07:18 -0600)
commit55e6eac2ead44cae17fc7ad67505b075c0eef89d
tree404d7c52ddc53c0de675a511aa2196e49536c3ab
parent512c09327105a9ed419d98afd8b3b1af22a9c470
Always inline some tensor functions.

This drastically reduces the time in assembly in ASPECT:

DEBUG:
| Assemble Stokes system          |         8 |      38.3s |        27% |
| Assemble temperature system     |         8 |      51.4s |        36% |
| Build Stokes preconditioner     |         3 |      13.8s |       9.7% |
| Build temperature preconditioner|         8 |     0.192s |      0.13% |
| Solve Stokes system             |         8 |      12.3s |       8.6% |

DEBUG WITH PATCH:
| Assemble Stokes system          |         8 |      30.8s |        25% |
| Assemble temperature system     |         8 |      41.7s |        34% |
| Build Stokes preconditioner     |         3 |      12.1s |       9.9% |
| Build temperature preconditioner|         8 |     0.192s |      0.16% |
| Solve Stokes system             |         8 |      12.2s |        10% |

(Run with 16 processors, using the testcase discussed in https://github.com/geodynamics/aspect/pull/654 .)

There are no significant differences in release mode with this patch,
as probably expected.
include/deal.II/base/tensor.h
include/deal.II/base/tensor_accessors.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.