Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Fortran and NETCDF are not consistet

juanan

New member
Hi,
I manage to install WRF correctly mostly following this post
Although I --enable-netcdf-4 when installing NetCDF-c, i turned NetCDF_classic=1 when compiling WRF
All four executables for WRF were created.

However when I go to WPS, I get a successful configuration telling me to type ./compile. Additionally it says: "Your versions of Fortran and NETCDF are not consistent."
my versions of Frotran are gfortran 9.4.0 (GNU) and 4.7.4 of NetCDF
When compilying I only get ungrib.exe
I attach the log.compile

Thanks a lot for the help
 

Attachments

  • configure.wps
    3.4 KB · Views: 3
  • compile.log
    239.6 KB · Views: 2
The output "Your versions of Fortran and NETCDF are not consistent" only appears if it fails to compile the test file checking if netCDF would have worked. The message is a little misleading as it might not be the versions, it could be any other number of things.

When following the post above, do you do anything else differently? For instance, placing netCDF and netCDF fortran in different directories. The issue seems to stem from libnetcdf.so not being found, leading to lot of missing symbols.

Following the instructions verbatim (ensuring all steps are successful) does work for me, even when setting NETCDF_classic=1.
 
Top