- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- Linux/netcdf for Linux へ行く。
- 1 (2014-08-05 (火) 21:31:26)
- 2 (2014-08-06 (水) 00:16:54)
- 3 (2014-08-06 (水) 00:42:04)
- 4 (2014-08-06 (水) 08:53:18)
- 5 (2016-04-22 (金) 17:19:00)
- 6 (2016-04-23 (土) 11:14:09)
- 7 (2016-04-25 (月) 11:32:35)
- 8 (2020-07-04 (土) 14:39:11)
- 9 (2020-07-04 (土) 15:10:34)
- 10 (2020-07-04 (土) 15:10:34)
- 11 (2020-07-04 (土) 15:10:34)
- 12 (2020-07-07 (火) 21:41:57)
netcdfをLinuxにインストールする. netcdf-4.2.xより,CとFORTRANでファイルがわかれた.
前提条件 †
- Compiler
- Intel composer (C and Fortan)
- 各種libraryがインストール済み
- zlib, szip, jpeg, hdf5
インストール †
C †
- 環境設定
export CC=icc export CXX=icpc export FC=ifort export F77=ifort export F90=ifort
- 設定
./configure --prefix=/opt/netcdf4-ifort \ --disable-shared --enable-netcdf-4 --enable-dap
- コンパイル
make make check make install
FORTRAN †
- version
- 4.4はコンパイルできなかった. 4.2については以下のとおり
- 環境設定
export LDFLAGS="-lnetcdf -L/opt/netcdf4-ifort/lib -I/opt/netcdf4-ifort/include" export OPTIM="-O3 -xAVX -fma -mcmodel=large" export CC=icc export CXX=icpc export FC=ifort export F77=ifort export F90=ifort export CFLAGS=" ${OPTIM} ${LDFLAGS}" export CXXFLAGS=" ${OPTIM}" export FCFLAGS=" ${OPTIM}" export F77FLAGS=" ${OPTIM}" export F90FLAGS=" ${OPTIM}" export CPP='icc -E -mcmodel=large' export CXXCPP='icpc -E -mcmodel=large' export CPPFLAGS="-DNDEBUG -DpgiFortran ${LDFLAGS}"
- 設定
./configure --prefix=/opt/netcdf4-ifort --disable-shared
- コンパイル
make make check make install
アーカイブ
netcdf-3.6.X †
netcdf with Intel Fortran 10.0 for Linux †
- netcdf-3.6.Xをダウンロ−ドして展開.コンパイル×(libstdc+xx)
- netcdf-3.6.Xをダウンロ−ドして展開.
- 以下の環境を設定し,
setenv FC ifort setenv FC90 ifort setenv CC icc setenv CXX icpc setenv FFLAGS "-g -O2 -mp -recursive" setenv CFLAGS "-g -O" setenv CXXFLAGS "-g" setenv CPPFLAGS "-DpgiFortran"
- ./configure --prefix=/usr/local/netcdf-ifort_10.0
- make check
- mkdir /usr/local/netcdf-ifort
- make install
- インストール後の環境設定
setenv NETCDF /usr/local/netcdf-ifort setenv NCHOME $NETCDF setenv NETCDFHOME $NETCDF setenv NETCDF_LIBDIR $NETCDF/lib setenv NETCDF_INCDIR $NETCDF/include setenv PATH $NETCDF/bin:"$PATH" setenv LD_LIBRARY_PATH $NETCDF/lib:"$LD_LIBRARY_PATH"
Archive †
- netcdf/netcdf with Intel Fortran for Linux - 9.0
- netcdf/netcdf with Intel Fortran for Linux - 8.0
- netcdf/netcdf with Intel Fortran for Linux - 7.0