Hi, projecting f+g
to some function space V
will give you a function in V
that you can
save to file
w = project(f + g, V)
As an alternative, if f
, g
are in the same function, you could get w
in V
by adding the
expansion coefficents
w = Function(V)
w.vector().axpy(1, f.vector()) # w has same exp. coeff as f
w.vector().axpy(1, g.vector()) # w is now f+g