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

Solver crashes during initialization when particle # above certain threshold #97

Open
stephendkang opened this issue Apr 10, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@stephendkang
Copy link
Collaborator

The solver crashes when too many particles are put into the system. To replicate this problem, one can construct the simplest possible simulation (e.g. Nvol_c = 1, Nvol_s = 0, Nvol_a = 0, type = homog) and increase the particle number to "Npart_c = 3000." The program crashes while displaying "0% ..ETA."

  • Changing DAESOLVER settings (MaxNumSteps, IterIC, StepsIC, MemoryIncrements, etc) does not seem to affect this threshold.

  • Physical memory resources of the machine seems unrelated to the problem. Memory usage can be made minimal but the initialization will still fail. (about 600 MB for 2500 particles)

  • The threshold for crashing is platform dependent. On windows (daetools 1.9.0), the threshold is about 2453 (plus minus a few randomness each run) particles. On a linux machine the threshold seems to be above 4100, but eventually the same problem happens. This is possibly related to the C compiler used for these platforms rather than the platform itself.

  • Will probably have to debug daetools to find the exact reason.

@d-cogswell
Copy link
Collaborator

Has anyone tried to compile daetools with debug flags enabled? It would be interesting to know what is causing the segmentation fault.

@d-cogswell d-cogswell added the bug Something isn't working label Jan 12, 2023
@d-cogswell
Copy link
Collaborator

Here are config files to reproduce this issue:
SimExample.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants