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

Bug in multigrid agglomeration #276

Closed
talbring opened this issue May 19, 2016 · 4 comments
Closed

Bug in multigrid agglomeration #276

talbring opened this issue May 19, 2016 · 4 comments

Comments

@talbring
Copy link
Member

There seems to be a bug in the multigrid agglomeration. I came across this issue while running the parallel regression tests on a local machine. Here, everything was fine. On travis, however, the laminar flatplate case failed. So I ran the case several times and I noticed that the agglomeration rate changes randomly between

MG level: 3 -> CVs: 97. Agglomeration rate 1/3.28. CFL 3.02.

and

MG level: 3 -> CVs: 98. Agglomeration rate 1/3.24. CFL 3.03.

each time you run the case (sometimes you have to try it a lot of times to get the other result though). This of course also gives slightly different solutions.

For more information just check the most recent travis ci run at pull request #242 (https://travis-ci.org/su2code/SU2/jobs/131067620). Note that this bug also occurs on the develop branch.

I labeled this issue "priority" because it could potentially lead to other problems as well.

@economon
Copy link
Member

Thanks, Tim.

Did you check if this is related to the compiler or architecture, by any chance? I know that the partitions provided by ParMETIS change depending on the system (although they should be deterministic). In the past, compiler optimizations have led to non-deterministic behavior on some systems. Does it still occur with -O0 optimization?

We'll look into it too.

@LaSerpe
Copy link
Contributor

LaSerpe commented Oct 10, 2016

I run into the same issue in the last few days. Iooks to me that this behavior is related to the Parent_CV variable which is not initialized. I solved this issue by setting it to 0 in the CPoint constructor in dual_grid_structure.cpp. Could someone have a look into this and confirm this?

I opened a new issue earlier today, im closing it right now so we can keep working in this thread

@talbring
Copy link
Member Author

Hi Giulio, if you have solved this problem, could you open a pull request ?

@LaSerpe
Copy link
Contributor

LaSerpe commented Oct 11, 2016

Hi Tim, I just created a branch feature_agglomeration_bugfix.
I'll make some more tests and submit a pull request later.

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

No branches or pull requests

3 participants