]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add a .visit master file with times
authorTimo Heister <timo.heister@gmail.com>
Tue, 29 Oct 2019 06:54:20 +0000 (07:54 +0100)
committerTimo Heister <timo.heister@gmail.com>
Tue, 29 Oct 2019 06:54:20 +0000 (07:54 +0100)
examples/step-18/step-18.cc

index b867bfada562bea9b52468f31f9733c5f862925c..9ef36d5c585c925c625e8ace42a92b2ef14d1e2d 100644 (file)
@@ -1288,6 +1288,13 @@ namespace Step18
           std::pair<double, std::string>(present_time, pvtu_master_filename));
         std::ofstream pvd_output("solution.pvd");
         DataOutBase::write_pvd_record(pvd_output, times_and_names);
+
+        std::ofstream visit_output("solution.visit");
+        static std::vector<std::pair<double, std::vector<std::string>>>
+          times_and_pieces;
+        times_and_pieces.emplace_back(
+          present_time, std::vector<std::string>(1, pvtu_master_filename));
+        DataOutBase::write_visit_record(visit_output, times_and_pieces);
       }
   }
 

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.