From ad2fdabac9cef29b5da591bc63b9d8e520909033 Mon Sep 17 00:00:00 2001 From: philippun Date: Thu, 3 Aug 2023 16:52:16 +0200 Subject: [PATCH] commentary --- include/tug/Boundary.hpp | 3 +-- include/tug/Grid.hpp | 10 +++++----- include/tug/Simulation.hpp | 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/include/tug/Boundary.hpp b/include/tug/Boundary.hpp index bf1d6a9..b38024a 100644 --- a/include/tug/Boundary.hpp +++ b/include/tug/Boundary.hpp @@ -66,8 +66,7 @@ class Boundary { /** * @brief Construct a new Boundary object * - * @param grid - * @param type + * @param grid */ Boundary(Grid grid); diff --git a/include/tug/Grid.hpp b/include/tug/Grid.hpp index 2188f62..72f68d5 100644 --- a/include/tug/Grid.hpp +++ b/include/tug/Grid.hpp @@ -6,10 +6,10 @@ class Grid { public: /** - * @brief Construct a new Grid object - * - * @param col - */ + * @brief Construct a new 1D Grid object, which represents the fields holding the concentrations. + * + * @param col Defines the length of the grid in terms of cells. Input must be an integer > 3. + */ Grid(int col); /** @@ -33,7 +33,7 @@ class Grid { /** * @brief Get the Concentrations object * - * @return auto + * @return MatrixXd */ MatrixXd getConcentrations(); diff --git a/include/tug/Simulation.hpp b/include/tug/Simulation.hpp index a3cee5a..3d123b7 100644 --- a/include/tug/Simulation.hpp +++ b/include/tug/Simulation.hpp @@ -4,8 +4,8 @@ using namespace std; enum APPROACH { - FTCS_APPROACH, - BTCS_APPROACH + FTCS_APPROACH, // Forward Time-Centered Space + BTCS_APPROACH // Backward Time-Centered Space }; enum CSV_OUTPUT { @@ -23,7 +23,7 @@ enum CONSOLE_OUTPUT { enum TIME_MEASURE { TIME_MEASURE_OFF, // do not print any time measures - TIME_MEASURE_ON, // print one time measure after all iterations + TIME_MEASURE_ON, // print time measure after last iteration TIME_MEASURE_VERBOSE // print time measures after each iteration };