namespace EpetraWrappers
{
/**
- * This class implements a wrapper to Trilinos Import.
+ * This class implements a wrapper to a Trilinos Epetra_Import object,
+ * for use in places where a CommunicationPatternBase object is required.
*/
class CommunicationPattern : public CommunicationPatternBase
{
public:
/**
- * Reinitialize the communication pattern. The first argument @p
+ * Initialize the communication pattern. The first argument @p
* vector_space_vector_index_set is the index set associated to a
* VectorSpaceVector object. The second argument @p
* read_write_vector_index_set is the index set associated to a
/**
* Shared pointer to the Epetra_Import object used.
*/
- std::unique_ptr<Epetra_Import> import;
+ std::unique_ptr<Epetra_Import> importer;
};
} // end of namespace EpetraWrappers
} // end of namespace LinearAlgebra
// Target map is read_write_vector_map
// Source map is vector_space_vector_map. This map must have uniquely
// owned GID.
- import = std::make_unique<Epetra_Import>(read_write_vector_map,
- vector_space_vector_map);
+ importer = std::make_unique<Epetra_Import>(read_write_vector_map,
+ vector_space_vector_map);
}
const Epetra_Import &
CommunicationPattern::get_epetra_import() const
{
- return *import;
+ return *importer;
}
} // namespace EpetraWrappers
} // namespace LinearAlgebra