From: Timo Heister Date: Fri, 31 May 2013 22:34:35 +0000 (+0000) Subject: update test X-Git-Tag: v8.0.0~349 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa22de6cb1a1831fd81a0e85406d15a3d5082fdb;p=dealii.git update test git-svn-id: https://svn.dealii.org/trunk@29700 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/p4est_2d_refine_02.cc b/tests/mpi/p4est_2d_refine_02.cc index bd0bfb60cd..8baed67990 100644 --- a/tests/mpi/p4est_2d_refine_02.cc +++ b/tests/mpi/p4est_2d_refine_02.cc @@ -29,6 +29,23 @@ #include +template +void check (TRIA & tr) +{ + typename TRIA::cell_iterator cell = tr.begin(), + endc = tr.end(); + + for (; cell!=endc; ++cell) + { + deallog << "cell level=" << cell->level() << " index=" << cell->index(); + if (!cell->has_children()) + deallog << " subdomain: " << cell->subdomain_id(); + deallog << std::endl; + } + + deallog << "OK" << std::endl; +} + template void test() @@ -57,7 +74,10 @@ void test() deallog << "Checksum: " << checksum << std::endl; - } + + check(tr); + } + if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0) @@ -68,24 +88,10 @@ void test() int main(int argc, char *argv[]) { Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1); + MPILogInitAll log(__FILE__); - unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD); - - - deallog.push(Utilities::int_to_string(myid)); - - if (myid == 0) - { - std::ofstream logfile(output_file_for_mpi("p4est_2d_refine_02").c_str()); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - deallog.push("2d"); - test<2>(); - deallog.pop(); - } - else - test<2>(); + deallog.push("2d"); + test<2>(); + deallog.pop(); } diff --git a/tests/mpi/p4est_2d_refine_02/ncpu_10/cmp/generic b/tests/mpi/p4est_2d_refine_02/ncpu_10/cmp/generic index b6840363c4..897bac5bbb 100644 --- a/tests/mpi/p4est_2d_refine_02/ncpu_10/cmp/generic +++ b/tests/mpi/p4est_2d_refine_02/ncpu_10/cmp/generic @@ -2,4 +2,83 @@ DEAL:0:2d::hyper_cube DEAL:0:2d::#cells = 7 DEAL:0:2d::Checksum: 426967244 +DEAL:0:2d::cell level=0 index=0 subdomain: 4294967294 DEAL:0:2d::OK +DEAL:0:2d::OK + +DEAL:1:2d::Checksum: 0 +DEAL:1:2d::cell level=0 index=0 +DEAL:1:2d::cell level=1 index=0 +DEAL:1:2d::cell level=1 index=1 subdomain: 7 +DEAL:1:2d::cell level=1 index=2 subdomain: 8 +DEAL:1:2d::cell level=1 index=3 subdomain: 9 +DEAL:1:2d::cell level=2 index=0 subdomain: 1 +DEAL:1:2d::cell level=2 index=1 subdomain: 1 +DEAL:1:2d::cell level=2 index=2 subdomain: 1 +DEAL:1:2d::cell level=2 index=3 subdomain: 1 +DEAL:1:2d::OK + + +DEAL:2:2d::Checksum: 0 +DEAL:2:2d::cell level=0 index=0 subdomain: 4294967294 +DEAL:2:2d::OK + + +DEAL:3:2d::Checksum: 0 +DEAL:3:2d::cell level=0 index=0 subdomain: 4294967294 +DEAL:3:2d::OK + + +DEAL:4:2d::Checksum: 0 +DEAL:4:2d::cell level=0 index=0 subdomain: 4294967294 +DEAL:4:2d::OK + + +DEAL:5:2d::Checksum: 0 +DEAL:5:2d::cell level=0 index=0 subdomain: 4294967294 +DEAL:5:2d::OK + + +DEAL:6:2d::Checksum: 0 +DEAL:6:2d::cell level=0 index=0 subdomain: 4294967294 +DEAL:6:2d::OK + + +DEAL:7:2d::Checksum: 0 +DEAL:7:2d::cell level=0 index=0 +DEAL:7:2d::cell level=1 index=0 +DEAL:7:2d::cell level=1 index=1 subdomain: 7 +DEAL:7:2d::cell level=1 index=2 subdomain: 8 +DEAL:7:2d::cell level=1 index=3 subdomain: 9 +DEAL:7:2d::cell level=2 index=0 subdomain: 4294967294 +DEAL:7:2d::cell level=2 index=1 subdomain: 1 +DEAL:7:2d::cell level=2 index=2 subdomain: 4294967294 +DEAL:7:2d::cell level=2 index=3 subdomain: 1 +DEAL:7:2d::OK + + +DEAL:8:2d::Checksum: 0 +DEAL:8:2d::cell level=0 index=0 +DEAL:8:2d::cell level=1 index=0 +DEAL:8:2d::cell level=1 index=1 subdomain: 7 +DEAL:8:2d::cell level=1 index=2 subdomain: 8 +DEAL:8:2d::cell level=1 index=3 subdomain: 9 +DEAL:8:2d::cell level=2 index=0 subdomain: 4294967294 +DEAL:8:2d::cell level=2 index=1 subdomain: 4294967294 +DEAL:8:2d::cell level=2 index=2 subdomain: 1 +DEAL:8:2d::cell level=2 index=3 subdomain: 1 +DEAL:8:2d::OK + + +DEAL:9:2d::Checksum: 0 +DEAL:9:2d::cell level=0 index=0 +DEAL:9:2d::cell level=1 index=0 +DEAL:9:2d::cell level=1 index=1 subdomain: 7 +DEAL:9:2d::cell level=1 index=2 subdomain: 8 +DEAL:9:2d::cell level=1 index=3 subdomain: 9 +DEAL:9:2d::cell level=2 index=0 subdomain: 4294967294 +DEAL:9:2d::cell level=2 index=1 subdomain: 4294967294 +DEAL:9:2d::cell level=2 index=2 subdomain: 4294967294 +DEAL:9:2d::cell level=2 index=3 subdomain: 1 +DEAL:9:2d::OK + diff --git a/tests/mpi/p4est_2d_refine_02/ncpu_4/cmp/generic b/tests/mpi/p4est_2d_refine_02/ncpu_4/cmp/generic index b6840363c4..8badce8cc9 100644 --- a/tests/mpi/p4est_2d_refine_02/ncpu_4/cmp/generic +++ b/tests/mpi/p4est_2d_refine_02/ncpu_4/cmp/generic @@ -2,4 +2,45 @@ DEAL:0:2d::hyper_cube DEAL:0:2d::#cells = 7 DEAL:0:2d::Checksum: 426967244 +DEAL:0:2d::cell level=0 index=0 subdomain: 4294967294 DEAL:0:2d::OK +DEAL:0:2d::OK + +DEAL:1:2d::Checksum: 0 +DEAL:1:2d::cell level=0 index=0 +DEAL:1:2d::cell level=1 index=0 +DEAL:1:2d::cell level=1 index=1 subdomain: 2 +DEAL:1:2d::cell level=1 index=2 subdomain: 3 +DEAL:1:2d::cell level=1 index=3 subdomain: 3 +DEAL:1:2d::cell level=2 index=0 subdomain: 1 +DEAL:1:2d::cell level=2 index=1 subdomain: 1 +DEAL:1:2d::cell level=2 index=2 subdomain: 1 +DEAL:1:2d::cell level=2 index=3 subdomain: 1 +DEAL:1:2d::OK + + +DEAL:2:2d::Checksum: 0 +DEAL:2:2d::cell level=0 index=0 +DEAL:2:2d::cell level=1 index=0 +DEAL:2:2d::cell level=1 index=1 subdomain: 2 +DEAL:2:2d::cell level=1 index=2 subdomain: 3 +DEAL:2:2d::cell level=1 index=3 subdomain: 3 +DEAL:2:2d::cell level=2 index=0 subdomain: 4294967294 +DEAL:2:2d::cell level=2 index=1 subdomain: 1 +DEAL:2:2d::cell level=2 index=2 subdomain: 4294967294 +DEAL:2:2d::cell level=2 index=3 subdomain: 1 +DEAL:2:2d::OK + + +DEAL:3:2d::Checksum: 0 +DEAL:3:2d::cell level=0 index=0 +DEAL:3:2d::cell level=1 index=0 +DEAL:3:2d::cell level=1 index=1 subdomain: 2 +DEAL:3:2d::cell level=1 index=2 subdomain: 3 +DEAL:3:2d::cell level=1 index=3 subdomain: 3 +DEAL:3:2d::cell level=2 index=0 subdomain: 4294967294 +DEAL:3:2d::cell level=2 index=1 subdomain: 4294967294 +DEAL:3:2d::cell level=2 index=2 subdomain: 1 +DEAL:3:2d::cell level=2 index=3 subdomain: 1 +DEAL:3:2d::OK +