diff --git a/Applications/Utils/Tests.cmake b/Applications/Utils/Tests.cmake index 07836e6f9fdc0fe54ac917ed1a6f7b5d361da082..dc33a2b994f1329e9dd876fb8039418b023f83f5 100644 --- a/Applications/Utils/Tests.cmake +++ b/Applications/Utils/Tests.cmake @@ -202,6 +202,32 @@ AddTest( 2Dmesh_POINT5_partitioned_node_properties_val3.bin ) +AddTest( + NAME partmesh_mesh_for_QuadraticElements_quad8_ogs2metis + PATH NodePartitionedMesh/QuadraticElements/Quad8 + WORKING_DIRECTORY ${Data_SOURCE_DIR}/NodePartitionedMesh/QuadraticElements/Quad8 + EXECUTABLE partmesh + EXECUTABLE_ARGS -i quad_q.vtu --ogs2metis -o ${Data_BINARY_DIR}/NodePartitionedMesh/QuadraticElements/Quad8 + REQUIREMENTS NOT (OGS_USE_MPI) +) + +AddTest( + NAME partmesh_mesh_for_QuadraticElements_quad8 + PATH NodePartitionedMesh/QuadraticElements/Quad8 + WORKING_DIRECTORY ${Data_SOURCE_DIR}/NodePartitionedMesh/QuadraticElements/Quad8 + EXECUTABLE partmesh + EXECUTABLE_ARGS -m -n 2 -i quad_q.vtu -o ${Data_BINARY_DIR}/NodePartitionedMesh/QuadraticElements/Quad8 + REQUIREMENTS NOT (OGS_USE_MPI OR APPLE) + DEPENDS partmesh-partmesh_mesh_for_QuadraticElements_quad8_ogs2metis + TESTER diff + DIFF_DATA quad_q_partitioned_msh_ele2.bin + quad_q_partitioned_msh_ele_g2.bin + quad_q_partitioned_msh_nod2.bin + quad_q_partitioned_msh_cfg2.bin + quad_q_partitioned_cell_properties_cfg2.bin + quad_q_partitioned_cell_properties_val2.bin +) + # Regression test for https://github.com/ufz/ogs/issues/1845 fixed in # https://github.com/ufz/ogs/pull/2237 # checkMesh crashed when encountered Line3 element. diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q.vtu b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q.vtu new file mode 100644 index 0000000000000000000000000000000000000000..1b127b9a45ef122f187ce2e2662c3ca4429efeb2 --- /dev/null +++ b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q.vtu @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<VTKFile type="UnstructuredGrid" version="1.0" byte_order="LittleEndian" header_type="UInt64"> + <UnstructuredGrid> + <Piece NumberOfPoints="23" NumberOfCells="4" > + <PointData> + </PointData> + <CellData> + <DataArray type="Int32" Name="MaterialIDs" format="appended" RangeMin="0" RangeMax="0" offset="0" /> + </CellData> + <Points> + <DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="1.0049875621" offset="32" /> + </Points> + <Cells> + <DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="780" /> + <DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="1132" /> + <DataArray type="UInt8" Name="types" format="appended" RangeMin="" RangeMax="" offset="1188" /> + </Cells> + </Piece> + </UnstructuredGrid> + <AppendedData encoding="base64"> + _EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPA/AAAAAAAAAACamZmZmZm5PwAAAAAAAPA/AAAAAAAAAACamZmZmZm5PwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYMAAAAAOg/AAAAAAAAAAAAAAAAAAAAAHZIAAAAAOA/AAAAAAAAAAAAAAAAAAAAADhJAAAAANA/AAAAAAAAAACamZmZmZm5PzYMAAAAAOg/AAAAAAAAAACamZmZmZm5P3ZIAAAAAOA/AAAAAAAAAACamZmZmZm5PzhJAAAAANA/AAAAAAAAAAAAAAAAAAAAADhJAAAAAMA/AAAAAAAAAAAAAAAAAAAAABJtAAAAANg/AAAAAAAAAAAAAAAAAAAAAFYqAAAAAOQ/AAAAAAAAAAAAAAAAAAAAABsGAAAAAOw/AAAAAAAAAACamZmZmZmpPwAAAAAAAAAAAAAAAAAAAACamZmZmZmpPzhJAAAAANA/AAAAAAAAAACamZmZmZmpP3ZIAAAAAOA/AAAAAAAAAACamZmZmZmpPzYMAAAAAOg/AAAAAAAAAACamZmZmZmpPwAAAAAAAPA/AAAAAAAAAACamZmZmZm5PzhJAAAAAMA/AAAAAAAAAACamZmZmZm5PxJtAAAAANg/AAAAAAAAAACamZmZmZm5P1YqAAAAAOQ/AAAAAAAAAACamZmZmZm5PxsGAAAAAOw/AAAAAAAAAAA=AAEAAAAAAAAEAAAAAAAAAAcAAAAAAAAAAgAAAAAAAAABAAAAAAAAABEAAAAAAAAAFgAAAAAAAAASAAAAAAAAAA0AAAAAAAAABQAAAAAAAAAIAAAAAAAAAAcAAAAAAAAABAAAAAAAAAAQAAAAAAAAABUAAAAAAAAAEQAAAAAAAAAMAAAAAAAAAAYAAAAAAAAACQAAAAAAAAAIAAAAAAAAAAUAAAAAAAAADwAAAAAAAAAUAAAAAAAAABAAAAAAAAAACwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAACQAAAAAAAAAGAAAAAAAAAA4AAAAAAAAAEwAAAAAAAAAPAAAAAAAAAAoAAAAAAAAAIAAAAAAAAAAIAAAAAAAAABAAAAAAAAAAGAAAAAAAAAAgAAAAAAAAAA==BAAAAAAAAAAXFxcX + </AppendedData> +</VTKFile> diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_cell_properties_cfg2.bin b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_cell_properties_cfg2.bin new file mode 100644 index 0000000000000000000000000000000000000000..a6a86b3772a04270face1189e175adc8aa6de04c Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_cell_properties_cfg2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_cell_properties_val2.bin b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_cell_properties_val2.bin new file mode 100644 index 0000000000000000000000000000000000000000..ee979e848b7f727e83f215af2d9361861fa197e0 Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_cell_properties_val2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_cfg2.bin b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_cfg2.bin new file mode 100644 index 0000000000000000000000000000000000000000..2b54bba207e7bb53e8c8c857ec4072f41384a540 Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_cfg2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_ele2.bin b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_ele2.bin new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_ele_g2.bin b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_ele_g2.bin new file mode 100644 index 0000000000000000000000000000000000000000..4e4ecb426491fb3f6b23acd8356d908e878a343c Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_ele_g2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_nod2.bin b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_nod2.bin new file mode 100644 index 0000000000000000000000000000000000000000..acd77c0bc08db6d07878361735bfde49f71b1ff2 Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/QuadraticElements/Quad8/quad_q_partitioned_msh_nod2.bin differ