Then you are not writing your XML/XDMF-files correctly. For instance, what is in the corresponding: </Information><Geometry GeometryType="XYZ"><DataItem DataType="Float" Dimensions="23 3" Format="XML" Precision="8">
Also, what happens if you read in the file I sent you?
In my file, the information is <Xdmf version="3.0"><Domain><Grid GridType="Uniform" Name="base_mesh"><Topology NodesPerElement="6" NumberOfElements="6107" TopologyType="TRIANGLE_6"><DataItem Dimensions="6107 6" Format="XML" NumberType="UInt">0 1 2 3172 3173 3174
It has to have a geometry type as well, like: </Information><Geometry GeometryType="XYZ"><DataItem DataType="Float" Dimensions="23 3" Format="XML" Precision="8">
This contains all the nodes of the mesh
when I added geometry <Geometry GeometryType="XYZ"> to the xdmf file, I am getting error saying
*** -------------------------------------------------------------------------
*** DOLFIN encountered an error. If you are not able to resolve this issue
*** using the information listed below, you can ask for help at
***
*** fenics-support@googlegroups.com
***
*** Remember to include the error message listed below and, if possible,
*** include a *minimal* running example to reproduce the error.
***
*** -------------------------------------------------------------------------
*** Error: Unable to determine geometric dimension.
*** Reason: GeometryType "" in XDMF file is unknown or unsupported.
*** Where: This error was encountered inside XDMFFile.cpp.
*** Process: 0
***
*** DOLFIN version: 2019.1.0
*** Git changeset: 77c758717da1cb8017bf95109363bb1a91a4f8e5
*** -------------------------------------------------------------------------
I think I resolved the issue.
In .xml format, the dimension is saved as 2. I changed it to 3 and now it is importing as 3D mesh.
Maybe I should be careful and inspect the mesh files after converting them from one to another.
That is likely the issue. Above I gave you a reference mesh that contains the two parts of information that is required to read in a second order 2D geometry embedded in a 3D space. When converting from xmlto xdmf your xdmffile has to include a geometry (the nodes of the mesh), and a topology (the connectivity of the nodes where each row is a cell).