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

aspectdef getJoinpointsToChangeForLatVarOmp push multiple $pragmas sets undefined for next values #4

Open
msramalho opened this issue Oct 5, 2017 · 1 comment
Assignees
Labels

Comments

@msramalho
Copy link
Member

if this code in the aspectdef getJoinpointsToChangeForLatVarOmp

select pragma end
apply
    if(latvarOut.name == $pragma.name){
        latvarOut.pragmas.push($pragma);
        break;
    }
end

is changed to (notice the break), to insert multiple pragmas in the LatVarOmp.pragmas:

select pragma end
apply
    if(latvarOut.name == $pragma.name){
        latvarOut.pragmas.push($pragma);
    }
end

the value of the first item in latvarOut.pragmas is correct but, if there are more #pragmas in the source code with the same name, the value of the items in latvarOut.pragmas is undefined, except for the first one

@msramalho
Copy link
Member Author

This would be desirable to work because the user would be able to use the same pragma name and change it in multiple locations

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

No branches or pull requests

2 participants