← Back to team overview

dolfin team mailing list archive

New xml io

 

I've been looking at the new XML io with the intention of getting the plotting of MeshFunctions working again, but it's not clear to me what the intention is with the input of MeshFunctions. If 'intersection' is a MeshFunction<unsigned int>, if I do

    File file("mesh_function.xml", true);
    file << intersection;

the file "mesh_function.xml" contains the XML output for a Mesh and a MeshFuncion (the latter being just a list of numbers). When I then try to read the MeshFunction,

    MeshFunction<unsigned int> test_function;
    file >> test_function;

I get the error "what(): *** Error: Mesh has not been specified, unable to initialize mesh function."

The new XML code look sophisticated and takes some effort to understand - can we clear out the old code yet so there is less to trawl through?

Garth


Follow ups