← Back to team overview

dolfin team mailing list archive

read/write Function from/to file

 

Hello!

Now that we have removed the read/write Function from/to file in the c++ 
interface we have to change the python interface too. I haven't done this 
yet. 

But before I do this I wonder if we _should_ add some logic in the python 
interface that allow the functionality we previously had, i.e., writing and 
reading Function to and from a file directly? 

We could perhaps extend the <</>> operator in the c++ wrapper so an xml file 
with the vector, mesh and the FiniteElement signature will be saved in. Then 
in python we can jit compile the FE, when reading the file. We should 
probably have one constructor taking only the xml file but also one taking an 
optional mesh argument, preventing the problems with duplications of meshes.

Would this be desirable? I know Ola have made some thoughts about this.

Johan


Follow ups