There is currently no automated way to parse this, but I just created an example that might help you: https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_dealii_dealii_pull_4143&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=dgi6rqBaSVPW2bbGJ1-jqbe37OLMUQLZ-7BfSHqpvE8&s=Rp4LtT7kTuQ_vwnrhEzB2-ZQ-JazESiqFtzhfIx0P7M&e=
On Thu, Mar 30, 2017 at 5:27 AM, Jose Javier Muñoz Criollo <josejmcrio...@gmail.com> wrote: > Hi > > I'm trying to create a file with all the parameters I need for my program. > I'm using the ParameterHandler class for this. One parameter could be > defined as a map and for this I try to use Patterns::Map > > std::map<unsigned int,std::string> my_map; > > however, when I try to parse the parameter as: > > my_map = prm.get ("map string"); > > I receive an error about assigning a string to a map, I guess this makes > sense, but in the ParameterHandler.h file I couldn't find a suitable method > to do this. I just found .get, .get_integer, .get_double and .get_bool. > > Maybe I'm trying to parse it in the wrong way? Or the method is missing, if > so I can try to give it a go to write it myself. > > > Regards > > -- > José Javier Muñoz Criollo > Research Associate > Cardiff University School of Engineering > Tel: (0)29 208 75759 > E-mail: munozcrioll...@cardiff.ac.uk, josejmcrio...@gmail.com > > -- > The deal.II project is located at > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.dealii.org_&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=dgi6rqBaSVPW2bbGJ1-jqbe37OLMUQLZ-7BfSHqpvE8&s=z4F3Jrpa1AoPLVc9MdxjU_ruSrSVvOA2airs90Qk5_E&e= > > For mailing list/forum options, see > https://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_forum_dealii-3Fhl-3Den&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=dgi6rqBaSVPW2bbGJ1-jqbe37OLMUQLZ-7BfSHqpvE8&s=JgT3jOHIzqEW98cBxO8L7bwNq7IINQMhfqos77BU7_4&e= > > --- > 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://urldefense.proofpoint.com/v2/url?u=https-3A__groups.google.com_d_optout&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=dgi6rqBaSVPW2bbGJ1-jqbe37OLMUQLZ-7BfSHqpvE8&s=NStA6jX6J6MYDl0EyXysU7kzGn2cF957tGsEf_SdwDc&e= > . -- Timo Heister http://www.math.clemson.edu/~heister/ -- 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.