-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem.cpp
More file actions
42 lines (29 loc) · 764 Bytes
/
Copy pathproblem.cpp
File metadata and controls
42 lines (29 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <iostream>
#include "problem.h"
//constructeur problem
void problem::solve()
{
Timer temp_exec;
temp_exec.start();
m_equation.compute_initial_condition(time->get_t_init(),var);
for (double i=time->get_t_init() ; i<= time->get_f_fin() ; i+=time->get_step())
{
m_equation.compute(i,time->get_step(), var,*time);
}
temp_exec.stop();
var.print();
temp_exec.print();
}
// accesseurs
equation problem::get_m_equation()
{
return m_equation;
}
ITimeDiscretization* problem::get_time()
{
return time;
}
Variable problem::get_var()
{
return var ;
}