Error in compiling read_wrf_nc

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

Error in compiling read_wrf_nc

Postby cxr » Fri Aug 05, 2016 2:41 pm

Hi,

I am trying to compile read_wrf_nc.f on a cluster that only has ifort. I first tried with the command in the header of read_wrf_nc.f for ifort, then modified it to the directory where netcdf is installed on the computer. In both cases, I get the following error. I would appreciate help with this, thanks.

ifort read_wrf_nc.f -L/usr/local/netcdf/4.1.1/netcdf-intel/lib -lnetcdf -lm -I/usr/local/netcdf/4.1.1/netcdf-intel/include -Mfree -o read_wrf_nc
ifort: command line warning #10006: ignoring unknown option '-Mfree'
: error #5149: Illegal character in statement label field [M]

: error #5149: Illegal character in statement label field [O]

: error #5149: Illegal character in statement label field [D]

: error #5149: Illegal character in statement label field [U]

: error #5149: Illegal character in statement label field [L]

: error #5118: First statement in file must not be continued

read_wrf_nc.f(187): error #5149: Illegal character in statement label field [T]
TYPE proj_info
--^
read_wrf_nc.f(187): error #5149: Illegal character in statement label field [Y]
TYPE proj_info
---^
read_wrf_nc.f(187): error #5149: Illegal character in statement label field [P]
TYPE proj_info
----^
read_wrf_nc.f(185): error #5192: Lead underscore not allowed
MODULE map_utils
----------^
read_wrf_nc.f(185): error #5082: Syntax error, found IDENTIFIER '_UTILSPROJ_INFO' when expecting one of: <END-OF-STATEMENT> ;
MODULE map_utils
----------^
read_wrf_nc.f(214): error #5149: Illegal character in statement label field [E]
END TYPE proj_info
--^
read_wrf_nc.f(214): error #5149: Illegal character in statement label field [N]
END TYPE proj_info
---^
read_wrf_nc.f(214): error #5149: Illegal character in statement label field [D]
END TYPE proj_info
----^
read_wrf_nc.f(216): error #5149: Illegal character in statement label field [C]
CONTAINS
-^
read_wrf_nc.f(216): error #5149: Illegal character in statement label field [O]
CONTAINS
--^
read_wrf_nc.f(216): error #5149: Illegal character in statement label field [N]
CONTAINS
---^
read_wrf_nc.f(216): error #5149: Illegal character in statement label field [T]
CONTAINS
----^
read_wrf_nc.f(219): error #5149: Illegal character in statement label field [S]
SUBROUTINE latlon_to_ij(cdfid, proj, ts_ll, ts_xy )
---^
read_wrf_nc.f(219): error #5149: Illegal character in statement label field [U]
SUBROUTINE latlon_to_ij(cdfid, proj, ts_ll, ts_xy )
----^
read_wrf_nc.f(266): error #5149: Illegal character in statement label field [E]
END SUBROUTINE latlon_to_ij
---^
read_wrf_nc.f(266): error #5149: Illegal character in statement label field [N]
END SUBROUTINE latlon_to_ij
----^
read_wrf_nc.f(269): error #5149: Illegal character in statement label field [S]
SUBROUTINE llij_ps(lat,lon,proj,i,j)
---^
read_wrf_nc.f(269): error #5149: Illegal character in statement label field [U]
SUBROUTINE llij_ps(lat,lon,proj,i,j)
----^
(1988): catastrophic error: Too many errors, exiting
compilation aborted for read_wrf_nc.f (code 1)
cxr
 
Posts: 2
Joined: Fri Aug 05, 2016 2:02 pm

Re: Error in compiling read_wrf_nc

Postby JialiFeng » Tue Jun 26, 2018 11:32 am

Hi,

I had the same problem now. Did you solve this problem? Could you please help me?

Best regards,

Jiali
JialiFeng
 
Posts: 2
Joined: Tue Jun 26, 2018 11:15 am

Re: Error in compiling read_wrf_nc

Postby dcvz » Wed Jun 27, 2018 1:09 am

The cause of the problem is listed right there in the first post: "ignoring unknown option '-Mfree' "
-Mfree is not an ifort directive. Use -FR or -free.

The rest of the errors are typical of a free-format source code file being compiled with a fixed-format (default or optional) compiler.
dcvz
 
Posts: 176
Joined: Tue Apr 15, 2008 12:02 am


Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 13 guests