<commit_before>//----------------------------  49b.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.
//
//----------------------------  49b.cc  ---------------------------


// like 49, but do the test for
//  TrilinosWrappers::MPI::BlockVector
//         ::operator = (dealii::BlockVector<TrilinosScalar>)
// with block vectors instead of plain vectors

#include "../tests.h"
#include <deal.II/base/utilities.h>
#include <deal.II/lac/trilinos_block_vector.h>
#include <deal.II/lac/block_vector.h>
#include <fstream>
#include <iostream>
#include <vector>


void test (TrilinosWrappers::MPI::BlockVector &v)
{
  std::vector<types::global_dof_index> sizes (2, 3);
  dealii::BlockVector<TrilinosScalar> w (sizes);

  for (unsigned int i=0; i<w.size(); ++i)
    w(i) = i;

  v = w;


                                   // make sure we get the expected result
  for (unsigned int i=0; i<v.size(); ++i)
    {
      Assert (w(i) == i, ExcInternalError());
      Assert (v(i) == i, ExcInternalError());
    }

				   // now also check the reverse assignment
  w = 0;
  w = v;
  for (unsigned int i=0; i<v.size(); ++i)
    {
      Assert (w(i) == i, ExcInternalError());
      Assert (v(i) == i, ExcInternalError());
    }


  deallog << "OK" << std::endl;
}



int main (int argc,char **argv)
{
  std::ofstream logfile("49b/output");
  deallog.attach(logfile);
  deallog.depth_console(0);
  deallog.threshold_double(1.e-10);

  Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv);


  try
    {
      {
	std::vector<Epetra_Map> sizes;
	Epetra_Map map(3, 3, 0, Utilities::Trilinos::comm_world());
	sizes.push_back (map);<commit_msg>Make run again.<commit_after>//----------------------------  49b.cc  ---------------------------
//    $Id$
//    Version: $Name$
//
//    Copyright (C) 2004, 2005, 2008, 2009, 2013 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.
//
//----------------------------  49b.cc  ---------------------------


// like 49, but do the test for
//  TrilinosWrappers::MPI::BlockVector
//         ::operator = (dealii::BlockVector<TrilinosScalar>)
// with block vectors instead of plain vectors

#include "../tests.h"
#include <deal.II/base/utilities.h>
#include <deal.II/lac/trilinos_block_vector.h>
#include <deal.II/lac/block_vector.h>
#include <fstream>
#include <iostream>
#include <vector>


void test (TrilinosWrappers::MPI::BlockVector &v)
{
  std::vector<types::global_dof_index> sizes (2, 3);
  dealii::BlockVector<TrilinosScalar> w (sizes);

  for (unsigned int i=0; i<w.size(); ++i)
    w(i) = i;

  v = w;


                                   // make sure we get the expected result
  for (unsigned int i=0; i<v.size(); ++i)
    {
      Assert (w(i) == i, ExcInternalError());
      Assert (v(i) == i, ExcInternalError());
    }

				   // now also check the reverse assignment
  w = 0;
  w = v;
  for (unsigned int i=0; i<v.size(); ++i)
    {
      Assert (w(i) == i, ExcInternalError());
      Assert (v(i) == i, ExcInternalError());
    }


  deallog << "OK" << std::endl;
}



int main (int argc,char **argv)
{
  std::ofstream logfile("49b/output");
  deallog.attach(logfile);
  deallog.depth_console(0);
  deallog.threshold_double(1.e-10);

  Utilities::MPI::MPI_InitFinalize mpi_initialization (argc, argv);


  try
    {
      {
	std::vector<Epetra_Map> sizes;
	Epetra_Map map(TrilinosWrappers::types::int_type(3),
		       TrilinosWrappers::types::int_type(3),
		       0,
		       Utilities::Trilinos::comm_world());
	sizes.push_back (map);
{'fraction_non_alphanumeric': 0.2030431529059616, 'fraction_numerical': 0.019456223497131456, 'mean_word_length': 2.3983050847457625, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2187545', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1368, 'n_words': 344}