JULES From Scratch is an alternative how-to for those who don't work on a system where Cylc, Rose and FCM have already been installed and/or can't use the Met Office Virtual Machine (e.g. for security reasons). I'm also assuming little or no familiarity with any recent version of JULES.
- You have got yourself a MOSRS login (see here) (this is free to everyone, whether in the UK or not)
- You have subscribed to the email support lists (see here)
- You have access to a UNIX/Linux system either directly or through a remote shell client and X server (e.g. I use MobaXterm)
- You have a Fortran compiler installed (if using gfortran, it must be at least vn4.9.2 (since JULESvn5.2 the compilation requires the -std=f2003 flag for compliance with F2003 and for versions of gfortran before 4.9.2 this will trip a fatal run-time error while trying to read the namelists))
- You have Python installed (at least version 2.0; as of July 2019 the process of transitioning to Python3.0 is still ongoing, so please note that *** JULES will not work with Python vn>=3.0 just now ***)
- and you have NetCDF libraries on that system (installing NetCDF is too fiddly to go through here: see here and/or ask your System Administrator for help if they haven't been installed or not completely installed).
Before you go any further, open up my pdf presentation from the September 2018 training workshop in Exeter to follow the steps to get JULES running:
CLICK HERE FOR PDF: 20190111_JULES From Scratch.pdf
Now, if you need them, start off with the installation steps (see below). Once you're done with that, return to the pdf for the rest of the tutorial.
Install Cylc, Rose and FCM and cache your MOSRS password
You need to have three programs installed on your system: Cylc, Rose and FCM. All three of these are necessary for running JULES and I've done a page about installing each with all the steps required (linked here below).
Ideally, these three will be installed globally by your system administrator (or, if you are using the Met Office Virtual Machine, they come in the package), but if that isn't possible (or you are the system administrator) then you will need to go through some/all of these steps for a local installation. First check what is on your system by putting these commands into a UNIX shell:
echo $SHELL #You need to be in a bash shell, so if this returns anything except "/bin/bash" ask your system administrator how you can get into bash cylc check-software #If Cylc is installed, this will give you a message saying "Full-functionality OK" (and it'll also warn you if you are missing Python (you need vn>=2.6) and some libraries like PyGraphviz and PyGTK) rose --version #Just check you don't get "command not found" fcm --version #Just check you don't get "command not found"
EVEN IF ALL SEEM TO BE INSTALLED OK, your personal profile settings may not be correct for using JULES so please do anyway go through the installation links below to make sure your environment setup is OK and your MOSRS password has been correctly cached.
- Install Cylc from GitHub following these steps
- Install Rose from GitHub following these steps (inc. what goes in your ~/.metomi/rose.conf file, which each user needs to set up separately)
- Install FCM from GitHub following these steps (includes caching your MOSRS password *** which is compulsory for all users before using JULES *** and what goes in your ~/.subversion/servers and ~/.metomi/fcm/keyword.cfg files, which each user needs to set up separately)
- Install JULES itself following these steps (this includes the download command for getting hold of a particular version of JULES).
The next step is to CHECK the installation: return to the PDF linked above for details of how to do that.