[Dune] Dune on Windows: yet another possibility

Bernd Flemisch bernd at iws.uni-stuttgart.de
Fri Oct 28 10:56:44 CEST 2016


Dear Dune,

with Windows 10, there is a new possibility to run Dune on Windows: the 
Windows Subsystem for Linux. Maybe this is interesting for some of you, 
so I just share my experiences in form of a step-by-step procedure.

1. Install the Windows Subsystem for Linux, following, for example,
www.howtogeek.com/249966/how-to-install-and-use-the-linux-bash-shell-on-windows-10/
Since my WIndows talks German to me, I found this one more helpful
http://winfuture.de/videos/Software/So-aktivieren-Sie-die-Ubuntu-Bash-in-Windows-10-16048.html
This will give you an Ubuntu bash shell.

2. Install dependencies. For a first try, this summed up to
sudo apt-get install gcc g++ cmake pkg-config git
Unfortunately, it only gave me gcc 4.8.

3. Get Dune. Since the offered packages are only Dune 2.2, I took the 
2.4 release branches from GitLab. I had to go the ssh way since a 
"handshake" failed for https.
a) ssh-keygen -t rsa
Make the public key (.ssh/id_rsa.pub) known to your Dune GitLab account.

b) I generated a Dune folder in a standard Windows directory 
/mnt/c/Users/bernd... and then
for MOD in common geometry grid localfunctions istl; do
git clone -b releases/2.4 
ssh://git@gitlab.dune-project.org:22022/core/dune-$MOD.git;
done

4. Build and run the usual way.

5. Result files appear in the corresponding Windows folder and can be 
post-processed by, for example, Windows' paraview.

Kind regards
Bernd

-- 
_______________________________________________________________

Bernd Flemisch                         phone: +49 711 685 69162
IWS, Universität Stuttgart             fax:   +49 711 685 60430
Pfaffenwaldring 61            email: bernd at iws.uni-stuttgart.de
D-70569 Stuttgart            url: www.hydrosys.uni-stuttgart.de
_______________________________________________________________





More information about the Dune mailing list