From 173541965f4cc0d55771b413b8cb9b5904e72499 Mon Sep 17 00:00:00 2001 From: "fahad.alrashed" Date: Sat, 21 Sep 2013 16:23:32 +0000 Subject: [PATCH] modified dealii/data_out.cc to test both write_visit_record functions git-svn-id: https://svn.dealii.org/trunk@30888 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/data_out.cc | 11 +++++++++++ tests/deal.II/data_out/cmp/generic | 10 ++++++++++ 2 files changed, 21 insertions(+) diff --git a/tests/deal.II/data_out.cc b/tests/deal.II/data_out.cc index 6cd61496c5..3b6b039392 100644 --- a/tests/deal.II/data_out.cc +++ b/tests/deal.II/data_out.cc @@ -134,6 +134,17 @@ void LaplaceProblem<2>::output_results () const data_out.write_ucd (logfile); data_out.write_povray (logfile); data_out.write_eps (logfile); + + const unsigned int number_of_time_steps = 3; + std::vector > piece_names(number_of_time_steps); + piece_names[0].push_back("subdomain-01.time_step_0.vtk"); + piece_names[0].push_back("subdomain-02.time_step_0.vtk"); + piece_names[1].push_back("subdomain-01.time_step_1.vtk"); + piece_names[1].push_back("subdomain-02.time_step_1.vtk"); + piece_names[2].push_back("subdomain-01.time_step_2.vtk"); + piece_names[2].push_back("subdomain-02.time_step_2.vtk"); + data_out.write_visit_record(logfile, piece_names); + data_out.write_visit_record(logfile, piece_names[01]); }; // test DataOutRotation in 2d diff --git a/tests/deal.II/data_out/cmp/generic b/tests/deal.II/data_out/cmp/generic index 01e5f624d7..b3be8623f4 100644 --- a/tests/deal.II/data_out/cmp/generic +++ b/tests/deal.II/data_out/cmp/generic @@ -470,6 +470,16 @@ triangle { 1 sg 142.64 2383.8 m 190.19 2750.4 l 217.64 2964.4 l 170.1 2597.7 lf 0 sg 142.64 2383.8 m 190.19 2750.4 l 217.64 2964.4 l 170.1 2597.7 lx showpage +!NBLOCKS 2 +subdomain-01.time_step_0.vtk +subdomain-02.time_step_0.vtk +subdomain-01.time_step_1.vtk +subdomain-02.time_step_1.vtk +subdomain-01.time_step_2.vtk +subdomain-02.time_step_2.vtk +!NBLOCKS 2 +subdomain-01.time_step_1.vtk +subdomain-02.time_step_1.vtk object "vertices" class array type float rank 1 shape 3 items 240 data follows 0.5 0 0 0.5 0.5 0 -- 2.39.5