]> https://gitweb.dealii.org/ - dealii.git/commit
Resize a vector instead of repeatedly calling push_back. 4172/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 1 Apr 2017 16:53:46 +0000 (12:53 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 1 Apr 2017 18:32:35 +0000 (14:32 -0400)
commita6c42fd7bf9745d1bdbcbd058b235ab0eaf05ffd
treec6ecbfb3b4a799bbe76ea5ca22f595035b68a631
parent220395132e6b8ffa456c5434aa5b1ed2039effe8
Resize a vector instead of repeatedly calling push_back.

std::vector<double>(0) creates an empty vector, so we can save some time by just
resizing the vector of vectors instead.
source/numerics/point_value_history.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.