Skip to content

tutorial_diffusion: SmagDiff example not working #1665

@JessCG

Description

@JessCG

Parcels version

3.0.4

Description

When attempting to run the second example of the tutorial on diffusion (Smagorinsky method) in parcels_tutorial v3.0.4-136-gfcb5c96, I encounter the following error after the cell defining DeleteParticle:

NotImplementedError: Cannot convert 'parcels' used in kernel to C-code

I am using Python 3.12.5 and Parcels 3.0.4 on a Mac, and have tried the different suggestions provided in the installation instructions to solve compilation errors without luck. I also tried running the tutorial example on another Mac with Python 3.12.0 and Parcels 3.0.0 without success.

Using parcels_tutorial v3.0.0-19-g67d3931, I am able to run the full tutorial on the two setups described above.

Unless there is a known bug in the parcels_tutorial v3.0.0, I can use that version of the tutorial, so I have not investigated further.

Code sample

# Paste your code within this block
# Paste your error message within this block

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions