Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

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

Member
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 CPRPGIHowever, 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.
 
Top