[Wrf-users] pb compiling WRF with GRIB2 on x86_64 GNU/Linux with gfortran

Steven G Decker decker at envsci.rutgers.edu
Fri Oct 2 08:11:15 MDT 2009


wrf-users-request at ucar.edu wrote:
> 
> Message: 1 Date: Thu, 1 Oct 2009 16:06:39 +0200 From: "HEDDE Thierry"
> <thierry.hedde at cea.fr> Subject: [Wrf-users] pb compiling WRF with
> GRIB2 on x86_64 GNU/Linux with	gfortran To: <wrf-users at ucar.edu> 
> Message-ID: 
> <16FB087F7D7B114D9C3D34AF0ECCB16C01CFCD at TOURVES.intra.cea.fr> 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hello dear wrf users,
> 
> 
> 
> I've got an F90 syntax error while compiling WRF 3.1.1 with the grib2
> option on a x86_64 GNU/Linux machine using the gfortran compiler
> 
> 
> 
> It compiles OK with the ifort compiler.
> 
> It is a known error with gfortran : when you try to define an
> allocatable variable inside a TYPE definition.
> 
> I had a look at the io_grib2. file but it looks quite hard to modify
> in a simple way the fortran source to get rid of the error
> 
> 
> 
> Did anybody have the same problem and fixed it?
> 
> - Using another version of gfortran?

This would be the fix.  Your version of gfortran is too old.  It looks 
like gfortran 4.2 or newer should support allocatable derived type 
components.

-- Steve

-- 
Steve Decker, Assistant Professor
Department of Environmental Sciences    Phone: (732) 932-9800 x 6203
Rutgers University                               Fax: (732) 932-8644
14 College Farm Rd                  Email: decker at envsci.rutgers.edu
New Brunswick, NJ  08901-8551


More information about the Wrf-users mailing list