Skip to content
Snippets Groups Projects
Commit 8a7d4331 authored by Estelle Baup's avatar Estelle Baup
Browse files

final modif

parent 1478d6b4
No related branches found
No related tags found
No related merge requests found
......@@ -23,9 +23,9 @@ public:
/// Simple destructor
virtual ~RungeKuttaSolver() {}
/// This sets the order of the solver
void SetType(const int order) {order_ = order;};
void SetOrder(const int order) {order_ = order;};
/// This is a simple accessor to the order
int GetType() const {return order_;};
int GetOrder() const {return order_;};
protected:
double step(double y, double t) override;
......
......@@ -102,7 +102,7 @@ TEST_F(ModelProblemTest, RK) {
int numSteps = solver.results.size();
// Loop over the defined orders (2,3,4)
for (int order = 2; order <=4; ++order) {
solver.SetType(order);
solver.SetOrder(order);
double t = initialTime;
for (int i = 0; i < numSteps; ++i, t += stepSize) {
double exp_val = AnalyticalSolutionModel(t, initialValue, k_test);
......
......@@ -80,7 +80,7 @@ TEST_F(PolyRHSTest, RK) {
int numSteps = solver.results.size();
// Loop over the defined orders (2,3,4)
for (int order = 2; order <=4; ++order) {
solver.SetType(order);
solver.SetOrder(order);
double t = initialTime;
for (int i = 0; i < numSteps; ++i, t += stepSize) {
double exp_val = AnalyticalSolutionPoly(t, initialValue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment