CO5BOLD has been used on the SunFire machines``fire1'', ``fire2'', and ``fire3'' in Uppsala with compiler version ``Sun WorkShop 6 update 2 Fortran 95 6.2 2001/05/15'' and later. An older version was not able to compile CO5BOLD properly. Information about Fortran and the Sun compiler can be found on the Sun Fortran data sheet page under ``Documentation''. Ångström Sun cluster
Important switches are:
-openmp: Enable OpenMP.
-fast -xvector=yes/no: General optimization. On the Sun the
-fastoption switches on more or less all optimization features of the compiler. That works reasonable well. However, during the compilation of
gasinter_routines.f90(and only there) the switch
-xvector=nois required! This is done automatically in the Makefile.
-inline=...: Optimization: routines that should be inlined: see Sect. 3.7.2.
-DMSrad_raytas=2: Optimization: choose non-default version of loop in
SUBROUTINE raytasin file
MSrad3D.F90. See Sect. 3.6.
-Drhd_shortrad_formal_l01=1: Optimization: split loop for exp(-dtau) computation into two loops. See Sect. 3.6.
-Drhd_shortrad_dir1_l01=1: Optimization: Transpose arrays and use routine
rhd_shortrad_dir3for rays in x1 direction. See Sect. 3.6.
-Drhd_hyd_entropyfix_p01=1: Optimization: version with masks (weights). See Sect. 3.6.
-xarch=native64: Produces 64-bit code optimized for local machine.