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

Parallelize collision loop #1

Open
darothen opened this issue Aug 12, 2015 · 0 comments
Open

Parallelize collision loop #1

darothen opened this issue Aug 12, 2015 · 0 comments

Comments

@darothen
Copy link
Owner

Currently, the main collision/coalescence loop (as Cythonized) is not parallelizable with prange because it

  1. references a list containing the Superdroplets, and
  2. references Superdoplet_t objects, which are C extension types and thus wrappers for PyObjects.

In order to parallelize the loop, pointers to the PyObjects could be used (discouraged by Cython developers). Instead, it might be a good idea to have a pre- and post-processing routine which extracts all the attributes of the list of Superdroplets, performs the collision/coalescence calculation on the pairs, and then re-packs as a list of Superdroplet objects. This is what will be necessary in the condensation routine in the parcel model, anyways, to play nice with the ODE solver.

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

1 participant