Segfault with "munmap_chunk(): invalid pointer" when using multiple groups per groupset in fixed-source problem #682
-
|
Hi everyone, I’m trying to use OpenSN to solve a fixed-source problem involving multiple groupsets, where each groupset contains four energy groups. However, as soon as the computation begins for groupset 0, I encounter the following error: It seems that the issue is related to AngularQuadrature. I tried reducing the number of angles, but I still got a similar error. Interestingly, I had previously tested the same case with only one group per groupset, and the simulation ran successfully without any issues. The only difference between the two runs is the number of groups included in each groupset. Below is the solver configuration section from my Python script: Does anyone have an idea what might be causing this segmentation fault? Could it be a bug or a limitation related to multi-group groupsets? Any guidance or suggestions would be greatly appreciated! Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
Is this with the latest version of the code? Can you send your input so that I can reproduce the problem? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! I'll see if I can reproduce the problem. I'll let you know what I find. |
Beta Was this translation helpful? Give feedback.
-
|
Are you running this with the console or with the Python module? |
Beta Was this translation helpful? Give feedback.
-
|
I'm able to run this successfully with the latest version of the code. I only tried the console app, so let me know if you're using the Python module. To run with the latest version, you'll need to change your quadrature object slightly: If you are using multiple groupsets, you probably need to adjust the convergence parameters for the across-groupset solver to get the correct answer. Without configuring the AGS solver, you will not converge the upscattering between groupsets. |
Beta Was this translation helpful? Give feedback.
-
|
I'll double check that I can run the problem with the Python module, but I'm confident it will work. There was a PR that was recently merged that fixed an issue with reflecting boundary conditions with multiple groupsets, and I suspect it resolved this issue. I'll wait to close this until I've tested the Python module. You are correct that we only support boundary conditions on the six axis-aligned faces. We do have plans to support arbitrary face-based boundary conditions, but we don't currently have anyone working on that capability. |
Beta Was this translation helpful? Give feedback.
I'm able to run this successfully with the latest version of the code. I only tried the console app, so let me know if you're using the Python module. To run with the latest version, you'll need to change your quadrature object slightly:
pquad = GLCProductQuadrature3DXYZ(n_polar=6, n_azimuthal=12, scattering_order=scat_order)If you are using multiple groupsets, you probably need to adjust the convergence parameters for the across-groupset solver to get the correct answer. Without configuring the AGS solver, you will not converge the upscattering between groupsets.