To install WSL, use your web browser to go to https://microsoft.com. Search (the little magnifying glass icon) for ubuntu. Click on Ubuntu 18.04. On the new page that comes up, select Get the app. On the next screen that comes up, select Get. You do not need to sign up with Microsoft. On the next screen, you may (optional) select “. . .” and Pin to Taskbar. You may also select Pin to Start. Then either select Launch or click on the icon just added to the task bar or Start menu. An Ubuntu screen will appear and make the announcement that the software is being installed (it does take several minutes). When asked, pick a user name and a password (the password must be entered twice).
If a prompt does not appear in a few minutes, hit the carriage return (it doesn't hurt to do that right away—the system will just wait).
When a prompt appears, enter the following commands:
sudo apt update
sudo apt install mpich
Ubuntu files are installed at /mnt/c/Users/Walt/AppData/Local/Packages/Canonical*, with your user name in place of Walt.
If you want, you can run
sudo apt upgrade
which also takes a while. It probably won't affect running CAF.
To install the coarrays library, enter the command:
git clone https://github.com/sourceryinstitute/opencoarrays.git
When the prompt reappears, type ls (list), the equivalent of Windows dir, to see that there is a directory (folder) opencorrays. Go to that directory by typing
cd opencoarrays
then to install the open coarrays library, type:
./install.sh -j 4
-j 4 says to run on four processors (change it if you have a different number or omit it if you want). This step also takes several minutes.
At the prompt, edit the file ~/.bashrc to add the following line at the end. It will tell Ubuntu where to find the executable programs caf and cafrun.
export PATH=~/opencoarrays/prerequisites/builds/opencoarrays/2.1.0/bin:$PATH