From 8d60e277035529e69cb4f4f7528d10d5ad85adad Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 30 Apr 1998 14:15:40 +0000 Subject: [PATCH] Write out in ucd format. git-svn-id: https://svn.dealii.org/trunk@230 0785d39b-7218-0410-832d-ea1e28bc413d --- .../error-estimation/error-estimation.cc | 19 ++++++++++++------- .../error-estimation/error-estimation.cc | 19 ++++++++++++------- 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc b/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc index 59bfaa0897..7225fc5097 100644 --- a/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc +++ b/deal.II/deal.II/Attic/examples/error-estimation/error-estimation.cc @@ -322,12 +322,7 @@ void PoissonProblem::run (const unsigned int start_level) { estimated_error_per_dof); - string filename = "gnuplot."; - filename += ('0'+start_level); - cout << " Writing error plots to <" << filename << ">..." << endl; - DataOut out; - ofstream gnuplot(filename.c_str()); fill_data (out); out.add_data_vector (l1_error_per_dof, "L1-Error"); out.add_data_vector (l2_error_per_dof, "L2-Error"); @@ -335,8 +330,18 @@ void PoissonProblem::run (const unsigned int start_level) { out.add_data_vector (h1_seminorm_error_per_dof, "H1-seminorm-Error"); out.add_data_vector (h1_error_per_dof, "H1-Error"); out.add_data_vector (estimated_error_per_dof, "Estimated Error"); - out.write_gnuplot (gnuplot); - gnuplot.close (); +// string filename = "gnuplot."; + string filename = "ee."; + filename += ('0'+start_level); + filename += ".inp"; + cout << " Writing error plots to <" << filename << ">..." << endl; + +// ofstream gnuplot(filename.c_str()); +// out.write_gnuplot (gnuplot); +// gnuplot.close (); + ofstream ucd(filename.c_str()); + out.write_ucd (ucd); + ucd.close(); cout << endl; }; diff --git a/tests/big-tests/error-estimation/error-estimation.cc b/tests/big-tests/error-estimation/error-estimation.cc index 59bfaa0897..7225fc5097 100644 --- a/tests/big-tests/error-estimation/error-estimation.cc +++ b/tests/big-tests/error-estimation/error-estimation.cc @@ -322,12 +322,7 @@ void PoissonProblem::run (const unsigned int start_level) { estimated_error_per_dof); - string filename = "gnuplot."; - filename += ('0'+start_level); - cout << " Writing error plots to <" << filename << ">..." << endl; - DataOut out; - ofstream gnuplot(filename.c_str()); fill_data (out); out.add_data_vector (l1_error_per_dof, "L1-Error"); out.add_data_vector (l2_error_per_dof, "L2-Error"); @@ -335,8 +330,18 @@ void PoissonProblem::run (const unsigned int start_level) { out.add_data_vector (h1_seminorm_error_per_dof, "H1-seminorm-Error"); out.add_data_vector (h1_error_per_dof, "H1-Error"); out.add_data_vector (estimated_error_per_dof, "Estimated Error"); - out.write_gnuplot (gnuplot); - gnuplot.close (); +// string filename = "gnuplot."; + string filename = "ee."; + filename += ('0'+start_level); + filename += ".inp"; + cout << " Writing error plots to <" << filename << ">..." << endl; + +// ofstream gnuplot(filename.c_str()); +// out.write_gnuplot (gnuplot); +// gnuplot.close (); + ofstream ucd(filename.c_str()); + out.write_ucd (ucd); + ucd.close(); cout << endl; }; -- 2.39.5