Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce code duplication.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 18 Nov 2017 13:27:37 +0000 (14:27 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 18 Nov 2017 16:39:51 +0000 (17:39 +0100)
commite9b2c4f3e967b4f0771067519c57cc9d519ae886
tree09d3e5ed4ab6c7aba285385c582955363aa0592b
parent6038a0eddc2058959ed48f00fe9db9d4ee9d49e6
Reduce code duplication.

The only difference between Vector and Hvector, and between Indexed and
Hindexed is that stride and block_indices are given in multiples of
old_type->get_extent() in the former case, while it's given in bytes in the
latter case.
Thus, make Vector a subclass of Hvector, and Indexed a subclass of Hindexed.
src/smpi/include/smpi_datatype_derived.hpp
src/smpi/mpi/smpi_datatype_derived.cpp