Add the MPI path and LD_LIBRARY_PATH in the. Make a folder for openmpi installation, I did that in my home directory At this point, one can add netcdf libaries in their path by doing: Sudo apt-get install libnetcdf-dev libnetcdff-dev Sudo apt-get install gcc-8 gfortran-8 g++-8 It would help create images on cloud environments without complicating things. One advantage of the new version of ubuntu is that netcdf installation becomes straightforward with a single line of command and the installation required fewer steps than ubuntu 14.04 because there was no need to get zlib, hdf5.
COAWST requires 3 external software packages to be installed (Fortran/C compilers, netcdf and mpi). I recently had to reinstall ubuntu 18.04 after upgrading from ubuntu 14.04.