// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
* property.
*/
template <int dim, int spacedim>
- static unsigned int
+ static bool
fe_is_primitive (const DoFHandler<dim,spacedim> &dh);
/**
* property.
*/
template <int dim, int spacedim>
- static unsigned int
+ static bool
fe_is_primitive (const hp::DoFHandler<dim,spacedim> &dh);
/**
SparsityPattern &sparsity_pattern,
const ConstraintMatrix &constraints,
const bool keep_constrained_dofs = true,
- const unsigned int subdomain_id = numbers::invalid_unsigned_int);
+ const types::subdomain_id_t subdomain_id = numbers::invalid_unsigned_int);
/**
* This function does the same as
template <int dim, int spacedim>
-inline unsigned int
+inline
+bool
DoFTools::fe_is_primitive (const DoFHandler<dim,spacedim> &dh)
{
return dh.get_fe().is_primitive();
template <int dim, int spacedim>
-inline unsigned int
+inline
+bool
DoFTools::fe_is_primitive (const hp::DoFHandler<dim,spacedim> &dh)
{
return dh.get_fe()[0].is_primitive();
// $Id$
// Version: $Name$
//
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
static
unsigned int
distribute_dofs (const unsigned int offset,
- const unsigned int subdomain_id,
+ const types::subdomain_id_t subdomain_id,
DoFHandler<dim,spacedim> &dof_handler)
{
const dealii::Triangulation<dim,spacedim> & tria
// $Id$
// Version: $name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
for (unsigned int c=0; c<n_buckets; ++c)
{
shifts[c]=cumulated;
- for (unsigned int i=0; i<tria->locally_owned_subdomain(); ++i)
+ for (types::subdomain_id_t i=0; i<tria->locally_owned_subdomain(); ++i)
shifts[c] += all_dof_counts[c+n_buckets*i];
for (unsigned int i=0; i<Utilities::System::get_n_mpi_processes (tria->get_communicator()); ++i)
cumulated += all_dof_counts[c+n_buckets*i];
// $Id$
// Version: $Name$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
SparsityPattern &sparsity,
const ConstraintMatrix &constraints,
const bool keep_constrained_dofs,
- const unsigned int subdomain_id)
+ const types::subdomain_id_t subdomain_id)
{
const unsigned int n_dofs = dof.n_dofs();
SparsityPattern &sparsity,
const ConstraintMatrix &constraints,
const bool keep_constrained_dofs,
- const unsigned int subdomain_id)
+ const types::subdomain_id_t subdomain_id)
{
const unsigned int n_dofs = dof.n_dofs();
// current cell is owned by the calling
// processor. Otherwise, just continue.
for (; cell!=endc; ++cell)
- if ((subdomain_id == numbers::invalid_unsigned_int)
+ if ((subdomain_id == types::invalid_subdomain_id)
||
(subdomain_id == cell->subdomain_id()))
{
}
#endif
- std::vector<unsigned int> subdomain_association (dof_handler.n_dofs());
+ std::vector<types::subdomain_id_t> subdomain_association (dof_handler.n_dofs());
get_subdomain_association (dof_handler, subdomain_association);
std::vector<unsigned char> component_association (dof_handler.n_dofs());