#include <base/subscriptor.h>
#include <base/table.h>
#include <base/template_constraints.h>
+#include <base/std_cxx1x/shared_ptr.h>
#include <lac/trilinos_vector.h>
internal::bool2type<true>) const;
#ifdef DEAL_II_USE_TRILINOS
+//TODO: Make use of the following member thread safe
/**
* This vector is used to import data
* within the distribute function.
*/
- mutable std::auto_ptr<TrilinosWrappers::MPI::Vector> vec_distribute;
+ mutable std_cxx1x::unique_ptr<TrilinosWrappers::MPI::Vector> vec_distribute;
#endif
};
my_indices.resize(index2);
- Epetra_Map map_exchange = Epetra_Map(-1,index2,(int*)&my_indices[0],0,vec.trilinos_vector().Comm());
- vec_distribute = std::auto_ptr<TrilinosWrappers::MPI::Vector>
- (new TrilinosWrappers::MPI::Vector(map_exchange));
+ Epetra_Map map_exchange
+ = Epetra_Map(-1,index2,(int*)&my_indices[0],0,
+ vec.trilinos_vector().Comm());
+ vec_distribute.reset (new TrilinosWrappers::MPI::Vector(map_exchange));
}
// here we import the data
vec_distribute->reinit(vec,false,true);