Thanks Markus,

I see.

So from your second paragraph, I'm not even sure if I can do the following (which is different than the situation i posed below) - I solve a system of 2 equations (for u and v) and I use an FESystem:

FESystem<2> fe_vel (FE_Q<2>(1), 2);

And now i want to use that as a member of a collection :

hp::FECollection col;
col.push_back (FESystem<2>  (FE_Q<2>(1), 2));
col.push_back ([something else]);

... can i not do this either???

Thanks Dan

Markus Bürg wrote:
Hello Daniel,

no it cannot. If you want to use FECollection, you also have to use the other parts of the hp-namespace, e.g. hp::DoFHandler, hp::FEValues,....

If you use FESystem, then all FiniteElements contained in the FESystem are active on all cells, but if you use FECollection, then there is a pointer for every cell, which points to exactly one FiniteElement contained in FECollection, which is then active on this particular cell.

Best Regards,
Markus



Daniel Goldberg schrieb:
The subject basically says it all. I see FESystem inherits from FiniteElement, so an FESystem can take the place of a FiniteElement object in an FECollection, but I don't see that FECollection can be used interchangeably with a FiniteElement object - can it?
_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii


_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to