]> https://gitweb.dealii.org/ - dealii.git/commit
fix ParameterHandler::leave_subsection and parsing 455/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 19 Jan 2015 13:07:28 +0000 (08:07 -0500)
committerTimo Heister <timo.heister@gmail.com>
Mon, 19 Jan 2015 21:47:40 +0000 (16:47 -0500)
commit18c95e4bf2cc64af53eccec1ca948de89cb9309e
treea84a7a518c4e67c0a66136a6dfdab9f0cd007623
parentbcdc679a05f47e923be0aafeb2724c31c13191e4
fix ParameterHandler::leave_subsection and parsing

- leave_subsection() had a bool return value for success that doesn't
make sense because an Assert() would never allow false to be returned.
Remove this.
- read_input() would not complain about unbalanced 'subsection'/'end' in
the input. Instead, the ParameterHandler would just stay in that
subsection and so weird error messages about undefined entries would
show up later.
- One could argue that read_input() should always start and end with an
empty subsection path, but we didn't enforce this in the past and it
might be useful to read separate files not into the "top level".
doc/news/changes.h
include/deal.II/base/parameter_handler.h
source/base/parameter_handler.cc
tests/bits/parameter_handler_19.cc [new file with mode: 0644]
tests/bits/parameter_handler_19.debug.output [new file with mode: 0644]

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.