From 3fbfd989b2e292701b3c5a3d33ac56863c0fcc22 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Wed, 13 Mar 2024 12:49:41 +0100 Subject: [PATCH] Output simulation parameters to console at start Signed-off-by: Christoph Niethammer --- sequential.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sequential.cpp b/sequential.cpp index 40c7dad..14a487d 100644 --- a/sequential.cpp +++ b/sequential.cpp @@ -31,6 +31,17 @@ int main() int dt = 100000; double h = 0.007; + + std::cout << "--------------------------------------------------" << std::endl; + std::cout << "Simulation parameters" << std::endl; + std::cout << "--------------------------------------------------" << std::endl; + std::cout << "l: " << l << std::endl; + std::cout << "dx: " << dx << std::endl; + std::cout << "kmax: " << kmax << std::endl; + std::cout << "dt: " << dt << std::endl; + std::cout << "h: " << h << std::endl; + std::cout << "--------------------------------------------------" << std::endl; + // Stores the approximated values for each step double Q[kmax][dt]; double P[kmax][dt];