From: Wolfgang Bangerth Date: Thu, 30 Apr 1998 14:15:40 +0000 (+0000) Subject: Write out in ucd format. X-Git-Tag: v8.0.0~23024 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d60e277035529e69cb4f4f7528d10d5ad85adad;p=dealii.git Write out in ucd format. git-svn-id: https://svn.dealii.org/trunk@230 0785d39b-7218-0410-832d-ea1e28bc413d --- 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; };