]> https://gitweb.dealii.org/ - code-gallery.git/commit
Do not make a variable 'static' in the elastoplastic code gallery. 41/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Mar 2018 23:18:14 +0000 (17:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 20 Mar 2018 23:18:14 +0000 (17:18 -0600)
commitaddcd5fcc8330acbaec4cf3851ed31f329f43595
treeb3dd51373227f0756bedac176cbd37f8739dfe10
parent6282fa0466eb14f192f116a6367a289bcb4c53fe
Do not make a variable 'static' in the elastoplastic code gallery.

Static variables are only initialized once at the beginning of the run.
Here, the value of a variable depends on a function argument, and so
it will only be computed based on the argument passed to the function
*the first time around*, and will never be updated again in later calls.
This is almost certainly not the desired behavior.
goal_oriented_elastoplasticity/elastoplastic.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.