Skip to content

Commit

Permalink
fix: fix LOOKUP FORWARD to correctly handle fractional inputs (#38)
Browse files Browse the repository at this point in the history
Fixes #36
  • Loading branch information
chrispcampbell authored Sep 12, 2020
1 parent afdbb77 commit c1f9580
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 66 deletions.
238 changes: 209 additions & 29 deletions models/lookup/lookup.dat
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ b
6 0
7 1.19209e-08
8 0.1
9 0.899999
9 0.9
10 -1
d
0 0
Expand Down Expand Up @@ -72,7 +72,43 @@ f
10 20
FINAL TIME
0 10
g1
g at 0 backward
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
g at 0 forward
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
g at 0pt5 backward
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
g at 0pt5 forward
0 1
1 1
2 1
Expand All @@ -84,31 +120,19 @@ g1
8 1
9 1
10 1
g2
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
g3
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
g4
g at 1pt0 backward
0 1
1 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
g at 1pt0 forward
0 1
1 1
2 1
Expand All @@ -120,7 +144,7 @@ g4
8 1
9 1
10 1
g5
g at 1pt5 backward
0 1
1 1
2 1
Expand All @@ -132,7 +156,31 @@ g5
8 1
9 1
10 1
g6
g at 1pt5 forward
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
g at 2pt0 backward
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
g at 2pt0 forward
0 2
1 2
2 2
Expand All @@ -144,6 +192,54 @@ g6
8 2
9 2
10 2
g at 2pt5 backward
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
g at 2pt5 forward
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
g at minus 1 backward
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
g at minus 1 forward
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
i
0 0
1 0.1
Expand Down Expand Up @@ -172,3 +268,87 @@ SAVEPER
10 1
TIME STEP
0 1
withlookup at 0
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
withlookup at 0pt5
0 0.5
1 0.5
2 0.5
3 0.5
4 0.5
5 0.5
6 0.5
7 0.5
8 0.5
9 0.5
10 0.5
withlookup at 1pt0
0 1
1 1
2 1
3 1
4 1
5 1
6 1
7 1
8 1
9 1
10 1
withlookup at 1pt5
0 1.5
1 1.5
2 1.5
3 1.5
4 1.5
5 1.5
6 1.5
7 1.5
8 1.5
9 1.5
10 1.5
withlookup at 2pt0
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
withlookup at 2pt5
0 2
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 2
10 2
withlookup at minus 1
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
Loading

0 comments on commit c1f9580

Please sign in to comment.