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: [email protected]
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/0ce87d6b-3ad5-a6ce-abd3-09bf7dd7861c%40colostate.edu.