CDAT / cdms

8 stars 10 forks source link

Fix mpi4py init #428

Closed jasonb5 closed 3 years ago

jasonb5 commented 3 years ago

Fixes #425

Adds environment variable CDMS_NO_MPI. If mpi4py is installed and the environment variable is set then cdms2 will not try and initialize MPI.

xylar commented 3 years ago

@jasonb5, could you give us an update on this work? It would be very helpful for the E3SM project (specifically to resolve a conflict between the E3SM_Diags and ILAMB packages) to have this flag available. Knowing when to expect a cdms2 release with this feature included would help us decide how to move forward.

jasonb5 commented 3 years ago

@xylar I'll take a look, I believe it was just the tests failing in the CI environment. I'll probably jusst add this as a patch to the conda-forge package since it doesn't change current behavior or the API.

xylar commented 3 years ago

@jasonb5, if that works for you, that would be wonderful for us!