Skip to content

Particles with free surface hang #5594

@ryanstoner1

Description

@ryanstoner1

When running particles with a free surface.

Both I and @vaturino used to get the error message:

An error occurred in line <62> of file </work2/09184/rstoner1/stampede3/software/deal.II-v9.5.2/tmp/unpack/deal.II-v9.5.2/source/particles/property_pool.cc> in function
    void dealii::Particles::PropertyPool<2, 2>::clear() [dim = 2, spacedim = 2]
The violated condition was:
    n_open_handles == 0
Additional information:
    This property pool currently still holds 18 open handles to memory
    that was allocated via allocate_properties_array() but that has not
    been returned via deregister_particle().

This behavior changed after #5446 (not in 2.5). Afterwards ASPECT hangs after at least the second time step without an error message.

I.e. after

*** Timestep 1426:  t=6.88599e+06 years, dt=2456.18 years

For the previous error message I was able to run a debugger and trace the crash to
https://github.com/geodynamics/aspect/blob/162b878a925d86cd54ac0dab1fa7eba04091bcd3/source/simulator/core.cc#L610C8-L610C42

ASPECT tends to hang (or crash previously) after AMR, and if AMR is turned off completely then no hanging or crash occurs.

Even if I increase the maximum particles per cell, so that no particles are removed then the issue still appears. With no free surface the behavior is normal, and no hanging occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions