Skip to content

Commit

Permalink
KrancScript.m: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Feb 21, 2014
1 parent 5296fd9 commit 35ccdb3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/CodeGen/KrancScript.m
Expand Up @@ -216,6 +216,8 @@

ToExpression[dname][Pattern[Evaluate[ind],_]] -> (rhsEval/.{spacing[1]->spacing[ind],shift[1]->shift[ind]})];

(* Differencing operators *)

process["tensor"["name"[k_],
"indices"[a___,
pos_["index_expr"[sym:"index_symbol"[i_],
Expand All @@ -225,6 +227,8 @@
process["tensor"["name"[k],
"indices"[a,pos[sym],b]]]);

(* TODO: support multi-dimensional grid function accesses, i.e. v_(i+1,j) *)

process["tensor"["name"[k_],
"indices"[a___,
pos_["index_expr"[sym:"index_symbol"[___]]],
Expand Down

0 comments on commit 35ccdb3

Please sign in to comment.