]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Example update and trivial bug fix.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 May 1998 15:37:35 +0000 (15:37 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 May 1998 15:37:35 +0000 (15:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@259 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/error-estimation/Makefile
deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc
deal.II/deal.II/Attic/examples/error-estimation/make_ps
tests/big-tests/error-estimation/Makefile
tests/big-tests/error-estimation/error-estimation.cc
tests/big-tests/error-estimation/make_ps

index 772ffb9c4367e8ac92d5f89f33fcee69232419b3..873179dc032deb4a09ed6266c098a672ff3d5f56 100644 (file)
@@ -23,12 +23,12 @@ run-parameters  =
 
 # To execute additional action apart from running the program, fill
 # in this list:
-additional-run-action = gnuplot make_ps
+additional-run-action = gnuplot make_ps ; ./strip_comments
 
 # To specify which files are to be deleted by "make clean" (apart from
 # the usual ones: object files, executables, backups, etc), fill in the
 # following list
-delete-files = gnuplot* *inp *.ps *.eps
+delete-files = gnuplot* *inp *.ps *.eps history.*
 
 
 
index 7031910d938c23291c50a605e40f862fbed54226..0c37bccd61f57b445bae85ded6695265b0aedcd9 100644 (file)
@@ -385,8 +385,8 @@ void PoissonProblem<dim>::run (const unsigned int start_level,
                tria->execute_refinement ();
                break;
          case error_estimator:
-               tria->execute_refinement ();
                tria->refine_fixed_number (estimated_error_per_cell, 0.3);
+               tria->execute_refinement ();
                break;
        };
       cout << endl << endl;
index 8fa3f5b4eee12553daefbfef625ee9b59fdc6f1d..df9f68edaf1ee3ecabbc4708e645811803bd9194 100644 (file)
@@ -21,3 +21,6 @@ set output "history.estimated_error.eps"
 
 plot "history.estimated_error.gnuplot" using 1:2 title "L2 error","history.estimated_error.gnuplot" using 1:3 title "Linfty error","history.estimated_error.gnuplot" using 1:4 title "H1 error","history.estimated_error.gnuplot" using 1:5 title "Estimated H1 error"
 
+
+set output "history.compare.eps"
+plot "history.global.gnuplot" using 1:2 title "global refinement -- L2 error", "history.true_error.gnuplot" using 1:2 title "ref. by true error -- L2 error", "history.estimated_error.gnuplot" using 1:2 title "ref. by estimated error -- L2 error", "history.global.gnuplot" using 1:4 title "global refinement -- H1 error", "history.true_error.gnuplot" using 1:4 title "ref. by true error -- H1 error", "history.estimated_error.gnuplot" using 1:4 title "ref. by estimated error -- H1 error"
index 772ffb9c4367e8ac92d5f89f33fcee69232419b3..873179dc032deb4a09ed6266c098a672ff3d5f56 100644 (file)
@@ -23,12 +23,12 @@ run-parameters  =
 
 # To execute additional action apart from running the program, fill
 # in this list:
-additional-run-action = gnuplot make_ps
+additional-run-action = gnuplot make_ps ; ./strip_comments
 
 # To specify which files are to be deleted by "make clean" (apart from
 # the usual ones: object files, executables, backups, etc), fill in the
 # following list
-delete-files = gnuplot* *inp *.ps *.eps
+delete-files = gnuplot* *inp *.ps *.eps history.*
 
 
 
index 7031910d938c23291c50a605e40f862fbed54226..0c37bccd61f57b445bae85ded6695265b0aedcd9 100644 (file)
@@ -385,8 +385,8 @@ void PoissonProblem<dim>::run (const unsigned int start_level,
                tria->execute_refinement ();
                break;
          case error_estimator:
-               tria->execute_refinement ();
                tria->refine_fixed_number (estimated_error_per_cell, 0.3);
+               tria->execute_refinement ();
                break;
        };
       cout << endl << endl;
index 8fa3f5b4eee12553daefbfef625ee9b59fdc6f1d..df9f68edaf1ee3ecabbc4708e645811803bd9194 100644 (file)
@@ -21,3 +21,6 @@ set output "history.estimated_error.eps"
 
 plot "history.estimated_error.gnuplot" using 1:2 title "L2 error","history.estimated_error.gnuplot" using 1:3 title "Linfty error","history.estimated_error.gnuplot" using 1:4 title "H1 error","history.estimated_error.gnuplot" using 1:5 title "Estimated H1 error"
 
+
+set output "history.compare.eps"
+plot "history.global.gnuplot" using 1:2 title "global refinement -- L2 error", "history.true_error.gnuplot" using 1:2 title "ref. by true error -- L2 error", "history.estimated_error.gnuplot" using 1:2 title "ref. by estimated error -- L2 error", "history.global.gnuplot" using 1:4 title "global refinement -- H1 error", "history.true_error.gnuplot" using 1:4 title "ref. by true error -- H1 error", "history.estimated_error.gnuplot" using 1:4 title "ref. by estimated error -- H1 error"

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.