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

Huge running memory usage of MedialGenerator3d #270

Closed
YT610 opened this issue Mar 26, 2024 · 0 comments
Closed

Huge running memory usage of MedialGenerator3d #270

YT610 opened this issue Mar 26, 2024 · 0 comments

Comments

@YT610
Copy link

YT610 commented Mar 26, 2024

Dear spheral,

I'm confused by the huge runtime memory footprint when using MediaGenerator3d to create particle distributions given seedPositions. When the number of particles is 500,000, the running memory usage will reach an astonishing 110GB, and the memory will not be automatically released after the particle distribution is created. I tried to optimize but failed, here is that part of the program:

generator2= MedialGenerator3d(n = GivenNumber,
rho = rho02,
boundary = boundaryShape2, # the boundary of generator
centroidFrac = 0.1, # limit of distribute about joint of surfaces
maxIterations = 1,
fracTol = 1.0e-3,
seedPositions=GivenPositions,
nNodePerh = nPerh)
distribute.append((nodes2, generator2))

@YT610 YT610 closed this as completed May 30, 2024
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

No branches or pull requests

1 participant