From: kronbichler Date: Mon, 26 Aug 2013 10:33:56 +0000 (+0000) Subject: Test WorkStream with empty functions X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48ef942908b73bdcec8757683884d5dae325b178;p=dealii-svn.git Test WorkStream with empty functions git-svn-id: https://svn.dealii.org/trunk@30495 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/work_stream_04.cc b/tests/base/work_stream_04.cc new file mode 100644 index 0000000000..50a6cc662d --- /dev/null +++ b/tests/base/work_stream_04.cc @@ -0,0 +1,58 @@ +// --------------------------------------------------------------------- +// $Id$ +// +// Copyright (C) 2008 - 2013 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +// test WorkStream with empty functions + +#include "../tests.h" +#include +#include +#include +#include + +#include + + +struct ScratchData +{}; + + +void test () +{ + std::vector v; + for (unsigned int i=0; i<20; ++i) + v.push_back (i); + + WorkStream::run (v.begin(), v.end(), + std_cxx1x::function::iterator, + ScratchData&,unsigned int&)>(), + std_cxx1x::function(), + ScratchData(), + 0U); +} + + + + +int main() +{ + std::ofstream logfile("work_stream_04/output"); + deallog.attach(logfile); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + test (); +} diff --git a/tests/base/work_stream_04/cmp/generic b/tests/base/work_stream_04/cmp/generic new file mode 100644 index 0000000000..8b13789179 --- /dev/null +++ b/tests/base/work_stream_04/cmp/generic @@ -0,0 +1 @@ +