diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-25 16:14:19 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-25 16:14:19 +0200 |
commit | dc6d57bfb43bd27a5e835f6850d6b9ae7122ce9b (patch) | |
tree | 13379680965f0b17079e2638085245c3a921e8c9 /Tools | |
parent | 32cb862d40f70ac1a799fb886e8a03969896863b (diff) |
Calculation.m: Add BoundaryCalculationQ
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/CodeGen/Calculation.m | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tools/CodeGen/Calculation.m b/Tools/CodeGen/Calculation.m index 20f3eaa..3d62c37 100644 --- a/Tools/CodeGen/Calculation.m +++ b/Tools/CodeGen/Calculation.m @@ -36,6 +36,7 @@ SeparateDerivatives; AddCondition; AddConditionSuffix; InNewScheduleGroup; +BoundaryCalculationQ; Begin["`Private`"]; @@ -105,6 +106,13 @@ DefFn[ lookup[calc,Where, Everywhere]]; DefFn[ + BoundaryCalculationQ[calc_List] := + (* NB: CaKernel does not distinguish between these two. It + ALWAYS computes everywhere that it can, based on the stencil + description. *) + MemberQ[{Boundary,BoundaryWithGhosts}, GetCalculationWhere[calc]]]; + +DefFn[ CalculationStencilSize[calc_List] := Module[ {pddefs,eqs}, |