netcdf
Installing NetCDF-Fortran using Intel oneAPI on Ubuntu 22.04 on WSL2
November 5, 2023: Installation environment is updated. Prerequisites It is assumed that Ubuntu 22.04LTS is installed on WSL2 on Windows 11 Pro; Intel oneAPI is installed as well. Referring to this article, libraries other than NetCDF-Fortran are easily installed with apt (compiled with GNU). How to compile NetCDF-C with Intel oneAPI is introduec here in Japanese, but it is time consuming. Install GNU libraries with apt HDF5 (referenced here) and GNU version of NetCDF-C (libnetcdf-dev) and NetCDF-Fortran (libnetcdff-dev, refer to here) are installed as follows. libnetcdff-dev should not be installed as building Intel version failed. $ sudo apt update $ sudo apt install hdf5-tools hdf5-helpers libhdf5-dev libhdf5-doc libhdf5-serial-dev $ sudo […]
Build Delft3D on Ubuntu 16.04 of WSL using GNU compiler
This post is a memorandum on building Delft3D on Ubuntu 16.04 of WSL on Windows 10 Pro. I tried to build Delft3D on Ubuntu 18.04 with Intel compiler, but it did not work, and thus following the information here, I built Delft3D on Ubuntu 16.04 with the GNU compiler. (Posted on June 12, 2019) Preparation First, set the Windows shared folder. Add the following to the end of ~/.bashrc so that you can access the Windows C drive as ~/winc. if [ -d winc ]; then echo "Windows shared folders ready" else ln -s /mnt/c winc fi In order to reflect the changed .bashrc , execute the following in your […]
Build netcdf-3.6.3-intel on ITO Subsystem-A
This is a memorandum building netcdf-3.6.3 with Intel compilers on Supercomputer ITO Subsystem-A at Kyushu University. The build of netcdf-4.1.2 does not work as found here. Obtaining source of netcdf-3.6.3 Updated on June 13, 2021: The source of netcdf-3.6.3.tar.gz cannot be downloaded now. Suppose you have it. Building netcdf-3.6.3 Create the following bash script of build_netcdf363.sh. #!/bin/bash # build_netcdf363.sh export CC=icc export CXX=icpc export CFLAGS=-O3 export CXXFLAGS=-O3 export F77=ifort export FC=ifort export F90=ifort export FFLAGS=-O3 export CPP='icc -E' export CXXCPP='icpc -E' tar xf netcdf-3.6.3.tar.gz cd netcdf-3.6.3 ./configure --prefix=/home/usr1/account/local/netcdf-3.6.3-intel make make check make install Adding an executable attribute and execute the script. chmod a+x build_netcdf363.sh ./build_netdf363.sh Done! If you use it […]