From 81c140d340fc0eeeecf835d3d3b278c3735f7944 Mon Sep 17 00:00:00 2001 From: "Dmitry Yu. Naumov" <github@naumov.de> Date: Thu, 1 Nov 2018 16:30:02 +0100 Subject: [PATCH] [T] Add "river" test for identifySubdoms tool. Meshes kindly provided by Thomas_TK @ github <thomas.kalbacher@ufz.de> --- Applications/Utils/Tests.cmake | 26 +++++++++++++++++++ .../IdentifySubdomains/river_bc.vtu | 3 +++ .../IdentifySubdomains/river_bc_prism.vtu | 3 +++ .../IdentifySubdomains/river_bc_triangle.vtu | 3 +++ .../IdentifySubdomains/river_domain_prism.vtu | 3 +++ .../river_domain_triangle.vtu | 3 +++ 6 files changed, 41 insertions(+) create mode 100644 Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc.vtu create mode 100644 Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_prism.vtu create mode 100644 Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_triangle.vtu create mode 100644 Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_prism.vtu create mode 100644 Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_triangle.vtu diff --git a/Applications/Utils/Tests.cmake b/Applications/Utils/Tests.cmake index d99d4f39690..bb69b4cbcc4 100644 --- a/Applications/Utils/Tests.cmake +++ b/Applications/Utils/Tests.cmake @@ -68,6 +68,32 @@ AddTest( 2D_mesh_bottom.vtu check_2D_mesh_bottom.vtu bulk_element_ids bulk_element_ids 0 0 ) +AddTest( + NAME identifySubdomains_riverTriangleMesh + PATH MeshGeoToolsLib/IdentifySubdomains + EXECUTABLE identifySubdomains + EXECUTABLE_ARGS -m river_domain_triangle.vtu -o ${Data_BINARY_DIR}/MeshGeoToolsLib/IdentifySubdomains/triangle_ -- river_bc.vtu + REQUIREMENTS NOT OGS_USE_MPI + TESTER vtkdiff + DIFF_DATA + river_bc_triangle.vtu triangle_river_bc.vtu bulk_node_ids bulk_node_ids 0 0 + #river_bc_triangle.vtu triangle_river_bc.vtu bulk_element_ids bulk_element_ids 0 0 # TODO (naumov) Needs extension of vtkdiff to FieldData + river_bc_triangle.vtu triangle_river_bc.vtu number_bulk_elements number_bulk_elements 0 0 +) + +AddTest( + NAME identifySubdomains_riverPrismMesh + PATH MeshGeoToolsLib/IdentifySubdomains + EXECUTABLE identifySubdomains + EXECUTABLE_ARGS -s 1e-3 -m river_domain_prism.vtu -o ${Data_BINARY_DIR}/MeshGeoToolsLib/IdentifySubdomains/prism_ -- river_bc.vtu + REQUIREMENTS NOT OGS_USE_MPI + TESTER vtkdiff + DIFF_DATA + river_bc_prism.vtu prism_river_bc.vtu bulk_node_ids bulk_node_ids 0 0 + #river_bc_prism.vtu prism_river_bc.vtu bulk_element_ids bulk_element_ids 0 0 # TODO (naumov) Needs extension of vtkdiff to FieldData + river_bc_prism.vtu prism_river_bc.vtu number_bulk_elements number_bulk_elements 0 0 +) + # Mac is producing slightly different partitioning, so the results are not # comparable. AddTest( diff --git a/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc.vtu b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc.vtu new file mode 100644 index 00000000000..2fed6bda560 --- /dev/null +++ b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61f0e4026ac959f245641a37750b2841e939b58e2aaf1f8f3f755367f0f6538b +size 6468 diff --git a/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_prism.vtu b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_prism.vtu new file mode 100644 index 00000000000..76457f6eb3c --- /dev/null +++ b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_prism.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e417a0e362b6bc610ca502cd2963732ced8cc9efb0b59547a722cbf609d3d528 +size 10012 diff --git a/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_triangle.vtu b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_triangle.vtu new file mode 100644 index 00000000000..dfbe743f9bf --- /dev/null +++ b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_bc_triangle.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71248e74e69d1ebc99848fd5a61141e8ecf1155da3d5dbcab291f13b8b15f40b +size 10012 diff --git a/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_prism.vtu b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_prism.vtu new file mode 100644 index 00000000000..08d436bfe86 --- /dev/null +++ b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_prism.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0231b95acb47bf2a99ca4f80a35bbe7779a236e8d20a18c1078f72178e39afaa +size 61970 diff --git a/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_triangle.vtu b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_triangle.vtu new file mode 100644 index 00000000000..55033e83d26 --- /dev/null +++ b/Tests/Data/MeshGeoToolsLib/IdentifySubdomains/river_domain_triangle.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d0fcd0674b781995afa3837ee6156ebd43924fa6c9627ce358b3c9ceb414280 +size 18616 -- GitLab