... | ... | @@ -115,12 +115,23 @@ Edit /etc/wsl.conf (create it if it doesn't exist). Add the following: |
|
|
options = "metadata"
|
|
|
```
|
|
|
|
|
|
* Compile and run a test:
|
|
|
# Compile and run a test:
|
|
|
```
|
|
|
cd DUMUX/dumux/build-cmake/test/porousmediumflow/2p/implicit/incompressible/ make test_2p_incompressible_tpfa ./test_2p_incompressible_tpfa
|
|
|
```
|
|
|
|
|
|
## Explorer
|
|
|
# Start working with your files
|
|
|
|
|
|
Start the Explorer directly from the WSL.
|
|
|
From anywhere in the Linux subsystem, you can open an Explorer:
|
|
|
```
|
|
|
explorer.exe .
|
|
|
```
|
|
|
|
|
|
This Explorer is of course the native Windows Explorer but it runs
|
|
|
extensions that make your files inside the WSL accessible from Windows.
|
|
|
You will find them in the networking-drive.
|
|
|
|
|
|
|
|
|
## Editor
|
|
|
|
... | ... | @@ -131,81 +142,34 @@ vim # or |
|
|
vim your_chosen_filename
|
|
|
```
|
|
|
|
|
|
If it is not yet installed you can install it by:
|
|
|
|
|
|
In a similiar way as mentioned above for vim you could install other editors which work in the terminal like nano, emacs and many more.
|
|
|
```
|
|
|
sudo apt install vim
|
|
|
sudo apt install emacs # or
|
|
|
sudo apt install nano
|
|
|
```
|
|
|
|
|
|
In a similiar way you can install and use other editors which work in the terminal like nano, emacs and many more.
|
|
|
|
|
|
Another choice would be to install an editor inside Windows which runs there nativly, but not WSL. Choose the well known Windows-variant of [kate](https://en.wikipedia.org/wiki/Kate\_(text_editor)) from [this site](https://kate-editor.org/de/get-it/).
|
|
|
|
|
|
Or you can also use [Notepad++](https://en.wikipedia.org/wiki/Notepad%2B%2B) from the Windows store or from [this site](https://notepad-plus-plus.org/) or something else.
|
|
|
|
|
|
## Starting Windows native tools from within the WSL
|
|
|
|
|
|
## Integrated Development Environment (IDE)
|
|
|
|
|
|
An IDE is s solution for code-browsing, editing, compiling, debugging code and at times also for version control. You do not have to use all functions, you can use it just as an editor.
|
|
|
|
|
|
Visual Studio Code is one popular IDE for C++ Developers. Install the Windows-Version:
|
|
|
|
|
|
* Download and install from [https://code.visualstudio.com/](https://code.visualstudio.com/).
|
|
|
* Once VS-Code is started, install the VS-Code the "Remote - WSL" extension. Check the [features](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl).
|
|
|
|
|
|
Visual Studio Code likely takes some resources like system memory or CPU. So it can be an inappropriate choice for systems, which do not have enough.
|
|
|
|
|
|
### Visualization or Plotting Tool
|
|
|
## Visualization or Plotting Tools
|
|
|
|
|
|
Install [Paraview](https://www.paraview.org/download/) for Windows. Do not select on this page the suggested latest paraview release candidate. Select the latest stable release for your processor (likely amd64-bit-architecture without MPI support fits best).
|
|
|
|
|
|
Paraview might not be the right choice on older systems. Consider then plotting with python-tools like them from jupyter-lab.
|
|
|
|
|
|
###
|
|
|
* From anywhere in the Linux subsystem, you can open an explorer:
|
|
|
```
|
|
|
|
|
|
explorer.exe .
|
|
|
|
|
|
```
|
|
|
|
|
|
You find in that instance your WSL-Files under the Networking-Shares.
|
|
|
|
|
|
|
|
|
## Install Dumux
|
|
|
|
|
|
* Download the installation script:
|
|
|
```
|
|
|
|
|
|
wget https://git.iws.uni-stuttgart.de/dumux-repositories/dumux/-/raw/master/bin/installdumux.py
|
|
|
|
|
|
```
|
|
|
* Execute:
|
|
|
```
|
|
|
|
|
|
python3 ./installdumux.py
|
|
|
|
|
|
```
|
|
|
__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
|
|
|
```
|
|
|
|
|
|
sudo umount /mnt/c sudo mount -t drvfs C: /mnt/c -o metadata
|
|
|
|
|
|
```
|
|
|
prior to running the installation script (with respective drive letter).
|
|
|
|
|
|
* Compile and run a test:
|
|
|
```
|
|
|
## Integrated Development Environment (IDE)
|
|
|
|
|
|
cd DUMUX/dumux/build-cmake/test/porousmediumflow/2p/implicit/incompressible/ make test_2p_incompressible_tpfa ./test_2p_incompressible_tpfa
|
|
|
An IDE is s solution for code-browsing, editing, compiling, debugging code and at times also for version control. You do not have to use all functions, you can use it just as an editor.
|
|
|
|
|
|
```
|
|
|
Visual Studio Code is one popular IDE for C++ Developers. Install the Windows-Version:
|
|
|
|
|
|
* Open an explorer to have access to the result files in Windows:
|
|
|
```
|
|
|
* Download and install from [https://code.visualstudio.com/](https://code.visualstudio.com/).
|
|
|
* Once VS-Code is started, install the VS-Code the "Remote - WSL" extension. Check the [features](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl).
|
|
|
|
|
|
explorer.exe .
|
|
|
Visual Studio Code likely takes some resources like system memory or CPU. So it can be an inappropriate choice for systems, which do not have enough.
|
|
|
|
|
|
```
|
|
|
``` |
|
|
\ No newline at end of file |