// Ensure that the element we are looking for isn't in the map
// yet. This only requires us to read the map, so it can happen
// in a shared locked state
-#if DEBUG
+#ifdef DEBUG
{
std::shared_lock<std::shared_mutex> lock(
internal::FEToolsAddFENameHelper::fe_name_map_lock);
"in the given communicator."));
}
+#ifdef DEBUG
// If we are dealing with a sequential triangulation, then someone
// will have needed to set the subdomain_ids by hand. Make sure that
// all ids we see are less than the number of processes we are
if (dynamic_cast<const parallel::TriangulationBase<dim, spacedim> *>(
&tria) == nullptr)
{
-#if DEBUG
const unsigned int n_mpi_processes =
dealii::Utilities::MPI::n_mpi_processes(comm);
for (const auto &cell : tria.active_cell_iterators())
" when splitting the triangulation using an MPI "
" communicator with only " +
std::to_string(n_mpi_processes) + " processes."));
-#endif
}
+#endif
// First, figure out for what rank we are supposed to build the
// TriangulationDescription::Description object