@@ -128,9 +128,9 @@ namespace partdiff {
128128 this ->add_argument_description (
129129 " method" , method,
130130 std::format (" calculation method (1 .. 2)\n "
131- " {0}{1:d}: Gauß-Seidel \n "
132- " {0}{2:d}: Jacobi " ,
133- indent, to_underlying ( calculation_method::gauss_seidel), to_underlying ( calculation_method::jacobi) ),
131+ " {0}{1:d}: {1:s} \n "
132+ " {0}{2:d}: {2:s} " ,
133+ indent, calculation_method::gauss_seidel, calculation_method::jacobi),
134134 [method] { return (*method == calculation_method::gauss_seidel || *method == calculation_method::jacobi); });
135135
136136 auto interlines = &(this ->options .interlines );
@@ -141,27 +141,26 @@ namespace partdiff {
141141 [interlines] { return (interlines_bounds.contains (*interlines)); });
142142
143143 auto pert_func = &(this ->options .pert_func );
144- this ->add_argument_description (
145- " func " , pert_func,
146- std::format ( " perturbation function (1 .. 2) \n "
147- " {0}{1 :d}: f(x,y) = 0 \n "
148- " {0}{2:d}: f(x,y) = 2 * pi^2 * sin(pi * x) * sin(pi * y) " ,
149- indent, to_underlying (perturbation_function::f0), to_underlying (perturbation_function::fpisin)),
150- [ pert_func] {
151- return (*pert_func == perturbation_function::f0 || *pert_func == perturbation_function::fpisin);
152- });
144+ this ->add_argument_description (" func " , pert_func,
145+ std::format ( " perturbation function (1 .. 2) \n "
146+ " {0}{1:d}: {1:s} \n "
147+ " {0}{2 :d}: {2:s} " ,
148+ indent, perturbation_function::f0, perturbation_function::fpisin) ,
149+ [pert_func] {
150+ return (* pert_func == perturbation_function::f0 ||
151+ *pert_func == perturbation_function::fpisin);
152+ });
153153
154154 auto termination = &(this ->options .termination );
155- this ->add_argument_description (" term" , termination,
156- std::format (" termination condition ( 1.. 2)\n "
157- " {0}{1:d}: sufficient accuracy\n "
158- " {0}{2:d}: number of iterations" ,
159- indent, to_underlying (termination_condition::accuracy),
160- to_underlying (termination_condition::iterations)),
161- [termination] {
162- return (*termination == termination_condition::accuracy ||
163- *termination == termination_condition::iterations);
164- });
155+ this ->add_argument_description (
156+ " term" , termination,
157+ std::format (" termination condition ( 1.. 2)\n "
158+ " {0}{1:d}: {1:s}\n "
159+ " {0}{2:d}: {2:s}" ,
160+ indent, termination_condition::accuracy, termination_condition::iterations),
161+ [termination] {
162+ return (*termination == termination_condition::accuracy || *termination == termination_condition::iterations);
163+ });
165164
166165 this ->add_argument_description (" acc/iter" , std::format (" depending on term:\n "
167166 " {0}accuracy: {1:.0e}\n "
0 commit comments