Skip to content

Resolved bug in the selection of particle's default z value when it is not provided by the user - #2781

Merged
erikvansebille merged 7 commits into
mainfrom
particleset-default-z
Aug 5, 2026
Merged

Resolved bug in the selection of particle's default z value when it is not provided by the user#2781
erikvansebille merged 7 commits into
mainfrom
particleset-default-z

Conversation

@wyatt-fluidnumerics

@wyatt-fluidnumerics wyatt-fluidnumerics commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Description

Previously the logic to initialize the depth level of particles when no depth was provided did not work as intended, and lead to the initialization of particles out of bounds. This fixes that by selected the depth level from the fields that is closest to zero.

Checklist

AI Disclosure

  • This PR contains AI-generated content.
    • I have tested any AI-generated content in my PR.
    • I take responsibility for any AI-generated content in my PR.
    • Describe how you used it (e.g., by pasting your prompt): Once I had written the new logic, I had Claude Code generate a few test cases.

@erikvansebille erikvansebille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good! I pushed an update to the docstring. I'll merge now

@erikvansebille
erikvansebille enabled auto-merge (squash) August 5, 2026 06:07
@erikvansebille
erikvansebille merged commit 37bca7c into main Aug 5, 2026
17 of 18 checks passed
@erikvansebille
erikvansebille deleted the particleset-default-z branch August 5, 2026 06:14
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Parcels development Aug 5, 2026
erikvansebille added a commit to erikvansebille/Parcels that referenced this pull request Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ParticleSet default initial z not set correctly (does not respect direction of depth axis)

2 participants