From 6c91bcf0580dcc4bf9a2638df3b49e21808e63ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=81o=C5=9B?= Date: Tue, 25 Apr 2017 22:29:59 +0200 Subject: [PATCH] Add executable for 1D heat problem --- CMakeLists.txt | 3 +++ src/problems/heat/heat_1d.cpp | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/problems/heat/heat_1d.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index ebba81fe..1717a0da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,6 +119,9 @@ if (NOT SKIP_PROBLEMS) src/problems/validation/main.cpp) endif() + define_problem(heat_1d + src/problems/heat/heat_1d.cpp) + define_problem(heat_3d src/problems/heat/heat_3d.cpp) diff --git a/src/problems/heat/heat_1d.cpp b/src/problems/heat/heat_1d.cpp new file mode 100644 index 00000000..775ababa --- /dev/null +++ b/src/problems/heat/heat_1d.cpp @@ -0,0 +1,15 @@ +#include "problems/heat/heat_1d.hpp" + +using namespace ads; +using namespace ads::problems; + + +int main() { + dim_config dim{ 2, 16 }; + timesteps_config steps{ 10, 1e-5 }; + int ders = 1; + + config_1d c{dim, steps, ders}; + heat_1d sim{c}; + sim.run(); +}