From 26948a100ae137653277bf182dc0b8d7657f3f92 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Sun, 11 Dec 2022 16:47:26 +0100 Subject: [PATCH] ParameterHandler: add example for json --- include/deal.II/base/parameter_handler.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/deal.II/base/parameter_handler.h b/include/deal.II/base/parameter_handler.h index ac91eaeadc..2ca043f297 100644 --- a/include/deal.II/base/parameter_handler.h +++ b/include/deal.II/base/parameter_handler.h @@ -198,6 +198,21 @@ class MultipleParameterLoop; * word with a capital letter and use lowercase letters further on. The same * applies to the possible entry values to the right of the = sign. * + * The class can also handle json-files and XML-files. The json input file might + * look like the following for the previous example: + * @code + * { + * "Nonlinear solver" : { + * "Nonlinear method" : "Gradient", + * "Linear solver" : { + * "Solver" : "CG", + * "Maximum number of iterations" : 30 + * } + * } + * } + * @endcode + * The advantage of using json-files is that this format is natively supported + * by Python, simplifying the running of paramter studies tremendously. * *

Including other input files

* -- 2.39.5