*
* @deprecated Currently, this function can also be called for non-active cells, if all degrees of freedom of the FiniteElement are located in vertices. This functionality will vanish in a future release.
*/
- void get_dof_indices (std::vector<unsigned int> &dof_indices) const;
+ void get_dof_indices (std::vector<types::global_dof_index> &dof_indices) const;
+
/**
* @deprecated Use get_active_or_mg_dof_indices() with level_cell_iterator returned from begin_mg().
*
AssertDimension (eigenvalues.size(), eigenvalues_real.size());
AssertDimension (eigenvalues.size(), eigenvalues_im.size());
- for (unsigned int i=0; i<eigenvalues.size(); ++i)
+ for (size_type i=0; i<eigenvalues.size(); ++i)
- {
- eigenvalues[i].real() = eigenvalues_real[i];
- eigenvalues[i].imag() = eigenvalues_im[i];
- }
+ eigenvalues[i] = std::complex<double> (eigenvalues_real[i],
+ eigenvalues_im[i]);
}
}
* <tt>local_elements[i]</tt>
* elements on the present process.
*/
- BlockVector (const std::vector<unsigned int> &block_sizes,
- const MPI_Comm &communicator,
- const std::vector<unsigned int> &local_elements);
+ BlockVector (const std::vector<size_type> &block_sizes,
+ const MPI_Comm &communicator,
+ const std::vector<size_type> &local_elements);
+ /**
+ * Create a BlockVector with parallel_partitioning.size() blocks,
+ * each initialized with the given IndexSet.
+ */
+ explicit BlockVector (const std::vector<IndexSet> ¶llel_partitioning,
+ const MPI_Comm &communicator = MPI_COMM_WORLD);
+
/**
* Destructor. Clears memory
*/
* fill appropriate data using a
* reinit of the blocks.
*/
- BlockVector (const size_type num_blocks);
- explicit BlockVector (const unsigned int num_blocks);
++ explicit BlockVector (const size_type num_blocks);
/**
* Constructor. Set the number of
*
* References BlockVector.reinit().
*/
- BlockVector (const std::vector<size_type> &N);
- explicit BlockVector (const std::vector<unsigned int> &N);
++ explicit BlockVector (const std::vector<size_type> &N);
/**
* Constructor. Set the number of
* fill appropriate data using a
* reinit of the blocks.
*/
- BlockVector (const size_type num_blocks);
- explicit BlockVector (const unsigned int num_blocks);
++ explicit BlockVector (const size_type num_blocks);
/**
* Destructor. Clears memory