ParameterHandler: MultipleSelection of couples

16 views
Skip to first unread message

Franco Milicchio

unread,
Feb 8, 2017, 11:21:47 AM2/8/17
to deal.II User Group
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!

Praveen C

unread,
Feb 8, 2017, 11:28:36 AM2/8/17
to Deal.II Googlegroup

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Franco Milicchio

unread,
Feb 8, 2017, 11:50:45 AM2/8/17
to deal.II User Group
Thanks, Praveen. 

I could use those, and in my tests that I've done now they work great, but this means I won't be able to detect errors automatically. This deal.II feature is the best thing, dropping it would be not so cool.

If not possible, I will just do this by hand.

Thank you!
    Franco
Reply all
Reply to author
Forward
0 new messages