From: wolf Date: Mon, 28 Oct 2002 19:31:09 +0000 (+0000) Subject: Fixed: Vectors could not be given as input and output vectors to the X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=510da1a629e5a7998b8792473478f8ae0133bd62;p=dealii-svn.git Fixed: Vectors could not be given as input and output vectors to the SolutionTransfer class at the same time, but this was not checked. An assertion has now been added to ensure this requirement. git-svn-id: https://svn.dealii.org/trunk@6732 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/solution_transfer.cc b/deal.II/deal.II/source/numerics/solution_transfer.cc index 0b819826b8..3e254149a2 100644 --- a/deal.II/deal.II/source/numerics/solution_transfer.cc +++ b/deal.II/deal.II/source/numerics/solution_transfer.cc @@ -108,6 +108,9 @@ SolutionTransfer::refine_interpolate(const Vector &in, Assert(in.size()==n_dofs_old, ExcWrongVectorSize(in.size(),n_dofs_old)); Assert(out.size()==dof_handler->n_dofs(), ExcWrongVectorSize(out.size(),dof_handler->n_dofs())); + Assert(&in != &out, + ExcMessage ("Vectors cannot be used as input and output" + " at the same time!")); unsigned int dofs_per_cell=dof_handler->get_fe().dofs_per_cell; Vector local_values(dofs_per_cell); @@ -284,7 +287,8 @@ interpolate (const std::vector > &all_in, for (unsigned int i=0; i > &all_in, all_out[i].reinit (dof_handler->n_dofs()); }; + for (unsigned int i=0; iget_fe().dofs_per_cell; Vector local_values(dofs_per_cell); diff --git a/deal.II/doc/news/2002/c-3-4.html b/deal.II/doc/news/2002/c-3-4.html index e57bbb5ce6..4911bbe460 100644 --- a/deal.II/doc/news/2002/c-3-4.html +++ b/deal.II/doc/news/2002/c-3-4.html @@ -154,10 +154,10 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

  • - Improved: make knows a target veryclean - now. clean leaves the libraries now, removing + New: The top-level makefile now how a target distclean. + clean leaves the libraries now, removing everything that is not needed to use - deal.II. veryclean removes even the + deal.II. distclean removes even the libraries, leaving the directory more or less in the state like after configure.
    @@ -402,6 +402,15 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

    deal.II

      +
    1. + Fixed: Vectors could not be given as input and output vectors to the + SolutionTransfer class at the same time, but + this was not checked. An assertion has now been added to ensure this + requirement. +
      + (WB 2002/10/28) +

      +
    2. Fixed: The DoFRenumbering::component_wise function accepts a