diff --git a/Applications/Utils/Tests.cmake b/Applications/Utils/Tests.cmake index 9b796f071fdfedc682de2b3f0c55eed7a43c8945..5b820fe769dd5400b790cd46e58e5f3077a70f36 100644 --- a/Applications/Utils/Tests.cmake +++ b/Applications/Utils/Tests.cmake @@ -313,6 +313,24 @@ foreach(element_type tri quad) ) endforeach() +AddTest( + NAME partmesh_with_field_data + PATH NodePartitionedMesh/partmesh + EXECUTABLE partmesh + EXECUTABLE_ARGS -n 2 -i cube_1x1x1_hex_8.vtu -o ${Data_BINARY_DIR}/NodePartitionedMesh/partmesh + TESTER diff + REQUIREMENTS NOT OGS_USE_MPI + DIFF_DATA + cube_1x1x1_hex_8_partitioned_cell_properties_cfg2.bin + cube_1x1x1_hex_8_partitioned_cell_properties_val2.bin + cube_1x1x1_hex_8_partitioned_msh_cfg2.bin + cube_1x1x1_hex_8_partitioned_msh_ele2.bin + cube_1x1x1_hex_8_partitioned_msh_ele_g2.bin + cube_1x1x1_hex_8_partitioned_msh_nod2.bin + cube_1x1x1_hex_8_partitioned_node_properties_cfg2.bin + cube_1x1x1_hex_8_partitioned_node_properties_val2.bin +) + if(OGS_USE_NETCDF) AddTest( NAME NetCDF_2D_Test diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.mesh.epart.2 b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.mesh.epart.2 new file mode 100644 index 0000000000000000000000000000000000000000..b762556dc02b8579a484000cb7319b737a2c70dd --- /dev/null +++ b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.mesh.epart.2 @@ -0,0 +1,8 @@ +1 +1 +0 +0 +1 +1 +1 +0 diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.mesh.npart.2 b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.mesh.npart.2 new file mode 100644 index 0000000000000000000000000000000000000000..4d63d616721a7418d0aa5d15c420ccce0314db89 --- /dev/null +++ b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.mesh.npart.2 @@ -0,0 +1,27 @@ +0 +1 +1 +0 +0 +0 +1 +1 +1 +1 +1 +0 +1 +1 +0 +0 +0 +0 +0 +0 +1 +1 +1 +0 +0 +0 +1 diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.vtu b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.vtu new file mode 100644 index 0000000000000000000000000000000000000000..70bc7a619ba3c237987abc3759d59cb47f5e9b12 --- /dev/null +++ b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8.vtu @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian" header_type="UInt32" compressor="vtkZLibDataCompressor"> + <UnstructuredGrid> + <FieldData> + <DataArray type="Int8" Name="OGS_VERSION" NumberOfTuples="42" format="appended" RangeMin="45" RangeMax="121" offset="0" /> + </FieldData> + <Piece NumberOfPoints="27" NumberOfCells="8" > + <PointData> + <DataArray type="Float64" Name="D1_left_front_N1_right" format="appended" RangeMin="1" RangeMax="1.6753144833" offset="92" /> + <DataArray type="Float64" Name="Linear_1_to_minus1" format="appended" RangeMin="-1" RangeMax="1" offset="192" /> + <DataArray type="Float64" Name="pressure" format="appended" RangeMin="-1" RangeMax="1" offset="248" /> + <DataArray type="Float64" Name="v" NumberOfComponents="3" format="appended" RangeMin="2" RangeMax="2" offset="304" /> + </PointData> + <CellData> + <DataArray type="Int32" Name="MaterialIDs" format="appended" RangeMin="0" RangeMax="0" offset="824" /> + </CellData> + <Points> + <DataArray type="Float64" Name="Points" NumberOfComponents="3" format="appended" RangeMin="0" RangeMax="1.7320508076" offset="864" /> + </Points> + <Cells> + <DataArray type="Int64" Name="connectivity" format="appended" RangeMin="" RangeMax="" offset="996" /> + <DataArray type="Int64" Name="offsets" format="appended" RangeMin="" RangeMax="" offset="1156" /> + <DataArray type="UInt8" Name="types" format="appended" RangeMin="" RangeMax="" offset="1220" /> + </Cells> + </Piece> + </UnstructuredGrid> + <AppendedData encoding="base64"> + _AQAAAACAAAAqAAAAMQAAAA==eF4FwUEOABAMAMEXabZF9T+aiKu4+L0ZlyoUpWtZ5Bzu0ZHc5z4xDAautDD71j0J/w==AQAAAACAAADYAAAANwAAAA==eF5jYACBD/YMOGjHz9uUbZw/26/LmfNZnPEnXDxi+ZyXCrFf7HXs3frFzv3CqX+gzAEA2G8/mg==AQAAAACAAADYAAAAFgAAAA==eF5jYACBD/YMKODDfoYhLg4Ag8wZzw==AQAAAACAAADYAAAAFgAAAA==eF5jYACBD/YMKODDfoYhLg4Ag8wZzw==AQAAAACAAACIAgAAdAEAAA==eF778R8M7E3OzosTUXO08di8XLzVs2TPP6j44ZbWdem7p+zxcVDefWZ71x4GCHD4CZaeaLOBSepm6r5QG5i4FtSceamHnK5vjt3DBBU/BjUn5duXRQadU+DiX6DmzPCJeFG1bbYNC1RcAWrOE0aI+TDxk1Bz3CDuhIt/gJrD4ezbvdp+kQ3M/ZEzN1z4muO+B2JPO9zeN2B+/p6Lb166JgpN3MMMFX8H5tfu+QWWXwg3JwlqDntxS8yOiYXwcPgDNccB7J4UuPmPoeZcANO9e/5CzcmGmrPZ+F2v3M5MeLixgamCPRDz2m1g5tyAmmNUXRU4w2UD3PzPYHXxe5SExXbNeztpDywcJnByx54v67SpsXTSu3Niyh42qLgFWP+CPe+nz85gW7nR5jfUPd+h5iwHh3813F99UHPUweb32cDCxxhqzhYZRfG8lDV7PkHN+Q01xwoaL7+g4r1Qc7Qg7oT7Vw9qzpfTvibNV47sAQCtyDG/AQAAAACAAAAgAAAACwAAAA==eF5jYMAPAAAgAAE=AQAAAACAAACIAgAATwAAAA==eF6FkbERACAMArOZ+2/hCIxgRYO+0OR8jUKc+WmvNxdwK/u8Ti7guW/5XHIBT5EPurfloJq5Wm7qy1xtTvQOzctqvslH+wfqv+sBQnk+Ow==AQAAAACAAAAAAgAAZAAAAA==eF6Fz7cRwDAQA0HKe+/Vf6EKdBeTySYEMB/C/xLMMcMGWxywR3MpFmiPuQ5HtMcd/1dYojv+n3FCc+7WaI85dxe0J3bfihueeGDsPnM7XmhP7D53/P/gjbH7zLn7oj0fjh4DQQ==AQAAAACAAABAAAAAHgAAAA==eF7jYIAAASgtAaUVoLQGlDaA0hZQ2gFKAwAeQAEhAQAAAACAAAAIAAAACwAAAA==eF7j4YEAAAG4AGE= + </AppendedData> +</VTKFile> diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_cell_properties_cfg2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_cell_properties_cfg2.bin new file mode 100644 index 0000000000000000000000000000000000000000..71506fa787bcf76395e4eb01f6619875b4165454 Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_cell_properties_cfg2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_cell_properties_val2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_cell_properties_val2.bin new file mode 100644 index 0000000000000000000000000000000000000000..9017fd98b5f67d928cc64c59b2c025472ce74f8c Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_cell_properties_val2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_cfg2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_cfg2.bin new file mode 100644 index 0000000000000000000000000000000000000000..cf24225b2f11ce472daaaf556554c99905df22bd Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_cfg2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_ele2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_ele2.bin new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_ele_g2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_ele_g2.bin new file mode 100644 index 0000000000000000000000000000000000000000..d0de84b747713708a3cefe5be9ad5eb54d5e7626 Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_ele_g2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_nod2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_nod2.bin new file mode 100644 index 0000000000000000000000000000000000000000..15c1d7a697ca42d682eb1916b8aedee3f0a8e02a Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_msh_nod2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_node_properties_cfg2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_node_properties_cfg2.bin new file mode 100644 index 0000000000000000000000000000000000000000..c56db7546aaf1db6275a5799400f9b2e00295387 Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_node_properties_cfg2.bin differ diff --git a/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_node_properties_val2.bin b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_node_properties_val2.bin new file mode 100644 index 0000000000000000000000000000000000000000..20c5f868f2121a839c01598677b9c6fb0a60588e Binary files /dev/null and b/Tests/Data/NodePartitionedMesh/partmesh/cube_1x1x1_hex_8_partitioned_node_properties_val2.bin differ