Philosophy of examples and how to run them
The essence of our examples is to present the functionality of the library in an accessible and digestible manner. The examples present different solutions to problems ranging in difficulty from the simple Poisson's equation to Fluid mechanics. Accompanying each example are Matlab scripts which were used to produce the figures the reader meets throughout this section, both the scripts and examples are made to work as is, so the reader can simply run the examples on their machine.
The building is done in the `build/` directory. When you are in the folder where your example is located, run
mkdir -p build # creates the directory build, of it does not exist
cd build # goes to that directory
cmake .. # creates Makefiles
make example # builds your example
to compile your example. Note that you only have to run cmake once, after that only make is sufficient. Compiled binaries are placed into `bin/` folder and libraries are placed into `lib/` folder.
To build all examples target you can just run (after running cmake at least once)
make all
To run the built example, go back to the examples folder and run
./bin/example
TODO: kje so outputi, kje so plot skripte...