Hello everyone,
I want to set up the executable file for PREP-CHEM-SRC (prep_chem_sources_RADM_WRF_FIM.exe) to prepare the chemistry input files for running WRF-Chem. For that, I have downloaded the tar.gz file 'prep_chem_sources_v1.5_24aug2015.tar.gz' from the WRF-Chem ftp site (ftp://aftp.fsl.noaa.gov/divisions/taq/global_emissions) as instructed in the WRF-Chem user's guide. After untaring the tar file, I change directories to the bin/build directory by giving the following command:
cd bin/build
And, after making necessary changes to the path in 'include.mk.gfortran' file, I gave the following command,
make OPT=gfortran.wrf CHEM=RADM_WRF_FIM
But, I am getting some errors (a complete error file is also attached for your convenience) in compiling the prep_chem_sources code:
use netcdf
1
Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory
make: *** [gocart_background.o] Error 1
Also, if you look at the error file attached, you will see:
Warning: Nonexistent include directory "/scratchin/grupos/catt-brams/shared/libs/gfortran/netcdf-4.1.3/include"
I believe the error is due to the fact that it cannot locate the netcdf directory. But if you see the attached file ('include.mk.gfortran'), I changed the directory as per my system. Then why is it coming? Can anyone tell me? I also have some confusions about the NCAR Graphics portion:
# NCAR Graphics.
#---------------------------------------------------------------
# If you are using a standard installation of NCAR Graphics, set:
# LOADER=ncargf90
# in the machine-dependent sections below
#LIBNCARG=
#---------------------------------------------------------------
# If you are using the NCAR dummy libraries...
#NCARG_DIR=$(BASE)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION) -lncarg_c-$(UTILS_VERSION) \
# -lncarg_gks-$(UTILS_VERSION)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION)
#LIBNCARG=$(BASE)/libncarg-$(UTILS_VERSION)-$(OPT).a
#---------------------------------------------------------------
# If you are using a real distribution of NCAR Graphics...
NCARG_DIR=/home/maslab-3/GNULIBNEW/NCLNCARG/lib
#LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -ldl
#---------------------------------------------------------------
How can I tell if I am using a real distribution of NCAR Graphics or dummy libraries? Is there any way to know that? I have checked that this file, 'ncl_ncarg-6.4.0-RHEL6.4_64bit_gnu447.tar.gz' is installed in my system. Then what should I use in the path? Is it necessary to set the path of LIBNCARG? If so, then what would be the correct command line to give in my case? Is it necessary to include "-L/usr/X11R6/lib -lX11 -ldl" in this line? Can anyone guide me in this regard? Any help on this would be greatly appreciated. Thank you.
With regards,
Ankan
I want to set up the executable file for PREP-CHEM-SRC (prep_chem_sources_RADM_WRF_FIM.exe) to prepare the chemistry input files for running WRF-Chem. For that, I have downloaded the tar.gz file 'prep_chem_sources_v1.5_24aug2015.tar.gz' from the WRF-Chem ftp site (ftp://aftp.fsl.noaa.gov/divisions/taq/global_emissions) as instructed in the WRF-Chem user's guide. After untaring the tar file, I change directories to the bin/build directory by giving the following command:
cd bin/build
And, after making necessary changes to the path in 'include.mk.gfortran' file, I gave the following command,
make OPT=gfortran.wrf CHEM=RADM_WRF_FIM
But, I am getting some errors (a complete error file is also attached for your convenience) in compiling the prep_chem_sources code:
use netcdf
1
Fatal Error: Can't open module file 'netcdf.mod' for reading at (1): No such file or directory
make: *** [gocart_background.o] Error 1
Also, if you look at the error file attached, you will see:
Warning: Nonexistent include directory "/scratchin/grupos/catt-brams/shared/libs/gfortran/netcdf-4.1.3/include"
I believe the error is due to the fact that it cannot locate the netcdf directory. But if you see the attached file ('include.mk.gfortran'), I changed the directory as per my system. Then why is it coming? Can anyone tell me? I also have some confusions about the NCAR Graphics portion:
# NCAR Graphics.
#---------------------------------------------------------------
# If you are using a standard installation of NCAR Graphics, set:
# LOADER=ncargf90
# in the machine-dependent sections below
#LIBNCARG=
#---------------------------------------------------------------
# If you are using the NCAR dummy libraries...
#NCARG_DIR=$(BASE)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION) -lncarg_c-$(UTILS_VERSION) \
# -lncarg_gks-$(UTILS_VERSION)
#LIBNCARG=-L$(NCARG_DIR) -lncarg-$(UTILS_VERSION)
#LIBNCARG=$(BASE)/libncarg-$(UTILS_VERSION)-$(OPT).a
#---------------------------------------------------------------
# If you are using a real distribution of NCAR Graphics...
NCARG_DIR=/home/maslab-3/GNULIBNEW/NCLNCARG/lib
#LIBNCARG=-L$(NCARG_DIR) -lncarg -lncarg_gks -lncarg_c -L/usr/X11R6/lib -lX11 -ldl
#---------------------------------------------------------------
How can I tell if I am using a real distribution of NCAR Graphics or dummy libraries? Is there any way to know that? I have checked that this file, 'ncl_ncarg-6.4.0-RHEL6.4_64bit_gnu447.tar.gz' is installed in my system. Then what should I use in the path? Is it necessary to set the path of LIBNCARG? If so, then what would be the correct command line to give in my case? Is it necessary to include "-L/usr/X11R6/lib -lX11 -ldl" in this line? Can anyone guide me in this regard? Any help on this would be greatly appreciated. Thank you.
With regards,
Ankan
Attachments
Last edited: