Main menu

Navigation

CESM2.1.0 porting/case.build error with CSM_share: shr_infnan_mod.F90

1 post / 0 new
Zhibo.zhang@...
CESM2.1.0 porting/case.build error with CSM_share: shr_infnan_mod.F90

Hi All, 

       I'm trying to port the new CESM2.1.0 release to our cluster but the case.build step got stuck with a strange problem with CSM_share. Below are some information on our cluster and environment:

  • Compilers: intel icc & ifort & mpiifort 18.0.3
  • Netcdf: netcdf-4.4.1.1 & netcdf-fortran-4.4.4
  • Python 2.7.15
  • job management: Slurm         

more details can be found in the xml files.

      I tried to follow the simple quick start to build the case FHIST using "./create_newcase--casetest_FHIST--resf09_f09_mg17--compsetFHIST". I'm able to create and set up the case. But when I build the case using case.build, it ran into some error when compiling CSM_share. the error is as follows

 

The code generator genf90.pl generates the  shr_infnan_mod.F90 from  /umbc/xfs1/zzbatmos/common/Codes/cesm2.0.1/cime/src/share/util/shr_infnan_mod.F90.in > shr_infnan_mod.F90

 

The following codes in  shr_infnan_mod.F90.in

! Locally defined isnan.

  #ifndef HAVE_IEEE_ARITHMETIC

  interface shr_infnan_isnan

     ! TYPE double,real

     module procedure shr_infnan_isnan_{TYPE}

 end interface

 #endif

become the following in shr_infnan_mod.F90

! Locally defined isnan.

   #ifndef HAVE_IEEE_ARITHMETIC

   # 70 "/umbc/xfs1/zzbatmos/common/Codes/cesm2.0.1/cime/src/share/util/shr_infnan_mod.F90.in"

   interface shr_infnan_isnan

     ! TYPE double,real

     module procedure shr_infnan_isnan_double

      ! TYPE double,real

      module procedure shr_infnan_isnan_real

 1end interface

  #endif

 

Somehow, the compiler doesn't know how to handle these lines and gave the error 

 

  /umbc/xfs1/zzbatmos/common/Codes/cesm2.0.1/cime/src/share/util/shr_infnan_mod.F90.in(72): error #7950: Procedure name in MODULE PROCEDURE statement must be the name of accessible module procedure.   [SHR_INFNAN_ISNAN_DOUBLE]

     module procedure shr_infnan_isnan_double

  --------------------^

  /umbc/xfs1/zzbatmos/common/Codes/cesm2.0.1/cime/src/share/util/shr_infnan_mod.F90.in(74): error #7950: Procedure name in MODULE PROCEDURE statement must be the name of accessible module procedure.   [SHR_INFNAN_ISNAN_REAL]

   module procedure shr_infnan_isnan_real

 --------------------^

  /umbc/xfs1/zzbatmos/common/Codes/cesm2.0.1/cime/src/share/util/shr_infnan_mod.F90.in(72): error #7407: Unresolved MODULE PROCEDURE specification name.   [SHR_INFNAN_ISNAN_DOUBLE]

     module procedure shr_infnan_isnan_double

 --------------------^

 /umbc/xfs1/zzbatmos/common/Codes/cesm2.0.1/cime/src/share/util/shr_infnan_mod.F90.in(74): error #7407: Unresolved MODULE PROCEDURE specification name.   [SHR_INFNAN_ISNAN_REAL]

     module procedure shr_infnan_isnan_real

 

Anyone had the same problem? Any help/suggestion is highly appreciated! Thank you very much!


------------------------------------------
Dr. Zhibo Zhang
Associate Professor
Physics Dept./JCET-UMBC
Phone: (410) 455-6315
Email: eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%7a%68%69%62%6f%2e%7a%68%61%6e%67%40%75%6d%62%63%2e%65%64%75%22%3e%7a%68%69%62%6f%2e%7a%68%61%6e%67%40%75%6d%62%63%2e%65%64%75%3c%2f%61%3e%27%29%3b'))

Who's new

  • praveenmaniyatt@...
  • arjunbabun11@...
  • lama@...
  • sisi393@...
  • 1658093099@...