CDAT / cdms

8 stars 10 forks source link

Fix disabling of mpi4py in cdms2.dataset #439

Closed xylar closed 3 years ago

xylar commented 3 years ago

For cdscan to work when MPI is disabled, we need to be able to call setNetcdfUseParallelFlag(0). Before this merge, this call attempted to raise an error but there was a typo in the error name (CDSMError instead of CDMSError), causing added confusion. We only want to raise an error if the code is attempting to enable parallel NetCDF usage but MPI is disabled.

jasonb5 commented 3 years ago

LGTM