wrf-model / WPS

The official repository for the WRF Preprocessing System (WPS)
201 stars 158 forks source link

Error compiling with gfortran 10 #163

Open letmaik opened 3 years ago

letmaik commented 3 years ago

Same issue as in https://github.com/wrf-model/WRF/issues/1250.

2021-01-15T07:41:27.2436484Z gfortran  -ffree-form -O -fconvert=big-endian -frecord-marker=4 -c output_module.f90 -I/home/vsts/work/1/s/../WRF/external/io_netcdf -I/home/vsts/work/1/s/../WRF/external/io_grib_share -I/home/vsts/work/1/s/../WRF/external/io_grib1 -I/home/vsts/work/1/s/../WRF/external/io_int -I/home/vsts/work/1/s/../WRF/inc -I/home/vsts/work/1/s/netcdf/include
2021-01-15T07:41:27.2954031Z output_module.f90:1735:41:
2021-01-15T07:41:27.2955024Z 
2021-01-15T07:41:27.2955711Z  1735 |                                          var_value, &
2021-01-15T07:41:27.2956555Z       |                                         1
2021-01-15T07:41:27.2957208Z ......
2021-01-15T07:41:27.2957861Z  1763 |                                          var_value, &
2021-01-15T07:41:27.2958671Z       |                                         2
2021-01-15T07:41:27.2960372Z Error: Rank mismatch between actual argument at (1) and actual argument at (2) (rank-1 and scalar)
anikfal commented 3 years ago

@letmaik Could you work around this problem?

anikfal commented 3 years ago

A temporary solution: After configuring WPS, open configure.wps and add -fallow-argument-mismatch and -fallow-invalid-boz to the end of FFLAGS and F77FLAGS parameters. Now, after compiling, your will have all the exe files.