Thanks, Wolfgang. Your solution worked for me. Just for posterity, I got stuck again because I created FE_System and FE_Enriched in the wrong order: const FESystem<dim,spacedim> fesys; const FE_Enriched<dim> fenr;
my problem was resolved when I switched it around to: const FE_Enriched<dim> fenr; const FESystem<dim,spacedim> fesys; Cheers, Alex On Wednesday, June 21, 2023 at 1:25:44 AM UTC-4 Wolfgang Bangerth wrote: > On 6/20/23 10:00, Alex Quinlan wrote: > > > > How can I go about getting a vector solution with FE_Enriched? I have > tried > > to use vector arguments in FE_Enriched for base elements, enriched > elements, > > and enrichment functions, based on the documentation. I have also tried > to > > use FE_Enriched as an argument to FE_System: > > > > const FESystem<dim,spacedim> fesys; > > const FE_Enriched<dim> fenr; > > > > shElast<dim, spacedim>::shElast() > > :fesys(fenr(FE_Q<dim>(2), > > FE_Q<dim>(1), > > &potential ) > > , 3) > > This is the right idea, but the wrong syntax. In constructors, what comes > after the : is a comma-separated list of the form > member_var_name(arg1,arg2,...), > ... > > So you need to write this list as > > shElast<dim, spacedim>::shElast() > :fenr(FE_Q<dim>(2), > FE_Q<dim>(1), > &potential ) > ,fesys(fenr, 3) > {...} > > Best > W. > -- > ------------------------------------------------------------------------ > Wolfgang Bangerth email: bang...@colostate.edu > www: http://www.math.colostate.edu/~bangerth/ > > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/d00a28c2-5053-4545-8aa6-0059fa274bd5n%40googlegroups.com.