Skip to content

Commit

Permalink
Improve some InfoMessage's
Browse files Browse the repository at this point in the history
  • Loading branch information
barrywardell committed Mar 7, 2014
1 parent 94a030b commit c873d8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tools/CodeGen/xTensorKranc.m
Expand Up @@ -72,6 +72,7 @@

DefineTensor[t_[inds___], opts___] :=
Block[{$DefInfoQ = False},
InfoMessage[InfoFull, "Defining tensor:" <> SymbolName[t]];
DefTensor[t[inds], KrancManifold, opts];
(* Automatically convert abstract and numeric indices to basis indices *)
t[i___, j_?AbstractIndexQ, k___] := t[i, {j, KrancBasis}, k];
Expand Down Expand Up @@ -108,7 +109,7 @@
to keep track of what the numerical discretisation should be. *)
DefineDerivative[pd_, numderiv_] :=
Block[{$DefInfoQ = False},
InfoMessage[InfoFull, "Defining derivative:", pd];
InfoMessage[InfoFull, "Defining derivative:" <> SymbolName[pd]];
Module[{nd},
DefInertHead[nd];
NumericalDiscretisation[nd] ^= numderiv;
Expand Down

0 comments on commit c873d8e

Please sign in to comment.