]> https://gitweb.dealii.org/ - dealii.git/commit
Do not make a variable in step-35 static. 6083/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Mar 2018 23:11:51 +0000 (17:11 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Mar 2018 23:11:51 +0000 (17:11 -0600)
commitcfffa3c611d735f599fc6a18582af0357197cf0b
treed11b07493a4a577482dea32ccb44a97b9b683307
parentd912892b9d0f556ddbee4e02f867fd7471311a02
Do not make a variable in step-35 static.

Static variables are only initialized once at the beginning of the run. Here,
we have a vector that is marked as 'static' but this really only works because
we never do mesh refinement in this program and consequently (i) the originally
set size continues to be correct, and (ii) the code below sets every vector
element, rather than add to it.
examples/step-35/step-35.cc

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.