Workaround for slow build with intel ifort

eaton

CSEG and Liaisons
There have been several reports of excessively long compilation times of CAM with the intel compilers. The file that takes so long to build is shr_scam_mod.F90. We have found a workaround for this problem (which really seems to be an intel compiler problem since other compilers handle this code just fine). The workaround is to move the SDAT variable which is declared as a local variable in subroutine shr_scam_checkSurface to have module scope. Here is the patch (relative to the cesm1_0_1 release):


Code:
28a29
>    use shr_strdata_mod
33a35,36
>    type(shr_strdata_type) :: SDAT
> 
240d242
<    use shr_strdata_mod
280d281
<    type(shr_strdata_type) :: SDAT
This will be part of the cesm1_0_2 release which will probably be out in a month or so.
 
Cool! I had noticed this while running it on my home machine, but just thought it was my machine being slow. I'll try this out and see what happens! Thanks for the tip!
 
Back
Top