AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
- AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
std::vector<types::global_dof_index>(1, N),
ExcInternalError());
- AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
std::vector<IndexSet>(1, all),
ExcInternalError());
}
AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
- AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
std::vector<types::global_dof_index>(1, N),
ExcInternalError());
- AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
std::vector<IndexSet>(1, all),
ExcInternalError());
}
AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
- AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
std::vector<types::global_dof_index>(1, N),
ExcInternalError());
- AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
std::vector<IndexSet>(1, all),
ExcInternalError());
}
Assert(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
Assert(dof_handler.locally_owned_dofs() == all, ExcInternalError());
- Assert(dof_handler.n_locally_owned_dofs_per_processor() ==
+ Assert(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
std::vector<types::global_dof_index>(1, N),
ExcInternalError());
- Assert(dof_handler.locally_owned_dofs_per_processor() ==
+ Assert(dof_handler.compute_locally_owned_dofs_per_processor() ==
std::vector<IndexSet>(1, all),
ExcInternalError());
dof_handler.clear();
deallog << "those should be zero: " << dof_handler.n_locally_owned_dofs()
- << " " << dof_handler.n_locally_owned_dofs_per_processor().size()
+ << " "
+ << dof_handler.compute_n_locally_owned_dofs_per_processor().size()
<< " " << dof_handler.n_dofs() << std::endl;
}
}
MPI_COMM_WORLD));
SparsityTools::distribute_sparsity_pattern(
sp,
- dh.n_locally_owned_dofs_per_processor(),
+ dh.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
relevant_partitioning);
dynamic_sparsity_pattern.print(deallog.get_file_stream());
SparsityTools::distribute_sparsity_pattern(
dynamic_sparsity_pattern,
- dof_handler_0.n_locally_owned_dofs_per_processor(),
+ dof_handler_0.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
dof_handler_0.locally_owned_dofs());
dynamic_sparsity_pattern.print(deallog.get_file_stream());
dynamic_sparsity_pattern.print(deallog.get_file_stream());
SparsityTools::distribute_sparsity_pattern(
dynamic_sparsity_pattern,
- dof_handler_0.n_locally_owned_dofs_per_processor(),
+ dof_handler_0.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
dof_handler_0.locally_owned_dofs());
dynamic_sparsity_pattern.print(deallog.get_file_stream());
SparsityTools::distribute_sparsity_pattern(
sp,
- stokes_dof_handler.locally_owned_dofs_per_processor(),
+ stokes_dof_handler.compute_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
stokes_relevant_set);
DoFTools::make_sparsity_pattern(dof_handler, bcsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
bcsp,
- dof_handler.locally_owned_dofs_per_processor(),
+ dof_handler.compute_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
MPI_COMM_WORLD));
SparsityTools::distribute_sparsity_pattern(
sp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
relevant);
sp.compress();
MPI_COMM_WORLD));
SparsityTools::distribute_sparsity_pattern(
sp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
relevant);
sp.compress();
AssertThrow(dof_handler.n_locally_owned_dofs() == N, ExcInternalError());
AssertThrow(dof_handler.locally_owned_dofs() == all, ExcInternalError());
- AssertThrow(dof_handler.n_locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_n_locally_owned_dofs_per_processor() ==
std::vector<types::global_dof_index>(1, N),
ExcInternalError());
- AssertThrow(dof_handler.locally_owned_dofs_per_processor() ==
+ AssertThrow(dof_handler.compute_locally_owned_dofs_per_processor() ==
std::vector<IndexSet>(1, all),
ExcInternalError());
}
DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
dsp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
dsp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
solver.solve(mf, sol, rhs, PreconditionIdentity());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof.locally_owned_dofs_per_processor();
+ dof.compute_locally_owned_dofs_per_processor();
// gather all data at root
if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
{
constraints.print(deallog.get_file_stream());
deallog << "consistent? "
<< constraints.is_consistent_in_parallel(
- dof_handler.locally_owned_dofs_per_processor(),
+ dof_handler.compute_locally_owned_dofs_per_processor(),
locally_active_dofs,
MPI_COMM_WORLD,
true)
flux_integral_mask);
SparsityTools::distribute_sparsity_pattern(
dynamic_sparsity_pattern,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
Assert(dof_handler.n_locally_owned_dofs() <= N, ExcInternalError());
for (unsigned int i = 0;
- i < dof_handler.n_locally_owned_dofs_per_processor().size();
+ i < dof_handler.compute_n_locally_owned_dofs_per_processor().size();
++i)
- AssertThrow(dof_handler.n_locally_owned_dofs_per_processor()[i] <= N,
- ExcInternalError());
+ AssertThrow(
+ dof_handler.compute_n_locally_owned_dofs_per_processor()[i] <= N,
+ ExcInternalError());
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
AssertThrow(std::accumulate(n_locally_owned_dofs_per_processor.begin(),
n_locally_owned_dofs_per_processor.end(),
0U) == N,
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N), really_all(N);
// poor man's union operation
for (unsigned int i = 0; i < n_locally_owned_dofs_per_processor.size();
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
for (unsigned int i = 0;
i < Utilities::MPI::n_mpi_processes(mpi_communicator);
++i)
- pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+ pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+ << '+';
pcout << std::endl;
assemble_system();
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
for (unsigned int i = 0;
i < Utilities::MPI::n_mpi_processes(mpi_communicator);
++i)
- pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+ pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+ << '+';
pcout << std::endl;
assemble_system();
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
system_matrix.reinit(locally_owned_dofs,
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
deallog << "n_locally_owned_dofs_per_processor:" << std::endl;
for (unsigned int i = 0; i < n_locally_owned_dofs_per_processor.size(); ++i)
deallog << n_locally_owned_dofs_per_processor[i] << std::endl;
deallog << "level " << lvl << ":" << std::endl;
const std::vector<IndexSet> vec =
- dofh.locally_owned_mg_dofs_per_processor(lvl);
+ dofh.compute_locally_owned_mg_dofs_per_processor(lvl);
for (unsigned int i = 0; i < vec.size(); ++i)
deallog << vec[i].n_elements() << std::endl;
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
if (myid == 0)
{
deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
dofh.distribute_dofs(fe);
std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
if (myid == 0)
{
deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
dofh.distribute_dofs(fe);
std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
if (myid == 0)
{
deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
dofh.distribute_dofs(fe);
std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
if (myid == 0)
{
deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
DoFTools::extract_locally_active_dofs(dofh, dof_set);
const std::vector<IndexSet> owned_dofs =
- dofh.locally_owned_dofs_per_processor();
+ dofh.compute_locally_owned_dofs_per_processor();
if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
{
dof_set.print(deallog);
data_out.build_patches();
std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
if (myid == 0)
{
for (unsigned int i = 0; i < n_locally_owned_dofs_per_processor.size();
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dofh.n_locally_owned_dofs_per_processor();
+ dofh.compute_n_locally_owned_dofs_per_processor();
if (myid == 1)
{
deallog << "dofh.n_dofs() " << n_locally_owned_dofs_per_processor
constraints.close();
const std::vector<IndexSet> &locally_owned_dofs =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet locally_active_dofs;
DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
template <int dim>
constraints.close();
const std::vector<IndexSet> &locally_owned_dofs =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet locally_active_dofs;
DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
constraints.close();
const std::vector<IndexSet> &locally_owned_dofs =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet locally_active_dofs;
DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
constraints.print(deallog.get_file_stream());
const std::vector<IndexSet> locally_owned_dofs_vector =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet locally_active_dofs;
DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs_vector,
constraints.close();
const std::vector<IndexSet> &locally_owned_dofs =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet locally_active_dofs;
DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
AssertThrow(constraints.is_consistent_in_parallel(locally_owned_dofs,
DoFTools::extract_locally_active_dofs(dof_handler, locally_active_dofs);
const std::vector<IndexSet> locally_owned_dofs =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
std::map<types::global_dof_index, Point<dim>> supportPoints;
DoFTools::map_dofs_to_support_points(MappingQ1<dim>(),
complete_renumbering.begin());
unsigned int offset = renumbering.size();
const std::vector<IndexSet> dofs_per_proc =
- dofh.locally_owned_dofs_per_processor();
+ dofh.compute_locally_owned_dofs_per_processor();
for (unsigned int i = 1; i < nprocs; ++i)
{
if (myid == i)
complete_renumbering.begin());
unsigned int offset = renumbering.size();
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dofh.locally_owned_dofs_per_processor();
+ dofh.compute_locally_owned_dofs_per_processor();
for (unsigned int i = 1; i < nprocs; ++i)
{
if (myid == i)
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
for (unsigned int i = 0;
i < Utilities::MPI::n_mpi_processes(mpi_communicator);
++i)
- pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+ pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+ << '+';
pcout << std::endl;
assemble_system();
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
for (unsigned int i = 0;
i < Utilities::MPI::n_mpi_processes(mpi_communicator);
++i)
- pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+ pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+ << '+';
pcout << std::endl;
assemble_system();
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
<< " ";
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
for (unsigned int i = 0;
i < Utilities::MPI::n_mpi_processes(mpi_communicator);
++i)
DoFTools::make_sparsity_pattern(dof_handler, csp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
- system_matrix.reinit(mpi_communicator,
- csp,
- dof_handler.n_locally_owned_dofs_per_processor(),
- dof_handler.n_locally_owned_dofs_per_processor(),
- Utilities::MPI::this_mpi_process(mpi_communicator));
+ system_matrix.reinit(
+ mpi_communicator,
+ csp,
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
+ Utilities::MPI::this_mpi_process(mpi_communicator));
}
for (unsigned int i = 0;
i < Utilities::MPI::n_mpi_processes(mpi_communicator);
++i)
- pcout << dof_handler.n_locally_owned_dofs_per_processor()[i] << '+';
+ pcout << dof_handler.compute_n_locally_owned_dofs_per_processor()[i]
+ << '+';
pcout << std::endl;
assemble_system();
DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
dsp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_communicator,
locally_relevant_dofs);
DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_dofs);
n_local_cells = GridTools::count_cells_with_subdomain_association(
triangulation, triangulation.locally_owned_subdomain());
- local_dofs_per_process = dof_handler.n_locally_owned_dofs_per_processor();
+ local_dofs_per_process =
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
hanging_node_constraints.clear();
DoFTools::make_hanging_node_constraints(dof_handler,
hanging_node_constraints);
DoFTools::extract_locally_relevant_dofs(dof_handler, locally_relevant_dofs);
n_local_cells = GridTools::count_cells_with_subdomain_association(
triangulation, triangulation.locally_owned_subdomain());
- local_dofs_per_process = dof_handler.n_locally_owned_dofs_per_processor();
+ local_dofs_per_process =
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
hanging_node_constraints.clear();
DoFTools::make_hanging_node_constraints(dof_handler,
hanging_node_constraints);
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
//
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
//
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
//
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
shared_dofs.print(deallog.get_file_stream());
std::vector<IndexSet> shared_dofs_per_proc =
- shared_dof_handler.locally_owned_dofs_per_processor();
+ shared_dof_handler.compute_locally_owned_dofs_per_processor();
std::vector<IndexSet> distributed_dofs_per_proc =
- distributed_dof_handler.locally_owned_dofs_per_processor();
+ distributed_dof_handler.compute_locally_owned_dofs_per_processor();
for (unsigned int i = 0; i < Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
++i)
Assert(shared_dofs_per_proc[i] == distributed_dofs_per_proc[i],
<< dof_handler.n_locally_owned_dofs() << std::endl;
std::vector<IndexSet> shared_dofs_per_proc =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
for (unsigned int i = 0; i < Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD);
++i)
shared_dofs_per_proc[i].print(deallog.get_file_stream());
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
//
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
//
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
//
// deallog << "n_locally_owned_dofs_per_processor: ";
// std::vector<types::global_dof_index> v =
- // dof_handler.n_locally_owned_dofs_per_processor(); unsigned int sum
- // = 0; for (unsigned int i=0; i<v.size(); ++i)
+ // dof_handler.compute_n_locally_owned_dofs_per_processor();
+ // unsigned int sum = 0;
+ // for (unsigned int i=0; i<v.size(); ++i)
// {
// deallog << v[i] << " ";
// sum += v[i];
const std::vector<types::global_dof_index>
n_locally_owned_dofs_per_processor =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(dof_handler.n_locally_owned_dofs() ==
n_locally_owned_dofs_per_processor[triangulation
.locally_owned_subdomain()],
ExcInternalError());
const std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
deallog << "n_locally_owned_dofs_per_processor: ";
std::vector<types::global_dof_index> v =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
unsigned int sum = 0;
for (unsigned int i = 0; i < v.size(); ++i)
{
Assert(std::accumulate(v.begin(), v.end(), 0U) == N, ExcInternalError());
std::vector<IndexSet> locally_owned_dofs_per_processor =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < locally_owned_dofs_per_processor.size(); ++i)
{
for (unsigned int lvl = 0; lvl < n_levels; ++lvl)
{
std::vector<IndexSet> dof_index_per_proc =
- dof_handler.locally_owned_mg_dofs_per_processor(lvl);
+ dof_handler.compute_locally_owned_mg_dofs_per_processor(lvl);
for (unsigned int i = 0; i < dof_index_per_proc.size(); ++i)
dof_index_per_proc[i].print(deallog);
deallog << "n_locally_owned_dofs_per_processor: ";
const std::vector<types::global_dof_index> v =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
unsigned int sum = 0;
for (unsigned int i = 0; i < v.size(); ++i)
{
deallog << std::endl;
Assert(dof_handler.n_locally_owned_dofs() ==
- dof_handler.n_locally_owned_dofs_per_processor()
+ dof_handler.compute_n_locally_owned_dofs_per_processor()
[triangulation.locally_owned_subdomain()],
ExcInternalError());
Assert(dof_handler.n_locally_owned_dofs() ==
Assert(dof_handler.n_locally_owned_dofs() <= N, ExcInternalError());
const std::vector<types::global_dof_index> n_owned_dofs =
- dof_handler.n_locally_owned_dofs_per_processor();
+ dof_handler.compute_n_locally_owned_dofs_per_processor();
Assert(std::accumulate(n_owned_dofs.begin(), n_owned_dofs.end(), 0U) == N,
ExcInternalError());
const std::vector<IndexSet> owned_dofs =
- dof_handler.locally_owned_dofs_per_processor();
+ dof_handler.compute_locally_owned_dofs_per_processor();
IndexSet all(N);
for (unsigned int i = 0; i < owned_dofs.size(); ++i)
{
DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
dsp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
DoFTools::make_sparsity_pattern(dof_handler, dsp, constraints, false);
SparsityTools::distribute_sparsity_pattern(
dsp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
SparsityTools::distribute_sparsity_pattern(
dynamic_sparsity_pattern,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
/*keep constrained dofs*/ false);
SparsityTools::distribute_sparsity_pattern(
sparsity_pattern,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
MPI_COMM_WORLD,
locally_relevant_dofs);
SparsityTools::distribute_sparsity_pattern(
dsp,
- dof_handler.n_locally_owned_dofs_per_processor(),
+ dof_handler.compute_n_locally_owned_dofs_per_processor(),
mpi_comm,
locally_relevant_dofs);