Quick question about freefem output

Hi all, if I have two functions defined in a FE space as follows:

fespace Vh(mesh, P1);
Vh u1, u2;

will it be the case that array entries u1[ ][ i ] and u2[ ][ i ] each correspond to the same point in the mesh? I’m fairly sure that this is indeed the case, but I just want to check.

Hopefully this question is clear, please say if it isn’t!

Many thanks!

Yes you are right, the dof i (degree of freefem) in P1 is the vertex i in the mesh

1 Like