Hi Simon,

It sounds like you want to use Patterns::Map or Patterns::List. As far
as I know both can accept an arbitrary number of input arguments.
Would either of those work for you?

Thanks,
David

On Sun, Jan 26, 2020 at 2:01 PM Simon Gauvin <[email protected]> wrote:
>
> Greetings!
>
> I currently work on the Lethe project, (https://github.com/lethe-cfd/lethe), 
> and we currently are facing a problem with ParameterHandler.
> We need a way to have a list of variable size in a .prm file (eg; set array = 
> [{set var = bool, set var2 = string, etc}, {...}, ...])
> From reading the official doc, I don't think we can do something like this.
> Or else just having a way to know if a subsection already exists would work, 
> (which we can't do I seem to understand), so we can simply have a variable 
> number of subsections, and know the number of subsections.
> Is there any workaround?
> I was thinking maybe just using JSONs instead of a prm would work.
>
> Thanks for your help! :)
>
> Simon
>
> --
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/dealii/daa92981-663d-4563-bcbd-de88199ab9c1%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CABrTbYTSpNejg-XZVGXANq2ruFLueVcyW34Sd3V352R7mMkqZA%40mail.gmail.com.

Reply via email to