From 82b6bd130b3479e2d9d87b199939bfe574cfb80c Mon Sep 17 00:00:00 2001 From: heltai Date: Wed, 20 Nov 2013 13:22:12 +0000 Subject: [PATCH] Fixed some of the small tests git-svn-id: https://svn.dealii.org/branches/branch_manifold_id@31724 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/manifold/manifold_id_05.cc | 6 +++--- tests/manifold/manifold_id_06.cc | 7 +++---- tests/manifold/manifold_id_07.cc | 8 ++++---- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/tests/manifold/manifold_id_05.cc b/tests/manifold/manifold_id_05.cc index 405929f618..3d94f71390 100644 --- a/tests/manifold/manifold_id_05.cc +++ b/tests/manifold/manifold_id_05.cc @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include // Helper function @@ -35,13 +35,13 @@ void test(unsigned int ref=1){ for(unsigned int i=0; i boundary(center,center.norm()); + PolarManifold boundary(center); Triangulation tria; GridGenerator::hyper_cube (tria); typename Triangulation::active_cell_iterator cell; tria.begin_active()->face(0)->set_manifold_id(1); - tria.set_boundary(1,boundary); + tria.set_manifold(1,boundary); tria.refine_global(2); diff --git a/tests/manifold/manifold_id_06.cc b/tests/manifold/manifold_id_06.cc index 61fd2ea973..ccf108b4ff 100644 --- a/tests/manifold/manifold_id_06.cc +++ b/tests/manifold/manifold_id_06.cc @@ -22,7 +22,7 @@ #include #include #include -#include +#include #include // Helper function @@ -37,13 +37,12 @@ void test(unsigned int ref=1){ double radius=center.norm(); - HyperBallBoundary boundary(center,radius); + PolarManifold boundary(center); Triangulation tria; GridGenerator::hyper_cube (tria); typename Triangulation::active_cell_iterator cell; tria.refine_global(1); - for(cell=tria.begin_active(); cell!=tria.end(); ++cell) if(dimcenter().distance(center)face(f)->center().distance(center)< radius) cell->face(f)->set_all_manifold_ids(1); - tria.set_boundary(1,boundary); + tria.set_manifold(1,boundary); tria.refine_global(2); GridOut gridout; diff --git a/tests/manifold/manifold_id_07.cc b/tests/manifold/manifold_id_07.cc index d01feb01d6..9430331025 100644 --- a/tests/manifold/manifold_id_07.cc +++ b/tests/manifold/manifold_id_07.cc @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include // Helper function @@ -38,12 +38,12 @@ void test(unsigned int ref=1){ center[i] = .5; Triangulation tria; - HyperBallBoundary boundary(center,center.norm()); + PolarManifold boundary(center); GridGenerator::hyper_cube (tria); typename Triangulation::active_cell_iterator cell; tria.begin_active()->face(0)->set_manifold_id(1); - tria.set_boundary(1,boundary); + tria.set_manifold(1,boundary); tria.refine_global(2); @@ -63,7 +63,7 @@ void test(unsigned int ref=1){ dim, spacedim); std::ofstream ofile(fname); gridout.write_msh(tria,ofile); - tria.set_boundary(1); + tria.set_manifold(1); } int main () -- 2.39.5