Install an run a pre-defined experiment
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, here, the experiment ’hapex’
./prepare_forcing.bash hapex
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)
- Some information will then be written on the screen and should look like:
— namelist NAM_MY_PARAM read
> ==========================================
> PREP_INPUT_EXPERIMENT: YEXPER = HAPEX
> PREP_INPUT_EXPERIMENT: INI = 1
> PREP_INPUT_EXPERIMENT: INPTS = 17521
> PREP_INPUT_EXPERIMENT: JNPTS = 17521
> PREP_INPUT_EXPERIMENT: ZTSTEPFRC = 1800.
> PREP_INPUT_EXPERIMENT: YFORCING_FILETYPE = NETCDF
> ===========================================
YFILE_FORCIN=../DATA/hapex/HAPEX.DAT.30
– rw-r—r— 1 lemoigne mc2 1543644 jui 22 16:51 /home/lemoigne/surfex/open_SURFEX_V8_1/MY_RUN/FORCING/FORCING.nc
==============================================
> input files moved to /home/lemoigne/surfex/open_SURFEX_V8_1/MY_RUN/KTEST/hapex
==============================================
- Once the installation is done, go to $SRC_SURFEX/MY_RUN/KTEST/hapex directory and launch successively:
./pgd.exe
./prep.exe
./offline.exe
- 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.

