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

Annotate Clumps Not Working in Odd MPI Size #39

Open
Tracked by #35
cindytsai opened this issue Nov 11, 2021 · 0 comments
Open
Tracked by #35

Annotate Clumps Not Working in Odd MPI Size #39

cindytsai opened this issue Nov 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request pri-low Priority: low

Comments

@cindytsai
Copy link
Collaborator

cindytsai commented Nov 11, 2021

Annotate Clumps Not Working in Odd MPI Size

  • Test Problem: gamer MHD Vortex
  • Inline Script:
    import numpy as np
    import yt
    from yt.data_objects.level_sets.api import Clump, find_clumps
    yt.enable_parallelism()
    def yt_inline():
        ds = yt.frontends.libyt.libytDataset()
        data_source = ds.all_data()
    
        c_min = 10 ** np.floor(np.log10(data_source[("gas", "density")]).min())
        c_max = 10 ** np.floor(np.log10(data_source[("gas", "density")]).max() + 1)
    
        master_clump = Clump(data_source, ("gas", "density"))
        master_clump.add_validator("min_cells", 20)
    
        find_clumps(master_clump, c_min, c_max, 2.0)
        leaf_clumps = master_clump.leaves
    
        prj = yt.ProjectionPlot(ds, "z", ("gamer","Dens"), center="c")
        prj.annotate_clumps(leaf_clumps)
    
        # Either having this is clause or not, it will still failed when MPI = 3.
        if yt.is_root():
            prj.save()
  • Description:
    • FAILED in MPI = 3, stuck at somewhere else, other than class IOHandlerlibyt.
    • SUCCEED in MPI = 1, and MPI = 4.
      • Just like the projection plot, because i didn't set a range that actually grab a clump.
        Fig000000001_Projection_z_Dens
@cindytsai cindytsai self-assigned this Nov 11, 2021
@cindytsai cindytsai added enhancement New feature or request pri-low Priority: low labels Nov 11, 2021
@cindytsai cindytsai added the bug Something isn't working label Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request pri-low Priority: low
Projects
None yet
Development

No branches or pull requests

1 participant