Hi In a similar case I have used this function
http://www.dealii.org/developer/doxygen/deal.II/namespaceUtilities.html#a8d799bb35ac16d206818c88e82afbfae You can use this twice to get the result you want, combined with http://www.dealii.org/developer/doxygen/deal.II/namespaceUtilities.html#af501c72fdc02dd969cd9d82d0f30642c Best praveen On Wed, Feb 8, 2017 at 9:51 PM, Franco Milicchio <franco.milicc...@gmail.com > wrote: > Dear all, > > I am using the ParameterHandler class to select multiple parameters and > lists, but I don't know if I could have something like the following. > > What I'd like is to specify multiple parameters that, sort of nested, have > a string and an integer. As a concrete example, I want to specify stress > components, or strain, or others. For instance, I'd like to allow "stress", > "strain", "work", and "power", but only the first two should have an > additional integer. Take for instance the following (don't mind the syntax, > please): > > subsection dump > > set paraview = strain 1, work, stress 8 > > end > > Is there any way I could achieve this with predefined classes? Or should I > just read a list of strings and parse them myself? > > 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. > -- 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.