template <int dim>
struct less_than_key
{
- inline bool operator() (const std::pair<Point<dim>,Vector<double>> &pair1, const std::pair<Point<dim>,Vector<double>> &pair2)
+ inline bool operator() (const std::pair<Point<dim>,Vector<double> > &pair1, const std::pair<Point<dim>,Vector<double> > &pair2)
{
const double precision = 1e-3;
const Point<dim> &p1 = pair1.first;
#ifdef DEBUG_OUTPUT_VTK
// output to check if all is good:
counter++;
- std::vector<Vector<double>> shape_functions;
+ std::vector<Vector<double> > shape_functions;
std::vector<std::string> names;
for (unsigned int s=0; s < dof_handler.n_dofs(); s++)
{
shape_functions.push_back(shape_function);
}
- DataOut<dim,hp::DoFHandler<dim>> data_out;
+ DataOut<dim,hp::DoFHandler<dim> > data_out;
data_out.attach_dof_handler (dof_handler);
// get material ids:
std::vector<unsigned int> local_face_dof_indices;
std::vector<Vector<double> > values;
- std::vector<std::pair<Point<dim>,Vector<double>> > pairs_point_value;
+ std::vector<std::pair<Point<dim>,Vector<double> > > pairs_point_value;
for (typename hp::DoFHandler<dim>::active_cell_iterator
cell = dof_handler.begin_active();
SparseMatrix<double>::iterator it = A_tmp.begin(), endit = A_tmp.end();
for (; it!=endit; ++it)
{
- const auto row = it->row();
- const auto column = it->column();
- A.set(row, column, it->value());
- A2.set(row, column, 1000. * it->value()); // scale A2 by 1000.
+ A.set(it->row(), it->column(), it->value());
+ A2.set(it->row(), it->column(), 1000. * it->value()); // scale A2 by 1000.
}
A.compress(VectorOperation::insert);
A2.compress(VectorOperation::insert);