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

Disable tracer particles at run time #156

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

WeiqunZhang
Copy link
Member

There is a runtime parameter particles.do_nspc_particles for disabling particles. But it was not used everywhere. This commit fixes it.

There is a runtime parameter `particles.do_nspc_particles` for disabling
particles. But it was not used everywhere. This commit fixes it.
@@ -478,7 +478,9 @@ NavierStokes::initData ()
}

#ifdef AMREX_PARTICLES
initParticleData ();
if (do_nspc) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really need this if you've added if (!do_nspc) { return; } in NSB::initParticleData? I suppose it doesn't really matter though.

Copy link
Member Author

Choose a reason for hiding this comment

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

Right. It does not matter.

@WeiqunZhang WeiqunZhang merged commit 5e69c1c into AMReX-Fluids:development Mar 5, 2024
15 checks passed
@WeiqunZhang WeiqunZhang deleted the fix_do_nspc branch March 5, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compile with CustomFunc(Particles) in Debug Mode
2 participants