# 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.*
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;
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"
# 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.*
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;
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"