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

Polishment #11

Closed
13 of 18 tasks
hyschive opened this issue Jul 3, 2021 · 0 comments · Fixed by #46
Closed
13 of 18 tasks

Polishment #11

hyschive opened this issue Jul 3, 2021 · 0 comments · Fixed by #46
Assignees
Labels
enhancement New feature or request pri-low Priority: low

Comments

@hyschive
Copy link
Contributor

hyschive commented Jul 3, 2021

Tasks

  • Validate hierarchy: similar to _validate_parent_children_relasionship in yt/frontends/gamer/data_structures.py but make it more general
    • Probably embed it in yt_check_grid
    • The grid id should be in range 0 ~ num_grids - 1
    • Root level starts at 0.
    • If there is no parent grid, parent grid id should set to -1.
  • Communicate between libyt frontend and simulation frontends
    • Already support loading fields from a simulation frontend
    • Used option: Load all key-value pair in libyt.param_user dictionary to class libytDataset.
  • Support dimensionality < 3
  • MPI can’t transfer array length bigger than int , so libyt abort when long num_grids exceed size of int
  • Update the check at edge when periodic condition. periodic[3] and grid_left_edge[3] and grid_right_edge[3] ( Test GAMER #5 )
  • yt inline python script
  • Rename confusing function names in yt_get_gridsPtr and yt_add_grids . Change yt_add_grids to yt_commit_grids
  • Determine API procedure
    • Option 1 (now): yt_get_gridsPtr -> yt_commit_grids() -> yt_inline -> yt_free_grids()
    • Option 2: Call yt_add_grid() num_grids_local times ->yt_inline
  • Input called python function name in every round of inline-analyze
  • User should input different fig_basename, otherwise they will be over-written. Solution: Append number of calls to inline script at the end of the fig_basename.
  • Do inline-analysis other than yt_inline_ProjectionPlot(). Make it can perform input parameter to function like yt_inline_ProjectionPlot(a,b,c) ...etc.
  • Support yt_add_user_parameter_* can add type other than scalar or a 3-dim vector.
  • Check the python reference counting

Polishment and Optimization

  • Set MPI root rank, for now, it's fixed to rank0.
  • Error message format
  • Names for input parameter, some might be a little bit confusing
    • Change data_dim to data_dimensions.
  • Name of the libyt API
@hyschive hyschive added enhancement New feature or request pri-low Priority: low labels Jul 3, 2021
@cindytsai cindytsai linked a pull request Jan 22, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pri-low Priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants