Skip to content
Snippets Groups Projects
Commit 5b84b716 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Implement a cast mechanism that minimize number of word subdivision

If T is a given type. It is decomposed into small pieces of integer words to
define messages.

For instance, if T size is Byte then it will be decomposed into one int8 (no
decomposition just a reinterpret_cast). If T is 2Bytes -> int16, and so on.

It sizeof(T) is not exactly 1,2,4 or 8, then the cast (sub)type will be the one
whose size is the greatest (exact) divisor of the size of T. The
CastArray<InitialType, CastType> will ensure data size consistency when
transferring arrays.
parent ac491b1f
No related branches found
No related tags found
1 merge request!11Feature/mpi
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment