]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Update the ball boundary in 3d from the grid example.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Feb 1999 09:29:03 +0000 (09:29 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Feb 1999 09:29:03 +0000 (09:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@828 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/dof/dof_test.cc
tests/big-tests/dof/dof_test.cc

index 5b3176c8562c0275996d980668c50b96d4f00e4a..33ab383305d88ad76b0a09998a68415a277c7fbe 100644 (file)
@@ -39,7 +39,7 @@ class Ball :
 
        for (int i=0; i<dim; ++i)
          middle(i) -= .5;
-       middle /= (sqrt(middle.square())*sqrt(2));
+       middle *= sqrt(dim) / (sqrt(middle.square())*2);
        for (int i=0; i<dim; ++i)
          middle(i) += .5;
        
index 5b3176c8562c0275996d980668c50b96d4f00e4a..33ab383305d88ad76b0a09998a68415a277c7fbe 100644 (file)
@@ -39,7 +39,7 @@ class Ball :
 
        for (int i=0; i<dim; ++i)
          middle(i) -= .5;
-       middle /= (sqrt(middle.square())*sqrt(2));
+       middle *= sqrt(dim) / (sqrt(middle.square())*2);
        for (int i=0; i<dim; ++i)
          middle(i) += .5;
        

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.