]> https://gitweb.dealii.org/ - dealii.git/commit
Use only enum values, don't look at bits.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 10 Jun 2017 00:57:31 +0000 (18:57 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 10 Jun 2017 00:57:31 +0000 (18:57 -0600)
commit0e0aa9241448ae878e24eaa1d3236da8f0395330
tree2eb2d68da737e0e2d80540d1390be01c203d02bd
parent3ca8642394bb7f013e12c60da237f1f57b33f5ce
Use only enum values, don't look at bits.

This fixes an (undocumented) oddity in ParameterHandler::print_parameters(): We
were at times looking at individual bits instead of just the declared values
of ParameterHandler::OutputStyle. This presumably allowed for calling that
function with a combination of the OutputStyle flags, for reasons that no
longer seem particularly relevant nor obvious.

This patch removes this possibility from the current implementation of
the function, but retains it for the (deprecated) function
ParameterHandler::print_parameters_section().
source/base/parameter_handler.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.