parcels icon indicating copy to clipboard operation
parcels copied to clipboard

Main code for Parcels (Probably A Really Computationally Efficient Lagrangian Simulator)

Results 110 parcels issues
Sort by recently updated
recently updated
newest added

In Python, modules, variables, and methods are marked as private by pre-pending an underscore. This is particularly useful for within classes to communicate what's part of the (stable) public API...

cleanup

@sruehs was encountering a bug with her simulation where the number of the particles in the output weren't the same as in the particle set. Turns out not all particles...

enhancement
discussion

Since Parcels v2, the order for Field interpolation has been (time, depth, lat, lon). However, under the hood, there are still multiple cases (especially in JIT-mode) where that order is...

coding/Python
coding/C
cleanup

We have some warnings along the lines of https://github.com/OceanParcels/Parcels/blob/5fff42c2ea4cc12d03df8c936dd391e251658c8f/parcels/field.py#L232-L238 Thoughts on just raising a ValueError instead? Its incorrect usage of the API, and I think explicitly failing would be nicer...

enhancement

In the Field constructor: https://github.com/OceanParcels/Parcels/blob/5fff42c2ea4cc12d03df8c936dd391e251658c8f/parcels/field.py#L106-L107 However the underlying behaviour looks to be a bit different. https://github.com/OceanParcels/Parcels/blob/5fff42c2ea4cc12d03df8c936dd391e251658c8f/parcels/field.py#L198 This leads to strange stuff like: ```py >>> field = Field("newfld", fieldset.U.data, lon=fieldset.U.lon, lat=fieldset.U.lat)...

cleanup

Lets make the following read only (so that users don't try to edit it expecting it to propagate to the grid https://github.com/OceanParcels/Parcels/blob/93cc635b82397a826e4e0869f2db4ecc7b3bfb19/parcels/field.py#L192-L197 cc: @sruehs

enhancement
coding/Python

### Parcels version 3.0.3 ### Description I encountered an error when running Parcels with b-SOSE (MITgcm) fields on Lorenz, which I have not seen before. It seems to be linked...

bug
coding/C
needs investigation

Early on in the design of Parcels (pre-v2), we decided to do most computations in float32. With the development of C-grid interpolation in v2, we required float64 accuracy to properly...

enhancement
coding/Python
coding/C

Following #1612, where we need to provide the `gridindexingtype` on the `CField` struct for technical reasons, it makes sense to also use it throughout the rest of the C-code. Hence,...

`parcels 3.0.4` When running on Windows, occasionally (without seeming to have changed any code) one can run into an `access violation` error. E.g., ``` INFO: Compiled GalapagosParticleAdvectionRK4SampleGalapagosAge ==> C:\Users\ADMINI~1\AppData\Local\Temp\parcels-tmp\b3cd2748cfdf0ad1ba5ba70184487415.dll ---------------------------------------------------------------------------...

help wanted
coding/C
needs investigation