]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modified dealii/data_out.cc to test both write_visit_record functions
authorFahad Alrashed <alrashedf@math.tamu.edu>
Sat, 21 Sep 2013 16:23:32 +0000 (16:23 +0000)
committerFahad Alrashed <alrashedf@math.tamu.edu>
Sat, 21 Sep 2013 16:23:32 +0000 (16:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@30888 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/data_out.cc
tests/deal.II/data_out/cmp/generic

index 6cd61496c527438e4b92d0f083fd2ac823142083..3b6b039392f41738c1a719a80a4d3070d1d0970e 100644 (file)
@@ -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<std::vector<std::string > > 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
index 01e5f624d7e1f7174fa9edd8b7fea7dc683ab0f6..b3be8623f4d05175a98e9d05f17ca5eefbcfa1d1 100644 (file)
@@ -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       

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.