Dear team,
I have a beginner question about function initialisation in Firedrake.
I have the follow simple mesh and function space, and I want to
initialise function g with values from numpy arrays (gx, gy). I'm not
sure which way should I align the data in the constructor, i.e. should I
concatenate gx, gy or interleave them?
mesh = RectangleMesh(nx-1,ny-1,nx,ny)
V = VectorFunctionSpace(mesh, "CG", 1)
# g = Function(V, np.concatenate((gx, gy), axis=0))) ???
Many thanks,
-TJ
_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake