Gfortran -o prog prog.o -L/usr/lib/ -lnetcdf -lnetcdff Installation of nco using netCDF4 on ubuntu
#Install gfortran mp 9 mac install#
PYTHON_netCDF4-0.9.3$ sudo python setup.py install PYTHON_netCDF4-0.9.3$ sudo python setup.py clean (ou rm build/* -rf) configure -enable-netcdf-4 -with-hdf5=/usr/local -with-zlib=/usr/local -prefix=/usr/local -enable-shared configure -enable-hl -with-zlib=/usr/local -prefix=/usr/local -enable-shared !\ -enable-parallel could be necessary for openmpi /!\ Sudo apt-get install zlib1g zlib1g-dev zlib1g-dbg )Įxport FFLAGS='-fno-second-underscore -g -O2'Įxport F90FLAGS='-fno-second-underscore -g -O2'Įxport FCFLAGS='-fno-second-underscore -g -O2' Installation of ifort with parallel implementation
I removed "DIST", "MPI", and add "NC4", "SHRD" and "TRKNC".īe careful, the double dots must be AFTER the options (MAC specificity) This content has not been optimized, but it seems it contains the minimum required to compile. NC4 F90 NOGRB NOPA LRB4 NC4 SHRD TRKNC PR3 UQ FLX0 SEED ST4 STAB0 NL1 BT4 DB1 MLIM TR0 BS0 IC0 REF1 XX0 WNT2 WNX1 RWND CRT1 CRX1 TIDE O0 O1 O2 O2a O2b O2c O3 O4 O5 O6 O7 Ln -s /opt/local/bin/gfortran-mp-4.8 /opt/local/bin/gfortran
#Install gfortran mp 9 mac software#
To be sure, you can recompile netcdf but this may affect other software that uses netcdf libraries from macports.ġ) If you don't have it installed, install Macports ( )Ģ) and get the gfortran compiler with the macportsĤ) install netcdf-fortran with ports (to get the netcdf.mod module)ĥ) The gfortran was (should be) installed in /opt/local/bin/gfortran-mp-4.8. WARNING: If you already have macports and gcc and gfortran and netcdf libraries, be sure that you use the same compiler for WaveWatch III that you used for netcdf.
Info, libnetcdff.so is located in /usr/lib64/gfortran/modules/libnetcdff.so Sudo ln -s /usr/lib64/gfortran/modules/netcdf.mod /usr/include Sudo yum install netcdf-fortran-devel.x86_64 Sudo yum install gcc gcc-c++ gcc-gfortran NetCDF library installation installation of netcdf on ubuntu