• Brian Panneton's avatar
    BUG: Fixed resolving file names with protocol added · 294c383c
    Brian Panneton authored
    The bug appears when trying to use a filename given as:
    file:///path/to/xmf/file.xmf and the xmf contains a reference to an h5 file.
    
    - When writing you will end up with a file called 'file:' which contains
    random data.
    - When reading, libxml2 has no problem opening the xml file however
    getRealPath() returns the wrong path for the h5 file. If you try to
    use file.xmf from the to directory (ie: read("to/xmf/file.xmf")) the
    h5 file will be loaded from 'to/file.h5'.
    
    To correct the issue, we strip out the unwanted scheme and other stuff
    in the URI and just use the path. (libxml has functions for this)
    294c383c
Name
Last commit
Last update
CMake Loading commit data...
core Loading commit data...
doc Loading commit data...
tests Loading commit data...
utils Loading commit data...
CMakeLists.txt Loading commit data...
CTestConfig.cmake Loading commit data...
Copyright.txt Loading commit data...
Xdmf.hpp Loading commit data...
Xdmf.i Loading commit data...
XdmfAttribute.cpp Loading commit data...
XdmfAttribute.hpp Loading commit data...
XdmfAttributeCenter.cpp Loading commit data...
XdmfAttributeCenter.hpp Loading commit data...
XdmfAttributeType.cpp Loading commit data...
XdmfAttributeType.hpp Loading commit data...
XdmfConfig.cmake.in Loading commit data...
XdmfCurvilinearGrid.cpp Loading commit data...
XdmfCurvilinearGrid.hpp Loading commit data...
XdmfDomain.cpp Loading commit data...
XdmfDomain.hpp Loading commit data...
XdmfGeometry.cpp Loading commit data...
XdmfGeometry.hpp Loading commit data...
XdmfGeometryType.cpp Loading commit data...
XdmfGeometryType.hpp Loading commit data...
XdmfGrid.cpp Loading commit data...
XdmfGrid.hpp Loading commit data...
XdmfGridCollection.cpp Loading commit data...
XdmfGridCollection.hpp Loading commit data...
XdmfGridCollectionType.cpp Loading commit data...
XdmfGridCollectionType.hpp Loading commit data...
XdmfItemFactory.cpp Loading commit data...
XdmfItemFactory.hpp Loading commit data...
XdmfMap.cpp Loading commit data...
XdmfMap.hpp Loading commit data...
XdmfReader.cpp Loading commit data...
XdmfReader.hpp Loading commit data...
XdmfRectilinearGrid.cpp Loading commit data...
XdmfRectilinearGrid.hpp Loading commit data...
XdmfRegularGrid.cpp Loading commit data...
XdmfRegularGrid.hpp Loading commit data...
XdmfSet.cpp Loading commit data...
XdmfSet.hpp Loading commit data...
XdmfSetType.cpp Loading commit data...
XdmfSetType.hpp Loading commit data...
XdmfTime.cpp Loading commit data...
XdmfTime.hpp Loading commit data...
XdmfTopology.cpp Loading commit data...
XdmfTopology.hpp Loading commit data...
XdmfTopologyType.cpp Loading commit data...
XdmfTopologyType.hpp Loading commit data...
XdmfUnstructuredGrid.cpp Loading commit data...
XdmfUnstructuredGrid.hpp Loading commit data...