From: deal Date: Tue, 8 Jun 2004 19:07:15 +0000 (+0000) Subject: Initialize a variable to avoid a warning from gcc3.5. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b8f61b66f7a9c29c2427c1b6f9874db5c239976;p=dealii-svn.git Initialize a variable to avoid a warning from gcc3.5. git-svn-id: https://svn.dealii.org/trunk@9413 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index 642405234a..ac99cd730c 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -2005,26 +2005,30 @@ DoFTools::compute_intergrid_constraints (const DoFHandler &coa Assert (col < n_parameters_on_fine_grid, ExcInternalError()); unsigned int first_used_row=0; - if (true) - { - std::map::const_iterator col_entry; - for (; first_used_row 0, ExcInternalError()); + std::map::const_iterator + col_entry = weights[0].end(); + for (; first_used_rowsecond == 1) && - (representants[first_used_row] == static_cast(global_dof))) - // dof unconstrained or - // constrained to itself - // (in case this cell is - // mapped to itself, rather - // than to children of - // itself) - continue; - }; + if ((col_entry->second == 1) && + (representants[first_used_row] == static_cast(global_dof))) + // dof unconstrained or + // constrained to itself + // (in case this cell is + // mapped to itself, rather + // than to children of + // itself) + continue; + } // otherwise enter all constraints