WRF benchmark install problem

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

WRF benchmark install problem

Postby steveb » Tue Oct 15, 2019 4:31 am

Hi,
I'm trying to compile WRFv3.0 for benchmarking from http://www2.mmm.ucar.edu/WG2bench/wrfv3 ... 617.tar.gz.

Environment has gnu compilers 7.3.0, openmpi 3.1.0 and hdf5 1.10.2. zlib 1.2.11, pnetcdf 1.12.0, netcdf-c 4.7.1 and netcdf-f 4.5.2 have built ok and the relevant environment variables are set. When I ran configure I picked "x86_64 Linux, gfortran compiler with gcc (dmpar)". The flags for compilers/mpi wrappers etc in configure.wrf look reasonable.

However when I run `./compile em_real` it looks like its trying to process a non-fortran file as fortran - the first error is:

Code: Select all
/lib/cpp -C -P  -traditional  -I. io_grib_share.F > io_grib_share.f90
gfortran  -I.  -w  -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    -I.     -c io_grib_share.f90
io_grib_share.f90:1:1:

 /* Copyright (C) 1991-2012 Free Software Foundation, Inc.
 1
Error: Invalid character in name at (1)
io_grib_share.f90:2:3:

    This file is part of the GNU C Library.
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:4:3:

    The GNU C Library is free software; you can redistribute it and/or
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:4:39:

    The GNU C Library is free software; you can redistribute it and/or

etc etc.

Any suggestions please? Can post more logs etc if useful.
steveb
 
Posts: 6
Joined: Mon Jun 17, 2019 4:32 am

Re: WRF benchmark install problem

Postby steveb » Wed Oct 16, 2019 11:36 am

So in case anyone else hits the same problem it was "fixed" by adding -cpp to the fortran flags. However gnu7 doesn't seem to build WRF3.0 at all - WRF3.9.1.1 will build with other modifications to the compiler flags but doesn't need -cpp.
steveb
 
Posts: 6
Joined: Mon Jun 17, 2019 4:32 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests