User Tools

Site Tools


compiling

Compiling the code

In order to facilitate the compilation of all elements of the code a script is made available : makeregipsl.

The following options exist for the this script :

makeregipsl [-debug] [-clean] [machine_config.def]
            [-debug]             : Compile with debugging options.
	    [-clean]             : Clean the directory from all file resulting from the compilation.
	    [machine_config.def] : Specify a configuration file for the machine for which you will
                                   compile. Should this option not be specified the tool will detect
				   your machine and try to find the appropriate definition file.
				   This file needs to contain the following definitions :
				   MAKE : the make utility you wish to use
				   MODIPSL_TARGET : for which target should modipsl build the makefiles
				   FCM_ARCH : The architecture for the FCM compilation system
				   FCM_JOBS :
				   FCM_PARA :
                                   NETCDF_OPT : Select if you wish a parallel or sequential NetCDF version.

For the moment 2 sample configuration files are provided :

  • climserv.def : contains all the options in order to compile on Climserv with the ifort compiler.
  • climserv_pgi.def : allows to compile on climserv with the PGI compilers.

The default behaviours of makeregipsl is to use climserv.def and thus use the ifort compiler.

In case you change the compiler or the compilation options, it is important to perform a

 makeregipsl -clean 

before the next compilation.

compiling.txt · Last modified: 2015/10/25 23:41 by jan.polcher@lmd.jussieu.fr