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

Add environment variables to set verbosity levels on initialization #2425

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yaugenst
Copy link

@yaugenst yaugenst commented Mar 6, 2023

This PR closes #2421 by adding the following environment variables that meep checks for upon initialization:

  • MEEP_VERBOSITY_LEVEL: Verbosity level of verbosity.meep (default = 1).
  • MPB_VERBOSITY_LEVEL: Verbosity level of verbosity.mpb (default = 1).
  • MEEP_MPI_SILENCE_WORKERS: Whether non-master stdout should be overridden or not (default = true).

The defaults are set so that current behavior does not change.

The variable MEEP_MPI_SILENCE_WORKERS was not discussed in #2421 but I have found it very helpful while debugging in the past and thought it might go well with this PR.

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.

meep avoid uncessary outputs whe importing library
1 participant