Open your command prompt and type the following to create an Ubuntu instance on your machine :
wsl --install -d UbuntuYou will have to define a username and a password that you should not forget.
See the tutorial online: https://learn.microsoft.com/en-us/windows/wsl/install.
Execute the following in your bash sell from WSL to install the Fortran compiler, the make tools and python tools for virtual environements.
sudo apt update
sudo apt upgrade
sudo apt install make
sudo apt install gfortran
sudo apt install liblapack-dev libopenblas-dev
sudo apt install python3 python3-venv
sudo apt install python3-devThen create your virtual environment and install all necessary packages.
python3 -m venv claw
export CLAW=$PWD/claw/src/clawpack
echo "export CLAW=$CLAW" >> $PWD/claw/bin/activate
source claw/bin/activate
pip install --upgrade pip
pip install meson-python ninja pkgconfig scipy matplotlib
pip install --no-build-isolation -e git+https://github.com/clawpack/[email protected]#egg=clawpackYou can find the official tutorials online: https://learn.microsoft.com/en-us/training/modules/developing-in-wsl/?source=recommendations.
Open any folder in \\wsl.localhost\Ubuntu\home\<username> and open a terminal. It should run with WSL by default. If it is not the case, open a new one and specify 'Ubuntu (WSL)'. Be sure to activate your virtual environment source path_to_claw_venv/bin/activate before running clawpack.