Skip to content

Commit

Permalink
Use 0-based indexing when exporting FMI 2.0 arrays
Browse files Browse the repository at this point in the history
in grtfmi.tlc and rtwsfcnfmi.tlc

fixes #208
  • Loading branch information
t-sommer committed Sep 14, 2020
1 parent ef5a162 commit adfc6e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions grtfmi/grtfmilib.tlc
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@
%foreach rowid = nRows
%if nCols > 1 && nRows > 1
%assign dataSubs = "[%<index>]"
%assign variableSubs = "[%<rowid+1>,%<colid+1>]"
%assign variableSubs = "[%<rowid>,%<colid>]"
%elseif width > 1
%assign dataSubs = "[%<index>]"
%assign variableSubs = "[%<index+1>]"
%assign variableSubs = "[%<index>]"
%else
%assign dataSubs = ""
%assign variableSubs = ""
Expand Down
4 changes: 2 additions & 2 deletions rtwsfcnfmi/rtwsfcnfmilib.tlc
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@
%foreach rowid = nRows
%if nCols > 1 && nRows > 1
%assign dataSubs = "[%<index>]"
%assign variableSubs = "[%<rowid+1>,%<colid+1>]"
%assign variableSubs = "[%<rowid>,%<colid>]"
%elseif width > 1
%assign dataSubs = "[%<index>]"
%assign variableSubs = "[%<index+1>]"
%assign variableSubs = "[%<index>]"
%else
%assign dataSubs = ""
%assign variableSubs = ""
Expand Down

0 comments on commit adfc6e6

Please sign in to comment.