Skip to content

Commit

Permalink
Add executable for 1D heat problem
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinlos committed Apr 25, 2017
1 parent 480a60c commit 6c91bcf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
15 changes: 15 additions & 0 deletions src/problems/heat/heat_1d.cpp
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit 6c91bcf

Please sign in to comment.