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

nf_nc4.f90

Hi,
I attempted to compile WRF on an AlmaLinux Version 9.4 server, however, none of the exe files (ndown.exe, real.exe, tc.exe, and wrf.exe) were produced.
As detailed in the tutorial (Compiling WRF), all necessary libraries were pre-installed, but by someone else. I don't have superuser access, but I can request that the admin install libraries using "dnf". Before doing that, I want to try compiling WRF with the manually installed libraries. However, I encountered an error during "./compile em_real >& log.compile". I've attached the following files: bashrc, configure.wrf, log.compile, the output of "echo $NETCDF" (netcdf.dat), and the output of "echo $PATH" (path.dat).
Also:
$ which gfortran cpp gcc g++
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/gfortran
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/cpp
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/gcc
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/g++

Any help would be greatly appreciated.
 

Attachments

  • wrfforum.tar
    960 KB · Views: 4
Last edited:
Hi,
I attempted to compile WRF on an AlmaLinux Version 9.4 server, however, none of the exe files (ndown.exe, real.exe, tc.exe, and wrf.exe) were produced.
As detailed in the tutorial (Compiling WRF), all necessary libraries were pre-installed, but by someone else. I don't have superuser access, but I can request that the admin install libraries using "dnf". Before doing that, I want to try compiling WRF with the manually installed libraries. However, I encountered an error during "./compile em_real >& log.compile". I've attached the following files: bashrc, configure.wrf, log.compile, the output of "echo $NETCDF" (netcdf.dat), and the output of "echo $PATH" (path.dat).
Also:
$ which gfortran cpp gcc g++
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/gfortran
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/cpp
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/gcc
/opt/ohpc/pub/compiler/gcc/13.2.0/bin/g++

Any help would be greatly appreciated.
The following command solved the problem. I hope it doesn't affect the correct running of WRF.

$ export NETCDF_classic=1
 
I appreciate your feedback.
I should mention that the same issue occurred during the compilation of WPS, and metgrid.exe was not created. Additionally, the command "$ export NETCDF_classic=1" did not solve the problem this time (please find configure.wps and compile.log attached). A friend of mine suggested replacing scan_input.F in metgrid/src/ with the attached file, and now metgrid.exe was created without using the command "$ export NETCDF_classic=1". I'm unsure what the exact problem was, but I hope this solution works well.
 

Attachments

  • wrfforumWPS.tar
    150 KB · Views: 1
The solution your friend suggested is a common one for issues with metgrid building. Does this mean that you now have all the WPS executables built? If so, then you can continue and it should work fine.
 
Top