SparsityPattern &sparsity_pattern,
const ConstraintMatrix &constraints = ConstraintMatrix(),
const bool keep_constrained_dofs = true,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id);
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id);
/**
* Locate non-zero entries for
SparsityPattern &sparsity_pattern,
const ConstraintMatrix &constraints = ConstraintMatrix(),
const bool keep_constrained_dofs = true,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id);
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id);
/**
* @deprecated This is the old
/**
* Get the level subdomain id of this cell. This is used for parallel multigrid.
*/
- types::subdomain_id_t level_subdomain_id () const;
+ types::subdomain_id level_subdomain_id () const;
/**
* Set the level subdomain id of this cell. This is used for parallel multigrid.
*/
- void set_level_subdomain_id (const types::subdomain_id_t new_level_subdomain_id) const;
+ void set_level_subdomain_id (const types::subdomain_id new_level_subdomain_id) const;
/**
return true;
#else
const types::subdomain_id subdomain = this->subdomain_id();
- if (subdomain == types::artificial_subdomain_id)
+ if (subdomain == numbers::artificial_subdomain_id)
return false;
const parallel::distributed::Triangulation<dim,spacedim> *pdt
return false;
#else
const types::subdomain_id subdomain = this->subdomain_id();
- if (subdomain == types::artificial_subdomain_id)
+ if (subdomain == numbers::artificial_subdomain_id)
return false;
const parallel::distributed::Triangulation<dim,spacedim> *pdt
#ifndef DEAL_II_USE_P4EST
return false;
#else
- return (this->subdomain_id() == types::artificial_subdomain_id);
+ return (this->subdomain_id() == numbers::artificial_subdomain_id);
#endif
}
/**
* for parallel multigrid
*/
- std::vector<types::subdomain_id_t> level_subdomain_ids;
+ std::vector<types::subdomain_id> level_subdomain_ids;
/**
* One integer for every consecutive
std::vector<bool> coarsen_flags;
std::vector<std::pair<int,int> > neighbors;
std::vector<types::subdomain_id> subdomain_ids;
- std::vector<types::subdomain_id_t> level_subdomain_ids;
+ std::vector<types::subdomain_id> level_subdomain_ids;
std::vector<int> parents;
// The following is not used
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = numbers::invalid_unsigned_int,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
const ComponentMask &component_mask = ComponentMask(),
const Function<spacedim> *coefficients = 0,
const unsigned int n_threads = multithread_info.n_default_threads,
- const types::subdomain_id subdomain_id = types::invalid_subdomain_id,
+ const types::subdomain_id subdomain_id = numbers::invalid_subdomain_id,
const types::material_id material_id = numbers::invalid_material_id);
/**
// not local.
delete_all_children<dim,spacedim> (dealii_cell->child(c));
dealii_cell->child(c)
- ->recursively_set_subdomain_id(types::artificial_subdomain_id);
+ ->recursively_set_subdomain_id(numbers::artificial_subdomain_id);
}
else
{
{
std::string fname=std::string(filename)+".info";
std::ofstream f(fname.c_str());
- f << Utilities::System::get_n_mpi_processes (mpi_communicator) << " "
+ f << Utilities::MPI::n_mpi_processes (mpi_communicator) << " "
<< real_data_size << " "
<< attached_data_pack_callbacks.size() << std::endl;
}
std::string fname=std::string(filename)+".info";
std::ifstream f(fname.c_str());
f >> numcpus >> attached_size >> attached_count;
- if (numcpus != Utilities::System::get_n_mpi_processes (mpi_communicator))
+ if (numcpus != Utilities::MPI::n_mpi_processes (mpi_communicator))
throw ExcInternalError();
}
cell = this->begin(0);
cell != this->end(0);
++cell)
- cell->recursively_set_subdomain_id(types::artificial_subdomain_id);
+ cell->recursively_set_subdomain_id(numbers::artificial_subdomain_id);
do
{
== false)
{
delete_all_children<dim,spacedim> (cell);
- cell->set_subdomain_id (types::artificial_subdomain_id);
+ cell->set_subdomain_id (numbers::artificial_subdomain_id);
}
else
{
if (cell->subdomain_id() != my_subdomain
&&
- cell->subdomain_id() != types::artificial_subdomain_id)
+ cell->subdomain_id() != numbers::artificial_subdomain_id)
++num_ghosts;
}
/**
* Distribute degrees of freedom on all cells, or on cells with the
* correct subdomain_id if the corresponding argument is not equal to
- * types::invalid_subdomain_id. Return the total number of dofs
+ * numbers::invalid_subdomain_id. Return the total number of dofs
* returned.
*/
template <int dim, int spacedim>
endc = dof_handler.end();
for (; cell != endc; ++cell)
- if ((subdomain_id == types::invalid_subdomain_id)
+ if ((subdomain_id == numbers::invalid_subdomain_id)
||
(cell->subdomain_id() == subdomain_id))
next_free_dof
// update the cache used for cell dof indices
for (typename DoFHandler<dim,spacedim>::cell_iterator
cell = dof_handler.begin(); cell != dof_handler.end(); ++cell)
- if (cell->subdomain_id() != types::artificial_subdomain_id)
+ if (cell->subdomain_id() != numbers::artificial_subdomain_id)
cell->update_cell_dof_indices_cache ();
// finally restore the user flags
{
const unsigned int n_dofs =
Implementation::distribute_dofs (0,
- types::invalid_subdomain_id,
+ numbers::invalid_subdomain_id,
dof_handler);
// now set the elements of the
// * Create global_dof_indexsets by
// transferring our own owned_dofs to
// every other machine.
- const unsigned int n_cpus = Utilities::System::
- get_n_mpi_processes (tr->get_communicator());
+ const unsigned int n_cpus = Utilities::MPI::n_mpi_processes (tr->get_communicator());
// Serialize our IndexSet and
// determine size.
// subdomain. Not setting a subdomain is also okay, because we skip
// ghost cells in the loop below.
Assert (
- (dof.get_tria().locally_owned_subdomain() == types::invalid_subdomain_id)
+ (dof.get_tria().locally_owned_subdomain() == numbers::invalid_subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id)
+ (subdomain_id == numbers::invalid_subdomain_id)
||
(subdomain_id == dof.get_tria().locally_owned_subdomain()),
ExcMessage ("For parallel::distributed::Triangulation objects and "
// type, we only have to do the work if the current cell is owned by
// the calling processor. Otherwise, just continue.
for (; cell!=endc; ++cell)
- if (((subdomain_id == types::invalid_subdomain_id)
+ if (((subdomain_id == numbers::invalid_subdomain_id)
||
(subdomain_id == cell->subdomain_id()))
&&
// subdomain. Not setting a subdomain is also okay, because we skip
// ghost cells in the loop below.
Assert (
- (dof.get_tria().locally_owned_subdomain() == types::invalid_subdomain_id)
+ (dof.get_tria().locally_owned_subdomain() == numbers::invalid_subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id)
+ (subdomain_id == numbers::invalid_subdomain_id)
||
(subdomain_id == dof.get_tria().locally_owned_subdomain()),
ExcMessage ("For parallel::distributed::Triangulation objects and "
// type, we only have to do the work if the current cell is owned by
// the calling processor. Otherwise, just continue.
for (; cell!=endc; ++cell)
- if (((subdomain_id == types::invalid_subdomain_id)
+ if (((subdomain_id == numbers::invalid_subdomain_id)
||
(subdomain_id == cell->subdomain_id()))
&&
// subdomain. Not setting a subdomain is also okay, because we skip
// ghost cells in the loop below.
Assert (
- (dof.get_tria().locally_owned_subdomain() == types::invalid_subdomain_id)
+ (dof.get_tria().locally_owned_subdomain() == numbers::invalid_subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id)
+ (subdomain_id == numbers::invalid_subdomain_id)
||
(subdomain_id == dof.get_tria().locally_owned_subdomain()),
ExcMessage ("For parallel::distributed::Triangulation objects and "
// type, we only have to do the work if the current cell is owned by
// the calling processor. Otherwise, just continue.
for (; cell!=endc; ++cell)
- if (((subdomain_id == types::invalid_subdomain_id)
+ if (((subdomain_id == numbers::invalid_subdomain_id)
||
(subdomain_id == cell->subdomain_id()))
&&
// preset all values by an invalid value
std::fill_n (subdomain_association.begin(), dof_handler.n_dofs(),
- types::invalid_subdomain_id);
+ numbers::invalid_subdomain_id);
std::vector<unsigned int> local_dof_indices;
local_dof_indices.reserve (max_dofs_per_cell(dof_handler));
Assert (std::find (subdomain_association.begin(),
subdomain_association.end(),
- types::invalid_subdomain_id)
+ numbers::invalid_subdomain_id)
== subdomain_association.end(),
ExcInternalError());
}
// If we have a distributed::Triangulation only allow locally_owned
// subdomain.
Assert (
- (dof_handler.get_tria().locally_owned_subdomain() == types::invalid_subdomain_id)
+ (dof_handler.get_tria().locally_owned_subdomain() == numbers::invalid_subdomain_id)
||
(subdomain == dof_handler.get_tria().locally_owned_subdomain()),
ExcMessage ("For parallel::distributed::Triangulation objects and "
for (; cell1!=endc1; ++cell1, ++cell2)
if ((cell1->subdomain_id() == subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id))
+ (subdomain_id == numbers::invalid_subdomain_id))
{
Assert(cell1->get_fe().n_components() == cell2->get_fe().n_components(),
ExcDimensionMismatch (cell1->get_fe().n_components(),
for (; cell!=endc; ++cell)
if ((cell->subdomain_id() == subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id))
+ (subdomain_id == numbers::invalid_subdomain_id))
{
if (hanging_nodes_not_allowed)
for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
for (; cell!=endc; ++cell)
if ((cell->subdomain_id() == subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id))
+ (subdomain_id == numbers::invalid_subdomain_id))
{
Assert(cell->get_fe().n_components() == fe2.n_components(),
ExcDimensionMismatch(cell->get_fe().n_components(),
for (; cell!=endc; ++cell)
if ((cell->subdomain_id() == subdomain_id)
||
- (subdomain_id == types::invalid_subdomain_id))
+ (subdomain_id == numbers::invalid_subdomain_id))
{
if (hanging_nodes_not_allowed)
for (unsigned int face=0; face<GeometryInfo<dim>::faces_per_cell; ++face)
types::subdomain_id
Triangulation<dim,spacedim>::locally_owned_subdomain () const
{
- return types::invalid_subdomain_id;
+ return numbers::invalid_subdomain_id;
}
// material_id), or if one of the
// neighbors behind the face is on
// the subdomain we care for
- if ( ! ( ((subdomain_id == types::invalid_subdomain_id)
+ if ( ! ( ((subdomain_id == numbers::invalid_subdomain_id)
||
(cell->subdomain_id() == subdomain_id))
&&
if (face->has_children() == false)
care_for_cell |= ((cell->neighbor(face_no)->subdomain_id()
== subdomain_id) ||
- (subdomain_id == types::invalid_subdomain_id))
+ (subdomain_id == numbers::invalid_subdomain_id))
&&
((cell->neighbor(face_no)->material_id()
== material_id) ||
->material_id() == material_id)
&&
(subdomain_id ==
- types::invalid_subdomain_id)))
+ numbers::invalid_subdomain_id)))
{
care_for_cell = true;
break;
if (dynamic_cast<const parallel::distributed::Triangulation<1,spacedim>*>
(&dof_handler.get_tria())
!= 0)
- Assert ((subdomain_id_ == types::invalid_subdomain_id)
+ Assert ((subdomain_id_ == numbers::invalid_subdomain_id)
||
(subdomain_id_ ==
dynamic_cast<const parallel::distributed::Triangulation<1,spacedim>&>
typename DH::active_cell_iterator cell = dof_handler.begin_active();
for (unsigned int cell_index=0; cell != dof_handler.end();
++cell, ++cell_index)
- if (((subdomain_id == types::invalid_subdomain_id)
+ if (((subdomain_id == numbers::invalid_subdomain_id)
||
(cell->subdomain_id() == subdomain_id))
&&
if (dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>
(&dof_handler.get_tria())
!= 0)
- Assert ((subdomain_id_ == types::invalid_subdomain_id)
+ Assert ((subdomain_id_ == numbers::invalid_subdomain_id)
||
(subdomain_id_ ==
dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>&>
for (typename DH::active_cell_iterator cell=dof_handler.begin_active();
cell!=dof_handler.end();
++cell, ++present_cell)
- if ( ((subdomain_id == types::invalid_subdomain_id)
+ if ( ((subdomain_id == numbers::invalid_subdomain_id)
||
(cell->subdomain_id() == subdomain_id))
&&