Hello,
I have generated a .vtu file with MEDCoupling9.7 : it is a 3D Cube with 5 nodes for each axis. I can open it with Visit but not with Paraview-5.4.1.
Very strangely, it works for a 4x4x4 nodes ! And by the way, if I open the 5x5x5 in Visit and export it in VTK, the file becomes correct for Paraview…
The error message is given below.
I attach the .vtu file and I give the Python MEDCoupling script which has generated it.
Thank you in advance
import medcoupling as mc
XCoords=[0.,1.,2.,3.,4.] # provide Nx nodes for x
YCoords=[0.,1.,2.,3.,4.] # provide Ny nodes for y
ZCoords=[0.,1.,2.,3.,4.] # provide Nz nodes for z
arrX=mc.DataArrayDouble(XCoords)
arrY=mc.DataArrayDouble(YCoords)
arrZ=mc.DataArrayDouble(ZCoords)
Cmesh=mc.MEDCouplingCMesh("My3DMesh")
Cmesh.setCoords(arrX,arrY,arrZ)
Umesh=Cmesh.buildUnstructured()
f = Umesh.getMeasureField( True )
dummy=mc.MEDCouplingFieldDouble.WriteVTK("Pb_TailleDeListe",[f])
Pb_TailleDeListe.vtu (7.3 KB)
paraview Pb_TailleDeListe.vtu
ERROR: In /build/paraview-OJ3Fdc/paraview-5.4.1+dfsg4/VTK/IO/XMLParser/vtkXMLParser.cxx, line 399
vtkXMLDataParser (0x558246625b00): Error parsing XML in stream at line 28, column 0, byte index 995: junk after document element
ERROR: In /build/paraview-OJ3Fdc/paraview-5.4.1+dfsg4/VTK/IO/XML/vtkXMLReader.cxx, line 478
vtkXMLUnstructuredGridReader (0x55824660d5c0): Error parsing input file. ReadXMLInformation aborting.
ERROR: In /build/paraview-OJ3Fdc/paraview-5.4.1+dfsg4/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkPVCompositeDataPipeline (0x558246612f80): Algorithm vtkXMLUnstructuredGridReader(0x55824660d5c0) returned failure for request: vtkInformation (0x558246669680)
Debug: Off
Modified Time: 164020
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0