Skip to content
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

Inline if statements are not supported #31

Closed
johnmauff opened this issue Nov 24, 2021 · 2 comments · May be fixed by #29
Closed

Inline if statements are not supported #31

johnmauff opened this issue Nov 24, 2021 · 2 comments · May be fixed by #29
Assignees

Comments

@johnmauff
Copy link

The parser does not recognize the follow inlined if-statement:

if( tha(i,j,k).gt. 1.0 ) thrad = -1.0/(12.0*3600.0)

@domcharrier domcharrier self-assigned this Nov 25, 2021
@domcharrier
Copy link
Collaborator

domcharrier commented Nov 25, 2021

Would you mind to recheck with the develop-acc branch?
It appears that this issue was fixed here.

Here, the above single-line statement is correctly converted into the
following multiline statement:

if( tha(i,j,k).gt. 1.0 ) then
  thrad = -1.0/(12.0*3600.0)
endif

Link to the corresponding test:
https://github.com/ROCmSoftwarePlatform/gpufort/blob/develop-acc/python/test/linemapper/test.linemapper.linemapper.py

@domcharrier domcharrier linked a pull request Nov 25, 2021 that will close this issue
@johnmauff
Copy link
Author

Thank you for your suggestion. Use of the develop-acc branch did indeed resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants