Problem Configuring and Compiling WRF with gfortran compiler

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

Problem Configuring and Compiling WRF with gfortran compiler

Postby JamesB » Wed May 21, 2014 1:43 pm

Hello, I am new user trying to install version 3.6 of WRF on my Ubuntu OS. When I configure WRF, I get the following:

checking for perl5... no
checking for perl... found /usr/bin/perl (perl)
Will use NETCDF in dir: /home/james/Build_WRF/LIBRARIES/netcdf
PHDF5 not set in environment. Will configure WRF for use without.
$JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O...
------------------------------------------------------------------------
Please select from among the following supported platforms.

1. Linux x86_64 i486 i586 i686, PGI compiler with gcc (serial)
2. Linux x86_64 i486 i586 i686, PGI compiler with gcc (smpar)
3. Linux x86_64 i486 i586 i686, PGI compiler with gcc (dmpar)
4. Linux x86_64 i486 i586 i686, PGI compiler with gcc (dm+sm)
5. Linux x86_64, PGI compiler with pgcc, SGI MPT (serial)
6. Linux x86_64, PGI compiler with pgcc, SGI MPT (smpar)
7. Linux x86_64, PGI compiler with pgcc, SGI MPT (dmpar)
8. Linux x86_64, PGI compiler with pgcc, SGI MPT (dm+sm)
9. Linux x86_64, PGI accelerator compiler with gcc (serial)
10. Linux x86_64, PGI accelerator compiler with gcc (smpar)
11. Linux x86_64, PGI accelerator compiler with gcc (dmpar)
12. Linux x86_64, PGI accelerator compiler with gcc (dm+sm)
13. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial)
14. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar)
15. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar)
16. Linux x86_64 i486 i586 i686, ifort compiler with icc (dm+sm)
17. Linux x86_64 i486 i586 i686, Xeon Phi (MIC architecture) ifort compiler with icc (dm+sm)
18. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (serial)
19. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (smpar)
20. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (dmpar)
21. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (dm+sm)
22. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (serial)
23. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (smpar)
24. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (dmpar)
25. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (dm+sm)
26. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (serial)
27. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (smpar)
28. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (dmpar)
29. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (dm+sm)
30. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (serial)
31. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (dmpar)
32. x86_64 Linux, gfortran compiler with gcc (serial)
33. x86_64 Linux, gfortran compiler with gcc (smpar)
34. x86_64 Linux, gfortran compiler with gcc (dmpar)
35. x86_64 Linux, gfortran compiler with gcc (dm+sm)
36. Cray XT CLE/Linux x86_64, PGI compiler with gcc (serial)
37. Cray XT CLE/Linux x86_64, PGI compiler with gcc (smpar)
38. Cray XT CLE/Linux x86_64, PGI compiler with gcc (dmpar)
39. Cray XT CLE/Linux x86_64, PGI compiler with gcc (dm+sm)
40. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (serial)
41. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (smpar)
42. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (dmpar)
43. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (dm+sm)
44. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (serial)
45. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (smpar)
46. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (dmpar)
47. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (dm+sm)
48. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (serial)
49. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (smpar)
50. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (dmpar)
51. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (dm+sm)

Enter selection [1-51] : 32
------------------------------------------------------------------------
Compile for nesting? (0=no nesting, 1=basic, 2=preset moves, 3=vortex following) [default 0]: 1

Configuration successful. To build the model type compile .
------------------------------------------------------------------------
testing for MPI_Comm_f2c and MPI_Comm_c2f
MPI_Comm_f2c and MPI_Comm_c2f are not supported
testing for fseeko and fseeko64
fseeko64 is supported
------------------------------------------------------------------------

# Settings for x86_64 Linux, gfortran compiler with gcc (serial)
#
DMPARALLEL = 1
OMPCPP = # -D_OPENMP
OMP = # -fopenmp
OMPCC = # -fopenmp
SFC = gfortran
SCC = gcc
CCOMP = gcc
DM_FC = mpif90 -f90=$(SFC)
DM_CC = mpicc -cc=$(SCC)
FC = $(SFC)
CC = $(SCC) -DFSEEKO64_OK
LD = $(FC)
RWORDSIZE = $(NATIVE_RWORDSIZE)
PROMOTION = # -fdefault-real-8 # uncomment manually
ARCH_LOCAL = -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM
CFLAGS_LOCAL = -w -O3 -c
LDFLAGS_LOCAL =
CPLUSPLUSLIB =
ESMF_LDFLAG = $(CPLUSPLUSLIB)
FCOPTIM = -O2 -ftree-vectorize -funroll-loops
FCREDUCEDOPT = $(FCOPTIM)
FCNOOPT = -O0
FCDEBUG = # -g $(FCNOOPT) # -ggdb -fbacktrace -fbounds-check -ffpe-trap=invalid,zero,overflow
FORMAT_FIXED = -ffixed-form
FORMAT_FREE = -ffree-form -ffree-line-length-none
FCSUFFIX =
BYTESWAPIO = -fconvert=big-endian -frecord-marker=4
FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO)
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)
MODULE_SRCH_FLAG =
TRADFLAG = -traditional
CPP = /lib/cpp -P
AR = ar
ARFLAGS = ru
M4 = m4 -G
RANLIB = ranlib
CC_TOOLS = $(SCC)

###########################################################
######################
# POSTAMBLE

FGREP = fgrep -iq

ARCHFLAGS = $(COREDEFS) -DIWORDSIZE=$(IWORDSIZE) -DDWORDSIZE=$(DWORDSIZE) -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=$(LWORDSIZE) \
$(ARCH_LOCAL) \
$(DA_ARCHFLAGS) \
-DDM_PARALLEL \
-DSTUBMPI \
-DNETCDF \
\
\
\
\
\
\
\
\
-DUSE_ALLOCATABLES \
-DGRIB1 \
-DINTIO \
-DLIMIT_ARGS \
-DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) \
-DMAX_DOMAINS_F=$(MAX_DOMAINS) \
-DMAX_HISTORY=$(MAX_HISTORY) \
-DNMM_NEST=$(WRF_NMM_NEST)
CFLAGS = $(CFLAGS_LOCAL) -DDM_PARALLEL -DSTUBMPI \
-DMAX_HISTORY=$(MAX_HISTORY) -DNMM_CORE=$(WRF_NMM_CORE)
FCFLAGS = $(FCOPTIM) $(FCBASEOPTS)
ESMF_LIB_FLAGS =
# ESMF 5 -- these are defined in esmf.mk, included above
ESMF_IO_LIB = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time
ESMF_IO_LIB_EXT = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time
INCLUDE_MODULES = $(MODULE_SRCH_FLAG) \
$(ESMF_MOD_INC) $(ESMF_LIB_FLAGS) \
-I$(WRF_SRC_ROOT_DIR)/main \
-I$(WRF_SRC_ROOT_DIR)/external/io_netcdf \
-I$(WRF_SRC_ROOT_DIR)/external/io_int \
-I$(WRF_SRC_ROOT_DIR)/frame \
-I$(WRF_SRC_ROOT_DIR)/share \
-I$(WRF_SRC_ROOT_DIR)/phys \
-I$(WRF_SRC_ROOT_DIR)/chem -I$(WRF_SRC_ROOT_DIR)/inc \
-I$(NETCDFPATH)/include \

REGISTRY = Registry
CC_TOOLS_CFLAGS = -DNMM_CORE=$(WRF_NMM_CORE)

LIB_BUNDLED = \
$(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5/libfftpack.a \
$(WRF_SRC_ROOT_DIR)/external/io_grib1/libio_grib1.a \
$(WRF_SRC_ROOT_DIR)/external/io_grib_share/libio_grib_share.a \
$(WRF_SRC_ROOT_DIR)/external/io_int/libwrfio_int.a \
$(ESMF_IO_LIB) \
$(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a \
$(WRF_SRC_ROOT_DIR)/frame/module_internal_header_util.o \
$(WRF_SRC_ROOT_DIR)/frame/pack_utils.o

LIB_EXTERNAL = \
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/home/james/Build_WRF/LIBRARIES/netcdf/lib -lnetcdff -lnetcdf

LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL) $(LIB_WRF_HYDRO)
LDFLAGS = $(OMP) $(FCFLAGS) $(LDFLAGS_LOCAL)
ENVCOMPDEFS =
WRF_CHEM = 0
CPPFLAGS = $(ARCHFLAGS) $(ENVCOMPDEFS) -I$(LIBINCLUDE) $(TRADFLAG)
NETCDFPATH = /home/james/Build_WRF/LIBRARIES/netcdf
PNETCDFPATH =

bundled: io_only
external: io_only $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a gen_comms_rsllite module_dm_rsllite $(ESMF_TARGET)
io_only: esmf_time wrfio_nf \
wrf_ioapi_includes wrfio_grib_share wrfio_grib1 wrfio_int fftpack


######################
------------------------------------------------------------------------
Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
arch/configure_new.defaults
NetCDF users note:
This installation of NetCDF supports large file support. To enable large file
support in NetCDF, set the environment variable WRFIO_NCD_LARGE_FILE_SUPPORT
to 1 and run configure again. Set to any other value to avoid this message.


Testing for NetCDF, C and Fortran compiler

This installation of NetCDF is 64-bit
C compiler is 64-bit
Fortran compiler is 64-bit
It will build in 64-bit



************************** W A R N I N G ************************************

There are some Fortran 2003 features in WRF that your compiler does not recognize
The IEEE signaling call has been removed. That may not be enough.

*****************************************************************************

To configure WRF, I am using option 32, which is the gfortran compiler. The problem is with the warning at the end of this ouput. It says that there are some Fortran 2003 features in WRF that the gfortran compiler does not recognize. After this I went on and tried to compile WRF for a "real" case. After WRF was done compiling, I looked in the compile.log file. The log file is filled with many syntax errors. I believe that these syntax errors are being caused by the above mentioned warning. I believe that the gfortran compiler I have installed is the most updated version available, so I am not sure why it is having trouble reading the Fortran 2003 features that are in the source code of WRF. Should I be using a different compiler, or is there something else in the setup environment that I am missing? I should also note that the gfortran compiler is the only compiler listed in the platform options that is installed on my computer. Any input would be greatly appreciated.
JamesB
 
Posts: 5
Joined: Fri May 09, 2014 4:44 pm

Re: Problem Configuring and Compiling WRF with gfortran comp

Postby dcvz » Sat May 24, 2014 1:16 am

That's the downside of using a free compiler. I guess the WRF developers decided that 10 years was enough time for compiler vendors to adopt the 2003 fortran standard, but gfortran hasn't implemented all of it. See http://fortranwiki.org/fortran/show/Fortran+2003+status

I guess the choices are to go to an older version of WRF or purchase PGI or Ifort. In case it helps the decision, gfortran tends to produce slower executables than pgi or ifort.
dcvz
 
Posts: 148
Joined: Tue Apr 15, 2008 12:02 am

Re: Problem Configuring and Compiling WRF with gfortran comp

Postby mpalmer » Thu May 29, 2014 8:15 am

dcvz wrote:I guess the choices are to go to an older version of WRF or purchase PGI or Ifort. In case it helps the decision, gfortran tends to produce slower executables than pgi or ifort.


I can confirm that. Using my PGI compiler WRF is at about 2x faster than with gfortran.
Michael Palmer, M.Sc.
Predictive Analytics Researcher | Green Power Labs
www.greenpowerlabs.com
mpalmer
 
Posts: 54
Joined: Fri Aug 30, 2013 12:08 pm

Re: Problem Configuring and Compiling WRF with gfortran comp

Postby VolodymyrB » Tue Oct 13, 2015 2:47 pm

There are gfortran-4.9 module at Ubuntu, which supports fortran 2003 specification. Just create link from gfortran-4.9 to gfortran
Code: Select all
ln /usr/bin/gfortran-4.9 /usr/bin/gfortran
VolodymyrB
 
Posts: 1
Joined: Tue Oct 13, 2015 2:44 pm

Re: Problem Configuring and Compiling WRF with gfortran comp

Postby Jipson Johnson » Thu Aug 04, 2016 6:46 am

studentuser@ranjithoffice:~/Build_WRF/WRFV3$ ./configure
checking for perl5... no
checking for perl... found /usr/bin/perl (perl)
** WARNING: No path to NETCDF and environment variable NETCDF not set.
** would you like me to try to fix? [y]
y
Enter full path to NetCDF include directory on your system
/home/studentuser/Documents/WRF/Build_WRF/LIBRARIES/netcdf/include
Enter full path to NetCDF library directory on your system

invalid path: . Try again? [y]
y
Enter full path to NetCDF library directory on your system
/home/studentuser/Documents/WRF/Build_WRF/LIBRARIES/netcdf H
created new ./netcdf_links directory
total 4
lrwxrwxrwx 1 studentuser studentuser 66 2016-08-04 15:56 include -> /home/studentuser/Documents/WRF/Build_WRF/LIBRARIES/netcdf/include/
lrwxrwxrwx 1 studentuser studentuser 58 2016-08-04 15:56 lib -> /home/studentuser/Documents/WRF/Build_WRF/LIBRARIES/netcdf/
Will use NETCDF in dir: /home/studentuser/Documents/WRF/Build_WRF/WRFV3/netcdf_links
PHDF5 not set in environment. Will configure WRF for use without.
$JASPERLIB or $JASPERINC not found in environment, configuring to build without grib2 I/O...
------------------------------------------------------------------------
Please select from among the following supported platforms.

1. Linux x86_64 i486 i586 i686, PGI compiler with gcc (serial)
2. Linux x86_64 i486 i586 i686, PGI compiler with gcc (smpar)
3. Linux x86_64 i486 i586 i686, PGI compiler with gcc (dmpar)
4. Linux x86_64 i486 i586 i686, PGI compiler with gcc (dm+sm)
5. Linux x86_64, PGI compiler with pgcc, SGI MPT (serial)
6. Linux x86_64, PGI compiler with pgcc, SGI MPT (smpar)
7. Linux x86_64, PGI compiler with pgcc, SGI MPT (dmpar)
8. Linux x86_64, PGI compiler with pgcc, SGI MPT (dm+sm)
9. Linux x86_64, PGI accelerator compiler with gcc (serial)
10. Linux x86_64, PGI accelerator compiler with gcc (smpar)
11. Linux x86_64, PGI accelerator compiler with gcc (dmpar)
12. Linux x86_64, PGI accelerator compiler with gcc (dm+sm)
13. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial)
14. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar)
15. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar)
16. Linux x86_64 i486 i586 i686, ifort compiler with icc (dm+sm)
17. Linux x86_64 i486 i586 i686, Xeon Phi (MIC architecture) ifort compiler with icc (dm+sm)
18. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (serial)
19. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (smpar)
20. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (dmpar)
21. Linux x86_64 i486 i586 i686, Xeon (SNB with AVX mods) ifort compiler with icc (dm+sm)
22. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (serial)
23. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (smpar)
24. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (dmpar)
25. Linux x86_64 i486 i586 i686, ifort compiler with icc, SGI MPT (dm+sm)
26. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (serial)
27. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (smpar)
28. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (dmpar)
29. Linux x86_64 i486 i586 i686, ifort compiler with icc, IBM POE (dm+sm)
30. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (serial)
31. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (dmpar)
32. x86_64 Linux, gfortran compiler with gcc (serial)
33. x86_64 Linux, gfortran compiler with gcc (smpar)
34. x86_64 Linux, gfortran compiler with gcc (dmpar)
35. x86_64 Linux, gfortran compiler with gcc (dm+sm)
36. Linux x86_64 i486 i586 i686, xlf compiler with xlc (serial)
37. Linux x86_64 i486 i586 i686, xlf compiler with xlc (smpar)
38. Linux x86_64 i486 i586 i686, xlf compiler with xlc (dmpar)
39. Linux x86_64 i486 i586 i686, xlf compiler with xlc (dm+sm)
40. Cray XT CLE/Linux x86_64, PGI compiler with gcc (serial)
41. Cray XT CLE/Linux x86_64, PGI compiler with gcc (smpar)
42. Cray XT CLE/Linux x86_64, PGI compiler with gcc (dmpar)
43. Cray XT CLE/Linux x86_64, PGI compiler with gcc (dm+sm)
44. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (serial)
45. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (smpar)
46. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (dmpar)
47. Cray XE and XC30 CLE/Linux x86_64, Cray CCE compiler (dm+sm)
48. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (serial)
49. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (smpar)
50. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (dmpar)
51. Cray XC30 CLE/Linux x86_64, Xeon ifort compiler (dm+sm)
52. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (serial)
53. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (smpar)
54. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (dmpar)
55. Linux x86_64 i486 i586 i686, PGI compiler with pgcc (dm+sm)
56. Linux x86_64 i486 i586 i686, PGI compiler with gcc -f90= (serial)
57. Linux x86_64 i486 i586 i686, PGI compiler with gcc -f90= (smpar)
58. Linux x86_64 i486 i586 i686, PGI compiler with gcc -f90= (dmpar)
59. Linux x86_64 i486 i586 i686, PGI compiler with gcc -f90= (dm+sm)
60. Linux x86_64 i486 i586 i686, PGI compiler with pgcc -f90= (serial)
61. Linux x86_64 i486 i586 i686, PGI compiler with pgcc -f90= (smpar)
62. Linux x86_64 i486 i586 i686, PGI compiler with pgcc -f90= (dmpar)
63. Linux x86_64 i486 i586 i686, PGI compiler with pgcc -f90= (dm+sm)

Enter selection [1-63] : 34
------------------------------------------------------------------------
Compile for nesting? (1=basic, 2=preset moves, 3=vortex following) [default 1]: 1

Configuration successful. To build the model type compile .
------------------------------------------------------------------------
testing for MPI_Comm_f2c and MPI_Comm_c2f
MPI_Comm_f2c and MPI_Comm_c2f are not supported
testing for fseeko and fseeko64
fseeko64 is supported
------------------------------------------------------------------------

# Settings for x86_64 Linux, gfortran compiler with gcc (dmpar)
#
DMPARALLEL = 1
OMPCPP = # -D_OPENMP
OMP = # -fopenmp
OMPCC = # -fopenmp
SFC = gfortran
SCC = gcc
CCOMP = gcc
DM_FC = mpif90 -f90=$(SFC)
DM_CC = mpicc -cc=$(SCC)
FC = $(DM_FC)
CC = $(DM_CC) -DFSEEKO64_OK
LD = $(FC)
RWORDSIZE = $(NATIVE_RWORDSIZE)
PROMOTION = # -fdefault-real-8 # uncomment manually
ARCH_LOCAL = -DNONSTANDARD_SYSTEM_SUBR -DWRF_USE_CLM
CFLAGS_LOCAL = -w -O3 -c
LDFLAGS_LOCAL =
CPLUSPLUSLIB =
ESMF_LDFLAG = $(CPLUSPLUSLIB)
FCOPTIM = -O2 -ftree-vectorize -funroll-loops
FCREDUCEDOPT = $(FCOPTIM)
FCNOOPT = -O0
FCDEBUG = # -g $(FCNOOPT) # -ggdb -fbacktrace -fbounds-check -ffpe-trap=invalid,zero,overflow
FORMAT_FIXED = -ffixed-form
FORMAT_FREE = -ffree-form -ffree-line-length-none
FCSUFFIX =
BYTESWAPIO = -fconvert=big-endian -frecord-marker=4
FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO)
FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG)
MODULE_SRCH_FLAG =
TRADFLAG = -traditional
CPP = /lib/cpp -P
AR = ar
ARFLAGS = ru
M4 = m4 -G
RANLIB = ranlib
CC_TOOLS = $(SCC)

###########################################################
######################
# POSTAMBLE

FGREP = fgrep -iq

ARCHFLAGS = $(COREDEFS) -DIWORDSIZE=$(IWORDSIZE) -DDWORDSIZE=$(DWORDSIZE) -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=$(LWORDSIZE) \
$(ARCH_LOCAL) \
$(DA_ARCHFLAGS) \
-DDM_PARALLEL \
\
-DNETCDF \
\
\
\
\
\
\
\
\
-DUSE_ALLOCATABLES \
-DGRIB1 \
-DINTIO \
-DLIMIT_ARGS \
-DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) \
-DMAX_DOMAINS_F=$(MAX_DOMAINS) \
-DMAX_HISTORY=$(MAX_HISTORY) \
-DNMM_NEST=$(WRF_NMM_NEST)
CFLAGS = $(CFLAGS_LOCAL) -DDM_PARALLEL \
-DMAX_HISTORY=$(MAX_HISTORY) -DNMM_CORE=$(WRF_NMM_CORE)
FCFLAGS = $(FCOPTIM) $(FCBASEOPTS)
ESMF_LIB_FLAGS =
# ESMF 5 -- these are defined in esmf.mk, included above
ESMF_IO_LIB = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time
ESMF_IO_LIB_EXT = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time
INCLUDE_MODULES = $(MODULE_SRCH_FLAG) \
$(ESMF_MOD_INC) $(ESMF_LIB_FLAGS) \
-I$(WRF_SRC_ROOT_DIR)/main \
-I$(WRF_SRC_ROOT_DIR)/external/io_netcdf \
-I$(WRF_SRC_ROOT_DIR)/external/io_int \
-I$(WRF_SRC_ROOT_DIR)/frame \
-I$(WRF_SRC_ROOT_DIR)/share \
-I$(WRF_SRC_ROOT_DIR)/phys \
-I$(WRF_SRC_ROOT_DIR)/chem -I$(WRF_SRC_ROOT_DIR)/inc \
-I$(NETCDFPATH)/include \

REGISTRY = Registry
CC_TOOLS_CFLAGS = -DNMM_CORE=$(WRF_NMM_CORE)

LIB_BUNDLED = \
$(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5/libfftpack.a \
$(WRF_SRC_ROOT_DIR)/external/io_grib1/libio_grib1.a \
$(WRF_SRC_ROOT_DIR)/external/io_grib_share/libio_grib_share.a \
$(WRF_SRC_ROOT_DIR)/external/io_int/libwrfio_int.a \
$(ESMF_IO_LIB) \
$(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a \
$(WRF_SRC_ROOT_DIR)/frame/module_internal_header_util.o \
$(WRF_SRC_ROOT_DIR)/frame/pack_utils.o

LIB_EXTERNAL = \
-L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/home/studentuser/Documents/WRF/Build_WRF/WRFV3/netcdf_links/lib -lnetcdf

LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL) $(LIB_WRF_HYDRO)
LDFLAGS = $(OMP) $(FCFLAGS) $(LDFLAGS_LOCAL)
ENVCOMPDEFS =
WRF_CHEM = 0
CPPFLAGS = $(ARCHFLAGS) $(ENVCOMPDEFS) -I$(LIBINCLUDE) $(TRADFLAG)
NETCDFPATH = /home/studentuser/Documents/WRF/Build_WRF/WRFV3/netcdf_links
PNETCDFPATH =

bundled: io_only
external: io_only $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a gen_comms_rsllite module_dm_rsllite $(ESMF_TARGET)
io_only: esmf_time wrfio_nf \
wrf_ioapi_includes wrfio_grib_share wrfio_grib1 wrfio_int fftpack


######################
------------------------------------------------------------------------
Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
arch/configure_new.defaults
NetCDF users note:
This installation of NetCDF supports large file support. To enable large file
support in NetCDF, set the environment variable WRFIO_NCD_LARGE_FILE_SUPPORT
to 1 and run configure again. Set to any other value to avoid this message.



************************** W A R N I N G ************************************

There are some Fortran 2003 features in WRF that your compiler does not recognize
The IEEE signaling call has been removed. That may not be enough.

*****************************************************************************
this is the error I got.
and after the compilation of this ./compile case_name >& log.compile
i dint get wrf.exe, real.exe, ndown.exe
please anybody help me.
Jipson Johnson
 
Posts: 24
Joined: Thu Jan 08, 2015 2:15 pm

Re: Problem Configuring and Compiling WRF with gfortran comp

Postby nampq » Fri Aug 19, 2016 9:40 pm

Hi.

Install WRF is causing install your libraries not correct.
Maybe you install failed MPICH.
Please check your configuration.
This is the help to install MPICH without any problem. I hope helpful to you. :)
https://youtu.be/qB1LRT4nbXw
Nam P. Q.,
Researcher Weather and Climate, VN
Email: admin@vnweather.net
nampq
 
Posts: 7
Joined: Thu Nov 27, 2014 10:49 pm
Location: Vietnam


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests