Skip to content

Commit

Permalink
feat: increase the number of dimension and array loop index vars (#138)
Browse files Browse the repository at this point in the history
Fixes #137
  • Loading branch information
ToddFincannon authored Oct 14, 2021
1 parent bad4580 commit 4c66470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EquationGen.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export default class EquationGen extends ModelReader {
// The model directory is required when reading data files for GET DIRECT DATA.
this.modelDirname = modelDirname
// Maps of LHS subscript families to loop index vars for lookup on the RHS
this.loopIndexVars = new LoopIndexVars(['i', 'j', 'k'])
this.arrayIndexVars = new LoopIndexVars(['v', 'w'])
this.loopIndexVars = new LoopIndexVars(['i', 'j', 'k', 'l', 'm'])
this.arrayIndexVars = new LoopIndexVars(['u', 'v', 'w', 's', 't', 'f', 'g', 'h', 'o', 'p', 'q', 'r'])
// The LHS for array variables includes subscripts in normal form.
this.lhs = this.var.varName + this.lhsSubscriptGen(this.var.subscripts)
// formula expression channel
Expand Down

0 comments on commit 4c66470

Please sign in to comment.