-
Notifications
You must be signed in to change notification settings - Fork 229
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
Functions on subdomains (WIP) #1380
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1380 +/- ##
==========================================
- Coverage 87.00% 86.75% -0.25%
==========================================
Files 188 188
Lines 27354 26257 -1097
Branches 3712 3740 +28
==========================================
- Hits 23799 22779 -1020
+ Misses 3126 3048 -78
- Partials 429 430 +1
Continue to review full report at Codecov.
|
@@ -349,28 +349,30 @@ def __init__(self): | |||
raise ValueError("SubDomain requires a `name`") | |||
self._dimensions = None | |||
|
|||
def __subdomain_finalize__(self, dimensions, shape, **kwargs): | |||
def __subdomain_finalize__(self, dimensions, shape, distributor=None, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure I like the new sd
terminology...
bd0f90e
to
980e8c4
Compare
…breaks things for now.
148577f
to
cb800dc
Compare
This PR adds the ability to define
Function
's onSubDomain
's, e.g.The shape of the
Data
allocated will then begrid.subdomains['middle'].shape
(orgrid.subdomains['middle'].shape_local
on each rank with MPI).NOTE: Submitting for testing. Lots of changes and refactoring are still required.