*/
ConstraintMatrix ();
+ /**
+ * Copy constructor
+ */
+ ConstraintMatrix (const ConstraintMatrix &constraint_matrix);
+
/**
* @name Adding constraints
* @{
* This vector is used to import data
* within the distribute function.
*/
- mutable std_cxx1x::shared_ptr<TrilinosWrappers::MPI::Vector> vec_distribute;
+ mutable std::auto_ptr<TrilinosWrappers::MPI::Vector> vec_distribute;
#endif
};
{}
+
+inline
+ConstraintMatrix::ConstraintMatrix (const ConstraintMatrix &constraint_matrix)
+ :
+ lines (constraint_matrix.lines),
+ constraint_line_exists (constraint_matrix.constraint_line_exists),
+ sorted (constraint_matrix.sorted)
+#ifdef DEAL_II_USE_TRILINOS
+ ,vec_distribute ()
+#endif
+{}
+
+
inline
void
ConstraintMatrix::add_line (const unsigned int line)
my_indices.resize(index2);
Epetra_Map map_exchange = Epetra_Map(-1,index2,(int*)&my_indices[0],0,vec.trilinos_vector().Comm());
- vec_distribute = std_cxx1x::shared_ptr<TrilinosWrappers::MPI::Vector>
+ vec_distribute = std::auto_ptr<TrilinosWrappers::MPI::Vector>
(new TrilinosWrappers::MPI::Vector(map_exchange));
}
// here we import the data