作者:哈哈不会玩NO1 | 来源:互联网 | 2023-10-09 23:42
LOVECLIM1.3fromscratchExampleofconfigurationCompiler:intelVersion12.0.4.191Build2
LOVECLIM1.3 from scratch
Example of configuration
Compiler: intel Version 12.0.4.191 Build 20110427
OS: linux 2.6.37.6-0.5 x86_64 GNU/Linux
Requires
- udunits (1.12.11)
CC=icc CFLAGS='-Df2cFortran -fPIC' ./configure --prefix=/opt/udunits
- hdf5 (latest)
FC=ifort F77=ifort CXX=icc CC=icc CPP='icpc -E' CXXCPP='icpc -E' CFLAGS='-Df2cFortran -fPIC' ./configure --prefix=/opt/hdf5 --enable-fortran --enable-cxx
- netcdf (4.1.3)
FC=ifort F77=ifort CXX=icc CC=icc CPP='icpc -E' CXXCPP='icpc -E' CFLAGS='-Df2cFortran -fPIC' CPPFLAGS="-I/opt/hdf5/include" LIBS="-L/opt/hdf5/lib64" ./configure --prefix=/opt/netcdf --enable-netcdf4
- udunits2 (latest)
FC=ifort F77=ifort CXX=icc CC=icc CPP='icpc -E' CXXCPP='icpc -E' CFLAGS='-Df2cFortran -fPIC' ./configure --prefix=/opt/udunits2
- lapack & blas (latest)
Use your package manager
- antlr (2.7.7)
Use your package manager(软件包管理器)
- nco (latest)
FC=ifort F77=ifort CXX=icc CC=icc CPP='icpc -E' CXXCPP='icpc -E' CFLAGS='-Df2cFortran -fPIC' CPPFLAGS="-I/opt/hdf5/include -I/opt/udunits2/include -I/opt/netcdf/include" LIBS="-L/opt/hdf5/lib64 -L/opt/udunits2/lib64 -L/opt/netcdf/lib64" NETCDF4_ROOT=/opt/netcdf UDUNITS2_PATH=/opt/udunits2 ./configure --prefix=/opt/nco
- cdo (latest)
FC=ifort F77=ifort CXX=icc CC=icc CPP='icpc -E' CXXCPP='icpc -E' CFLAGS='-Df2cFortran -fPIC' CPPFLAGS="-I/opt/hdf5/include -I/opt/udunits2/include" LIBS="-L/opt/hdf5/lib64 -L/opt/udunits2/lib64" ./configure --prefix=/opt/cdo --with-udunits2=/opt/udunits2 --with-hdf5=/opt/hdf5 --with-netcdf=/opt/netcdf
#############################################################################
Loveclim code
Changes to do (compiler's path and flags):
- TOOLS/Makefile - after adaptations, run make
- RUN/V1.3/tools/Makefile - after adaptations, run make
- RUN/V1.3/tools/atlas/Makefile - after adaptations, run make
- RUN/V1.3/expdir/ref/make.macros
For a quick test:
- Adapt RUN/V1.3/expdir/exp.param as you want
#############################################################################
以上是在Linux中运行的程序的readme中的主要部分,刚开始学习这些,我想请教一下,Rquires后面的udunits hdf5....这些都是需要自己上网找安装包下载吗,每一个下面的几行.....FC=ifort F77=ifort CXX=icc ........是什么用处?而且apack & blas (latest)下面的是Use your package manager,用管理包怎么用呢?我的系统装的是CentOS7.可能问的问题比较菜,但确实是刚开始学习的疑惑和一道坎,希望会这方面的大家给我解答一下,谢谢!
2 个解决方案