aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/CodeGen/Calculation.m8
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},