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

amrex::Finalize() w/ gc.collect() #83

Merged
merged 1 commit into from
Oct 17, 2022

Commits on Oct 17, 2022

  1. amrex::Finalize() w/ gc.collect()

    When calling `amrex.finalize()`, first call the Python
    garbage collector. This is purely a bandage to make
    usage like this easy:
    
    ```py
    import amrex
    
    amrex.initialize([])
    mfab = amrex.MultiFab( ... )
    del mfab
    amrex.finalize()
    ```
    
    Respect the Python standard guarantees without furhter headache,
    by running an explicit call to the garbage collector.
    
    Previously, this was only working with CPython, but alternative
    implementations like PyPy might delay the true free due to time
    based memory collection approaches.
    ax3l committed Oct 17, 2022
    Configuration menu
    Copy the full SHA
    eed1a87 View commit details
    Browse the repository at this point in the history