WPS icon indicating copy to clipboard operation
WPS copied to clipboard

Error compiling with gfortran 10

Open letmaik opened this issue 5 years ago • 2 comments

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)

letmaik avatar Jan 15 '21 08:01 letmaik

@letmaik Could you work around this problem?

anikfal avatar Feb 19 '21 14:02 anikfal

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.

anikfal avatar Feb 22 '21 12:02 anikfal