dtarb / TauDEM

Terrain Analysis Using Digital Elevation Models (TauDEM) software for hydrologic terrain analysis and channel network extraction.
http://hydrology.usu.edu/taudem
Other
222 stars 115 forks source link

MPI > 3.0... MPI_Type_extent to MPI_Type_get_extent #232

Open vtdrfuka opened 2 years ago

vtdrfuka commented 2 years ago

I was wondering if anybody has patched TauDEM for the functions deprecated in MPI > 3.0. Specifically: MPI_Type_extent and MPI_Type_struct?

If not, I will poke at it and update the issue with patch. Thanks! dan

linklib.h: In function ‘bool sendLink(int32_t, int)’: linklib.h:281:17: error: call to ‘MPI_Type_extent’ declared with attribute error: MPI_Type_extent was removed in MPI-3.0. Use MPI_Type_get_extent instead. 281 | MPI_Type_extent(MPI_LONG, &extent); | ~~~^~~~~~~ linklib.h:286:17: error: call to ‘MPI_Type_struct’ declared with attribute error: MPI_Type_struct was removed in MPI-3.0. Use MPI_Type_create_struct instead. 286 | MPI_Type_struct(2,blockcounts,offsets,oldtypes,&PointType); | ~~~^~~~~~~~~~~ linklib.h: In function ‘bool recvLink(int)’: linklib.h:349:17: error: call to ‘MPI_Type_extent’ declared with attribute error: MPI_Type_extent was removed in MPI-3.0. Use MPI_Type_get_extent instead. 349 | MPI_Type_extent(MPI_LONG, &extent); | ~~~^~~~~~~ linklib.h:354:17: error: call to ‘MPI_Type_struct’ declared with attribute error: MPI_Type_struct was removed in MPI-3.0. Use MPI_Type_create_struct instead. 354 | MPI_Type_struct(2,blockcounts,offsets,oldtypes,&PointType); | ~~~^~~~~~~~~~~ make: *** [makefile:218: streamnet.o] Error 1

dtarb commented 2 years ago

No one has patched it, so if you are willing to do this in a fork and make a pull request against that, I would appreciate it.