SDXorg / test-models

A collection of System Dynamics models implemented in various environments with a canonical output
MIT License
27 stars 22 forks source link

Add a model for merged subrange #67

Closed enekomartinmartinez closed 3 years ago

enekomartinmartinez commented 3 years ago

Tests when merging subranges (failing in PySD)

Layers:
    Layer1, Layer2, Layer3, Layer4
    ~~|

upper: 
    Layer1, Layer2, Layer3
    ~~|

var[upper] = 
    whatever[upper]

var[Layer4] = 
    0
enekomartinmartinez commented 3 years ago

Second model added for subscripting duplicated coords (also falling on PySD)

dim:
        A, B, C
        ~~ |

dim1:
        A, B, C
        ~~|

sub[dim]=
        variable[dim,B]
        ~~ |

sub1[dim]=
        variable[C,dim]
        ~~|

variable[dim,dim1]=
        1,2,3;
        4,5,6;
        7,8,9;
        ~~ |