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

Clang format ldz electric field #857

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

ykempf
Copy link
Contributor

@ykempf ykempf commented Dec 5, 2023

No description provided.

@ykempf
Copy link
Contributor Author

ykempf commented Dec 5, 2023

So this works in principle, but we haven't settled on the style yet I guess.

@ursg
Copy link
Contributor

ursg commented Dec 5, 2023

I'm still pretty unhappy with the way it indents openmp pragmas, and there is currently no solution for it

@ykempf
Copy link
Contributor Author

ykempf commented Dec 5, 2023

Which one do you mean specifically? That inside ifdef it doesn't indent?

for (int j=0; j<gridDims[1]; j++) {
for (int i=0; i<gridDims[0]; i++) {
phiprof::Timer computeTimer{computeTimerID};
#pragma omp for collapse(2)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No you said openmp, so you don't like it pushing all pragmas to the beginning of the line?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. I much prefer them to be aligned with the loop they apply to.

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 this pull request may close these issues.

2 participants