cd /path/to/swan tar -xvf swan-main.tar.gz cd swan-main
export CC=mpicc CXX=mpicxx FC=mpifort mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/path/to/swan/swan_install -DMPI=ON -DNETCDF=ON ../
make -j make install