Go to file
Janita Willumsen 6f5b947239 Finish project
2023-09-25 13:15:43 +02:00
doc/html Update documentation 2023-09-24 16:02:40 +02:00
include Update documentation 2023-09-24 16:02:40 +02:00
latex Finish project 2023-09-25 13:15:43 +02:00
src Include analytic vector in plot 2023-09-25 13:11:04 +02:00
.gitignore Add Doxyfile 2023-09-20 16:42:08 +02:00
compile_flags.txt Add include dir to remove neovim errors 2023-09-14 14:53:39 +02:00
Makefile Create Makefiles for easier compilation 2023-09-24 15:39:37 +02:00
README.md Create Makefiles for easier compilation 2023-09-24 15:39:37 +02:00

Project 2

Practical information

Compile and run C++ programs

Compiling and linking is done using Make, make sure you are in the root folder. To create executable files, run shell commands

cd src/
make

To run script-name

./main

There are two ways of compiling the code.

The first way is to go into the src directory and compile

    cd src && make

or you could use make in the project directory

    make code

and it will compile everything with you needing to move into src.

You can run any of the compiled programs by going into the src directory and then doing

    ./program-name

Generate plots

To generate plots, you can do

python3 plot.py

and the plots will be saved inside latex/images.

Generate documentation

For this project, we have used Doxygen to generate some nice and readable documentation for the C++ code.

If you want to generate the documentation you can do

    make docs

in the project root, and the documentation will be made into the docs directory.

Generate project document

If you want to recompile the Pdf file, you can do

    make latex

and a Pdf file will be produced inside the latex directory.