From: wolf Date: Wed, 20 Apr 2005 22:22:39 +0000 (+0000) Subject: Implement merging files. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c31e04bc7ebd4dafe949097fe73f758a0bc5802;p=dealii-svn.git Implement merging files. git-svn-id: https://svn.dealii.org/trunk@10552 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-19/step-19.cc b/deal.II/examples/step-19/step-19.cc index b5b3611d2d..b0add28665 100644 --- a/deal.II/examples/step-19/step-19.cc +++ b/deal.II/examples/step-19/step-19.cc @@ -4,7 +4,7 @@ /* $Id$ */ /* Version: $Name$ */ /* */ -/* Copyright (C) 2000, 2004, 2005 by the deal.II authors */ +/* Copyright (C) 2005 by the deal.II authors */ /* */ /* This file is subject to QPL and may not be distributed */ /* without copyright and license information. Please refer */ @@ -33,6 +33,17 @@ void do_convert (const std::vector &input_files, DataOutReader intermediate_data; intermediate_data.read (intermediate_stream); + // for all following input files + for (unsigned int i=1; i additional_data; + additional_data.read (additional_stream); + intermediate_data.merge (additional_data); + } + std::ofstream output_stream (output_file.c_str()); AssertThrow (output_stream, ExcIO());