Actually, you have some alternatives… 

Take a look at this class:

https://github.com/mathLab/deal2lkit/blob/master/include/deal2lkit/parsed_mapped_functions.h

It does something similar to what you are asking for. 

(documentation here:

http://mathlab.github.io/deal2lkit/class_parsed_mapped_functions.html

Best,
Luca.

> On 13 Feb 2017, at 16:49, Bruno Turcksin <bruno.turck...@gmail.com> wrote:
> 
> 2017-02-13 10:34 GMT-05:00 Franco Milicchio <franco.milicc...@gmail.com>:
>> Because I can imagine that having several BCs with some magic char there is
>> simply a recipe for disaster :)
>> 
>> Just think about this example:
>> 
>>  set dirichlet = x^2+y^2 : if(x < 0, 1, 3) : 0; 0 : 0 : 0
>> 
>> Since I am working with people not well versed in programming, that is
>> quite a concern to me.
> Well then you will need to declare everything in advance. The only
> solution I can think of is to use sth like boost::property_tree
> instead of ParameterHandler.
> 
> Best,
> 
> Bruno
> 
> -- 
> 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.

Reply via email to