Commit 19edf3ec authored by Timo Koch's avatar Timo Koch
Browse files

[changelog] Add remark on pip installation

parent 63561b20
......@@ -24,6 +24,25 @@ Differences Between DuMu<sup>x</sup> 3.3 and DuMu<sup>x</sup> 3.2
- run `python3 dune-common/bin/`
- adapt your PYTHONPATH environment variable as described [here](
- __Obtain DuMux via pip__: The Dumux source code can now be installed using `pip install dumux`. This works for the Python bindings as well as the C++ source code. Matching Dune modules are also installed. Currently not all dune modules have Python packages available. We recommend trying this new feature in a virtual environment by typing
python3 -m virtualenv venv
source venv/bin/activate
pip install dumux
To test the setup you can use the following Python script
from dune.grid import structuredGrid
from dumux.discretization import GridGeometry
gridView = structuredGrid([0,0],[1,1],[5,5])
gridGeometry = GridGeometry(gridView, discMethod="cctpfa")
print("The total number of scvs is {}".format(gridGeometry.numScv()))
print("The total number of scvfs is {}".format(gridGeometry.numScvf()))
- __fmt-library__: We now include a basic version of the [fmt-library]( which implements `std::format` (coming with C++20) without the need for C++20.
In order to use this, include `<dumux/io/format.hh>`. `format`, `format_to`, `format_to_n`, `formatted_size` are available in the `Dumux::Fmt` namespace.
The string formatting is documented [here]( and follows the Python string formatting rules.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment