From: Martin Kronbichler Date: Thu, 28 Apr 2011 09:45:38 +0000 (+0000) Subject: Fix compile error with DoFTools::Coupling. X-Git-Tag: v8.0.0~4099 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31d8c4d05c7bce5c20d9565cc06ca82b67494f0a;p=dealii.git Fix compile error with DoFTools::Coupling. git-svn-id: https://svn.dealii.org/trunk@23658 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/dofs/dof_tools.h b/deal.II/include/deal.II/dofs/dof_tools.h index c76523c422..c7dcdcb27b 100644 --- a/deal.II/include/deal.II/dofs/dof_tools.h +++ b/deal.II/include/deal.II/dofs/dof_tools.h @@ -2167,10 +2167,10 @@ namespace DoFTools Coupling operator |= (Coupling& c1, const Coupling c2) { - if (c2 == Coupling::always) - c1 = Coupling::always; - else if (c1 != Coupling::always && c2 == Coupling::nonzero) - return c1 = Coupling::nonzero; + if (c2 == always) + c1 = always; + else if (c1 != always && c2 == nonzero) + return c1 = nonzero; return c1; } @@ -2184,11 +2184,11 @@ namespace DoFTools Coupling operator | (const Coupling c1, const Coupling c2) { - if (c1 == Coupling::always || c2 == Coupling::always) - return Coupling::always; - if (c1 == Coupling::nonzero || c2 == Coupling::nonzero) - return Coupling::nonzero; - return Coupling::none; + if (c1 == always || c2 == always) + return always; + if (c1 == nonzero || c2 == nonzero) + return nonzero; + return none; } diff --git a/deal.II/source/dofs/dof_tools.cc b/deal.II/source/dofs/dof_tools.cc index c505e50034..8bc72cce52 100644 --- a/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/source/dofs/dof_tools.cc @@ -727,7 +727,7 @@ namespace DoFTools // make sparsity pattern for this cell for (unsigned int i=0; iget_fe().dofs_per_cell; ++i) for (unsigned int j=0; jget_fe().dofs_per_cell; ++j) - if (int_dof_mask[cell->active_fe_index()](i,j) != Coupling::none) + if (int_dof_mask[cell->active_fe_index()](i,j) != none) sparsity.add (dofs_on_this_cell[i], dofs_on_this_cell[j]); @@ -988,11 +988,11 @@ namespace DoFTools for (unsigned int j=0; jget_fe().dofs_per_cell; ++j) if ((flux_mask(cell->get_fe().system_to_component_index(i).first, cell->get_fe().system_to_component_index(j).first) - == Coupling::always) + == always) || (flux_mask(cell->get_fe().system_to_component_index(i).first, cell->get_fe().system_to_component_index(j).first) - == Coupling::nonzero)) + == nonzero)) sparsity.add (dofs_on_this_cell[i], dofs_on_this_cell[j]); } @@ -1029,11 +1029,11 @@ namespace DoFTools { if ((flux_mask(cell->get_fe().system_to_component_index(i).first, sub_neighbor->get_fe().system_to_component_index(j).first) - == Coupling::always) + == always) || (flux_mask(cell->get_fe().system_to_component_index(i).first, sub_neighbor->get_fe().system_to_component_index(j).first) - == Coupling::nonzero)) + == nonzero)) { sparsity.add (dofs_on_this_cell[i], dofs_on_other_cell[j]); @@ -1047,11 +1047,11 @@ namespace DoFTools if ((flux_mask(sub_neighbor->get_fe().system_to_component_index(j).first, cell->get_fe().system_to_component_index(i).first) - == Coupling::always) + == always) || (flux_mask(sub_neighbor->get_fe().system_to_component_index(j).first, cell->get_fe().system_to_component_index(i).first) - == Coupling::nonzero)) + == nonzero)) { sparsity.add (dofs_on_this_cell[j], dofs_on_other_cell[i]); @@ -1077,11 +1077,11 @@ namespace DoFTools { if ((flux_mask(cell->get_fe().system_to_component_index(i).first, neighbor->get_fe().system_to_component_index(j).first) - == Coupling::always) + == always) || (flux_mask(cell->get_fe().system_to_component_index(i).first, neighbor->get_fe().system_to_component_index(j).first) - == Coupling::nonzero)) + == nonzero)) { sparsity.add (dofs_on_this_cell[i], dofs_on_other_cell[j]); @@ -1095,11 +1095,11 @@ namespace DoFTools if ((flux_mask(neighbor->get_fe().system_to_component_index(j).first, cell->get_fe().system_to_component_index(i).first) - == Coupling::always) + == always) || (flux_mask(neighbor->get_fe().system_to_component_index(j).first, cell->get_fe().system_to_component_index(i).first) - == Coupling::nonzero)) + == nonzero)) { sparsity.add (dofs_on_this_cell[j], dofs_on_other_cell[i]);