... | ... | @@ -54,51 +54,75 @@ With that method there exists in principle the possibility to upgrade the ubuntu |
|
|
These can be direct requirements for
|
|
|
|
|
|
* Open the Linux Subsystem. Set up a new user.
|
|
|
* Update the list existing packages:
|
|
|
* Update the list existing packages and optional upgrade the set of already installed packages
|
|
|
|
|
|
```
|
|
|
sudo apt update
|
|
|
sudo apt update
|
|
|
sudo apt upgrade
|
|
|
```
|
|
|
|
|
|
* Optional upgrade the set of already installed packages (recommended)
|
|
|
* Install the necessary additional packages:
|
|
|
|
|
|
```
|
|
|
apt upgrade
|
|
|
sudo apt install build-essential gfortran cmake pkg-config python3
|
|
|
```
|
|
|
|
|
|
* Install the necessary additional packages:
|
|
|
This is the minimal set of packages that DuMux requires. You can find a more complete set in the wiki-page [Package-Names](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/wikis/Package-Names) from column for Ubuntu.
|
|
|
|
|
|
```
|
|
|
sudo apt install build-essential gfortran cmake pkg-config python3
|
|
|
apt install build-essential cmake pkg-config libopenmpi-dev openmpi-bin gfortran g++ gcc python3-dev python3-venv libsuitesparse-dev
|
|
|
|
|
|
```
|
|
|
|
|
|
This is the minimal set of packages that dumux requirers. You can find a more complete set in the wiki-page [Package-Names](https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/wikis/Package-Names) from column for Ubuntu.
|
|
|
Likely you do a git-clone of the repository, therefore install also git.
|
|
|
And for downloading from scripts like installdumux.py you might need wget.
|
|
|
It is not too bad to have a command-line text editor inside the WSL.
|
|
|
|
|
|
Likely you do a git-clone of the repository, therefore install also git:
|
|
|
```
|
|
|
sudo apt install git wget vim
|
|
|
```
|
|
|
|
|
|
# Download the code and make a compiler run
|
|
|
|
|
|
Although you might not yet now very familiar with the Ubuntu inside the WSL especially working with files. Lets create some files by installing DuMuX.
|
|
|
(These steps here are those from [getting started](). You find more details in that document.)
|
|
|
|
|
|
* Download the installation script:
|
|
|
```
|
|
|
sudo apt install git
|
|
|
|
|
|
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/raw/master/bin/installdumux.py
|
|
|
|
|
|
```
|
|
|
* Execute:
|
|
|
```
|
|
|
|
|
|
And for downloading from scripts like installdumux.py you might need wget:
|
|
|
python3 ./installdumux.py
|
|
|
|
|
|
```
|
|
|
sudo apt install wget
|
|
|
__Note__: On some systems, the `git clone` command executed by the installation script
|
|
|
fails due to permission issues. This [may be fixed](https://askubuntu.com/a/1118158) by executing
|
|
|
```
|
|
|
|
|
|
It is not too bad to have a command-line text editor inside the WSL:
|
|
|
sudo umount /mnt/c sudo mount -t drvfs C: /mnt/c -o metadata
|
|
|
|
|
|
```
|
|
|
sudo apt install vim
|
|
|
prior to running the installation script (with respective drive letter).
|
|
|
This issue exists especially if you have chosen to work from WSL inside your file-structures of windows-drives known with letters. If you do that consider the permanent setting inside WSL:
|
|
|
```
|
|
|
Edit /etc/wsl.conf (create it if it doesn't exist). Add the following:
|
|
|
|
|
|
You might consider a more complete package set for DuMux
|
|
|
[automount]
|
|
|
options = "metadata"
|
|
|
```
|
|
|
|
|
|
You can now provided that you have already enou
|
|
|
* Compile and run a test:
|
|
|
```
|
|
|
cd DUMUX/dumux/build-cmake/test/porousmediumflow/2p/implicit/incompressible/ make test_2p_incompressible_tpfa ./test_2p_incompressible_tpfa
|
|
|
```
|
|
|
|
|
|
## further additions to your working environment (Windows and WSL)
|
|
|
## Explorer
|
|
|
|
|
|
### Editor
|
|
|
## Editor
|
|
|
|
|
|
* You need an editor for writing your codelines. Depending on your resources and what you intend to do you have several choices. A fairly wide spread editor in the Linux world with different modes but with a steep learning curve [vim](https://en.wikipedia.org/wiki/Vim\_(text_editor)) is provided inside the WSL. You can start it by typing
|
|
|
|
... | ... | |