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

ieee_arithmetic error

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

JCollins

New member
Hello everyone.

I am compiling the core atmosphere and during compilation I get the following error:
Code:
mpas_atm_time_integration.F:5712.11:

       use ieee_arithmetic, only : ieee_is_nan
           1
Fatal Error: Can't open module file 'ieee_arithmetic.mod' for reading at (1): No such file or directory
make[4]: *** [mpas_atm_time_integration.o] Error 1
make[4]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere/dynamics'
make[3]: *** [dycore] Error 2
make[3]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere'
make[2]: *** [dycore] Error 2
make[2]: Leaving directory `/home/collins/MPAS-Model/src'
make[1]: *** [mpas_main] Error 2
make[1]: Leaving directory `/home/collins/MPAS-Model'
make: *** [gfortran] Error 2

For the compilation I used:
Code:
make gfortran CORE=atmosphere USE_PIO2=true

How can I solve this error?

Thank you very much.
 
It looks like this may be an issue in our "use" statement. Can you try replacing this line
Code:
       use ieee_arithmetic, only : ieee_is_nan
in src/core_atmosphere/dynamics/mpas_atm_time_integration.F with a line that looks like this
Code:
       use, intrinsic :: ieee_arithmetic, only : ieee_is_nan
? Also, out of curiosity, which compiler and compiler version are you using?
 
I modified the line you told me. I get the following error:
Code:
mpas_atm_time_integration.F:5712.24:

       use, intrinsic ::  ieee_arithmetic, only : ieee_is_nan
                        1
Fatal Error: Can't find an intrinsic module named 'ieee_arithmetic' at (1)
make[4]: *** [mpas_atm_time_integration.o] Error 1
make[4]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere/dynamics'
make[3]: *** [dycore] Error 2
make[3]: Leaving directory `/home/collins/MPAS-Model/src/core_atmosphere'
make[2]: *** [dycore] Error 2
make[2]: Leaving directory `/home/collins/MPAS-Model/src'
make[1]: *** [mpas_main] Error 2
make[1]: Leaving directory `/home/collins/MPAS-Model'
make: *** [gfortran] Error 2

The compiler version that I am using:
Code:
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
I have read that it is a problem to use versions prior to GCC 5. As I am doing tests, I have risked compiling the latest version of GCC (9.0). I have compiled the libraries again, and then MPAS (atmosphere) and the compilation has finished successfully.

Right now I'm going to perform some internal tests of operation. My intention is that it is a future MPAS is compiled with Intel, is there any known problem related to the error discussed in this topic?
 
As long as the Intel compiler is newer than about 13.0.1, I don't think there will be any problems. Some earlier versions had a bug in the Fortran TRANSFER intrinsic that caused problems for the PIO library. I've been using the Intel 16.0.2 and 17.0.1 compilers for daily development and testing, and all seems to be well. It looks like I do have access to the Intel 18.0.1 compilers, and I'll give those a try soon and report back if I find any issues.
 
Hello,

I had the same version of gcc and had the same problem. So I decided to install a new version and it worked for me.

Code:
sudo yum install centos-release-scl
sudo yum install devtoolset-7-gcc*
scl enable devtoolset-7 bash
which gcc
gcc --version

Recompile the libraries again.
 
Top