Skip to content

giboul/windows_clawpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Installing Clawpack on windows with WSL

1. Install WSL

Open your command prompt and type the following to create an Ubuntu instance on your machine :

wsl --install -d Ubuntu

You 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.

2. Install dependencies

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-dev

Then 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=clawpack

3. Open a project in VScode with WSL

You 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages