Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pcsc Project
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Estelle Baup
Pcsc Project
Commits
8a7d4331
Commit
8a7d4331
authored
1 month ago
by
Estelle Baup
Browse files
Options
Downloads
Patches
Plain Diff
final modif
parent
1478d6b4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/RungeKuttaSolver.h
+2
-2
2 additions, 2 deletions
include/RungeKuttaSolver.h
test/model_problem_test.cc
+1
-1
1 addition, 1 deletion
test/model_problem_test.cc
test/polynomial_test.cc
+1
-1
1 addition, 1 deletion
test/polynomial_test.cc
with
4 additions
and
4 deletions
include/RungeKuttaSolver.h
+
2
−
2
View file @
8a7d4331
...
...
@@ -23,9 +23,9 @@ public:
/// Simple destructor
virtual
~
RungeKuttaSolver
()
{}
/// This sets the order of the solver
void
Set
Type
(
const
int
order
)
{
order_
=
order
;};
void
Set
Order
(
const
int
order
)
{
order_
=
order
;};
/// This is a simple accessor to the order
int
Get
Type
()
const
{
return
order_
;};
int
Get
Order
()
const
{
return
order_
;};
protected
:
double
step
(
double
y
,
double
t
)
override
;
...
...
This diff is collapsed.
Click to expand it.
test/model_problem_test.cc
+
1
−
1
View file @
8a7d4331
...
...
@@ -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
.
Set
Type
(
order
);
solver
.
Set
Order
(
order
);
double
t
=
initialTime
;
for
(
int
i
=
0
;
i
<
numSteps
;
++
i
,
t
+=
stepSize
)
{
double
exp_val
=
AnalyticalSolutionModel
(
t
,
initialValue
,
k_test
);
...
...
This diff is collapsed.
Click to expand it.
test/polynomial_test.cc
+
1
−
1
View file @
8a7d4331
...
...
@@ -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
.
Set
Type
(
order
);
solver
.
Set
Order
(
order
);
double
t
=
initialTime
;
for
(
int
i
=
0
;
i
<
numSteps
;
++
i
,
t
+=
stepSize
)
{
double
exp_val
=
AnalyticalSolutionPoly
(
t
,
initialValue
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment