]> https://gitweb.dealii.org/ - dealii-svn.git/commit
Put stuff that's known into lookup tables rather than initializing
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 14 Aug 2010 03:25:17 +0000 (03:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 14 Aug 2010 03:25:17 +0000 (03:25 +0000)
commitdc926d450f723c13df93b6159ad054c46a14d9f9
treeab42c798360c16b7c088f1bc1481231a741dd36e
parentd5f3daf63f8c7aef95c501d6f5ad7913052362a2
Put stuff that's known into lookup tables rather than initializing
things dynamically, i.e. do

  const unsigned int data[6] = { .... };
  ...
  do_something(data[face]);

rather than

  unsigned int data;
  switch (face) {
    case 0: data = ...; break;
    case 1: data = ...; break;
    case 2: data = ...; break;
    ...
  }
  do_something(data);

git-svn-id: https://svn.dealii.org/trunk@21657 0785d39b-7218-0410-832d-ea1e28bc413d
deal.II/deal.II/include/numerics/vectors.templates.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.