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

ParticleInit: Implicit Int Float Conversion #3304

Merged
merged 2 commits into from
May 9, 2023

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented May 9, 2023

Summary

Fix ICX warning:

implicit conversion from 'int' to 'amrex::Real' (aka 'float') changes
value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]

Additional background

First seen in ECP-WarpX/impactx#318 during built of pyAMReX.

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

Fix ICX warning:
```
implicit conversion from 'int' to 'amrex::Real' (aka 'float') changes
value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
```
@atmyers atmyers merged commit 1e2154f into AMReX-Codes:development May 9, 2023
@ax3l ax3l deleted the fix-icx-float-conv branch May 16, 2023 00:51
guj pushed a commit to guj/amrex that referenced this pull request Jul 13, 2023
## Summary

Fix ICX warning:
```
implicit conversion from 'int' to 'amrex::Real' (aka 'float') changes
value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
```

## Additional background

First seen in ECP-WarpX/impactx#318 during built
of pyAMReX.

## Checklist

The proposed changes:
- [ ] fix a bug or incorrect behavior in AMReX
- [ ] add new capabilities to AMReX
- [ ] changes answers in the test suite to more than roundoff level
- [ ] are likely to significantly affect the results of downstream AMReX
users
- [ ] include documentation in the code and/or rst files, if appropriate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants