p-costa / SNaC

A multi-block solver for massively parallel direct numerical simulations (DNS) of fluid flows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation failure with gnu compiler (in initmpi.f90)

nscapin opened this issue · comments

Hello @p-costa, just for your info. I tried to compile the master branch of SNaC and I couldn't since MPI_LONG in initmpi.f90 was not recognized from my GNU compiler. I just replaced with MPI_INTEGER and it works fine. Anyway, I thought it was worth mentioning.

Thank you, @nscapin!

The issue is that, for very large systems, MPI_INTEGER results in overflow. However, since this variable is not used in the calculation but only for logging purposes, it may be worth reverting or finding a more clever solution.

Perhaps the best solution is to use MPI_Type_match_size.

yes, it works for me! Thanks @p-costa.