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

real.exe error

phamthao

New member
Hello, I am trying to run real.exe but I have this error:
./real.exe: symbol lookup error: ./real.exe: undefined symbol: MPI_Comm_f2c

Thanks in advance if someone could help me.
 
@William.Hatheway

In the image is the WRFV 4.6.0 folder, the rsl.error and rsl.out files are not created. I'm running it using your latest version of WRF-MOSIT on github.

View attachment 15008
I know that problem.

You need to export the library files in the terminal before running real.exe.

Exports to run WRF and WPS programs
GNU Compilers

Code:
export LD_LIBRARY_PATH=$HOME/WRF/Libs/NETCDF/lib:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH=$HOME/WRF/Libs/grib2/lib:$LD_LIBRARY_PATH

export PATH=$HOME/WRF/Libs/MPICH/bin:$PATH

export PATH=$HOME/WRF/Libs/grib2/lib:$PATH

Intel Compilers

Code:
source /opt/intel/oneapi/setvars.sh

export LD_LIBRARY_PATH=$HOME/WRF_Intel/Libs/NETCDF/lib:$LD_LIBRARY_PATH

export LD_LIBRARY_PATH=$HOME/WRF_Intel/Libs/grib2/lib:$LD_LIBRARY_PATH

export PATH=$HOME/WRF_Intel/Libs/grib2/lib:$PATH
 
Last edited:
Glad it is resolved, can you say how it was fixed so future users can benefit?

Here is what I experienced and learned:
- In wrf version 4.5.2 when running with the GNU compiler, if this line is present it can still run full 8 processing threads on my machine.
"source /opt/intel/oneapi/setvars.sh", but with wrf 4.6.0, with GNU compile, the error "./real.exe: symbol lookup error: ./real.exe: undefined symbol: MPI_Comm_f2c" appear.

- I removed the line "source /opt/intel/oneapi/setvars.sh" and it ran successfully, but can only run when there are 3 threads and ram overloaded 12gb + 2gb swp ram. You can see in the picture, when i set it to 4 threads or more the error like in terminal appears.
1722931036509.png
 
Here is what I experienced and learned:
- In wrf version 4.5.2 when running with the GNU compiler, if this line is present it can still run full 8 processing threads on my machine.
"source /opt/intel/oneapi/setvars.sh", but with wrf 4.6.0, with GNU compile, the error "./real.exe: symbol lookup error: ./real.exe: undefined symbol: MPI_Comm_f2c" appear.

- I removed the line "source /opt/intel/oneapi/setvars.sh" and it ran successfully, but can only run when there are 3 threads and ram overloaded 12gb + 2gb swp ram. You can see in the picture, when i set it to 4 threads or more the error like in terminal appears.
View attachment 15092
would the change in the information on the exports above would of made it clearer? I just edited it.
 
Top