Skip to content
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

GetPosition 2D3V: y=0 #2233

Merged
merged 1 commit into from
Aug 25, 2021
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Aug 25, 2021

In 2D3V, we currently assigned the y position a signaling NaN in GetPosition, so that it cannot be used accidentially in functions.

When we call parser functions, this value is copied even if it is not used, raising the signaling NaN: #2205

Rethinking the strategy, we can write more general inputs files if we instead write a sensible default for y in 2D3V: y=0. So this PR changes the default, which also fixes the issue.

In 2D3V, we currently assigned the y position a signaling NaN in
`GetPosition`, so that it cannot be used accidentially in functions.

When we call parser functions, this value is copied even if it is not
used, raising the signaling NaN.

Rethinking the strategy, we can write more general inputs files if
we instead write a sensible default for `y` in 2D3V: `y=0`. So this
PR changes the default, which also fixes the issue.
@ax3l ax3l added bug Something isn't working changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults bug: affects latest release Bug also exists in latest release version component: core Core WarpX functionality labels Aug 25, 2021
@ax3l ax3l requested review from atmyers and RemiLehe August 25, 2021 16:05
Copy link
Member

@EZoni EZoni left a comment

Choose a reason for hiding this comment

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

Thank you, Axel! Looks good to me!

@EZoni EZoni merged commit 7a3f23a into ECP-WarpX:development Aug 25, 2021
@ax3l ax3l deleted the topic-getPosition2D3Vy0 branch August 25, 2021 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: affects latest release Bug also exists in latest release version bug Something isn't working changes input scripts / defaults Changes the syntax or meaning of input scripts and/or defaults component: core Core WarpX functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants