Skip to content
Snippets Groups Projects
Commit 7fa69812 authored by Tobias Meisel's avatar Tobias Meisel
Browse files

[MeL/IO] HDF/XDMF: Reenable hdf5/xdmf tests and fix for windows

On Windows absolute path inside xdmf to hdf was incorrect. Fix to relative path because file must be transferable
parent 3d3bac74
No related branches found
No related tags found
No related merge requests found
......@@ -119,10 +119,10 @@ XdmfHdfWriter::XdmfHdfWriter(MeshLib::Mesh const& mesh,
if (isFileManager())
{
auto xdmf_writer_fn =
write_xdmf(geometry.xdmf, topology.xdmf, xdmf_constant_attributes,
xdmf_variable_attributes, hdf_filepath.string(),
GitInfoLib::GitInfo::ogs_version);
auto xdmf_writer_fn = write_xdmf(
geometry.xdmf, topology.xdmf, xdmf_constant_attributes,
xdmf_variable_attributes, hdf_filepath.filename().string(),
GitInfoLib::GitInfo::ogs_version);
_xdmf_writer = std::make_unique<XdmfWriter>(xdmf_filepath.string(),
xdmf_writer_fn);
_xdmf_writer->addTimeStep(initial_time);
......
......@@ -482,9 +482,7 @@ AddTest(
WRAPPER time
TESTER xdmfdiff
# See https://gitlab.opengeosys.org/ogs/ogs/-/merge_requests/3184#note_85104
# TODO: re-enable this, see #3177.
# REQUIREMENTS NOT OGS_USE_MPI AND NOT COMPILER_IS_APPLE_CLANG
REQUIREMENTS OFF
REQUIREMENTS NOT OGS_USE_MPI AND NOT COMPILER_IS_APPLE_CLANG
DIFF_DATA
square_5x5_tris_32.xdmf square_5x5_tris_32.xdmf pressure pressure 1e-7 1e-13
square_5x5_tris_32.xdmf square_5x5_tris_32.xdmf HydraulicFlow HydraulicFlow 1e-7 1e-13
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment