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

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!
 
Top