From 041bd07fc16b616c6f0267a1e856f11c4de5c49f Mon Sep 17 00:00:00 2001
From: heister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Fri, 25 Apr 2014 21:19:18 +0000
Subject: [PATCH] test: output subdomain id

git-svn-id: https://svn.dealii.org/branches/branch_sharedtria@32836 0785d39b-7218-0410-832d-ea1e28bc413d
---
 tests/sharedtria/tria_01.cc              | 9 +++++++++
 tests/sharedtria/tria_01.mpirun=3.output | 7 +++++--
 tests/sharedtria/tria_01.output          | 1 +
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/tests/sharedtria/tria_01.cc b/tests/sharedtria/tria_01.cc
index c14bd60393..6eae4b18ac 100644
--- a/tests/sharedtria/tria_01.cc
+++ b/tests/sharedtria/tria_01.cc
@@ -84,6 +84,15 @@ void test()
     deallog << v[i] << " ";
     deallog << std::endl;*/
 
+  deallog << "subdomains: ";
+  typename  parallel::distributed::Triangulation<dim>::active_cell_iterator it=tr.begin_active();
+  for (; it!=tr.end(); ++it)
+    {
+      deallog << it->subdomain_id() << " ";
+    }
+  deallog << std::endl;
+  
+    
   write_mesh(tr, "mesh");
 }
 
diff --git a/tests/sharedtria/tria_01.mpirun=3.output b/tests/sharedtria/tria_01.mpirun=3.output
index 9221366c03..f673ff8346 100644
--- a/tests/sharedtria/tria_01.mpirun=3.output
+++ b/tests/sharedtria/tria_01.mpirun=3.output
@@ -4,17 +4,20 @@ DEAL:0:2d:: locally_owned_subdomain(): 0
  n_levels: 3
  n_global_levels: 3
 
+DEAL:0:2d::subdomains: 0 1 0 2 2 1 1 
 
 DEAL:1:2d:: locally_owned_subdomain(): 1
  n_active_cells: 7
  n_levels: 3
- n_global_levels: 2
+ n_global_levels: 3
 
+DEAL:1:2d::subdomains: 0 1 0 2 2 1 1 
 
 
 DEAL:2:2d:: locally_owned_subdomain(): 2
  n_active_cells: 7
  n_levels: 3
- n_global_levels: 2
+ n_global_levels: 3
 
+DEAL:2:2d::subdomains: 0 1 0 2 2 1 1 
 
diff --git a/tests/sharedtria/tria_01.output b/tests/sharedtria/tria_01.output
index 132c2cf2c4..4b5e16bd2c 100644
--- a/tests/sharedtria/tria_01.output
+++ b/tests/sharedtria/tria_01.output
@@ -4,3 +4,4 @@ DEAL:0:2d:: locally_owned_subdomain(): 0
  n_levels: 3
  n_global_levels: 3
 
+DEAL:0:2d::subdomains: 0 0 0 0 0 0 0 
-- 
2.39.5