-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improper use of pointers in the code #177
Comments
The following would be a possible yambo patch
|
Hi Davide, Last year I was looking in the fortran standard manual (when writing the ydiago part in yambo), As far as I remember, Original code and Option 2 are same. and Option-1 and 3 are not valid (I doubt if they even compile). Do you see any compiler error for the code? Edit: Here is part in the FORTRAN-2003 standard: Option-3 is allowed with the following change |
Thanks Murali. The Cineca team got errors with the original code and suggested option 2 in X_redux. Maybe it's an nvfortran issue. I'll look into the manual. Please notice, however, that here we are discussing pointers mapping, not data transfer between variables, e.g. the pointers are not allocated here. |
Hi Davide, We have encountered issues with the original code in
In this way everything works properly. |
Yeah. This was clear from the discussion. Just I'd like to understand if this was a yambo error or a compiler bug, to decide if we need to change other points in the code or not. For the fortran documentation
this is valid, so I tend to think it is an nvfortran issue. |
Hi @so07, Could you please post the compiler error message? Original syntax ( |
Issue spot by Cineca team
Following code is not correct
From my understanding, it should be one of this options
Is this true ? Any documentation where the original code is reported as not correct?
The text was updated successfully, but these errors were encountered: