void
DoFCellAccessor<dim>::get_interpolated_dof_values (const dVector &values,
dVector &interpolated_values) const {
- const unsigned int n_dofs = dof_handler->get_fe().total_dofs;
+ const unsigned int total_dofs = dof_handler->get_fe().total_dofs;
Assert (dof_handler != 0, ExcInvalidObject());
Assert (&dof_handler->get_fe() != 0, ExcInvalidObject());
- Assert (interpolated_values.size() == n_dofs,
+ Assert (interpolated_values.size() == total_dofs,
ExcVectorDoesNotMatch());
Assert (values.size() == dof_handler->n_dofs(),
ExcVectorDoesNotMatch());
else
// otherwise clobber them from the children
{
- dVector tmp1(n_dofs);
- dVector tmp2(n_dofs);
+ dVector tmp1(total_dofs);
+ dVector tmp2(total_dofs);
interpolated_values.clear ();
// end in adding up the contribution
// from nodes on boundaries of
// children more than once.
- for (unsigned int i=0; i<n_dofs; ++i)
+ for (unsigned int i=0; i<total_dofs; ++i)
if (tmp2(i) != 0)
interpolated_values(i) = tmp2(i);
};
void
DoFCellAccessor<dim>::set_dof_values_by_interpolation (const dVector &local_values,
dVector &values) const {
- const unsigned int n_dofs = dof_handler->get_fe().total_dofs;
+ const unsigned int total_dofs = dof_handler->get_fe().total_dofs;
Assert (dof_handler != 0, ExcInvalidObject());
Assert (&dof_handler->get_fe() != 0, ExcInvalidObject());
- Assert (local_values.size() == n_dofs,
+ Assert (local_values.size() == total_dofs,
ExcVectorDoesNotMatch());
Assert (values.size() == dof_handler->n_dofs(),
ExcVectorDoesNotMatch());
else
// otherwise distribute them to the children
{
- dVector tmp(n_dofs);
+ dVector tmp(total_dofs);
for (unsigned int child=0; child<GeometryInfo<dim>::children_per_cell;
++child)
Assert (sparsity.n_cols() == n_dofs(level),
ExcDifferentDimensions (sparsity.n_cols(), n_dofs(level)));
- const unsigned int n_dofs = selected_fe->total_dofs;
- vector<int> dofs_on_this_cell(n_dofs);
+ const unsigned int total_dofs = selected_fe->total_dofs;
+ vector<int> dofs_on_this_cell(total_dofs);
cell_iterator cell = begin_active(level),
endc = end(level);
for (; cell!=endc; ++cell)
{
cell->get_mg_dof_indices (dofs_on_this_cell);
// make sparsity pattern for this cell
- for (unsigned int i=0; i<n_dofs; ++i)
- for (unsigned int j=0; j<n_dofs; ++j)
+ for (unsigned int i=0; i<total_dofs; ++i)
+ for (unsigned int j=0; j<total_dofs; ++j)
sparsity.add (dofs_on_this_cell[i],
dofs_on_this_cell[j]);
};
Assert (sparsity.n_cols() == n_dofs(level),
ExcDifferentDimensions (sparsity.n_cols(), n_dofs(level)));
- const unsigned int n_dofs = selected_fe->total_dofs;
- vector<int> dofs_on_this_cell(n_dofs);
+ const unsigned int total_dofs = selected_fe->total_dofs;
+ vector<int> dofs_on_this_cell(total_dofs);
cell_iterator cell = begin_active(level),
endc = end(level);
for (; cell!=endc; ++cell)
{
cell->get_mg_dof_indices (dofs_on_this_cell);
// make sparsity pattern for this cell
- for (unsigned int i=0; i<n_dofs; ++i)
- for (unsigned int j=0; j<n_dofs; ++j)
+ for (unsigned int i=0; i<total_dofs; ++i)
+ for (unsigned int j=0; j<total_dofs; ++j)
sparsity.add (dofs_on_this_cell[i],
dofs_on_this_cell[j]);
};