From: bangerth Date: Wed, 24 Jun 2009 18:20:01 +0000 (+0000) Subject: Take over patches to the testsuite between 18958 and 18965 from mainline. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e358a4d17d333b92a9c8daf005df28111db99a2f;p=dealii-svn.git Take over patches to the testsuite between 18958 and 18965 from mainline. git-svn-id: https://svn.dealii.org/branches/releases/Branch-6-2@18971 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/petsc/49.cc b/tests/petsc/49.cc index 59f44ccf30..f19a7bcf46 100644 --- a/tests/petsc/49.cc +++ b/tests/petsc/49.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -12,7 +12,7 @@ //---------------------------- petsc_49.cc --------------------------- -// check PETScWrappers::operator = (Vector) +// check PETScWrappers::Vector::operator = (Vector) #include "../tests.h" #include diff --git a/tests/petsc/50.cc b/tests/petsc/50.cc index 5f4f0876c9..0ac1344861 100644 --- a/tests/petsc/50.cc +++ b/tests/petsc/50.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -12,7 +12,7 @@ //---------------------------- petsc_50.cc --------------------------- -// check PETScWrappers::operator = (Vector) with T!=PetscScalar +// check PETScWrappers::Vector::operator = (Vector) with T!=PetscScalar #include "../tests.h" #include diff --git a/tests/trilinos/49.cc b/tests/trilinos/49.cc index 7fda29f65f..eae3db3c76 100644 --- a/tests/trilinos/49.cc +++ b/tests/trilinos/49.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005, 2008 by the deal.II authors +// 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 @@ -12,7 +12,7 @@ //---------------------------- trilinos_49.cc --------------------------- -// check TrilinosWrappers::operator = (Vector) +// check TrilinosWrappers::Vector::operator = (dealii::Vector) #include "../tests.h" #include @@ -25,7 +25,7 @@ void test (TrilinosWrappers::Vector &v) { - Vector w (v.size()); + dealii::Vector w (v.size()); for (unsigned int i=0; i) +// 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 diff --git a/tests/trilinos/50.cc b/tests/trilinos/50.cc index 8179b0f25f..301144908f 100644 --- a/tests/trilinos/50.cc +++ b/tests/trilinos/50.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005, 2008 by the deal.II authors +// 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 @@ -12,7 +12,7 @@ //---------------------------- trilinos_50.cc --------------------------- -// check TrilinosWrappers::operator = (Vector) with T!=TrilinosScalar +// check TrilinosWrappers::Vector::operator = (Vector) with T!=TrilinosScalar #include "../tests.h" #include