construct discrete function from given dof vector
At the moment there is a method space.numpyFunction to generate a discrete function from a given numpy array. We need something similar for istls BVector
and Petsc::Vec
storages. Possibly:
space.discreteFunction(vector,name)
and the correct version is used depending on the type of vector. Alternative, the vector has to match the storage provided by the space.