clear();
const unsigned int n_active_cells = dof_handler->get_tria().n_active_cells();
- const unsigned int total_dofs = dof_handler->get_fe().total_dofs;
+ const unsigned int dofs_per_cell = dof_handler->get_fe().total_dofs;
n_dofs_old=dof_handler->n_dofs();
indices_on_cell=vector<vector<int> > (n_active_cells,
- vector<int> (total_dofs));
+ vector<int> (dofs_per_cell));
DoFHandler<dim>::cell_iterator cell = dof_handler->begin(),
endc = dof_handler->end();
Assert(out.size()==dof_handler->n_dofs(),
ExcWrongVectorSize(out.size(),dof_handler->n_dofs()));
- unsigned int total_dofs=dof_handler->get_fe().total_dofs;
- Vector<number> local_values(total_dofs);
+ unsigned int dofs_per_cell=dof_handler->get_fe().total_dofs;
+ Vector<number> local_values(dofs_per_cell);
DoFHandler<dim>::cell_iterator cell = dof_handler->begin(),
endc = dof_handler->end();
// function
{
indexptr=static_cast<vector<int> *>(cell->user_pointer());
- for (unsigned int i=0; i<total_dofs; ++i)
+ for (unsigned int i=0; i<dofs_per_cell; ++i)
local_values(i)=in(indexptr->operator[](i));
cell->set_dof_values_by_interpolation(local_values, out);
}
clear();
const unsigned int n_active_cells = dof_handler->get_tria().n_active_cells();
- const unsigned int total_dofs = dof_handler->get_fe().total_dofs;
+ const unsigned int dofs_per_cell = dof_handler->get_fe().total_dofs;
n_dofs_old=dof_handler->n_dofs();
for (unsigned int i=0; i<in_size; ++i)
// allocate the needed memory
indices_on_cell = vector<vector<int> > (n_cells_to_stay_or_refine,
- vector<int> (total_dofs));
+ vector<int> (dofs_per_cell));
dof_values_on_cell
= vector<vector<Vector<number> > > (n_coarsen_fathers,
vector<Vector<number> > (in_size,
- Vector<number> (total_dofs)));
+ Vector<number> (dofs_per_cell)));
all_pointerstructs = vector<Pointerstruct> (n_cells_to_stay_or_refine +
n_coarsen_fathers);
};
- const unsigned int total_dofs=dof_handler->get_fe().total_dofs;
- Vector<number> local_values(total_dofs);
+ const unsigned int dofs_per_cell=dof_handler->get_fe().total_dofs;
+ Vector<number> local_values(dofs_per_cell);
vector<int> *indexptr;
Pointerstruct *structptr;
vector<Vector<number> > *valuesptr;
- vector<int> dofs(total_dofs);
+ vector<int> dofs(dofs_per_cell);
DoFHandler<dim>::cell_iterator cell = dof_handler->begin(),
endc = dof_handler->end();
// to its children
for (unsigned int j=0; j<out_size; ++j)
{
- for (unsigned int i=0; i<total_dofs; ++i)
+ for (unsigned int i=0; i<dofs_per_cell; ++i)
local_values(i)=all_in[j](indexptr->operator[](i));
cell->set_dof_values_by_interpolation(local_values,
all_out[j]);
// to the new vectors
for (unsigned int j=0; j<out_size; ++j)
{
- for (unsigned int i=0; i<total_dofs; ++i)
+ for (unsigned int i=0; i<dofs_per_cell; ++i)
all_out[j](dofs[i])=valuesptr->operator[](j)(i);
}
}