ESCOMP / CISM

Community Ice Sheet Model
GNU Lesser General Public License v3.0
6 stars 11 forks source link

Removed redundant 'use' statements that slowed the Intel build #57

Closed Katetc closed 11 months ago

Katetc commented 11 months ago

Bill Lipscomb says: "The Intel compiler has been taking a long time to build glide_io.F90. Some testing showed that this is because 'use glide_types' and three other use statements were repeated in each of a large number of accessor subroutines. For some reason, this hasn't been an issue on the Gnu compiler.

I modified ../utils/generate_ncvars.py and ../libglimmer/ncdf_template.in so that these 'use' statements appear only at the top of the glide_io module.

With this change, the Intel build time on derecho with 8 cores ('make -j 8') decreases from about 4:40 to 1:10, a welcome improvement."