Skip to content

Commit

Permalink
all instances of normalToricVariety now have CoefficientRing
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlin-Mallory authored and mahrud committed Aug 29, 2024
1 parent 0f6ae45 commit 57446be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions M2/Macaulay2/packages/NormalToricVarieties/ToricVarieties.m2
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ regularSubdivisionLocal (NormalToricVariety, List, List) := (X,s,w) -> (
coneList = drop (coneList,{k,k}) | coneList')
);
if coneList == max X then return X;
Y := normalToricVariety (rayList, coneList);
Y := normalToricVariety (rayList, coneList, CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable);
Y.cache.Weights = apply (#rayList, i -> wtg i);
Y
);
Expand Down Expand Up @@ -693,13 +693,13 @@ toricBlowup (List, NormalToricVariety, List) := NormalToricVariety => (s, X, v)
if member (s#0,t) then continue
else sort (t | s)
);
return normalToricVariety (rays X, coneList | coneList')
return normalToricVariety (rays X, coneList | coneList', CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable)
);
coneList' = for t in clStar list (
if all (s, i -> member (i,t)) then continue
else t | {n}
);
Z := normalToricVariety (rays X | {v}, coneList | coneList', CoefficientRing => X.cache.CoefficientRing);
Z := normalToricVariety (rays X | {v}, coneList | coneList', CoefficientRing => X.cache.CoefficientRing, Variable => X.cache.Variable);
Z.cache.toricBlowup = X;
Z
);
Expand Down

0 comments on commit 57446be

Please sign in to comment.