From d152828f2d3023a2d5c327a0a4517839b972217e Mon Sep 17 00:00:00 2001 From: Michael Reed <18372368+chakravala@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:49:56 -0400 Subject: [PATCH] fixed rare dispatch bug --- .appveyor.yml | 1 + Project.toml | 2 +- src/operations.jl | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index dc0b6aa..c35f88b 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,6 +11,7 @@ environment: - julia_version: 1.8 - julia_version: 1.9 - julia_version: 1.10 + - julia_version: 1.11 - julia_version: nightly platform: diff --git a/Project.toml b/Project.toml index feed311..666a0d5 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "DirectSum" uuid = "22fd7b30-a8c0-5bf2-aabe-97783860d07c" authors = ["Michael Reed"] -version = "0.8.14" +version = "0.8.15" [deps] ComputedFieldTypes = "459fdd68-db75-56b8-8c15-d717a790f88e" diff --git a/src/operations.jl b/src/operations.jl index a0d7a28..e7c13e0 100644 --- a/src/operations.jl +++ b/src/operations.jl @@ -343,7 +343,7 @@ for side ∈ (:left,:right) args = field ? (:g,) : () @eval begin @pure function $c(b::Submanifold{V,G,B},$(args...)) where {V,G,B} - $(c≠h ? nothing : side≠:right ? :(((!isdiag(V) && !hasconformal(V)) || $field) && (return $s(metric(b,$(args...))))) : :(((!isdiag(V) && !hasconformal(V)) || $field) && (return $(field ? :wedgedot_metric : :*)(reverse(b),V(LinearAlgebra.I)))) ) + $(c≠h ? nothing : side≠:right ? :(((!isdiag(V) && !hasconformal(V)) || $field) && (return $s(metric(b,$(args...))))) : :(((!isdiag(V) && !hasconformal(V)) || $field) && (return $(field ? :wedgedot_metric : :*)(reverse(b),V(LinearAlgebra.I),$(args...)))) ) d = getbasis(V,complement(mdims(V),B,diffvars(V),$(c≠h ? 0 : :(hasinf(V)+hasorigin(V))))) isdyadic(V) && throw(error("Complement for mixed tensors is undefined")) v = $(c≠h ? :($pn(V,B,value(d))) : :(value(d)))