-
Notifications
You must be signed in to change notification settings - Fork 351
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
Port InitRandom for pure SoA #3325
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! :)
} | ||
|
||
// Add some particles | ||
constexpr int NStructReal = 4; |
Check notice
Code scanning / CodeQL
Unused local variable
|
||
// Add some particles | ||
constexpr int NStructReal = 4; | ||
constexpr int NStructInt = 1; |
Check notice
Code scanning / CodeQL
Unused local variable
// Add some particles | ||
constexpr int NStructReal = 4; | ||
constexpr int NStructInt = 1; | ||
constexpr int NArrayReal = 8; |
Check notice
Code scanning / CodeQL
Unused local variable
constexpr int NStructReal = 4; | ||
constexpr int NStructInt = 1; | ||
constexpr int NArrayReal = 8; | ||
constexpr int NArrayInt = 3; |
Check notice
Code scanning / CodeQL
Unused local variable
} | ||
|
||
// Add some particles | ||
constexpr int NReal = 12; |
Check notice
Code scanning / CodeQL
Unused local variable
|
||
// Add some particles | ||
constexpr int NReal = 12; | ||
constexpr int NInt = 4; |
Check notice
Code scanning / CodeQL
Unused local variable
This is useful for porting and testing other features, like Checkpoint / Restart. I've also added a test.
Follow-up to #2878.
The proposed changes: