This site is migrating to a new forum software on Tuesday, September 24th 2019, you may experience a short downtime during this transition

Main menu

Navigation

problems compiling csm_share with gnu

3 posts / 0 new
Last post
agustin@...
problems compiling csm_share with gnu

I have a problem compiling cesm1_2_0 with gnu (gcc+gfortran, 4.3.4, intel_ia64) at csm_share/shr_assert_mod.F90:

../..//shr/shr_assert_mod.F90.in:241.25:

     loc_vec = (/ integer:: /)
                         1
Error: Syntax error in array constructor at (1)

Any help is wellcome, thanks very much

 

Agustin

santos

gfortran 4.3 is an older version than we currently test with (I believe we use version 4.7.2, which is about 3 years newer). You can try to work around this by adding the following line to the top of models/csm_share/shr/shr_assert_mod.F90 (not .F90.in):

#define CPRPGI

However, you may run up against some other problem. You should try a newer version of gfortran (probably 4.7) , because that will be more similar to a version that we have tested.

If you compare different versions of Fortran compilers over the last 5 years, you will find a huge range of different behavior and supported features, and we do not have the resources to support them all. For recent development, we have focused on newer compilers, generally released within the last couple of years.

Sean Patrick Santos

CESM Software Engineering Group

agustin@...

I  instaled gfortran 4.8.1 version and the compilation problem was corrected. Thanks

 

Agustin

Log in or register to post comments

Who's new

  • jwolff
  • tinna.gunnarsdo...
  • sarthak2235@...
  • eolivares@...
  • shubham.gandhi@...