-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type mismatch with gcc10 #15
Comments
Thanks. This is now fixed. If there are other issues let us know. The intention is to continue supporting the package as long as possible. |
I have now looked at the most recent commit and it still won't compile on gcc10. It complains at
For a successful build, I had to copy the routine In any case, the code compiles with |
Thanks for your report. It looks like using -fallow-argument-mismatch flag helps to compile the code. I will think about what else we can do, but as a minimum we can use this flag. |
I have tried to compile the 2.7.9 release using gcc10 and got a few errors related to type mismatch. The errors look like the following one and are mostly related to MPI calls:
Some googling indicates that this is due to a feature introduced in gcc10, which made it more strict regarding type compatibility (some other softwares experienced the same some time ago, see e.g. this link. I found two solutions. The quick and dirty way is to simply add the compilation flag
-fallow-argument-mismatch
, which will turn the error messages into warnings. The second, among other minor fixes, involves replacinginclude 'mpif.h'
inmodule.f90
byuse mpi
.Is there still interest in maintaining this version of p3dfft? If yes, I would be glad to discuss the problem and ways of fixing it.
The text was updated successfully, but these errors were encountered: