]> https://gitweb.dealii.org/ - dealii.git/commit
Put stuff that's known into lookup tables rather than initializing
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 14 Aug 2010 03:25:17 +0000 (03:25 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 14 Aug 2010 03:25:17 +0000 (03:25 +0000)
commitf6ed8948a30fd5b3ec2d0ed34eaeac00a0499d0a
tree3c35a6e6f17f89ece775c9a35718d648d13b0347
parent05879f8a793a376aa1b8bb594f8fe50ee476a4bd
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.