]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Finished fine-tuning for today.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 17:33:32 +0000 (17:33 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 2 Apr 1998 17:33:32 +0000 (17:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@130 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/poisson/problem.cc
tests/big-tests/poisson/make_ps [new file with mode: 0644]
tests/big-tests/poisson/problem.cc

index 3d4a4ea1ecdf3dad72d4183b203963ef10f11202..77fcbcf35d51241242e51e4c1a16d4a93eaec89d 100644 (file)
@@ -17,15 +17,15 @@ class CurvedLine :
        
        if (y<x)
          if (y<1-x)
-           middle(1) = 0.03*sin(6*3.141592*middle(0));
+           middle(1) = 0.04*sin(6*3.141592*middle(0));
          else
-           middle(0) = 1+0.03*sin(6*3.141592*middle(1));
+           middle(0) = 1+0.04*sin(6*3.141592*middle(1));
        
        else
          if (y<1-x)
-           middle(0) = 0.03*sin(6*3.141592*middle(1));
+           middle(0) = 0.04*sin(6*3.141592*middle(1));
          else
-           middle(1) = 1+0.03*sin(6*3.141592*middle(0));
+           middle(1) = 1+0.04*sin(6*3.141592*middle(0));
 
        return middle;
       };
@@ -210,7 +210,7 @@ void PoissonProblem<dim>::make_random_grid () {
 
 template <int dim>
 void PoissonProblem<dim>::run (ParameterHandler &prm) {
-  cout << "Test case = " << prm.get ("Test run") << endl
+  cout << "Test case = " << prm.get ("Test run")
        << endl;
   
   cout << "    Making grid..." << endl;
@@ -240,9 +240,11 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
   cout << "    Solving..." << endl;
   solve ();
 
-  cout << "    Writing to file <" << prm.get("Output file") << ">..." << endl;
+  cout << "    Writing to file <" << prm.get("Output file") << ">..."
+       << endl
+       << endl;
+  
   DataOut<dim> out;
-
   ofstream gnuplot(prm.get("Output file"));
   fill_data (out); 
   out.write_gnuplot (gnuplot);
diff --git a/tests/big-tests/poisson/make_ps b/tests/big-tests/poisson/make_ps
new file mode 100644 (file)
index 0000000..ebe72be
--- /dev/null
@@ -0,0 +1,25 @@
+set data style lines
+set noxtics
+set noytics
+set noztics
+set nokey
+set para
+set term postscript eps
+
+!echo "  Making <fig.zoom_in.eps>"
+set output "fig.zoom_in.eps"
+splot "gnuplot.zoom_in"
+
+!echo "  Making <fig.ball.eps>"
+set output "fig.ball.eps"
+splot "gnuplot.ball"
+
+!echo "  Making <fig.curved_line.eps>"
+set output "fig.curved_line.eps"
+splot "gnuplot.curved_line"
+
+!echo "  Making <fig.random.eps>"
+set output "fig.random.eps"
+splot "gnuplot.random"
+
+
index 3d4a4ea1ecdf3dad72d4183b203963ef10f11202..77fcbcf35d51241242e51e4c1a16d4a93eaec89d 100644 (file)
@@ -17,15 +17,15 @@ class CurvedLine :
        
        if (y<x)
          if (y<1-x)
-           middle(1) = 0.03*sin(6*3.141592*middle(0));
+           middle(1) = 0.04*sin(6*3.141592*middle(0));
          else
-           middle(0) = 1+0.03*sin(6*3.141592*middle(1));
+           middle(0) = 1+0.04*sin(6*3.141592*middle(1));
        
        else
          if (y<1-x)
-           middle(0) = 0.03*sin(6*3.141592*middle(1));
+           middle(0) = 0.04*sin(6*3.141592*middle(1));
          else
-           middle(1) = 1+0.03*sin(6*3.141592*middle(0));
+           middle(1) = 1+0.04*sin(6*3.141592*middle(0));
 
        return middle;
       };
@@ -210,7 +210,7 @@ void PoissonProblem<dim>::make_random_grid () {
 
 template <int dim>
 void PoissonProblem<dim>::run (ParameterHandler &prm) {
-  cout << "Test case = " << prm.get ("Test run") << endl
+  cout << "Test case = " << prm.get ("Test run")
        << endl;
   
   cout << "    Making grid..." << endl;
@@ -240,9 +240,11 @@ void PoissonProblem<dim>::run (ParameterHandler &prm) {
   cout << "    Solving..." << endl;
   solve ();
 
-  cout << "    Writing to file <" << prm.get("Output file") << ">..." << endl;
+  cout << "    Writing to file <" << prm.get("Output file") << ">..."
+       << endl
+       << endl;
+  
   DataOut<dim> out;
-
   ofstream gnuplot(prm.get("Output file"));
   fill_data (out); 
   out.write_gnuplot (gnuplot);

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.