
<?xml
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:atom="http://www.w3.org/2005/Atom"
>

<channel xml:lang="en">
	<title>SURFEX</title>
	<link>https://www.umr-cnrm.fr/surfex/</link>
	<description> SURFEX (Surface Externalis&#233;e, in French) is a surface modelling platform developed by M&#233;t&#233;o-France in cooperation with the scientific community.
SURFEX is composed of various physical models for natural land surface, urbanized areas, lakes and oceans. It also simulates chemistry and aerosols surface processes and can be used for assimilation of surface and near surface variables.
SURFEX has its own initialisation procedures and can be used in stand alone mode and coupled to an atmospheric model.
In SURFEX, each model grid box is represented by four surface types : sea or ocean, water bodies (lakes, ...), urban areas and nature (soil and vegetation). Each surface type is modeled with a specific surface model and the total flux of the grid box results from the addition of the individual fluxes weighted by their respective fraction. Summary of the main components of the surfex model Tile NATURE
The model for the tile &#034;Nature&#034; is the ISBA (interaction soil-biosphere-atmosphere) model Tile TOWN
The model for the tile &#034;Town&#034; is the TEB (Town energy balance) model Tile OCEAN
Surface fluxes above the tile &#034;sea and ocean&#034; can be treated in a very simple way or by using more physically based model Tile WATER
Surface fluxes above the lake tile can be treated in a very simple way or by using the FLake model Chemical scheme
Emission and deposition of dust and aerosols are treated over land and oceans Data assimilation
Assimilation of near surface meteorological variables and remotely sensed variables can be performed using an optimal interpolation or an Ensemble Kalman filter scheme </description>
	<language>en</language>
	<generator>SPIP - www.spip.net</generator>
	<atom:link href="https://www.umr-cnrm.fr/surfex/spip.php?id_rubrique=171&amp;page=backend" rel="self" type="application/rss+xml" />

	<image>
		<title>SURFEX</title>
		<url>https://www.umr-cnrm.fr/surfex/IMG/logo/test-logo-bleu2.png?1771324290</url>
		<link>https://www.umr-cnrm.fr/surfex/</link>
		<height>22</height>
		<width>144</width>
	</image>



<item xml:lang="en">
		<title>Libraries package</title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article473</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article473</guid>
		<dc:date>2026-02-02T16:35:39Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;LIB-SURFEX-9-1-0.tar.gz&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;&lt;a href='https://www.umr-cnrm.fr/surfex/data/LIB/LIB-SURFEX-9-1-0.tar.gz'&gt;LIB-SURFEX-9-1-0.tar.gz&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="en">
		<title>Install an run a pre-defined experiment</title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article472</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article472</guid>
		<dc:date>2026-01-29T15:30:54Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;How to install a pre-defined experiment: in new terminal, in src/ directory export VER_USER=FORC run ./configure ./configure execute the profile file corresponding to this user version of surfex . ../conf/profile_surfex-LXgfortran-SFX-V9-1-0-FORC-MPIAUTO-O2-X0 run make user and make installuser to create the specific executables in directory exe/ make user make installuser go into MY_RUN/FORCING directory and run prepare_forcing.bash with a name of experiment as argument. For example, (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;&lt;strong&gt;How to install a pre-defined experiment&lt;/strong&gt;:&lt;/p&gt;
&lt;ol class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; in new terminal, in src/ directory&lt;br class='autobr' /&gt;
&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;export VER_USER=FORC&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; run ./configure&lt;br class='autobr' /&gt; &lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;./configure&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; execute the profile file corresponding to this user version of surfex &lt;br class='autobr' /&gt;
&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;. ../conf/profile_surfex-LXgfortran-SFX-V9-1-0-FORC-MPIAUTO-O2-X0&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; run &lt;i&gt;make user&lt;/i&gt; and &lt;i&gt;make installuser&lt;/i&gt; to create the specific executables in directory exe/&lt;br class='autobr' /&gt; &lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make user&lt;/code&gt;&lt;/font&gt; &lt;br class='autobr' /&gt; &lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make installuser&lt;/code&gt;&lt;/font&gt; &lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; go into MY_RUN/FORCING directory and run &lt;i&gt;prepare_forcing.bash&lt;/i&gt; with a name of experiment as argument. For example, here, the experiment 'hapex'&lt;br class='autobr' /&gt;
&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt; ./prepare_forcing.bash hapex&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt;
A namelist MY_PARAM.nam will open (vi editor). For the first time, it's not necessary to modify this namelist. So, you can simply quit (use command :q)&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; Some information will then be written on the screen and should look like:&lt;br class='autobr' /&gt; &#8212; namelist NAM_MY_PARAM read&lt;br class='autobr' /&gt; &gt; ========================================== &lt;br class='autobr' /&gt; &gt; PREP_INPUT_EXPERIMENT: YEXPER = HAPEX&lt;br class='autobr' /&gt; &gt; PREP_INPUT_EXPERIMENT: INI = 1&lt;br class='autobr' /&gt; &gt; PREP_INPUT_EXPERIMENT: INPTS = 17521&lt;br class='autobr' /&gt; &gt; PREP_INPUT_EXPERIMENT: JNPTS = 17521&lt;br class='autobr' /&gt; &gt; PREP_INPUT_EXPERIMENT: ZTSTEPFRC = 1800.&lt;br class='autobr' /&gt; &gt; PREP_INPUT_EXPERIMENT: YFORCING_FILETYPE = NETCDF&lt;br class='autobr' /&gt; &gt; ===========================================&lt;br class='autobr' /&gt; YFILE_FORCIN=../DATA/hapex/HAPEX.DAT.30
&lt;br /&gt;&lt;span class=&#034;spip-puce ltr&#034;&gt;&lt;b&gt;&#8211;&lt;/b&gt;&lt;/span&gt; rw-r&#8212;r&#8212; 1 lemoigne mc2 1543644 jui 22 16:51 /home/lemoigne/surfex/open_SURFEX_V8_1/MY_RUN/FORCING/FORCING.nc&lt;br class='autobr' /&gt;
==============================================&lt;br class='autobr' /&gt; &gt; input files moved to /home/lemoigne/surfex/open_SURFEX_V8_1/MY_RUN/KTEST/hapex&lt;br class='autobr' /&gt;
==============================================&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; Once the installation is done, go to $SRC_SURFEX/MY_RUN/KTEST/hapex directory and launch successively:&lt;br class='autobr' /&gt;
&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;./pgd.exe&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt;
&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;./prep.exe&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt;
&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;./offline.exe&lt;/code&gt;&lt;/font&gt;&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;li&gt; If you code is correctly installed and compiled, PGD, PREP and OFFLINE PGD should run correctly, and you should get .TXT output files in your run directory.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="en">
		<title>Compilation options</title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article462</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article462</guid>
		<dc:date>2026-01-23T16:51:51Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;To change the default options of compilation : export OPTION=myoption
&lt;br class='autobr' /&gt;
For exemple, to compile without MPI library
&lt;br class='autobr' /&gt; export VER_MPI=NOMPI Options for VER_MPI: NOMPI (no MPI), MPIAUTO (default MPI library on the PC), specific libraries to be defined Options for VER_OMP: NOOMP (no Open-mp), OMP (Open-mp) Options for OPTLEVEL ( optimization level ) : DEBUG, O2 Options for VER_CDF ( Netcdf library): CDFAUTO (included in SURFEX), CDFCTI (installed on CNRM computers), other pre-installed (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;To change the default options of compilation : export OPTION=myoption&lt;br class='autobr' /&gt;
For exemple, to compile without MPI library&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt; export VER_MPI=NOMPI&lt;/code&gt;&lt;/p&gt;
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; Options for &lt;strong&gt;VER_MPI&lt;/strong&gt;:
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; NOMPI (no MPI), MPIAUTO (default MPI library on the PC), specific libraries to be defined&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Options for &lt;strong&gt;VER_OMP&lt;/strong&gt;:
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; NOOMP (no Open-mp), OMP (Open-mp)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Options for &lt;strong&gt;OPTLEVEL&lt;/strong&gt; ( optimization level ) :
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; DEBUG, O2&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Options for &lt;strong&gt;VER_CDF&lt;/strong&gt; ( Netcdf library):
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; CDFAUTO (included in SURFEX), CDFCTI (installed on CNRM computers), other pre-installed libraries on computers.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Options for &lt;strong&gt;VER_DRHOOK&lt;/strong&gt; ( DR_HOOK library):
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; BYPASS (dummies), MINI (minimal HOOK, no parallelization), SIMPLE (simplified DRHOOK)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; Options for &lt;strong&gt;VER_OASIS&lt;/strong&gt; (OASIS library):
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; NOmct (no OASIS), mct (OASIS)&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="en">
		<title>Recompiling your own sources</title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article461</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article461</guid>
		<dc:date>2026-01-23T15:59:22Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;You may develop and modify the original (MASTER) version of the SURFEX code. Here we explain how to compile your own sources only. &lt;br class='autobr' /&gt;
Suppose you want to create a &#034;MYSRC&#034; version. &lt;br class='autobr' /&gt;
1. Prepare your source directory Put your own sources in a subdirectory of &#034;$SRC_SURFEX/src&#034; named $SRC_SURFEX/src/MYSRC &lt;br class='autobr' /&gt;
2. Recompiling Logout of the current session to be sure to unset all the environnement variables loaded with the your 'master 'profile_surfex'. Login again and go in your src/ directory (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;You may develop and modify the original (MASTER) version of the SURFEX code. &lt;br class='autobr' /&gt;
Here we explain how to compile your own sources only.&lt;/p&gt;
&lt;p&gt;Suppose you want to create a &#034;MYSRC&#034; version.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Prepare your source directory&lt;/strong&gt;&lt;br class='autobr' /&gt;
Put your own sources in a subdirectory of &#034;$SRC_SURFEX/src&#034; named $SRC_SURFEX/src/MYSRC&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2. Recompiling&lt;/strong&gt;&lt;br class='autobr' /&gt;
Logout of the current session to be sure to unset all the environnement variables loaded with the your 'master 'profile_surfex'. Login again and go in your src/ directory&lt;br class='autobr' /&gt; - set the variable &#034;VER_USER&#034; with the name of your &#034;USER VERSION&#034;, &lt;br class='autobr' /&gt; - set also the optional ARCH, VER_MPI... you want to use. &lt;br class='autobr' /&gt; and run again the &#034;./configure&#034; command&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;export VER_USER=MYSRC&lt;/code&gt;&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;./configure&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will regenerate the &#034;profile-surfex&#034; file and a copy of this with the extent &#034;profile_surfex...$VER_USER...&#034;&lt;br class='autobr' /&gt;
As for the compilation of the MASTER version, load it &amp; and compile with the command &#034;make user&#034;&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;. ../conf/profile_surfex-LXgfortran-SFX-V9-0-0-MYSRC-MPIAUTO-OMP-O2-X0&lt;/code&gt;&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make user&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will compile only your sources and the files depending on your sources and generate the new executables in your own directory dir_obj-**/MYSRC/&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Install the new binaries in the $SRC_SURFEX/exe/&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make installuser&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="en">
		<title>Installing SURFEX on your M&#233;t&#233;o-France/CNRM computer</title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article460</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article460</guid>
		<dc:date>2026-01-22T18:02:04Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;On M&#233;t&#233;o-France/CNRM computers, the './configure' is tuned to identify the computer on which the command is used so the good compiler, MPI &amp; netCDF libraries, ... are automatically chosen. &lt;br class='autobr' /&gt;
OPEN-SURFEX &lt;br class='autobr' /&gt;
So you don't need to install anything before compiling the code. &lt;br class='autobr' /&gt;
SURFEX from GIT repository (opensource) &lt;br class='autobr' /&gt;
So you don't need to install anything before compiling the code. &lt;br class='autobr' /&gt;
SURFEX from GITHUB repository &lt;br class='autobr' /&gt;
Starting with SURFEX 9.1 and above, certain libraries (previously included in (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;On M&#233;t&#233;o-France/CNRM computers, the './configure' is tuned to identify the computer on which the command is used so the good compiler, MPI &amp; netCDF libraries, ... are automatically chosen.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;OPEN-SURFEX &lt;/strong&gt;&lt;/u&gt;&lt;br class='autobr' /&gt;
So you don't need to install anything before compiling the code.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;SURFEX from GIT repository (opensource) &lt;/strong&gt;&lt;/u&gt;&lt;br class='autobr' /&gt;
So you don't need to install anything before compiling the code.&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;SURFEX from GITHUB repository &lt;/strong&gt;&lt;/u&gt;&lt;br class='autobr' /&gt;
Starting with SURFEX 9.1 and above, certain libraries (previously included in the repository) have been externalized and are available for download. Only if you need to use &lt;span style='color:#8fb528'&gt;&lt;strong&gt;OASIS&lt;/strong&gt;&lt;/span&gt; and/or &lt;span style='color:#8fb528'&gt;&lt;strong&gt;XIOS&lt;/strong&gt;&lt;/span&gt;, and only for a SURFEX version 9.1 (and above) installation :&lt;/p&gt;
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; download the &lt;a href='https://www.umr-cnrm.fr/surfex/spip.php?article473' class=&#034;spip_in&#034;&gt;libraries package&lt;/a&gt; which corresponds to your code version&lt;/li&gt;&lt;li&gt; copy this package in the src/LIB directory of your SURFEX repository&lt;/li&gt;&lt;li&gt; untar the package (&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;tar -xzvf LIB-SURFEX-9-1-0.tar.gz&lt;/code&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="en">
		<title>Compiling SURFEX </title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article459</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article459</guid>
		<dc:date>2026-01-22T15:39:42Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;Compilation must be done in the src/ directory. Go to the src/ directory. For the installation process, you could now use the ./configure script. Compilation options by default are: - the compiler choosen to be &#034;gfortran&#034; =&gt; ARCH=LXgfortran - the MPI library to be the MPIAUTO =&gt; VER_MPI=MPIAUTO - the level of optimization for the compiler =&gt; OPTLEVEL=O2 To change these options, please refer to the section dedicated to the compilation options. &lt;br class='autobr' /&gt;
./configure &lt;br class='autobr' /&gt;
This will create a (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Compilation must be done in the &lt;span style='color:red'&gt;src/&lt;/span&gt; directory. Go to the src/ directory. For the installation process, you could now use the ./configure script. Compilation options by default are:&lt;br class='autobr' /&gt; - the compiler choosen to be &#034;gfortran&#034; =&gt; ARCH=LXgfortran&lt;br class='autobr' /&gt; - the MPI library to be the MPIAUTO =&gt; VER_MPI=MPIAUTO&lt;br class='autobr' /&gt; - the level of optimization for the compiler =&gt; OPTLEVEL=O2&lt;br class='autobr' /&gt;
To change these options, please refer to the section dedicated to the compilation options.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;./configure&lt;/code&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This will create a configuration file &#034;profile_surfex-***&#034; with an extension reflecting the different &#034;choices&#034; made automatically to match the computer on which you want to install SURFEX. The name of the profile created is indicated on your screen at the end of the execution of the ./configure (this exemple of compilation is indicated with default options of compilation).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;. ../conf/profile_surfex-LXgfortran-SFX-V9-0-0-MPIAUTO-OMP-O2-X0&lt;/code&gt;&lt;/font&gt;&lt;/strong&gt;&lt;br class='autobr' /&gt;
&lt;!-- &lt;br class='autobr' /&gt;
span style=&#034;font-family:'Consolas'&#034;&gt;&lt;span style='color:grey'&gt;. ../conf/profile_surfex-LXgfortran-SFX-V9-0-0-MPIAUTO-OMP-O2-X0&lt;/span&lt;br class='autobr' /&gt;
--&gt;&lt;/p&gt;
&lt;p&gt;Run the compilation by executing 'make' (if you have a multi-processor machine you can speedup the compilation, for example on four cores, with &lt;span style=&#034;font-family:'Consolas'&#034;&gt;&lt;span style='color:grey'&gt;make -j 4&lt;/span&gt;)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make&lt;/code&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The object files &#034;*.o&#034; &amp; main executables of SURFEX (PGD, PREP, OFFLINE, SODA) are compiled in one step and created in the directory dir_obj-$(ARCH).../MASTER/ . The exact name of this &#034;dir_obj...&#034; depends on the different environnement variables set by the &#034;profile_surfex....&#034; which you have loaded before the compilation. &lt;br class='autobr' /&gt;
This allows by loading different &#034;profile_surfex..&#034; files to compile in the same source/installation directory different versions of SURFEX, with different compilers, different versions of MPI, different USER sources... To install the new compiled program in the &#034;$SRC_SURFEX/exe&#034; directory, after compilation, just run :&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font size=3&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;make installmaster&lt;/code&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The executables with their full name, including $ARCH, compiler, MPI and level of optimization, will be linked in the &#034;../exe&#034; directory. &lt;br class='autobr' /&gt;
The &#034;make installmaster&#034; need to be done only one time by &#034;version&#034;. If you only change/add source, you have to do &#034;make&#034;.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="en">
		<title>Installing SURFEX on your Linux computer</title>
		<link>https://www.umr-cnrm.fr/surfex/spip.php?article458</link>
		<guid isPermaLink="true">https://www.umr-cnrm.fr/surfex/spip.php?article458</guid>
		<dc:date>2026-01-22T09:58:39Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>en</dc:language>
		<dc:creator>Minvielle</dc:creator>



		<description>
&lt;p&gt;To run SURFEX, several packages need to be installed on a Linux PC. Before to install SURFEX, please verify these packages are present on your computer. shell KSH glibc, make, a fortran compiler (if none is ever installed, choose Gfortran+GCC) C++ cmake &lt;br class='autobr' /&gt;
Optional : MPI library (OPENMPI for exemple) If MPI is not installed, SURFEX needs to be compiled without parallelization. See details in the section options of compilation. &lt;br class='autobr' /&gt;
Additional packages for Ubuntu 20.04 LTS / Ubuntu 22.04 LTS (&#8230;)&lt;/p&gt;


-
&lt;a href="https://www.umr-cnrm.fr/surfex/spip.php?rubrique171" rel="directory"&gt;Installation and compilation&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;To run SURFEX, several packages need to be installed on a Linux PC. Before to install SURFEX, please verify these packages are present on your computer.&lt;/p&gt;
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; shell KSH&lt;/li&gt;&lt;li&gt; glibc, make, a fortran compiler (if none is ever installed, choose Gfortran+GCC)&lt;/li&gt;&lt;li&gt; C++&lt;/li&gt;&lt;li&gt; cmake&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Optional :&lt;/p&gt;
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; MPI library (OPENMPI for exemple)&lt;br class='autobr' /&gt;
If MPI is not installed, SURFEX needs to be compiled without parallelization. See details in the section options of compilation.&lt;br class='autobr' /&gt; &lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;Additional packages for &lt;strong&gt;Ubuntu 20.04 LTS&lt;/strong&gt; / &lt;strong&gt;Ubuntu 22.04 LTS&lt;/strong&gt; and &lt;strong&gt;Ubuntu 24.04 LTS&lt;/strong&gt;:&lt;/p&gt;
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; curl (with gnutls flavour): packages curl and libcurl4-gnutls-dev&lt;/li&gt;&lt;/ul&gt;&lt;hr class=&#034;spip&#034; /&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;OPEN-SURFEX &lt;/strong&gt;&lt;/u&gt;&lt;br class='autobr' /&gt;
If you have dowloaded the open-SURFEX code directly on the website, first untar the file open_surfex_v9_0_0_20231024.tar.gz where you want. For example, in your home directory:&lt;/p&gt;
&lt;p&gt;&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;cd $HOME&lt;/code&gt;&lt;br class='autobr' /&gt;
&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;tar -xvfz open_surfex_v9_0_0_20231024.tar.gz&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;SURFEX from GIT repository (opensource) &lt;/strong&gt;&lt;/u&gt;&lt;br class='autobr' /&gt;
No additionnal action before compiling&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;SURFEX from GITHUB repository &lt;/strong&gt;&lt;/u&gt;&lt;br class='autobr' /&gt;
Starting with SURFEX version 9.1, certain libraries (previously included in the repository) have been externalized and are available for download. For a SURFEX version 9.1 (and above) installation :&lt;/p&gt;
&lt;ul class=&#034;spip&#034; role=&#034;list&#034;&gt;&lt;li&gt; download the &lt;a href='https://www.umr-cnrm.fr/surfex/spip.php?article473' class=&#034;spip_in&#034;&gt;libraries package&lt;/a&gt; which corresponds to your code version&lt;/li&gt;&lt;li&gt; copy this package in the src/LIB directory of your SURFEX repository&lt;/li&gt;&lt;li&gt; untar the package (&lt;code class='spip_code spip_code_inline' dir='ltr'&gt;tar -xzvf LIB-SURFEX-9-1-0.tar.gz&lt;/code&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



</channel>

</rss>
