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

Port InitRandom for pure SoA #3325

Merged
merged 4 commits into from
May 23, 2023

Conversation

atmyers
Copy link
Member

@atmyers atmyers commented May 23, 2023

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:

  • 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

@atmyers atmyers requested a review from ax3l May 23, 2023 02:05
Copy link

@github-advanced-security github-advanced-security bot left a 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.

@ax3l ax3l mentioned this pull request May 23, 2023
9 tasks
@ax3l ax3l self-assigned this May 23, 2023
Copy link
Member

@ax3l ax3l 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! :)

}

// Add some particles
constexpr int NStructReal = 4;

Check notice

Code scanning / CodeQL

Unused local variable

Variable NStructReal is not used.

// Add some particles
constexpr int NStructReal = 4;
constexpr int NStructInt = 1;

Check notice

Code scanning / CodeQL

Unused local variable

Variable NStructInt is not used.
// Add some particles
constexpr int NStructReal = 4;
constexpr int NStructInt = 1;
constexpr int NArrayReal = 8;

Check notice

Code scanning / CodeQL

Unused local variable

Variable NArrayReal is not used.
constexpr int NStructReal = 4;
constexpr int NStructInt = 1;
constexpr int NArrayReal = 8;
constexpr int NArrayInt = 3;

Check notice

Code scanning / CodeQL

Unused local variable

Variable NArrayInt is not used.
}

// Add some particles
constexpr int NReal = 12;

Check notice

Code scanning / CodeQL

Unused local variable

Variable NReal is not used.

// Add some particles
constexpr int NReal = 12;
constexpr int NInt = 4;

Check notice

Code scanning / CodeQL

Unused local variable

Variable NInt is not used.
@atmyers atmyers enabled auto-merge (squash) May 23, 2023 03:41
@atmyers atmyers merged commit 4167cbe into AMReX-Codes:development May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants