This project implements a hybrid Finite Volume (FV) / Discontinuous Galerkin (DG) solver for the 1D Linear Advection equation.
- Language: C++17.
- Style:
- Use
snake_casefor variables and functions. - Use
PascalCasefor classes. - Use
constcorrectness wherever possible. - Use
std::vectorfor dynamic arrays.
- Use
- Documentation:
- All headers (
.hpp) should have include guards (#pragma onceor standard#ifndef). - Classes and complex functions should have brief comments explaining their purpose.
- All headers (
- Verification:
- Always compile out-of-source:
mkdir build && cd build && cmake .. && make. - Run the Python plotting script to verify numerical results visually.
- Always compile out-of-source:
src/: Source files (.cpp).include/: Header files (.hpp).scripts/: Python visualization scripts.tests/: Unit tests (if any).
mkdir build
cd build
cmake ..
make./hybrid_solver
python3 ../scripts/plot_results.py