From 8ef2013e098d2dcb9d2cbb0989f9a577afccf16a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 24 Jun 2009 16:50:21 +0000 Subject: [PATCH] Add new testcase that checks a forgotten template function (it was declared but not implemented). git-svn-id: https://svn.dealii.org/trunk@18964 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/trilinos/49a.cc | 94 ++++++++++++++++++++++++++++++++++ tests/trilinos/49a/cmp/generic | 2 + 2 files changed, 96 insertions(+) create mode 100644 tests/trilinos/49a.cc create mode 100644 tests/trilinos/49a/cmp/generic diff --git a/tests/trilinos/49a.cc b/tests/trilinos/49a.cc new file mode 100644 index 0000000000..afb3d97968 --- /dev/null +++ b/tests/trilinos/49a.cc @@ -0,0 +1,94 @@ +//---------------------------- trilinos_49.cc --------------------------- +// $Id$ +// Version: $Name$ +// +// Copyright (C) 2004, 2005, 2008, 2009 by the deal.II authors +// +// This file is subject to QPL and may not be distributed +// without copyright and license information. Please refer +// to the file deal.II/doc/license.html for the text and +// further information on this license. +// +//---------------------------- trilinos_49.cc --------------------------- + + +// like 49, but do the test for +// TrilinosWrappers::BlockVector +// ::operator = (dealii::BlockVector) +// with block vectors instead of plain vectors + +#include "../tests.h" +#include +#include +#include +#include +#include +#include + + +void test (TrilinosWrappers::BlockVector &v) +{ + std::vector sizes (2, 3); + dealii::BlockVector w (sizes); + + for (unsigned int i=0; i sizes (2, 3); + TrilinosWrappers::BlockVector v (sizes); + test (v); + } + } + catch (std::exception &exc) + { + std::cerr << std::endl << std::endl + << "----------------------------------------------------" + << std::endl; + std::cerr << "Exception on processing: " << std::endl + << exc.what() << std::endl + << "Aborting!" << std::endl + << "----------------------------------------------------" + << std::endl; + + return 1; + } + catch (...) + { + std::cerr << std::endl << std::endl + << "----------------------------------------------------" + << std::endl; + std::cerr << "Unknown exception!" << std::endl + << "Aborting!" << std::endl + << "----------------------------------------------------" + << std::endl; + return 1; + }; +} diff --git a/tests/trilinos/49a/cmp/generic b/tests/trilinos/49a/cmp/generic new file mode 100644 index 0000000000..0fd8fc12f0 --- /dev/null +++ b/tests/trilinos/49a/cmp/generic @@ -0,0 +1,2 @@ + +DEAL::OK -- 2.39.5