WRF CHEM Compile completenote SERVER
2014-09-10
###Reinstall due to GSI netcdf tested requirement###
- Compiled netcdf4.2.1.1 based on the [compile.wrf] but it didn’t generating nay netcdf.inc as needed by the wrf fortran code and so fails in netcdf gfortran testing stage.
- Another option is to use netcdf3.6.3, and it gets compiled and generated netcdf.inc, the codes used for compilations are,
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=-m64
export F77=gfortran
export FFLAGS=-m64
./configure –prefix=$DIR/netcdf36 make make install
with this netcdf version, wrfV4.3.1 and WPS4.3.1 working has to be tested 3. Installed other required libraries for WRF such libpng, zlib, jasper by debian package systems based on this, the commands executed was
sudo apt-get install libjasper-dev
sudo apt-get install libpng-dev
sudo apt-get install libnetcdf-dev
sudo apt-get install zlib1g-dev
and made sure that its PATH are /usr/lib
by typing installed package location by following commands
dpkg-query --show libpng12-dev
dpkg -L libpng12-dev
dpkg --get-selections | grep -v deinstall
whereis <package name>
Based on this, edited the file
sudo nano /etc/bash.bashrc
and added the following environment variablesexport NETCDF=/home/hoopoe/wrfchem341/test/netcdf36 export JASPERLIB=/usr/lib export JASPERINC=/usr/include export WRF_EM_CORE=1 export WRF_NMM_CORE=0 export WRF_CHEM=1 export WRF_KPP=0 export WRFIO_NCD_LARGE_FILE_SUPPORT=1
Then as per this enter into unzipped wrfV3 directory in which the chem folder is copied and started
./configure
, Though there is warning says that large NetCDF files are supported and enabled byexport WRFIO_NCD_LARGE_FILE_SUPPORT=1
, so it seems the bash file is not needed to refresh. Then made again./configure
and editedconfigure.wrf
file and line no. 127 fromCPP = /lib/cpp -C -P
toCPP = /lib/cpp -P
. But./compile
ends in error ofFatal Error: Can't open module file 'module_configure.mod' for reading at (1): No such file or directory
`.export WRFSRCROOT_DIR=/home/hoopoe/wrfchem341/test/WRFV3
export DIR=/home/hoopoe/wrfchem341/lib/Netcdf4.1.3libs
export PATH=/home/hoopoe/wrfchem341/lib/Netcdf4.1.3libs/mpich/bin:$PATH
- Error are of
Can’t open module file ‘module_configure.mod’ for reading at (1): No such file or directory