pressel / pycles

A python based infrastructure for cloud large eddy simulation.
GNU General Public License v3.0
92 stars 69 forks source link

Use $NETCDF_HOME instead of harcoded paths on linux #44

Open lsterzinger opened 4 years ago

lsterzinger commented 4 years ago

I modified setup.py to look for the netcdf4 directory in the environment variable $NETCDF_HOME. If the environment variable does not exist, it will default back to the original hardcoded paths.

I did this for both the "Caltech" and "Linux" config sections, because when I configure pycles on my linux machines, they always use the "Caltech" config section because the check for that machine is pretty general ('x86_64' and 'LD_LIBRARY_PATH' are pretty general, and would exist on most compute clusters).