Franco, you could write everything into one string and then split it. So it would like this:
subsection bc set value = 0.5*x+y; x*y^2 end Take a look here http://stackoverflow.com/questions/236129/split-a-string-in-c for some ideas how to split a string. Best, Bruno On Monday, February 13, 2017 at 9:01:51 AM UTC-5, Franco Milicchio wrote: > > Dear all, > > I want to have a series of functions read from an input file handled by > the *ParameterHandler* class. These are the BCs of my problem, but I > don't know how I could express them, since I'd like to have an unknown > number of them. > > As far as I've understood, the parameters sections must have a unique > name, so I simply cannot do something like this: > > subsection dirichlet > > subsection bc > set value = 0.5 * x + y > end > > subsection bc > set value = x * y^2 > end > > end > > and I am forced to use *bc1*, *bc2*, and so on as names. Moreover, this > means that I have to declare beforehand all the possible sections within a > reasonable number of BCs. > > Do you have any suggestions? > > Thanks! > > > > > -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.