How to define a function space of rank 1

4 months ago by
Hello everyone,

I am doing a projection of a vector expression bb with

Projection::FunctionSpace V4(mesh);
auto b_inter = std::make_shared<dolfin::Function>(V4);

and inside the Projecton.ufl I have

V = VectorElement("CG", triangle, 2)

however when I run the code I get

*** Error: Unable to interpolate function into function space.
*** Reason: Rank of function (1) does not match rank of function space (0).
*** Where: This error was encountered inside FunctionSpace.cpp.
*** Process: unknown

I thought Vector Element function space will be of rank 1, anyone knows what is going on here ?

Thanks in advance.
Community: FEniCS Project
Please login to add an answer/comment or follow this question.

Similar posts:
Search »