Skip to content

Commit

Permalink
fix: emit any expression for the offset arg of VECTOR ELM MAP (#129)
Browse files Browse the repository at this point in the history
Fixes #128
  • Loading branch information
ToddFincannon authored Oct 8, 2021
1 parent 93a49cf commit bd0a724
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 156 deletions.
9 changes: 9 additions & 0 deletions models/vector/vector.dat
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,12 @@ x[four]
0 4
x[five]
0 5
y[A1]
0 3
1 3
y[A2]
0 4
1 4
y[A3]
0 5
1 5
26 changes: 26 additions & 0 deletions models/vector/vector.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,33 @@ v = VMAX(x[SubX!]) ~~|
w = VMIN(x[DimX!]) ~~|
x[DimX] = 1, 2, 3, 4, 5 ~~|

y[DimA] = VECTOR ELM MAP(x[three], (DimA - 1)) ~~|

INITIAL TIME = 0 ~~|
FINAL TIME = 1 ~~|
TIME STEP = 1 ~~|
SAVEPER = TIME STEP ~~|

\\\---/// Sketch information - do not modify anything except names
V300 Do not put anything below this section - it will be ignored
*View 1
$0-0-0,0,|0||0-0-0|0-0-0|0-0-0|0-0-0|0-0-0|0,0,100,0
///---\\\
:L<%^E!@
9:vector
15:0,0,0,0,0,0
19:100,0
27:2,
34:0,
5:FINAL TIME
35:Date
36:YYYY-MM-DD
37:2000
38:1
39:1
40:2
41:0
42:1
24:0
25:0
26:0
Loading

0 comments on commit bd0a724

Please sign in to comment.