fmihpc / dccrg

Distributed cartesian cell-refinable grid
GNU Lesser General Public License v3.0
10 stars 10 forks source link

Allow datatypes to be reused when transferring remote neighbor updates one cell at a time #10

Open iljah opened 9 years ago

iljah commented 9 years ago

In https://github.com/fmihpc/dccrg/issues/6 the final datatype cannot be cached by cells but when transferring one cell at a time that is possible. Whether each cells datatype should be cached by dccrg instead of cells themselves remains to be seen. If dccrg would cache the datatype I guess the API would be to call bool reuse_datatype(...) of each cell to decide whether to call that cell's get_mpi_datatype(...). If reuse_datatype() doesn't exist then always call get_mpi_datatype() of every cell.