-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement the <-> subscript alias operator (#80)
Fixes #78
- Loading branch information
1 parent
51691e7
commit a43917f
Showing
9 changed files
with
208 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
e[F1] | ||
0 10 | ||
e[F2] | ||
0 20 | ||
e[F3] | ||
0 30 | ||
f[F1] | ||
0 1 | ||
f[F2] | ||
0 2 | ||
f[F3] | ||
0 3 | ||
FINAL TIME | ||
0 1 | ||
INITIAL TIME | ||
0 0 | ||
SAVEPER | ||
0 1 | ||
1 1 | ||
TIME STEP | ||
0 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{UTF-8} | ||
DimE <-> DimF ~~| | ||
DimF: F1, F2, F3 ~~| | ||
|
||
e[DimE] = 10, 20, 30 ~~~:SUPPLEMENTARY| | ||
f[DimF] = 1, 2, 3 ~~~:SUPPLEMENTARY| | ||
|
||
INITIAL TIME = 0 ~~| | ||
FINAL TIME = 1 ~~| | ||
TIME STEP = 1 ~~| | ||
SAVEPER = TIME STEP ~~| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
_dime: | ||
{ | ||
modelName: 'DimE', | ||
modelValue: [ 'F1', 'F2', 'F3' ], | ||
modelMappings: [], | ||
name: '_dime', | ||
value: [ '_f1', '_f2', '_f3' ], | ||
size: 3, | ||
family: '_dime', | ||
mappings: {} | ||
} | ||
|
||
_dimf: | ||
{ | ||
modelName: 'DimF', | ||
modelValue: [ 'F1', 'F2', 'F3' ], | ||
modelMappings: [], | ||
name: '_dimf', | ||
value: [ '_f1', '_f2', '_f3' ], | ||
size: 3, | ||
family: '_dime', | ||
mappings: {} | ||
} | ||
|
||
_f1: | ||
{ name: '_f1', value: 0, size: 1, family: '_dime', mappings: {} } | ||
|
||
_f2: | ||
{ name: '_f2', value: 1, size: 1, family: '_dime', mappings: {} } | ||
|
||
_f3: | ||
{ name: '_f3', value: 2, size: 1, family: '_dime', mappings: {} } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
e[DimE]: const (non-apply-to-all) | ||
= 10,20,30 | ||
refId(_e[_f1]) | ||
families(_dime) | ||
subscripts(_f1) | ||
separationDims(_dime) | ||
hasInitValue(false) | ||
|
||
e[DimE]: const (non-apply-to-all) | ||
= 10,20,30 | ||
refId(_e[_f2]) | ||
families(_dime) | ||
subscripts(_f2) | ||
separationDims(_dime) | ||
hasInitValue(false) | ||
|
||
e[DimE]: const (non-apply-to-all) | ||
= 10,20,30 | ||
refId(_e[_f3]) | ||
families(_dime) | ||
subscripts(_f3) | ||
separationDims(_dime) | ||
hasInitValue(false) | ||
|
||
f[DimF]: const (non-apply-to-all) | ||
= 1,2,3 | ||
refId(_f[_f1]) | ||
families(_dime) | ||
subscripts(_f1) | ||
separationDims(_dimf) | ||
hasInitValue(false) | ||
|
||
f[DimF]: const (non-apply-to-all) | ||
= 1,2,3 | ||
refId(_f[_f2]) | ||
families(_dime) | ||
subscripts(_f2) | ||
separationDims(_dimf) | ||
hasInitValue(false) | ||
|
||
f[DimF]: const (non-apply-to-all) | ||
= 1,2,3 | ||
refId(_f[_f3]) | ||
families(_dime) | ||
subscripts(_f3) | ||
separationDims(_dimf) | ||
hasInitValue(false) | ||
|
||
FINAL TIME: const | ||
= 1 | ||
refId(_final_time) | ||
hasInitValue(false) | ||
|
||
INITIAL TIME: const | ||
= 0 | ||
refId(_initial_time) | ||
hasInitValue(false) | ||
|
||
SAVEPER: aux | ||
= TIME STEP | ||
refId(_saveper) | ||
hasInitValue(false) | ||
refs(_time_step) | ||
|
||
Time: const | ||
= | ||
refId(_time) | ||
hasInitValue(false) | ||
|
||
TIME STEP: const | ||
= 1 | ||
refId(_time_step) | ||
hasInitValue(false) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters