Downloading the JULES Standalone model code: you need to specify the version number for this (see the list of releases here).
|
OPTION 1: USING AN SSH KEY
• Go to https://github.com/MetOffice/jules . Click on the green button (shown above) and work out the SSH URL, which is the URL in the HTTPS tab with https://github.com/ replaced with [email protected]: (which should be [email protected]:MetOffice/jules.git ) (ignore the GitHub CLI tab). • Make sure you have an SSH key properly generated (see https://metoffice.github.io/simulation-systems/WorkingPractices/gh_authorisation.html if not) and that it has the correct permissions (use chmod -R 700 .ssh) and that this key has been authorised for use with the UK Met Office (click on Authorizing an SSH key on https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-single-sign-on if not). |
OPTION 2: USING A PERSONAL TOKEN
•Go to https://github.com/MetOffice/jules . Click on the green button (shown above) and note the URL in the HTTPS tab (which should be https://github.com/MetOffice/jules.git ) (ignore the GitHub CLI tab). •Make sure you have a personal token properly generated (see https://metoffice.github.io/simulation-systems/WorkingPractices/gh_authorisation.html if not) and that this token has been authorised for use with the UK Met Office (click on Authorizing a personal access token on https://docs.github.com/en/enterprise-cloud@latest/authentication/authenticating-with-single-sign-on see if not). |
• Next, choose where you want to put the JULES code by specifying a directory in $JROOT like this:
export JROOT=~/MODELS/jules_dir_name
echo $JROOT
(on my system, I put all model code in a directory ~/MODELS/ , but you can decide to use a different location; usually for jules_dir_name people put something like "jules-vn8.3" or "my_version_jules" - you can use any name you want as long as it gets copied into the suite into the right places later on).
export JROOT=~/MODELS/jules_dir_name
echo $JROOT
(on my system, I put all model code in a directory ~/MODELS/ , but you can decide to use a different location; usually for jules_dir_name people put something like "jules-vn8.3" or "my_version_jules" - you can use any name you want as long as it gets copied into the suite into the right places later on).
|
• Now do this (n.b. your_private_key_file will usually have a filename something like id_ed25519 with no extension):
eval "$(ssh-agent -s)" ssh-add -k ~/.ssh/your_private_key_file git clone [email protected]:MetOffice/jules.git $JROOT cd $JROOT |
#After EITHER of the options above:
cd $JROOT
git tag -l
#You should now see a list of available JULES versions. Select the one you want to work with (e.g. vn8.0) and switch to it:
git switch -c vn8.0
ls
#Well done! You have successfully downloaded a copy of (='checked out') a particular version of JULES and placed it in this location:
echo $JROOT
cd $JROOT
git tag -l
#You should now see a list of available JULES versions. Select the one you want to work with (e.g. vn8.0) and switch to it:
git switch -c vn8.0
ls
#Well done! You have successfully downloaded a copy of (='checked out') a particular version of JULES and placed it in this location:
echo $JROOT