Difference between revisions of "Installing Titan mesoscale model on spirit"
From Planets
Line 55: | Line 55: | ||
chmod go-r ~./ssh/id_rsa | chmod go-r ~./ssh/id_rsa | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | == Install the code == | ||
+ | |||
+ | === Load les_planet_workflow from Git === | ||
+ | On one of the scratch disks (e.g. scratchu), do: | ||
+ | |||
+ | <syntaxhighlight lang="Bash"> | ||
+ | git clone git@gitlab.in2p3.fr:aymeric.spiga/les_mars_project.git les_planet_workflow | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | === Create a new branch and adapt it to Titan === | ||
+ | In the les_planet_workflow directory, do: | ||
+ | |||
+ | <syntaxhighlight lang="Bash"> | ||
+ | git branch new_branch | ||
+ | git checkout new_branch | ||
+ | <\syntaxhighlight> | ||
+ | |||
+ | Adapt 0_defining file to Titan. | ||
+ | |||
+ | Run install.sh: | ||
+ | <syntaxhighlight lang="Bash"> | ||
+ | ./install.sh | ||
+ | <\syntaxhighlight> |
Revision as of 15:31, 2 January 2024
Contents
Install FCM
On your home, do:
mkdir TOOLS
cd TOOLS
svn checkout https://forge.ipsl.jussieu.fr/fcm/svn/PATCHED/FCM_V1.2
cd
vi .bash_profile
In your ~/.bash_profile, add:
export PATH=$PATH:$HOME/TOOLS/FCM_V1.2/bin
Configure your ~/.bashrc
In your ~/bashrc, add:
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
ulimit -s unlimited
declare -x PATH=./:$PATH
declare -x WRFIO_NCD_LARGE_FILE_SUPPORT=1
module purge
module load intel/2021.4.0
module load intel-mkl/2020.4.304
module load openmpi/4.0.7
module load hdf5/1.10.7-mpi
module load netcdf-fortran/4.5.3-mpi
module load netcdf-c/4.7.4-mpi
declare -x WHERE_MPI=/net/nfs/tools/u20/22.3/PrgEnv/intel/linux-ubuntu20.04-zen2/openmpi/4.0.7-intel-2021.4.0-43fdcnab3ydwu7ycrplnzlp6xieusuz7/bin/
declare -x NETCDF=/scratchu/spiga/les_mars_project_spirit/netcdf_hacks/SPIRIT
declare -x NCDFLIB=$NETCDF/lib
declare -x NCDFINC=$NETCDF/include
Add private key
If you don't have one already, you need to add a private key file on your home, that corresponds to the public key file you have on GitLab.
To do this, put your id_rsa file in the directory ~/.ssh/. Then, change the rights to the file, so that only you can access and read it:
chmod go-r ~./ssh/id_rsa
Install the code
Load les_planet_workflow from Git
On one of the scratch disks (e.g. scratchu), do:
git clone git@gitlab.in2p3.fr:aymeric.spiga/les_mars_project.git les_planet_workflow
Create a new branch and adapt it to Titan
In the les_planet_workflow directory, do:
<syntaxhighlight lang="Bash"> git branch new_branch git checkout new_branch <\syntaxhighlight>
Adapt 0_defining file to Titan.
Run install.sh: <syntaxhighlight lang="Bash"> ./install.sh <\syntaxhighlight>