-
Notifications
You must be signed in to change notification settings - Fork 168
Vectorized kernels in Parcels #2122
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
Merged
Merged
Changes from 61 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
fe5d894
First attempt to vectorize kernel loop
erikvansebille 867662b
Adding radial rotation flow
erikvansebille bce90d5
Fixing kernel statement
erikvansebille aa42ac2
Make Parcels vectorized for simple kernels
erikvansebille f6097eb
Support for Field[particle] evaluation
erikvansebille 926af77
Making XBiLinear also work on time-evolving fields
erikvansebille c975c2a
Fixing unit tests for vectorized kernels
erikvansebille 809eb78
Fixing more unit tests for vectorised kernels
erikvansebille 2ec28da
Fix diffusion tests for vectorized kernel
erikvansebille 5e536f7
merge v4-dev
erikvansebille 088c2cb
fixing more unit tests for vectorized kernels
erikvansebille cb702e1
Update search to handle array of lat,lon
fluidnumerics-joe bac89b6
Merge branch 'vectorized-kernel' of github.com:OceanParcels/Parcels i…
fluidnumerics-joe eeff3ad
Fixing setattr on particleset level
erikvansebille b87691d
Fixing last failing tests in vectorized kernels
erikvansebille 613f873
Fixing import in uxgrid to use right file
erikvansebille 88c7388
clean up kernel loop
erikvansebille 6c4acc0
Setting default interpolators on Fields
erikvansebille cac1f17
simplifying vectorized XLinear interpolation function
erikvansebille a775671
Small speedup in _search_1d_array
erikvansebille dae70fb
improving XLinear by using only 1 isel call
erikvansebille a0c0573
Further improving XLinear Interpolaiton
erikvansebille 21d7c73
Further speeding up access pattern creation in XLinear
erikvansebille 587bc6e
speeding up XLinear by reducing clipping operation
erikvansebille dd9bfd2
Calling dask.compute() at end of XInterpolation
erikvansebille 92c3d82
Fixing bug in creation of xi and yi indices
erikvansebille 9bd07f7
Fixing vectorized kernels from running particles that start after end…
erikvansebille 067d082
Fixing xi and yi calculations
erikvansebille 9cd1d8e
Using numpy for field indexing (instead of slower xarray.isel)
erikvansebille 26ec76f
Reducing number of support variables
erikvansebille ded4ebd
Reverting back to xarray.isel, as dask only works this way(?)
erikvansebille a55db91
Another fix to interpolation xi vector generation
erikvansebille 4c89533
Extending tests in test_particleset_execute also to more particles
erikvansebille 95f0726
Fixing bug in reshaping of corner_data in XLinear
erikvansebille e0faea6
Fix to how zi array is compiled in XLinear
erikvansebille c9dc0bd
Merge branch 'v4-dev' into vectorized-kernel
erikvansebille ec03f53
Merge branch 'v4-dev' into vectorized-kernel
erikvansebille 408bcf6
Clarifying docstring in XLinear interpolation
erikvansebille db776fb
fixing merge conflict errors
erikvansebille a8e4e68
fix CLinear interpolation for grids without depth or time dimension
erikvansebille d4b1adc
Quick clean-up of RK45 in vectorized kernels
erikvansebille dd9ccee
Merge branch 'v4-dev' into vectorized-kernel
erikvansebille 9ee900e
fixing merge issues
erikvansebille 354b9be
Changing time_interval.__contains__ to is_all_time_in_interval()
erikvansebille d6677b2
Renaming test function to be more explicit
erikvansebille 535371a
Expanding unit test to make its function clearer
erikvansebille d0e6573
Adding vectorised tests for _search_1d_array
erikvansebille f375db0
vectorized version of _search_indices_curvilinear_2d
erikvansebille af9aee0
Fixing RK45 for vectorized kernels
erikvansebille 4c51124
Fixing breaking test now that _search_inidces_curvilinear_2d expects …
erikvansebille 9335ddb
Using particle.time in the advection kernels
erikvansebille 04946b7
Fix unit test
erikvansebille bee5464
Cleaning up kernel loop
erikvansebille 7c6b21d
Adding KernelParticle getitem
erikvansebille a2feb9e
Fixing advection unit tests
erikvansebille 654ae1a
Fixing xgrid unit test
erikvansebille 316f15e
Fixing particleset_execution unit tests
erikvansebille 9652bf7
Adding and extending unit tests on particle errors
erikvansebille 081753d
merge commit
erikvansebille 4c90bbc
Cleaning up Kernel for RK45
erikvansebille 161ad9c
updating advection tests for faster runtime
erikvansebille 558b466
Update parcels/_core/utils/time.py
erikvansebille d4fdc01
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5d2bf9a
Reverting that key in eval can be a ParticleSet
erikvansebille File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.