WPS v3.9 > ungrib.exe cannot be compiled

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

WPS v3.9 > ungrib.exe cannot be compiled

Postby y_okada » Fri Jun 02, 2017 3:51 am

```
CentOS 6.8 (64bit)
gcc version 4.4.7 (and gfortran)
NCAR Command Language Version 6.3.0
```

I was using WPS v3.7.1 and WRF v3.7.1.
I am tyring to install WPS v3.9 on the same environment.

When I try to compile "ungrib.exe", there is an error related to NAMELIST in [read_namelist.f90]:

Code: Select all
**** Compiling ungrib ****
 
( cd src/ngl ; make -i -r DEV_TOP="/home/y_okada/WPS" CC="gcc" FC="gfortran" RANLIB="ranlib " all )
make[1]: Entering directory `/home/y_okada/WPS/ungrib/src/ngl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/y_okada/WPS/ungrib/src/ngl'
( cd src ; \
        if [ "" = yes ] ; then \
          WRF_DIR2=../WRFV3 ; \
        else \
          WRF_DIR2=/home/y_okada/WPS/../WRFV3 ; \
        fi ; \
   make -i -r ungrib.exe \
      WRF_DIR="$WRF_DIR2" \
      FC="gfortran" \
      CC="mpicc" \
      CPP="/usr/bin/cpp -P -traditional" \
      FFLAGS="-I/usr/lib64/gfortran/modules/ -ffree-form -O -fconvert=big-endian -frecord-marker=4" \
      CFLAGS="" \
      LDFLAGS="" \
      CPPFLAGS="-D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB" )
make[1]: Entering directory `/home/y_okada/WPS/ungrib/src'
Makefile:90: warning: overriding commands for target `.F.o'
../../configure.wps:104: warning: ignoring old commands for target `.F.o'
Makefile:95: warning: overriding commands for target `.c.o'
../../configure.wps:96: warning: ignoring old commands for target `.c.o'
/usr/bin/cpp -P -traditional -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DBIT32 -DNO_SIGNAL -D_MPI -D_UNGRIB -DUSE_JPEG2000 -DUSE_PNG read_namelist.F > read_namelist.f90
gfortran -c -I/usr/lib64/gfortran/modules/ -ffree-form -O -fconvert=big-endian -frecord-marker=4 read_namelist.f90
read_namelist.f90:72.25:

       add_lvls, new_plvl, interp_type
                         1
Error: NAMELIST attribute conflicts with ALLOCATABLE attribute in 'new_plvl' at (1)
read_namelist.f90:238.20:


This error is caused by the Fortran 2003 style.
So I tried with -std=f2003 option with gfortran. But it didn't work.

I also tried with gfortran v4.9 without success.
y_okada
 
Posts: 2
Joined: Fri Jun 02, 2017 3:45 am

Re: WPS v3.9 > ungrib.exe cannot be compiled

Postby y_okada » Tue Jun 06, 2017 2:31 am

I found that the problem is caused by the bug in the gfortran v4.4.7.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43062
y_okada
 
Posts: 2
Joined: Fri Jun 02, 2017 3:45 am

Re: WPS v3.9 > ungrib.exe cannot be compiled

Postby mfelix » Thu Jul 27, 2017 12:01 pm

Did you find a solution for this?
mfelix
 
Posts: 10
Joined: Wed Jun 11, 2014 1:28 pm


Return to Installation

Who is online

Users browsing this forum: No registered users and 3 guests