Skip to content

Commit

Permalink
CodeGenCalculation.m: Move code closer to where it is used
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Feb 20, 2014
1 parent 46d1102 commit 7514f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/CodeGen/CodeGenCalculation.m
Expand Up @@ -309,7 +309,6 @@ General Utility Functions (could be moved outside this package)
odeGroups = lookupDefault[cleancalc, ODEGroups, {}];
If[useJacobian, groups = Join[groups, JacobianGroups[]]];
pddefs = lookupDefault[cleancalc, PartialDerivatives, {}];
where = lookupDefault[cleancalc, Where, Everywhere];
addToStencilWidth = lookupDefault[cleancalc, AddToStencilWidth, 0];
pDefs = lookup[cleancalc, PreDefinitions];
haveCondTextuals = mapContains[cleancalc, ConditionalOnTextuals];
Expand Down Expand Up @@ -351,6 +350,7 @@ General Utility Functions (could be moved outside this package)
If[!VectorQ[stencilSize],
stencilSize = MapThread[Max,Map[Last,stencilSize[[2]]]]];

where = GetCalculationWhere[cleancalc];
If[where === Automatic,
where = If[MatchQ[stencilSize, {0,0,0}] =!= True, Interior, Everywhere]];

Expand Down

0 comments on commit 7514f15

Please sign in to comment.