Difference between revisions of "Installing Mars mesoscale model on spirit"
From Planets
(→Set up the installer) |
(→Set up the installer) |
||
Line 38: | Line 38: | ||
<syntaxhighlight lang="Bash"> | <syntaxhighlight lang="Bash"> | ||
./meso_install.sh -h | ./meso_install.sh -h | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | == Install the code == | ||
+ | |||
+ | Run the installer by providing a name for your specific directory | ||
+ | <syntaxhighlight lang="Bash"> | ||
+ | ./meso_install.sh -n DESCRIBE_YOUR_RESEARCH_PROJECT | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ''Special case'': In case you do not have a gitlab account, ask for an archive (tar.gz) of the code. | ||
+ | Let us assume the name is git-trunk-mesoscale-compile-run-spirit.tar.gz | ||
+ | and the file is in the current directory (for instance in /homedata/_MY_LOGIN_) | ||
+ | then run the installer with the following command | ||
+ | <syntaxhighlight lang="Bash"> | ||
+ | ./meso_install.sh -n DESCRIBE_YOUR_RESEARCH_PROJECT -a git-trunk-mesoscale-compile-run-spirit | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 16:13, 23 January 2023
Set up environment
Add this in your ~/.bashrc then source the file
1 module purge
2 module load intel/2021.4.0
3 module load intel-mkl/2020.4.304
4 module load openmpi/4.0.7
5 module load hdf5/1.10.7-mpi
6 module load netcdf-fortran/4.5.3-mpi
7 module load netcdf-c/4.7.4-mpi
8 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/
9 declare -x NETCDF=/scratchu/spiga/les_mars_project_spirit/netcdf_hacks/SPIRIT
10 declare -x NCDFLIB=$NETCDF/lib
11 declare -x NCDFINC=$NETCDF/include
Set up the installer
Go to your 'data' directory and download the installer with the following command
cd /homedata/_MY_LOGIN_
svn co https://svn.lmd.jussieu.fr/Planeto/trunk/MESOSCALE/LMD_MM_MARS/SIMU
Make sure the installer can be executed
chmod 755 SIMU/meso_install.sh
Make a link (e.g. where you are, in the parent directory of /data) to the main script in this SIMU directory
ln -sf SIMU/meso_install.sh .
Run the installer with a simple display of possible options
./meso_install.sh -h
Install the code
Run the installer by providing a name for your specific directory
./meso_install.sh -n DESCRIBE_YOUR_RESEARCH_PROJECT
Special case: In case you do not have a gitlab account, ask for an archive (tar.gz) of the code. Let us assume the name is git-trunk-mesoscale-compile-run-spirit.tar.gz and the file is in the current directory (for instance in /homedata/_MY_LOGIN_) then run the installer with the following command
./meso_install.sh -n DESCRIBE_YOUR_RESEARCH_PROJECT -a git-trunk-mesoscale-compile-run-spirit