From 524d644fc9050d03ceb1b22f1c07b04c0de9b5b7 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 16 Sep 2010 17:31:58 +0000 Subject: [PATCH] Wrap XML output into a single top-level tag. git-svn-id: https://svn.dealii.org/trunk@21997 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/parameter_handler.h | 54 +++++++++++-------- deal.II/base/source/parameter_handler.cc | 36 ++++++++++--- .../parameter_handler_write_xml/cmp/generic | 4 +- 3 files changed, 62 insertions(+), 32 deletions(-) diff --git a/deal.II/base/include/base/parameter_handler.h b/deal.II/base/include/base/parameter_handler.h index e6c5f8981b..223ff90194 100644 --- a/deal.II/base/include/base/parameter_handler.h +++ b/deal.II/base/include/base/parameter_handler.h @@ -1295,34 +1295,39 @@ namespace Patterns * this: * @code * - * - * 10 - * 10 - * A parameter that describes the maximal number of iterations the CG method is to take before giving up on a matrix. - * 0 - * [Integer range 1...1000 (inclusive)] - * - * - * SSOR - * SSOR - * A string that describes the kind of preconditioner to use. - * 1 - * SSOR|Jacobi - * - * - * 1.0 - * 1.0 - * The numerical value (between zero and one) for the relaxation factor to use in the preconditioner. - * 2 - * [Floating point range 0...1 (inclusive)] - * - * + * + * + * 10 + * 10 + * A parameter that describes the maximal number of iterations the CG method is to take before giving up on a matrix. + * 0 + * [Integer range 1...1000 (inclusive)] + * + * + * SSOR + * SSOR + * A string that describes the kind of preconditioner to use. + * 1 + * SSOR|Jacobi + * + * + * 1.0 + * 1.0 + * The numerical value (between zero and one) for the relaxation factor to use in the preconditioner. + * 2 + * [Floating point range 0...1 (inclusive)] + * + * + * * @endcode * This representation closely resembles the directory/file structure * discussed above. The only difference is that directory and file * names are mangled: since they should only contain letters and * numbers, every character in their names that's not one is replaced * by an underscore followed by its two-digit hexadecimal representation. + * In addition, the entire tree is wrapped into a tag + * ParameterHandler to satisfy the XML requirement that there + * be only a single top-level construct in each file. * * * @ingroup input @@ -1379,6 +1384,11 @@ class ParameterHandler : public Subscriptor * Write out everything as * an -11doc 10[Integer range -2147483648...2147483647 (inclusive)]22doc 21[Integer range -2147483648...2147483647 (inclusive)]1.2341.234doc 32[Floating point range -1.79769e+308...1.79769e+308 (inclusive)]4.3214.321doc 43[Floating point range -1.79769e+308...1.79769e+308 (inclusive)]< & > ; /< & > ; /docs 14[Anything]22 -5[Integer range -2147483648...2147483647 (inclusive)]6.14159266.1415926docs 36[Floating point range -1.79769e+308...1.79769e+308 (inclusive)] +11doc 10[Integer range -2147483648...2147483647 (inclusive)]22doc 21[Integer range -2147483648...2147483647 (inclusive)]1.2341.234doc 32[Floating point range -1.79769e+308...1.79769e+308 (inclusive)]4.3214.321doc 43[Floating point range -1.79769e+308...1.79769e+308 (inclusive)]< & > ; /< & > ; /docs 14[Anything]22 +5[Integer range -2147483648...2147483647 (inclusive)]6.14159266.1415926docs 36[Floating point range -1.79769e+308...1.79769e+308 (inclusive)] -- 2.39.5