From f491a28cfc52ce4da239a7633080095d322f0844 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 29 Oct 2019 07:54:20 +0100 Subject: [PATCH] add a .visit master file with times --- examples/step-18/step-18.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/step-18/step-18.cc b/examples/step-18/step-18.cc index b867bfada5..9ef36d5c58 100644 --- a/examples/step-18/step-18.cc +++ b/examples/step-18/step-18.cc @@ -1288,6 +1288,13 @@ namespace Step18 std::pair(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>> + times_and_pieces; + times_and_pieces.emplace_back( + present_time, std::vector(1, pvtu_master_filename)); + DataOutBase::write_visit_record(visit_output, times_and_pieces); } } -- 2.39.5