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

Squash MPI warnings #629

Open
jkirk5 opened this issue Dec 11, 2024 · 1 comment
Open

Squash MPI warnings #629

jkirk5 opened this issue Dec 11, 2024 · 1 comment

Comments

@jkirk5
Copy link
Contributor

jkirk5 commented Dec 11, 2024

Desired capability or behavior.

When running Aviary, a warning related to importing MPI usually prints to the terminal:
/usr/share/miniconda/envs/test/lib/python3.12/site-packages/pyoptsparse/pyOpt_MPI.py:68: UserWarning: mpi4py could not be imported. mpi4py is required to use the parallel gradient analysis and parallel objective analysis for non-gradient based optimizers. Continuing using a dummy MPI module from pyOptSparse. warnings.warn(warn)

This is minorly annoying for running Aviary, but is adding unnecessary and confusing clutter to embedded code cells in docs. These errors should always be suppressed in the docs, and a way to suppress it for ordinary Aviary runs should also be implemented, possibly tied to Verbosity and suppression of other common warnings and printouts

Is your feature request related to a problem? Please describe.

No response

Associated Bug Report

No response

@xjjiang
Copy link
Contributor

xjjiang commented Dec 31, 2024

I did see this warning before. I just tried to run aviary run_mission small_single_aisle_GwGm.csv and python test_bench_FwFm.py. I didn't see it. Can you give a case when you see this warning?

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

No branches or pull requests

2 participants