Juan, there is only one version of interpolate_boundary_values with MappingCollection and it requires the third argument to be a std::map instead of a single function. Might this be the error message you are getting?
On Mon, Oct 23, 2017 at 3:08 PM, Juan Carlos Araujo Cabarcas <[email protected]> wrote: > Dear all, > > I would like to reproduce step-27 for a curved domain instead of the given > domain. > For this, I would like to make use of a MappingCollection. > > I am having problems using interpolate_boundary_values, suggested in: > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.dealii.org_8.5.0_doxygen_deal.II_namespaceVectorTools.html-23a074cd2642b4abdfd67db2c672c907781&d=DwIFaQ&c=Ngd-ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=4k7iKXbjGC8LfYxVJJXiaYVu6FRWmEjX38S7JmlS9Vw&m=fihUVnHITudx1-QiLflMesQwzeMCPVGgq0F43ypZXuA&s=iIq-guuMpLah1h-ZYYye3aQlj38WM97naY4xypYoMNE&e= > > > Basically I use the following: > > hp::DoFHandler<dim> dof_handler; > hp::FECollection<dim> fe_collection; > hp::MappingCollection<dim> mapping_collection; > hp::QCollection<dim> quadrature_collection; > hp::QCollection<dim-1> face_quadrature_collection; > > > > and initialize them as step-27. Then I try: > > > static std::map<types::global_dof_index, double> bval; > VectorTools::interpolate_boundary_values (mapping_collection, > dof_handler, ZeroFunction<dim>(), bval); > > > > and I get the following error: > > [100%] Building CXX object CMakeFiles/pFEM.dir/pFEM.cc.o > /home/ju4nk4/jc/codes/adaptivity/disk_pFEM/pFEM.cc: In instantiation of > ‘void Adaptive::LaplaceProblem<dim>::setup_system() [with int dim = 2]’: > /home/ju4nk4/jc/codes/adaptivity/disk_pFEM/pFEM.cc:377:23: required from > ‘void Adaptive::LaplaceProblem<dim>::run() [with int dim = 2]’ > /home/ju4nk4/jc/codes/adaptivity/disk_pFEM/pFEM.cc:418:28: required from > here > /home/ju4nk4/jc/codes/adaptivity/disk_pFEM/pFEM.cc:205:51: error: no > matching function for call to > ‘interpolate_boundary_values(dealii::hp::MappingCollection<2, 2>&, > dealii::hp::DoFHandler<2, 2>&, dealii::ZeroFunction<2, double>, > std::map<unsigned int, double>&)’ > bval); > ^ > /home/ju4nk4/jc/codes/adaptivity/disk_pFEM/pFEM.cc:205:51: note: candidates > are: ... > > I digged into the documentation for a while before emailing, but found that > MappingCollection is not really discussed much, and the documentation for > the call VectorTools::interpolate_boundary_values for MappingCollection just > says: > > "Like the previous function, but take a mapping collection to go with > the hp::DoFHandler object." ... > > So, there is no special comments there either. > > Any guidance would be very much appreciated! > > Juan Carlos Araújo, > Umeå Universitet > > -- > 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=fihUVnHITudx1-QiLflMesQwzeMCPVGgq0F43ypZXuA&s=C31j2rSYQmCzApV6GxSyGz66HUu92woOqXucqP7EPzE&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=fihUVnHITudx1-QiLflMesQwzeMCPVGgq0F43ypZXuA&s=ULmYusoT6lwC3C5xIKagfHwyGsaQLFyM74fK2M9FprE&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 [email protected]. > 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=fihUVnHITudx1-QiLflMesQwzeMCPVGgq0F43ypZXuA&s=Z_Y-x97bv8USFu4txqGafmEvnLSRgO2kbjL2v68Ar4E&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 [email protected]. For more options, visit https://groups.google.com/d/optout.
