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

Easy data slicing #73

Open
reidrr opened this issue Feb 17, 2023 · 1 comment
Open

Easy data slicing #73

reidrr opened this issue Feb 17, 2023 · 1 comment

Comments

@reidrr
Copy link

reidrr commented Feb 17, 2023

I frequently want to write out only a small portion of the total pencil array to disk, often a 1D or 2D subsection that needs contributions from several workers. Possibly the planes y=15 and z = 0 for example. Is there currently an easy way to do this? What I have done so far has been to work out which workers have some of the needed data, get the data from each worker and reassemble it on rank = 0 before writing it to the disk.

I am hoping that I am missing an obvious way to do it with the existing methods as my efforts so far have been prone to bugs in the edge cases. All suggestions are much appreciated!

@jipolanco
Copy link
Owner

Hi, unfortunately right now there is no easy way to do this, simply because it has not yet been implemented. It would be great to have a slicing function in this package, even though right now I don't have a lot of time to work on this.

Can you share your attempts, in case I can provide some help? Maybe they can also serve as a basis for a potential implementation in this package.

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

2 participants